configure revision 72b676d7
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for xf86-video-sis 0.9.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 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 Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22  setopt NO_GLOB_SUBST
23else
24  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25fi
26BIN_SH=xpg4; export BIN_SH # for Tru64
27DUALCASE=1; export DUALCASE # for MKS sh
28
29
30# PATH needs CR
31# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40  echo "#! /bin/sh" >conf$$.sh
41  echo  "exit 0"   >>conf$$.sh
42  chmod +x conf$$.sh
43  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44    PATH_SEPARATOR=';'
45  else
46    PATH_SEPARATOR=:
47  fi
48  rm -f conf$$.sh
49fi
50
51# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53  as_unset=unset
54else
55  as_unset=false
56fi
57
58
59# IFS
60# We need space, tab and new line, in precisely that order.  Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" ""	$as_nl"
67
68# Find who we are.  Look in the path if we contain no directory separator.
69case $0 in
70  *[\\/]* ) as_myself=$0 ;;
71  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72for as_dir in $PATH
73do
74  IFS=$as_save_IFS
75  test -z "$as_dir" && as_dir=.
76  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
78IFS=$as_save_IFS
79
80     ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85  as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89  { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104  LC_TELEPHONE LC_TIME
105do
106  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107    eval $as_var=C; export $as_var
108  else
109    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110  fi
111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115   test "X`expr 00001 : '.*\(...\)'`" = X001; then
116  as_expr=expr
117else
118  as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122  as_basename=basename
123else
124  as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131	 X"$0" : 'X\(//\)$' \| \
132	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134    sed '/^.*\/\([^/][^/]*\)\/*$/{
135	    s//\1/
136	    q
137	  }
138	  /^X\/\(\/\/\)$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\).*/{
143	    s//\1/
144	    q
145	  }
146	  s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153  if (eval ":") 2>/dev/null; then
154  as_have_required=yes
155else
156  as_have_required=no
157fi
158
159  if test $as_have_required = yes && 	 (eval ":
160(as_func_return () {
161  (exit \$1)
162}
163as_func_success () {
164  as_func_return 0
165}
166as_func_failure () {
167  as_func_return 1
168}
169as_func_ret_success () {
170  return 0
171}
172as_func_ret_failure () {
173  return 1
174}
175
176exitcode=0
177if as_func_success; then
178  :
179else
180  exitcode=1
181  echo as_func_success failed.
182fi
183
184if as_func_failure; then
185  exitcode=1
186  echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190  :
191else
192  exitcode=1
193  echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197  exitcode=1
198  echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202  :
203else
204  exitcode=1
205  echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211  as_lineno_1=\$LINENO
212  as_lineno_2=\$LINENO
213  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216  :
217else
218  as_candidate_shells=
219    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  case $as_dir in
225	 /*)
226	   for as_base in sh bash ksh sh5; do
227	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228	   done;;
229       esac
230done
231IFS=$as_save_IFS
232
233
234      for as_shell in $as_candidate_shells $SHELL; do
235	 # Try only shells that exist, to save several forks.
236	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237		{ ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240  emulate sh
241  NULLCMD=:
242  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243  # is contrary to our usage.  Disable this feature.
244  alias -g '${1+"$@"}'='"$@"'
245  setopt NO_GLOB_SUBST
246else
247  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255  CONFIG_SHELL=$as_shell
256	       as_have_required=yes
257	       if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274  (exit $1)
275}
276as_func_success () {
277  as_func_return 0
278}
279as_func_failure () {
280  as_func_return 1
281}
282as_func_ret_success () {
283  return 0
284}
285as_func_ret_failure () {
286  return 1
287}
288
289exitcode=0
290if as_func_success; then
291  :
292else
293  exitcode=1
294  echo as_func_success failed.
295fi
296
297if as_func_failure; then
298  exitcode=1
299  echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303  :
304else
305  exitcode=1
306  echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310  exitcode=1
311  echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315  :
316else
317  exitcode=1
318  echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
324  as_lineno_1=$LINENO
325  as_lineno_2=$LINENO
326  test "x$as_lineno_1" != "x$as_lineno_2" &&
327  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331  break
332fi
333
334fi
335
336      done
337
338      if test "x$CONFIG_SHELL" != x; then
339  for as_var in BASH_ENV ENV
340        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341        done
342        export CONFIG_SHELL
343        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347    if test $as_have_required = no; then
348  echo This script requires a shell more modern than all the
349      echo shells that I found on your system.  Please install a
350      echo modern shell, or manually run the script under such a
351      echo shell if you do have one.
352      { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363  (exit \$1)
364}
365as_func_success () {
366  as_func_return 0
367}
368as_func_failure () {
369  as_func_return 1
370}
371as_func_ret_success () {
372  return 0
373}
374as_func_ret_failure () {
375  return 1
376}
377
378exitcode=0
379if as_func_success; then
380  :
381else
382  exitcode=1
383  echo as_func_success failed.
384fi
385
386if as_func_failure; then
387  exitcode=1
388  echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392  :
393else
394  exitcode=1
395  echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399  exitcode=1
400  echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404  :
405else
406  exitcode=1
407  echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411  echo No shell found that supports shell functions.
412  echo Please tell autoconf@gnu.org about your system,
413  echo including any error possibly output before this
414  echo message
415}
416
417
418
419  as_lineno_1=$LINENO
420  as_lineno_2=$LINENO
421  test "x$as_lineno_1" != "x$as_lineno_2" &&
422  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425  # uniformly replaced by the line number.  The first 'sed' inserts a
426  # line-number line after each line using $LINENO; the second 'sed'
427  # does the real work.  The second script uses 'N' to pair each
428  # line-number line with the line containing $LINENO, and appends
429  # trailing '-' during substitution so that $LINENO is not a special
430  # case at line end.
431  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432  # scripts with optimization help from Paolo Bonzini.  Blame Lee
433  # E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451   { (exit 1); exit 1; }; }
452
453  # Don't try to exec as it changes $[0], causing all sort of problems
454  # (the dirname of $[0] is not the place where we might find the
455  # original and so on.  Autoconf is especially sensitive to this).
456  . "./$as_me.lineno"
457  # Exit status is that of the last command.
458  exit
459}
460
461
462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463  as_dirname=dirname
464else
465  as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471  case `echo 'x\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  *)   ECHO_C='\c';;
474  esac;;
475*)
476  ECHO_N='-n';;
477esac
478
479if expr a : '\(a\)' >/dev/null 2>&1 &&
480   test "X`expr 00001 : '.*\(...\)'`" = X001; then
481  as_expr=expr
482else
483  as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488  rm -f conf$$.dir/conf$$.file
489else
490  rm -f conf$$.dir
491  mkdir conf$$.dir
492fi
493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
495  as_ln_s='ln -s'
496  # ... but there are two gotchas:
497  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499  # In both cases, we have to default to `cp -p'.
500  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501    as_ln_s='cp -p'
502elif ln conf$$.file conf$$ 2>/dev/null; then
503  as_ln_s=ln
504else
505  as_ln_s='cp -p'
506fi
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
509
510if mkdir -p . 2>/dev/null; then
511  as_mkdir_p=:
512else
513  test -d ./-p && rmdir ./-p
514  as_mkdir_p=false
515fi
516
517# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525  as_executable_p="test -x"
526else
527  as_executable_p=:
528fi
529rm -f conf$$.file
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540# Check that we are running under the correct shell.
541SHELL=${CONFIG_SHELL-/bin/sh}
542
543case X$ECHO in
544X*--fallback-echo)
545  # Remove one level of quotation (which was required for Make).
546  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547  ;;
548esac
549
550echo=${ECHO-echo}
551if test "X$1" = X--no-reexec; then
552  # Discard the --no-reexec flag, and continue.
553  shift
554elif test "X$1" = X--fallback-echo; then
555  # Avoid inline document here, it may be left over
556  :
557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558  # Yippee, $echo works!
559  :
560else
561  # Restart under the correct shell.
562  exec $SHELL "$0" --no-reexec ${1+"$@"}
563fi
564
565if test "X$1" = X--fallback-echo; then
566  # used as fallback echo
567  shift
568  cat <<EOF
569$*
570EOF
571  exit 0
572fi
573
574# The HP-UX ksh and POSIX shell print the target directory to stdout
575# if CDPATH is set.
576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578if test -z "$ECHO"; then
579if test "X${echo_test_string+set}" != Xset; then
580# find a string as large as possible, as long as the shell can cope with it
581  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584       echo_test_string=`eval $cmd` &&
585       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586    then
587      break
588    fi
589  done
590fi
591
592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594   test "X$echo_testing_string" = "X$echo_test_string"; then
595  :
596else
597  # The Solaris, AIX, and Digital Unix default echo programs unquote
598  # backslashes.  This makes it impossible to quote backslashes using
599  #   echo "$something" | sed 's/\\/\\\\/g'
600  #
601  # So, first we look for a working echo in the user's PATH.
602
603  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604  for dir in $PATH /usr/ucb; do
605    IFS="$lt_save_ifs"
606    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609       test "X$echo_testing_string" = "X$echo_test_string"; then
610      echo="$dir/echo"
611      break
612    fi
613  done
614  IFS="$lt_save_ifs"
615
616  if test "X$echo" = Xecho; then
617    # We didn't find a better echo, so look for alternatives.
618    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620       test "X$echo_testing_string" = "X$echo_test_string"; then
621      # This shell has a builtin print -r that does the trick.
622      echo='print -r'
623    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624	 test "X$CONFIG_SHELL" != X/bin/ksh; then
625      # If we have ksh, try running configure again with it.
626      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627      export ORIGINAL_CONFIG_SHELL
628      CONFIG_SHELL=/bin/ksh
629      export CONFIG_SHELL
630      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631    else
632      # Try using printf.
633      echo='printf %s\n'
634      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636	 test "X$echo_testing_string" = "X$echo_test_string"; then
637	# Cool, printf works
638	:
639      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	   test "X$echo_testing_string" = 'X\t' &&
641	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	   test "X$echo_testing_string" = "X$echo_test_string"; then
643	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644	export CONFIG_SHELL
645	SHELL="$CONFIG_SHELL"
646	export SHELL
647	echo="$CONFIG_SHELL $0 --fallback-echo"
648      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649	   test "X$echo_testing_string" = 'X\t' &&
650	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651	   test "X$echo_testing_string" = "X$echo_test_string"; then
652	echo="$CONFIG_SHELL $0 --fallback-echo"
653      else
654	# maybe with a smaller string...
655	prev=:
656
657	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659	  then
660	    break
661	  fi
662	  prev="$cmd"
663	done
664
665	if test "$prev" != 'sed 50q "$0"'; then
666	  echo_test_string=`eval $prev`
667	  export echo_test_string
668	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669	else
670	  # Oops.  We lost completely, so just stick with echo.
671	  echo=echo
672	fi
673      fi
674    fi
675  fi
676fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681ECHO=$echo
682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689tagnames=${tagnames+${tagnames},}CXX
690
691tagnames=${tagnames+${tagnames},}F77
692
693exec 7<&0 </dev/null 6>&1
694
695# Name of the host.
696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697# so uname gets run too.
698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700#
701# Initializations.
702#
703ac_default_prefix=/usr/local
704ac_clean_files=
705ac_config_libobj_dir=.
706LIBOBJS=
707cross_compiling=no
708subdirs=
709MFLAGS=
710MAKEFLAGS=
711SHELL=${CONFIG_SHELL-/bin/sh}
712
713# Identity of this package.
714PACKAGE_NAME='xf86-video-sis'
715PACKAGE_TARNAME='xf86-video-sis'
716PACKAGE_VERSION='0.9.3'
717PACKAGE_STRING='xf86-video-sis 0.9.3'
718PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
719
720ac_unique_file="Makefile.am"
721# Factoring default headers for most tests.
722ac_includes_default="\
723#include <stdio.h>
724#if HAVE_SYS_TYPES_H
725# include <sys/types.h>
726#endif
727#if HAVE_SYS_STAT_H
728# include <sys/stat.h>
729#endif
730#if STDC_HEADERS
731# include <stdlib.h>
732# include <stddef.h>
733#else
734# if HAVE_STDLIB_H
735#  include <stdlib.h>
736# endif
737#endif
738#if HAVE_STRING_H
739# if !STDC_HEADERS && HAVE_MEMORY_H
740#  include <memory.h>
741# endif
742# include <string.h>
743#endif
744#if HAVE_STRINGS_H
745# include <strings.h>
746#endif
747#if HAVE_INTTYPES_H
748# include <inttypes.h>
749#endif
750#if HAVE_STDINT_H
751# include <stdint.h>
752#endif
753#if HAVE_UNISTD_H
754# include <unistd.h>
755#endif"
756
757ac_subst_vars='SHELL
758PATH_SEPARATOR
759PACKAGE_NAME
760PACKAGE_TARNAME
761PACKAGE_VERSION
762PACKAGE_STRING
763PACKAGE_BUGREPORT
764exec_prefix
765prefix
766program_transform_name
767bindir
768sbindir
769libexecdir
770datarootdir
771datadir
772sysconfdir
773sharedstatedir
774localstatedir
775includedir
776oldincludedir
777docdir
778infodir
779htmldir
780dvidir
781pdfdir
782psdir
783libdir
784localedir
785mandir
786DEFS
787ECHO_C
788ECHO_N
789ECHO_T
790LIBS
791build_alias
792host_alias
793target_alias
794INSTALL_PROGRAM
795INSTALL_SCRIPT
796INSTALL_DATA
797CYGPATH_W
798PACKAGE
799VERSION
800ACLOCAL
801AUTOCONF
802AUTOMAKE
803AUTOHEADER
804MAKEINFO
805install_sh
806STRIP
807INSTALL_STRIP_PROGRAM
808mkdir_p
809AWK
810SET_MAKE
811am__leading_dot
812AMTAR
813am__tar
814am__untar
815AMSHOWCMDSAT
816AMDEPSHOWCMDSAT
817AMPRETTYECHO
818AMCMDECHO
819LT_QUIET
820MAINTAINER_MODE_TRUE
821MAINTAINER_MODE_FALSE
822MAINT
823build
824build_cpu
825build_vendor
826build_os
827host
828host_cpu
829host_vendor
830host_os
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847GREP
848EGREP
849LN_S
850ECHO
851AR
852RANLIB
853CPP
854CXX
855CXXFLAGS
856ac_ct_CXX
857CXXDEPMODE
858am__fastdepCXX_TRUE
859am__fastdepCXX_FALSE
860CXXCPP
861F77
862FFLAGS
863ac_ct_F77
864LIBTOOL
865RAWCPP
866RAWCPPFLAGS
867PKG_CONFIG
868XORG_CFLAGS
869XORG_LIBS
870DRI_TRUE
871DRI_FALSE
872DRI_CFLAGS
873DRI_LIBS
874moduledir
875DRIVER_NAME
876APP_MAN_SUFFIX
877LIB_MAN_SUFFIX
878FILE_MAN_SUFFIX
879MISC_MAN_SUFFIX
880DRIVER_MAN_SUFFIX
881ADMIN_MAN_SUFFIX
882APP_MAN_DIR
883LIB_MAN_DIR
884FILE_MAN_DIR
885MISC_MAN_DIR
886DRIVER_MAN_DIR
887ADMIN_MAN_DIR
888LINUXDOC
889PS2PDF
890BUILD_LINUXDOC_TRUE
891BUILD_LINUXDOC_FALSE
892BUILD_PDFDOC_TRUE
893BUILD_PDFDOC_FALSE
894MAKE_TEXT
895MAKE_PS
896MAKE_PDF
897MAKE_HTML
898LIBOBJS
899LTLIBOBJS'
900ac_subst_files=''
901      ac_precious_vars='build_alias
902host_alias
903target_alias
904CC
905CFLAGS
906LDFLAGS
907CPPFLAGS
908CPP
909CXX
910CXXFLAGS
911CCC
912CXXCPP
913F77
914FFLAGS
915PKG_CONFIG
916XORG_CFLAGS
917XORG_LIBS
918DRI_CFLAGS
919DRI_LIBS'
920
921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
947# (The list follows the same order as the GNU Coding Standards.)
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
967
968ac_prev=
969ac_dashdash=
970for ac_option
971do
972  # If the previous option needs an argument, assign it.
973  if test -n "$ac_prev"; then
974    eval $ac_prev=\$ac_option
975    ac_prev=
976    continue
977  fi
978
979  case $ac_option in
980  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981  *)	ac_optarg=yes ;;
982  esac
983
984  # Accept the important Cygnus configure options, so we can diagnose typos.
985
986  case $ac_dashdash$ac_option in
987  --)
988    ac_dashdash=yes ;;
989
990  -bindir | --bindir | --bindi | --bind | --bin | --bi)
991    ac_prev=bindir ;;
992  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993    bindir=$ac_optarg ;;
994
995  -build | --build | --buil | --bui | --bu)
996    ac_prev=build_alias ;;
997  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998    build_alias=$ac_optarg ;;
999
1000  -cache-file | --cache-file | --cache-fil | --cache-fi \
1001  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002    ac_prev=cache_file ;;
1003  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005    cache_file=$ac_optarg ;;
1006
1007  --config-cache | -C)
1008    cache_file=config.cache ;;
1009
1010  -datadir | --datadir | --datadi | --datad)
1011    ac_prev=datadir ;;
1012  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013    datadir=$ac_optarg ;;
1014
1015  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016  | --dataroo | --dataro | --datar)
1017    ac_prev=datarootdir ;;
1018  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020    datarootdir=$ac_optarg ;;
1021
1022  -disable-* | --disable-*)
1023    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024    # Reject names that are not valid shell variable names.
1025    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1026      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027   { (exit 1); exit 1; }; }
1028    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1029    eval enable_$ac_feature=no ;;
1030
1031  -docdir | --docdir | --docdi | --doc | --do)
1032    ac_prev=docdir ;;
1033  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034    docdir=$ac_optarg ;;
1035
1036  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037    ac_prev=dvidir ;;
1038  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039    dvidir=$ac_optarg ;;
1040
1041  -enable-* | --enable-*)
1042    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043    # Reject names that are not valid shell variable names.
1044    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1045      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1046   { (exit 1); exit 1; }; }
1047    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1048    eval enable_$ac_feature=\$ac_optarg ;;
1049
1050  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052  | --exec | --exe | --ex)
1053    ac_prev=exec_prefix ;;
1054  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056  | --exec=* | --exe=* | --ex=*)
1057    exec_prefix=$ac_optarg ;;
1058
1059  -gas | --gas | --ga | --g)
1060    # Obsolete; use --with-gas.
1061    with_gas=yes ;;
1062
1063  -help | --help | --hel | --he | -h)
1064    ac_init_help=long ;;
1065  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066    ac_init_help=recursive ;;
1067  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068    ac_init_help=short ;;
1069
1070  -host | --host | --hos | --ho)
1071    ac_prev=host_alias ;;
1072  -host=* | --host=* | --hos=* | --ho=*)
1073    host_alias=$ac_optarg ;;
1074
1075  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076    ac_prev=htmldir ;;
1077  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078  | --ht=*)
1079    htmldir=$ac_optarg ;;
1080
1081  -includedir | --includedir | --includedi | --included | --include \
1082  | --includ | --inclu | --incl | --inc)
1083    ac_prev=includedir ;;
1084  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085  | --includ=* | --inclu=* | --incl=* | --inc=*)
1086    includedir=$ac_optarg ;;
1087
1088  -infodir | --infodir | --infodi | --infod | --info | --inf)
1089    ac_prev=infodir ;;
1090  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091    infodir=$ac_optarg ;;
1092
1093  -libdir | --libdir | --libdi | --libd)
1094    ac_prev=libdir ;;
1095  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096    libdir=$ac_optarg ;;
1097
1098  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099  | --libexe | --libex | --libe)
1100    ac_prev=libexecdir ;;
1101  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102  | --libexe=* | --libex=* | --libe=*)
1103    libexecdir=$ac_optarg ;;
1104
1105  -localedir | --localedir | --localedi | --localed | --locale)
1106    ac_prev=localedir ;;
1107  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108    localedir=$ac_optarg ;;
1109
1110  -localstatedir | --localstatedir | --localstatedi | --localstated \
1111  | --localstate | --localstat | --localsta | --localst | --locals)
1112    ac_prev=localstatedir ;;
1113  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115    localstatedir=$ac_optarg ;;
1116
1117  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118    ac_prev=mandir ;;
1119  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120    mandir=$ac_optarg ;;
1121
1122  -nfp | --nfp | --nf)
1123    # Obsolete; use --without-fp.
1124    with_fp=no ;;
1125
1126  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127  | --no-cr | --no-c | -n)
1128    no_create=yes ;;
1129
1130  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132    no_recursion=yes ;;
1133
1134  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136  | --oldin | --oldi | --old | --ol | --o)
1137    ac_prev=oldincludedir ;;
1138  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141    oldincludedir=$ac_optarg ;;
1142
1143  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144    ac_prev=prefix ;;
1145  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146    prefix=$ac_optarg ;;
1147
1148  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149  | --program-pre | --program-pr | --program-p)
1150    ac_prev=program_prefix ;;
1151  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153    program_prefix=$ac_optarg ;;
1154
1155  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156  | --program-suf | --program-su | --program-s)
1157    ac_prev=program_suffix ;;
1158  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160    program_suffix=$ac_optarg ;;
1161
1162  -program-transform-name | --program-transform-name \
1163  | --program-transform-nam | --program-transform-na \
1164  | --program-transform-n | --program-transform- \
1165  | --program-transform | --program-transfor \
1166  | --program-transfo | --program-transf \
1167  | --program-trans | --program-tran \
1168  | --progr-tra | --program-tr | --program-t)
1169    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1178
1179  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180    ac_prev=pdfdir ;;
1181  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182    pdfdir=$ac_optarg ;;
1183
1184  -psdir | --psdir | --psdi | --psd | --ps)
1185    ac_prev=psdir ;;
1186  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187    psdir=$ac_optarg ;;
1188
1189  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190  | -silent | --silent | --silen | --sile | --sil)
1191    silent=yes ;;
1192
1193  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194    ac_prev=sbindir ;;
1195  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196  | --sbi=* | --sb=*)
1197    sbindir=$ac_optarg ;;
1198
1199  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201  | --sharedst | --shareds | --shared | --share | --shar \
1202  | --sha | --sh)
1203    ac_prev=sharedstatedir ;;
1204  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207  | --sha=* | --sh=*)
1208    sharedstatedir=$ac_optarg ;;
1209
1210  -site | --site | --sit)
1211    ac_prev=site ;;
1212  -site=* | --site=* | --sit=*)
1213    site=$ac_optarg ;;
1214
1215  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216    ac_prev=srcdir ;;
1217  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218    srcdir=$ac_optarg ;;
1219
1220  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221  | --syscon | --sysco | --sysc | --sys | --sy)
1222    ac_prev=sysconfdir ;;
1223  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225    sysconfdir=$ac_optarg ;;
1226
1227  -target | --target | --targe | --targ | --tar | --ta | --t)
1228    ac_prev=target_alias ;;
1229  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230    target_alias=$ac_optarg ;;
1231
1232  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233    verbose=yes ;;
1234
1235  -version | --version | --versio | --versi | --vers | -V)
1236    ac_init_version=: ;;
1237
1238  -with-* | --with-*)
1239    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240    # Reject names that are not valid shell variable names.
1241    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1242      { echo "$as_me: error: invalid package name: $ac_package" >&2
1243   { (exit 1); exit 1; }; }
1244    ac_package=`echo $ac_package| sed 's/-/_/g'`
1245    eval with_$ac_package=\$ac_optarg ;;
1246
1247  -without-* | --without-*)
1248    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249    # Reject names that are not valid shell variable names.
1250    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1251      { echo "$as_me: error: invalid package name: $ac_package" >&2
1252   { (exit 1); exit 1; }; }
1253    ac_package=`echo $ac_package | sed 's/-/_/g'`
1254    eval with_$ac_package=no ;;
1255
1256  --x)
1257    # Obsolete; use --with-x.
1258    with_x=yes ;;
1259
1260  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261  | --x-incl | --x-inc | --x-in | --x-i)
1262    ac_prev=x_includes ;;
1263  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265    x_includes=$ac_optarg ;;
1266
1267  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269    ac_prev=x_libraries ;;
1270  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272    x_libraries=$ac_optarg ;;
1273
1274  -*) { echo "$as_me: error: unrecognized option: $ac_option
1275Try \`$0 --help' for more information." >&2
1276   { (exit 1); exit 1; }; }
1277    ;;
1278
1279  *=*)
1280    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281    # Reject names that are not valid shell variable names.
1282    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284   { (exit 1); exit 1; }; }
1285    eval $ac_envvar=\$ac_optarg
1286    export $ac_envvar ;;
1287
1288  *)
1289    # FIXME: should be removed in autoconf 3.0.
1290    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294    ;;
1295
1296  esac
1297done
1298
1299if test -n "$ac_prev"; then
1300  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301  { echo "$as_me: error: missing argument to $ac_option" >&2
1302   { (exit 1); exit 1; }; }
1303fi
1304
1305# Be sure to have absolute directory names.
1306for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307		datadir sysconfdir sharedstatedir localstatedir includedir \
1308		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309		libdir localedir mandir
1310do
1311  eval ac_val=\$$ac_var
1312  case $ac_val in
1313    [\\/$]* | ?:[\\/]* )  continue;;
1314    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315  esac
1316  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1317   { (exit 1); exit 1; }; }
1318done
1319
1320# There might be people who depend on the old broken behavior: `$host'
1321# used to hold the argument of --host etc.
1322# FIXME: To remove some day.
1323build=$build_alias
1324host=$host_alias
1325target=$target_alias
1326
1327# FIXME: To remove some day.
1328if test "x$host_alias" != x; then
1329  if test "x$build_alias" = x; then
1330    cross_compiling=maybe
1331    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332    If a cross compiler is detected then cross compile mode will be used." >&2
1333  elif test "x$build_alias" != "x$host_alias"; then
1334    cross_compiling=yes
1335  fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347  { echo "$as_me: error: Working directory cannot be determined" >&2
1348   { (exit 1); exit 1; }; }
1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350  { echo "$as_me: error: pwd does not report name of working directory" >&2
1351   { (exit 1); exit 1; }; }
1352
1353
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356  ac_srcdir_defaulted=yes
1357  # Try the directory containing this script, then the parent directory.
1358  ac_confdir=`$as_dirname -- "$0" ||
1359$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360	 X"$0" : 'X\(//\)[^/]' \| \
1361	 X"$0" : 'X\(//\)$' \| \
1362	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1363echo X"$0" |
1364    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365	    s//\1/
1366	    q
1367	  }
1368	  /^X\(\/\/\)[^/].*/{
1369	    s//\1/
1370	    q
1371	  }
1372	  /^X\(\/\/\)$/{
1373	    s//\1/
1374	    q
1375	  }
1376	  /^X\(\/\).*/{
1377	    s//\1/
1378	    q
1379	  }
1380	  s/.*/./; q'`
1381  srcdir=$ac_confdir
1382  if test ! -r "$srcdir/$ac_unique_file"; then
1383    srcdir=..
1384  fi
1385else
1386  ac_srcdir_defaulted=no
1387fi
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1391   { (exit 1); exit 1; }; }
1392fi
1393ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394ac_abs_confdir=`(
1395	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1396   { (exit 1); exit 1; }; }
1397	pwd)`
1398# When building in place, set srcdir=.
1399if test "$ac_abs_confdir" = "$ac_pwd"; then
1400  srcdir=.
1401fi
1402# Remove unnecessary trailing slashes from srcdir.
1403# Double slashes in file names in object file debugging info
1404# mess up M-x gdb in Emacs.
1405case $srcdir in
1406*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407esac
1408for ac_var in $ac_precious_vars; do
1409  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410  eval ac_env_${ac_var}_value=\$${ac_var}
1411  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413done
1414
1415#
1416# Report the --help message.
1417#
1418if test "$ac_init_help" = "long"; then
1419  # Omit some internal or obsolete options to make the list less imposing.
1420  # This message is too long to be a string in the A/UX 3.1 sh.
1421  cat <<_ACEOF
1422\`configure' configures xf86-video-sis 0.9.3 to adapt to many kinds of systems.
1423
1424Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427VAR=VALUE.  See below for descriptions of some of the useful variables.
1428
1429Defaults for the options are specified in brackets.
1430
1431Configuration:
1432  -h, --help              display this help and exit
1433      --help=short        display options specific to this package
1434      --help=recursive    display the short help of all the included packages
1435  -V, --version           display version information and exit
1436  -q, --quiet, --silent   do not print \`checking...' messages
1437      --cache-file=FILE   cache test results in FILE [disabled]
1438  -C, --config-cache      alias for \`--cache-file=config.cache'
1439  -n, --no-create         do not create output files
1440      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1441
1442Installation directories:
1443  --prefix=PREFIX         install architecture-independent files in PREFIX
1444			  [$ac_default_prefix]
1445  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1446			  [PREFIX]
1447
1448By default, \`make install' will install all the files in
1449\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1450an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451for instance \`--prefix=\$HOME'.
1452
1453For better control, use the options below.
1454
1455Fine tuning of the installation directories:
1456  --bindir=DIR           user executables [EPREFIX/bin]
1457  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1458  --libexecdir=DIR       program executables [EPREFIX/libexec]
1459  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1460  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1461  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1462  --libdir=DIR           object code libraries [EPREFIX/lib]
1463  --includedir=DIR       C header files [PREFIX/include]
1464  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1465  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1466  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1467  --infodir=DIR          info documentation [DATAROOTDIR/info]
1468  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1469  --mandir=DIR           man documentation [DATAROOTDIR/man]
1470  --docdir=DIR           documentation root [DATAROOTDIR/doc/xf86-video-sis]
1471  --htmldir=DIR          html documentation [DOCDIR]
1472  --dvidir=DIR           dvi documentation [DOCDIR]
1473  --pdfdir=DIR           pdf documentation [DOCDIR]
1474  --psdir=DIR            ps documentation [DOCDIR]
1475_ACEOF
1476
1477  cat <<\_ACEOF
1478
1479Program names:
1480  --program-prefix=PREFIX            prepend PREFIX to installed program names
1481  --program-suffix=SUFFIX            append SUFFIX to installed program names
1482  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1483
1484System types:
1485  --build=BUILD     configure for building on BUILD [guessed]
1486  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1487_ACEOF
1488fi
1489
1490if test -n "$ac_init_help"; then
1491  case $ac_init_help in
1492     short | recursive ) echo "Configuration of xf86-video-sis 0.9.3:";;
1493   esac
1494  cat <<\_ACEOF
1495
1496Optional Features:
1497  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1498  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1499  --disable-pretty-cmds          show all commands executed
1500  --enable-pretty-cmds           do not output the entire command lines
1501  --enable-maintainer-mode  enable make rules and dependencies not useful
1502			  (and sometimes confusing) to the casual installer
1503  --enable-static[=PKGS]  build static libraries [default=no]
1504  --enable-shared[=PKGS]  build shared libraries [default=yes]
1505  --enable-fast-install[=PKGS]
1506                          optimize for fast installation [default=yes]
1507  --disable-dependency-tracking  speeds up one-time build
1508  --enable-dependency-tracking   do not reject slow dependency extractors
1509  --disable-libtool-lock  avoid locking (might break parallel builds)
1510  --disable-dri           Disable DRI support [default=auto]
1511
1512Optional Packages:
1513  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1514  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1515  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1516  --with-pic              try to use only PIC/non-PIC objects [default=use
1517                          both]
1518  --with-tags[=TAGS]      include additional configurations [automatic]
1519  --with-xorg-module-dir=DIR
1520                          Default xorg module directory
1521                          [default=$libdir/xorg/modules]
1522  --with-release-version=STRING
1523                          Use release version string in package name
1524
1525Some influential environment variables:
1526  CC          C compiler command
1527  CFLAGS      C compiler flags
1528  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1529              nonstandard directory <lib dir>
1530  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1531              you have headers in a nonstandard directory <include dir>
1532  CPP         C preprocessor
1533  CXX         C++ compiler command
1534  CXXFLAGS    C++ compiler flags
1535  CXXCPP      C++ preprocessor
1536  F77         Fortran 77 compiler command
1537  FFLAGS      Fortran 77 compiler flags
1538  PKG_CONFIG  path to pkg-config utility
1539  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1540  XORG_LIBS   linker flags for XORG, overriding pkg-config
1541  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1542  DRI_LIBS    linker flags for DRI, overriding pkg-config
1543
1544Use these variables to override the choices made by `configure' or to help
1545it to find libraries and programs with nonstandard names/locations.
1546
1547Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1548_ACEOF
1549ac_status=$?
1550fi
1551
1552if test "$ac_init_help" = "recursive"; then
1553  # If there are subdirs, report their specific --help.
1554  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555    test -d "$ac_dir" || continue
1556    ac_builddir=.
1557
1558case "$ac_dir" in
1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560*)
1561  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1562  # A ".." for each directory in $ac_dir_suffix.
1563  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1564  case $ac_top_builddir_sub in
1565  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567  esac ;;
1568esac
1569ac_abs_top_builddir=$ac_pwd
1570ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571# for backward compatibility:
1572ac_top_builddir=$ac_top_build_prefix
1573
1574case $srcdir in
1575  .)  # We are building in place.
1576    ac_srcdir=.
1577    ac_top_srcdir=$ac_top_builddir_sub
1578    ac_abs_top_srcdir=$ac_pwd ;;
1579  [\\/]* | ?:[\\/]* )  # Absolute name.
1580    ac_srcdir=$srcdir$ac_dir_suffix;
1581    ac_top_srcdir=$srcdir
1582    ac_abs_top_srcdir=$srcdir ;;
1583  *) # Relative name.
1584    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585    ac_top_srcdir=$ac_top_build_prefix$srcdir
1586    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587esac
1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589
1590    cd "$ac_dir" || { ac_status=$?; continue; }
1591    # Check for guested configure.
1592    if test -f "$ac_srcdir/configure.gnu"; then
1593      echo &&
1594      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595    elif test -f "$ac_srcdir/configure"; then
1596      echo &&
1597      $SHELL "$ac_srcdir/configure" --help=recursive
1598    else
1599      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600    fi || ac_status=$?
1601    cd "$ac_pwd" || { ac_status=$?; break; }
1602  done
1603fi
1604
1605test -n "$ac_init_help" && exit $ac_status
1606if $ac_init_version; then
1607  cat <<\_ACEOF
1608xf86-video-sis configure 0.9.3
1609generated by GNU Autoconf 2.60
1610
1611Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16122002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1613This configure script is free software; the Free Software Foundation
1614gives unlimited permission to copy, distribute and modify it.
1615_ACEOF
1616  exit
1617fi
1618cat >config.log <<_ACEOF
1619This file contains any messages produced by compilers while
1620running configure, to aid debugging if configure makes a mistake.
1621
1622It was created by xf86-video-sis $as_me 0.9.3, which was
1623generated by GNU Autoconf 2.60.  Invocation command line was
1624
1625  $ $0 $@
1626
1627_ACEOF
1628exec 5>>config.log
1629{
1630cat <<_ASUNAME
1631## --------- ##
1632## Platform. ##
1633## --------- ##
1634
1635hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1636uname -m = `(uname -m) 2>/dev/null || echo unknown`
1637uname -r = `(uname -r) 2>/dev/null || echo unknown`
1638uname -s = `(uname -s) 2>/dev/null || echo unknown`
1639uname -v = `(uname -v) 2>/dev/null || echo unknown`
1640
1641/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1642/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1643
1644/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1645/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1646/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1647/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1648/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1649/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1650/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1651
1652_ASUNAME
1653
1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657  IFS=$as_save_IFS
1658  test -z "$as_dir" && as_dir=.
1659  echo "PATH: $as_dir"
1660done
1661IFS=$as_save_IFS
1662
1663} >&5
1664
1665cat >&5 <<_ACEOF
1666
1667
1668## ----------- ##
1669## Core tests. ##
1670## ----------- ##
1671
1672_ACEOF
1673
1674
1675# Keep a trace of the command line.
1676# Strip out --no-create and --no-recursion so they do not pile up.
1677# Strip out --silent because we don't want to record it for future runs.
1678# Also quote any args containing shell meta-characters.
1679# Make two passes to allow for proper duplicate-argument suppression.
1680ac_configure_args=
1681ac_configure_args0=
1682ac_configure_args1=
1683ac_must_keep_next=false
1684for ac_pass in 1 2
1685do
1686  for ac_arg
1687  do
1688    case $ac_arg in
1689    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1690    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1691    | -silent | --silent | --silen | --sile | --sil)
1692      continue ;;
1693    *\'*)
1694      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1695    esac
1696    case $ac_pass in
1697    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1698    2)
1699      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1700      if test $ac_must_keep_next = true; then
1701	ac_must_keep_next=false # Got value, back to normal.
1702      else
1703	case $ac_arg in
1704	  *=* | --config-cache | -C | -disable-* | --disable-* \
1705	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1706	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1707	  | -with-* | --with-* | -without-* | --without-* | --x)
1708	    case "$ac_configure_args0 " in
1709	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1710	    esac
1711	    ;;
1712	  -* ) ac_must_keep_next=true ;;
1713	esac
1714      fi
1715      ac_configure_args="$ac_configure_args '$ac_arg'"
1716      ;;
1717    esac
1718  done
1719done
1720$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1721$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1722
1723# When interrupted or exit'd, cleanup temporary files, and complete
1724# config.log.  We remove comments because anyway the quotes in there
1725# would cause problems or look ugly.
1726# WARNING: Use '\'' to represent an apostrophe within the trap.
1727# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1728trap 'exit_status=$?
1729  # Save into config.log some information that might help in debugging.
1730  {
1731    echo
1732
1733    cat <<\_ASBOX
1734## ---------------- ##
1735## Cache variables. ##
1736## ---------------- ##
1737_ASBOX
1738    echo
1739    # The following way of writing the cache mishandles newlines in values,
1740(
1741  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1742    eval ac_val=\$$ac_var
1743    case $ac_val in #(
1744    *${as_nl}*)
1745      case $ac_var in #(
1746      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1747echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1748      esac
1749      case $ac_var in #(
1750      _ | IFS | as_nl) ;; #(
1751      *) $as_unset $ac_var ;;
1752      esac ;;
1753    esac
1754  done
1755  (set) 2>&1 |
1756    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1757    *${as_nl}ac_space=\ *)
1758      sed -n \
1759	"s/'\''/'\''\\\\'\'''\''/g;
1760	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1761      ;; #(
1762    *)
1763      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1764      ;;
1765    esac |
1766    sort
1767)
1768    echo
1769
1770    cat <<\_ASBOX
1771## ----------------- ##
1772## Output variables. ##
1773## ----------------- ##
1774_ASBOX
1775    echo
1776    for ac_var in $ac_subst_vars
1777    do
1778      eval ac_val=\$$ac_var
1779      case $ac_val in
1780      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781      esac
1782      echo "$ac_var='\''$ac_val'\''"
1783    done | sort
1784    echo
1785
1786    if test -n "$ac_subst_files"; then
1787      cat <<\_ASBOX
1788## ------------------- ##
1789## File substitutions. ##
1790## ------------------- ##
1791_ASBOX
1792      echo
1793      for ac_var in $ac_subst_files
1794      do
1795	eval ac_val=\$$ac_var
1796	case $ac_val in
1797	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1798	esac
1799	echo "$ac_var='\''$ac_val'\''"
1800      done | sort
1801      echo
1802    fi
1803
1804    if test -s confdefs.h; then
1805      cat <<\_ASBOX
1806## ----------- ##
1807## confdefs.h. ##
1808## ----------- ##
1809_ASBOX
1810      echo
1811      cat confdefs.h
1812      echo
1813    fi
1814    test "$ac_signal" != 0 &&
1815      echo "$as_me: caught signal $ac_signal"
1816    echo "$as_me: exit $exit_status"
1817  } >&5
1818  rm -f core *.core core.conftest.* &&
1819    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1820    exit $exit_status
1821' 0
1822for ac_signal in 1 2 13 15; do
1823  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1824done
1825ac_signal=0
1826
1827# confdefs.h avoids OS command line length limits that DEFS can exceed.
1828rm -f -r conftest* confdefs.h
1829
1830# Predefined preprocessor variables.
1831
1832cat >>confdefs.h <<_ACEOF
1833#define PACKAGE_NAME "$PACKAGE_NAME"
1834_ACEOF
1835
1836
1837cat >>confdefs.h <<_ACEOF
1838#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1839_ACEOF
1840
1841
1842cat >>confdefs.h <<_ACEOF
1843#define PACKAGE_VERSION "$PACKAGE_VERSION"
1844_ACEOF
1845
1846
1847cat >>confdefs.h <<_ACEOF
1848#define PACKAGE_STRING "$PACKAGE_STRING"
1849_ACEOF
1850
1851
1852cat >>confdefs.h <<_ACEOF
1853#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1854_ACEOF
1855
1856
1857# Let the site file select an alternate cache file if it wants to.
1858# Prefer explicitly selected file to automatically selected ones.
1859if test -n "$CONFIG_SITE"; then
1860  set x "$CONFIG_SITE"
1861elif test "x$prefix" != xNONE; then
1862  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1863else
1864  set x "$ac_default_prefix/share/config.site" \
1865	"$ac_default_prefix/etc/config.site"
1866fi
1867shift
1868for ac_site_file
1869do
1870  if test -r "$ac_site_file"; then
1871    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1872echo "$as_me: loading site script $ac_site_file" >&6;}
1873    sed 's/^/| /' "$ac_site_file" >&5
1874    . "$ac_site_file"
1875  fi
1876done
1877
1878if test -r "$cache_file"; then
1879  # Some versions of bash will fail to source /dev/null (special
1880  # files actually), so we avoid doing that.
1881  if test -f "$cache_file"; then
1882    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1883echo "$as_me: loading cache $cache_file" >&6;}
1884    case $cache_file in
1885      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1886      *)                      . "./$cache_file";;
1887    esac
1888  fi
1889else
1890  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1891echo "$as_me: creating cache $cache_file" >&6;}
1892  >$cache_file
1893fi
1894
1895# Check that the precious variables saved in the cache have kept the same
1896# value.
1897ac_cache_corrupted=false
1898for ac_var in $ac_precious_vars; do
1899  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1900  eval ac_new_set=\$ac_env_${ac_var}_set
1901  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1902  eval ac_new_val=\$ac_env_${ac_var}_value
1903  case $ac_old_set,$ac_new_set in
1904    set,)
1905      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1906echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1907      ac_cache_corrupted=: ;;
1908    ,set)
1909      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1910echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1911      ac_cache_corrupted=: ;;
1912    ,);;
1913    *)
1914      if test "x$ac_old_val" != "x$ac_new_val"; then
1915	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1916echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1917	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1918echo "$as_me:   former value:  $ac_old_val" >&2;}
1919	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1920echo "$as_me:   current value: $ac_new_val" >&2;}
1921	ac_cache_corrupted=:
1922      fi;;
1923  esac
1924  # Pass precious variables to config.status.
1925  if test "$ac_new_set" = set; then
1926    case $ac_new_val in
1927    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1928    *) ac_arg=$ac_var=$ac_new_val ;;
1929    esac
1930    case " $ac_configure_args " in
1931      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1932      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1933    esac
1934  fi
1935done
1936if $ac_cache_corrupted; then
1937  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1938echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1939  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1940echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1941   { (exit 1); exit 1; }; }
1942fi
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968ac_ext=c
1969ac_cpp='$CPP $CPPFLAGS'
1970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973
1974
1975
1976
1977ac_config_headers="$ac_config_headers config.h"
1978
1979ac_aux_dir=
1980for ac_dir in . "$srcdir"/.; do
1981  if test -f "$ac_dir/install-sh"; then
1982    ac_aux_dir=$ac_dir
1983    ac_install_sh="$ac_aux_dir/install-sh -c"
1984    break
1985  elif test -f "$ac_dir/install.sh"; then
1986    ac_aux_dir=$ac_dir
1987    ac_install_sh="$ac_aux_dir/install.sh -c"
1988    break
1989  elif test -f "$ac_dir/shtool"; then
1990    ac_aux_dir=$ac_dir
1991    ac_install_sh="$ac_aux_dir/shtool install -c"
1992    break
1993  fi
1994done
1995if test -z "$ac_aux_dir"; then
1996  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1997echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1998   { (exit 1); exit 1; }; }
1999fi
2000
2001# These three variables are undocumented and unsupported,
2002# and are intended to be withdrawn in a future Autoconf release.
2003# They can cause serious problems if a builder's source tree is in a directory
2004# whose full name contains unusual characters.
2005ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2006ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2007ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2008
2009
2010
2011am__api_version="1.9"
2012# Find a good install program.  We prefer a C program (faster),
2013# so one script is as good as another.  But avoid the broken or
2014# incompatible versions:
2015# SysV /etc/install, /usr/sbin/install
2016# SunOS /usr/etc/install
2017# IRIX /sbin/install
2018# AIX /bin/install
2019# AmigaOS /C/install, which installs bootblocks on floppy discs
2020# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2021# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2022# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2023# OS/2's system install, which has a completely different semantic
2024# ./install, which can be erroneously created by make from ./install.sh.
2025{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2026echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2027if test -z "$INSTALL"; then
2028if test "${ac_cv_path_install+set}" = set; then
2029  echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034  IFS=$as_save_IFS
2035  test -z "$as_dir" && as_dir=.
2036  # Account for people who put trailing slashes in PATH elements.
2037case $as_dir/ in
2038  ./ | .// | /cC/* | \
2039  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2040  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2041  /usr/ucb/* ) ;;
2042  *)
2043    # OSF1 and SCO ODT 3.0 have their own names for install.
2044    # Don't use installbsd from OSF since it installs stuff as root
2045    # by default.
2046    for ac_prog in ginstall scoinst install; do
2047      for ac_exec_ext in '' $ac_executable_extensions; do
2048	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2049	  if test $ac_prog = install &&
2050	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051	    # AIX install.  It has an incompatible calling convention.
2052	    :
2053	  elif test $ac_prog = install &&
2054	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055	    # program-specific install script used by HP pwplus--don't use.
2056	    :
2057	  else
2058	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2059	    break 3
2060	  fi
2061	fi
2062      done
2063    done
2064    ;;
2065esac
2066done
2067IFS=$as_save_IFS
2068
2069
2070fi
2071  if test "${ac_cv_path_install+set}" = set; then
2072    INSTALL=$ac_cv_path_install
2073  else
2074    # As a last resort, use the slow shell script.  Don't cache a
2075    # value for INSTALL within a source directory, because that will
2076    # break other packages using the cache if that directory is
2077    # removed, or if the value is a relative name.
2078    INSTALL=$ac_install_sh
2079  fi
2080fi
2081{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2082echo "${ECHO_T}$INSTALL" >&6; }
2083
2084# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2085# It thinks the first close brace ends the variable substitution.
2086test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2087
2088test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2089
2090test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2091
2092{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2093echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2094# Just in case
2095sleep 1
2096echo timestamp > conftest.file
2097# Do `set' in a subshell so we don't clobber the current shell's
2098# arguments.  Must try -L first in case configure is actually a
2099# symlink; some systems play weird games with the mod time of symlinks
2100# (eg FreeBSD returns the mod time of the symlink's containing
2101# directory).
2102if (
2103   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2104   if test "$*" = "X"; then
2105      # -L didn't work.
2106      set X `ls -t $srcdir/configure conftest.file`
2107   fi
2108   rm -f conftest.file
2109   if test "$*" != "X $srcdir/configure conftest.file" \
2110      && test "$*" != "X conftest.file $srcdir/configure"; then
2111
2112      # If neither matched, then we have a broken ls.  This can happen
2113      # if, for instance, CONFIG_SHELL is bash and it inherits a
2114      # broken ls alias from the environment.  This has actually
2115      # happened.  Such a system could not be considered "sane".
2116      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2117alias in your environment" >&5
2118echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2119alias in your environment" >&2;}
2120   { (exit 1); exit 1; }; }
2121   fi
2122
2123   test "$2" = conftest.file
2124   )
2125then
2126   # Ok.
2127   :
2128else
2129   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2130Check your system clock" >&5
2131echo "$as_me: error: newly created file is older than distributed files!
2132Check your system clock" >&2;}
2133   { (exit 1); exit 1; }; }
2134fi
2135{ echo "$as_me:$LINENO: result: yes" >&5
2136echo "${ECHO_T}yes" >&6; }
2137test "$program_prefix" != NONE &&
2138  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2139# Use a double $ so make ignores it.
2140test "$program_suffix" != NONE &&
2141  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2142# Double any \ or $.  echo might interpret backslashes.
2143# By default was `s,x,x', remove it if useless.
2144cat <<\_ACEOF >conftest.sed
2145s/[\\$]/&&/g;s/;s,x,x,$//
2146_ACEOF
2147program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2148rm -f conftest.sed
2149
2150# expand $ac_aux_dir to an absolute path
2151am_aux_dir=`cd $ac_aux_dir && pwd`
2152
2153test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2154# Use eval to expand $SHELL
2155if eval "$MISSING --run true"; then
2156  am_missing_run="$MISSING --run "
2157else
2158  am_missing_run=
2159  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2160echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2161fi
2162
2163if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2164  # We used to keeping the `.' as first argument, in order to
2165  # allow $(mkdir_p) to be used without argument.  As in
2166  #   $(mkdir_p) $(somedir)
2167  # where $(somedir) is conditionally defined.  However this is wrong
2168  # for two reasons:
2169  #  1. if the package is installed by a user who cannot write `.'
2170  #     make install will fail,
2171  #  2. the above comment should most certainly read
2172  #     $(mkdir_p) $(DESTDIR)$(somedir)
2173  #     so it does not work when $(somedir) is undefined and
2174  #     $(DESTDIR) is not.
2175  #  To support the latter case, we have to write
2176  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2177  #  so the `.' trick is pointless.
2178  mkdir_p='mkdir -p --'
2179else
2180  # On NextStep and OpenStep, the `mkdir' command does not
2181  # recognize any option.  It will interpret all options as
2182  # directories to create, and then abort because `.' already
2183  # exists.
2184  for d in ./-p ./--version;
2185  do
2186    test -d $d && rmdir $d
2187  done
2188  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2189  if test -f "$ac_aux_dir/mkinstalldirs"; then
2190    mkdir_p='$(mkinstalldirs)'
2191  else
2192    mkdir_p='$(install_sh) -d'
2193  fi
2194fi
2195
2196for ac_prog in gawk mawk nawk awk
2197do
2198  # Extract the first word of "$ac_prog", so it can be a program name with args.
2199set dummy $ac_prog; ac_word=$2
2200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202if test "${ac_cv_prog_AWK+set}" = set; then
2203  echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205  if test -n "$AWK"; then
2206  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2207else
2208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209for as_dir in $PATH
2210do
2211  IFS=$as_save_IFS
2212  test -z "$as_dir" && as_dir=.
2213  for ac_exec_ext in '' $ac_executable_extensions; do
2214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2215    ac_cv_prog_AWK="$ac_prog"
2216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217    break 2
2218  fi
2219done
2220done
2221IFS=$as_save_IFS
2222
2223fi
2224fi
2225AWK=$ac_cv_prog_AWK
2226if test -n "$AWK"; then
2227  { echo "$as_me:$LINENO: result: $AWK" >&5
2228echo "${ECHO_T}$AWK" >&6; }
2229else
2230  { echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6; }
2232fi
2233
2234
2235  test -n "$AWK" && break
2236done
2237
2238{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2239echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2240set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2241if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.make <<\_ACEOF
2245SHELL = /bin/sh
2246all:
2247	@echo '@@@%%%=$(MAKE)=@@@%%%'
2248_ACEOF
2249# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2250case `${MAKE-make} -f conftest.make 2>/dev/null` in
2251  *@@@%%%=?*=@@@%%%*)
2252    eval ac_cv_prog_make_${ac_make}_set=yes;;
2253  *)
2254    eval ac_cv_prog_make_${ac_make}_set=no;;
2255esac
2256rm -f conftest.make
2257fi
2258if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2259  { echo "$as_me:$LINENO: result: yes" >&5
2260echo "${ECHO_T}yes" >&6; }
2261  SET_MAKE=
2262else
2263  { echo "$as_me:$LINENO: result: no" >&5
2264echo "${ECHO_T}no" >&6; }
2265  SET_MAKE="MAKE=${MAKE-make}"
2266fi
2267
2268rm -rf .tst 2>/dev/null
2269mkdir .tst 2>/dev/null
2270if test -d .tst; then
2271  am__leading_dot=.
2272else
2273  am__leading_dot=_
2274fi
2275rmdir .tst 2>/dev/null
2276
2277# Check whether --enable-pretty-cmds was given.
2278if test "${enable_pretty_cmds+set}" = set; then
2279  enableval=$enable_pretty_cmds;
2280fi
2281
2282AMSHOWCMDSAT=''
2283AMDEPSHOWCMDSAT=''
2284AMPRETTYECHO=true
2285AMCMDECHO=echo
2286if test "x$enable_pretty_cmds" == xyes;
2287then
2288  AMSHOWCMDSAT='@'
2289  test x$enable_dependency_tracking == xno && AMDEPSHOWCMDSAT='@'
2290  AMPRETTYECHO=echo
2291  AMCMDECHO=true
2292  LT_QUIET='--quiet'
2293fi
2294
2295
2296
2297
2298
2299
2300# test to see if srcdir already configured
2301if test "`cd $srcdir && pwd`" != "`pwd`" &&
2302   test -f $srcdir/config.status; then
2303  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2304echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2305   { (exit 1); exit 1; }; }
2306fi
2307
2308# test whether we have cygpath
2309if test -z "$CYGPATH_W"; then
2310  if (cygpath --version) >/dev/null 2>/dev/null; then
2311    CYGPATH_W='cygpath -w'
2312  else
2313    CYGPATH_W=echo
2314  fi
2315fi
2316
2317
2318# Define the identity of the package.
2319 PACKAGE='xf86-video-sis'
2320 VERSION='0.9.3'
2321
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE "$PACKAGE"
2325_ACEOF
2326
2327
2328cat >>confdefs.h <<_ACEOF
2329#define VERSION "$VERSION"
2330_ACEOF
2331
2332# Some tools Automake needs.
2333
2334ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2335
2336
2337AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2338
2339
2340AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2341
2342
2343AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2344
2345
2346MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2347
2348install_sh=${install_sh-"$am_aux_dir/install-sh"}
2349
2350# Installed binaries are usually stripped using `strip' when the user
2351# run `make install-strip'.  However `strip' might not be the right
2352# tool to use in cross-compilation environments, therefore Automake
2353# will honor the `STRIP' environment variable to overrule this program.
2354if test "$cross_compiling" != no; then
2355  if test -n "$ac_tool_prefix"; then
2356  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2357set dummy ${ac_tool_prefix}strip; ac_word=$2
2358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360if test "${ac_cv_prog_STRIP+set}" = set; then
2361  echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363  if test -n "$STRIP"; then
2364  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2365else
2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369  IFS=$as_save_IFS
2370  test -z "$as_dir" && as_dir=.
2371  for ac_exec_ext in '' $ac_executable_extensions; do
2372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2373    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2374    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375    break 2
2376  fi
2377done
2378done
2379IFS=$as_save_IFS
2380
2381fi
2382fi
2383STRIP=$ac_cv_prog_STRIP
2384if test -n "$STRIP"; then
2385  { echo "$as_me:$LINENO: result: $STRIP" >&5
2386echo "${ECHO_T}$STRIP" >&6; }
2387else
2388  { echo "$as_me:$LINENO: result: no" >&5
2389echo "${ECHO_T}no" >&6; }
2390fi
2391
2392
2393fi
2394if test -z "$ac_cv_prog_STRIP"; then
2395  ac_ct_STRIP=$STRIP
2396  # Extract the first word of "strip", so it can be a program name with args.
2397set dummy strip; ac_word=$2
2398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2401  echo $ECHO_N "(cached) $ECHO_C" >&6
2402else
2403  if test -n "$ac_ct_STRIP"; then
2404  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2405else
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409  IFS=$as_save_IFS
2410  test -z "$as_dir" && as_dir=.
2411  for ac_exec_ext in '' $ac_executable_extensions; do
2412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2413    ac_cv_prog_ac_ct_STRIP="strip"
2414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415    break 2
2416  fi
2417done
2418done
2419IFS=$as_save_IFS
2420
2421fi
2422fi
2423ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2424if test -n "$ac_ct_STRIP"; then
2425  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2426echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2427else
2428  { echo "$as_me:$LINENO: result: no" >&5
2429echo "${ECHO_T}no" >&6; }
2430fi
2431
2432  if test "x$ac_ct_STRIP" = x; then
2433    STRIP=":"
2434  else
2435    case $cross_compiling:$ac_tool_warned in
2436yes:)
2437{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438whose name does not start with the host triplet.  If you think this
2439configuration is useful to you, please write to autoconf@gnu.org." >&5
2440echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2441whose name does not start with the host triplet.  If you think this
2442configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2443ac_tool_warned=yes ;;
2444esac
2445    STRIP=$ac_ct_STRIP
2446  fi
2447else
2448  STRIP="$ac_cv_prog_STRIP"
2449fi
2450
2451fi
2452INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2453
2454# We need awk for the "check" target.  The system "awk" is bad on
2455# some platforms.
2456# Always define AMTAR for backward compatibility.
2457
2458AMTAR=${AMTAR-"${am_missing_run}tar"}
2459
2460am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2461
2462
2463
2464
2465
2466
2467
2468{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2469echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2470    # Check whether --enable-maintainer-mode was given.
2471if test "${enable_maintainer_mode+set}" = set; then
2472  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2473else
2474  USE_MAINTAINER_MODE=no
2475fi
2476
2477  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2478echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2479
2480
2481if test $USE_MAINTAINER_MODE = yes; then
2482  MAINTAINER_MODE_TRUE=
2483  MAINTAINER_MODE_FALSE='#'
2484else
2485  MAINTAINER_MODE_TRUE='#'
2486  MAINTAINER_MODE_FALSE=
2487fi
2488
2489  MAINT=$MAINTAINER_MODE_TRUE
2490
2491
2492
2493# Checks for programs.
2494# Check whether --enable-static was given.
2495if test "${enable_static+set}" = set; then
2496  enableval=$enable_static; p=${PACKAGE-default}
2497    case $enableval in
2498    yes) enable_static=yes ;;
2499    no) enable_static=no ;;
2500    *)
2501     enable_static=no
2502      # Look at the argument we got.  We use all the common list separators.
2503      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2504      for pkg in $enableval; do
2505	IFS="$lt_save_ifs"
2506	if test "X$pkg" = "X$p"; then
2507	  enable_static=yes
2508	fi
2509      done
2510      IFS="$lt_save_ifs"
2511      ;;
2512    esac
2513else
2514  enable_static=no
2515fi
2516
2517
2518
2519# Check whether --enable-shared was given.
2520if test "${enable_shared+set}" = set; then
2521  enableval=$enable_shared; p=${PACKAGE-default}
2522    case $enableval in
2523    yes) enable_shared=yes ;;
2524    no) enable_shared=no ;;
2525    *)
2526      enable_shared=no
2527      # Look at the argument we got.  We use all the common list separators.
2528      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2529      for pkg in $enableval; do
2530	IFS="$lt_save_ifs"
2531	if test "X$pkg" = "X$p"; then
2532	  enable_shared=yes
2533	fi
2534      done
2535      IFS="$lt_save_ifs"
2536      ;;
2537    esac
2538else
2539  enable_shared=yes
2540fi
2541
2542
2543# Check whether --enable-fast-install was given.
2544if test "${enable_fast_install+set}" = set; then
2545  enableval=$enable_fast_install; p=${PACKAGE-default}
2546    case $enableval in
2547    yes) enable_fast_install=yes ;;
2548    no) enable_fast_install=no ;;
2549    *)
2550      enable_fast_install=no
2551      # Look at the argument we got.  We use all the common list separators.
2552      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2553      for pkg in $enableval; do
2554	IFS="$lt_save_ifs"
2555	if test "X$pkg" = "X$p"; then
2556	  enable_fast_install=yes
2557	fi
2558      done
2559      IFS="$lt_save_ifs"
2560      ;;
2561    esac
2562else
2563  enable_fast_install=yes
2564fi
2565
2566
2567# Make sure we can run config.sub.
2568$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2569  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2570echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2571   { (exit 1); exit 1; }; }
2572
2573{ echo "$as_me:$LINENO: checking build system type" >&5
2574echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2575if test "${ac_cv_build+set}" = set; then
2576  echo $ECHO_N "(cached) $ECHO_C" >&6
2577else
2578  ac_build_alias=$build_alias
2579test "x$ac_build_alias" = x &&
2580  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2581test "x$ac_build_alias" = x &&
2582  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2583echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2584   { (exit 1); exit 1; }; }
2585ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2586  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2587echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2588   { (exit 1); exit 1; }; }
2589
2590fi
2591{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2592echo "${ECHO_T}$ac_cv_build" >&6; }
2593case $ac_cv_build in
2594*-*-*) ;;
2595*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2596echo "$as_me: error: invalid value of canonical build" >&2;}
2597   { (exit 1); exit 1; }; };;
2598esac
2599build=$ac_cv_build
2600ac_save_IFS=$IFS; IFS='-'
2601set x $ac_cv_build
2602shift
2603build_cpu=$1
2604build_vendor=$2
2605shift; shift
2606# Remember, the first character of IFS is used to create $*,
2607# except with old shells:
2608build_os=$*
2609IFS=$ac_save_IFS
2610case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2611
2612
2613{ echo "$as_me:$LINENO: checking host system type" >&5
2614echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2615if test "${ac_cv_host+set}" = set; then
2616  echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618  if test "x$host_alias" = x; then
2619  ac_cv_host=$ac_cv_build
2620else
2621  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2622    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2623echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2624   { (exit 1); exit 1; }; }
2625fi
2626
2627fi
2628{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2629echo "${ECHO_T}$ac_cv_host" >&6; }
2630case $ac_cv_host in
2631*-*-*) ;;
2632*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2633echo "$as_me: error: invalid value of canonical host" >&2;}
2634   { (exit 1); exit 1; }; };;
2635esac
2636host=$ac_cv_host
2637ac_save_IFS=$IFS; IFS='-'
2638set x $ac_cv_host
2639shift
2640host_cpu=$1
2641host_vendor=$2
2642shift; shift
2643# Remember, the first character of IFS is used to create $*,
2644# except with old shells:
2645host_os=$*
2646IFS=$ac_save_IFS
2647case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2648
2649
2650DEPDIR="${am__leading_dot}deps"
2651
2652ac_config_commands="$ac_config_commands depfiles"
2653
2654
2655am_make=${MAKE-make}
2656cat > confinc << 'END'
2657am__doit:
2658	@echo done
2659.PHONY: am__doit
2660END
2661# If we don't find an include directive, just comment out the code.
2662{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2663echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2664am__include="#"
2665am__quote=
2666_am_result=none
2667# First try GNU make style include.
2668echo "include confinc" > confmf
2669# We grep out `Entering directory' and `Leaving directory'
2670# messages which can occur if `w' ends up in MAKEFLAGS.
2671# In particular we don't look at `^make:' because GNU make might
2672# be invoked under some other name (usually "gmake"), in which
2673# case it prints its new name instead of `make'.
2674if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2675   am__include=include
2676   am__quote=
2677   _am_result=GNU
2678fi
2679# Now try BSD make style include.
2680if test "$am__include" = "#"; then
2681   echo '.include "confinc"' > confmf
2682   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2683      am__include=.include
2684      am__quote="\""
2685      _am_result=BSD
2686   fi
2687fi
2688
2689
2690{ echo "$as_me:$LINENO: result: $_am_result" >&5
2691echo "${ECHO_T}$_am_result" >&6; }
2692rm -f confinc confmf
2693
2694# Check whether --enable-dependency-tracking was given.
2695if test "${enable_dependency_tracking+set}" = set; then
2696  enableval=$enable_dependency_tracking;
2697fi
2698
2699if test "x$enable_dependency_tracking" != xno; then
2700  am_depcomp="$ac_aux_dir/depcomp"
2701  AMDEPBACKSLASH='\'
2702fi
2703
2704
2705if test "x$enable_dependency_tracking" != xno; then
2706  AMDEP_TRUE=
2707  AMDEP_FALSE='#'
2708else
2709  AMDEP_TRUE='#'
2710  AMDEP_FALSE=
2711fi
2712
2713
2714
2715ac_ext=c
2716ac_cpp='$CPP $CPPFLAGS'
2717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720if test -n "$ac_tool_prefix"; then
2721  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2722set dummy ${ac_tool_prefix}gcc; ac_word=$2
2723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2725if test "${ac_cv_prog_CC+set}" = set; then
2726  echo $ECHO_N "(cached) $ECHO_C" >&6
2727else
2728  if test -n "$CC"; then
2729  ac_cv_prog_CC="$CC" # Let the user override the test.
2730else
2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734  IFS=$as_save_IFS
2735  test -z "$as_dir" && as_dir=.
2736  for ac_exec_ext in '' $ac_executable_extensions; do
2737  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2738    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2739    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740    break 2
2741  fi
2742done
2743done
2744IFS=$as_save_IFS
2745
2746fi
2747fi
2748CC=$ac_cv_prog_CC
2749if test -n "$CC"; then
2750  { echo "$as_me:$LINENO: result: $CC" >&5
2751echo "${ECHO_T}$CC" >&6; }
2752else
2753  { echo "$as_me:$LINENO: result: no" >&5
2754echo "${ECHO_T}no" >&6; }
2755fi
2756
2757
2758fi
2759if test -z "$ac_cv_prog_CC"; then
2760  ac_ct_CC=$CC
2761  # Extract the first word of "gcc", so it can be a program name with args.
2762set dummy gcc; ac_word=$2
2763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2765if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2766  echo $ECHO_N "(cached) $ECHO_C" >&6
2767else
2768  if test -n "$ac_ct_CC"; then
2769  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774  IFS=$as_save_IFS
2775  test -z "$as_dir" && as_dir=.
2776  for ac_exec_ext in '' $ac_executable_extensions; do
2777  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2778    ac_cv_prog_ac_ct_CC="gcc"
2779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780    break 2
2781  fi
2782done
2783done
2784IFS=$as_save_IFS
2785
2786fi
2787fi
2788ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789if test -n "$ac_ct_CC"; then
2790  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791echo "${ECHO_T}$ac_ct_CC" >&6; }
2792else
2793  { echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6; }
2795fi
2796
2797  if test "x$ac_ct_CC" = x; then
2798    CC=""
2799  else
2800    case $cross_compiling:$ac_tool_warned in
2801yes:)
2802{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2803whose name does not start with the host triplet.  If you think this
2804configuration is useful to you, please write to autoconf@gnu.org." >&5
2805echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2806whose name does not start with the host triplet.  If you think this
2807configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2808ac_tool_warned=yes ;;
2809esac
2810    CC=$ac_ct_CC
2811  fi
2812else
2813  CC="$ac_cv_prog_CC"
2814fi
2815
2816if test -z "$CC"; then
2817          if test -n "$ac_tool_prefix"; then
2818    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2819set dummy ${ac_tool_prefix}cc; ac_word=$2
2820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2822if test "${ac_cv_prog_CC+set}" = set; then
2823  echo $ECHO_N "(cached) $ECHO_C" >&6
2824else
2825  if test -n "$CC"; then
2826  ac_cv_prog_CC="$CC" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  test -z "$as_dir" && as_dir=.
2833  for ac_exec_ext in '' $ac_executable_extensions; do
2834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2835    ac_cv_prog_CC="${ac_tool_prefix}cc"
2836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845CC=$ac_cv_prog_CC
2846if test -n "$CC"; then
2847  { echo "$as_me:$LINENO: result: $CC" >&5
2848echo "${ECHO_T}$CC" >&6; }
2849else
2850  { echo "$as_me:$LINENO: result: no" >&5
2851echo "${ECHO_T}no" >&6; }
2852fi
2853
2854
2855  fi
2856fi
2857if test -z "$CC"; then
2858  # Extract the first word of "cc", so it can be a program name with args.
2859set dummy cc; ac_word=$2
2860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2862if test "${ac_cv_prog_CC+set}" = set; then
2863  echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865  if test -n "$CC"; then
2866  ac_cv_prog_CC="$CC" # Let the user override the test.
2867else
2868  ac_prog_rejected=no
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872  IFS=$as_save_IFS
2873  test -z "$as_dir" && as_dir=.
2874  for ac_exec_ext in '' $ac_executable_extensions; do
2875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2876    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2877       ac_prog_rejected=yes
2878       continue
2879     fi
2880    ac_cv_prog_CC="cc"
2881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882    break 2
2883  fi
2884done
2885done
2886IFS=$as_save_IFS
2887
2888if test $ac_prog_rejected = yes; then
2889  # We found a bogon in the path, so make sure we never use it.
2890  set dummy $ac_cv_prog_CC
2891  shift
2892  if test $# != 0; then
2893    # We chose a different compiler from the bogus one.
2894    # However, it has the same basename, so the bogon will be chosen
2895    # first if we set CC to just the basename; use the full file name.
2896    shift
2897    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2898  fi
2899fi
2900fi
2901fi
2902CC=$ac_cv_prog_CC
2903if test -n "$CC"; then
2904  { echo "$as_me:$LINENO: result: $CC" >&5
2905echo "${ECHO_T}$CC" >&6; }
2906else
2907  { echo "$as_me:$LINENO: result: no" >&5
2908echo "${ECHO_T}no" >&6; }
2909fi
2910
2911
2912fi
2913if test -z "$CC"; then
2914  if test -n "$ac_tool_prefix"; then
2915  for ac_prog in cl.exe
2916  do
2917    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2921if test "${ac_cv_prog_CC+set}" = set; then
2922  echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924  if test -n "$CC"; then
2925  ac_cv_prog_CC="$CC" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930  IFS=$as_save_IFS
2931  test -z "$as_dir" && as_dir=.
2932  for ac_exec_ext in '' $ac_executable_extensions; do
2933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2934    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936    break 2
2937  fi
2938done
2939done
2940IFS=$as_save_IFS
2941
2942fi
2943fi
2944CC=$ac_cv_prog_CC
2945if test -n "$CC"; then
2946  { echo "$as_me:$LINENO: result: $CC" >&5
2947echo "${ECHO_T}$CC" >&6; }
2948else
2949  { echo "$as_me:$LINENO: result: no" >&5
2950echo "${ECHO_T}no" >&6; }
2951fi
2952
2953
2954    test -n "$CC" && break
2955  done
2956fi
2957if test -z "$CC"; then
2958  ac_ct_CC=$CC
2959  for ac_prog in cl.exe
2960do
2961  # Extract the first word of "$ac_prog", so it can be a program name with args.
2962set dummy $ac_prog; ac_word=$2
2963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2965if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2966  echo $ECHO_N "(cached) $ECHO_C" >&6
2967else
2968  if test -n "$ac_ct_CC"; then
2969  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970else
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974  IFS=$as_save_IFS
2975  test -z "$as_dir" && as_dir=.
2976  for ac_exec_ext in '' $ac_executable_extensions; do
2977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2978    ac_cv_prog_ac_ct_CC="$ac_prog"
2979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980    break 2
2981  fi
2982done
2983done
2984IFS=$as_save_IFS
2985
2986fi
2987fi
2988ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989if test -n "$ac_ct_CC"; then
2990  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2991echo "${ECHO_T}$ac_ct_CC" >&6; }
2992else
2993  { echo "$as_me:$LINENO: result: no" >&5
2994echo "${ECHO_T}no" >&6; }
2995fi
2996
2997
2998  test -n "$ac_ct_CC" && break
2999done
3000
3001  if test "x$ac_ct_CC" = x; then
3002    CC=""
3003  else
3004    case $cross_compiling:$ac_tool_warned in
3005yes:)
3006{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3007whose name does not start with the host triplet.  If you think this
3008configuration is useful to you, please write to autoconf@gnu.org." >&5
3009echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3010whose name does not start with the host triplet.  If you think this
3011configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3012ac_tool_warned=yes ;;
3013esac
3014    CC=$ac_ct_CC
3015  fi
3016fi
3017
3018fi
3019
3020
3021test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3022See \`config.log' for more details." >&5
3023echo "$as_me: error: no acceptable C compiler found in \$PATH
3024See \`config.log' for more details." >&2;}
3025   { (exit 1); exit 1; }; }
3026
3027# Provide some information about the compiler.
3028echo "$as_me:$LINENO: checking for C compiler version" >&5
3029ac_compiler=`set X $ac_compile; echo $2`
3030{ (ac_try="$ac_compiler --version >&5"
3031case "(($ac_try" in
3032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033  *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036  (eval "$ac_compiler --version >&5") 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }
3040{ (ac_try="$ac_compiler -v >&5"
3041case "(($ac_try" in
3042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043  *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046  (eval "$ac_compiler -v >&5") 2>&5
3047  ac_status=$?
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); }
3050{ (ac_try="$ac_compiler -V >&5"
3051case "(($ac_try" in
3052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053  *) ac_try_echo=$ac_try;;
3054esac
3055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056  (eval "$ac_compiler -V >&5") 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }
3060
3061cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067
3068int
3069main ()
3070{
3071
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076ac_clean_files_save=$ac_clean_files
3077ac_clean_files="$ac_clean_files a.out a.exe b.out"
3078# Try to create an executable without -o first, disregard a.out.
3079# It will help us diagnose broken compilers, and finding out an intuition
3080# of exeext.
3081{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3082echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3083ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3084#
3085# List of possible output files, starting from the most likely.
3086# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3087# only as a last resort.  b.out is created by i960 compilers.
3088ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3089#
3090# The IRIX 6 linker writes into existing files which may not be
3091# executable, retaining their permissions.  Remove them first so a
3092# subsequent execution test works.
3093ac_rmfiles=
3094for ac_file in $ac_files
3095do
3096  case $ac_file in
3097    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3098    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3099  esac
3100done
3101rm -f $ac_rmfiles
3102
3103if { (ac_try="$ac_link_default"
3104case "(($ac_try" in
3105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106  *) ac_try_echo=$ac_try;;
3107esac
3108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109  (eval "$ac_link_default") 2>&5
3110  ac_status=$?
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); }; then
3113  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3114# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3115# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3116# so that the user can short-circuit this test for compilers unknown to
3117# Autoconf.
3118for ac_file in $ac_files
3119do
3120  test -f "$ac_file" || continue
3121  case $ac_file in
3122    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3123	;;
3124    [ab].out )
3125	# We found the default executable, but exeext='' is most
3126	# certainly right.
3127	break;;
3128    *.* )
3129        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3130	then :; else
3131	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132	fi
3133	# We set ac_cv_exeext here because the later test for it is not
3134	# safe: cross compilers may not add the suffix if given an `-o'
3135	# argument, so we may need to know it at that point already.
3136	# Even if this section looks crufty: it has the advantage of
3137	# actually working.
3138	break;;
3139    * )
3140	break;;
3141  esac
3142done
3143test "$ac_cv_exeext" = no && ac_cv_exeext=
3144
3145else
3146  echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3150See \`config.log' for more details." >&5
3151echo "$as_me: error: C compiler cannot create executables
3152See \`config.log' for more details." >&2;}
3153   { (exit 77); exit 77; }; }
3154fi
3155
3156ac_exeext=$ac_cv_exeext
3157{ echo "$as_me:$LINENO: result: $ac_file" >&5
3158echo "${ECHO_T}$ac_file" >&6; }
3159
3160# Check that the compiler produces executables we can run.  If not, either
3161# the compiler is broken, or we cross compile.
3162{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3163echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3164# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3165# If not cross compiling, check that we can run a simple program.
3166if test "$cross_compiling" != yes; then
3167  if { ac_try='./$ac_file'
3168  { (case "(($ac_try" in
3169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170  *) ac_try_echo=$ac_try;;
3171esac
3172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173  (eval "$ac_try") 2>&5
3174  ac_status=$?
3175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); }; }; then
3177    cross_compiling=no
3178  else
3179    if test "$cross_compiling" = maybe; then
3180	cross_compiling=yes
3181    else
3182	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3183If you meant to cross compile, use \`--host'.
3184See \`config.log' for more details." >&5
3185echo "$as_me: error: cannot run C compiled programs.
3186If you meant to cross compile, use \`--host'.
3187See \`config.log' for more details." >&2;}
3188   { (exit 1); exit 1; }; }
3189    fi
3190  fi
3191fi
3192{ echo "$as_me:$LINENO: result: yes" >&5
3193echo "${ECHO_T}yes" >&6; }
3194
3195rm -f a.out a.exe conftest$ac_cv_exeext b.out
3196ac_clean_files=$ac_clean_files_save
3197# Check that the compiler produces executables we can run.  If not, either
3198# the compiler is broken, or we cross compile.
3199{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3200echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3201{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3202echo "${ECHO_T}$cross_compiling" >&6; }
3203
3204{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3205echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3206if { (ac_try="$ac_link"
3207case "(($ac_try" in
3208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209  *) ac_try_echo=$ac_try;;
3210esac
3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212  (eval "$ac_link") 2>&5
3213  ac_status=$?
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); }; then
3216  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3217# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3218# work properly (i.e., refer to `conftest.exe'), while it won't with
3219# `rm'.
3220for ac_file in conftest.exe conftest conftest.*; do
3221  test -f "$ac_file" || continue
3222  case $ac_file in
3223    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3224    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225	  break;;
3226    * ) break;;
3227  esac
3228done
3229else
3230  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3231See \`config.log' for more details." >&5
3232echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3233See \`config.log' for more details." >&2;}
3234   { (exit 1); exit 1; }; }
3235fi
3236
3237rm -f conftest$ac_cv_exeext
3238{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3239echo "${ECHO_T}$ac_cv_exeext" >&6; }
3240
3241rm -f conftest.$ac_ext
3242EXEEXT=$ac_cv_exeext
3243ac_exeext=$EXEEXT
3244{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3245echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3246if test "${ac_cv_objext+set}" = set; then
3247  echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249  cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h.  */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h.  */
3255
3256int
3257main ()
3258{
3259
3260  ;
3261  return 0;
3262}
3263_ACEOF
3264rm -f conftest.o conftest.obj
3265if { (ac_try="$ac_compile"
3266case "(($ac_try" in
3267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268  *) ac_try_echo=$ac_try;;
3269esac
3270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271  (eval "$ac_compile") 2>&5
3272  ac_status=$?
3273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274  (exit $ac_status); }; then
3275  for ac_file in conftest.o conftest.obj conftest.*; do
3276  test -f "$ac_file" || continue;
3277  case $ac_file in
3278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3279    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3280       break;;
3281  esac
3282done
3283else
3284  echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3288See \`config.log' for more details." >&5
3289echo "$as_me: error: cannot compute suffix of object files: cannot compile
3290See \`config.log' for more details." >&2;}
3291   { (exit 1); exit 1; }; }
3292fi
3293
3294rm -f conftest.$ac_cv_objext conftest.$ac_ext
3295fi
3296{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3297echo "${ECHO_T}$ac_cv_objext" >&6; }
3298OBJEXT=$ac_cv_objext
3299ac_objext=$OBJEXT
3300{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3301echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3302if test "${ac_cv_c_compiler_gnu+set}" = set; then
3303  echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305  cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h.  */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h.  */
3311
3312int
3313main ()
3314{
3315#ifndef __GNUC__
3316       choke me
3317#endif
3318
3319  ;
3320  return 0;
3321}
3322_ACEOF
3323rm -f conftest.$ac_objext
3324if { (ac_try="$ac_compile"
3325case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330  (eval "$ac_compile") 2>conftest.er1
3331  ac_status=$?
3332  grep -v '^ *+' conftest.er1 >conftest.err
3333  rm -f conftest.er1
3334  cat conftest.err >&5
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); } &&
3337	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3338  { (case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343  (eval "$ac_try") 2>&5
3344  ac_status=$?
3345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346  (exit $ac_status); }; } &&
3347	 { ac_try='test -s conftest.$ac_objext'
3348  { (case "(($ac_try" in
3349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350  *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353  (eval "$ac_try") 2>&5
3354  ac_status=$?
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); }; }; then
3357  ac_compiler_gnu=yes
3358else
3359  echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362	ac_compiler_gnu=no
3363fi
3364
3365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366ac_cv_c_compiler_gnu=$ac_compiler_gnu
3367
3368fi
3369{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3371GCC=`test $ac_compiler_gnu = yes && echo yes`
3372ac_test_CFLAGS=${CFLAGS+set}
3373ac_save_CFLAGS=$CFLAGS
3374{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3375echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3376if test "${ac_cv_prog_cc_g+set}" = set; then
3377  echo $ECHO_N "(cached) $ECHO_C" >&6
3378else
3379  ac_save_c_werror_flag=$ac_c_werror_flag
3380   ac_c_werror_flag=yes
3381   ac_cv_prog_cc_g=no
3382   CFLAGS="-g"
3383   cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h.  */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h.  */
3389
3390int
3391main ()
3392{
3393
3394  ;
3395  return 0;
3396}
3397_ACEOF
3398rm -f conftest.$ac_objext
3399if { (ac_try="$ac_compile"
3400case "(($ac_try" in
3401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402  *) ac_try_echo=$ac_try;;
3403esac
3404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405  (eval "$ac_compile") 2>conftest.er1
3406  ac_status=$?
3407  grep -v '^ *+' conftest.er1 >conftest.err
3408  rm -f conftest.er1
3409  cat conftest.err >&5
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); } &&
3412	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3413  { (case "(($ac_try" in
3414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415  *) ac_try_echo=$ac_try;;
3416esac
3417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418  (eval "$ac_try") 2>&5
3419  ac_status=$?
3420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421  (exit $ac_status); }; } &&
3422	 { ac_try='test -s conftest.$ac_objext'
3423  { (case "(($ac_try" in
3424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425  *) ac_try_echo=$ac_try;;
3426esac
3427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428  (eval "$ac_try") 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }; }; then
3432  ac_cv_prog_cc_g=yes
3433else
3434  echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
3437	CFLAGS=""
3438      cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h.  */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h.  */
3444
3445int
3446main ()
3447{
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.$ac_objext
3454if { (ac_try="$ac_compile"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460  (eval "$ac_compile") 2>conftest.er1
3461  ac_status=$?
3462  grep -v '^ *+' conftest.er1 >conftest.err
3463  rm -f conftest.er1
3464  cat conftest.err >&5
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); } &&
3467	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3468  { (case "(($ac_try" in
3469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470  *) ac_try_echo=$ac_try;;
3471esac
3472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473  (eval "$ac_try") 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }; } &&
3477	 { ac_try='test -s conftest.$ac_objext'
3478  { (case "(($ac_try" in
3479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480  *) ac_try_echo=$ac_try;;
3481esac
3482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483  (eval "$ac_try") 2>&5
3484  ac_status=$?
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); }; }; then
3487  :
3488else
3489  echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
3492	ac_c_werror_flag=$ac_save_c_werror_flag
3493	 CFLAGS="-g"
3494	 cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h.  */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h.  */
3500
3501int
3502main ()
3503{
3504
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509rm -f conftest.$ac_objext
3510if { (ac_try="$ac_compile"
3511case "(($ac_try" in
3512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513  *) ac_try_echo=$ac_try;;
3514esac
3515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516  (eval "$ac_compile") 2>conftest.er1
3517  ac_status=$?
3518  grep -v '^ *+' conftest.er1 >conftest.err
3519  rm -f conftest.er1
3520  cat conftest.err >&5
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); } &&
3523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3524  { (case "(($ac_try" in
3525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526  *) ac_try_echo=$ac_try;;
3527esac
3528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529  (eval "$ac_try") 2>&5
3530  ac_status=$?
3531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532  (exit $ac_status); }; } &&
3533	 { ac_try='test -s conftest.$ac_objext'
3534  { (case "(($ac_try" in
3535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536  *) ac_try_echo=$ac_try;;
3537esac
3538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539  (eval "$ac_try") 2>&5
3540  ac_status=$?
3541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); }; }; then
3543  ac_cv_prog_cc_g=yes
3544else
3545  echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548
3549fi
3550
3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552fi
3553
3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556
3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558   ac_c_werror_flag=$ac_save_c_werror_flag
3559fi
3560{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3561echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3562if test "$ac_test_CFLAGS" = set; then
3563  CFLAGS=$ac_save_CFLAGS
3564elif test $ac_cv_prog_cc_g = yes; then
3565  if test "$GCC" = yes; then
3566    CFLAGS="-g -O2"
3567  else
3568    CFLAGS="-g"
3569  fi
3570else
3571  if test "$GCC" = yes; then
3572    CFLAGS="-O2"
3573  else
3574    CFLAGS=
3575  fi
3576fi
3577{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3578echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3579if test "${ac_cv_prog_cc_c89+set}" = set; then
3580  echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582  ac_cv_prog_cc_c89=no
3583ac_save_CC=$CC
3584cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h.  */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h.  */
3590#include <stdarg.h>
3591#include <stdio.h>
3592#include <sys/types.h>
3593#include <sys/stat.h>
3594/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3595struct buf { int x; };
3596FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597static char *e (p, i)
3598     char **p;
3599     int i;
3600{
3601  return p[i];
3602}
3603static char *f (char * (*g) (char **, int), char **p, ...)
3604{
3605  char *s;
3606  va_list v;
3607  va_start (v,p);
3608  s = g (p, va_arg (v,int));
3609  va_end (v);
3610  return s;
3611}
3612
3613/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3614   function prototypes and stuff, but not '\xHH' hex character constants.
3615   These don't provoke an error unfortunately, instead are silently treated
3616   as 'x'.  The following induces an error, until -std is added to get
3617   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3618   array size at least.  It's necessary to write '\x00'==0 to get something
3619   that's true only with -std.  */
3620int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621
3622/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3623   inside strings and character constants.  */
3624#define FOO(x) 'x'
3625int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3626
3627int test (int i, double x);
3628struct s1 {int (*f) (int a);};
3629struct s2 {int (*f) (double a);};
3630int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631int argc;
3632char **argv;
3633int
3634main ()
3635{
3636return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3637  ;
3638  return 0;
3639}
3640_ACEOF
3641for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3642	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3643do
3644  CC="$ac_save_CC $ac_arg"
3645  rm -f conftest.$ac_objext
3646if { (ac_try="$ac_compile"
3647case "(($ac_try" in
3648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649  *) ac_try_echo=$ac_try;;
3650esac
3651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652  (eval "$ac_compile") 2>conftest.er1
3653  ac_status=$?
3654  grep -v '^ *+' conftest.er1 >conftest.err
3655  rm -f conftest.er1
3656  cat conftest.err >&5
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); } &&
3659	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3660  { (case "(($ac_try" in
3661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662  *) ac_try_echo=$ac_try;;
3663esac
3664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665  (eval "$ac_try") 2>&5
3666  ac_status=$?
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); }; } &&
3669	 { ac_try='test -s conftest.$ac_objext'
3670  { (case "(($ac_try" in
3671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672  *) ac_try_echo=$ac_try;;
3673esac
3674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675  (eval "$ac_try") 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; }; then
3679  ac_cv_prog_cc_c89=$ac_arg
3680else
3681  echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684
3685fi
3686
3687rm -f core conftest.err conftest.$ac_objext
3688  test "x$ac_cv_prog_cc_c89" != "xno" && break
3689done
3690rm -f conftest.$ac_ext
3691CC=$ac_save_CC
3692
3693fi
3694# AC_CACHE_VAL
3695case "x$ac_cv_prog_cc_c89" in
3696  x)
3697    { echo "$as_me:$LINENO: result: none needed" >&5
3698echo "${ECHO_T}none needed" >&6; } ;;
3699  xno)
3700    { echo "$as_me:$LINENO: result: unsupported" >&5
3701echo "${ECHO_T}unsupported" >&6; } ;;
3702  *)
3703    CC="$CC $ac_cv_prog_cc_c89"
3704    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3705echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3706esac
3707
3708
3709ac_ext=c
3710ac_cpp='$CPP $CPPFLAGS'
3711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714
3715depcc="$CC"   am_compiler_list=
3716
3717{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3718echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3719if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3720  echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3723  # We make a subdir and do the tests there.  Otherwise we can end up
3724  # making bogus files that we don't know about and never remove.  For
3725  # instance it was reported that on HP-UX the gcc test will end up
3726  # making a dummy file named `D' -- because `-MD' means `put the output
3727  # in D'.
3728  mkdir conftest.dir
3729  # Copy depcomp to subdir because otherwise we won't find it if we're
3730  # using a relative directory.
3731  cp "$am_depcomp" conftest.dir
3732  cd conftest.dir
3733  # We will build objects and dependencies in a subdirectory because
3734  # it helps to detect inapplicable dependency modes.  For instance
3735  # both Tru64's cc and ICC support -MD to output dependencies as a
3736  # side effect of compilation, but ICC will put the dependencies in
3737  # the current directory while Tru64 will put them in the object
3738  # directory.
3739  mkdir sub
3740
3741  am_cv_CC_dependencies_compiler_type=none
3742  if test "$am_compiler_list" = ""; then
3743     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3744  fi
3745  for depmode in $am_compiler_list; do
3746    # Setup a source with many dependencies, because some compilers
3747    # like to wrap large dependency lists on column 80 (with \), and
3748    # we should not choose a depcomp mode which is confused by this.
3749    #
3750    # We need to recreate these files for each test, as the compiler may
3751    # overwrite some of them when testing with obscure command lines.
3752    # This happens at least with the AIX C compiler.
3753    : > sub/conftest.c
3754    for i in 1 2 3 4 5 6; do
3755      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3756      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3757      # Solaris 8's {/usr,}/bin/sh.
3758      touch sub/conftst$i.h
3759    done
3760    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3761
3762    case $depmode in
3763    nosideeffect)
3764      # after this tag, mechanisms are not by side-effect, so they'll
3765      # only be used when explicitly requested
3766      if test "x$enable_dependency_tracking" = xyes; then
3767	continue
3768      else
3769	break
3770      fi
3771      ;;
3772    none) break ;;
3773    esac
3774    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3775    # mode.  It turns out that the SunPro C++ compiler does not properly
3776    # handle `-M -o', and we need to detect this.
3777    if depmode=$depmode \
3778       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3779       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3780       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3781         >/dev/null 2>conftest.err &&
3782       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3783       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3784       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3785      # icc doesn't choke on unknown options, it will just issue warnings
3786      # or remarks (even with -Werror).  So we grep stderr for any message
3787      # that says an option was ignored or not supported.
3788      # When given -MP, icc 7.0 and 7.1 complain thusly:
3789      #   icc: Command line warning: ignoring option '-M'; no argument required
3790      # The diagnosis changed in icc 8.0:
3791      #   icc: Command line remark: option '-MP' not supported
3792      if (grep 'ignoring option' conftest.err ||
3793          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3794        am_cv_CC_dependencies_compiler_type=$depmode
3795        break
3796      fi
3797    fi
3798  done
3799
3800  cd ..
3801  rm -rf conftest.dir
3802else
3803  am_cv_CC_dependencies_compiler_type=none
3804fi
3805
3806fi
3807{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3808echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3809CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3810
3811
3812
3813if
3814  test "x$enable_dependency_tracking" != xno \
3815  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3816  am__fastdepCC_TRUE=
3817  am__fastdepCC_FALSE='#'
3818else
3819  am__fastdepCC_TRUE='#'
3820  am__fastdepCC_FALSE=
3821fi
3822
3823
3824{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3825echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3826if test "${lt_cv_path_SED+set}" = set; then
3827  echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
3829  # Loop through the user's path and test for sed and gsed.
3830# Then use that list of sed's as ones to test for truncation.
3831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832for as_dir in $PATH
3833do
3834  IFS=$as_save_IFS
3835  test -z "$as_dir" && as_dir=.
3836  for lt_ac_prog in sed gsed; do
3837    for ac_exec_ext in '' $ac_executable_extensions; do
3838      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3839        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3840      fi
3841    done
3842  done
3843done
3844lt_ac_max=0
3845lt_ac_count=0
3846# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3847# along with /bin/sed that truncates output.
3848for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3849  test ! -f $lt_ac_sed && continue
3850  cat /dev/null > conftest.in
3851  lt_ac_count=0
3852  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3853  # Check for GNU sed and select it if it is found.
3854  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3855    lt_cv_path_SED=$lt_ac_sed
3856    break
3857  fi
3858  while true; do
3859    cat conftest.in conftest.in >conftest.tmp
3860    mv conftest.tmp conftest.in
3861    cp conftest.in conftest.nl
3862    echo >>conftest.nl
3863    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3864    cmp -s conftest.out conftest.nl || break
3865    # 10000 chars as input seems more than enough
3866    test $lt_ac_count -gt 10 && break
3867    lt_ac_count=`expr $lt_ac_count + 1`
3868    if test $lt_ac_count -gt $lt_ac_max; then
3869      lt_ac_max=$lt_ac_count
3870      lt_cv_path_SED=$lt_ac_sed
3871    fi
3872  done
3873done
3874
3875fi
3876
3877SED=$lt_cv_path_SED
3878{ echo "$as_me:$LINENO: result: $SED" >&5
3879echo "${ECHO_T}$SED" >&6; }
3880
3881{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3882echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3883if test "${ac_cv_path_GREP+set}" = set; then
3884  echo $ECHO_N "(cached) $ECHO_C" >&6
3885else
3886  # Extract the first word of "grep ggrep" to use in msg output
3887if test -z "$GREP"; then
3888set dummy grep ggrep; ac_prog_name=$2
3889if test "${ac_cv_path_GREP+set}" = set; then
3890  echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892  ac_path_GREP_found=false
3893# Loop through the user's path and test for each of PROGNAME-LIST
3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3896do
3897  IFS=$as_save_IFS
3898  test -z "$as_dir" && as_dir=.
3899  for ac_prog in grep ggrep; do
3900  for ac_exec_ext in '' $ac_executable_extensions; do
3901    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3902    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3903    # Check for GNU ac_path_GREP and select it if it is found.
3904  # Check for GNU $ac_path_GREP
3905case `"$ac_path_GREP" --version 2>&1` in
3906*GNU*)
3907  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3908*)
3909  ac_count=0
3910  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3911  while :
3912  do
3913    cat "conftest.in" "conftest.in" >"conftest.tmp"
3914    mv "conftest.tmp" "conftest.in"
3915    cp "conftest.in" "conftest.nl"
3916    echo 'GREP' >> "conftest.nl"
3917    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3918    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3919    ac_count=`expr $ac_count + 1`
3920    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3921      # Best one so far, save it but keep looking for a better one
3922      ac_cv_path_GREP="$ac_path_GREP"
3923      ac_path_GREP_max=$ac_count
3924    fi
3925    # 10*(2^10) chars as input seems more than enough
3926    test $ac_count -gt 10 && break
3927  done
3928  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929esac
3930
3931
3932    $ac_path_GREP_found && break 3
3933  done
3934done
3935
3936done
3937IFS=$as_save_IFS
3938
3939
3940fi
3941
3942GREP="$ac_cv_path_GREP"
3943if test -z "$GREP"; then
3944  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3945echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3946   { (exit 1); exit 1; }; }
3947fi
3948
3949else
3950  ac_cv_path_GREP=$GREP
3951fi
3952
3953
3954fi
3955{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3956echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3957 GREP="$ac_cv_path_GREP"
3958
3959
3960{ echo "$as_me:$LINENO: checking for egrep" >&5
3961echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3962if test "${ac_cv_path_EGREP+set}" = set; then
3963  echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3966   then ac_cv_path_EGREP="$GREP -E"
3967   else
3968     # Extract the first word of "egrep" to use in msg output
3969if test -z "$EGREP"; then
3970set dummy egrep; ac_prog_name=$2
3971if test "${ac_cv_path_EGREP+set}" = set; then
3972  echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974  ac_path_EGREP_found=false
3975# Loop through the user's path and test for each of PROGNAME-LIST
3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978do
3979  IFS=$as_save_IFS
3980  test -z "$as_dir" && as_dir=.
3981  for ac_prog in egrep; do
3982  for ac_exec_ext in '' $ac_executable_extensions; do
3983    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3984    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3985    # Check for GNU ac_path_EGREP and select it if it is found.
3986  # Check for GNU $ac_path_EGREP
3987case `"$ac_path_EGREP" --version 2>&1` in
3988*GNU*)
3989  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990*)
3991  ac_count=0
3992  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3993  while :
3994  do
3995    cat "conftest.in" "conftest.in" >"conftest.tmp"
3996    mv "conftest.tmp" "conftest.in"
3997    cp "conftest.in" "conftest.nl"
3998    echo 'EGREP' >> "conftest.nl"
3999    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4000    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4001    ac_count=`expr $ac_count + 1`
4002    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4003      # Best one so far, save it but keep looking for a better one
4004      ac_cv_path_EGREP="$ac_path_EGREP"
4005      ac_path_EGREP_max=$ac_count
4006    fi
4007    # 10*(2^10) chars as input seems more than enough
4008    test $ac_count -gt 10 && break
4009  done
4010  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011esac
4012
4013
4014    $ac_path_EGREP_found && break 3
4015  done
4016done
4017
4018done
4019IFS=$as_save_IFS
4020
4021
4022fi
4023
4024EGREP="$ac_cv_path_EGREP"
4025if test -z "$EGREP"; then
4026  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4027echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4028   { (exit 1); exit 1; }; }
4029fi
4030
4031else
4032  ac_cv_path_EGREP=$EGREP
4033fi
4034
4035
4036   fi
4037fi
4038{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4039echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4040 EGREP="$ac_cv_path_EGREP"
4041
4042
4043
4044# Check whether --with-gnu-ld was given.
4045if test "${with_gnu_ld+set}" = set; then
4046  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4047else
4048  with_gnu_ld=no
4049fi
4050
4051ac_prog=ld
4052if test "$GCC" = yes; then
4053  # Check if gcc -print-prog-name=ld gives a path.
4054  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4055echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4056  case $host in
4057  *-*-mingw*)
4058    # gcc leaves a trailing carriage return which upsets mingw
4059    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4060  *)
4061    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4062  esac
4063  case $ac_prog in
4064    # Accept absolute paths.
4065    [\\/]* | ?:[\\/]*)
4066      re_direlt='/[^/][^/]*/\.\./'
4067      # Canonicalize the pathname of ld
4068      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4069      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4070	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4071      done
4072      test -z "$LD" && LD="$ac_prog"
4073      ;;
4074  "")
4075    # If it fails, then pretend we aren't using GCC.
4076    ac_prog=ld
4077    ;;
4078  *)
4079    # If it is relative, then search for the first ld in PATH.
4080    with_gnu_ld=unknown
4081    ;;
4082  esac
4083elif test "$with_gnu_ld" = yes; then
4084  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4085echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4086else
4087  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4088echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4089fi
4090if test "${lt_cv_path_LD+set}" = set; then
4091  echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093  if test -z "$LD"; then
4094  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4095  for ac_dir in $PATH; do
4096    IFS="$lt_save_ifs"
4097    test -z "$ac_dir" && ac_dir=.
4098    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4099      lt_cv_path_LD="$ac_dir/$ac_prog"
4100      # Check to see if the program is GNU ld.  I'd rather use --version,
4101      # but apparently some variants of GNU ld only accept -v.
4102      # Break only if it was the GNU/non-GNU ld that we prefer.
4103      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4104      *GNU* | *'with BFD'*)
4105	test "$with_gnu_ld" != no && break
4106	;;
4107      *)
4108	test "$with_gnu_ld" != yes && break
4109	;;
4110      esac
4111    fi
4112  done
4113  IFS="$lt_save_ifs"
4114else
4115  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4116fi
4117fi
4118
4119LD="$lt_cv_path_LD"
4120if test -n "$LD"; then
4121  { echo "$as_me:$LINENO: result: $LD" >&5
4122echo "${ECHO_T}$LD" >&6; }
4123else
4124  { echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6; }
4126fi
4127test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4128echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4129   { (exit 1); exit 1; }; }
4130{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4131echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4132if test "${lt_cv_prog_gnu_ld+set}" = set; then
4133  echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4136case `$LD -v 2>&1 </dev/null` in
4137*GNU* | *'with BFD'*)
4138  lt_cv_prog_gnu_ld=yes
4139  ;;
4140*)
4141  lt_cv_prog_gnu_ld=no
4142  ;;
4143esac
4144fi
4145{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4146echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4147with_gnu_ld=$lt_cv_prog_gnu_ld
4148
4149
4150{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4151echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4152if test "${lt_cv_ld_reload_flag+set}" = set; then
4153  echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155  lt_cv_ld_reload_flag='-r'
4156fi
4157{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4158echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4159reload_flag=$lt_cv_ld_reload_flag
4160case $reload_flag in
4161"" | " "*) ;;
4162*) reload_flag=" $reload_flag" ;;
4163esac
4164reload_cmds='$LD$reload_flag -o $output$reload_objs'
4165case $host_os in
4166  darwin*)
4167    if test "$GCC" = yes; then
4168      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4169    else
4170      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4171    fi
4172    ;;
4173esac
4174
4175{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4176echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4177if test "${lt_cv_path_NM+set}" = set; then
4178  echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180  if test -n "$NM"; then
4181  # Let the user override the test.
4182  lt_cv_path_NM="$NM"
4183else
4184  lt_nm_to_check="${ac_tool_prefix}nm"
4185  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4186    lt_nm_to_check="$lt_nm_to_check nm"
4187  fi
4188  for lt_tmp_nm in $lt_nm_to_check; do
4189    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4190    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4191      IFS="$lt_save_ifs"
4192      test -z "$ac_dir" && ac_dir=.
4193      tmp_nm="$ac_dir/$lt_tmp_nm"
4194      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4195	# Check to see if the nm accepts a BSD-compat flag.
4196	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4197	#   nm: unknown option "B" ignored
4198	# Tru64's nm complains that /dev/null is an invalid object file
4199	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4200	*/dev/null* | *'Invalid file or object type'*)
4201	  lt_cv_path_NM="$tmp_nm -B"
4202	  break
4203	  ;;
4204	*)
4205	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4206	  */dev/null*)
4207	    lt_cv_path_NM="$tmp_nm -p"
4208	    break
4209	    ;;
4210	  *)
4211	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4212	    continue # so that we can try to find one that supports BSD flags
4213	    ;;
4214	  esac
4215	  ;;
4216	esac
4217      fi
4218    done
4219    IFS="$lt_save_ifs"
4220  done
4221  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4222fi
4223fi
4224{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4225echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4226NM="$lt_cv_path_NM"
4227
4228{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4229echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4230LN_S=$as_ln_s
4231if test "$LN_S" = "ln -s"; then
4232  { echo "$as_me:$LINENO: result: yes" >&5
4233echo "${ECHO_T}yes" >&6; }
4234else
4235  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4236echo "${ECHO_T}no, using $LN_S" >&6; }
4237fi
4238
4239{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4240echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4241if test "${lt_cv_deplibs_check_method+set}" = set; then
4242  echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244  lt_cv_file_magic_cmd='$MAGIC_CMD'
4245lt_cv_file_magic_test_file=
4246lt_cv_deplibs_check_method='unknown'
4247# Need to set the preceding variable on all platforms that support
4248# interlibrary dependencies.
4249# 'none' -- dependencies not supported.
4250# `unknown' -- same as none, but documents that we really don't know.
4251# 'pass_all' -- all dependencies passed with no checks.
4252# 'test_compile' -- check by making test program.
4253# 'file_magic [[regex]]' -- check by looking for files in library path
4254# which responds to the $file_magic_cmd with a given extended regex.
4255# If you have `file' or equivalent on your system and you're not sure
4256# whether `pass_all' will *always* work, you probably want this one.
4257
4258case $host_os in
4259aix4* | aix5*)
4260  lt_cv_deplibs_check_method=pass_all
4261  ;;
4262
4263beos*)
4264  lt_cv_deplibs_check_method=pass_all
4265  ;;
4266
4267bsdi[45]*)
4268  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4269  lt_cv_file_magic_cmd='/usr/bin/file -L'
4270  lt_cv_file_magic_test_file=/shlib/libc.so
4271  ;;
4272
4273cygwin*)
4274  # func_win32_libid is a shell function defined in ltmain.sh
4275  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4276  lt_cv_file_magic_cmd='func_win32_libid'
4277  ;;
4278
4279mingw* | pw32*)
4280  # Base MSYS/MinGW do not provide the 'file' command needed by
4281  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4282  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4283  lt_cv_file_magic_cmd='$OBJDUMP -f'
4284  ;;
4285
4286darwin* | rhapsody*)
4287  lt_cv_deplibs_check_method=pass_all
4288  ;;
4289
4290freebsd* | dragonfly*)
4291  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4292    case $host_cpu in
4293    i*86 )
4294      # Not sure whether the presence of OpenBSD here was a mistake.
4295      # Let's accept both of them until this is cleared up.
4296      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4297      lt_cv_file_magic_cmd=/usr/bin/file
4298      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4299      ;;
4300    esac
4301  else
4302    lt_cv_deplibs_check_method=pass_all
4303  fi
4304  ;;
4305
4306gnu*)
4307  lt_cv_deplibs_check_method=pass_all
4308  ;;
4309
4310hpux10.20* | hpux11*)
4311  lt_cv_file_magic_cmd=/usr/bin/file
4312  case $host_cpu in
4313  ia64*)
4314    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4315    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4316    ;;
4317  hppa*64*)
4318    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]'
4319    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4320    ;;
4321  *)
4322    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4323    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4324    ;;
4325  esac
4326  ;;
4327
4328interix3*)
4329  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4330  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4331  ;;
4332
4333irix5* | irix6* | nonstopux*)
4334  case $LD in
4335  *-32|*"-32 ") libmagic=32-bit;;
4336  *-n32|*"-n32 ") libmagic=N32;;
4337  *-64|*"-64 ") libmagic=64-bit;;
4338  *) libmagic=never-match;;
4339  esac
4340  lt_cv_deplibs_check_method=pass_all
4341  ;;
4342
4343# This must be Linux ELF.
4344linux* | k*bsd*-gnu)
4345  lt_cv_deplibs_check_method=pass_all
4346  ;;
4347
4348netbsd* | netbsdelf*-gnu)
4349  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4350    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4351  else
4352    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4353  fi
4354  ;;
4355
4356newos6*)
4357  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4358  lt_cv_file_magic_cmd=/usr/bin/file
4359  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4360  ;;
4361
4362nto-qnx*)
4363  lt_cv_deplibs_check_method=unknown
4364  ;;
4365
4366openbsd*)
4367  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4368    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4369  else
4370    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4371  fi
4372  ;;
4373
4374osf3* | osf4* | osf5*)
4375  lt_cv_deplibs_check_method=pass_all
4376  ;;
4377
4378solaris*)
4379  lt_cv_deplibs_check_method=pass_all
4380  ;;
4381
4382sysv4 | sysv4.3*)
4383  case $host_vendor in
4384  motorola)
4385    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]'
4386    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4387    ;;
4388  ncr)
4389    lt_cv_deplibs_check_method=pass_all
4390    ;;
4391  sequent)
4392    lt_cv_file_magic_cmd='/bin/file'
4393    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4394    ;;
4395  sni)
4396    lt_cv_file_magic_cmd='/bin/file'
4397    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4398    lt_cv_file_magic_test_file=/lib/libc.so
4399    ;;
4400  siemens)
4401    lt_cv_deplibs_check_method=pass_all
4402    ;;
4403  pc)
4404    lt_cv_deplibs_check_method=pass_all
4405    ;;
4406  esac
4407  ;;
4408
4409sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4410  lt_cv_deplibs_check_method=pass_all
4411  ;;
4412esac
4413
4414fi
4415{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4416echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4417file_magic_cmd=$lt_cv_file_magic_cmd
4418deplibs_check_method=$lt_cv_deplibs_check_method
4419test -z "$deplibs_check_method" && deplibs_check_method=unknown
4420
4421
4422
4423
4424# If no C compiler was specified, use CC.
4425LTCC=${LTCC-"$CC"}
4426
4427# If no C compiler flags were specified, use CFLAGS.
4428LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4429
4430# Allow CC to be a program name with arguments.
4431compiler=$CC
4432
4433
4434# Check whether --enable-libtool-lock was given.
4435if test "${enable_libtool_lock+set}" = set; then
4436  enableval=$enable_libtool_lock;
4437fi
4438
4439test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4440
4441# Some flags need to be propagated to the compiler or linker for good
4442# libtool support.
4443case $host in
4444ia64-*-hpux*)
4445  # Find out which ABI we are using.
4446  echo 'int i;' > conftest.$ac_ext
4447  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448  (eval $ac_compile) 2>&5
4449  ac_status=$?
4450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451  (exit $ac_status); }; then
4452    case `/usr/bin/file conftest.$ac_objext` in
4453    *ELF-32*)
4454      HPUX_IA64_MODE="32"
4455      ;;
4456    *ELF-64*)
4457      HPUX_IA64_MODE="64"
4458      ;;
4459    esac
4460  fi
4461  rm -rf conftest*
4462  ;;
4463*-*-irix6*)
4464  # Find out which ABI we are using.
4465  echo '#line 4465 "configure"' > conftest.$ac_ext
4466  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467  (eval $ac_compile) 2>&5
4468  ac_status=$?
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); }; then
4471   if test "$lt_cv_prog_gnu_ld" = yes; then
4472    case `/usr/bin/file conftest.$ac_objext` in
4473    *32-bit*)
4474      LD="${LD-ld} -melf32bsmip"
4475      ;;
4476    *N32*)
4477      LD="${LD-ld} -melf32bmipn32"
4478      ;;
4479    *64-bit*)
4480      LD="${LD-ld} -melf64bmip"
4481      ;;
4482    esac
4483   else
4484    case `/usr/bin/file conftest.$ac_objext` in
4485    *32-bit*)
4486      LD="${LD-ld} -32"
4487      ;;
4488    *N32*)
4489      LD="${LD-ld} -n32"
4490      ;;
4491    *64-bit*)
4492      LD="${LD-ld} -64"
4493      ;;
4494    esac
4495   fi
4496  fi
4497  rm -rf conftest*
4498  ;;
4499
4500x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4501  # Find out which ABI we are using.
4502  echo 'int i;' > conftest.$ac_ext
4503  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504  (eval $ac_compile) 2>&5
4505  ac_status=$?
4506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507  (exit $ac_status); }; then
4508    case `/usr/bin/file conftest.o` in
4509    *32-bit*)
4510      case $host in
4511        x86_64-*linux*)
4512          LD="${LD-ld} -m elf_i386"
4513          ;;
4514        ppc64-*linux*|powerpc64-*linux*)
4515          LD="${LD-ld} -m elf32ppclinux"
4516          ;;
4517        s390x-*linux*)
4518          LD="${LD-ld} -m elf_s390"
4519          ;;
4520        sparc64-*linux*)
4521          LD="${LD-ld} -m elf32_sparc"
4522          ;;
4523      esac
4524      ;;
4525    *64-bit*)
4526      case $host in
4527        x86_64-*linux*)
4528          LD="${LD-ld} -m elf_x86_64"
4529          ;;
4530        ppc*-*linux*|powerpc*-*linux*)
4531          LD="${LD-ld} -m elf64ppc"
4532          ;;
4533        s390*-*linux*)
4534          LD="${LD-ld} -m elf64_s390"
4535          ;;
4536        sparc*-*linux*)
4537          LD="${LD-ld} -m elf64_sparc"
4538          ;;
4539      esac
4540      ;;
4541    esac
4542  fi
4543  rm -rf conftest*
4544  ;;
4545
4546*-*-sco3.2v5*)
4547  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4548  SAVE_CFLAGS="$CFLAGS"
4549  CFLAGS="$CFLAGS -belf"
4550  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4551echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4552if test "${lt_cv_cc_needs_belf+set}" = set; then
4553  echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555  ac_ext=c
4556ac_cpp='$CPP $CPPFLAGS'
4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
4561     cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h.  */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h.  */
4567
4568int
4569main ()
4570{
4571
4572  ;
4573  return 0;
4574}
4575_ACEOF
4576rm -f conftest.$ac_objext conftest$ac_exeext
4577if { (ac_try="$ac_link"
4578case "(($ac_try" in
4579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580  *) ac_try_echo=$ac_try;;
4581esac
4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583  (eval "$ac_link") 2>conftest.er1
4584  ac_status=$?
4585  grep -v '^ *+' conftest.er1 >conftest.err
4586  rm -f conftest.er1
4587  cat conftest.err >&5
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); } &&
4590	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4591  { (case "(($ac_try" in
4592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593  *) ac_try_echo=$ac_try;;
4594esac
4595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596  (eval "$ac_try") 2>&5
4597  ac_status=$?
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); }; } &&
4600	 { ac_try='test -s conftest$ac_exeext'
4601  { (case "(($ac_try" in
4602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603  *) ac_try_echo=$ac_try;;
4604esac
4605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606  (eval "$ac_try") 2>&5
4607  ac_status=$?
4608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609  (exit $ac_status); }; }; then
4610  lt_cv_cc_needs_belf=yes
4611else
4612  echo "$as_me: failed program was:" >&5
4613sed 's/^/| /' conftest.$ac_ext >&5
4614
4615	lt_cv_cc_needs_belf=no
4616fi
4617
4618rm -f core conftest.err conftest.$ac_objext \
4619      conftest$ac_exeext conftest.$ac_ext
4620     ac_ext=c
4621ac_cpp='$CPP $CPPFLAGS'
4622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625
4626fi
4627{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4628echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4629  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4630    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4631    CFLAGS="$SAVE_CFLAGS"
4632  fi
4633  ;;
4634sparc*-*solaris*)
4635  # Find out which ABI we are using.
4636  echo 'int i;' > conftest.$ac_ext
4637  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638  (eval $ac_compile) 2>&5
4639  ac_status=$?
4640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641  (exit $ac_status); }; then
4642    case `/usr/bin/file conftest.o` in
4643    *64-bit*)
4644      case $lt_cv_prog_gnu_ld in
4645      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4646      *)    LD="${LD-ld} -64" ;;
4647      esac
4648      ;;
4649    esac
4650  fi
4651  rm -rf conftest*
4652  ;;
4653
4654
4655esac
4656
4657need_locks="$enable_libtool_lock"
4658
4659
4660ac_ext=c
4661ac_cpp='$CPP $CPPFLAGS'
4662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4666echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4667# On Suns, sometimes $CPP names a directory.
4668if test -n "$CPP" && test -d "$CPP"; then
4669  CPP=
4670fi
4671if test -z "$CPP"; then
4672  if test "${ac_cv_prog_CPP+set}" = set; then
4673  echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675      # Double quotes because CPP needs to be expanded
4676    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4677    do
4678      ac_preproc_ok=false
4679for ac_c_preproc_warn_flag in '' yes
4680do
4681  # Use a header file that comes with gcc, so configuring glibc
4682  # with a fresh cross-compiler works.
4683  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4684  # <limits.h> exists even on freestanding compilers.
4685  # On the NeXT, cc -E runs the code through the compiler's parser,
4686  # not just through cpp. "Syntax error" is here to catch this case.
4687  cat >conftest.$ac_ext <<_ACEOF
4688/* confdefs.h.  */
4689_ACEOF
4690cat confdefs.h >>conftest.$ac_ext
4691cat >>conftest.$ac_ext <<_ACEOF
4692/* end confdefs.h.  */
4693#ifdef __STDC__
4694# include <limits.h>
4695#else
4696# include <assert.h>
4697#endif
4698		     Syntax error
4699_ACEOF
4700if { (ac_try="$ac_cpp conftest.$ac_ext"
4701case "(($ac_try" in
4702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703  *) ac_try_echo=$ac_try;;
4704esac
4705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4706  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4707  ac_status=$?
4708  grep -v '^ *+' conftest.er1 >conftest.err
4709  rm -f conftest.er1
4710  cat conftest.err >&5
4711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712  (exit $ac_status); } >/dev/null; then
4713  if test -s conftest.err; then
4714    ac_cpp_err=$ac_c_preproc_warn_flag
4715    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4716  else
4717    ac_cpp_err=
4718  fi
4719else
4720  ac_cpp_err=yes
4721fi
4722if test -z "$ac_cpp_err"; then
4723  :
4724else
4725  echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728  # Broken: fails on valid input.
4729continue
4730fi
4731
4732rm -f conftest.err conftest.$ac_ext
4733
4734  # OK, works on sane cases.  Now check whether nonexistent headers
4735  # can be detected and how.
4736  cat >conftest.$ac_ext <<_ACEOF
4737/* confdefs.h.  */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h.  */
4742#include <ac_nonexistent.h>
4743_ACEOF
4744if { (ac_try="$ac_cpp conftest.$ac_ext"
4745case "(($ac_try" in
4746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747  *) ac_try_echo=$ac_try;;
4748esac
4749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4751  ac_status=$?
4752  grep -v '^ *+' conftest.er1 >conftest.err
4753  rm -f conftest.er1
4754  cat conftest.err >&5
4755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756  (exit $ac_status); } >/dev/null; then
4757  if test -s conftest.err; then
4758    ac_cpp_err=$ac_c_preproc_warn_flag
4759    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4760  else
4761    ac_cpp_err=
4762  fi
4763else
4764  ac_cpp_err=yes
4765fi
4766if test -z "$ac_cpp_err"; then
4767  # Broken: success on invalid input.
4768continue
4769else
4770  echo "$as_me: failed program was:" >&5
4771sed 's/^/| /' conftest.$ac_ext >&5
4772
4773  # Passes both tests.
4774ac_preproc_ok=:
4775break
4776fi
4777
4778rm -f conftest.err conftest.$ac_ext
4779
4780done
4781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782rm -f conftest.err conftest.$ac_ext
4783if $ac_preproc_ok; then
4784  break
4785fi
4786
4787    done
4788    ac_cv_prog_CPP=$CPP
4789
4790fi
4791  CPP=$ac_cv_prog_CPP
4792else
4793  ac_cv_prog_CPP=$CPP
4794fi
4795{ echo "$as_me:$LINENO: result: $CPP" >&5
4796echo "${ECHO_T}$CPP" >&6; }
4797ac_preproc_ok=false
4798for ac_c_preproc_warn_flag in '' yes
4799do
4800  # Use a header file that comes with gcc, so configuring glibc
4801  # with a fresh cross-compiler works.
4802  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803  # <limits.h> exists even on freestanding compilers.
4804  # On the NeXT, cc -E runs the code through the compiler's parser,
4805  # not just through cpp. "Syntax error" is here to catch this case.
4806  cat >conftest.$ac_ext <<_ACEOF
4807/* confdefs.h.  */
4808_ACEOF
4809cat confdefs.h >>conftest.$ac_ext
4810cat >>conftest.$ac_ext <<_ACEOF
4811/* end confdefs.h.  */
4812#ifdef __STDC__
4813# include <limits.h>
4814#else
4815# include <assert.h>
4816#endif
4817		     Syntax error
4818_ACEOF
4819if { (ac_try="$ac_cpp conftest.$ac_ext"
4820case "(($ac_try" in
4821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822  *) ac_try_echo=$ac_try;;
4823esac
4824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4826  ac_status=$?
4827  grep -v '^ *+' conftest.er1 >conftest.err
4828  rm -f conftest.er1
4829  cat conftest.err >&5
4830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831  (exit $ac_status); } >/dev/null; then
4832  if test -s conftest.err; then
4833    ac_cpp_err=$ac_c_preproc_warn_flag
4834    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4835  else
4836    ac_cpp_err=
4837  fi
4838else
4839  ac_cpp_err=yes
4840fi
4841if test -z "$ac_cpp_err"; then
4842  :
4843else
4844  echo "$as_me: failed program was:" >&5
4845sed 's/^/| /' conftest.$ac_ext >&5
4846
4847  # Broken: fails on valid input.
4848continue
4849fi
4850
4851rm -f conftest.err conftest.$ac_ext
4852
4853  # OK, works on sane cases.  Now check whether nonexistent headers
4854  # can be detected and how.
4855  cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h.  */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h.  */
4861#include <ac_nonexistent.h>
4862_ACEOF
4863if { (ac_try="$ac_cpp conftest.$ac_ext"
4864case "(($ac_try" in
4865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866  *) ac_try_echo=$ac_try;;
4867esac
4868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4870  ac_status=$?
4871  grep -v '^ *+' conftest.er1 >conftest.err
4872  rm -f conftest.er1
4873  cat conftest.err >&5
4874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875  (exit $ac_status); } >/dev/null; then
4876  if test -s conftest.err; then
4877    ac_cpp_err=$ac_c_preproc_warn_flag
4878    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4879  else
4880    ac_cpp_err=
4881  fi
4882else
4883  ac_cpp_err=yes
4884fi
4885if test -z "$ac_cpp_err"; then
4886  # Broken: success on invalid input.
4887continue
4888else
4889  echo "$as_me: failed program was:" >&5
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
4892  # Passes both tests.
4893ac_preproc_ok=:
4894break
4895fi
4896
4897rm -f conftest.err conftest.$ac_ext
4898
4899done
4900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901rm -f conftest.err conftest.$ac_ext
4902if $ac_preproc_ok; then
4903  :
4904else
4905  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4906See \`config.log' for more details." >&5
4907echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4908See \`config.log' for more details." >&2;}
4909   { (exit 1); exit 1; }; }
4910fi
4911
4912ac_ext=c
4913ac_cpp='$CPP $CPPFLAGS'
4914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917
4918
4919{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4920echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4921if test "${ac_cv_header_stdc+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  cat >conftest.$ac_ext <<_ACEOF
4925/* confdefs.h.  */
4926_ACEOF
4927cat confdefs.h >>conftest.$ac_ext
4928cat >>conftest.$ac_ext <<_ACEOF
4929/* end confdefs.h.  */
4930#include <stdlib.h>
4931#include <stdarg.h>
4932#include <string.h>
4933#include <float.h>
4934
4935int
4936main ()
4937{
4938
4939  ;
4940  return 0;
4941}
4942_ACEOF
4943rm -f conftest.$ac_objext
4944if { (ac_try="$ac_compile"
4945case "(($ac_try" in
4946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947  *) ac_try_echo=$ac_try;;
4948esac
4949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950  (eval "$ac_compile") 2>conftest.er1
4951  ac_status=$?
4952  grep -v '^ *+' conftest.er1 >conftest.err
4953  rm -f conftest.er1
4954  cat conftest.err >&5
4955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956  (exit $ac_status); } &&
4957	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4958  { (case "(($ac_try" in
4959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960  *) ac_try_echo=$ac_try;;
4961esac
4962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963  (eval "$ac_try") 2>&5
4964  ac_status=$?
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); }; } &&
4967	 { ac_try='test -s conftest.$ac_objext'
4968  { (case "(($ac_try" in
4969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970  *) ac_try_echo=$ac_try;;
4971esac
4972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973  (eval "$ac_try") 2>&5
4974  ac_status=$?
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); }; }; then
4977  ac_cv_header_stdc=yes
4978else
4979  echo "$as_me: failed program was:" >&5
4980sed 's/^/| /' conftest.$ac_ext >&5
4981
4982	ac_cv_header_stdc=no
4983fi
4984
4985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986
4987if test $ac_cv_header_stdc = yes; then
4988  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4989  cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h.  */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h.  */
4995#include <string.h>
4996
4997_ACEOF
4998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4999  $EGREP "memchr" >/dev/null 2>&1; then
5000  :
5001else
5002  ac_cv_header_stdc=no
5003fi
5004rm -f conftest*
5005
5006fi
5007
5008if test $ac_cv_header_stdc = yes; then
5009  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5010  cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h.  */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h.  */
5016#include <stdlib.h>
5017
5018_ACEOF
5019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020  $EGREP "free" >/dev/null 2>&1; then
5021  :
5022else
5023  ac_cv_header_stdc=no
5024fi
5025rm -f conftest*
5026
5027fi
5028
5029if test $ac_cv_header_stdc = yes; then
5030  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5031  if test "$cross_compiling" = yes; then
5032  :
5033else
5034  cat >conftest.$ac_ext <<_ACEOF
5035/* confdefs.h.  */
5036_ACEOF
5037cat confdefs.h >>conftest.$ac_ext
5038cat >>conftest.$ac_ext <<_ACEOF
5039/* end confdefs.h.  */
5040#include <ctype.h>
5041#include <stdlib.h>
5042#if ((' ' & 0x0FF) == 0x020)
5043# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5044# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5045#else
5046# define ISLOWER(c) \
5047		   (('a' <= (c) && (c) <= 'i') \
5048		     || ('j' <= (c) && (c) <= 'r') \
5049		     || ('s' <= (c) && (c) <= 'z'))
5050# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5051#endif
5052
5053#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5054int
5055main ()
5056{
5057  int i;
5058  for (i = 0; i < 256; i++)
5059    if (XOR (islower (i), ISLOWER (i))
5060	|| toupper (i) != TOUPPER (i))
5061      return 2;
5062  return 0;
5063}
5064_ACEOF
5065rm -f conftest$ac_exeext
5066if { (ac_try="$ac_link"
5067case "(($ac_try" in
5068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069  *) ac_try_echo=$ac_try;;
5070esac
5071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072  (eval "$ac_link") 2>&5
5073  ac_status=$?
5074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5076  { (case "(($ac_try" in
5077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078  *) ac_try_echo=$ac_try;;
5079esac
5080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081  (eval "$ac_try") 2>&5
5082  ac_status=$?
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); }; }; then
5085  :
5086else
5087  echo "$as_me: program exited with status $ac_status" >&5
5088echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091( exit $ac_status )
5092ac_cv_header_stdc=no
5093fi
5094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5095fi
5096
5097
5098fi
5099fi
5100{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5101echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5102if test $ac_cv_header_stdc = yes; then
5103
5104cat >>confdefs.h <<\_ACEOF
5105#define STDC_HEADERS 1
5106_ACEOF
5107
5108fi
5109
5110# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5121		  inttypes.h stdint.h unistd.h
5122do
5123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5124{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5127  echo $ECHO_N "(cached) $ECHO_C" >&6
5128else
5129  cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h.  */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h.  */
5135$ac_includes_default
5136
5137#include <$ac_header>
5138_ACEOF
5139rm -f conftest.$ac_objext
5140if { (ac_try="$ac_compile"
5141case "(($ac_try" in
5142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143  *) ac_try_echo=$ac_try;;
5144esac
5145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146  (eval "$ac_compile") 2>conftest.er1
5147  ac_status=$?
5148  grep -v '^ *+' conftest.er1 >conftest.err
5149  rm -f conftest.er1
5150  cat conftest.err >&5
5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); } &&
5153	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5154  { (case "(($ac_try" in
5155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156  *) ac_try_echo=$ac_try;;
5157esac
5158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159  (eval "$ac_try") 2>&5
5160  ac_status=$?
5161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162  (exit $ac_status); }; } &&
5163	 { ac_try='test -s conftest.$ac_objext'
5164  { (case "(($ac_try" in
5165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166  *) ac_try_echo=$ac_try;;
5167esac
5168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5169  (eval "$ac_try") 2>&5
5170  ac_status=$?
5171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172  (exit $ac_status); }; }; then
5173  eval "$as_ac_Header=yes"
5174else
5175  echo "$as_me: failed program was:" >&5
5176sed 's/^/| /' conftest.$ac_ext >&5
5177
5178	eval "$as_ac_Header=no"
5179fi
5180
5181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182fi
5183ac_res=`eval echo '${'$as_ac_Header'}'`
5184	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5185echo "${ECHO_T}$ac_res" >&6; }
5186if test `eval echo '${'$as_ac_Header'}'` = yes; then
5187  cat >>confdefs.h <<_ACEOF
5188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5189_ACEOF
5190
5191fi
5192
5193done
5194
5195
5196
5197for ac_header in dlfcn.h
5198do
5199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5201  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5204  echo $ECHO_N "(cached) $ECHO_C" >&6
5205fi
5206ac_res=`eval echo '${'$as_ac_Header'}'`
5207	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5208echo "${ECHO_T}$ac_res" >&6; }
5209else
5210  # Is the header compilable?
5211{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5213cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h.  */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h.  */
5219$ac_includes_default
5220#include <$ac_header>
5221_ACEOF
5222rm -f conftest.$ac_objext
5223if { (ac_try="$ac_compile"
5224case "(($ac_try" in
5225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226  *) ac_try_echo=$ac_try;;
5227esac
5228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229  (eval "$ac_compile") 2>conftest.er1
5230  ac_status=$?
5231  grep -v '^ *+' conftest.er1 >conftest.err
5232  rm -f conftest.er1
5233  cat conftest.err >&5
5234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235  (exit $ac_status); } &&
5236	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5237  { (case "(($ac_try" in
5238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239  *) ac_try_echo=$ac_try;;
5240esac
5241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242  (eval "$ac_try") 2>&5
5243  ac_status=$?
5244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245  (exit $ac_status); }; } &&
5246	 { ac_try='test -s conftest.$ac_objext'
5247  { (case "(($ac_try" in
5248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249  *) ac_try_echo=$ac_try;;
5250esac
5251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252  (eval "$ac_try") 2>&5
5253  ac_status=$?
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); }; }; then
5256  ac_header_compiler=yes
5257else
5258  echo "$as_me: failed program was:" >&5
5259sed 's/^/| /' conftest.$ac_ext >&5
5260
5261	ac_header_compiler=no
5262fi
5263
5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266echo "${ECHO_T}$ac_header_compiler" >&6; }
5267
5268# Is the header present?
5269{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5270echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5271cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h.  */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h.  */
5277#include <$ac_header>
5278_ACEOF
5279if { (ac_try="$ac_cpp conftest.$ac_ext"
5280case "(($ac_try" in
5281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282  *) ac_try_echo=$ac_try;;
5283esac
5284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5286  ac_status=$?
5287  grep -v '^ *+' conftest.er1 >conftest.err
5288  rm -f conftest.er1
5289  cat conftest.err >&5
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); } >/dev/null; then
5292  if test -s conftest.err; then
5293    ac_cpp_err=$ac_c_preproc_warn_flag
5294    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5295  else
5296    ac_cpp_err=
5297  fi
5298else
5299  ac_cpp_err=yes
5300fi
5301if test -z "$ac_cpp_err"; then
5302  ac_header_preproc=yes
5303else
5304  echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307  ac_header_preproc=no
5308fi
5309
5310rm -f conftest.err conftest.$ac_ext
5311{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5312echo "${ECHO_T}$ac_header_preproc" >&6; }
5313
5314# So?  What about this header?
5315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5316  yes:no: )
5317    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5319    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5321    ac_header_preproc=yes
5322    ;;
5323  no:yes:* )
5324    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5326    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5327echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5328    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5330    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5331echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5332    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5334    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5336    ( cat <<\_ASBOX
5337## ---------------------------------------------------------------------- ##
5338## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5339## ---------------------------------------------------------------------- ##
5340_ASBOX
5341     ) | sed "s/^/$as_me: WARNING:     /" >&2
5342    ;;
5343esac
5344{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5347  echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349  eval "$as_ac_Header=\$ac_header_preproc"
5350fi
5351ac_res=`eval echo '${'$as_ac_Header'}'`
5352	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5353echo "${ECHO_T}$ac_res" >&6; }
5354
5355fi
5356if test `eval echo '${'$as_ac_Header'}'` = yes; then
5357  cat >>confdefs.h <<_ACEOF
5358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359_ACEOF
5360
5361fi
5362
5363done
5364
5365ac_ext=cpp
5366ac_cpp='$CXXCPP $CPPFLAGS'
5367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5370if test -z "$CXX"; then
5371  if test -n "$CCC"; then
5372    CXX=$CCC
5373  else
5374    if test -n "$ac_tool_prefix"; then
5375  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5376  do
5377    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5381if test "${ac_cv_prog_CXX+set}" = set; then
5382  echo $ECHO_N "(cached) $ECHO_C" >&6
5383else
5384  if test -n "$CXX"; then
5385  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390  IFS=$as_save_IFS
5391  test -z "$as_dir" && as_dir=.
5392  for ac_exec_ext in '' $ac_executable_extensions; do
5393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5394    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396    break 2
5397  fi
5398done
5399done
5400IFS=$as_save_IFS
5401
5402fi
5403fi
5404CXX=$ac_cv_prog_CXX
5405if test -n "$CXX"; then
5406  { echo "$as_me:$LINENO: result: $CXX" >&5
5407echo "${ECHO_T}$CXX" >&6; }
5408else
5409  { echo "$as_me:$LINENO: result: no" >&5
5410echo "${ECHO_T}no" >&6; }
5411fi
5412
5413
5414    test -n "$CXX" && break
5415  done
5416fi
5417if test -z "$CXX"; then
5418  ac_ct_CXX=$CXX
5419  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5420do
5421  # Extract the first word of "$ac_prog", so it can be a program name with args.
5422set dummy $ac_prog; ac_word=$2
5423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5425if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5426  echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428  if test -n "$ac_ct_CXX"; then
5429  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5430else
5431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434  IFS=$as_save_IFS
5435  test -z "$as_dir" && as_dir=.
5436  for ac_exec_ext in '' $ac_executable_extensions; do
5437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5438    ac_cv_prog_ac_ct_CXX="$ac_prog"
5439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440    break 2
5441  fi
5442done
5443done
5444IFS=$as_save_IFS
5445
5446fi
5447fi
5448ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5449if test -n "$ac_ct_CXX"; then
5450  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5451echo "${ECHO_T}$ac_ct_CXX" >&6; }
5452else
5453  { echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6; }
5455fi
5456
5457
5458  test -n "$ac_ct_CXX" && break
5459done
5460
5461  if test "x$ac_ct_CXX" = x; then
5462    CXX="g++"
5463  else
5464    case $cross_compiling:$ac_tool_warned in
5465yes:)
5466{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5467whose name does not start with the host triplet.  If you think this
5468configuration is useful to you, please write to autoconf@gnu.org." >&5
5469echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5470whose name does not start with the host triplet.  If you think this
5471configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5472ac_tool_warned=yes ;;
5473esac
5474    CXX=$ac_ct_CXX
5475  fi
5476fi
5477
5478  fi
5479fi
5480# Provide some information about the compiler.
5481echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5482ac_compiler=`set X $ac_compile; echo $2`
5483{ (ac_try="$ac_compiler --version >&5"
5484case "(($ac_try" in
5485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486  *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489  (eval "$ac_compiler --version >&5") 2>&5
5490  ac_status=$?
5491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492  (exit $ac_status); }
5493{ (ac_try="$ac_compiler -v >&5"
5494case "(($ac_try" in
5495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496  *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499  (eval "$ac_compiler -v >&5") 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); }
5503{ (ac_try="$ac_compiler -V >&5"
5504case "(($ac_try" in
5505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506  *) ac_try_echo=$ac_try;;
5507esac
5508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509  (eval "$ac_compiler -V >&5") 2>&5
5510  ac_status=$?
5511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); }
5513
5514{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5515echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5516if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5517  echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519  cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h.  */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h.  */
5525
5526int
5527main ()
5528{
5529#ifndef __GNUC__
5530       choke me
5531#endif
5532
5533  ;
5534  return 0;
5535}
5536_ACEOF
5537rm -f conftest.$ac_objext
5538if { (ac_try="$ac_compile"
5539case "(($ac_try" in
5540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541  *) ac_try_echo=$ac_try;;
5542esac
5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544  (eval "$ac_compile") 2>conftest.er1
5545  ac_status=$?
5546  grep -v '^ *+' conftest.er1 >conftest.err
5547  rm -f conftest.er1
5548  cat conftest.err >&5
5549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550  (exit $ac_status); } &&
5551	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5552  { (case "(($ac_try" in
5553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554  *) ac_try_echo=$ac_try;;
5555esac
5556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557  (eval "$ac_try") 2>&5
5558  ac_status=$?
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); }; } &&
5561	 { ac_try='test -s conftest.$ac_objext'
5562  { (case "(($ac_try" in
5563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564  *) ac_try_echo=$ac_try;;
5565esac
5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567  (eval "$ac_try") 2>&5
5568  ac_status=$?
5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); }; }; then
5571  ac_compiler_gnu=yes
5572else
5573  echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576	ac_compiler_gnu=no
5577fi
5578
5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5581
5582fi
5583{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5584echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5585GXX=`test $ac_compiler_gnu = yes && echo yes`
5586ac_test_CXXFLAGS=${CXXFLAGS+set}
5587ac_save_CXXFLAGS=$CXXFLAGS
5588{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5589echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5590if test "${ac_cv_prog_cxx_g+set}" = set; then
5591  echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5594   ac_cxx_werror_flag=yes
5595   ac_cv_prog_cxx_g=no
5596   CXXFLAGS="-g"
5597   cat >conftest.$ac_ext <<_ACEOF
5598/* confdefs.h.  */
5599_ACEOF
5600cat confdefs.h >>conftest.$ac_ext
5601cat >>conftest.$ac_ext <<_ACEOF
5602/* end confdefs.h.  */
5603
5604int
5605main ()
5606{
5607
5608  ;
5609  return 0;
5610}
5611_ACEOF
5612rm -f conftest.$ac_objext
5613if { (ac_try="$ac_compile"
5614case "(($ac_try" in
5615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616  *) ac_try_echo=$ac_try;;
5617esac
5618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619  (eval "$ac_compile") 2>conftest.er1
5620  ac_status=$?
5621  grep -v '^ *+' conftest.er1 >conftest.err
5622  rm -f conftest.er1
5623  cat conftest.err >&5
5624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625  (exit $ac_status); } &&
5626	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5627  { (case "(($ac_try" in
5628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629  *) ac_try_echo=$ac_try;;
5630esac
5631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632  (eval "$ac_try") 2>&5
5633  ac_status=$?
5634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635  (exit $ac_status); }; } &&
5636	 { ac_try='test -s conftest.$ac_objext'
5637  { (case "(($ac_try" in
5638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639  *) ac_try_echo=$ac_try;;
5640esac
5641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642  (eval "$ac_try") 2>&5
5643  ac_status=$?
5644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645  (exit $ac_status); }; }; then
5646  ac_cv_prog_cxx_g=yes
5647else
5648  echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
5651	CXXFLAGS=""
5652      cat >conftest.$ac_ext <<_ACEOF
5653/* confdefs.h.  */
5654_ACEOF
5655cat confdefs.h >>conftest.$ac_ext
5656cat >>conftest.$ac_ext <<_ACEOF
5657/* end confdefs.h.  */
5658
5659int
5660main ()
5661{
5662
5663  ;
5664  return 0;
5665}
5666_ACEOF
5667rm -f conftest.$ac_objext
5668if { (ac_try="$ac_compile"
5669case "(($ac_try" in
5670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671  *) ac_try_echo=$ac_try;;
5672esac
5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674  (eval "$ac_compile") 2>conftest.er1
5675  ac_status=$?
5676  grep -v '^ *+' conftest.er1 >conftest.err
5677  rm -f conftest.er1
5678  cat conftest.err >&5
5679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680  (exit $ac_status); } &&
5681	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5682  { (case "(($ac_try" in
5683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684  *) ac_try_echo=$ac_try;;
5685esac
5686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687  (eval "$ac_try") 2>&5
5688  ac_status=$?
5689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690  (exit $ac_status); }; } &&
5691	 { ac_try='test -s conftest.$ac_objext'
5692  { (case "(($ac_try" in
5693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694  *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697  (eval "$ac_try") 2>&5
5698  ac_status=$?
5699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700  (exit $ac_status); }; }; then
5701  :
5702else
5703  echo "$as_me: failed program was:" >&5
5704sed 's/^/| /' conftest.$ac_ext >&5
5705
5706	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5707	 CXXFLAGS="-g"
5708	 cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h.  */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h.  */
5714
5715int
5716main ()
5717{
5718
5719  ;
5720  return 0;
5721}
5722_ACEOF
5723rm -f conftest.$ac_objext
5724if { (ac_try="$ac_compile"
5725case "(($ac_try" in
5726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727  *) ac_try_echo=$ac_try;;
5728esac
5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730  (eval "$ac_compile") 2>conftest.er1
5731  ac_status=$?
5732  grep -v '^ *+' conftest.er1 >conftest.err
5733  rm -f conftest.er1
5734  cat conftest.err >&5
5735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736  (exit $ac_status); } &&
5737	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5738  { (case "(($ac_try" in
5739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740  *) ac_try_echo=$ac_try;;
5741esac
5742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743  (eval "$ac_try") 2>&5
5744  ac_status=$?
5745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746  (exit $ac_status); }; } &&
5747	 { ac_try='test -s conftest.$ac_objext'
5748  { (case "(($ac_try" in
5749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750  *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753  (eval "$ac_try") 2>&5
5754  ac_status=$?
5755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756  (exit $ac_status); }; }; then
5757  ac_cv_prog_cxx_g=yes
5758else
5759  echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
5762
5763fi
5764
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766fi
5767
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769fi
5770
5771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5773fi
5774{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5775echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5776if test "$ac_test_CXXFLAGS" = set; then
5777  CXXFLAGS=$ac_save_CXXFLAGS
5778elif test $ac_cv_prog_cxx_g = yes; then
5779  if test "$GXX" = yes; then
5780    CXXFLAGS="-g -O2"
5781  else
5782    CXXFLAGS="-g"
5783  fi
5784else
5785  if test "$GXX" = yes; then
5786    CXXFLAGS="-O2"
5787  else
5788    CXXFLAGS=
5789  fi
5790fi
5791ac_ext=cpp
5792ac_cpp='$CXXCPP $CPPFLAGS'
5793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5796
5797depcc="$CXX"  am_compiler_list=
5798
5799{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5800echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5801if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5802  echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5805  # We make a subdir and do the tests there.  Otherwise we can end up
5806  # making bogus files that we don't know about and never remove.  For
5807  # instance it was reported that on HP-UX the gcc test will end up
5808  # making a dummy file named `D' -- because `-MD' means `put the output
5809  # in D'.
5810  mkdir conftest.dir
5811  # Copy depcomp to subdir because otherwise we won't find it if we're
5812  # using a relative directory.
5813  cp "$am_depcomp" conftest.dir
5814  cd conftest.dir
5815  # We will build objects and dependencies in a subdirectory because
5816  # it helps to detect inapplicable dependency modes.  For instance
5817  # both Tru64's cc and ICC support -MD to output dependencies as a
5818  # side effect of compilation, but ICC will put the dependencies in
5819  # the current directory while Tru64 will put them in the object
5820  # directory.
5821  mkdir sub
5822
5823  am_cv_CXX_dependencies_compiler_type=none
5824  if test "$am_compiler_list" = ""; then
5825     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5826  fi
5827  for depmode in $am_compiler_list; do
5828    # Setup a source with many dependencies, because some compilers
5829    # like to wrap large dependency lists on column 80 (with \), and
5830    # we should not choose a depcomp mode which is confused by this.
5831    #
5832    # We need to recreate these files for each test, as the compiler may
5833    # overwrite some of them when testing with obscure command lines.
5834    # This happens at least with the AIX C compiler.
5835    : > sub/conftest.c
5836    for i in 1 2 3 4 5 6; do
5837      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5838      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5839      # Solaris 8's {/usr,}/bin/sh.
5840      touch sub/conftst$i.h
5841    done
5842    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5843
5844    case $depmode in
5845    nosideeffect)
5846      # after this tag, mechanisms are not by side-effect, so they'll
5847      # only be used when explicitly requested
5848      if test "x$enable_dependency_tracking" = xyes; then
5849	continue
5850      else
5851	break
5852      fi
5853      ;;
5854    none) break ;;
5855    esac
5856    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5857    # mode.  It turns out that the SunPro C++ compiler does not properly
5858    # handle `-M -o', and we need to detect this.
5859    if depmode=$depmode \
5860       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5861       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5862       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5863         >/dev/null 2>conftest.err &&
5864       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5865       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5866       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5867      # icc doesn't choke on unknown options, it will just issue warnings
5868      # or remarks (even with -Werror).  So we grep stderr for any message
5869      # that says an option was ignored or not supported.
5870      # When given -MP, icc 7.0 and 7.1 complain thusly:
5871      #   icc: Command line warning: ignoring option '-M'; no argument required
5872      # The diagnosis changed in icc 8.0:
5873      #   icc: Command line remark: option '-MP' not supported
5874      if (grep 'ignoring option' conftest.err ||
5875          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5876        am_cv_CXX_dependencies_compiler_type=$depmode
5877        break
5878      fi
5879    fi
5880  done
5881
5882  cd ..
5883  rm -rf conftest.dir
5884else
5885  am_cv_CXX_dependencies_compiler_type=none
5886fi
5887
5888fi
5889{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5890echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5891CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5892
5893
5894
5895if
5896  test "x$enable_dependency_tracking" != xno \
5897  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5898  am__fastdepCXX_TRUE=
5899  am__fastdepCXX_FALSE='#'
5900else
5901  am__fastdepCXX_TRUE='#'
5902  am__fastdepCXX_FALSE=
5903fi
5904
5905
5906
5907
5908if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5909    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5910    (test "X$CXX" != "Xg++"))) ; then
5911  ac_ext=cpp
5912ac_cpp='$CXXCPP $CPPFLAGS'
5913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5916{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5917echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5918if test -z "$CXXCPP"; then
5919  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5920  echo $ECHO_N "(cached) $ECHO_C" >&6
5921else
5922      # Double quotes because CXXCPP needs to be expanded
5923    for CXXCPP in "$CXX -E" "/lib/cpp"
5924    do
5925      ac_preproc_ok=false
5926for ac_cxx_preproc_warn_flag in '' yes
5927do
5928  # Use a header file that comes with gcc, so configuring glibc
5929  # with a fresh cross-compiler works.
5930  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5931  # <limits.h> exists even on freestanding compilers.
5932  # On the NeXT, cc -E runs the code through the compiler's parser,
5933  # not just through cpp. "Syntax error" is here to catch this case.
5934  cat >conftest.$ac_ext <<_ACEOF
5935/* confdefs.h.  */
5936_ACEOF
5937cat confdefs.h >>conftest.$ac_ext
5938cat >>conftest.$ac_ext <<_ACEOF
5939/* end confdefs.h.  */
5940#ifdef __STDC__
5941# include <limits.h>
5942#else
5943# include <assert.h>
5944#endif
5945		     Syntax error
5946_ACEOF
5947if { (ac_try="$ac_cpp conftest.$ac_ext"
5948case "(($ac_try" in
5949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950  *) ac_try_echo=$ac_try;;
5951esac
5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5954  ac_status=$?
5955  grep -v '^ *+' conftest.er1 >conftest.err
5956  rm -f conftest.er1
5957  cat conftest.err >&5
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); } >/dev/null; then
5960  if test -s conftest.err; then
5961    ac_cpp_err=$ac_cxx_preproc_warn_flag
5962    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5963  else
5964    ac_cpp_err=
5965  fi
5966else
5967  ac_cpp_err=yes
5968fi
5969if test -z "$ac_cpp_err"; then
5970  :
5971else
5972  echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975  # Broken: fails on valid input.
5976continue
5977fi
5978
5979rm -f conftest.err conftest.$ac_ext
5980
5981  # OK, works on sane cases.  Now check whether nonexistent headers
5982  # can be detected and how.
5983  cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h.  */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h.  */
5989#include <ac_nonexistent.h>
5990_ACEOF
5991if { (ac_try="$ac_cpp conftest.$ac_ext"
5992case "(($ac_try" in
5993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994  *) ac_try_echo=$ac_try;;
5995esac
5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5998  ac_status=$?
5999  grep -v '^ *+' conftest.er1 >conftest.err
6000  rm -f conftest.er1
6001  cat conftest.err >&5
6002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003  (exit $ac_status); } >/dev/null; then
6004  if test -s conftest.err; then
6005    ac_cpp_err=$ac_cxx_preproc_warn_flag
6006    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6007  else
6008    ac_cpp_err=
6009  fi
6010else
6011  ac_cpp_err=yes
6012fi
6013if test -z "$ac_cpp_err"; then
6014  # Broken: success on invalid input.
6015continue
6016else
6017  echo "$as_me: failed program was:" >&5
6018sed 's/^/| /' conftest.$ac_ext >&5
6019
6020  # Passes both tests.
6021ac_preproc_ok=:
6022break
6023fi
6024
6025rm -f conftest.err conftest.$ac_ext
6026
6027done
6028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6029rm -f conftest.err conftest.$ac_ext
6030if $ac_preproc_ok; then
6031  break
6032fi
6033
6034    done
6035    ac_cv_prog_CXXCPP=$CXXCPP
6036
6037fi
6038  CXXCPP=$ac_cv_prog_CXXCPP
6039else
6040  ac_cv_prog_CXXCPP=$CXXCPP
6041fi
6042{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6043echo "${ECHO_T}$CXXCPP" >&6; }
6044ac_preproc_ok=false
6045for ac_cxx_preproc_warn_flag in '' yes
6046do
6047  # Use a header file that comes with gcc, so configuring glibc
6048  # with a fresh cross-compiler works.
6049  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050  # <limits.h> exists even on freestanding compilers.
6051  # On the NeXT, cc -E runs the code through the compiler's parser,
6052  # not just through cpp. "Syntax error" is here to catch this case.
6053  cat >conftest.$ac_ext <<_ACEOF
6054/* confdefs.h.  */
6055_ACEOF
6056cat confdefs.h >>conftest.$ac_ext
6057cat >>conftest.$ac_ext <<_ACEOF
6058/* end confdefs.h.  */
6059#ifdef __STDC__
6060# include <limits.h>
6061#else
6062# include <assert.h>
6063#endif
6064		     Syntax error
6065_ACEOF
6066if { (ac_try="$ac_cpp conftest.$ac_ext"
6067case "(($ac_try" in
6068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069  *) ac_try_echo=$ac_try;;
6070esac
6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6073  ac_status=$?
6074  grep -v '^ *+' conftest.er1 >conftest.err
6075  rm -f conftest.er1
6076  cat conftest.err >&5
6077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078  (exit $ac_status); } >/dev/null; then
6079  if test -s conftest.err; then
6080    ac_cpp_err=$ac_cxx_preproc_warn_flag
6081    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6082  else
6083    ac_cpp_err=
6084  fi
6085else
6086  ac_cpp_err=yes
6087fi
6088if test -z "$ac_cpp_err"; then
6089  :
6090else
6091  echo "$as_me: failed program was:" >&5
6092sed 's/^/| /' conftest.$ac_ext >&5
6093
6094  # Broken: fails on valid input.
6095continue
6096fi
6097
6098rm -f conftest.err conftest.$ac_ext
6099
6100  # OK, works on sane cases.  Now check whether nonexistent headers
6101  # can be detected and how.
6102  cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h.  */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h.  */
6108#include <ac_nonexistent.h>
6109_ACEOF
6110if { (ac_try="$ac_cpp conftest.$ac_ext"
6111case "(($ac_try" in
6112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113  *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6117  ac_status=$?
6118  grep -v '^ *+' conftest.er1 >conftest.err
6119  rm -f conftest.er1
6120  cat conftest.err >&5
6121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122  (exit $ac_status); } >/dev/null; then
6123  if test -s conftest.err; then
6124    ac_cpp_err=$ac_cxx_preproc_warn_flag
6125    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6126  else
6127    ac_cpp_err=
6128  fi
6129else
6130  ac_cpp_err=yes
6131fi
6132if test -z "$ac_cpp_err"; then
6133  # Broken: success on invalid input.
6134continue
6135else
6136  echo "$as_me: failed program was:" >&5
6137sed 's/^/| /' conftest.$ac_ext >&5
6138
6139  # Passes both tests.
6140ac_preproc_ok=:
6141break
6142fi
6143
6144rm -f conftest.err conftest.$ac_ext
6145
6146done
6147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6148rm -f conftest.err conftest.$ac_ext
6149if $ac_preproc_ok; then
6150  :
6151else
6152  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6153See \`config.log' for more details." >&5
6154echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6155See \`config.log' for more details." >&2;}
6156   { (exit 1); exit 1; }; }
6157fi
6158
6159ac_ext=cpp
6160ac_cpp='$CXXCPP $CPPFLAGS'
6161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6164
6165fi
6166
6167
6168ac_ext=f
6169ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6170ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6172if test -n "$ac_tool_prefix"; then
6173  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6174  do
6175    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6176set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179if test "${ac_cv_prog_F77+set}" = set; then
6180  echo $ECHO_N "(cached) $ECHO_C" >&6
6181else
6182  if test -n "$F77"; then
6183  ac_cv_prog_F77="$F77" # Let the user override the test.
6184else
6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
6187do
6188  IFS=$as_save_IFS
6189  test -z "$as_dir" && as_dir=.
6190  for ac_exec_ext in '' $ac_executable_extensions; do
6191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194    break 2
6195  fi
6196done
6197done
6198IFS=$as_save_IFS
6199
6200fi
6201fi
6202F77=$ac_cv_prog_F77
6203if test -n "$F77"; then
6204  { echo "$as_me:$LINENO: result: $F77" >&5
6205echo "${ECHO_T}$F77" >&6; }
6206else
6207  { echo "$as_me:$LINENO: result: no" >&5
6208echo "${ECHO_T}no" >&6; }
6209fi
6210
6211
6212    test -n "$F77" && break
6213  done
6214fi
6215if test -z "$F77"; then
6216  ac_ct_F77=$F77
6217  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6218do
6219  # Extract the first word of "$ac_prog", so it can be a program name with args.
6220set dummy $ac_prog; ac_word=$2
6221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6224  echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226  if test -n "$ac_ct_F77"; then
6227  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232  IFS=$as_save_IFS
6233  test -z "$as_dir" && as_dir=.
6234  for ac_exec_ext in '' $ac_executable_extensions; do
6235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6236    ac_cv_prog_ac_ct_F77="$ac_prog"
6237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238    break 2
6239  fi
6240done
6241done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246ac_ct_F77=$ac_cv_prog_ac_ct_F77
6247if test -n "$ac_ct_F77"; then
6248  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6249echo "${ECHO_T}$ac_ct_F77" >&6; }
6250else
6251  { echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6; }
6253fi
6254
6255
6256  test -n "$ac_ct_F77" && break
6257done
6258
6259  if test "x$ac_ct_F77" = x; then
6260    F77=""
6261  else
6262    case $cross_compiling:$ac_tool_warned in
6263yes:)
6264{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6265whose name does not start with the host triplet.  If you think this
6266configuration is useful to you, please write to autoconf@gnu.org." >&5
6267echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6268whose name does not start with the host triplet.  If you think this
6269configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6270ac_tool_warned=yes ;;
6271esac
6272    F77=$ac_ct_F77
6273  fi
6274fi
6275
6276
6277# Provide some information about the compiler.
6278echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6279ac_compiler=`set X $ac_compile; echo $2`
6280{ (ac_try="$ac_compiler --version >&5"
6281case "(($ac_try" in
6282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283  *) ac_try_echo=$ac_try;;
6284esac
6285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286  (eval "$ac_compiler --version >&5") 2>&5
6287  ac_status=$?
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); }
6290{ (ac_try="$ac_compiler -v >&5"
6291case "(($ac_try" in
6292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293  *) ac_try_echo=$ac_try;;
6294esac
6295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296  (eval "$ac_compiler -v >&5") 2>&5
6297  ac_status=$?
6298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); }
6300{ (ac_try="$ac_compiler -V >&5"
6301case "(($ac_try" in
6302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303  *) ac_try_echo=$ac_try;;
6304esac
6305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306  (eval "$ac_compiler -V >&5") 2>&5
6307  ac_status=$?
6308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309  (exit $ac_status); }
6310rm -f a.out
6311
6312# If we don't use `.F' as extension, the preprocessor is not run on the
6313# input file.  (Note that this only needs to work for GNU compilers.)
6314ac_save_ext=$ac_ext
6315ac_ext=F
6316{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6317echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6318if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6319  echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321  cat >conftest.$ac_ext <<_ACEOF
6322      program main
6323#ifndef __GNUC__
6324       choke me
6325#endif
6326
6327      end
6328_ACEOF
6329rm -f conftest.$ac_objext
6330if { (ac_try="$ac_compile"
6331case "(($ac_try" in
6332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333  *) ac_try_echo=$ac_try;;
6334esac
6335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336  (eval "$ac_compile") 2>conftest.er1
6337  ac_status=$?
6338  grep -v '^ *+' conftest.er1 >conftest.err
6339  rm -f conftest.er1
6340  cat conftest.err >&5
6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); } &&
6343	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6344  { (case "(($ac_try" in
6345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346  *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349  (eval "$ac_try") 2>&5
6350  ac_status=$?
6351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352  (exit $ac_status); }; } &&
6353	 { ac_try='test -s conftest.$ac_objext'
6354  { (case "(($ac_try" in
6355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356  *) ac_try_echo=$ac_try;;
6357esac
6358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359  (eval "$ac_try") 2>&5
6360  ac_status=$?
6361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362  (exit $ac_status); }; }; then
6363  ac_compiler_gnu=yes
6364else
6365  echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368	ac_compiler_gnu=no
6369fi
6370
6371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6373
6374fi
6375{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6376echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6377ac_ext=$ac_save_ext
6378ac_test_FFLAGS=${FFLAGS+set}
6379ac_save_FFLAGS=$FFLAGS
6380FFLAGS=
6381{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6382echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6383if test "${ac_cv_prog_f77_g+set}" = set; then
6384  echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386  FFLAGS=-g
6387cat >conftest.$ac_ext <<_ACEOF
6388      program main
6389
6390      end
6391_ACEOF
6392rm -f conftest.$ac_objext
6393if { (ac_try="$ac_compile"
6394case "(($ac_try" in
6395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396  *) ac_try_echo=$ac_try;;
6397esac
6398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399  (eval "$ac_compile") 2>conftest.er1
6400  ac_status=$?
6401  grep -v '^ *+' conftest.er1 >conftest.err
6402  rm -f conftest.er1
6403  cat conftest.err >&5
6404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405  (exit $ac_status); } &&
6406	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6407  { (case "(($ac_try" in
6408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409  *) ac_try_echo=$ac_try;;
6410esac
6411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412  (eval "$ac_try") 2>&5
6413  ac_status=$?
6414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415  (exit $ac_status); }; } &&
6416	 { ac_try='test -s conftest.$ac_objext'
6417  { (case "(($ac_try" in
6418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419  *) ac_try_echo=$ac_try;;
6420esac
6421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422  (eval "$ac_try") 2>&5
6423  ac_status=$?
6424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425  (exit $ac_status); }; }; then
6426  ac_cv_prog_f77_g=yes
6427else
6428  echo "$as_me: failed program was:" >&5
6429sed 's/^/| /' conftest.$ac_ext >&5
6430
6431	ac_cv_prog_f77_g=no
6432fi
6433
6434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435
6436fi
6437{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6438echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6439if test "$ac_test_FFLAGS" = set; then
6440  FFLAGS=$ac_save_FFLAGS
6441elif test $ac_cv_prog_f77_g = yes; then
6442  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6443    FFLAGS="-g -O2"
6444  else
6445    FFLAGS="-g"
6446  fi
6447else
6448  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6449    FFLAGS="-O2"
6450  else
6451    FFLAGS=
6452  fi
6453fi
6454
6455G77=`test $ac_compiler_gnu = yes && echo yes`
6456ac_ext=c
6457ac_cpp='$CPP $CPPFLAGS'
6458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460ac_compiler_gnu=$ac_cv_c_compiler_gnu
6461
6462
6463
6464# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6465
6466# find the maximum length of command line arguments
6467{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6468echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6469if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472    i=0
6473  teststring="ABCD"
6474
6475  case $build_os in
6476  msdosdjgpp*)
6477    # On DJGPP, this test can blow up pretty badly due to problems in libc
6478    # (any single argument exceeding 2000 bytes causes a buffer overrun
6479    # during glob expansion).  Even if it were fixed, the result of this
6480    # check would be larger than it should be.
6481    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6482    ;;
6483
6484  gnu*)
6485    # Under GNU Hurd, this test is not required because there is
6486    # no limit to the length of command line arguments.
6487    # Libtool will interpret -1 as no limit whatsoever
6488    lt_cv_sys_max_cmd_len=-1;
6489    ;;
6490
6491  cygwin* | mingw*)
6492    # On Win9x/ME, this test blows up -- it succeeds, but takes
6493    # about 5 minutes as the teststring grows exponentially.
6494    # Worse, since 9x/ME are not pre-emptively multitasking,
6495    # you end up with a "frozen" computer, even though with patience
6496    # the test eventually succeeds (with a max line length of 256k).
6497    # Instead, let's just punt: use the minimum linelength reported by
6498    # all of the supported platforms: 8192 (on NT/2K/XP).
6499    lt_cv_sys_max_cmd_len=8192;
6500    ;;
6501
6502  amigaos*)
6503    # On AmigaOS with pdksh, this test takes hours, literally.
6504    # So we just punt and use a minimum line length of 8192.
6505    lt_cv_sys_max_cmd_len=8192;
6506    ;;
6507
6508  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6509    # This has been around since 386BSD, at least.  Likely further.
6510    if test -x /sbin/sysctl; then
6511      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6512    elif test -x /usr/sbin/sysctl; then
6513      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6514    else
6515      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6516    fi
6517    # And add a safety zone
6518    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6519    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6520    ;;
6521
6522  interix*)
6523    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6524    lt_cv_sys_max_cmd_len=196608
6525    ;;
6526
6527  osf*)
6528    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6529    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6530    # nice to cause kernel panics so lets avoid the loop below.
6531    # First set a reasonable default.
6532    lt_cv_sys_max_cmd_len=16384
6533    #
6534    if test -x /sbin/sysconfig; then
6535      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6536        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6537      esac
6538    fi
6539    ;;
6540  sco3.2v5*)
6541    lt_cv_sys_max_cmd_len=102400
6542    ;;
6543  sysv5* | sco5v6* | sysv4.2uw2*)
6544    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6545    if test -n "$kargmax"; then
6546      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6547    else
6548      lt_cv_sys_max_cmd_len=32768
6549    fi
6550    ;;
6551  *)
6552    # If test is not a shell built-in, we'll probably end up computing a
6553    # maximum length that is only half of the actual maximum length, but
6554    # we can't tell.
6555    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6556    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6557	       = "XX$teststring") >/dev/null 2>&1 &&
6558	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6559	    lt_cv_sys_max_cmd_len=$new_result &&
6560	    test $i != 17 # 1/2 MB should be enough
6561    do
6562      i=`expr $i + 1`
6563      teststring=$teststring$teststring
6564    done
6565    teststring=
6566    # Add a significant safety factor because C++ compilers can tack on massive
6567    # amounts of additional arguments before passing them to the linker.
6568    # It appears as though 1/2 is a usable value.
6569    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6570    ;;
6571  esac
6572
6573fi
6574
6575if test -n $lt_cv_sys_max_cmd_len ; then
6576  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6577echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6578else
6579  { echo "$as_me:$LINENO: result: none" >&5
6580echo "${ECHO_T}none" >&6; }
6581fi
6582
6583
6584
6585
6586# Check for command to grab the raw symbol name followed by C symbol from nm.
6587{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6588echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6589if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6590  echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592
6593# These are sane defaults that work on at least a few old systems.
6594# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6595
6596# Character class describing NM global symbol codes.
6597symcode='[BCDEGRST]'
6598
6599# Regexp to match symbols that can be accessed directly from C.
6600sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6601
6602# Transform an extracted symbol line into a proper C declaration
6603lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6604
6605# Transform an extracted symbol line into symbol name and symbol address
6606lt_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'"
6607
6608# Define system-specific variables.
6609case $host_os in
6610aix*)
6611  symcode='[BCDT]'
6612  ;;
6613cygwin* | mingw* | pw32*)
6614  symcode='[ABCDGISTW]'
6615  ;;
6616hpux*) # Its linker distinguishes data from code symbols
6617  if test "$host_cpu" = ia64; then
6618    symcode='[ABCDEGRST]'
6619  fi
6620  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6621  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'"
6622  ;;
6623linux* | k*bsd*-gnu)
6624  if test "$host_cpu" = ia64; then
6625    symcode='[ABCDGIRSTW]'
6626    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6627    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'"
6628  fi
6629  ;;
6630irix* | nonstopux*)
6631  symcode='[BCDEGRST]'
6632  ;;
6633osf*)
6634  symcode='[BCDEGQRST]'
6635  ;;
6636solaris*)
6637  symcode='[BDRT]'
6638  ;;
6639sco3.2v5*)
6640  symcode='[DT]'
6641  ;;
6642sysv4.2uw2*)
6643  symcode='[DT]'
6644  ;;
6645sysv5* | sco5v6* | unixware* | OpenUNIX*)
6646  symcode='[ABDT]'
6647  ;;
6648sysv4)
6649  symcode='[DFNSTU]'
6650  ;;
6651esac
6652
6653# Handle CRLF in mingw tool chain
6654opt_cr=
6655case $build_os in
6656mingw*)
6657  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6658  ;;
6659esac
6660
6661# If we're using GNU nm, then use its standard symbol codes.
6662case `$NM -V 2>&1` in
6663*GNU* | *'with BFD'*)
6664  symcode='[ABCDGIRSTW]' ;;
6665esac
6666
6667# Try without a prefix undercore, then with it.
6668for ac_symprfx in "" "_"; do
6669
6670  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6671  symxfrm="\\1 $ac_symprfx\\2 \\2"
6672
6673  # Write the raw and C identifiers.
6674  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6675
6676  # Check to see that the pipe works correctly.
6677  pipe_works=no
6678
6679  rm -f conftest*
6680  cat > conftest.$ac_ext <<EOF
6681#ifdef __cplusplus
6682extern "C" {
6683#endif
6684char nm_test_var;
6685void nm_test_func(){}
6686#ifdef __cplusplus
6687}
6688#endif
6689int main(){nm_test_var='a';nm_test_func();return(0);}
6690EOF
6691
6692  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693  (eval $ac_compile) 2>&5
6694  ac_status=$?
6695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696  (exit $ac_status); }; then
6697    # Now try to grab the symbols.
6698    nlist=conftest.nm
6699    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6700  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6701  ac_status=$?
6702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703  (exit $ac_status); } && test -s "$nlist"; then
6704      # Try sorting and uniquifying the output.
6705      if sort "$nlist" | uniq > "$nlist"T; then
6706	mv -f "$nlist"T "$nlist"
6707      else
6708	rm -f "$nlist"T
6709      fi
6710
6711      # Make sure that we snagged all the symbols we need.
6712      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6713	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6714	  cat <<EOF > conftest.$ac_ext
6715#ifdef __cplusplus
6716extern "C" {
6717#endif
6718
6719EOF
6720	  # Now generate the symbol file.
6721	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6722
6723	  cat <<EOF >> conftest.$ac_ext
6724#if defined (__STDC__) && __STDC__
6725# define lt_ptr_t void *
6726#else
6727# define lt_ptr_t char *
6728# define const
6729#endif
6730
6731/* The mapping between symbol names and symbols. */
6732const struct {
6733  const char *name;
6734  lt_ptr_t address;
6735}
6736lt_preloaded_symbols[] =
6737{
6738EOF
6739	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6740	  cat <<\EOF >> conftest.$ac_ext
6741  {0, (lt_ptr_t) 0}
6742};
6743
6744#ifdef __cplusplus
6745}
6746#endif
6747EOF
6748	  # Now try linking the two files.
6749	  mv conftest.$ac_objext conftstm.$ac_objext
6750	  lt_save_LIBS="$LIBS"
6751	  lt_save_CFLAGS="$CFLAGS"
6752	  LIBS="conftstm.$ac_objext"
6753	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6754	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755  (eval $ac_link) 2>&5
6756  ac_status=$?
6757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6759	    pipe_works=yes
6760	  fi
6761	  LIBS="$lt_save_LIBS"
6762	  CFLAGS="$lt_save_CFLAGS"
6763	else
6764	  echo "cannot find nm_test_func in $nlist" >&5
6765	fi
6766      else
6767	echo "cannot find nm_test_var in $nlist" >&5
6768      fi
6769    else
6770      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6771    fi
6772  else
6773    echo "$progname: failed program was:" >&5
6774    cat conftest.$ac_ext >&5
6775  fi
6776  rm -f conftest* conftst*
6777
6778  # Do not use the global_symbol_pipe unless it works.
6779  if test "$pipe_works" = yes; then
6780    break
6781  else
6782    lt_cv_sys_global_symbol_pipe=
6783  fi
6784done
6785
6786fi
6787
6788if test -z "$lt_cv_sys_global_symbol_pipe"; then
6789  lt_cv_sys_global_symbol_to_cdecl=
6790fi
6791if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6792  { echo "$as_me:$LINENO: result: failed" >&5
6793echo "${ECHO_T}failed" >&6; }
6794else
6795  { echo "$as_me:$LINENO: result: ok" >&5
6796echo "${ECHO_T}ok" >&6; }
6797fi
6798
6799{ echo "$as_me:$LINENO: checking for objdir" >&5
6800echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6801if test "${lt_cv_objdir+set}" = set; then
6802  echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804  rm -f .libs 2>/dev/null
6805mkdir .libs 2>/dev/null
6806if test -d .libs; then
6807  lt_cv_objdir=.libs
6808else
6809  # MS-DOS does not allow filenames that begin with a dot.
6810  lt_cv_objdir=_libs
6811fi
6812rmdir .libs 2>/dev/null
6813fi
6814{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6815echo "${ECHO_T}$lt_cv_objdir" >&6; }
6816objdir=$lt_cv_objdir
6817
6818
6819
6820
6821
6822case $host_os in
6823aix3*)
6824  # AIX sometimes has problems with the GCC collect2 program.  For some
6825  # reason, if we set the COLLECT_NAMES environment variable, the problems
6826  # vanish in a puff of smoke.
6827  if test "X${COLLECT_NAMES+set}" != Xset; then
6828    COLLECT_NAMES=
6829    export COLLECT_NAMES
6830  fi
6831  ;;
6832esac
6833
6834# Sed substitution that helps us do robust quoting.  It backslashifies
6835# metacharacters that are still active within double-quoted strings.
6836Xsed='sed -e 1s/^X//'
6837sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6838
6839# Same as above, but do not quote variable references.
6840double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6841
6842# Sed substitution to delay expansion of an escaped shell variable in a
6843# double_quote_subst'ed string.
6844delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6845
6846# Sed substitution to avoid accidental globbing in evaled expressions
6847no_glob_subst='s/\*/\\\*/g'
6848
6849# Constants:
6850rm="rm -f"
6851
6852# Global variables:
6853default_ofile=libtool
6854can_build_shared=yes
6855
6856# All known linkers require a `.a' archive for static linking (except MSVC,
6857# which needs '.lib').
6858libext=a
6859ltmain="$ac_aux_dir/ltmain.sh"
6860ofile="$default_ofile"
6861with_gnu_ld="$lt_cv_prog_gnu_ld"
6862
6863if test -n "$ac_tool_prefix"; then
6864  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6865set dummy ${ac_tool_prefix}ar; ac_word=$2
6866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868if test "${ac_cv_prog_AR+set}" = set; then
6869  echo $ECHO_N "(cached) $ECHO_C" >&6
6870else
6871  if test -n "$AR"; then
6872  ac_cv_prog_AR="$AR" # Let the user override the test.
6873else
6874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875for as_dir in $PATH
6876do
6877  IFS=$as_save_IFS
6878  test -z "$as_dir" && as_dir=.
6879  for ac_exec_ext in '' $ac_executable_extensions; do
6880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6881    ac_cv_prog_AR="${ac_tool_prefix}ar"
6882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883    break 2
6884  fi
6885done
6886done
6887IFS=$as_save_IFS
6888
6889fi
6890fi
6891AR=$ac_cv_prog_AR
6892if test -n "$AR"; then
6893  { echo "$as_me:$LINENO: result: $AR" >&5
6894echo "${ECHO_T}$AR" >&6; }
6895else
6896  { echo "$as_me:$LINENO: result: no" >&5
6897echo "${ECHO_T}no" >&6; }
6898fi
6899
6900
6901fi
6902if test -z "$ac_cv_prog_AR"; then
6903  ac_ct_AR=$AR
6904  # Extract the first word of "ar", so it can be a program name with args.
6905set dummy ar; ac_word=$2
6906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6909  echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911  if test -n "$ac_ct_AR"; then
6912  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6913else
6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917  IFS=$as_save_IFS
6918  test -z "$as_dir" && as_dir=.
6919  for ac_exec_ext in '' $ac_executable_extensions; do
6920  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6921    ac_cv_prog_ac_ct_AR="ar"
6922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923    break 2
6924  fi
6925done
6926done
6927IFS=$as_save_IFS
6928
6929fi
6930fi
6931ac_ct_AR=$ac_cv_prog_ac_ct_AR
6932if test -n "$ac_ct_AR"; then
6933  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6934echo "${ECHO_T}$ac_ct_AR" >&6; }
6935else
6936  { echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6; }
6938fi
6939
6940  if test "x$ac_ct_AR" = x; then
6941    AR="false"
6942  else
6943    case $cross_compiling:$ac_tool_warned in
6944yes:)
6945{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6946whose name does not start with the host triplet.  If you think this
6947configuration is useful to you, please write to autoconf@gnu.org." >&5
6948echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6949whose name does not start with the host triplet.  If you think this
6950configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6951ac_tool_warned=yes ;;
6952esac
6953    AR=$ac_ct_AR
6954  fi
6955else
6956  AR="$ac_cv_prog_AR"
6957fi
6958
6959if test -n "$ac_tool_prefix"; then
6960  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6961set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964if test "${ac_cv_prog_RANLIB+set}" = set; then
6965  echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967  if test -n "$RANLIB"; then
6968  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973  IFS=$as_save_IFS
6974  test -z "$as_dir" && as_dir=.
6975  for ac_exec_ext in '' $ac_executable_extensions; do
6976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979    break 2
6980  fi
6981done
6982done
6983IFS=$as_save_IFS
6984
6985fi
6986fi
6987RANLIB=$ac_cv_prog_RANLIB
6988if test -n "$RANLIB"; then
6989  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6990echo "${ECHO_T}$RANLIB" >&6; }
6991else
6992  { echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6; }
6994fi
6995
6996
6997fi
6998if test -z "$ac_cv_prog_RANLIB"; then
6999  ac_ct_RANLIB=$RANLIB
7000  # Extract the first word of "ranlib", so it can be a program name with args.
7001set dummy ranlib; ac_word=$2
7002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7005  echo $ECHO_N "(cached) $ECHO_C" >&6
7006else
7007  if test -n "$ac_ct_RANLIB"; then
7008  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013  IFS=$as_save_IFS
7014  test -z "$as_dir" && as_dir=.
7015  for ac_exec_ext in '' $ac_executable_extensions; do
7016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017    ac_cv_prog_ac_ct_RANLIB="ranlib"
7018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019    break 2
7020  fi
7021done
7022done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7028if test -n "$ac_ct_RANLIB"; then
7029  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7030echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7031else
7032  { echo "$as_me:$LINENO: result: no" >&5
7033echo "${ECHO_T}no" >&6; }
7034fi
7035
7036  if test "x$ac_ct_RANLIB" = x; then
7037    RANLIB=":"
7038  else
7039    case $cross_compiling:$ac_tool_warned in
7040yes:)
7041{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7042whose name does not start with the host triplet.  If you think this
7043configuration is useful to you, please write to autoconf@gnu.org." >&5
7044echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7045whose name does not start with the host triplet.  If you think this
7046configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7047ac_tool_warned=yes ;;
7048esac
7049    RANLIB=$ac_ct_RANLIB
7050  fi
7051else
7052  RANLIB="$ac_cv_prog_RANLIB"
7053fi
7054
7055if test -n "$ac_tool_prefix"; then
7056  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7057set dummy ${ac_tool_prefix}strip; ac_word=$2
7058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060if test "${ac_cv_prog_STRIP+set}" = set; then
7061  echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063  if test -n "$STRIP"; then
7064  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069  IFS=$as_save_IFS
7070  test -z "$as_dir" && as_dir=.
7071  for ac_exec_ext in '' $ac_executable_extensions; do
7072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7073    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075    break 2
7076  fi
7077done
7078done
7079IFS=$as_save_IFS
7080
7081fi
7082fi
7083STRIP=$ac_cv_prog_STRIP
7084if test -n "$STRIP"; then
7085  { echo "$as_me:$LINENO: result: $STRIP" >&5
7086echo "${ECHO_T}$STRIP" >&6; }
7087else
7088  { echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6; }
7090fi
7091
7092
7093fi
7094if test -z "$ac_cv_prog_STRIP"; then
7095  ac_ct_STRIP=$STRIP
7096  # Extract the first word of "strip", so it can be a program name with args.
7097set dummy strip; ac_word=$2
7098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7101  echo $ECHO_N "(cached) $ECHO_C" >&6
7102else
7103  if test -n "$ac_ct_STRIP"; then
7104  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109  IFS=$as_save_IFS
7110  test -z "$as_dir" && as_dir=.
7111  for ac_exec_ext in '' $ac_executable_extensions; do
7112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7113    ac_cv_prog_ac_ct_STRIP="strip"
7114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115    break 2
7116  fi
7117done
7118done
7119IFS=$as_save_IFS
7120
7121fi
7122fi
7123ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7124if test -n "$ac_ct_STRIP"; then
7125  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7126echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7127else
7128  { echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6; }
7130fi
7131
7132  if test "x$ac_ct_STRIP" = x; then
7133    STRIP=":"
7134  else
7135    case $cross_compiling:$ac_tool_warned in
7136yes:)
7137{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7138whose name does not start with the host triplet.  If you think this
7139configuration is useful to you, please write to autoconf@gnu.org." >&5
7140echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7141whose name does not start with the host triplet.  If you think this
7142configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7143ac_tool_warned=yes ;;
7144esac
7145    STRIP=$ac_ct_STRIP
7146  fi
7147else
7148  STRIP="$ac_cv_prog_STRIP"
7149fi
7150
7151
7152old_CC="$CC"
7153old_CFLAGS="$CFLAGS"
7154
7155# Set sane defaults for various variables
7156test -z "$AR" && AR=ar
7157test -z "$AR_FLAGS" && AR_FLAGS=cru
7158test -z "$AS" && AS=as
7159test -z "$CC" && CC=cc
7160test -z "$LTCC" && LTCC=$CC
7161test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7162test -z "$DLLTOOL" && DLLTOOL=dlltool
7163test -z "$LD" && LD=ld
7164test -z "$LN_S" && LN_S="ln -s"
7165test -z "$MAGIC_CMD" && MAGIC_CMD=file
7166test -z "$NM" && NM=nm
7167test -z "$SED" && SED=sed
7168test -z "$OBJDUMP" && OBJDUMP=objdump
7169test -z "$RANLIB" && RANLIB=:
7170test -z "$STRIP" && STRIP=:
7171test -z "$ac_objext" && ac_objext=o
7172
7173# Determine commands to create old-style static archives.
7174old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7175old_postinstall_cmds='chmod 644 $oldlib'
7176old_postuninstall_cmds=
7177
7178if test -n "$RANLIB"; then
7179  case $host_os in
7180  openbsd*)
7181    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7182    ;;
7183  *)
7184    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7185    ;;
7186  esac
7187  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7188fi
7189
7190for cc_temp in $compiler""; do
7191  case $cc_temp in
7192    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7193    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7194    \-*) ;;
7195    *) break;;
7196  esac
7197done
7198cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7199
7200
7201# Only perform the check for file, if the check method requires it
7202case $deplibs_check_method in
7203file_magic*)
7204  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7205    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7206echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7207if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7208  echo $ECHO_N "(cached) $ECHO_C" >&6
7209else
7210  case $MAGIC_CMD in
7211[\\/*] |  ?:[\\/]*)
7212  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7213  ;;
7214*)
7215  lt_save_MAGIC_CMD="$MAGIC_CMD"
7216  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7217  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7218  for ac_dir in $ac_dummy; do
7219    IFS="$lt_save_ifs"
7220    test -z "$ac_dir" && ac_dir=.
7221    if test -f $ac_dir/${ac_tool_prefix}file; then
7222      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7223      if test -n "$file_magic_test_file"; then
7224	case $deplibs_check_method in
7225	"file_magic "*)
7226	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7227	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7228	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7229	    $EGREP "$file_magic_regex" > /dev/null; then
7230	    :
7231	  else
7232	    cat <<EOF 1>&2
7233
7234*** Warning: the command libtool uses to detect shared libraries,
7235*** $file_magic_cmd, produces output that libtool cannot recognize.
7236*** The result is that libtool may fail to recognize shared libraries
7237*** as such.  This will affect the creation of libtool libraries that
7238*** depend on shared libraries, but programs linked with such libtool
7239*** libraries will work regardless of this problem.  Nevertheless, you
7240*** may want to report the problem to your system manager and/or to
7241*** bug-libtool@gnu.org
7242
7243EOF
7244	  fi ;;
7245	esac
7246      fi
7247      break
7248    fi
7249  done
7250  IFS="$lt_save_ifs"
7251  MAGIC_CMD="$lt_save_MAGIC_CMD"
7252  ;;
7253esac
7254fi
7255
7256MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7257if test -n "$MAGIC_CMD"; then
7258  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7259echo "${ECHO_T}$MAGIC_CMD" >&6; }
7260else
7261  { echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6; }
7263fi
7264
7265if test -z "$lt_cv_path_MAGIC_CMD"; then
7266  if test -n "$ac_tool_prefix"; then
7267    { echo "$as_me:$LINENO: checking for file" >&5
7268echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7269if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7270  echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272  case $MAGIC_CMD in
7273[\\/*] |  ?:[\\/]*)
7274  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7275  ;;
7276*)
7277  lt_save_MAGIC_CMD="$MAGIC_CMD"
7278  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7279  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7280  for ac_dir in $ac_dummy; do
7281    IFS="$lt_save_ifs"
7282    test -z "$ac_dir" && ac_dir=.
7283    if test -f $ac_dir/file; then
7284      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7285      if test -n "$file_magic_test_file"; then
7286	case $deplibs_check_method in
7287	"file_magic "*)
7288	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7289	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7290	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7291	    $EGREP "$file_magic_regex" > /dev/null; then
7292	    :
7293	  else
7294	    cat <<EOF 1>&2
7295
7296*** Warning: the command libtool uses to detect shared libraries,
7297*** $file_magic_cmd, produces output that libtool cannot recognize.
7298*** The result is that libtool may fail to recognize shared libraries
7299*** as such.  This will affect the creation of libtool libraries that
7300*** depend on shared libraries, but programs linked with such libtool
7301*** libraries will work regardless of this problem.  Nevertheless, you
7302*** may want to report the problem to your system manager and/or to
7303*** bug-libtool@gnu.org
7304
7305EOF
7306	  fi ;;
7307	esac
7308      fi
7309      break
7310    fi
7311  done
7312  IFS="$lt_save_ifs"
7313  MAGIC_CMD="$lt_save_MAGIC_CMD"
7314  ;;
7315esac
7316fi
7317
7318MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7319if test -n "$MAGIC_CMD"; then
7320  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7321echo "${ECHO_T}$MAGIC_CMD" >&6; }
7322else
7323  { echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6; }
7325fi
7326
7327  else
7328    MAGIC_CMD=:
7329  fi
7330fi
7331
7332  fi
7333  ;;
7334esac
7335
7336enable_dlopen=no
7337enable_win32_dll=no
7338
7339# Check whether --enable-libtool-lock was given.
7340if test "${enable_libtool_lock+set}" = set; then
7341  enableval=$enable_libtool_lock;
7342fi
7343
7344test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7345
7346
7347# Check whether --with-pic was given.
7348if test "${with_pic+set}" = set; then
7349  withval=$with_pic; pic_mode="$withval"
7350else
7351  pic_mode=default
7352fi
7353
7354test -z "$pic_mode" && pic_mode=default
7355
7356# Use C for the default configuration in the libtool script
7357tagname=
7358lt_save_CC="$CC"
7359ac_ext=c
7360ac_cpp='$CPP $CPPFLAGS'
7361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364
7365
7366# Source file extension for C test sources.
7367ac_ext=c
7368
7369# Object file extension for compiled C test sources.
7370objext=o
7371objext=$objext
7372
7373# Code to be used in simple compile tests
7374lt_simple_compile_test_code="int some_variable = 0;\n"
7375
7376# Code to be used in simple link tests
7377lt_simple_link_test_code='int main(){return(0);}\n'
7378
7379
7380# If no C compiler was specified, use CC.
7381LTCC=${LTCC-"$CC"}
7382
7383# If no C compiler flags were specified, use CFLAGS.
7384LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7385
7386# Allow CC to be a program name with arguments.
7387compiler=$CC
7388
7389
7390# save warnings/boilerplate of simple test code
7391ac_outfile=conftest.$ac_objext
7392printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7393eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7394_lt_compiler_boilerplate=`cat conftest.err`
7395$rm conftest*
7396
7397ac_outfile=conftest.$ac_objext
7398printf "$lt_simple_link_test_code" >conftest.$ac_ext
7399eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7400_lt_linker_boilerplate=`cat conftest.err`
7401$rm conftest*
7402
7403
7404
7405lt_prog_compiler_no_builtin_flag=
7406
7407if test "$GCC" = yes; then
7408  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7409
7410
7411{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7412echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7413if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7414  echo $ECHO_N "(cached) $ECHO_C" >&6
7415else
7416  lt_cv_prog_compiler_rtti_exceptions=no
7417  ac_outfile=conftest.$ac_objext
7418   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7419   lt_compiler_flag="-fno-rtti -fno-exceptions"
7420   # Insert the option either (1) after the last *FLAGS variable, or
7421   # (2) before a word containing "conftest.", or (3) at the end.
7422   # Note that $ac_compile itself does not contain backslashes and begins
7423   # with a dollar sign (not a hyphen), so the echo should work correctly.
7424   # The option is referenced via a variable to avoid confusing sed.
7425   lt_compile=`echo "$ac_compile" | $SED \
7426   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7427   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7428   -e 's:$: $lt_compiler_flag:'`
7429   (eval echo "\"\$as_me:7429: $lt_compile\"" >&5)
7430   (eval "$lt_compile" 2>conftest.err)
7431   ac_status=$?
7432   cat conftest.err >&5
7433   echo "$as_me:7433: \$? = $ac_status" >&5
7434   if (exit $ac_status) && test -s "$ac_outfile"; then
7435     # The compiler can only warn and ignore the option if not recognized
7436     # So say no if there are warnings other than the usual output.
7437     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7438     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7439     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7440       lt_cv_prog_compiler_rtti_exceptions=yes
7441     fi
7442   fi
7443   $rm conftest*
7444
7445fi
7446{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7447echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7448
7449if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7450    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7451else
7452    :
7453fi
7454
7455fi
7456
7457lt_prog_compiler_wl=
7458lt_prog_compiler_pic=
7459lt_prog_compiler_static=
7460
7461{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7462echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7463
7464  if test "$GCC" = yes; then
7465    lt_prog_compiler_wl='-Wl,'
7466    lt_prog_compiler_static='-static'
7467
7468    case $host_os in
7469      aix*)
7470      # All AIX code is PIC.
7471      if test "$host_cpu" = ia64; then
7472	# AIX 5 now supports IA64 processor
7473	lt_prog_compiler_static='-Bstatic'
7474      fi
7475      ;;
7476
7477    amigaos*)
7478      # FIXME: we need at least 68020 code to build shared libraries, but
7479      # adding the `-m68020' flag to GCC prevents building anything better,
7480      # like `-m68040'.
7481      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7482      ;;
7483
7484    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7485      # PIC is the default for these OSes.
7486      ;;
7487
7488    mingw* | pw32* | os2*)
7489      # This hack is so that the source file can tell whether it is being
7490      # built for inclusion in a dll (and should export symbols for example).
7491      lt_prog_compiler_pic='-DDLL_EXPORT'
7492      ;;
7493
7494    darwin* | rhapsody*)
7495      # PIC is the default on this platform
7496      # Common symbols not allowed in MH_DYLIB files
7497      lt_prog_compiler_pic='-fno-common'
7498      ;;
7499
7500    interix3*)
7501      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7502      # Instead, we relocate shared libraries at runtime.
7503      ;;
7504
7505    msdosdjgpp*)
7506      # Just because we use GCC doesn't mean we suddenly get shared libraries
7507      # on systems that don't support them.
7508      lt_prog_compiler_can_build_shared=no
7509      enable_shared=no
7510      ;;
7511
7512    sysv4*MP*)
7513      if test -d /usr/nec; then
7514	lt_prog_compiler_pic=-Kconform_pic
7515      fi
7516      ;;
7517
7518    hpux*)
7519      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7520      # not for PA HP-UX.
7521      case $host_cpu in
7522      hppa*64*|ia64*)
7523	# +Z the default
7524	;;
7525      *)
7526	lt_prog_compiler_pic='-fPIC'
7527	;;
7528      esac
7529      ;;
7530
7531    *)
7532      lt_prog_compiler_pic='-fPIC'
7533      ;;
7534    esac
7535  else
7536    # PORTME Check for flag to pass linker flags through the system compiler.
7537    case $host_os in
7538    aix*)
7539      lt_prog_compiler_wl='-Wl,'
7540      if test "$host_cpu" = ia64; then
7541	# AIX 5 now supports IA64 processor
7542	lt_prog_compiler_static='-Bstatic'
7543      else
7544	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7545      fi
7546      ;;
7547      darwin*)
7548        # PIC is the default on this platform
7549        # Common symbols not allowed in MH_DYLIB files
7550       case $cc_basename in
7551         xlc*)
7552         lt_prog_compiler_pic='-qnocommon'
7553         lt_prog_compiler_wl='-Wl,'
7554         ;;
7555       esac
7556       ;;
7557
7558    mingw* | pw32* | os2*)
7559      # This hack is so that the source file can tell whether it is being
7560      # built for inclusion in a dll (and should export symbols for example).
7561      lt_prog_compiler_pic='-DDLL_EXPORT'
7562      ;;
7563
7564    hpux9* | hpux10* | hpux11*)
7565      lt_prog_compiler_wl='-Wl,'
7566      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7567      # not for PA HP-UX.
7568      case $host_cpu in
7569      hppa*64*|ia64*)
7570	# +Z the default
7571	;;
7572      *)
7573	lt_prog_compiler_pic='+Z'
7574	;;
7575      esac
7576      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7577      lt_prog_compiler_static='${wl}-a ${wl}archive'
7578      ;;
7579
7580    irix5* | irix6* | nonstopux*)
7581      lt_prog_compiler_wl='-Wl,'
7582      # PIC (with -KPIC) is the default.
7583      lt_prog_compiler_static='-non_shared'
7584      ;;
7585
7586    newsos6)
7587      lt_prog_compiler_pic='-KPIC'
7588      lt_prog_compiler_static='-Bstatic'
7589      ;;
7590
7591    linux* | k*bsd*-gnu)
7592      case $cc_basename in
7593      icc* | ecc*)
7594	lt_prog_compiler_wl='-Wl,'
7595	lt_prog_compiler_pic='-KPIC'
7596	lt_prog_compiler_static='-static'
7597        ;;
7598      pgcc* | pgf77* | pgf90* | pgf95*)
7599        # Portland Group compilers (*not* the Pentium gcc compiler,
7600	# which looks to be a dead project)
7601	lt_prog_compiler_wl='-Wl,'
7602	lt_prog_compiler_pic='-fpic'
7603	lt_prog_compiler_static='-Bstatic'
7604        ;;
7605      ccc*)
7606        lt_prog_compiler_wl='-Wl,'
7607        # All Alpha code is PIC.
7608        lt_prog_compiler_static='-non_shared'
7609        ;;
7610      esac
7611      ;;
7612
7613    osf3* | osf4* | osf5*)
7614      lt_prog_compiler_wl='-Wl,'
7615      # All OSF/1 code is PIC.
7616      lt_prog_compiler_static='-non_shared'
7617      ;;
7618
7619    solaris*)
7620      lt_prog_compiler_pic='-KPIC'
7621      lt_prog_compiler_static='-Bstatic'
7622      case $cc_basename in
7623      f77* | f90* | f95*)
7624	lt_prog_compiler_wl='-Qoption ld ';;
7625      *)
7626	lt_prog_compiler_wl='-Wl,';;
7627      esac
7628      ;;
7629
7630    sunos4*)
7631      lt_prog_compiler_wl='-Qoption ld '
7632      lt_prog_compiler_pic='-PIC'
7633      lt_prog_compiler_static='-Bstatic'
7634      ;;
7635
7636    sysv4 | sysv4.2uw2* | sysv4.3*)
7637      lt_prog_compiler_wl='-Wl,'
7638      lt_prog_compiler_pic='-KPIC'
7639      lt_prog_compiler_static='-Bstatic'
7640      ;;
7641
7642    sysv4*MP*)
7643      if test -d /usr/nec ;then
7644	lt_prog_compiler_pic='-Kconform_pic'
7645	lt_prog_compiler_static='-Bstatic'
7646      fi
7647      ;;
7648
7649    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7650      lt_prog_compiler_wl='-Wl,'
7651      lt_prog_compiler_pic='-KPIC'
7652      lt_prog_compiler_static='-Bstatic'
7653      ;;
7654
7655    unicos*)
7656      lt_prog_compiler_wl='-Wl,'
7657      lt_prog_compiler_can_build_shared=no
7658      ;;
7659
7660    uts4*)
7661      lt_prog_compiler_pic='-pic'
7662      lt_prog_compiler_static='-Bstatic'
7663      ;;
7664
7665    *)
7666      lt_prog_compiler_can_build_shared=no
7667      ;;
7668    esac
7669  fi
7670
7671{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7672echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7673
7674#
7675# Check to make sure the PIC flag actually works.
7676#
7677if test -n "$lt_prog_compiler_pic"; then
7678
7679{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7680echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7681if test "${lt_prog_compiler_pic_works+set}" = set; then
7682  echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684  lt_prog_compiler_pic_works=no
7685  ac_outfile=conftest.$ac_objext
7686   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7687   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7688   # Insert the option either (1) after the last *FLAGS variable, or
7689   # (2) before a word containing "conftest.", or (3) at the end.
7690   # Note that $ac_compile itself does not contain backslashes and begins
7691   # with a dollar sign (not a hyphen), so the echo should work correctly.
7692   # The option is referenced via a variable to avoid confusing sed.
7693   lt_compile=`echo "$ac_compile" | $SED \
7694   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7695   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7696   -e 's:$: $lt_compiler_flag:'`
7697   (eval echo "\"\$as_me:7697: $lt_compile\"" >&5)
7698   (eval "$lt_compile" 2>conftest.err)
7699   ac_status=$?
7700   cat conftest.err >&5
7701   echo "$as_me:7701: \$? = $ac_status" >&5
7702   if (exit $ac_status) && test -s "$ac_outfile"; then
7703     # The compiler can only warn and ignore the option if not recognized
7704     # So say no if there are warnings other than the usual output.
7705     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7706     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7707     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7708       lt_prog_compiler_pic_works=yes
7709     fi
7710   fi
7711   $rm conftest*
7712
7713fi
7714{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7715echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7716
7717if test x"$lt_prog_compiler_pic_works" = xyes; then
7718    case $lt_prog_compiler_pic in
7719     "" | " "*) ;;
7720     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7721     esac
7722else
7723    lt_prog_compiler_pic=
7724     lt_prog_compiler_can_build_shared=no
7725fi
7726
7727fi
7728case $host_os in
7729  # For platforms which do not support PIC, -DPIC is meaningless:
7730  *djgpp*)
7731    lt_prog_compiler_pic=
7732    ;;
7733  *)
7734    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7735    ;;
7736esac
7737
7738#
7739# Check to make sure the static flag actually works.
7740#
7741wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7742{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7743echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7744if test "${lt_prog_compiler_static_works+set}" = set; then
7745  echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747  lt_prog_compiler_static_works=no
7748   save_LDFLAGS="$LDFLAGS"
7749   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7750   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7751   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7752     # The linker can only warn and ignore the option if not recognized
7753     # So say no if there are warnings
7754     if test -s conftest.err; then
7755       # Append any errors to the config.log.
7756       cat conftest.err 1>&5
7757       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7758       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7759       if diff conftest.exp conftest.er2 >/dev/null; then
7760         lt_prog_compiler_static_works=yes
7761       fi
7762     else
7763       lt_prog_compiler_static_works=yes
7764     fi
7765   fi
7766   $rm conftest*
7767   LDFLAGS="$save_LDFLAGS"
7768
7769fi
7770{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7771echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7772
7773if test x"$lt_prog_compiler_static_works" = xyes; then
7774    :
7775else
7776    lt_prog_compiler_static=
7777fi
7778
7779
7780{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7781echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7782if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7783  echo $ECHO_N "(cached) $ECHO_C" >&6
7784else
7785  lt_cv_prog_compiler_c_o=no
7786   $rm -r conftest 2>/dev/null
7787   mkdir conftest
7788   cd conftest
7789   mkdir out
7790   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7791
7792   lt_compiler_flag="-o out/conftest2.$ac_objext"
7793   # Insert the option either (1) after the last *FLAGS variable, or
7794   # (2) before a word containing "conftest.", or (3) at the end.
7795   # Note that $ac_compile itself does not contain backslashes and begins
7796   # with a dollar sign (not a hyphen), so the echo should work correctly.
7797   lt_compile=`echo "$ac_compile" | $SED \
7798   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7799   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7800   -e 's:$: $lt_compiler_flag:'`
7801   (eval echo "\"\$as_me:7801: $lt_compile\"" >&5)
7802   (eval "$lt_compile" 2>out/conftest.err)
7803   ac_status=$?
7804   cat out/conftest.err >&5
7805   echo "$as_me:7805: \$? = $ac_status" >&5
7806   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7807   then
7808     # The compiler can only warn and ignore the option if not recognized
7809     # So say no if there are warnings
7810     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7811     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7812     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7813       lt_cv_prog_compiler_c_o=yes
7814     fi
7815   fi
7816   chmod u+w . 2>&5
7817   $rm conftest*
7818   # SGI C++ compiler will create directory out/ii_files/ for
7819   # template instantiation
7820   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7821   $rm out/* && rmdir out
7822   cd ..
7823   rmdir conftest
7824   $rm conftest*
7825
7826fi
7827{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7828echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7829
7830
7831hard_links="nottested"
7832if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7833  # do not overwrite the value of need_locks provided by the user
7834  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7835echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7836  hard_links=yes
7837  $rm conftest*
7838  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7839  touch conftest.a
7840  ln conftest.a conftest.b 2>&5 || hard_links=no
7841  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7842  { echo "$as_me:$LINENO: result: $hard_links" >&5
7843echo "${ECHO_T}$hard_links" >&6; }
7844  if test "$hard_links" = no; then
7845    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7846echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7847    need_locks=warn
7848  fi
7849else
7850  need_locks=no
7851fi
7852
7853{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7854echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7855
7856  runpath_var=
7857  allow_undefined_flag=
7858  enable_shared_with_static_runtimes=no
7859  archive_cmds=
7860  archive_expsym_cmds=
7861  old_archive_From_new_cmds=
7862  old_archive_from_expsyms_cmds=
7863  export_dynamic_flag_spec=
7864  whole_archive_flag_spec=
7865  thread_safe_flag_spec=
7866  hardcode_libdir_flag_spec=
7867  hardcode_libdir_flag_spec_ld=
7868  hardcode_libdir_separator=
7869  hardcode_direct=no
7870  hardcode_minus_L=no
7871  hardcode_shlibpath_var=unsupported
7872  link_all_deplibs=unknown
7873  hardcode_automatic=no
7874  module_cmds=
7875  module_expsym_cmds=
7876  always_export_symbols=no
7877  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7878  # include_expsyms should be a list of space-separated symbols to be *always*
7879  # included in the symbol list
7880  include_expsyms=
7881  # exclude_expsyms can be an extended regexp of symbols to exclude
7882  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7883  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7884  # as well as any symbol that contains `d'.
7885  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7886  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7887  # platforms (ab)use it in PIC code, but their linkers get confused if
7888  # the symbol is explicitly referenced.  Since portable code cannot
7889  # rely on this symbol name, it's probably fine to never include it in
7890  # preloaded symbol tables.
7891  extract_expsyms_cmds=
7892  # Just being paranoid about ensuring that cc_basename is set.
7893  for cc_temp in $compiler""; do
7894  case $cc_temp in
7895    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7896    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7897    \-*) ;;
7898    *) break;;
7899  esac
7900done
7901cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7902
7903  case $host_os in
7904  cygwin* | mingw* | pw32*)
7905    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7906    # When not using gcc, we currently assume that we are using
7907    # Microsoft Visual C++.
7908    if test "$GCC" != yes; then
7909      with_gnu_ld=no
7910    fi
7911    ;;
7912  interix*)
7913    # we just hope/assume this is gcc and not c89 (= MSVC++)
7914    with_gnu_ld=yes
7915    ;;
7916  openbsd*)
7917    with_gnu_ld=no
7918    ;;
7919  esac
7920
7921  ld_shlibs=yes
7922  if test "$with_gnu_ld" = yes; then
7923    # If archive_cmds runs LD, not CC, wlarc should be empty
7924    wlarc='${wl}'
7925
7926    # Set some defaults for GNU ld with shared library support. These
7927    # are reset later if shared libraries are not supported. Putting them
7928    # here allows them to be overridden if necessary.
7929    runpath_var=LD_RUN_PATH
7930    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7931    export_dynamic_flag_spec='${wl}--export-dynamic'
7932    # ancient GNU ld didn't support --whole-archive et. al.
7933    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7934	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7935      else
7936  	whole_archive_flag_spec=
7937    fi
7938    supports_anon_versioning=no
7939    case `$LD -v 2>/dev/null` in
7940      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7941      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7942      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7943      *\ 2.11.*) ;; # other 2.11 versions
7944      *) supports_anon_versioning=yes ;;
7945    esac
7946
7947    # See if GNU ld supports shared libraries.
7948    case $host_os in
7949    aix3* | aix4* | aix5*)
7950      # On AIX/PPC, the GNU linker is very broken
7951      if test "$host_cpu" != ia64; then
7952	ld_shlibs=no
7953	cat <<EOF 1>&2
7954
7955*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7956*** to be unable to reliably create shared libraries on AIX.
7957*** Therefore, libtool is disabling shared libraries support.  If you
7958*** really care for shared libraries, you may want to modify your PATH
7959*** so that a non-GNU linker is found, and then restart.
7960
7961EOF
7962      fi
7963      ;;
7964
7965    amigaos*)
7966      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)'
7967      hardcode_libdir_flag_spec='-L$libdir'
7968      hardcode_minus_L=yes
7969
7970      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7971      # that the semantics of dynamic libraries on AmigaOS, at least up
7972      # to version 4, is to share data among multiple programs linked
7973      # with the same dynamic library.  Since this doesn't match the
7974      # behavior of shared libraries on other platforms, we can't use
7975      # them.
7976      ld_shlibs=no
7977      ;;
7978
7979    beos*)
7980      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7981	allow_undefined_flag=unsupported
7982	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7983	# support --undefined.  This deserves some investigation.  FIXME
7984	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985      else
7986	ld_shlibs=no
7987      fi
7988      ;;
7989
7990    cygwin* | mingw* | pw32*)
7991      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7992      # as there is no search path for DLLs.
7993      hardcode_libdir_flag_spec='-L$libdir'
7994      allow_undefined_flag=unsupported
7995      always_export_symbols=no
7996      enable_shared_with_static_runtimes=yes
7997      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7998
7999      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8000        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8001	# If the export-symbols file already is a .def file (1st line
8002	# is EXPORTS), use it as is; otherwise, prepend...
8003	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8004	  cp $export_symbols $output_objdir/$soname.def;
8005	else
8006	  echo EXPORTS > $output_objdir/$soname.def;
8007	  cat $export_symbols >> $output_objdir/$soname.def;
8008	fi~
8009	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8010      else
8011	ld_shlibs=no
8012      fi
8013      ;;
8014
8015    interix3*)
8016      hardcode_direct=no
8017      hardcode_shlibpath_var=no
8018      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8019      export_dynamic_flag_spec='${wl}-E'
8020      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8021      # Instead, shared libraries are loaded at an image base (0x10000000 by
8022      # default) and relocated if they conflict, which is a slow very memory
8023      # consuming and fragmenting process.  To avoid this, we pick a random,
8024      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8025      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8026      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8027      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'
8028      ;;
8029
8030    linux* | k*bsd*-gnu)
8031      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8032	tmp_addflag=
8033	case $cc_basename,$host_cpu in
8034	pgcc*)				# Portland Group C compiler
8035	  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'
8036	  tmp_addflag=' $pic_flag'
8037	  ;;
8038	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8039	  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'
8040	  tmp_addflag=' $pic_flag -Mnomain' ;;
8041	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8042	  tmp_addflag=' -i_dynamic' ;;
8043	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8044	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8045	ifc* | ifort*)			# Intel Fortran compiler
8046	  tmp_addflag=' -nofor_main' ;;
8047	esac
8048	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8049
8050	if test $supports_anon_versioning = yes; then
8051	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8052  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8053  $echo "local: *; };" >> $output_objdir/$libname.ver~
8054	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8055	fi
8056	link_all_deplibs=no
8057      else
8058	ld_shlibs=no
8059      fi
8060      ;;
8061
8062    netbsd* | netbsdelf*-gnu)
8063      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8064	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8065	wlarc=
8066      else
8067	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8068	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8069      fi
8070      ;;
8071
8072    solaris*)
8073      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8074	ld_shlibs=no
8075	cat <<EOF 1>&2
8076
8077*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8078*** create shared libraries on Solaris systems.  Therefore, libtool
8079*** is disabling shared libraries support.  We urge you to upgrade GNU
8080*** binutils to release 2.9.1 or newer.  Another option is to modify
8081*** your PATH or compiler configuration so that the native linker is
8082*** used, and then restart.
8083
8084EOF
8085      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8086	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8087	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8088      else
8089	ld_shlibs=no
8090      fi
8091      ;;
8092
8093    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8094      case `$LD -v 2>&1` in
8095        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8096	ld_shlibs=no
8097	cat <<_LT_EOF 1>&2
8098
8099*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8100*** reliably create shared libraries on SCO systems.  Therefore, libtool
8101*** is disabling shared libraries support.  We urge you to upgrade GNU
8102*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8103*** your PATH or compiler configuration so that the native linker is
8104*** used, and then restart.
8105
8106_LT_EOF
8107	;;
8108	*)
8109	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8110	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8111	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8112	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8113	  else
8114	    ld_shlibs=no
8115	  fi
8116	;;
8117      esac
8118      ;;
8119
8120    sunos4*)
8121      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8122      wlarc=
8123      hardcode_direct=yes
8124      hardcode_shlibpath_var=no
8125      ;;
8126
8127    *)
8128      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8129	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8131      else
8132	ld_shlibs=no
8133      fi
8134      ;;
8135    esac
8136
8137    if test "$ld_shlibs" = no; then
8138      runpath_var=
8139      hardcode_libdir_flag_spec=
8140      export_dynamic_flag_spec=
8141      whole_archive_flag_spec=
8142    fi
8143  else
8144    # PORTME fill in a description of your system's linker (not GNU ld)
8145    case $host_os in
8146    aix3*)
8147      allow_undefined_flag=unsupported
8148      always_export_symbols=yes
8149      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'
8150      # Note: this linker hardcodes the directories in LIBPATH if there
8151      # are no directories specified by -L.
8152      hardcode_minus_L=yes
8153      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8154	# Neither direct hardcoding nor static linking is supported with a
8155	# broken collect2.
8156	hardcode_direct=unsupported
8157      fi
8158      ;;
8159
8160    aix4* | aix5*)
8161      if test "$host_cpu" = ia64; then
8162	# On IA64, the linker does run time linking by default, so we don't
8163	# have to do anything special.
8164	aix_use_runtimelinking=no
8165	exp_sym_flag='-Bexport'
8166	no_entry_flag=""
8167      else
8168	# If we're using GNU nm, then we don't want the "-C" option.
8169	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8170	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8171	  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'
8172	else
8173	  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'
8174	fi
8175	aix_use_runtimelinking=no
8176
8177	# Test if we are trying to use run time linking or normal
8178	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8179	# need to do runtime linking.
8180	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8181	  for ld_flag in $LDFLAGS; do
8182  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8183  	    aix_use_runtimelinking=yes
8184  	    break
8185  	  fi
8186	  done
8187	  ;;
8188	esac
8189
8190	exp_sym_flag='-bexport'
8191	no_entry_flag='-bnoentry'
8192      fi
8193
8194      # When large executables or shared objects are built, AIX ld can
8195      # have problems creating the table of contents.  If linking a library
8196      # or program results in "error TOC overflow" add -mminimal-toc to
8197      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8198      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8199
8200      archive_cmds=''
8201      hardcode_direct=yes
8202      hardcode_libdir_separator=':'
8203      link_all_deplibs=yes
8204
8205      if test "$GCC" = yes; then
8206	case $host_os in aix4.[012]|aix4.[012].*)
8207	# We only want to do this on AIX 4.2 and lower, the check
8208	# below for broken collect2 doesn't work under 4.3+
8209	  collect2name=`${CC} -print-prog-name=collect2`
8210	  if test -f "$collect2name" && \
8211  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8212	  then
8213  	  # We have reworked collect2
8214  	  hardcode_direct=yes
8215	  else
8216  	  # We have old collect2
8217  	  hardcode_direct=unsupported
8218  	  # It fails to find uninstalled libraries when the uninstalled
8219  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8220  	  # to unsupported forces relinking
8221  	  hardcode_minus_L=yes
8222  	  hardcode_libdir_flag_spec='-L$libdir'
8223  	  hardcode_libdir_separator=
8224	  fi
8225	  ;;
8226	esac
8227	shared_flag='-shared'
8228	if test "$aix_use_runtimelinking" = yes; then
8229	  shared_flag="$shared_flag "'${wl}-G'
8230	fi
8231      else
8232	# not using gcc
8233	if test "$host_cpu" = ia64; then
8234  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8235  	# chokes on -Wl,-G. The following line is correct:
8236	  shared_flag='-G'
8237	else
8238	  if test "$aix_use_runtimelinking" = yes; then
8239	    shared_flag='${wl}-G'
8240	  else
8241	    shared_flag='${wl}-bM:SRE'
8242	  fi
8243	fi
8244      fi
8245
8246      # It seems that -bexpall does not export symbols beginning with
8247      # underscore (_), so it is better to generate a list of symbols to export.
8248      always_export_symbols=yes
8249      if test "$aix_use_runtimelinking" = yes; then
8250	# Warning - without using the other runtime loading flags (-brtl),
8251	# -berok will link without error, but may produce a broken library.
8252	allow_undefined_flag='-berok'
8253       # Determine the default libpath from the value encoded in an empty executable.
8254       cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h.  */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h.  */
8260
8261int
8262main ()
8263{
8264
8265  ;
8266  return 0;
8267}
8268_ACEOF
8269rm -f conftest.$ac_objext conftest$ac_exeext
8270if { (ac_try="$ac_link"
8271case "(($ac_try" in
8272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273  *) ac_try_echo=$ac_try;;
8274esac
8275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276  (eval "$ac_link") 2>conftest.er1
8277  ac_status=$?
8278  grep -v '^ *+' conftest.er1 >conftest.err
8279  rm -f conftest.er1
8280  cat conftest.err >&5
8281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282  (exit $ac_status); } &&
8283	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8284  { (case "(($ac_try" in
8285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286  *) ac_try_echo=$ac_try;;
8287esac
8288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289  (eval "$ac_try") 2>&5
8290  ac_status=$?
8291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292  (exit $ac_status); }; } &&
8293	 { ac_try='test -s conftest$ac_exeext'
8294  { (case "(($ac_try" in
8295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296  *) ac_try_echo=$ac_try;;
8297esac
8298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299  (eval "$ac_try") 2>&5
8300  ac_status=$?
8301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302  (exit $ac_status); }; }; then
8303
8304aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8305}'`
8306# Check for a 64-bit object if we didn't find anything.
8307if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8308}'`; fi
8309else
8310  echo "$as_me: failed program was:" >&5
8311sed 's/^/| /' conftest.$ac_ext >&5
8312
8313
8314fi
8315
8316rm -f core conftest.err conftest.$ac_objext \
8317      conftest$ac_exeext conftest.$ac_ext
8318if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8319
8320       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8321	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"
8322       else
8323	if test "$host_cpu" = ia64; then
8324	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8325	  allow_undefined_flag="-z nodefs"
8326	  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"
8327	else
8328	 # Determine the default libpath from the value encoded in an empty executable.
8329	 cat >conftest.$ac_ext <<_ACEOF
8330/* confdefs.h.  */
8331_ACEOF
8332cat confdefs.h >>conftest.$ac_ext
8333cat >>conftest.$ac_ext <<_ACEOF
8334/* end confdefs.h.  */
8335
8336int
8337main ()
8338{
8339
8340  ;
8341  return 0;
8342}
8343_ACEOF
8344rm -f conftest.$ac_objext conftest$ac_exeext
8345if { (ac_try="$ac_link"
8346case "(($ac_try" in
8347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348  *) ac_try_echo=$ac_try;;
8349esac
8350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351  (eval "$ac_link") 2>conftest.er1
8352  ac_status=$?
8353  grep -v '^ *+' conftest.er1 >conftest.err
8354  rm -f conftest.er1
8355  cat conftest.err >&5
8356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357  (exit $ac_status); } &&
8358	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359  { (case "(($ac_try" in
8360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361  *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364  (eval "$ac_try") 2>&5
8365  ac_status=$?
8366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367  (exit $ac_status); }; } &&
8368	 { ac_try='test -s conftest$ac_exeext'
8369  { (case "(($ac_try" in
8370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371  *) ac_try_echo=$ac_try;;
8372esac
8373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374  (eval "$ac_try") 2>&5
8375  ac_status=$?
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); }; }; then
8378
8379aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8380}'`
8381# Check for a 64-bit object if we didn't find anything.
8382if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8383}'`; fi
8384else
8385  echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388
8389fi
8390
8391rm -f core conftest.err conftest.$ac_objext \
8392      conftest$ac_exeext conftest.$ac_ext
8393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8394
8395	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8396	  # Warning - without using the other run time loading flags,
8397	  # -berok will link without error, but may produce a broken library.
8398	  no_undefined_flag=' ${wl}-bernotok'
8399	  allow_undefined_flag=' ${wl}-berok'
8400	  # Exported symbols can be pulled into shared objects from archives
8401	  whole_archive_flag_spec='$convenience'
8402	  archive_cmds_need_lc=yes
8403	  # This is similar to how AIX traditionally builds its shared libraries.
8404	  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'
8405	fi
8406      fi
8407      ;;
8408
8409    amigaos*)
8410      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)'
8411      hardcode_libdir_flag_spec='-L$libdir'
8412      hardcode_minus_L=yes
8413      # see comment about different semantics on the GNU ld section
8414      ld_shlibs=no
8415      ;;
8416
8417    bsdi[45]*)
8418      export_dynamic_flag_spec=-rdynamic
8419      ;;
8420
8421    cygwin* | mingw* | pw32*)
8422      # When not using gcc, we currently assume that we are using
8423      # Microsoft Visual C++.
8424      # hardcode_libdir_flag_spec is actually meaningless, as there is
8425      # no search path for DLLs.
8426      hardcode_libdir_flag_spec=' '
8427      allow_undefined_flag=unsupported
8428      # Tell ltmain to make .lib files, not .a files.
8429      libext=lib
8430      # Tell ltmain to make .dll files, not .so files.
8431      shrext_cmds=".dll"
8432      # FIXME: Setting linknames here is a bad hack.
8433      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8434      # The linker will automatically build a .lib file if we build a DLL.
8435      old_archive_From_new_cmds='true'
8436      # FIXME: Should let the user specify the lib program.
8437      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8438      fix_srcfile_path='`cygpath -w "$srcfile"`'
8439      enable_shared_with_static_runtimes=yes
8440      ;;
8441
8442    darwin* | rhapsody*)
8443      case $host_os in
8444        rhapsody* | darwin1.[012])
8445         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8446         ;;
8447       *) # Darwin 1.3 on
8448         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8449           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8450         else
8451           case ${MACOSX_DEPLOYMENT_TARGET} in
8452             10.[012])
8453               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8454               ;;
8455             10.*)
8456               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8457               ;;
8458           esac
8459         fi
8460         ;;
8461      esac
8462      archive_cmds_need_lc=no
8463      hardcode_direct=no
8464      hardcode_automatic=yes
8465      hardcode_shlibpath_var=unsupported
8466      whole_archive_flag_spec=''
8467      link_all_deplibs=yes
8468    if test "$GCC" = yes ; then
8469    	output_verbose_link_cmd='echo'
8470        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8471      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8472      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8473      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}'
8474      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}'
8475    else
8476      case $cc_basename in
8477        xlc*)
8478         output_verbose_link_cmd='echo'
8479         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8480         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8481          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8482         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8483          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}'
8484          ;;
8485       *)
8486         ld_shlibs=no
8487          ;;
8488      esac
8489    fi
8490      ;;
8491
8492    dgux*)
8493      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8494      hardcode_libdir_flag_spec='-L$libdir'
8495      hardcode_shlibpath_var=no
8496      ;;
8497
8498    freebsd1*)
8499      ld_shlibs=no
8500      ;;
8501
8502    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8503    # support.  Future versions do this automatically, but an explicit c++rt0.o
8504    # does not break anything, and helps significantly (at the cost of a little
8505    # extra space).
8506    freebsd2.2*)
8507      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8508      hardcode_libdir_flag_spec='-R$libdir'
8509      hardcode_direct=yes
8510      hardcode_shlibpath_var=no
8511      ;;
8512
8513    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8514    freebsd2*)
8515      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8516      hardcode_direct=yes
8517      hardcode_minus_L=yes
8518      hardcode_shlibpath_var=no
8519      ;;
8520
8521    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8522    freebsd* | dragonfly*)
8523      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8524      hardcode_libdir_flag_spec='-R$libdir'
8525      hardcode_direct=yes
8526      hardcode_shlibpath_var=no
8527      ;;
8528
8529    hpux9*)
8530      if test "$GCC" = yes; then
8531	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'
8532      else
8533	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'
8534      fi
8535      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8536      hardcode_libdir_separator=:
8537      hardcode_direct=yes
8538
8539      # hardcode_minus_L: Not really in the search PATH,
8540      # but as the default location of the library.
8541      hardcode_minus_L=yes
8542      export_dynamic_flag_spec='${wl}-E'
8543      ;;
8544
8545    hpux10*)
8546      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8547	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8548      else
8549	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8550      fi
8551      if test "$with_gnu_ld" = no; then
8552	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8553	hardcode_libdir_separator=:
8554
8555	hardcode_direct=yes
8556	export_dynamic_flag_spec='${wl}-E'
8557
8558	# hardcode_minus_L: Not really in the search PATH,
8559	# but as the default location of the library.
8560	hardcode_minus_L=yes
8561      fi
8562      ;;
8563
8564    hpux11*)
8565      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8566	case $host_cpu in
8567	hppa*64*)
8568	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8569	  ;;
8570	ia64*)
8571	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8572	  ;;
8573	*)
8574	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8575	  ;;
8576	esac
8577      else
8578	case $host_cpu in
8579	hppa*64*)
8580	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8581	  ;;
8582	ia64*)
8583	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8584	  ;;
8585	*)
8586	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8587	  ;;
8588	esac
8589      fi
8590      if test "$with_gnu_ld" = no; then
8591	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8592	hardcode_libdir_separator=:
8593
8594	case $host_cpu in
8595	hppa*64*|ia64*)
8596	  hardcode_libdir_flag_spec_ld='+b $libdir'
8597	  hardcode_direct=no
8598	  hardcode_shlibpath_var=no
8599	  ;;
8600	*)
8601	  hardcode_direct=yes
8602	  export_dynamic_flag_spec='${wl}-E'
8603
8604	  # hardcode_minus_L: Not really in the search PATH,
8605	  # but as the default location of the library.
8606	  hardcode_minus_L=yes
8607	  ;;
8608	esac
8609      fi
8610      ;;
8611
8612    irix5* | irix6* | nonstopux*)
8613      if test "$GCC" = yes; then
8614	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'
8615      else
8616	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'
8617	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8618      fi
8619      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8620      hardcode_libdir_separator=:
8621      link_all_deplibs=yes
8622      ;;
8623
8624    netbsd* | netbsdelf*-gnu)
8625      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8626	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8627      else
8628	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8629      fi
8630      hardcode_libdir_flag_spec='-R$libdir'
8631      hardcode_direct=yes
8632      hardcode_shlibpath_var=no
8633      ;;
8634
8635    newsos6)
8636      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637      hardcode_direct=yes
8638      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639      hardcode_libdir_separator=:
8640      hardcode_shlibpath_var=no
8641      ;;
8642
8643    openbsd*)
8644      hardcode_direct=yes
8645      hardcode_shlibpath_var=no
8646      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8647	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8648	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8649	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8650	export_dynamic_flag_spec='${wl}-E'
8651      else
8652       case $host_os in
8653	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8654	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655	   hardcode_libdir_flag_spec='-R$libdir'
8656	   ;;
8657	 *)
8658	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8659	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8660	   ;;
8661       esac
8662      fi
8663      ;;
8664
8665    os2*)
8666      hardcode_libdir_flag_spec='-L$libdir'
8667      hardcode_minus_L=yes
8668      allow_undefined_flag=unsupported
8669      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'
8670      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8671      ;;
8672
8673    osf3*)
8674      if test "$GCC" = yes; then
8675	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8676	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'
8677      else
8678	allow_undefined_flag=' -expect_unresolved \*'
8679	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'
8680      fi
8681      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8682      hardcode_libdir_separator=:
8683      ;;
8684
8685    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8686      if test "$GCC" = yes; then
8687	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8688	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'
8689	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690      else
8691	allow_undefined_flag=' -expect_unresolved \*'
8692	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'
8693	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8694	$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'
8695
8696	# Both c and cxx compiler support -rpath directly
8697	hardcode_libdir_flag_spec='-rpath $libdir'
8698      fi
8699      hardcode_libdir_separator=:
8700      ;;
8701
8702    solaris*)
8703      no_undefined_flag=' -z text'
8704      if test "$GCC" = yes; then
8705	wlarc='${wl}'
8706	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8707	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8708	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8709      else
8710	wlarc=''
8711	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8713  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8714      fi
8715      hardcode_libdir_flag_spec='-R$libdir'
8716      hardcode_shlibpath_var=no
8717      case $host_os in
8718      solaris2.[0-5] | solaris2.[0-5].*) ;;
8719      *)
8720 	# The compiler driver will combine linker options so we
8721 	# cannot just pass the convience library names through
8722 	# without $wl, iff we do not link with $LD.
8723 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8724 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8725 	case $wlarc in
8726 	'')
8727 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8728 	*)
8729 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8730 	esac ;;
8731      esac
8732      link_all_deplibs=yes
8733      ;;
8734
8735    sunos4*)
8736      if test "x$host_vendor" = xsequent; then
8737	# Use $CC to link under sequent, because it throws in some extra .o
8738	# files that make .init and .fini sections work.
8739	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8740      else
8741	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8742      fi
8743      hardcode_libdir_flag_spec='-L$libdir'
8744      hardcode_direct=yes
8745      hardcode_minus_L=yes
8746      hardcode_shlibpath_var=no
8747      ;;
8748
8749    sysv4)
8750      case $host_vendor in
8751	sni)
8752	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753	  hardcode_direct=yes # is this really true???
8754	;;
8755	siemens)
8756	  ## LD is ld it makes a PLAMLIB
8757	  ## CC just makes a GrossModule.
8758	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8759	  reload_cmds='$CC -r -o $output$reload_objs'
8760	  hardcode_direct=no
8761        ;;
8762	motorola)
8763	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8765	;;
8766      esac
8767      runpath_var='LD_RUN_PATH'
8768      hardcode_shlibpath_var=no
8769      ;;
8770
8771    sysv4.3*)
8772      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773      hardcode_shlibpath_var=no
8774      export_dynamic_flag_spec='-Bexport'
8775      ;;
8776
8777    sysv4*MP*)
8778      if test -d /usr/nec; then
8779	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780	hardcode_shlibpath_var=no
8781	runpath_var=LD_RUN_PATH
8782	hardcode_runpath_var=yes
8783	ld_shlibs=yes
8784      fi
8785      ;;
8786
8787    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8788      no_undefined_flag='${wl}-z,text'
8789      archive_cmds_need_lc=no
8790      hardcode_shlibpath_var=no
8791      runpath_var='LD_RUN_PATH'
8792
8793      if test "$GCC" = yes; then
8794	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8795	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8796      else
8797	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8798	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8799      fi
8800      ;;
8801
8802    sysv5* | sco3.2v5* | sco5v6*)
8803      # Note: We can NOT use -z defs as we might desire, because we do not
8804      # link with -lc, and that would cause any symbols used from libc to
8805      # always be unresolved, which means just about no library would
8806      # ever link correctly.  If we're not using GNU ld we use -z text
8807      # though, which does catch some bad symbols but isn't as heavy-handed
8808      # as -z defs.
8809      no_undefined_flag='${wl}-z,text'
8810      allow_undefined_flag='${wl}-z,nodefs'
8811      archive_cmds_need_lc=no
8812      hardcode_shlibpath_var=no
8813      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8814      hardcode_libdir_separator=':'
8815      link_all_deplibs=yes
8816      export_dynamic_flag_spec='${wl}-Bexport'
8817      runpath_var='LD_RUN_PATH'
8818
8819      if test "$GCC" = yes; then
8820	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8821	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8822      else
8823	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8824	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8825      fi
8826      ;;
8827
8828    uts4*)
8829      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8830      hardcode_libdir_flag_spec='-L$libdir'
8831      hardcode_shlibpath_var=no
8832      ;;
8833
8834    *)
8835      ld_shlibs=no
8836      ;;
8837    esac
8838  fi
8839
8840{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8841echo "${ECHO_T}$ld_shlibs" >&6; }
8842test "$ld_shlibs" = no && can_build_shared=no
8843
8844#
8845# Do we need to explicitly link libc?
8846#
8847case "x$archive_cmds_need_lc" in
8848x|xyes)
8849  # Assume -lc should be added
8850  archive_cmds_need_lc=yes
8851
8852  if test "$enable_shared" = yes && test "$GCC" = yes; then
8853    case $archive_cmds in
8854    *'~'*)
8855      # FIXME: we may have to deal with multi-command sequences.
8856      ;;
8857    '$CC '*)
8858      # Test whether the compiler implicitly links with -lc since on some
8859      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8860      # to ld, don't add -lc before -lgcc.
8861      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8862echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8863      $rm conftest*
8864      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8865
8866      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8867  (eval $ac_compile) 2>&5
8868  ac_status=$?
8869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870  (exit $ac_status); } 2>conftest.err; then
8871        soname=conftest
8872        lib=conftest
8873        libobjs=conftest.$ac_objext
8874        deplibs=
8875        wl=$lt_prog_compiler_wl
8876	pic_flag=$lt_prog_compiler_pic
8877        compiler_flags=-v
8878        linker_flags=-v
8879        verstring=
8880        output_objdir=.
8881        libname=conftest
8882        lt_save_allow_undefined_flag=$allow_undefined_flag
8883        allow_undefined_flag=
8884        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8885  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8886  ac_status=$?
8887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888  (exit $ac_status); }
8889        then
8890	  archive_cmds_need_lc=no
8891        else
8892	  archive_cmds_need_lc=yes
8893        fi
8894        allow_undefined_flag=$lt_save_allow_undefined_flag
8895      else
8896        cat conftest.err 1>&5
8897      fi
8898      $rm conftest*
8899      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8900echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8901      ;;
8902    esac
8903  fi
8904  ;;
8905esac
8906
8907{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8908echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8909library_names_spec=
8910libname_spec='lib$name'
8911soname_spec=
8912shrext_cmds=".so"
8913postinstall_cmds=
8914postuninstall_cmds=
8915finish_cmds=
8916finish_eval=
8917shlibpath_var=
8918shlibpath_overrides_runpath=unknown
8919version_type=none
8920dynamic_linker="$host_os ld.so"
8921sys_lib_dlsearch_path_spec="/lib /usr/lib"
8922if test "$GCC" = yes; then
8923  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8924  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8925    # if the path contains ";" then we assume it to be the separator
8926    # otherwise default to the standard path separator (i.e. ":") - it is
8927    # assumed that no part of a normal pathname contains ";" but that should
8928    # okay in the real world where ";" in dirpaths is itself problematic.
8929    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8930  else
8931    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8932  fi
8933else
8934  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8935fi
8936need_lib_prefix=unknown
8937hardcode_into_libs=no
8938
8939# when you set need_version to no, make sure it does not cause -set_version
8940# flags to be left without arguments
8941need_version=unknown
8942
8943case $host_os in
8944aix3*)
8945  version_type=linux
8946  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8947  shlibpath_var=LIBPATH
8948
8949  # AIX 3 has no versioning support, so we append a major version to the name.
8950  soname_spec='${libname}${release}${shared_ext}$major'
8951  ;;
8952
8953aix4* | aix5*)
8954  version_type=linux
8955  need_lib_prefix=no
8956  need_version=no
8957  hardcode_into_libs=yes
8958  if test "$host_cpu" = ia64; then
8959    # AIX 5 supports IA64
8960    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8961    shlibpath_var=LD_LIBRARY_PATH
8962  else
8963    # With GCC up to 2.95.x, collect2 would create an import file
8964    # for dependence libraries.  The import file would start with
8965    # the line `#! .'.  This would cause the generated library to
8966    # depend on `.', always an invalid library.  This was fixed in
8967    # development snapshots of GCC prior to 3.0.
8968    case $host_os in
8969      aix4 | aix4.[01] | aix4.[01].*)
8970      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8971	   echo ' yes '
8972	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8973	:
8974      else
8975	can_build_shared=no
8976      fi
8977      ;;
8978    esac
8979    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8980    # soname into executable. Probably we can add versioning support to
8981    # collect2, so additional links can be useful in future.
8982    if test "$aix_use_runtimelinking" = yes; then
8983      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8984      # instead of lib<name>.a to let people know that these are not
8985      # typical AIX shared libraries.
8986      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987    else
8988      # We preserve .a as extension for shared libraries through AIX4.2
8989      # and later when we are not doing run time linking.
8990      library_names_spec='${libname}${release}.a $libname.a'
8991      soname_spec='${libname}${release}${shared_ext}$major'
8992    fi
8993    shlibpath_var=LIBPATH
8994  fi
8995  ;;
8996
8997amigaos*)
8998  library_names_spec='$libname.ixlibrary $libname.a'
8999  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9000  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'
9001  ;;
9002
9003beos*)
9004  library_names_spec='${libname}${shared_ext}'
9005  dynamic_linker="$host_os ld.so"
9006  shlibpath_var=LIBRARY_PATH
9007  ;;
9008
9009bsdi[45]*)
9010  version_type=linux
9011  need_version=no
9012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013  soname_spec='${libname}${release}${shared_ext}$major'
9014  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9015  shlibpath_var=LD_LIBRARY_PATH
9016  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9017  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9018  # the default ld.so.conf also contains /usr/contrib/lib and
9019  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9020  # libtool to hard-code these into programs
9021  ;;
9022
9023cygwin* | mingw* | pw32*)
9024  version_type=windows
9025  shrext_cmds=".dll"
9026  need_version=no
9027  need_lib_prefix=no
9028
9029  case $GCC,$host_os in
9030  yes,cygwin* | yes,mingw* | yes,pw32*)
9031    library_names_spec='$libname.dll.a'
9032    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9033    postinstall_cmds='base_file=`basename \${file}`~
9034      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9035      dldir=$destdir/`dirname \$dlpath`~
9036      test -d \$dldir || mkdir -p \$dldir~
9037      $install_prog $dir/$dlname \$dldir/$dlname~
9038      chmod a+x \$dldir/$dlname'
9039    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9040      dlpath=$dir/\$dldll~
9041       $rm \$dlpath'
9042    shlibpath_overrides_runpath=yes
9043
9044    case $host_os in
9045    cygwin*)
9046      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9047      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9048      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9049      ;;
9050    mingw*)
9051      # MinGW DLLs use traditional 'lib' prefix
9052      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9053      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9054      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9055        # It is most probably a Windows format PATH printed by
9056        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9057        # path with ; separators, and with drive letters. We can handle the
9058        # drive letters (cygwin fileutils understands them), so leave them,
9059        # especially as we might pass files found there to a mingw objdump,
9060        # which wouldn't understand a cygwinified path. Ahh.
9061        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9062      else
9063        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9064      fi
9065      ;;
9066    pw32*)
9067      # pw32 DLLs use 'pw' prefix rather than 'lib'
9068      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9069      ;;
9070    esac
9071    ;;
9072
9073  *)
9074    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9075    ;;
9076  esac
9077  dynamic_linker='Win32 ld.exe'
9078  # FIXME: first we should search . and the directory the executable is in
9079  shlibpath_var=PATH
9080  ;;
9081
9082darwin* | rhapsody*)
9083  dynamic_linker="$host_os dyld"
9084  version_type=darwin
9085  need_lib_prefix=no
9086  need_version=no
9087  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9088  soname_spec='${libname}${release}${major}$shared_ext'
9089  shlibpath_overrides_runpath=yes
9090  shlibpath_var=DYLD_LIBRARY_PATH
9091  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9092  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9093  if test "$GCC" = yes; then
9094    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9095  else
9096    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9097  fi
9098  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9099  ;;
9100
9101dgux*)
9102  version_type=linux
9103  need_lib_prefix=no
9104  need_version=no
9105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9106  soname_spec='${libname}${release}${shared_ext}$major'
9107  shlibpath_var=LD_LIBRARY_PATH
9108  ;;
9109
9110freebsd1*)
9111  dynamic_linker=no
9112  ;;
9113
9114freebsd* | dragonfly*)
9115  # DragonFly does not have aout.  When/if they implement a new
9116  # versioning mechanism, adjust this.
9117  if test -x /usr/bin/objformat; then
9118    objformat=`/usr/bin/objformat`
9119  else
9120    case $host_os in
9121    freebsd[123]*) objformat=aout ;;
9122    *) objformat=elf ;;
9123    esac
9124  fi
9125  version_type=freebsd-$objformat
9126  case $version_type in
9127    freebsd-elf*)
9128      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9129      need_version=no
9130      need_lib_prefix=no
9131      ;;
9132    freebsd-*)
9133      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9134      need_version=yes
9135      ;;
9136  esac
9137  shlibpath_var=LD_LIBRARY_PATH
9138  case $host_os in
9139  freebsd2*)
9140    shlibpath_overrides_runpath=yes
9141    ;;
9142  freebsd3.[01]* | freebsdelf3.[01]*)
9143    shlibpath_overrides_runpath=yes
9144    hardcode_into_libs=yes
9145    ;;
9146  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9147  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9148    shlibpath_overrides_runpath=no
9149    hardcode_into_libs=yes
9150    ;;
9151  freebsd*) # from 4.6 on
9152    shlibpath_overrides_runpath=yes
9153    hardcode_into_libs=yes
9154    ;;
9155  esac
9156  ;;
9157
9158gnu*)
9159  version_type=linux
9160  need_lib_prefix=no
9161  need_version=no
9162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9163  soname_spec='${libname}${release}${shared_ext}$major'
9164  shlibpath_var=LD_LIBRARY_PATH
9165  hardcode_into_libs=yes
9166  ;;
9167
9168hpux9* | hpux10* | hpux11*)
9169  # Give a soname corresponding to the major version so that dld.sl refuses to
9170  # link against other versions.
9171  version_type=sunos
9172  need_lib_prefix=no
9173  need_version=no
9174  case $host_cpu in
9175  ia64*)
9176    shrext_cmds='.so'
9177    hardcode_into_libs=yes
9178    dynamic_linker="$host_os dld.so"
9179    shlibpath_var=LD_LIBRARY_PATH
9180    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9181    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9182    soname_spec='${libname}${release}${shared_ext}$major'
9183    if test "X$HPUX_IA64_MODE" = X32; then
9184      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9185    else
9186      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9187    fi
9188    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9189    ;;
9190   hppa*64*)
9191     shrext_cmds='.sl'
9192     hardcode_into_libs=yes
9193     dynamic_linker="$host_os dld.sl"
9194     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9195     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197     soname_spec='${libname}${release}${shared_ext}$major'
9198     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9199     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9200     ;;
9201   *)
9202    shrext_cmds='.sl'
9203    dynamic_linker="$host_os dld.sl"
9204    shlibpath_var=SHLIB_PATH
9205    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9206    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207    soname_spec='${libname}${release}${shared_ext}$major'
9208    ;;
9209  esac
9210  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9211  postinstall_cmds='chmod 555 $lib'
9212  ;;
9213
9214interix3*)
9215  version_type=linux
9216  need_lib_prefix=no
9217  need_version=no
9218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9219  soname_spec='${libname}${release}${shared_ext}$major'
9220  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9221  shlibpath_var=LD_LIBRARY_PATH
9222  shlibpath_overrides_runpath=no
9223  hardcode_into_libs=yes
9224  ;;
9225
9226irix5* | irix6* | nonstopux*)
9227  case $host_os in
9228    nonstopux*) version_type=nonstopux ;;
9229    *)
9230	if test "$lt_cv_prog_gnu_ld" = yes; then
9231		version_type=linux
9232	else
9233		version_type=irix
9234	fi ;;
9235  esac
9236  need_lib_prefix=no
9237  need_version=no
9238  soname_spec='${libname}${release}${shared_ext}$major'
9239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9240  case $host_os in
9241  irix5* | nonstopux*)
9242    libsuff= shlibsuff=
9243    ;;
9244  *)
9245    case $LD in # libtool.m4 will add one of these switches to LD
9246    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9247      libsuff= shlibsuff= libmagic=32-bit;;
9248    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9249      libsuff=32 shlibsuff=N32 libmagic=N32;;
9250    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9251      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9252    *) libsuff= shlibsuff= libmagic=never-match;;
9253    esac
9254    ;;
9255  esac
9256  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9257  shlibpath_overrides_runpath=no
9258  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9259  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9260  hardcode_into_libs=yes
9261  ;;
9262
9263# No shared lib support for Linux oldld, aout, or coff.
9264linux*oldld* | linux*aout* | linux*coff*)
9265  dynamic_linker=no
9266  ;;
9267
9268# This must be Linux ELF.
9269linux* | k*bsd*-gnu)
9270  version_type=linux
9271  need_lib_prefix=no
9272  need_version=no
9273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274  soname_spec='${libname}${release}${shared_ext}$major'
9275  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9276  shlibpath_var=LD_LIBRARY_PATH
9277  shlibpath_overrides_runpath=no
9278  # This implies no fast_install, which is unacceptable.
9279  # Some rework will be needed to allow for fast_install
9280  # before this can be enabled.
9281  hardcode_into_libs=yes
9282
9283  # Append ld.so.conf contents to the search path
9284  if test -f /etc/ld.so.conf; then
9285    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9286    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9287  fi
9288
9289  # We used to test for /lib/ld.so.1 and disable shared libraries on
9290  # powerpc, because MkLinux only supported shared libraries with the
9291  # GNU dynamic linker.  Since this was broken with cross compilers,
9292  # most powerpc-linux boxes support dynamic linking these days and
9293  # people can always --disable-shared, the test was removed, and we
9294  # assume the GNU/Linux dynamic linker is in use.
9295  dynamic_linker='GNU/Linux ld.so'
9296  ;;
9297
9298netbsdelf*-gnu)
9299  version_type=linux
9300  need_lib_prefix=no
9301  need_version=no
9302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9303  soname_spec='${libname}${release}${shared_ext}$major'
9304  shlibpath_var=LD_LIBRARY_PATH
9305  shlibpath_overrides_runpath=no
9306  hardcode_into_libs=yes
9307  dynamic_linker='NetBSD ld.elf_so'
9308  ;;
9309
9310netbsd*)
9311  version_type=sunos
9312  need_lib_prefix=no
9313  need_version=no
9314  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9316    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9317    dynamic_linker='NetBSD (a.out) ld.so'
9318  else
9319    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9320    soname_spec='${libname}${release}${shared_ext}$major'
9321    dynamic_linker='NetBSD ld.elf_so'
9322  fi
9323  shlibpath_var=LD_LIBRARY_PATH
9324  shlibpath_overrides_runpath=yes
9325  hardcode_into_libs=yes
9326  ;;
9327
9328newsos6)
9329  version_type=linux
9330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331  shlibpath_var=LD_LIBRARY_PATH
9332  shlibpath_overrides_runpath=yes
9333  ;;
9334
9335nto-qnx*)
9336  version_type=linux
9337  need_lib_prefix=no
9338  need_version=no
9339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340  soname_spec='${libname}${release}${shared_ext}$major'
9341  shlibpath_var=LD_LIBRARY_PATH
9342  shlibpath_overrides_runpath=yes
9343  ;;
9344
9345openbsd*)
9346  version_type=sunos
9347  sys_lib_dlsearch_path_spec="/usr/lib"
9348  need_lib_prefix=no
9349  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9350  case $host_os in
9351    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9352    *)                         need_version=no  ;;
9353  esac
9354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9355  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9356  shlibpath_var=LD_LIBRARY_PATH
9357  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9358    case $host_os in
9359      openbsd2.[89] | openbsd2.[89].*)
9360	shlibpath_overrides_runpath=no
9361	;;
9362      *)
9363	shlibpath_overrides_runpath=yes
9364	;;
9365      esac
9366  else
9367    shlibpath_overrides_runpath=yes
9368  fi
9369  ;;
9370
9371os2*)
9372  libname_spec='$name'
9373  shrext_cmds=".dll"
9374  need_lib_prefix=no
9375  library_names_spec='$libname${shared_ext} $libname.a'
9376  dynamic_linker='OS/2 ld.exe'
9377  shlibpath_var=LIBPATH
9378  ;;
9379
9380osf3* | osf4* | osf5*)
9381  version_type=osf
9382  need_lib_prefix=no
9383  need_version=no
9384  soname_spec='${libname}${release}${shared_ext}$major'
9385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386  shlibpath_var=LD_LIBRARY_PATH
9387  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9388  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9389  ;;
9390
9391solaris*)
9392  version_type=linux
9393  need_lib_prefix=no
9394  need_version=no
9395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396  soname_spec='${libname}${release}${shared_ext}$major'
9397  shlibpath_var=LD_LIBRARY_PATH
9398  shlibpath_overrides_runpath=yes
9399  hardcode_into_libs=yes
9400  # ldd complains unless libraries are executable
9401  postinstall_cmds='chmod +x $lib'
9402  ;;
9403
9404sunos4*)
9405  version_type=sunos
9406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9407  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9408  shlibpath_var=LD_LIBRARY_PATH
9409  shlibpath_overrides_runpath=yes
9410  if test "$with_gnu_ld" = yes; then
9411    need_lib_prefix=no
9412  fi
9413  need_version=yes
9414  ;;
9415
9416sysv4 | sysv4.3*)
9417  version_type=linux
9418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419  soname_spec='${libname}${release}${shared_ext}$major'
9420  shlibpath_var=LD_LIBRARY_PATH
9421  case $host_vendor in
9422    sni)
9423      shlibpath_overrides_runpath=no
9424      need_lib_prefix=no
9425      export_dynamic_flag_spec='${wl}-Blargedynsym'
9426      runpath_var=LD_RUN_PATH
9427      ;;
9428    siemens)
9429      need_lib_prefix=no
9430      ;;
9431    motorola)
9432      need_lib_prefix=no
9433      need_version=no
9434      shlibpath_overrides_runpath=no
9435      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9436      ;;
9437  esac
9438  ;;
9439
9440sysv4*MP*)
9441  if test -d /usr/nec ;then
9442    version_type=linux
9443    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9444    soname_spec='$libname${shared_ext}.$major'
9445    shlibpath_var=LD_LIBRARY_PATH
9446  fi
9447  ;;
9448
9449sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9450  version_type=freebsd-elf
9451  need_lib_prefix=no
9452  need_version=no
9453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9454  soname_spec='${libname}${release}${shared_ext}$major'
9455  shlibpath_var=LD_LIBRARY_PATH
9456  hardcode_into_libs=yes
9457  if test "$with_gnu_ld" = yes; then
9458    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9459    shlibpath_overrides_runpath=no
9460  else
9461    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9462    shlibpath_overrides_runpath=yes
9463    case $host_os in
9464      sco3.2v5*)
9465        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9466	;;
9467    esac
9468  fi
9469  sys_lib_dlsearch_path_spec='/usr/lib'
9470  ;;
9471
9472uts4*)
9473  version_type=linux
9474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475  soname_spec='${libname}${release}${shared_ext}$major'
9476  shlibpath_var=LD_LIBRARY_PATH
9477  ;;
9478
9479*)
9480  dynamic_linker=no
9481  ;;
9482esac
9483{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9484echo "${ECHO_T}$dynamic_linker" >&6; }
9485test "$dynamic_linker" = no && can_build_shared=no
9486
9487variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9488if test "$GCC" = yes; then
9489  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9490fi
9491
9492{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9493echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9494hardcode_action=
9495if test -n "$hardcode_libdir_flag_spec" || \
9496   test -n "$runpath_var" || \
9497   test "X$hardcode_automatic" = "Xyes" ; then
9498
9499  # We can hardcode non-existant directories.
9500  if test "$hardcode_direct" != no &&
9501     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9502     # have to relink, otherwise we might link with an installed library
9503     # when we should be linking with a yet-to-be-installed one
9504     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9505     test "$hardcode_minus_L" != no; then
9506    # Linking always hardcodes the temporary library directory.
9507    hardcode_action=relink
9508  else
9509    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9510    hardcode_action=immediate
9511  fi
9512else
9513  # We cannot hardcode anything, or else we can only hardcode existing
9514  # directories.
9515  hardcode_action=unsupported
9516fi
9517{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9518echo "${ECHO_T}$hardcode_action" >&6; }
9519
9520if test "$hardcode_action" = relink; then
9521  # Fast installation is not supported
9522  enable_fast_install=no
9523elif test "$shlibpath_overrides_runpath" = yes ||
9524     test "$enable_shared" = no; then
9525  # Fast installation is not necessary
9526  enable_fast_install=needless
9527fi
9528
9529striplib=
9530old_striplib=
9531{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9532echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9533if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9534  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9535  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9536  { echo "$as_me:$LINENO: result: yes" >&5
9537echo "${ECHO_T}yes" >&6; }
9538else
9539# FIXME - insert some real tests, host_os isn't really good enough
9540  case $host_os in
9541   darwin*)
9542       if test -n "$STRIP" ; then
9543         striplib="$STRIP -x"
9544         { echo "$as_me:$LINENO: result: yes" >&5
9545echo "${ECHO_T}yes" >&6; }
9546       else
9547  { echo "$as_me:$LINENO: result: no" >&5
9548echo "${ECHO_T}no" >&6; }
9549fi
9550       ;;
9551   *)
9552  { echo "$as_me:$LINENO: result: no" >&5
9553echo "${ECHO_T}no" >&6; }
9554    ;;
9555  esac
9556fi
9557
9558if test "x$enable_dlopen" != xyes; then
9559  enable_dlopen=unknown
9560  enable_dlopen_self=unknown
9561  enable_dlopen_self_static=unknown
9562else
9563  lt_cv_dlopen=no
9564  lt_cv_dlopen_libs=
9565
9566  case $host_os in
9567  beos*)
9568    lt_cv_dlopen="load_add_on"
9569    lt_cv_dlopen_libs=
9570    lt_cv_dlopen_self=yes
9571    ;;
9572
9573  mingw* | pw32*)
9574    lt_cv_dlopen="LoadLibrary"
9575    lt_cv_dlopen_libs=
9576   ;;
9577
9578  cygwin*)
9579    lt_cv_dlopen="dlopen"
9580    lt_cv_dlopen_libs=
9581   ;;
9582
9583  darwin*)
9584  # if libdl is installed we need to link against it
9585    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9587if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588  echo $ECHO_N "(cached) $ECHO_C" >&6
9589else
9590  ac_check_lib_save_LIBS=$LIBS
9591LIBS="-ldl  $LIBS"
9592cat >conftest.$ac_ext <<_ACEOF
9593/* confdefs.h.  */
9594_ACEOF
9595cat confdefs.h >>conftest.$ac_ext
9596cat >>conftest.$ac_ext <<_ACEOF
9597/* end confdefs.h.  */
9598
9599/* Override any GCC internal prototype to avoid an error.
9600   Use char because int might match the return type of a GCC
9601   builtin and then its argument prototype would still apply.  */
9602#ifdef __cplusplus
9603extern "C"
9604#endif
9605char dlopen ();
9606int
9607main ()
9608{
9609return dlopen ();
9610  ;
9611  return 0;
9612}
9613_ACEOF
9614rm -f conftest.$ac_objext conftest$ac_exeext
9615if { (ac_try="$ac_link"
9616case "(($ac_try" in
9617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618  *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621  (eval "$ac_link") 2>conftest.er1
9622  ac_status=$?
9623  grep -v '^ *+' conftest.er1 >conftest.err
9624  rm -f conftest.er1
9625  cat conftest.err >&5
9626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627  (exit $ac_status); } &&
9628	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9629  { (case "(($ac_try" in
9630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631  *) ac_try_echo=$ac_try;;
9632esac
9633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634  (eval "$ac_try") 2>&5
9635  ac_status=$?
9636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637  (exit $ac_status); }; } &&
9638	 { ac_try='test -s conftest$ac_exeext'
9639  { (case "(($ac_try" in
9640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641  *) ac_try_echo=$ac_try;;
9642esac
9643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644  (eval "$ac_try") 2>&5
9645  ac_status=$?
9646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647  (exit $ac_status); }; }; then
9648  ac_cv_lib_dl_dlopen=yes
9649else
9650  echo "$as_me: failed program was:" >&5
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
9653	ac_cv_lib_dl_dlopen=no
9654fi
9655
9656rm -f core conftest.err conftest.$ac_objext \
9657      conftest$ac_exeext conftest.$ac_ext
9658LIBS=$ac_check_lib_save_LIBS
9659fi
9660{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9661echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9662if test $ac_cv_lib_dl_dlopen = yes; then
9663  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9664else
9665
9666    lt_cv_dlopen="dyld"
9667    lt_cv_dlopen_libs=
9668    lt_cv_dlopen_self=yes
9669
9670fi
9671
9672   ;;
9673
9674  *)
9675    { echo "$as_me:$LINENO: checking for shl_load" >&5
9676echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9677if test "${ac_cv_func_shl_load+set}" = set; then
9678  echo $ECHO_N "(cached) $ECHO_C" >&6
9679else
9680  cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h.  */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h.  */
9686/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9687   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9688#define shl_load innocuous_shl_load
9689
9690/* System header to define __stub macros and hopefully few prototypes,
9691    which can conflict with char shl_load (); below.
9692    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693    <limits.h> exists even on freestanding compilers.  */
9694
9695#ifdef __STDC__
9696# include <limits.h>
9697#else
9698# include <assert.h>
9699#endif
9700
9701#undef shl_load
9702
9703/* Override any GCC internal prototype to avoid an error.
9704   Use char because int might match the return type of a GCC
9705   builtin and then its argument prototype would still apply.  */
9706#ifdef __cplusplus
9707extern "C"
9708#endif
9709char shl_load ();
9710/* The GNU C library defines this for functions which it implements
9711    to always fail with ENOSYS.  Some functions are actually named
9712    something starting with __ and the normal name is an alias.  */
9713#if defined __stub_shl_load || defined __stub___shl_load
9714choke me
9715#endif
9716
9717int
9718main ()
9719{
9720return shl_load ();
9721  ;
9722  return 0;
9723}
9724_ACEOF
9725rm -f conftest.$ac_objext conftest$ac_exeext
9726if { (ac_try="$ac_link"
9727case "(($ac_try" in
9728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729  *) ac_try_echo=$ac_try;;
9730esac
9731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732  (eval "$ac_link") 2>conftest.er1
9733  ac_status=$?
9734  grep -v '^ *+' conftest.er1 >conftest.err
9735  rm -f conftest.er1
9736  cat conftest.err >&5
9737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738  (exit $ac_status); } &&
9739	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9740  { (case "(($ac_try" in
9741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742  *) ac_try_echo=$ac_try;;
9743esac
9744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745  (eval "$ac_try") 2>&5
9746  ac_status=$?
9747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748  (exit $ac_status); }; } &&
9749	 { ac_try='test -s conftest$ac_exeext'
9750  { (case "(($ac_try" in
9751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752  *) ac_try_echo=$ac_try;;
9753esac
9754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755  (eval "$ac_try") 2>&5
9756  ac_status=$?
9757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758  (exit $ac_status); }; }; then
9759  ac_cv_func_shl_load=yes
9760else
9761  echo "$as_me: failed program was:" >&5
9762sed 's/^/| /' conftest.$ac_ext >&5
9763
9764	ac_cv_func_shl_load=no
9765fi
9766
9767rm -f core conftest.err conftest.$ac_objext \
9768      conftest$ac_exeext conftest.$ac_ext
9769fi
9770{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9771echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9772if test $ac_cv_func_shl_load = yes; then
9773  lt_cv_dlopen="shl_load"
9774else
9775  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9776echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9777if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9778  echo $ECHO_N "(cached) $ECHO_C" >&6
9779else
9780  ac_check_lib_save_LIBS=$LIBS
9781LIBS="-ldld  $LIBS"
9782cat >conftest.$ac_ext <<_ACEOF
9783/* confdefs.h.  */
9784_ACEOF
9785cat confdefs.h >>conftest.$ac_ext
9786cat >>conftest.$ac_ext <<_ACEOF
9787/* end confdefs.h.  */
9788
9789/* Override any GCC internal prototype to avoid an error.
9790   Use char because int might match the return type of a GCC
9791   builtin and then its argument prototype would still apply.  */
9792#ifdef __cplusplus
9793extern "C"
9794#endif
9795char shl_load ();
9796int
9797main ()
9798{
9799return shl_load ();
9800  ;
9801  return 0;
9802}
9803_ACEOF
9804rm -f conftest.$ac_objext conftest$ac_exeext
9805if { (ac_try="$ac_link"
9806case "(($ac_try" in
9807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808  *) ac_try_echo=$ac_try;;
9809esac
9810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811  (eval "$ac_link") 2>conftest.er1
9812  ac_status=$?
9813  grep -v '^ *+' conftest.er1 >conftest.err
9814  rm -f conftest.er1
9815  cat conftest.err >&5
9816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817  (exit $ac_status); } &&
9818	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9819  { (case "(($ac_try" in
9820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821  *) ac_try_echo=$ac_try;;
9822esac
9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824  (eval "$ac_try") 2>&5
9825  ac_status=$?
9826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827  (exit $ac_status); }; } &&
9828	 { ac_try='test -s conftest$ac_exeext'
9829  { (case "(($ac_try" in
9830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831  *) ac_try_echo=$ac_try;;
9832esac
9833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834  (eval "$ac_try") 2>&5
9835  ac_status=$?
9836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837  (exit $ac_status); }; }; then
9838  ac_cv_lib_dld_shl_load=yes
9839else
9840  echo "$as_me: failed program was:" >&5
9841sed 's/^/| /' conftest.$ac_ext >&5
9842
9843	ac_cv_lib_dld_shl_load=no
9844fi
9845
9846rm -f core conftest.err conftest.$ac_objext \
9847      conftest$ac_exeext conftest.$ac_ext
9848LIBS=$ac_check_lib_save_LIBS
9849fi
9850{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9851echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9852if test $ac_cv_lib_dld_shl_load = yes; then
9853  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9854else
9855  { echo "$as_me:$LINENO: checking for dlopen" >&5
9856echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9857if test "${ac_cv_func_dlopen+set}" = set; then
9858  echo $ECHO_N "(cached) $ECHO_C" >&6
9859else
9860  cat >conftest.$ac_ext <<_ACEOF
9861/* confdefs.h.  */
9862_ACEOF
9863cat confdefs.h >>conftest.$ac_ext
9864cat >>conftest.$ac_ext <<_ACEOF
9865/* end confdefs.h.  */
9866/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9867   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9868#define dlopen innocuous_dlopen
9869
9870/* System header to define __stub macros and hopefully few prototypes,
9871    which can conflict with char dlopen (); below.
9872    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9873    <limits.h> exists even on freestanding compilers.  */
9874
9875#ifdef __STDC__
9876# include <limits.h>
9877#else
9878# include <assert.h>
9879#endif
9880
9881#undef dlopen
9882
9883/* Override any GCC internal prototype to avoid an error.
9884   Use char because int might match the return type of a GCC
9885   builtin and then its argument prototype would still apply.  */
9886#ifdef __cplusplus
9887extern "C"
9888#endif
9889char dlopen ();
9890/* The GNU C library defines this for functions which it implements
9891    to always fail with ENOSYS.  Some functions are actually named
9892    something starting with __ and the normal name is an alias.  */
9893#if defined __stub_dlopen || defined __stub___dlopen
9894choke me
9895#endif
9896
9897int
9898main ()
9899{
9900return dlopen ();
9901  ;
9902  return 0;
9903}
9904_ACEOF
9905rm -f conftest.$ac_objext conftest$ac_exeext
9906if { (ac_try="$ac_link"
9907case "(($ac_try" in
9908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909  *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912  (eval "$ac_link") 2>conftest.er1
9913  ac_status=$?
9914  grep -v '^ *+' conftest.er1 >conftest.err
9915  rm -f conftest.er1
9916  cat conftest.err >&5
9917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918  (exit $ac_status); } &&
9919	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9920  { (case "(($ac_try" in
9921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922  *) ac_try_echo=$ac_try;;
9923esac
9924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925  (eval "$ac_try") 2>&5
9926  ac_status=$?
9927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928  (exit $ac_status); }; } &&
9929	 { ac_try='test -s conftest$ac_exeext'
9930  { (case "(($ac_try" in
9931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932  *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935  (eval "$ac_try") 2>&5
9936  ac_status=$?
9937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938  (exit $ac_status); }; }; then
9939  ac_cv_func_dlopen=yes
9940else
9941  echo "$as_me: failed program was:" >&5
9942sed 's/^/| /' conftest.$ac_ext >&5
9943
9944	ac_cv_func_dlopen=no
9945fi
9946
9947rm -f core conftest.err conftest.$ac_objext \
9948      conftest$ac_exeext conftest.$ac_ext
9949fi
9950{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9951echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9952if test $ac_cv_func_dlopen = yes; then
9953  lt_cv_dlopen="dlopen"
9954else
9955  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9956echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9957if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9958  echo $ECHO_N "(cached) $ECHO_C" >&6
9959else
9960  ac_check_lib_save_LIBS=$LIBS
9961LIBS="-ldl  $LIBS"
9962cat >conftest.$ac_ext <<_ACEOF
9963/* confdefs.h.  */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h.  */
9968
9969/* Override any GCC internal prototype to avoid an error.
9970   Use char because int might match the return type of a GCC
9971   builtin and then its argument prototype would still apply.  */
9972#ifdef __cplusplus
9973extern "C"
9974#endif
9975char dlopen ();
9976int
9977main ()
9978{
9979return dlopen ();
9980  ;
9981  return 0;
9982}
9983_ACEOF
9984rm -f conftest.$ac_objext conftest$ac_exeext
9985if { (ac_try="$ac_link"
9986case "(($ac_try" in
9987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988  *) ac_try_echo=$ac_try;;
9989esac
9990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991  (eval "$ac_link") 2>conftest.er1
9992  ac_status=$?
9993  grep -v '^ *+' conftest.er1 >conftest.err
9994  rm -f conftest.er1
9995  cat conftest.err >&5
9996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997  (exit $ac_status); } &&
9998	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9999  { (case "(($ac_try" in
10000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001  *) ac_try_echo=$ac_try;;
10002esac
10003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004  (eval "$ac_try") 2>&5
10005  ac_status=$?
10006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007  (exit $ac_status); }; } &&
10008	 { ac_try='test -s conftest$ac_exeext'
10009  { (case "(($ac_try" in
10010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011  *) ac_try_echo=$ac_try;;
10012esac
10013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014  (eval "$ac_try") 2>&5
10015  ac_status=$?
10016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017  (exit $ac_status); }; }; then
10018  ac_cv_lib_dl_dlopen=yes
10019else
10020  echo "$as_me: failed program was:" >&5
10021sed 's/^/| /' conftest.$ac_ext >&5
10022
10023	ac_cv_lib_dl_dlopen=no
10024fi
10025
10026rm -f core conftest.err conftest.$ac_objext \
10027      conftest$ac_exeext conftest.$ac_ext
10028LIBS=$ac_check_lib_save_LIBS
10029fi
10030{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10031echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10032if test $ac_cv_lib_dl_dlopen = yes; then
10033  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10034else
10035  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10036echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10037if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10038  echo $ECHO_N "(cached) $ECHO_C" >&6
10039else
10040  ac_check_lib_save_LIBS=$LIBS
10041LIBS="-lsvld  $LIBS"
10042cat >conftest.$ac_ext <<_ACEOF
10043/* confdefs.h.  */
10044_ACEOF
10045cat confdefs.h >>conftest.$ac_ext
10046cat >>conftest.$ac_ext <<_ACEOF
10047/* end confdefs.h.  */
10048
10049/* Override any GCC internal prototype to avoid an error.
10050   Use char because int might match the return type of a GCC
10051   builtin and then its argument prototype would still apply.  */
10052#ifdef __cplusplus
10053extern "C"
10054#endif
10055char dlopen ();
10056int
10057main ()
10058{
10059return dlopen ();
10060  ;
10061  return 0;
10062}
10063_ACEOF
10064rm -f conftest.$ac_objext conftest$ac_exeext
10065if { (ac_try="$ac_link"
10066case "(($ac_try" in
10067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068  *) ac_try_echo=$ac_try;;
10069esac
10070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071  (eval "$ac_link") 2>conftest.er1
10072  ac_status=$?
10073  grep -v '^ *+' conftest.er1 >conftest.err
10074  rm -f conftest.er1
10075  cat conftest.err >&5
10076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077  (exit $ac_status); } &&
10078	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10079  { (case "(($ac_try" in
10080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081  *) ac_try_echo=$ac_try;;
10082esac
10083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084  (eval "$ac_try") 2>&5
10085  ac_status=$?
10086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087  (exit $ac_status); }; } &&
10088	 { ac_try='test -s conftest$ac_exeext'
10089  { (case "(($ac_try" in
10090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091  *) ac_try_echo=$ac_try;;
10092esac
10093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094  (eval "$ac_try") 2>&5
10095  ac_status=$?
10096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097  (exit $ac_status); }; }; then
10098  ac_cv_lib_svld_dlopen=yes
10099else
10100  echo "$as_me: failed program was:" >&5
10101sed 's/^/| /' conftest.$ac_ext >&5
10102
10103	ac_cv_lib_svld_dlopen=no
10104fi
10105
10106rm -f core conftest.err conftest.$ac_objext \
10107      conftest$ac_exeext conftest.$ac_ext
10108LIBS=$ac_check_lib_save_LIBS
10109fi
10110{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10111echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10112if test $ac_cv_lib_svld_dlopen = yes; then
10113  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10114else
10115  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10116echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10117if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10118  echo $ECHO_N "(cached) $ECHO_C" >&6
10119else
10120  ac_check_lib_save_LIBS=$LIBS
10121LIBS="-ldld  $LIBS"
10122cat >conftest.$ac_ext <<_ACEOF
10123/* confdefs.h.  */
10124_ACEOF
10125cat confdefs.h >>conftest.$ac_ext
10126cat >>conftest.$ac_ext <<_ACEOF
10127/* end confdefs.h.  */
10128
10129/* Override any GCC internal prototype to avoid an error.
10130   Use char because int might match the return type of a GCC
10131   builtin and then its argument prototype would still apply.  */
10132#ifdef __cplusplus
10133extern "C"
10134#endif
10135char dld_link ();
10136int
10137main ()
10138{
10139return dld_link ();
10140  ;
10141  return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (ac_try="$ac_link"
10146case "(($ac_try" in
10147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148  *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151  (eval "$ac_link") 2>conftest.er1
10152  ac_status=$?
10153  grep -v '^ *+' conftest.er1 >conftest.err
10154  rm -f conftest.er1
10155  cat conftest.err >&5
10156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157  (exit $ac_status); } &&
10158	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10159  { (case "(($ac_try" in
10160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161  *) ac_try_echo=$ac_try;;
10162esac
10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164  (eval "$ac_try") 2>&5
10165  ac_status=$?
10166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167  (exit $ac_status); }; } &&
10168	 { ac_try='test -s conftest$ac_exeext'
10169  { (case "(($ac_try" in
10170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171  *) ac_try_echo=$ac_try;;
10172esac
10173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174  (eval "$ac_try") 2>&5
10175  ac_status=$?
10176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177  (exit $ac_status); }; }; then
10178  ac_cv_lib_dld_dld_link=yes
10179else
10180  echo "$as_me: failed program was:" >&5
10181sed 's/^/| /' conftest.$ac_ext >&5
10182
10183	ac_cv_lib_dld_dld_link=no
10184fi
10185
10186rm -f core conftest.err conftest.$ac_objext \
10187      conftest$ac_exeext conftest.$ac_ext
10188LIBS=$ac_check_lib_save_LIBS
10189fi
10190{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10191echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10192if test $ac_cv_lib_dld_dld_link = yes; then
10193  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10194fi
10195
10196
10197fi
10198
10199
10200fi
10201
10202
10203fi
10204
10205
10206fi
10207
10208
10209fi
10210
10211    ;;
10212  esac
10213
10214  if test "x$lt_cv_dlopen" != xno; then
10215    enable_dlopen=yes
10216  else
10217    enable_dlopen=no
10218  fi
10219
10220  case $lt_cv_dlopen in
10221  dlopen)
10222    save_CPPFLAGS="$CPPFLAGS"
10223    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10224
10225    save_LDFLAGS="$LDFLAGS"
10226    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10227
10228    save_LIBS="$LIBS"
10229    LIBS="$lt_cv_dlopen_libs $LIBS"
10230
10231    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10232echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10233if test "${lt_cv_dlopen_self+set}" = set; then
10234  echo $ECHO_N "(cached) $ECHO_C" >&6
10235else
10236  	  if test "$cross_compiling" = yes; then :
10237  lt_cv_dlopen_self=cross
10238else
10239  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10240  lt_status=$lt_dlunknown
10241  cat > conftest.$ac_ext <<EOF
10242#line 10242 "configure"
10243#include "confdefs.h"
10244
10245#if HAVE_DLFCN_H
10246#include <dlfcn.h>
10247#endif
10248
10249#include <stdio.h>
10250
10251#ifdef RTLD_GLOBAL
10252#  define LT_DLGLOBAL		RTLD_GLOBAL
10253#else
10254#  ifdef DL_GLOBAL
10255#    define LT_DLGLOBAL		DL_GLOBAL
10256#  else
10257#    define LT_DLGLOBAL		0
10258#  endif
10259#endif
10260
10261/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10262   find out it does not work in some platform. */
10263#ifndef LT_DLLAZY_OR_NOW
10264#  ifdef RTLD_LAZY
10265#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10266#  else
10267#    ifdef DL_LAZY
10268#      define LT_DLLAZY_OR_NOW		DL_LAZY
10269#    else
10270#      ifdef RTLD_NOW
10271#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10272#      else
10273#        ifdef DL_NOW
10274#          define LT_DLLAZY_OR_NOW	DL_NOW
10275#        else
10276#          define LT_DLLAZY_OR_NOW	0
10277#        endif
10278#      endif
10279#    endif
10280#  endif
10281#endif
10282
10283#ifdef __cplusplus
10284extern "C" void exit (int);
10285#endif
10286
10287void fnord() { int i=42;}
10288int main ()
10289{
10290  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10291  int status = $lt_dlunknown;
10292
10293  if (self)
10294    {
10295      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10296      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10297      /* dlclose (self); */
10298    }
10299  else
10300    puts (dlerror ());
10301
10302    exit (status);
10303}
10304EOF
10305  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306  (eval $ac_link) 2>&5
10307  ac_status=$?
10308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10310    (./conftest; exit; ) >&5 2>/dev/null
10311    lt_status=$?
10312    case x$lt_status in
10313      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10314      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10315      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10316    esac
10317  else :
10318    # compilation failed
10319    lt_cv_dlopen_self=no
10320  fi
10321fi
10322rm -fr conftest*
10323
10324
10325fi
10326{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10327echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10328
10329    if test "x$lt_cv_dlopen_self" = xyes; then
10330      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10331      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10332echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10333if test "${lt_cv_dlopen_self_static+set}" = set; then
10334  echo $ECHO_N "(cached) $ECHO_C" >&6
10335else
10336  	  if test "$cross_compiling" = yes; then :
10337  lt_cv_dlopen_self_static=cross
10338else
10339  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10340  lt_status=$lt_dlunknown
10341  cat > conftest.$ac_ext <<EOF
10342#line 10342 "configure"
10343#include "confdefs.h"
10344
10345#if HAVE_DLFCN_H
10346#include <dlfcn.h>
10347#endif
10348
10349#include <stdio.h>
10350
10351#ifdef RTLD_GLOBAL
10352#  define LT_DLGLOBAL		RTLD_GLOBAL
10353#else
10354#  ifdef DL_GLOBAL
10355#    define LT_DLGLOBAL		DL_GLOBAL
10356#  else
10357#    define LT_DLGLOBAL		0
10358#  endif
10359#endif
10360
10361/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10362   find out it does not work in some platform. */
10363#ifndef LT_DLLAZY_OR_NOW
10364#  ifdef RTLD_LAZY
10365#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10366#  else
10367#    ifdef DL_LAZY
10368#      define LT_DLLAZY_OR_NOW		DL_LAZY
10369#    else
10370#      ifdef RTLD_NOW
10371#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10372#      else
10373#        ifdef DL_NOW
10374#          define LT_DLLAZY_OR_NOW	DL_NOW
10375#        else
10376#          define LT_DLLAZY_OR_NOW	0
10377#        endif
10378#      endif
10379#    endif
10380#  endif
10381#endif
10382
10383#ifdef __cplusplus
10384extern "C" void exit (int);
10385#endif
10386
10387void fnord() { int i=42;}
10388int main ()
10389{
10390  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10391  int status = $lt_dlunknown;
10392
10393  if (self)
10394    {
10395      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10396      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10397      /* dlclose (self); */
10398    }
10399  else
10400    puts (dlerror ());
10401
10402    exit (status);
10403}
10404EOF
10405  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10406  (eval $ac_link) 2>&5
10407  ac_status=$?
10408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10410    (./conftest; exit; ) >&5 2>/dev/null
10411    lt_status=$?
10412    case x$lt_status in
10413      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10414      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10415      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10416    esac
10417  else :
10418    # compilation failed
10419    lt_cv_dlopen_self_static=no
10420  fi
10421fi
10422rm -fr conftest*
10423
10424
10425fi
10426{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10427echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10428    fi
10429
10430    CPPFLAGS="$save_CPPFLAGS"
10431    LDFLAGS="$save_LDFLAGS"
10432    LIBS="$save_LIBS"
10433    ;;
10434  esac
10435
10436  case $lt_cv_dlopen_self in
10437  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10438  *) enable_dlopen_self=unknown ;;
10439  esac
10440
10441  case $lt_cv_dlopen_self_static in
10442  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10443  *) enable_dlopen_self_static=unknown ;;
10444  esac
10445fi
10446
10447
10448# Report which library types will actually be built
10449{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10450echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10451{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10452echo "${ECHO_T}$can_build_shared" >&6; }
10453
10454{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10455echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10456test "$can_build_shared" = "no" && enable_shared=no
10457
10458# On AIX, shared libraries and static libraries use the same namespace, and
10459# are all built from PIC.
10460case $host_os in
10461aix3*)
10462  test "$enable_shared" = yes && enable_static=no
10463  if test -n "$RANLIB"; then
10464    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10465    postinstall_cmds='$RANLIB $lib'
10466  fi
10467  ;;
10468
10469aix4* | aix5*)
10470  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10471    test "$enable_shared" = yes && enable_static=no
10472  fi
10473    ;;
10474esac
10475{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10476echo "${ECHO_T}$enable_shared" >&6; }
10477
10478{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10479echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10480# Make sure either enable_shared or enable_static is yes.
10481test "$enable_shared" = yes || enable_static=yes
10482{ echo "$as_me:$LINENO: result: $enable_static" >&5
10483echo "${ECHO_T}$enable_static" >&6; }
10484
10485# The else clause should only fire when bootstrapping the
10486# libtool distribution, otherwise you forgot to ship ltmain.sh
10487# with your package, and you will get complaints that there are
10488# no rules to generate ltmain.sh.
10489if test -f "$ltmain"; then
10490  # See if we are running on zsh, and set the options which allow our commands through
10491  # without removal of \ escapes.
10492  if test -n "${ZSH_VERSION+set}" ; then
10493    setopt NO_GLOB_SUBST
10494  fi
10495  # Now quote all the things that may contain metacharacters while being
10496  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10497  # variables and quote the copies for generation of the libtool script.
10498  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10499    SED SHELL STRIP \
10500    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10501    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10502    deplibs_check_method reload_flag reload_cmds need_locks \
10503    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10504    lt_cv_sys_global_symbol_to_c_name_address \
10505    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10506    old_postinstall_cmds old_postuninstall_cmds \
10507    compiler \
10508    CC \
10509    LD \
10510    lt_prog_compiler_wl \
10511    lt_prog_compiler_pic \
10512    lt_prog_compiler_static \
10513    lt_prog_compiler_no_builtin_flag \
10514    export_dynamic_flag_spec \
10515    thread_safe_flag_spec \
10516    whole_archive_flag_spec \
10517    enable_shared_with_static_runtimes \
10518    old_archive_cmds \
10519    old_archive_from_new_cmds \
10520    predep_objects \
10521    postdep_objects \
10522    predeps \
10523    postdeps \
10524    compiler_lib_search_path \
10525    archive_cmds \
10526    archive_expsym_cmds \
10527    postinstall_cmds \
10528    postuninstall_cmds \
10529    old_archive_from_expsyms_cmds \
10530    allow_undefined_flag \
10531    no_undefined_flag \
10532    export_symbols_cmds \
10533    hardcode_libdir_flag_spec \
10534    hardcode_libdir_flag_spec_ld \
10535    hardcode_libdir_separator \
10536    hardcode_automatic \
10537    module_cmds \
10538    module_expsym_cmds \
10539    lt_cv_prog_compiler_c_o \
10540    exclude_expsyms \
10541    include_expsyms; do
10542
10543    case $var in
10544    old_archive_cmds | \
10545    old_archive_from_new_cmds | \
10546    archive_cmds | \
10547    archive_expsym_cmds | \
10548    module_cmds | \
10549    module_expsym_cmds | \
10550    old_archive_from_expsyms_cmds | \
10551    export_symbols_cmds | \
10552    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10553    postinstall_cmds | postuninstall_cmds | \
10554    old_postinstall_cmds | old_postuninstall_cmds | \
10555    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10556      # Double-quote double-evaled strings.
10557      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10558      ;;
10559    *)
10560      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10561      ;;
10562    esac
10563  done
10564
10565  case $lt_echo in
10566  *'\$0 --fallback-echo"')
10567    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10568    ;;
10569  esac
10570
10571cfgfile="${ofile}T"
10572  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10573  $rm -f "$cfgfile"
10574  { echo "$as_me:$LINENO: creating $ofile" >&5
10575echo "$as_me: creating $ofile" >&6;}
10576
10577  cat <<__EOF__ >> "$cfgfile"
10578#! $SHELL
10579
10580# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10581# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10582# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10583#
10584# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10585# Free Software Foundation, Inc.
10586#
10587# This file is part of GNU Libtool:
10588# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10589#
10590# This program is free software; you can redistribute it and/or modify
10591# it under the terms of the GNU General Public License as published by
10592# the Free Software Foundation; either version 2 of the License, or
10593# (at your option) any later version.
10594#
10595# This program is distributed in the hope that it will be useful, but
10596# WITHOUT ANY WARRANTY; without even the implied warranty of
10597# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10598# General Public License for more details.
10599#
10600# You should have received a copy of the GNU General Public License
10601# along with this program; if not, write to the Free Software
10602# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10603#
10604# As a special exception to the GNU General Public License, if you
10605# distribute this file as part of a program that contains a
10606# configuration script generated by Autoconf, you may include it under
10607# the same distribution terms that you use for the rest of that program.
10608
10609# A sed program that does not truncate output.
10610SED=$lt_SED
10611
10612# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10613Xsed="$SED -e 1s/^X//"
10614
10615# The HP-UX ksh and POSIX shell print the target directory to stdout
10616# if CDPATH is set.
10617(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10618
10619# The names of the tagged configurations supported by this script.
10620available_tags=
10621
10622# ### BEGIN LIBTOOL CONFIG
10623
10624# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10625
10626# Shell to use when invoking shell scripts.
10627SHELL=$lt_SHELL
10628
10629# Whether or not to build shared libraries.
10630build_libtool_libs=$enable_shared
10631
10632# Whether or not to build static libraries.
10633build_old_libs=$enable_static
10634
10635# Whether or not to add -lc for building shared libraries.
10636build_libtool_need_lc=$archive_cmds_need_lc
10637
10638# Whether or not to disallow shared libs when runtime libs are static
10639allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10640
10641# Whether or not to optimize for fast installation.
10642fast_install=$enable_fast_install
10643
10644# The host system.
10645host_alias=$host_alias
10646host=$host
10647host_os=$host_os
10648
10649# The build system.
10650build_alias=$build_alias
10651build=$build
10652build_os=$build_os
10653
10654# An echo program that does not interpret backslashes.
10655echo=$lt_echo
10656
10657# The archiver.
10658AR=$lt_AR
10659AR_FLAGS=$lt_AR_FLAGS
10660
10661# A C compiler.
10662LTCC=$lt_LTCC
10663
10664# LTCC compiler flags.
10665LTCFLAGS=$lt_LTCFLAGS
10666
10667# A language-specific compiler.
10668CC=$lt_compiler
10669
10670# Is the compiler the GNU C compiler?
10671with_gcc=$GCC
10672
10673# An ERE matcher.
10674EGREP=$lt_EGREP
10675
10676# The linker used to build libraries.
10677LD=$lt_LD
10678
10679# Whether we need hard or soft links.
10680LN_S=$lt_LN_S
10681
10682# A BSD-compatible nm program.
10683NM=$lt_NM
10684
10685# A symbol stripping program
10686STRIP=$lt_STRIP
10687
10688# Used to examine libraries when file_magic_cmd begins "file"
10689MAGIC_CMD=$MAGIC_CMD
10690
10691# Used on cygwin: DLL creation program.
10692DLLTOOL="$DLLTOOL"
10693
10694# Used on cygwin: object dumper.
10695OBJDUMP="$OBJDUMP"
10696
10697# Used on cygwin: assembler.
10698AS="$AS"
10699
10700# The name of the directory that contains temporary libtool files.
10701objdir=$objdir
10702
10703# How to create reloadable object files.
10704reload_flag=$lt_reload_flag
10705reload_cmds=$lt_reload_cmds
10706
10707# How to pass a linker flag through the compiler.
10708wl=$lt_lt_prog_compiler_wl
10709
10710# Object file suffix (normally "o").
10711objext="$ac_objext"
10712
10713# Old archive suffix (normally "a").
10714libext="$libext"
10715
10716# Shared library suffix (normally ".so").
10717shrext_cmds='$shrext_cmds'
10718
10719# Executable file suffix (normally "").
10720exeext="$exeext"
10721
10722# Additional compiler flags for building library objects.
10723pic_flag=$lt_lt_prog_compiler_pic
10724pic_mode=$pic_mode
10725
10726# What is the maximum length of a command?
10727max_cmd_len=$lt_cv_sys_max_cmd_len
10728
10729# Does compiler simultaneously support -c and -o options?
10730compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10731
10732# Must we lock files when doing compilation?
10733need_locks=$lt_need_locks
10734
10735# Do we need the lib prefix for modules?
10736need_lib_prefix=$need_lib_prefix
10737
10738# Do we need a version for libraries?
10739need_version=$need_version
10740
10741# Whether dlopen is supported.
10742dlopen_support=$enable_dlopen
10743
10744# Whether dlopen of programs is supported.
10745dlopen_self=$enable_dlopen_self
10746
10747# Whether dlopen of statically linked programs is supported.
10748dlopen_self_static=$enable_dlopen_self_static
10749
10750# Compiler flag to prevent dynamic linking.
10751link_static_flag=$lt_lt_prog_compiler_static
10752
10753# Compiler flag to turn off builtin functions.
10754no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10755
10756# Compiler flag to allow reflexive dlopens.
10757export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10758
10759# Compiler flag to generate shared objects directly from archives.
10760whole_archive_flag_spec=$lt_whole_archive_flag_spec
10761
10762# Compiler flag to generate thread-safe objects.
10763thread_safe_flag_spec=$lt_thread_safe_flag_spec
10764
10765# Library versioning type.
10766version_type=$version_type
10767
10768# Format of library name prefix.
10769libname_spec=$lt_libname_spec
10770
10771# List of archive names.  First name is the real one, the rest are links.
10772# The last name is the one that the linker finds with -lNAME.
10773library_names_spec=$lt_library_names_spec
10774
10775# The coded name of the library, if different from the real name.
10776soname_spec=$lt_soname_spec
10777
10778# Commands used to build and install an old-style archive.
10779RANLIB=$lt_RANLIB
10780old_archive_cmds=$lt_old_archive_cmds
10781old_postinstall_cmds=$lt_old_postinstall_cmds
10782old_postuninstall_cmds=$lt_old_postuninstall_cmds
10783
10784# Create an old-style archive from a shared archive.
10785old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10786
10787# Create a temporary old-style archive to link instead of a shared archive.
10788old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10789
10790# Commands used to build and install a shared archive.
10791archive_cmds=$lt_archive_cmds
10792archive_expsym_cmds=$lt_archive_expsym_cmds
10793postinstall_cmds=$lt_postinstall_cmds
10794postuninstall_cmds=$lt_postuninstall_cmds
10795
10796# Commands used to build a loadable module (assumed same as above if empty)
10797module_cmds=$lt_module_cmds
10798module_expsym_cmds=$lt_module_expsym_cmds
10799
10800# Commands to strip libraries.
10801old_striplib=$lt_old_striplib
10802striplib=$lt_striplib
10803
10804# Dependencies to place before the objects being linked to create a
10805# shared library.
10806predep_objects=$lt_predep_objects
10807
10808# Dependencies to place after the objects being linked to create a
10809# shared library.
10810postdep_objects=$lt_postdep_objects
10811
10812# Dependencies to place before the objects being linked to create a
10813# shared library.
10814predeps=$lt_predeps
10815
10816# Dependencies to place after the objects being linked to create a
10817# shared library.
10818postdeps=$lt_postdeps
10819
10820# The library search path used internally by the compiler when linking
10821# a shared library.
10822compiler_lib_search_path=$lt_compiler_lib_search_path
10823
10824# Method to check whether dependent libraries are shared objects.
10825deplibs_check_method=$lt_deplibs_check_method
10826
10827# Command to use when deplibs_check_method == file_magic.
10828file_magic_cmd=$lt_file_magic_cmd
10829
10830# Flag that allows shared libraries with undefined symbols to be built.
10831allow_undefined_flag=$lt_allow_undefined_flag
10832
10833# Flag that forces no undefined symbols.
10834no_undefined_flag=$lt_no_undefined_flag
10835
10836# Commands used to finish a libtool library installation in a directory.
10837finish_cmds=$lt_finish_cmds
10838
10839# Same as above, but a single script fragment to be evaled but not shown.
10840finish_eval=$lt_finish_eval
10841
10842# Take the output of nm and produce a listing of raw symbols and C names.
10843global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10844
10845# Transform the output of nm in a proper C declaration
10846global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10847
10848# Transform the output of nm in a C name address pair
10849global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10850
10851# This is the shared library runtime path variable.
10852runpath_var=$runpath_var
10853
10854# This is the shared library path variable.
10855shlibpath_var=$shlibpath_var
10856
10857# Is shlibpath searched before the hard-coded library search path?
10858shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10859
10860# How to hardcode a shared library path into an executable.
10861hardcode_action=$hardcode_action
10862
10863# Whether we should hardcode library paths into libraries.
10864hardcode_into_libs=$hardcode_into_libs
10865
10866# Flag to hardcode \$libdir into a binary during linking.
10867# This must work even if \$libdir does not exist.
10868hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10869
10870# If ld is used when linking, flag to hardcode \$libdir into
10871# a binary during linking. This must work even if \$libdir does
10872# not exist.
10873hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10874
10875# Whether we need a single -rpath flag with a separated argument.
10876hardcode_libdir_separator=$lt_hardcode_libdir_separator
10877
10878# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10879# resulting binary.
10880hardcode_direct=$hardcode_direct
10881
10882# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10883# resulting binary.
10884hardcode_minus_L=$hardcode_minus_L
10885
10886# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10887# the resulting binary.
10888hardcode_shlibpath_var=$hardcode_shlibpath_var
10889
10890# Set to yes if building a shared library automatically hardcodes DIR into the library
10891# and all subsequent libraries and executables linked against it.
10892hardcode_automatic=$hardcode_automatic
10893
10894# Variables whose values should be saved in libtool wrapper scripts and
10895# restored at relink time.
10896variables_saved_for_relink="$variables_saved_for_relink"
10897
10898# Whether libtool must link a program against all its dependency libraries.
10899link_all_deplibs=$link_all_deplibs
10900
10901# Compile-time system search path for libraries
10902sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10903
10904# Run-time system search path for libraries
10905sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10906
10907# Fix the shell variable \$srcfile for the compiler.
10908fix_srcfile_path="$fix_srcfile_path"
10909
10910# Set to yes if exported symbols are required.
10911always_export_symbols=$always_export_symbols
10912
10913# The commands to list exported symbols.
10914export_symbols_cmds=$lt_export_symbols_cmds
10915
10916# The commands to extract the exported symbol list from a shared archive.
10917extract_expsyms_cmds=$lt_extract_expsyms_cmds
10918
10919# Symbols that should not be listed in the preloaded symbols.
10920exclude_expsyms=$lt_exclude_expsyms
10921
10922# Symbols that must always be exported.
10923include_expsyms=$lt_include_expsyms
10924
10925# ### END LIBTOOL CONFIG
10926
10927__EOF__
10928
10929
10930  case $host_os in
10931  aix3*)
10932    cat <<\EOF >> "$cfgfile"
10933
10934# AIX sometimes has problems with the GCC collect2 program.  For some
10935# reason, if we set the COLLECT_NAMES environment variable, the problems
10936# vanish in a puff of smoke.
10937if test "X${COLLECT_NAMES+set}" != Xset; then
10938  COLLECT_NAMES=
10939  export COLLECT_NAMES
10940fi
10941EOF
10942    ;;
10943  esac
10944
10945  # We use sed instead of cat because bash on DJGPP gets confused if
10946  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10947  # text mode, it properly converts lines to CR/LF.  This bash problem
10948  # is reportedly fixed, but why not run on old versions too?
10949  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10950
10951  mv -f "$cfgfile" "$ofile" || \
10952    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10953  chmod +x "$ofile"
10954
10955else
10956  # If there is no Makefile yet, we rely on a make rule to execute
10957  # `config.status --recheck' to rerun these tests and create the
10958  # libtool script then.
10959  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10960  if test -f "$ltmain_in"; then
10961    test -f Makefile && make "$ltmain"
10962  fi
10963fi
10964
10965
10966ac_ext=c
10967ac_cpp='$CPP $CPPFLAGS'
10968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970ac_compiler_gnu=$ac_cv_c_compiler_gnu
10971
10972CC="$lt_save_CC"
10973
10974
10975# Check whether --with-tags was given.
10976if test "${with_tags+set}" = set; then
10977  withval=$with_tags; tagnames="$withval"
10978fi
10979
10980
10981if test -f "$ltmain" && test -n "$tagnames"; then
10982  if test ! -f "${ofile}"; then
10983    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10984echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10985  fi
10986
10987  if test -z "$LTCC"; then
10988    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10989    if test -z "$LTCC"; then
10990      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10991echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10992    else
10993      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10994echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10995    fi
10996  fi
10997  if test -z "$LTCFLAGS"; then
10998    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10999  fi
11000
11001  # Extract list of available tagged configurations in $ofile.
11002  # Note that this assumes the entire list is on one line.
11003  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11004
11005  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11006  for tagname in $tagnames; do
11007    IFS="$lt_save_ifs"
11008    # Check whether tagname contains only valid characters
11009    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11010    "") ;;
11011    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11012echo "$as_me: error: invalid tag name: $tagname" >&2;}
11013   { (exit 1); exit 1; }; }
11014	;;
11015    esac
11016
11017    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11018    then
11019      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11020echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11021   { (exit 1); exit 1; }; }
11022    fi
11023
11024    # Update the list of available tags.
11025    if test -n "$tagname"; then
11026      echo appending configuration tag \"$tagname\" to $ofile
11027
11028      case $tagname in
11029      CXX)
11030	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11031	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11032	    (test "X$CXX" != "Xg++"))) ; then
11033	  ac_ext=cpp
11034ac_cpp='$CXXCPP $CPPFLAGS'
11035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11038
11039
11040
11041
11042archive_cmds_need_lc_CXX=no
11043allow_undefined_flag_CXX=
11044always_export_symbols_CXX=no
11045archive_expsym_cmds_CXX=
11046export_dynamic_flag_spec_CXX=
11047hardcode_direct_CXX=no
11048hardcode_libdir_flag_spec_CXX=
11049hardcode_libdir_flag_spec_ld_CXX=
11050hardcode_libdir_separator_CXX=
11051hardcode_minus_L_CXX=no
11052hardcode_shlibpath_var_CXX=unsupported
11053hardcode_automatic_CXX=no
11054module_cmds_CXX=
11055module_expsym_cmds_CXX=
11056link_all_deplibs_CXX=unknown
11057old_archive_cmds_CXX=$old_archive_cmds
11058no_undefined_flag_CXX=
11059whole_archive_flag_spec_CXX=
11060enable_shared_with_static_runtimes_CXX=no
11061
11062# Dependencies to place before and after the object being linked:
11063predep_objects_CXX=
11064postdep_objects_CXX=
11065predeps_CXX=
11066postdeps_CXX=
11067compiler_lib_search_path_CXX=
11068
11069# Source file extension for C++ test sources.
11070ac_ext=cpp
11071
11072# Object file extension for compiled C++ test sources.
11073objext=o
11074objext_CXX=$objext
11075
11076# Code to be used in simple compile tests
11077lt_simple_compile_test_code="int some_variable = 0;\n"
11078
11079# Code to be used in simple link tests
11080lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11081
11082# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11083
11084# If no C compiler was specified, use CC.
11085LTCC=${LTCC-"$CC"}
11086
11087# If no C compiler flags were specified, use CFLAGS.
11088LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11089
11090# Allow CC to be a program name with arguments.
11091compiler=$CC
11092
11093
11094# save warnings/boilerplate of simple test code
11095ac_outfile=conftest.$ac_objext
11096printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11097eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11098_lt_compiler_boilerplate=`cat conftest.err`
11099$rm conftest*
11100
11101ac_outfile=conftest.$ac_objext
11102printf "$lt_simple_link_test_code" >conftest.$ac_ext
11103eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11104_lt_linker_boilerplate=`cat conftest.err`
11105$rm conftest*
11106
11107
11108# Allow CC to be a program name with arguments.
11109lt_save_CC=$CC
11110lt_save_LD=$LD
11111lt_save_GCC=$GCC
11112GCC=$GXX
11113lt_save_with_gnu_ld=$with_gnu_ld
11114lt_save_path_LD=$lt_cv_path_LD
11115if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11116  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11117else
11118  $as_unset lt_cv_prog_gnu_ld
11119fi
11120if test -n "${lt_cv_path_LDCXX+set}"; then
11121  lt_cv_path_LD=$lt_cv_path_LDCXX
11122else
11123  $as_unset lt_cv_path_LD
11124fi
11125test -z "${LDCXX+set}" || LD=$LDCXX
11126CC=${CXX-"c++"}
11127compiler=$CC
11128compiler_CXX=$CC
11129for cc_temp in $compiler""; do
11130  case $cc_temp in
11131    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11132    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11133    \-*) ;;
11134    *) break;;
11135  esac
11136done
11137cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11138
11139
11140# We don't want -fno-exception wen compiling C++ code, so set the
11141# no_builtin_flag separately
11142if test "$GXX" = yes; then
11143  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11144else
11145  lt_prog_compiler_no_builtin_flag_CXX=
11146fi
11147
11148if test "$GXX" = yes; then
11149  # Set up default GNU C++ configuration
11150
11151
11152# Check whether --with-gnu-ld was given.
11153if test "${with_gnu_ld+set}" = set; then
11154  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11155else
11156  with_gnu_ld=no
11157fi
11158
11159ac_prog=ld
11160if test "$GCC" = yes; then
11161  # Check if gcc -print-prog-name=ld gives a path.
11162  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11163echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11164  case $host in
11165  *-*-mingw*)
11166    # gcc leaves a trailing carriage return which upsets mingw
11167    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11168  *)
11169    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11170  esac
11171  case $ac_prog in
11172    # Accept absolute paths.
11173    [\\/]* | ?:[\\/]*)
11174      re_direlt='/[^/][^/]*/\.\./'
11175      # Canonicalize the pathname of ld
11176      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11177      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11178	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11179      done
11180      test -z "$LD" && LD="$ac_prog"
11181      ;;
11182  "")
11183    # If it fails, then pretend we aren't using GCC.
11184    ac_prog=ld
11185    ;;
11186  *)
11187    # If it is relative, then search for the first ld in PATH.
11188    with_gnu_ld=unknown
11189    ;;
11190  esac
11191elif test "$with_gnu_ld" = yes; then
11192  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11193echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11194else
11195  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11196echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11197fi
11198if test "${lt_cv_path_LD+set}" = set; then
11199  echo $ECHO_N "(cached) $ECHO_C" >&6
11200else
11201  if test -z "$LD"; then
11202  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11203  for ac_dir in $PATH; do
11204    IFS="$lt_save_ifs"
11205    test -z "$ac_dir" && ac_dir=.
11206    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11207      lt_cv_path_LD="$ac_dir/$ac_prog"
11208      # Check to see if the program is GNU ld.  I'd rather use --version,
11209      # but apparently some variants of GNU ld only accept -v.
11210      # Break only if it was the GNU/non-GNU ld that we prefer.
11211      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11212      *GNU* | *'with BFD'*)
11213	test "$with_gnu_ld" != no && break
11214	;;
11215      *)
11216	test "$with_gnu_ld" != yes && break
11217	;;
11218      esac
11219    fi
11220  done
11221  IFS="$lt_save_ifs"
11222else
11223  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11224fi
11225fi
11226
11227LD="$lt_cv_path_LD"
11228if test -n "$LD"; then
11229  { echo "$as_me:$LINENO: result: $LD" >&5
11230echo "${ECHO_T}$LD" >&6; }
11231else
11232  { echo "$as_me:$LINENO: result: no" >&5
11233echo "${ECHO_T}no" >&6; }
11234fi
11235test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11236echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11237   { (exit 1); exit 1; }; }
11238{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11239echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11240if test "${lt_cv_prog_gnu_ld+set}" = set; then
11241  echo $ECHO_N "(cached) $ECHO_C" >&6
11242else
11243  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11244case `$LD -v 2>&1 </dev/null` in
11245*GNU* | *'with BFD'*)
11246  lt_cv_prog_gnu_ld=yes
11247  ;;
11248*)
11249  lt_cv_prog_gnu_ld=no
11250  ;;
11251esac
11252fi
11253{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11254echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11255with_gnu_ld=$lt_cv_prog_gnu_ld
11256
11257
11258
11259  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11260  # archiving commands below assume that GNU ld is being used.
11261  if test "$with_gnu_ld" = yes; then
11262    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11263    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'
11264
11265    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11266    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11267
11268    # If archive_cmds runs LD, not CC, wlarc should be empty
11269    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11270    #     investigate it a little bit more. (MM)
11271    wlarc='${wl}'
11272
11273    # ancient GNU ld didn't support --whole-archive et. al.
11274    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11275	grep 'no-whole-archive' > /dev/null; then
11276      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11277    else
11278      whole_archive_flag_spec_CXX=
11279    fi
11280  else
11281    with_gnu_ld=no
11282    wlarc=
11283
11284    # A generic and very simple default shared library creation
11285    # command for GNU C++ for the case where it uses the native
11286    # linker, instead of GNU ld.  If possible, this setting should
11287    # overridden to take advantage of the native linker features on
11288    # the platform it is being used on.
11289    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11290  fi
11291
11292  # Commands to make compiler produce verbose output that lists
11293  # what "hidden" libraries, object files and flags are used when
11294  # linking a shared library.
11295  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11296
11297else
11298  GXX=no
11299  with_gnu_ld=no
11300  wlarc=
11301fi
11302
11303# PORTME: fill in a description of your system's C++ link characteristics
11304{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11305echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11306ld_shlibs_CXX=yes
11307case $host_os in
11308  aix3*)
11309    # FIXME: insert proper C++ library support
11310    ld_shlibs_CXX=no
11311    ;;
11312  aix4* | aix5*)
11313    if test "$host_cpu" = ia64; then
11314      # On IA64, the linker does run time linking by default, so we don't
11315      # have to do anything special.
11316      aix_use_runtimelinking=no
11317      exp_sym_flag='-Bexport'
11318      no_entry_flag=""
11319    else
11320      aix_use_runtimelinking=no
11321
11322      # Test if we are trying to use run time linking or normal
11323      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11324      # need to do runtime linking.
11325      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11326	for ld_flag in $LDFLAGS; do
11327	  case $ld_flag in
11328	  *-brtl*)
11329	    aix_use_runtimelinking=yes
11330	    break
11331	    ;;
11332	  esac
11333	done
11334	;;
11335      esac
11336
11337      exp_sym_flag='-bexport'
11338      no_entry_flag='-bnoentry'
11339    fi
11340
11341    # When large executables or shared objects are built, AIX ld can
11342    # have problems creating the table of contents.  If linking a library
11343    # or program results in "error TOC overflow" add -mminimal-toc to
11344    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11345    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11346
11347    archive_cmds_CXX=''
11348    hardcode_direct_CXX=yes
11349    hardcode_libdir_separator_CXX=':'
11350    link_all_deplibs_CXX=yes
11351
11352    if test "$GXX" = yes; then
11353      case $host_os in aix4.[012]|aix4.[012].*)
11354      # We only want to do this on AIX 4.2 and lower, the check
11355      # below for broken collect2 doesn't work under 4.3+
11356	collect2name=`${CC} -print-prog-name=collect2`
11357	if test -f "$collect2name" && \
11358	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11359	then
11360	  # We have reworked collect2
11361	  hardcode_direct_CXX=yes
11362	else
11363	  # We have old collect2
11364	  hardcode_direct_CXX=unsupported
11365	  # It fails to find uninstalled libraries when the uninstalled
11366	  # path is not listed in the libpath.  Setting hardcode_minus_L
11367	  # to unsupported forces relinking
11368	  hardcode_minus_L_CXX=yes
11369	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11370	  hardcode_libdir_separator_CXX=
11371	fi
11372	;;
11373      esac
11374      shared_flag='-shared'
11375      if test "$aix_use_runtimelinking" = yes; then
11376	shared_flag="$shared_flag "'${wl}-G'
11377      fi
11378    else
11379      # not using gcc
11380      if test "$host_cpu" = ia64; then
11381	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11382	# chokes on -Wl,-G. The following line is correct:
11383	shared_flag='-G'
11384      else
11385	if test "$aix_use_runtimelinking" = yes; then
11386	  shared_flag='${wl}-G'
11387	else
11388	  shared_flag='${wl}-bM:SRE'
11389	fi
11390      fi
11391    fi
11392
11393    # It seems that -bexpall does not export symbols beginning with
11394    # underscore (_), so it is better to generate a list of symbols to export.
11395    always_export_symbols_CXX=yes
11396    if test "$aix_use_runtimelinking" = yes; then
11397      # Warning - without using the other runtime loading flags (-brtl),
11398      # -berok will link without error, but may produce a broken library.
11399      allow_undefined_flag_CXX='-berok'
11400      # Determine the default libpath from the value encoded in an empty executable.
11401      cat >conftest.$ac_ext <<_ACEOF
11402/* confdefs.h.  */
11403_ACEOF
11404cat confdefs.h >>conftest.$ac_ext
11405cat >>conftest.$ac_ext <<_ACEOF
11406/* end confdefs.h.  */
11407
11408int
11409main ()
11410{
11411
11412  ;
11413  return 0;
11414}
11415_ACEOF
11416rm -f conftest.$ac_objext conftest$ac_exeext
11417if { (ac_try="$ac_link"
11418case "(($ac_try" in
11419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420  *) ac_try_echo=$ac_try;;
11421esac
11422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423  (eval "$ac_link") 2>conftest.er1
11424  ac_status=$?
11425  grep -v '^ *+' conftest.er1 >conftest.err
11426  rm -f conftest.er1
11427  cat conftest.err >&5
11428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429  (exit $ac_status); } &&
11430	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11431  { (case "(($ac_try" in
11432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433  *) ac_try_echo=$ac_try;;
11434esac
11435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436  (eval "$ac_try") 2>&5
11437  ac_status=$?
11438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439  (exit $ac_status); }; } &&
11440	 { ac_try='test -s conftest$ac_exeext'
11441  { (case "(($ac_try" in
11442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443  *) ac_try_echo=$ac_try;;
11444esac
11445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446  (eval "$ac_try") 2>&5
11447  ac_status=$?
11448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449  (exit $ac_status); }; }; then
11450
11451aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11452}'`
11453# Check for a 64-bit object if we didn't find anything.
11454if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11455}'`; fi
11456else
11457  echo "$as_me: failed program was:" >&5
11458sed 's/^/| /' conftest.$ac_ext >&5
11459
11460
11461fi
11462
11463rm -f core conftest.err conftest.$ac_objext \
11464      conftest$ac_exeext conftest.$ac_ext
11465if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11466
11467      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11468
11469      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"
11470     else
11471      if test "$host_cpu" = ia64; then
11472	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11473	allow_undefined_flag_CXX="-z nodefs"
11474	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"
11475      else
11476	# Determine the default libpath from the value encoded in an empty executable.
11477	cat >conftest.$ac_ext <<_ACEOF
11478/* confdefs.h.  */
11479_ACEOF
11480cat confdefs.h >>conftest.$ac_ext
11481cat >>conftest.$ac_ext <<_ACEOF
11482/* end confdefs.h.  */
11483
11484int
11485main ()
11486{
11487
11488  ;
11489  return 0;
11490}
11491_ACEOF
11492rm -f conftest.$ac_objext conftest$ac_exeext
11493if { (ac_try="$ac_link"
11494case "(($ac_try" in
11495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496  *) ac_try_echo=$ac_try;;
11497esac
11498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499  (eval "$ac_link") 2>conftest.er1
11500  ac_status=$?
11501  grep -v '^ *+' conftest.er1 >conftest.err
11502  rm -f conftest.er1
11503  cat conftest.err >&5
11504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505  (exit $ac_status); } &&
11506	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11507  { (case "(($ac_try" in
11508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509  *) ac_try_echo=$ac_try;;
11510esac
11511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512  (eval "$ac_try") 2>&5
11513  ac_status=$?
11514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515  (exit $ac_status); }; } &&
11516	 { ac_try='test -s conftest$ac_exeext'
11517  { (case "(($ac_try" in
11518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519  *) ac_try_echo=$ac_try;;
11520esac
11521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522  (eval "$ac_try") 2>&5
11523  ac_status=$?
11524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525  (exit $ac_status); }; }; then
11526
11527aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11528}'`
11529# Check for a 64-bit object if we didn't find anything.
11530if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11531}'`; fi
11532else
11533  echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536
11537fi
11538
11539rm -f core conftest.err conftest.$ac_objext \
11540      conftest$ac_exeext conftest.$ac_ext
11541if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11542
11543	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11544	# Warning - without using the other run time loading flags,
11545	# -berok will link without error, but may produce a broken library.
11546	no_undefined_flag_CXX=' ${wl}-bernotok'
11547	allow_undefined_flag_CXX=' ${wl}-berok'
11548	# Exported symbols can be pulled into shared objects from archives
11549	whole_archive_flag_spec_CXX='$convenience'
11550	archive_cmds_need_lc_CXX=yes
11551	# This is similar to how AIX traditionally builds its shared libraries.
11552	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'
11553      fi
11554    fi
11555    ;;
11556
11557  beos*)
11558    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11559      allow_undefined_flag_CXX=unsupported
11560      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11561      # support --undefined.  This deserves some investigation.  FIXME
11562      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11563    else
11564      ld_shlibs_CXX=no
11565    fi
11566    ;;
11567
11568  chorus*)
11569    case $cc_basename in
11570      *)
11571	# FIXME: insert proper C++ library support
11572	ld_shlibs_CXX=no
11573	;;
11574    esac
11575    ;;
11576
11577  cygwin* | mingw* | pw32*)
11578    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11579    # as there is no search path for DLLs.
11580    hardcode_libdir_flag_spec_CXX='-L$libdir'
11581    allow_undefined_flag_CXX=unsupported
11582    always_export_symbols_CXX=no
11583    enable_shared_with_static_runtimes_CXX=yes
11584
11585    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11586      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'
11587      # If the export-symbols file already is a .def file (1st line
11588      # is EXPORTS), use it as is; otherwise, prepend...
11589      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11590	cp $export_symbols $output_objdir/$soname.def;
11591      else
11592	echo EXPORTS > $output_objdir/$soname.def;
11593	cat $export_symbols >> $output_objdir/$soname.def;
11594      fi~
11595      $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'
11596    else
11597      ld_shlibs_CXX=no
11598    fi
11599  ;;
11600      darwin* | rhapsody*)
11601        case $host_os in
11602        rhapsody* | darwin1.[012])
11603         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11604         ;;
11605       *) # Darwin 1.3 on
11606         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11607           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11608         else
11609           case ${MACOSX_DEPLOYMENT_TARGET} in
11610             10.[012])
11611               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11612               ;;
11613             10.*)
11614               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11615               ;;
11616           esac
11617         fi
11618         ;;
11619        esac
11620      archive_cmds_need_lc_CXX=no
11621      hardcode_direct_CXX=no
11622      hardcode_automatic_CXX=yes
11623      hardcode_shlibpath_var_CXX=unsupported
11624      whole_archive_flag_spec_CXX=''
11625      link_all_deplibs_CXX=yes
11626
11627    if test "$GXX" = yes ; then
11628      lt_int_apple_cc_single_mod=no
11629      output_verbose_link_cmd='echo'
11630      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11631       lt_int_apple_cc_single_mod=yes
11632      fi
11633      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11634       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11635      else
11636          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'
11637        fi
11638        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11639        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11640          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11641            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}'
11642          else
11643            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}'
11644          fi
11645            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}'
11646      else
11647      case $cc_basename in
11648        xlc*)
11649         output_verbose_link_cmd='echo'
11650          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11651          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11652          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11653          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11654          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}'
11655          ;;
11656       *)
11657         ld_shlibs_CXX=no
11658          ;;
11659      esac
11660      fi
11661        ;;
11662
11663  dgux*)
11664    case $cc_basename in
11665      ec++*)
11666	# FIXME: insert proper C++ library support
11667	ld_shlibs_CXX=no
11668	;;
11669      ghcx*)
11670	# Green Hills C++ Compiler
11671	# FIXME: insert proper C++ library support
11672	ld_shlibs_CXX=no
11673	;;
11674      *)
11675	# FIXME: insert proper C++ library support
11676	ld_shlibs_CXX=no
11677	;;
11678    esac
11679    ;;
11680  freebsd[12]*)
11681    # C++ shared libraries reported to be fairly broken before switch to ELF
11682    ld_shlibs_CXX=no
11683    ;;
11684  freebsd-elf*)
11685    archive_cmds_need_lc_CXX=no
11686    ;;
11687  freebsd* | dragonfly*)
11688    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11689    # conventions
11690    ld_shlibs_CXX=yes
11691    ;;
11692  gnu*)
11693    ;;
11694  hpux9*)
11695    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11696    hardcode_libdir_separator_CXX=:
11697    export_dynamic_flag_spec_CXX='${wl}-E'
11698    hardcode_direct_CXX=yes
11699    hardcode_minus_L_CXX=yes # Not in the search PATH,
11700				# but as the default
11701				# location of the library.
11702
11703    case $cc_basename in
11704    CC*)
11705      # FIXME: insert proper C++ library support
11706      ld_shlibs_CXX=no
11707      ;;
11708    aCC*)
11709      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'
11710      # Commands to make compiler produce verbose output that lists
11711      # what "hidden" libraries, object files and flags are used when
11712      # linking a shared library.
11713      #
11714      # There doesn't appear to be a way to prevent this compiler from
11715      # explicitly linking system object files so we need to strip them
11716      # from the output so that they don't get included in the library
11717      # dependencies.
11718      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'
11719      ;;
11720    *)
11721      if test "$GXX" = yes; then
11722        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'
11723      else
11724        # FIXME: insert proper C++ library support
11725        ld_shlibs_CXX=no
11726      fi
11727      ;;
11728    esac
11729    ;;
11730  hpux10*|hpux11*)
11731    if test $with_gnu_ld = no; then
11732      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11733      hardcode_libdir_separator_CXX=:
11734
11735      case $host_cpu in
11736      hppa*64*|ia64*)
11737	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11738        ;;
11739      *)
11740	export_dynamic_flag_spec_CXX='${wl}-E'
11741        ;;
11742      esac
11743    fi
11744    case $host_cpu in
11745    hppa*64*|ia64*)
11746      hardcode_direct_CXX=no
11747      hardcode_shlibpath_var_CXX=no
11748      ;;
11749    *)
11750      hardcode_direct_CXX=yes
11751      hardcode_minus_L_CXX=yes # Not in the search PATH,
11752					      # but as the default
11753					      # location of the library.
11754      ;;
11755    esac
11756
11757    case $cc_basename in
11758      CC*)
11759	# FIXME: insert proper C++ library support
11760	ld_shlibs_CXX=no
11761	;;
11762      aCC*)
11763	case $host_cpu in
11764	hppa*64*)
11765	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11766	  ;;
11767	ia64*)
11768	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11769	  ;;
11770	*)
11771	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11772	  ;;
11773	esac
11774	# Commands to make compiler produce verbose output that lists
11775	# what "hidden" libraries, object files and flags are used when
11776	# linking a shared library.
11777	#
11778	# There doesn't appear to be a way to prevent this compiler from
11779	# explicitly linking system object files so we need to strip them
11780	# from the output so that they don't get included in the library
11781	# dependencies.
11782	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'
11783	;;
11784      *)
11785	if test "$GXX" = yes; then
11786	  if test $with_gnu_ld = no; then
11787	    case $host_cpu in
11788	    hppa*64*)
11789	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11790	      ;;
11791	    ia64*)
11792	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11793	      ;;
11794	    *)
11795	      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'
11796	      ;;
11797	    esac
11798	  fi
11799	else
11800	  # FIXME: insert proper C++ library support
11801	  ld_shlibs_CXX=no
11802	fi
11803	;;
11804    esac
11805    ;;
11806  interix3*)
11807    hardcode_direct_CXX=no
11808    hardcode_shlibpath_var_CXX=no
11809    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11810    export_dynamic_flag_spec_CXX='${wl}-E'
11811    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11812    # Instead, shared libraries are loaded at an image base (0x10000000 by
11813    # default) and relocated if they conflict, which is a slow very memory
11814    # consuming and fragmenting process.  To avoid this, we pick a random,
11815    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11816    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11817    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'
11818    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'
11819    ;;
11820  irix5* | irix6*)
11821    case $cc_basename in
11822      CC*)
11823	# SGI C++
11824	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'
11825
11826	# Archives containing C++ object files must be created using
11827	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11828	# necessary to make sure instantiated templates are included
11829	# in the archive.
11830	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11831	;;
11832      *)
11833	if test "$GXX" = yes; then
11834	  if test "$with_gnu_ld" = no; then
11835	    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'
11836	  else
11837	    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'
11838	  fi
11839	fi
11840	link_all_deplibs_CXX=yes
11841	;;
11842    esac
11843    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11844    hardcode_libdir_separator_CXX=:
11845    ;;
11846  linux* | k*bsd*-gnu)
11847    case $cc_basename in
11848      KCC*)
11849	# Kuck and Associates, Inc. (KAI) C++ Compiler
11850
11851	# KCC will only create a shared library if the output file
11852	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11853	# to its proper name (with version) after linking.
11854	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'
11855	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'
11856	# Commands to make compiler produce verbose output that lists
11857	# what "hidden" libraries, object files and flags are used when
11858	# linking a shared library.
11859	#
11860	# There doesn't appear to be a way to prevent this compiler from
11861	# explicitly linking system object files so we need to strip them
11862	# from the output so that they don't get included in the library
11863	# dependencies.
11864	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'
11865
11866	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11867	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11868
11869	# Archives containing C++ object files must be created using
11870	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11871	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11872	;;
11873      icpc*)
11874	# Intel C++
11875	with_gnu_ld=yes
11876	# version 8.0 and above of icpc choke on multiply defined symbols
11877	# if we add $predep_objects and $postdep_objects, however 7.1 and
11878	# earlier do not add the objects themselves.
11879	case `$CC -V 2>&1` in
11880	*"Version 7."*)
11881  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11882  	  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'
11883	  ;;
11884	*)  # Version 8.0 or newer
11885	  tmp_idyn=
11886	  case $host_cpu in
11887	    ia64*) tmp_idyn=' -i_dynamic';;
11888	  esac
11889  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11890	  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'
11891	  ;;
11892	esac
11893	archive_cmds_need_lc_CXX=no
11894	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11895	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11896	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11897	;;
11898      pgCC*)
11899        # Portland Group C++ compiler
11900	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11901  	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'
11902
11903	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11904	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11905	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'
11906        ;;
11907      cxx*)
11908	# Compaq C++
11909	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11910	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'
11911
11912	runpath_var=LD_RUN_PATH
11913	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11914	hardcode_libdir_separator_CXX=:
11915
11916	# Commands to make compiler produce verbose output that lists
11917	# what "hidden" libraries, object files and flags are used when
11918	# linking a shared library.
11919	#
11920	# There doesn't appear to be a way to prevent this compiler from
11921	# explicitly linking system object files so we need to strip them
11922	# from the output so that they don't get included in the library
11923	# dependencies.
11924	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'
11925	;;
11926    esac
11927    ;;
11928  lynxos*)
11929    # FIXME: insert proper C++ library support
11930    ld_shlibs_CXX=no
11931    ;;
11932  m88k*)
11933    # FIXME: insert proper C++ library support
11934    ld_shlibs_CXX=no
11935    ;;
11936  mvs*)
11937    case $cc_basename in
11938      cxx*)
11939	# FIXME: insert proper C++ library support
11940	ld_shlibs_CXX=no
11941	;;
11942      *)
11943	# FIXME: insert proper C++ library support
11944	ld_shlibs_CXX=no
11945	;;
11946    esac
11947    ;;
11948  netbsd* | netbsdelf*-gnu)
11949    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11950      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11951      wlarc=
11952      hardcode_libdir_flag_spec_CXX='-R$libdir'
11953      hardcode_direct_CXX=yes
11954      hardcode_shlibpath_var_CXX=no
11955    fi
11956    # Workaround some broken pre-1.5 toolchains
11957    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11958    ;;
11959  openbsd2*)
11960    # C++ shared libraries are fairly broken
11961    ld_shlibs_CXX=no
11962    ;;
11963  openbsd*)
11964    hardcode_direct_CXX=yes
11965    hardcode_shlibpath_var_CXX=no
11966    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11967    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11968    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11969      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11970      export_dynamic_flag_spec_CXX='${wl}-E'
11971      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11972    fi
11973    output_verbose_link_cmd='echo'
11974    ;;
11975  osf3*)
11976    case $cc_basename in
11977      KCC*)
11978	# Kuck and Associates, Inc. (KAI) C++ Compiler
11979
11980	# KCC will only create a shared library if the output file
11981	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11982	# to its proper name (with version) after linking.
11983	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'
11984
11985	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11986	hardcode_libdir_separator_CXX=:
11987
11988	# Archives containing C++ object files must be created using
11989	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11990	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11991
11992	;;
11993      RCC*)
11994	# Rational C++ 2.4.1
11995	# FIXME: insert proper C++ library support
11996	ld_shlibs_CXX=no
11997	;;
11998      cxx*)
11999	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12000	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'
12001
12002	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12003	hardcode_libdir_separator_CXX=:
12004
12005	# Commands to make compiler produce verbose output that lists
12006	# what "hidden" libraries, object files and flags are used when
12007	# linking a shared library.
12008	#
12009	# There doesn't appear to be a way to prevent this compiler from
12010	# explicitly linking system object files so we need to strip them
12011	# from the output so that they don't get included in the library
12012	# dependencies.
12013	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'
12014	;;
12015      *)
12016	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12017	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12018	  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'
12019
12020	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12021	  hardcode_libdir_separator_CXX=:
12022
12023	  # Commands to make compiler produce verbose output that lists
12024	  # what "hidden" libraries, object files and flags are used when
12025	  # linking a shared library.
12026	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12027
12028	else
12029	  # FIXME: insert proper C++ library support
12030	  ld_shlibs_CXX=no
12031	fi
12032	;;
12033    esac
12034    ;;
12035  osf4* | osf5*)
12036    case $cc_basename in
12037      KCC*)
12038	# Kuck and Associates, Inc. (KAI) C++ Compiler
12039
12040	# KCC will only create a shared library if the output file
12041	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12042	# to its proper name (with version) after linking.
12043	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'
12044
12045	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12046	hardcode_libdir_separator_CXX=:
12047
12048	# Archives containing C++ object files must be created using
12049	# the KAI C++ compiler.
12050	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12051	;;
12052      RCC*)
12053	# Rational C++ 2.4.1
12054	# FIXME: insert proper C++ library support
12055	ld_shlibs_CXX=no
12056	;;
12057      cxx*)
12058	allow_undefined_flag_CXX=' -expect_unresolved \*'
12059	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'
12060	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12061	  echo "-hidden">> $lib.exp~
12062	  $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~
12063	  $rm $lib.exp'
12064
12065	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12066	hardcode_libdir_separator_CXX=:
12067
12068	# Commands to make compiler produce verbose output that lists
12069	# what "hidden" libraries, object files and flags are used when
12070	# linking a shared library.
12071	#
12072	# There doesn't appear to be a way to prevent this compiler from
12073	# explicitly linking system object files so we need to strip them
12074	# from the output so that they don't get included in the library
12075	# dependencies.
12076	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'
12077	;;
12078      *)
12079	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12080	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12081	 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'
12082
12083	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12084	  hardcode_libdir_separator_CXX=:
12085
12086	  # Commands to make compiler produce verbose output that lists
12087	  # what "hidden" libraries, object files and flags are used when
12088	  # linking a shared library.
12089	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12090
12091	else
12092	  # FIXME: insert proper C++ library support
12093	  ld_shlibs_CXX=no
12094	fi
12095	;;
12096    esac
12097    ;;
12098  psos*)
12099    # FIXME: insert proper C++ library support
12100    ld_shlibs_CXX=no
12101    ;;
12102  sunos4*)
12103    case $cc_basename in
12104      CC*)
12105	# Sun C++ 4.x
12106	# FIXME: insert proper C++ library support
12107	ld_shlibs_CXX=no
12108	;;
12109      lcc*)
12110	# Lucid
12111	# FIXME: insert proper C++ library support
12112	ld_shlibs_CXX=no
12113	;;
12114      *)
12115	# FIXME: insert proper C++ library support
12116	ld_shlibs_CXX=no
12117	;;
12118    esac
12119    ;;
12120  solaris*)
12121    case $cc_basename in
12122      CC*)
12123	# Sun C++ 4.2, 5.x and Centerline C++
12124        archive_cmds_need_lc_CXX=yes
12125	no_undefined_flag_CXX=' -zdefs'
12126	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12127	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12128	$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'
12129
12130	hardcode_libdir_flag_spec_CXX='-R$libdir'
12131	hardcode_shlibpath_var_CXX=no
12132	case $host_os in
12133	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12134	  *)
12135	    # The C++ compiler is used as linker so we must use $wl
12136	    # flag to pass the commands to the underlying system
12137	    # linker. We must also pass each convience library through
12138	    # to the system linker between allextract/defaultextract.
12139	    # The C++ compiler will combine linker options so we
12140	    # cannot just pass the convience library names through
12141	    # without $wl.
12142	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12143	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12144	    ;;
12145	esac
12146	link_all_deplibs_CXX=yes
12147
12148	output_verbose_link_cmd='echo'
12149
12150	# Archives containing C++ object files must be created using
12151	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12152	# necessary to make sure instantiated templates are included
12153	# in the archive.
12154	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12155	;;
12156      gcx*)
12157	# Green Hills C++ Compiler
12158	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12159
12160	# The C++ compiler must be used to create the archive.
12161	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12162	;;
12163      *)
12164	# GNU C++ compiler with Solaris linker
12165	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12166	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12167	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12168	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12169	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12170		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12171
12172	    # Commands to make compiler produce verbose output that lists
12173	    # what "hidden" libraries, object files and flags are used when
12174	    # linking a shared library.
12175	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12176	  else
12177	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12178	    # platform.
12179	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12180	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12181		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12182
12183	    # Commands to make compiler produce verbose output that lists
12184	    # what "hidden" libraries, object files and flags are used when
12185	    # linking a shared library.
12186	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12187	  fi
12188
12189	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12190	fi
12191	;;
12192    esac
12193    ;;
12194  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12195    no_undefined_flag_CXX='${wl}-z,text'
12196    archive_cmds_need_lc_CXX=no
12197    hardcode_shlibpath_var_CXX=no
12198    runpath_var='LD_RUN_PATH'
12199
12200    case $cc_basename in
12201      CC*)
12202	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12203	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12204	;;
12205      *)
12206	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12207	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12208	;;
12209    esac
12210    ;;
12211  sysv5* | sco3.2v5* | sco5v6*)
12212    # Note: We can NOT use -z defs as we might desire, because we do not
12213    # link with -lc, and that would cause any symbols used from libc to
12214    # always be unresolved, which means just about no library would
12215    # ever link correctly.  If we're not using GNU ld we use -z text
12216    # though, which does catch some bad symbols but isn't as heavy-handed
12217    # as -z defs.
12218    # For security reasons, it is highly recommended that you always
12219    # use absolute paths for naming shared libraries, and exclude the
12220    # DT_RUNPATH tag from executables and libraries.  But doing so
12221    # requires that you compile everything twice, which is a pain.
12222    # So that behaviour is only enabled if SCOABSPATH is set to a
12223    # non-empty value in the environment.  Most likely only useful for
12224    # creating official distributions of packages.
12225    # This is a hack until libtool officially supports absolute path
12226    # names for shared libraries.
12227    no_undefined_flag_CXX='${wl}-z,text'
12228    allow_undefined_flag_CXX='${wl}-z,nodefs'
12229    archive_cmds_need_lc_CXX=no
12230    hardcode_shlibpath_var_CXX=no
12231    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12232    hardcode_libdir_separator_CXX=':'
12233    link_all_deplibs_CXX=yes
12234    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12235    runpath_var='LD_RUN_PATH'
12236
12237    case $cc_basename in
12238      CC*)
12239	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12240	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12241	;;
12242      *)
12243	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12244	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12245	;;
12246    esac
12247    ;;
12248  tandem*)
12249    case $cc_basename in
12250      NCC*)
12251	# NonStop-UX NCC 3.20
12252	# FIXME: insert proper C++ library support
12253	ld_shlibs_CXX=no
12254	;;
12255      *)
12256	# FIXME: insert proper C++ library support
12257	ld_shlibs_CXX=no
12258	;;
12259    esac
12260    ;;
12261  vxworks*)
12262    # FIXME: insert proper C++ library support
12263    ld_shlibs_CXX=no
12264    ;;
12265  *)
12266    # FIXME: insert proper C++ library support
12267    ld_shlibs_CXX=no
12268    ;;
12269esac
12270{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12271echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12272test "$ld_shlibs_CXX" = no && can_build_shared=no
12273
12274GCC_CXX="$GXX"
12275LD_CXX="$LD"
12276
12277
12278cat > conftest.$ac_ext <<EOF
12279class Foo
12280{
12281public:
12282  Foo (void) { a = 0; }
12283private:
12284  int a;
12285};
12286EOF
12287
12288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289  (eval $ac_compile) 2>&5
12290  ac_status=$?
12291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292  (exit $ac_status); }; then
12293  # Parse the compiler output and extract the necessary
12294  # objects, libraries and library flags.
12295
12296  # Sentinel used to keep track of whether or not we are before
12297  # the conftest object file.
12298  pre_test_object_deps_done=no
12299
12300  # The `*' in the case matches for architectures that use `case' in
12301  # $output_verbose_cmd can trigger glob expansion during the loop
12302  # eval without this substitution.
12303  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12304
12305  for p in `eval $output_verbose_link_cmd`; do
12306    case $p in
12307
12308    -L* | -R* | -l*)
12309       # Some compilers place space between "-{L,R}" and the path.
12310       # Remove the space.
12311       if test $p = "-L" \
12312	  || test $p = "-R"; then
12313	 prev=$p
12314	 continue
12315       else
12316	 prev=
12317       fi
12318
12319       if test "$pre_test_object_deps_done" = no; then
12320	 case $p in
12321	 -L* | -R*)
12322	   # Internal compiler library paths should come after those
12323	   # provided the user.  The postdeps already come after the
12324	   # user supplied libs so there is no need to process them.
12325	   if test -z "$compiler_lib_search_path_CXX"; then
12326	     compiler_lib_search_path_CXX="${prev}${p}"
12327	   else
12328	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12329	   fi
12330	   ;;
12331	 # The "-l" case would never come before the object being
12332	 # linked, so don't bother handling this case.
12333	 esac
12334       else
12335	 if test -z "$postdeps_CXX"; then
12336	   postdeps_CXX="${prev}${p}"
12337	 else
12338	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12339	 fi
12340       fi
12341       ;;
12342
12343    *.$objext)
12344       # This assumes that the test object file only shows up
12345       # once in the compiler output.
12346       if test "$p" = "conftest.$objext"; then
12347	 pre_test_object_deps_done=yes
12348	 continue
12349       fi
12350
12351       if test "$pre_test_object_deps_done" = no; then
12352	 if test -z "$predep_objects_CXX"; then
12353	   predep_objects_CXX="$p"
12354	 else
12355	   predep_objects_CXX="$predep_objects_CXX $p"
12356	 fi
12357       else
12358	 if test -z "$postdep_objects_CXX"; then
12359	   postdep_objects_CXX="$p"
12360	 else
12361	   postdep_objects_CXX="$postdep_objects_CXX $p"
12362	 fi
12363       fi
12364       ;;
12365
12366    *) ;; # Ignore the rest.
12367
12368    esac
12369  done
12370
12371  # Clean up.
12372  rm -f a.out a.exe
12373else
12374  echo "libtool.m4: error: problem compiling CXX test program"
12375fi
12376
12377$rm -f confest.$objext
12378
12379# PORTME: override above test on systems where it is broken
12380case $host_os in
12381interix3*)
12382  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12383  # hack all around it, let's just trust "g++" to DTRT.
12384  predep_objects_CXX=
12385  postdep_objects_CXX=
12386  postdeps_CXX=
12387  ;;
12388
12389solaris*)
12390  case $cc_basename in
12391  CC*)
12392    # Adding this requires a known-good setup of shared libraries for
12393    # Sun compiler versions before 5.6, else PIC objects from an old
12394    # archive will be linked into the output, leading to subtle bugs.
12395    postdeps_CXX='-lCstd -lCrun'
12396    ;;
12397  esac
12398  ;;
12399esac
12400
12401
12402case " $postdeps_CXX " in
12403*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12404esac
12405
12406lt_prog_compiler_wl_CXX=
12407lt_prog_compiler_pic_CXX=
12408lt_prog_compiler_static_CXX=
12409
12410{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12411echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12412
12413  # C++ specific cases for pic, static, wl, etc.
12414  if test "$GXX" = yes; then
12415    lt_prog_compiler_wl_CXX='-Wl,'
12416    lt_prog_compiler_static_CXX='-static'
12417
12418    case $host_os in
12419    aix*)
12420      # All AIX code is PIC.
12421      if test "$host_cpu" = ia64; then
12422	# AIX 5 now supports IA64 processor
12423	lt_prog_compiler_static_CXX='-Bstatic'
12424      fi
12425      ;;
12426    amigaos*)
12427      # FIXME: we need at least 68020 code to build shared libraries, but
12428      # adding the `-m68020' flag to GCC prevents building anything better,
12429      # like `-m68040'.
12430      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12431      ;;
12432    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12433      # PIC is the default for these OSes.
12434      ;;
12435    mingw* | os2* | pw32*)
12436      # This hack is so that the source file can tell whether it is being
12437      # built for inclusion in a dll (and should export symbols for example).
12438      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12439      ;;
12440    darwin* | rhapsody*)
12441      # PIC is the default on this platform
12442      # Common symbols not allowed in MH_DYLIB files
12443      lt_prog_compiler_pic_CXX='-fno-common'
12444      ;;
12445    *djgpp*)
12446      # DJGPP does not support shared libraries at all
12447      lt_prog_compiler_pic_CXX=
12448      ;;
12449    interix3*)
12450      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12451      # Instead, we relocate shared libraries at runtime.
12452      ;;
12453    sysv4*MP*)
12454      if test -d /usr/nec; then
12455	lt_prog_compiler_pic_CXX=-Kconform_pic
12456      fi
12457      ;;
12458    hpux*)
12459      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12460      # not for PA HP-UX.
12461      case $host_cpu in
12462      hppa*64*|ia64*)
12463	;;
12464      *)
12465	lt_prog_compiler_pic_CXX='-fPIC'
12466	;;
12467      esac
12468      ;;
12469    *)
12470      lt_prog_compiler_pic_CXX='-fPIC'
12471      ;;
12472    esac
12473  else
12474    case $host_os in
12475      aix4* | aix5*)
12476	# All AIX code is PIC.
12477	if test "$host_cpu" = ia64; then
12478	  # AIX 5 now supports IA64 processor
12479	  lt_prog_compiler_static_CXX='-Bstatic'
12480	else
12481	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12482	fi
12483	;;
12484      chorus*)
12485	case $cc_basename in
12486	cxch68*)
12487	  # Green Hills C++ Compiler
12488	  # _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"
12489	  ;;
12490	esac
12491	;;
12492       darwin*)
12493         # PIC is the default on this platform
12494         # Common symbols not allowed in MH_DYLIB files
12495         case $cc_basename in
12496           xlc*)
12497           lt_prog_compiler_pic_CXX='-qnocommon'
12498           lt_prog_compiler_wl_CXX='-Wl,'
12499           ;;
12500         esac
12501       ;;
12502      dgux*)
12503	case $cc_basename in
12504	  ec++*)
12505	    lt_prog_compiler_pic_CXX='-KPIC'
12506	    ;;
12507	  ghcx*)
12508	    # Green Hills C++ Compiler
12509	    lt_prog_compiler_pic_CXX='-pic'
12510	    ;;
12511	  *)
12512	    ;;
12513	esac
12514	;;
12515      freebsd* | dragonfly*)
12516	# FreeBSD uses GNU C++
12517	;;
12518      hpux9* | hpux10* | hpux11*)
12519	case $cc_basename in
12520	  CC*)
12521	    lt_prog_compiler_wl_CXX='-Wl,'
12522	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12523	    if test "$host_cpu" != ia64; then
12524	      lt_prog_compiler_pic_CXX='+Z'
12525	    fi
12526	    ;;
12527	  aCC*)
12528	    lt_prog_compiler_wl_CXX='-Wl,'
12529	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12530	    case $host_cpu in
12531	    hppa*64*|ia64*)
12532	      # +Z the default
12533	      ;;
12534	    *)
12535	      lt_prog_compiler_pic_CXX='+Z'
12536	      ;;
12537	    esac
12538	    ;;
12539	  *)
12540	    ;;
12541	esac
12542	;;
12543      interix*)
12544	# This is c89, which is MS Visual C++ (no shared libs)
12545	# Anyone wants to do a port?
12546	;;
12547      irix5* | irix6* | nonstopux*)
12548	case $cc_basename in
12549	  CC*)
12550	    lt_prog_compiler_wl_CXX='-Wl,'
12551	    lt_prog_compiler_static_CXX='-non_shared'
12552	    # CC pic flag -KPIC is the default.
12553	    ;;
12554	  *)
12555	    ;;
12556	esac
12557	;;
12558      linux* | k*bsd*-gnu)
12559	case $cc_basename in
12560	  KCC*)
12561	    # KAI C++ Compiler
12562	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12563	    lt_prog_compiler_pic_CXX='-fPIC'
12564	    ;;
12565	  icpc* | ecpc*)
12566	    # Intel C++
12567	    lt_prog_compiler_wl_CXX='-Wl,'
12568	    lt_prog_compiler_pic_CXX='-KPIC'
12569	    lt_prog_compiler_static_CXX='-static'
12570	    ;;
12571	  pgCC*)
12572	    # Portland Group C++ compiler.
12573	    lt_prog_compiler_wl_CXX='-Wl,'
12574	    lt_prog_compiler_pic_CXX='-fpic'
12575	    lt_prog_compiler_static_CXX='-Bstatic'
12576	    ;;
12577	  cxx*)
12578	    # Compaq C++
12579	    # Make sure the PIC flag is empty.  It appears that all Alpha
12580	    # Linux and Compaq Tru64 Unix objects are PIC.
12581	    lt_prog_compiler_pic_CXX=
12582	    lt_prog_compiler_static_CXX='-non_shared'
12583	    ;;
12584	  *)
12585	    ;;
12586	esac
12587	;;
12588      lynxos*)
12589	;;
12590      m88k*)
12591	;;
12592      mvs*)
12593	case $cc_basename in
12594	  cxx*)
12595	    lt_prog_compiler_pic_CXX='-W c,exportall'
12596	    ;;
12597	  *)
12598	    ;;
12599	esac
12600	;;
12601      netbsd* | netbsdelf*-gnu)
12602	;;
12603      osf3* | osf4* | osf5*)
12604	case $cc_basename in
12605	  KCC*)
12606	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12607	    ;;
12608	  RCC*)
12609	    # Rational C++ 2.4.1
12610	    lt_prog_compiler_pic_CXX='-pic'
12611	    ;;
12612	  cxx*)
12613	    # Digital/Compaq C++
12614	    lt_prog_compiler_wl_CXX='-Wl,'
12615	    # Make sure the PIC flag is empty.  It appears that all Alpha
12616	    # Linux and Compaq Tru64 Unix objects are PIC.
12617	    lt_prog_compiler_pic_CXX=
12618	    lt_prog_compiler_static_CXX='-non_shared'
12619	    ;;
12620	  *)
12621	    ;;
12622	esac
12623	;;
12624      psos*)
12625	;;
12626      solaris*)
12627	case $cc_basename in
12628	  CC*)
12629	    # Sun C++ 4.2, 5.x and Centerline C++
12630	    lt_prog_compiler_pic_CXX='-KPIC'
12631	    lt_prog_compiler_static_CXX='-Bstatic'
12632	    lt_prog_compiler_wl_CXX='-Qoption ld '
12633	    ;;
12634	  gcx*)
12635	    # Green Hills C++ Compiler
12636	    lt_prog_compiler_pic_CXX='-PIC'
12637	    ;;
12638	  *)
12639	    ;;
12640	esac
12641	;;
12642      sunos4*)
12643	case $cc_basename in
12644	  CC*)
12645	    # Sun C++ 4.x
12646	    lt_prog_compiler_pic_CXX='-pic'
12647	    lt_prog_compiler_static_CXX='-Bstatic'
12648	    ;;
12649	  lcc*)
12650	    # Lucid
12651	    lt_prog_compiler_pic_CXX='-pic'
12652	    ;;
12653	  *)
12654	    ;;
12655	esac
12656	;;
12657      tandem*)
12658	case $cc_basename in
12659	  NCC*)
12660	    # NonStop-UX NCC 3.20
12661	    lt_prog_compiler_pic_CXX='-KPIC'
12662	    ;;
12663	  *)
12664	    ;;
12665	esac
12666	;;
12667      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12668	case $cc_basename in
12669	  CC*)
12670	    lt_prog_compiler_wl_CXX='-Wl,'
12671	    lt_prog_compiler_pic_CXX='-KPIC'
12672	    lt_prog_compiler_static_CXX='-Bstatic'
12673	    ;;
12674	esac
12675	;;
12676      vxworks*)
12677	;;
12678      *)
12679	lt_prog_compiler_can_build_shared_CXX=no
12680	;;
12681    esac
12682  fi
12683
12684{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12685echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12686
12687#
12688# Check to make sure the PIC flag actually works.
12689#
12690if test -n "$lt_prog_compiler_pic_CXX"; then
12691
12692{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12693echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12694if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12695  echo $ECHO_N "(cached) $ECHO_C" >&6
12696else
12697  lt_prog_compiler_pic_works_CXX=no
12698  ac_outfile=conftest.$ac_objext
12699   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12700   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12701   # Insert the option either (1) after the last *FLAGS variable, or
12702   # (2) before a word containing "conftest.", or (3) at the end.
12703   # Note that $ac_compile itself does not contain backslashes and begins
12704   # with a dollar sign (not a hyphen), so the echo should work correctly.
12705   # The option is referenced via a variable to avoid confusing sed.
12706   lt_compile=`echo "$ac_compile" | $SED \
12707   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12708   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12709   -e 's:$: $lt_compiler_flag:'`
12710   (eval echo "\"\$as_me:12710: $lt_compile\"" >&5)
12711   (eval "$lt_compile" 2>conftest.err)
12712   ac_status=$?
12713   cat conftest.err >&5
12714   echo "$as_me:12714: \$? = $ac_status" >&5
12715   if (exit $ac_status) && test -s "$ac_outfile"; then
12716     # The compiler can only warn and ignore the option if not recognized
12717     # So say no if there are warnings other than the usual output.
12718     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12719     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12720     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12721       lt_prog_compiler_pic_works_CXX=yes
12722     fi
12723   fi
12724   $rm conftest*
12725
12726fi
12727{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12728echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12729
12730if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12731    case $lt_prog_compiler_pic_CXX in
12732     "" | " "*) ;;
12733     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12734     esac
12735else
12736    lt_prog_compiler_pic_CXX=
12737     lt_prog_compiler_can_build_shared_CXX=no
12738fi
12739
12740fi
12741case $host_os in
12742  # For platforms which do not support PIC, -DPIC is meaningless:
12743  *djgpp*)
12744    lt_prog_compiler_pic_CXX=
12745    ;;
12746  *)
12747    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12748    ;;
12749esac
12750
12751#
12752# Check to make sure the static flag actually works.
12753#
12754wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12755{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12756echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12757if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12758  echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
12760  lt_prog_compiler_static_works_CXX=no
12761   save_LDFLAGS="$LDFLAGS"
12762   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12763   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12764   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12765     # The linker can only warn and ignore the option if not recognized
12766     # So say no if there are warnings
12767     if test -s conftest.err; then
12768       # Append any errors to the config.log.
12769       cat conftest.err 1>&5
12770       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12771       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12772       if diff conftest.exp conftest.er2 >/dev/null; then
12773         lt_prog_compiler_static_works_CXX=yes
12774       fi
12775     else
12776       lt_prog_compiler_static_works_CXX=yes
12777     fi
12778   fi
12779   $rm conftest*
12780   LDFLAGS="$save_LDFLAGS"
12781
12782fi
12783{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12784echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12785
12786if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12787    :
12788else
12789    lt_prog_compiler_static_CXX=
12790fi
12791
12792
12793{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12794echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12795if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12796  echo $ECHO_N "(cached) $ECHO_C" >&6
12797else
12798  lt_cv_prog_compiler_c_o_CXX=no
12799   $rm -r conftest 2>/dev/null
12800   mkdir conftest
12801   cd conftest
12802   mkdir out
12803   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12804
12805   lt_compiler_flag="-o out/conftest2.$ac_objext"
12806   # Insert the option either (1) after the last *FLAGS variable, or
12807   # (2) before a word containing "conftest.", or (3) at the end.
12808   # Note that $ac_compile itself does not contain backslashes and begins
12809   # with a dollar sign (not a hyphen), so the echo should work correctly.
12810   lt_compile=`echo "$ac_compile" | $SED \
12811   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12812   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12813   -e 's:$: $lt_compiler_flag:'`
12814   (eval echo "\"\$as_me:12814: $lt_compile\"" >&5)
12815   (eval "$lt_compile" 2>out/conftest.err)
12816   ac_status=$?
12817   cat out/conftest.err >&5
12818   echo "$as_me:12818: \$? = $ac_status" >&5
12819   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12820   then
12821     # The compiler can only warn and ignore the option if not recognized
12822     # So say no if there are warnings
12823     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12824     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12825     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12826       lt_cv_prog_compiler_c_o_CXX=yes
12827     fi
12828   fi
12829   chmod u+w . 2>&5
12830   $rm conftest*
12831   # SGI C++ compiler will create directory out/ii_files/ for
12832   # template instantiation
12833   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12834   $rm out/* && rmdir out
12835   cd ..
12836   rmdir conftest
12837   $rm conftest*
12838
12839fi
12840{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12841echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12842
12843
12844hard_links="nottested"
12845if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12846  # do not overwrite the value of need_locks provided by the user
12847  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12848echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12849  hard_links=yes
12850  $rm conftest*
12851  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12852  touch conftest.a
12853  ln conftest.a conftest.b 2>&5 || hard_links=no
12854  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12855  { echo "$as_me:$LINENO: result: $hard_links" >&5
12856echo "${ECHO_T}$hard_links" >&6; }
12857  if test "$hard_links" = no; then
12858    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12859echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12860    need_locks=warn
12861  fi
12862else
12863  need_locks=no
12864fi
12865
12866{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12867echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12868
12869  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12870  case $host_os in
12871  aix4* | aix5*)
12872    # If we're using GNU nm, then we don't want the "-C" option.
12873    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12874    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12875      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'
12876    else
12877      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'
12878    fi
12879    ;;
12880  pw32*)
12881    export_symbols_cmds_CXX="$ltdll_cmds"
12882  ;;
12883  cygwin* | mingw*)
12884    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'
12885  ;;
12886  linux* | k*bsd*-gnu)
12887    link_all_deplibs_CXX=no
12888  ;;
12889  *)
12890    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12891  ;;
12892  esac
12893
12894{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12895echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12896test "$ld_shlibs_CXX" = no && can_build_shared=no
12897
12898#
12899# Do we need to explicitly link libc?
12900#
12901case "x$archive_cmds_need_lc_CXX" in
12902x|xyes)
12903  # Assume -lc should be added
12904  archive_cmds_need_lc_CXX=yes
12905
12906  if test "$enable_shared" = yes && test "$GCC" = yes; then
12907    case $archive_cmds_CXX in
12908    *'~'*)
12909      # FIXME: we may have to deal with multi-command sequences.
12910      ;;
12911    '$CC '*)
12912      # Test whether the compiler implicitly links with -lc since on some
12913      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12914      # to ld, don't add -lc before -lgcc.
12915      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12916echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12917      $rm conftest*
12918      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12919
12920      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12921  (eval $ac_compile) 2>&5
12922  ac_status=$?
12923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924  (exit $ac_status); } 2>conftest.err; then
12925        soname=conftest
12926        lib=conftest
12927        libobjs=conftest.$ac_objext
12928        deplibs=
12929        wl=$lt_prog_compiler_wl_CXX
12930	pic_flag=$lt_prog_compiler_pic_CXX
12931        compiler_flags=-v
12932        linker_flags=-v
12933        verstring=
12934        output_objdir=.
12935        libname=conftest
12936        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12937        allow_undefined_flag_CXX=
12938        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12939  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12940  ac_status=$?
12941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942  (exit $ac_status); }
12943        then
12944	  archive_cmds_need_lc_CXX=no
12945        else
12946	  archive_cmds_need_lc_CXX=yes
12947        fi
12948        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12949      else
12950        cat conftest.err 1>&5
12951      fi
12952      $rm conftest*
12953      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12954echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12955      ;;
12956    esac
12957  fi
12958  ;;
12959esac
12960
12961{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12962echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12963library_names_spec=
12964libname_spec='lib$name'
12965soname_spec=
12966shrext_cmds=".so"
12967postinstall_cmds=
12968postuninstall_cmds=
12969finish_cmds=
12970finish_eval=
12971shlibpath_var=
12972shlibpath_overrides_runpath=unknown
12973version_type=none
12974dynamic_linker="$host_os ld.so"
12975sys_lib_dlsearch_path_spec="/lib /usr/lib"
12976if test "$GCC" = yes; then
12977  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12978  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12979    # if the path contains ";" then we assume it to be the separator
12980    # otherwise default to the standard path separator (i.e. ":") - it is
12981    # assumed that no part of a normal pathname contains ";" but that should
12982    # okay in the real world where ";" in dirpaths is itself problematic.
12983    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12984  else
12985    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12986  fi
12987else
12988  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12989fi
12990need_lib_prefix=unknown
12991hardcode_into_libs=no
12992
12993# when you set need_version to no, make sure it does not cause -set_version
12994# flags to be left without arguments
12995need_version=unknown
12996
12997case $host_os in
12998aix3*)
12999  version_type=linux
13000  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13001  shlibpath_var=LIBPATH
13002
13003  # AIX 3 has no versioning support, so we append a major version to the name.
13004  soname_spec='${libname}${release}${shared_ext}$major'
13005  ;;
13006
13007aix4* | aix5*)
13008  version_type=linux
13009  need_lib_prefix=no
13010  need_version=no
13011  hardcode_into_libs=yes
13012  if test "$host_cpu" = ia64; then
13013    # AIX 5 supports IA64
13014    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13015    shlibpath_var=LD_LIBRARY_PATH
13016  else
13017    # With GCC up to 2.95.x, collect2 would create an import file
13018    # for dependence libraries.  The import file would start with
13019    # the line `#! .'.  This would cause the generated library to
13020    # depend on `.', always an invalid library.  This was fixed in
13021    # development snapshots of GCC prior to 3.0.
13022    case $host_os in
13023      aix4 | aix4.[01] | aix4.[01].*)
13024      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13025	   echo ' yes '
13026	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13027	:
13028      else
13029	can_build_shared=no
13030      fi
13031      ;;
13032    esac
13033    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13034    # soname into executable. Probably we can add versioning support to
13035    # collect2, so additional links can be useful in future.
13036    if test "$aix_use_runtimelinking" = yes; then
13037      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13038      # instead of lib<name>.a to let people know that these are not
13039      # typical AIX shared libraries.
13040      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041    else
13042      # We preserve .a as extension for shared libraries through AIX4.2
13043      # and later when we are not doing run time linking.
13044      library_names_spec='${libname}${release}.a $libname.a'
13045      soname_spec='${libname}${release}${shared_ext}$major'
13046    fi
13047    shlibpath_var=LIBPATH
13048  fi
13049  ;;
13050
13051amigaos*)
13052  library_names_spec='$libname.ixlibrary $libname.a'
13053  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13054  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'
13055  ;;
13056
13057beos*)
13058  library_names_spec='${libname}${shared_ext}'
13059  dynamic_linker="$host_os ld.so"
13060  shlibpath_var=LIBRARY_PATH
13061  ;;
13062
13063bsdi[45]*)
13064  version_type=linux
13065  need_version=no
13066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13067  soname_spec='${libname}${release}${shared_ext}$major'
13068  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13069  shlibpath_var=LD_LIBRARY_PATH
13070  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13071  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13072  # the default ld.so.conf also contains /usr/contrib/lib and
13073  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13074  # libtool to hard-code these into programs
13075  ;;
13076
13077cygwin* | mingw* | pw32*)
13078  version_type=windows
13079  shrext_cmds=".dll"
13080  need_version=no
13081  need_lib_prefix=no
13082
13083  case $GCC,$host_os in
13084  yes,cygwin* | yes,mingw* | yes,pw32*)
13085    library_names_spec='$libname.dll.a'
13086    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13087    postinstall_cmds='base_file=`basename \${file}`~
13088      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13089      dldir=$destdir/`dirname \$dlpath`~
13090      test -d \$dldir || mkdir -p \$dldir~
13091      $install_prog $dir/$dlname \$dldir/$dlname~
13092      chmod a+x \$dldir/$dlname'
13093    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13094      dlpath=$dir/\$dldll~
13095       $rm \$dlpath'
13096    shlibpath_overrides_runpath=yes
13097
13098    case $host_os in
13099    cygwin*)
13100      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13101      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13102      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13103      ;;
13104    mingw*)
13105      # MinGW DLLs use traditional 'lib' prefix
13106      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13107      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13108      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13109        # It is most probably a Windows format PATH printed by
13110        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13111        # path with ; separators, and with drive letters. We can handle the
13112        # drive letters (cygwin fileutils understands them), so leave them,
13113        # especially as we might pass files found there to a mingw objdump,
13114        # which wouldn't understand a cygwinified path. Ahh.
13115        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13116      else
13117        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13118      fi
13119      ;;
13120    pw32*)
13121      # pw32 DLLs use 'pw' prefix rather than 'lib'
13122      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13123      ;;
13124    esac
13125    ;;
13126
13127  *)
13128    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13129    ;;
13130  esac
13131  dynamic_linker='Win32 ld.exe'
13132  # FIXME: first we should search . and the directory the executable is in
13133  shlibpath_var=PATH
13134  ;;
13135
13136darwin* | rhapsody*)
13137  dynamic_linker="$host_os dyld"
13138  version_type=darwin
13139  need_lib_prefix=no
13140  need_version=no
13141  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13142  soname_spec='${libname}${release}${major}$shared_ext'
13143  shlibpath_overrides_runpath=yes
13144  shlibpath_var=DYLD_LIBRARY_PATH
13145  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13146  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13147  if test "$GCC" = yes; then
13148    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13149  else
13150    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13151  fi
13152  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13153  ;;
13154
13155dgux*)
13156  version_type=linux
13157  need_lib_prefix=no
13158  need_version=no
13159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13160  soname_spec='${libname}${release}${shared_ext}$major'
13161  shlibpath_var=LD_LIBRARY_PATH
13162  ;;
13163
13164freebsd1*)
13165  dynamic_linker=no
13166  ;;
13167
13168freebsd* | dragonfly*)
13169  # DragonFly does not have aout.  When/if they implement a new
13170  # versioning mechanism, adjust this.
13171  if test -x /usr/bin/objformat; then
13172    objformat=`/usr/bin/objformat`
13173  else
13174    case $host_os in
13175    freebsd[123]*) objformat=aout ;;
13176    *) objformat=elf ;;
13177    esac
13178  fi
13179  version_type=freebsd-$objformat
13180  case $version_type in
13181    freebsd-elf*)
13182      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13183      need_version=no
13184      need_lib_prefix=no
13185      ;;
13186    freebsd-*)
13187      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13188      need_version=yes
13189      ;;
13190  esac
13191  shlibpath_var=LD_LIBRARY_PATH
13192  case $host_os in
13193  freebsd2*)
13194    shlibpath_overrides_runpath=yes
13195    ;;
13196  freebsd3.[01]* | freebsdelf3.[01]*)
13197    shlibpath_overrides_runpath=yes
13198    hardcode_into_libs=yes
13199    ;;
13200  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13201  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13202    shlibpath_overrides_runpath=no
13203    hardcode_into_libs=yes
13204    ;;
13205  freebsd*) # from 4.6 on
13206    shlibpath_overrides_runpath=yes
13207    hardcode_into_libs=yes
13208    ;;
13209  esac
13210  ;;
13211
13212gnu*)
13213  version_type=linux
13214  need_lib_prefix=no
13215  need_version=no
13216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13217  soname_spec='${libname}${release}${shared_ext}$major'
13218  shlibpath_var=LD_LIBRARY_PATH
13219  hardcode_into_libs=yes
13220  ;;
13221
13222hpux9* | hpux10* | hpux11*)
13223  # Give a soname corresponding to the major version so that dld.sl refuses to
13224  # link against other versions.
13225  version_type=sunos
13226  need_lib_prefix=no
13227  need_version=no
13228  case $host_cpu in
13229  ia64*)
13230    shrext_cmds='.so'
13231    hardcode_into_libs=yes
13232    dynamic_linker="$host_os dld.so"
13233    shlibpath_var=LD_LIBRARY_PATH
13234    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13235    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13236    soname_spec='${libname}${release}${shared_ext}$major'
13237    if test "X$HPUX_IA64_MODE" = X32; then
13238      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13239    else
13240      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13241    fi
13242    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13243    ;;
13244   hppa*64*)
13245     shrext_cmds='.sl'
13246     hardcode_into_libs=yes
13247     dynamic_linker="$host_os dld.sl"
13248     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13249     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13251     soname_spec='${libname}${release}${shared_ext}$major'
13252     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13253     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13254     ;;
13255   *)
13256    shrext_cmds='.sl'
13257    dynamic_linker="$host_os dld.sl"
13258    shlibpath_var=SHLIB_PATH
13259    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13260    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261    soname_spec='${libname}${release}${shared_ext}$major'
13262    ;;
13263  esac
13264  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13265  postinstall_cmds='chmod 555 $lib'
13266  ;;
13267
13268interix3*)
13269  version_type=linux
13270  need_lib_prefix=no
13271  need_version=no
13272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13273  soname_spec='${libname}${release}${shared_ext}$major'
13274  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13275  shlibpath_var=LD_LIBRARY_PATH
13276  shlibpath_overrides_runpath=no
13277  hardcode_into_libs=yes
13278  ;;
13279
13280irix5* | irix6* | nonstopux*)
13281  case $host_os in
13282    nonstopux*) version_type=nonstopux ;;
13283    *)
13284	if test "$lt_cv_prog_gnu_ld" = yes; then
13285		version_type=linux
13286	else
13287		version_type=irix
13288	fi ;;
13289  esac
13290  need_lib_prefix=no
13291  need_version=no
13292  soname_spec='${libname}${release}${shared_ext}$major'
13293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13294  case $host_os in
13295  irix5* | nonstopux*)
13296    libsuff= shlibsuff=
13297    ;;
13298  *)
13299    case $LD in # libtool.m4 will add one of these switches to LD
13300    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13301      libsuff= shlibsuff= libmagic=32-bit;;
13302    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13303      libsuff=32 shlibsuff=N32 libmagic=N32;;
13304    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13305      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13306    *) libsuff= shlibsuff= libmagic=never-match;;
13307    esac
13308    ;;
13309  esac
13310  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13311  shlibpath_overrides_runpath=no
13312  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13313  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13314  hardcode_into_libs=yes
13315  ;;
13316
13317# No shared lib support for Linux oldld, aout, or coff.
13318linux*oldld* | linux*aout* | linux*coff*)
13319  dynamic_linker=no
13320  ;;
13321
13322# This must be Linux ELF.
13323linux* | k*bsd*-gnu)
13324  version_type=linux
13325  need_lib_prefix=no
13326  need_version=no
13327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328  soname_spec='${libname}${release}${shared_ext}$major'
13329  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13330  shlibpath_var=LD_LIBRARY_PATH
13331  shlibpath_overrides_runpath=no
13332  # This implies no fast_install, which is unacceptable.
13333  # Some rework will be needed to allow for fast_install
13334  # before this can be enabled.
13335  hardcode_into_libs=yes
13336
13337  # Append ld.so.conf contents to the search path
13338  if test -f /etc/ld.so.conf; then
13339    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13340    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13341  fi
13342
13343  # We used to test for /lib/ld.so.1 and disable shared libraries on
13344  # powerpc, because MkLinux only supported shared libraries with the
13345  # GNU dynamic linker.  Since this was broken with cross compilers,
13346  # most powerpc-linux boxes support dynamic linking these days and
13347  # people can always --disable-shared, the test was removed, and we
13348  # assume the GNU/Linux dynamic linker is in use.
13349  dynamic_linker='GNU/Linux ld.so'
13350  ;;
13351
13352netbsdelf*-gnu)
13353  version_type=linux
13354  need_lib_prefix=no
13355  need_version=no
13356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13357  soname_spec='${libname}${release}${shared_ext}$major'
13358  shlibpath_var=LD_LIBRARY_PATH
13359  shlibpath_overrides_runpath=no
13360  hardcode_into_libs=yes
13361  dynamic_linker='NetBSD ld.elf_so'
13362  ;;
13363
13364netbsd*)
13365  version_type=sunos
13366  need_lib_prefix=no
13367  need_version=no
13368  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13370    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13371    dynamic_linker='NetBSD (a.out) ld.so'
13372  else
13373    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13374    soname_spec='${libname}${release}${shared_ext}$major'
13375    dynamic_linker='NetBSD ld.elf_so'
13376  fi
13377  shlibpath_var=LD_LIBRARY_PATH
13378  shlibpath_overrides_runpath=yes
13379  hardcode_into_libs=yes
13380  ;;
13381
13382newsos6)
13383  version_type=linux
13384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13385  shlibpath_var=LD_LIBRARY_PATH
13386  shlibpath_overrides_runpath=yes
13387  ;;
13388
13389nto-qnx*)
13390  version_type=linux
13391  need_lib_prefix=no
13392  need_version=no
13393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13394  soname_spec='${libname}${release}${shared_ext}$major'
13395  shlibpath_var=LD_LIBRARY_PATH
13396  shlibpath_overrides_runpath=yes
13397  ;;
13398
13399openbsd*)
13400  version_type=sunos
13401  sys_lib_dlsearch_path_spec="/usr/lib"
13402  need_lib_prefix=no
13403  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13404  case $host_os in
13405    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13406    *)                         need_version=no  ;;
13407  esac
13408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13409  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13410  shlibpath_var=LD_LIBRARY_PATH
13411  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13412    case $host_os in
13413      openbsd2.[89] | openbsd2.[89].*)
13414	shlibpath_overrides_runpath=no
13415	;;
13416      *)
13417	shlibpath_overrides_runpath=yes
13418	;;
13419      esac
13420  else
13421    shlibpath_overrides_runpath=yes
13422  fi
13423  ;;
13424
13425os2*)
13426  libname_spec='$name'
13427  shrext_cmds=".dll"
13428  need_lib_prefix=no
13429  library_names_spec='$libname${shared_ext} $libname.a'
13430  dynamic_linker='OS/2 ld.exe'
13431  shlibpath_var=LIBPATH
13432  ;;
13433
13434osf3* | osf4* | osf5*)
13435  version_type=osf
13436  need_lib_prefix=no
13437  need_version=no
13438  soname_spec='${libname}${release}${shared_ext}$major'
13439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13440  shlibpath_var=LD_LIBRARY_PATH
13441  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13442  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13443  ;;
13444
13445solaris*)
13446  version_type=linux
13447  need_lib_prefix=no
13448  need_version=no
13449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450  soname_spec='${libname}${release}${shared_ext}$major'
13451  shlibpath_var=LD_LIBRARY_PATH
13452  shlibpath_overrides_runpath=yes
13453  hardcode_into_libs=yes
13454  # ldd complains unless libraries are executable
13455  postinstall_cmds='chmod +x $lib'
13456  ;;
13457
13458sunos4*)
13459  version_type=sunos
13460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13461  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13462  shlibpath_var=LD_LIBRARY_PATH
13463  shlibpath_overrides_runpath=yes
13464  if test "$with_gnu_ld" = yes; then
13465    need_lib_prefix=no
13466  fi
13467  need_version=yes
13468  ;;
13469
13470sysv4 | sysv4.3*)
13471  version_type=linux
13472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473  soname_spec='${libname}${release}${shared_ext}$major'
13474  shlibpath_var=LD_LIBRARY_PATH
13475  case $host_vendor in
13476    sni)
13477      shlibpath_overrides_runpath=no
13478      need_lib_prefix=no
13479      export_dynamic_flag_spec='${wl}-Blargedynsym'
13480      runpath_var=LD_RUN_PATH
13481      ;;
13482    siemens)
13483      need_lib_prefix=no
13484      ;;
13485    motorola)
13486      need_lib_prefix=no
13487      need_version=no
13488      shlibpath_overrides_runpath=no
13489      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13490      ;;
13491  esac
13492  ;;
13493
13494sysv4*MP*)
13495  if test -d /usr/nec ;then
13496    version_type=linux
13497    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13498    soname_spec='$libname${shared_ext}.$major'
13499    shlibpath_var=LD_LIBRARY_PATH
13500  fi
13501  ;;
13502
13503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13504  version_type=freebsd-elf
13505  need_lib_prefix=no
13506  need_version=no
13507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13508  soname_spec='${libname}${release}${shared_ext}$major'
13509  shlibpath_var=LD_LIBRARY_PATH
13510  hardcode_into_libs=yes
13511  if test "$with_gnu_ld" = yes; then
13512    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13513    shlibpath_overrides_runpath=no
13514  else
13515    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13516    shlibpath_overrides_runpath=yes
13517    case $host_os in
13518      sco3.2v5*)
13519        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13520	;;
13521    esac
13522  fi
13523  sys_lib_dlsearch_path_spec='/usr/lib'
13524  ;;
13525
13526uts4*)
13527  version_type=linux
13528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13529  soname_spec='${libname}${release}${shared_ext}$major'
13530  shlibpath_var=LD_LIBRARY_PATH
13531  ;;
13532
13533*)
13534  dynamic_linker=no
13535  ;;
13536esac
13537{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13538echo "${ECHO_T}$dynamic_linker" >&6; }
13539test "$dynamic_linker" = no && can_build_shared=no
13540
13541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13542if test "$GCC" = yes; then
13543  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13544fi
13545
13546{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13547echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13548hardcode_action_CXX=
13549if test -n "$hardcode_libdir_flag_spec_CXX" || \
13550   test -n "$runpath_var_CXX" || \
13551   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13552
13553  # We can hardcode non-existant directories.
13554  if test "$hardcode_direct_CXX" != no &&
13555     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13556     # have to relink, otherwise we might link with an installed library
13557     # when we should be linking with a yet-to-be-installed one
13558     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13559     test "$hardcode_minus_L_CXX" != no; then
13560    # Linking always hardcodes the temporary library directory.
13561    hardcode_action_CXX=relink
13562  else
13563    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13564    hardcode_action_CXX=immediate
13565  fi
13566else
13567  # We cannot hardcode anything, or else we can only hardcode existing
13568  # directories.
13569  hardcode_action_CXX=unsupported
13570fi
13571{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13572echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13573
13574if test "$hardcode_action_CXX" = relink; then
13575  # Fast installation is not supported
13576  enable_fast_install=no
13577elif test "$shlibpath_overrides_runpath" = yes ||
13578     test "$enable_shared" = no; then
13579  # Fast installation is not necessary
13580  enable_fast_install=needless
13581fi
13582
13583
13584# The else clause should only fire when bootstrapping the
13585# libtool distribution, otherwise you forgot to ship ltmain.sh
13586# with your package, and you will get complaints that there are
13587# no rules to generate ltmain.sh.
13588if test -f "$ltmain"; then
13589  # See if we are running on zsh, and set the options which allow our commands through
13590  # without removal of \ escapes.
13591  if test -n "${ZSH_VERSION+set}" ; then
13592    setopt NO_GLOB_SUBST
13593  fi
13594  # Now quote all the things that may contain metacharacters while being
13595  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13596  # variables and quote the copies for generation of the libtool script.
13597  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13598    SED SHELL STRIP \
13599    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13600    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13601    deplibs_check_method reload_flag reload_cmds need_locks \
13602    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13603    lt_cv_sys_global_symbol_to_c_name_address \
13604    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13605    old_postinstall_cmds old_postuninstall_cmds \
13606    compiler_CXX \
13607    CC_CXX \
13608    LD_CXX \
13609    lt_prog_compiler_wl_CXX \
13610    lt_prog_compiler_pic_CXX \
13611    lt_prog_compiler_static_CXX \
13612    lt_prog_compiler_no_builtin_flag_CXX \
13613    export_dynamic_flag_spec_CXX \
13614    thread_safe_flag_spec_CXX \
13615    whole_archive_flag_spec_CXX \
13616    enable_shared_with_static_runtimes_CXX \
13617    old_archive_cmds_CXX \
13618    old_archive_from_new_cmds_CXX \
13619    predep_objects_CXX \
13620    postdep_objects_CXX \
13621    predeps_CXX \
13622    postdeps_CXX \
13623    compiler_lib_search_path_CXX \
13624    archive_cmds_CXX \
13625    archive_expsym_cmds_CXX \
13626    postinstall_cmds_CXX \
13627    postuninstall_cmds_CXX \
13628    old_archive_from_expsyms_cmds_CXX \
13629    allow_undefined_flag_CXX \
13630    no_undefined_flag_CXX \
13631    export_symbols_cmds_CXX \
13632    hardcode_libdir_flag_spec_CXX \
13633    hardcode_libdir_flag_spec_ld_CXX \
13634    hardcode_libdir_separator_CXX \
13635    hardcode_automatic_CXX \
13636    module_cmds_CXX \
13637    module_expsym_cmds_CXX \
13638    lt_cv_prog_compiler_c_o_CXX \
13639    exclude_expsyms_CXX \
13640    include_expsyms_CXX; do
13641
13642    case $var in
13643    old_archive_cmds_CXX | \
13644    old_archive_from_new_cmds_CXX | \
13645    archive_cmds_CXX | \
13646    archive_expsym_cmds_CXX | \
13647    module_cmds_CXX | \
13648    module_expsym_cmds_CXX | \
13649    old_archive_from_expsyms_cmds_CXX | \
13650    export_symbols_cmds_CXX | \
13651    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13652    postinstall_cmds | postuninstall_cmds | \
13653    old_postinstall_cmds | old_postuninstall_cmds | \
13654    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13655      # Double-quote double-evaled strings.
13656      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13657      ;;
13658    *)
13659      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13660      ;;
13661    esac
13662  done
13663
13664  case $lt_echo in
13665  *'\$0 --fallback-echo"')
13666    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13667    ;;
13668  esac
13669
13670cfgfile="$ofile"
13671
13672  cat <<__EOF__ >> "$cfgfile"
13673# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13674
13675# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13676
13677# Shell to use when invoking shell scripts.
13678SHELL=$lt_SHELL
13679
13680# Whether or not to build shared libraries.
13681build_libtool_libs=$enable_shared
13682
13683# Whether or not to build static libraries.
13684build_old_libs=$enable_static
13685
13686# Whether or not to add -lc for building shared libraries.
13687build_libtool_need_lc=$archive_cmds_need_lc_CXX
13688
13689# Whether or not to disallow shared libs when runtime libs are static
13690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13691
13692# Whether or not to optimize for fast installation.
13693fast_install=$enable_fast_install
13694
13695# The host system.
13696host_alias=$host_alias
13697host=$host
13698host_os=$host_os
13699
13700# The build system.
13701build_alias=$build_alias
13702build=$build
13703build_os=$build_os
13704
13705# An echo program that does not interpret backslashes.
13706echo=$lt_echo
13707
13708# The archiver.
13709AR=$lt_AR
13710AR_FLAGS=$lt_AR_FLAGS
13711
13712# A C compiler.
13713LTCC=$lt_LTCC
13714
13715# LTCC compiler flags.
13716LTCFLAGS=$lt_LTCFLAGS
13717
13718# A language-specific compiler.
13719CC=$lt_compiler_CXX
13720
13721# Is the compiler the GNU C compiler?
13722with_gcc=$GCC_CXX
13723
13724# An ERE matcher.
13725EGREP=$lt_EGREP
13726
13727# The linker used to build libraries.
13728LD=$lt_LD_CXX
13729
13730# Whether we need hard or soft links.
13731LN_S=$lt_LN_S
13732
13733# A BSD-compatible nm program.
13734NM=$lt_NM
13735
13736# A symbol stripping program
13737STRIP=$lt_STRIP
13738
13739# Used to examine libraries when file_magic_cmd begins "file"
13740MAGIC_CMD=$MAGIC_CMD
13741
13742# Used on cygwin: DLL creation program.
13743DLLTOOL="$DLLTOOL"
13744
13745# Used on cygwin: object dumper.
13746OBJDUMP="$OBJDUMP"
13747
13748# Used on cygwin: assembler.
13749AS="$AS"
13750
13751# The name of the directory that contains temporary libtool files.
13752objdir=$objdir
13753
13754# How to create reloadable object files.
13755reload_flag=$lt_reload_flag
13756reload_cmds=$lt_reload_cmds
13757
13758# How to pass a linker flag through the compiler.
13759wl=$lt_lt_prog_compiler_wl_CXX
13760
13761# Object file suffix (normally "o").
13762objext="$ac_objext"
13763
13764# Old archive suffix (normally "a").
13765libext="$libext"
13766
13767# Shared library suffix (normally ".so").
13768shrext_cmds='$shrext_cmds'
13769
13770# Executable file suffix (normally "").
13771exeext="$exeext"
13772
13773# Additional compiler flags for building library objects.
13774pic_flag=$lt_lt_prog_compiler_pic_CXX
13775pic_mode=$pic_mode
13776
13777# What is the maximum length of a command?
13778max_cmd_len=$lt_cv_sys_max_cmd_len
13779
13780# Does compiler simultaneously support -c and -o options?
13781compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13782
13783# Must we lock files when doing compilation?
13784need_locks=$lt_need_locks
13785
13786# Do we need the lib prefix for modules?
13787need_lib_prefix=$need_lib_prefix
13788
13789# Do we need a version for libraries?
13790need_version=$need_version
13791
13792# Whether dlopen is supported.
13793dlopen_support=$enable_dlopen
13794
13795# Whether dlopen of programs is supported.
13796dlopen_self=$enable_dlopen_self
13797
13798# Whether dlopen of statically linked programs is supported.
13799dlopen_self_static=$enable_dlopen_self_static
13800
13801# Compiler flag to prevent dynamic linking.
13802link_static_flag=$lt_lt_prog_compiler_static_CXX
13803
13804# Compiler flag to turn off builtin functions.
13805no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13806
13807# Compiler flag to allow reflexive dlopens.
13808export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13809
13810# Compiler flag to generate shared objects directly from archives.
13811whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13812
13813# Compiler flag to generate thread-safe objects.
13814thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13815
13816# Library versioning type.
13817version_type=$version_type
13818
13819# Format of library name prefix.
13820libname_spec=$lt_libname_spec
13821
13822# List of archive names.  First name is the real one, the rest are links.
13823# The last name is the one that the linker finds with -lNAME.
13824library_names_spec=$lt_library_names_spec
13825
13826# The coded name of the library, if different from the real name.
13827soname_spec=$lt_soname_spec
13828
13829# Commands used to build and install an old-style archive.
13830RANLIB=$lt_RANLIB
13831old_archive_cmds=$lt_old_archive_cmds_CXX
13832old_postinstall_cmds=$lt_old_postinstall_cmds
13833old_postuninstall_cmds=$lt_old_postuninstall_cmds
13834
13835# Create an old-style archive from a shared archive.
13836old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13837
13838# Create a temporary old-style archive to link instead of a shared archive.
13839old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13840
13841# Commands used to build and install a shared archive.
13842archive_cmds=$lt_archive_cmds_CXX
13843archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13844postinstall_cmds=$lt_postinstall_cmds
13845postuninstall_cmds=$lt_postuninstall_cmds
13846
13847# Commands used to build a loadable module (assumed same as above if empty)
13848module_cmds=$lt_module_cmds_CXX
13849module_expsym_cmds=$lt_module_expsym_cmds_CXX
13850
13851# Commands to strip libraries.
13852old_striplib=$lt_old_striplib
13853striplib=$lt_striplib
13854
13855# Dependencies to place before the objects being linked to create a
13856# shared library.
13857predep_objects=$lt_predep_objects_CXX
13858
13859# Dependencies to place after the objects being linked to create a
13860# shared library.
13861postdep_objects=$lt_postdep_objects_CXX
13862
13863# Dependencies to place before the objects being linked to create a
13864# shared library.
13865predeps=$lt_predeps_CXX
13866
13867# Dependencies to place after the objects being linked to create a
13868# shared library.
13869postdeps=$lt_postdeps_CXX
13870
13871# The library search path used internally by the compiler when linking
13872# a shared library.
13873compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13874
13875# Method to check whether dependent libraries are shared objects.
13876deplibs_check_method=$lt_deplibs_check_method
13877
13878# Command to use when deplibs_check_method == file_magic.
13879file_magic_cmd=$lt_file_magic_cmd
13880
13881# Flag that allows shared libraries with undefined symbols to be built.
13882allow_undefined_flag=$lt_allow_undefined_flag_CXX
13883
13884# Flag that forces no undefined symbols.
13885no_undefined_flag=$lt_no_undefined_flag_CXX
13886
13887# Commands used to finish a libtool library installation in a directory.
13888finish_cmds=$lt_finish_cmds
13889
13890# Same as above, but a single script fragment to be evaled but not shown.
13891finish_eval=$lt_finish_eval
13892
13893# Take the output of nm and produce a listing of raw symbols and C names.
13894global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13895
13896# Transform the output of nm in a proper C declaration
13897global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13898
13899# Transform the output of nm in a C name address pair
13900global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13901
13902# This is the shared library runtime path variable.
13903runpath_var=$runpath_var
13904
13905# This is the shared library path variable.
13906shlibpath_var=$shlibpath_var
13907
13908# Is shlibpath searched before the hard-coded library search path?
13909shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13910
13911# How to hardcode a shared library path into an executable.
13912hardcode_action=$hardcode_action_CXX
13913
13914# Whether we should hardcode library paths into libraries.
13915hardcode_into_libs=$hardcode_into_libs
13916
13917# Flag to hardcode \$libdir into a binary during linking.
13918# This must work even if \$libdir does not exist.
13919hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13920
13921# If ld is used when linking, flag to hardcode \$libdir into
13922# a binary during linking. This must work even if \$libdir does
13923# not exist.
13924hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13925
13926# Whether we need a single -rpath flag with a separated argument.
13927hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13928
13929# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13930# resulting binary.
13931hardcode_direct=$hardcode_direct_CXX
13932
13933# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13934# resulting binary.
13935hardcode_minus_L=$hardcode_minus_L_CXX
13936
13937# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13938# the resulting binary.
13939hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13940
13941# Set to yes if building a shared library automatically hardcodes DIR into the library
13942# and all subsequent libraries and executables linked against it.
13943hardcode_automatic=$hardcode_automatic_CXX
13944
13945# Variables whose values should be saved in libtool wrapper scripts and
13946# restored at relink time.
13947variables_saved_for_relink="$variables_saved_for_relink"
13948
13949# Whether libtool must link a program against all its dependency libraries.
13950link_all_deplibs=$link_all_deplibs_CXX
13951
13952# Compile-time system search path for libraries
13953sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13954
13955# Run-time system search path for libraries
13956sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13957
13958# Fix the shell variable \$srcfile for the compiler.
13959fix_srcfile_path="$fix_srcfile_path_CXX"
13960
13961# Set to yes if exported symbols are required.
13962always_export_symbols=$always_export_symbols_CXX
13963
13964# The commands to list exported symbols.
13965export_symbols_cmds=$lt_export_symbols_cmds_CXX
13966
13967# The commands to extract the exported symbol list from a shared archive.
13968extract_expsyms_cmds=$lt_extract_expsyms_cmds
13969
13970# Symbols that should not be listed in the preloaded symbols.
13971exclude_expsyms=$lt_exclude_expsyms_CXX
13972
13973# Symbols that must always be exported.
13974include_expsyms=$lt_include_expsyms_CXX
13975
13976# ### END LIBTOOL TAG CONFIG: $tagname
13977
13978__EOF__
13979
13980
13981else
13982  # If there is no Makefile yet, we rely on a make rule to execute
13983  # `config.status --recheck' to rerun these tests and create the
13984  # libtool script then.
13985  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13986  if test -f "$ltmain_in"; then
13987    test -f Makefile && make "$ltmain"
13988  fi
13989fi
13990
13991
13992ac_ext=c
13993ac_cpp='$CPP $CPPFLAGS'
13994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13996ac_compiler_gnu=$ac_cv_c_compiler_gnu
13997
13998CC=$lt_save_CC
13999LDCXX=$LD
14000LD=$lt_save_LD
14001GCC=$lt_save_GCC
14002with_gnu_ldcxx=$with_gnu_ld
14003with_gnu_ld=$lt_save_with_gnu_ld
14004lt_cv_path_LDCXX=$lt_cv_path_LD
14005lt_cv_path_LD=$lt_save_path_LD
14006lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14007lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14008
14009	else
14010	  tagname=""
14011	fi
14012	;;
14013
14014      F77)
14015	if test -n "$F77" && test "X$F77" != "Xno"; then
14016
14017ac_ext=f
14018ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14019ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14020ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14021
14022
14023archive_cmds_need_lc_F77=no
14024allow_undefined_flag_F77=
14025always_export_symbols_F77=no
14026archive_expsym_cmds_F77=
14027export_dynamic_flag_spec_F77=
14028hardcode_direct_F77=no
14029hardcode_libdir_flag_spec_F77=
14030hardcode_libdir_flag_spec_ld_F77=
14031hardcode_libdir_separator_F77=
14032hardcode_minus_L_F77=no
14033hardcode_automatic_F77=no
14034module_cmds_F77=
14035module_expsym_cmds_F77=
14036link_all_deplibs_F77=unknown
14037old_archive_cmds_F77=$old_archive_cmds
14038no_undefined_flag_F77=
14039whole_archive_flag_spec_F77=
14040enable_shared_with_static_runtimes_F77=no
14041
14042# Source file extension for f77 test sources.
14043ac_ext=f
14044
14045# Object file extension for compiled f77 test sources.
14046objext=o
14047objext_F77=$objext
14048
14049# Code to be used in simple compile tests
14050lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14051
14052# Code to be used in simple link tests
14053lt_simple_link_test_code="      program t\n      end\n"
14054
14055# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14056
14057# If no C compiler was specified, use CC.
14058LTCC=${LTCC-"$CC"}
14059
14060# If no C compiler flags were specified, use CFLAGS.
14061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14062
14063# Allow CC to be a program name with arguments.
14064compiler=$CC
14065
14066
14067# save warnings/boilerplate of simple test code
14068ac_outfile=conftest.$ac_objext
14069printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14071_lt_compiler_boilerplate=`cat conftest.err`
14072$rm conftest*
14073
14074ac_outfile=conftest.$ac_objext
14075printf "$lt_simple_link_test_code" >conftest.$ac_ext
14076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14077_lt_linker_boilerplate=`cat conftest.err`
14078$rm conftest*
14079
14080
14081# Allow CC to be a program name with arguments.
14082lt_save_CC="$CC"
14083CC=${F77-"f77"}
14084compiler=$CC
14085compiler_F77=$CC
14086for cc_temp in $compiler""; do
14087  case $cc_temp in
14088    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14089    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14090    \-*) ;;
14091    *) break;;
14092  esac
14093done
14094cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14095
14096
14097{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14098echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14099{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14100echo "${ECHO_T}$can_build_shared" >&6; }
14101
14102{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14103echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14104test "$can_build_shared" = "no" && enable_shared=no
14105
14106# On AIX, shared libraries and static libraries use the same namespace, and
14107# are all built from PIC.
14108case $host_os in
14109aix3*)
14110  test "$enable_shared" = yes && enable_static=no
14111  if test -n "$RANLIB"; then
14112    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14113    postinstall_cmds='$RANLIB $lib'
14114  fi
14115  ;;
14116aix4* | aix5*)
14117  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14118    test "$enable_shared" = yes && enable_static=no
14119  fi
14120  ;;
14121esac
14122{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14123echo "${ECHO_T}$enable_shared" >&6; }
14124
14125{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14126echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14127# Make sure either enable_shared or enable_static is yes.
14128test "$enable_shared" = yes || enable_static=yes
14129{ echo "$as_me:$LINENO: result: $enable_static" >&5
14130echo "${ECHO_T}$enable_static" >&6; }
14131
14132GCC_F77="$G77"
14133LD_F77="$LD"
14134
14135lt_prog_compiler_wl_F77=
14136lt_prog_compiler_pic_F77=
14137lt_prog_compiler_static_F77=
14138
14139{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14140echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14141
14142  if test "$GCC" = yes; then
14143    lt_prog_compiler_wl_F77='-Wl,'
14144    lt_prog_compiler_static_F77='-static'
14145
14146    case $host_os in
14147      aix*)
14148      # All AIX code is PIC.
14149      if test "$host_cpu" = ia64; then
14150	# AIX 5 now supports IA64 processor
14151	lt_prog_compiler_static_F77='-Bstatic'
14152      fi
14153      ;;
14154
14155    amigaos*)
14156      # FIXME: we need at least 68020 code to build shared libraries, but
14157      # adding the `-m68020' flag to GCC prevents building anything better,
14158      # like `-m68040'.
14159      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14160      ;;
14161
14162    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14163      # PIC is the default for these OSes.
14164      ;;
14165
14166    mingw* | pw32* | os2*)
14167      # This hack is so that the source file can tell whether it is being
14168      # built for inclusion in a dll (and should export symbols for example).
14169      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14170      ;;
14171
14172    darwin* | rhapsody*)
14173      # PIC is the default on this platform
14174      # Common symbols not allowed in MH_DYLIB files
14175      lt_prog_compiler_pic_F77='-fno-common'
14176      ;;
14177
14178    interix3*)
14179      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14180      # Instead, we relocate shared libraries at runtime.
14181      ;;
14182
14183    msdosdjgpp*)
14184      # Just because we use GCC doesn't mean we suddenly get shared libraries
14185      # on systems that don't support them.
14186      lt_prog_compiler_can_build_shared_F77=no
14187      enable_shared=no
14188      ;;
14189
14190    sysv4*MP*)
14191      if test -d /usr/nec; then
14192	lt_prog_compiler_pic_F77=-Kconform_pic
14193      fi
14194      ;;
14195
14196    hpux*)
14197      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14198      # not for PA HP-UX.
14199      case $host_cpu in
14200      hppa*64*|ia64*)
14201	# +Z the default
14202	;;
14203      *)
14204	lt_prog_compiler_pic_F77='-fPIC'
14205	;;
14206      esac
14207      ;;
14208
14209    *)
14210      lt_prog_compiler_pic_F77='-fPIC'
14211      ;;
14212    esac
14213  else
14214    # PORTME Check for flag to pass linker flags through the system compiler.
14215    case $host_os in
14216    aix*)
14217      lt_prog_compiler_wl_F77='-Wl,'
14218      if test "$host_cpu" = ia64; then
14219	# AIX 5 now supports IA64 processor
14220	lt_prog_compiler_static_F77='-Bstatic'
14221      else
14222	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14223      fi
14224      ;;
14225      darwin*)
14226        # PIC is the default on this platform
14227        # Common symbols not allowed in MH_DYLIB files
14228       case $cc_basename in
14229         xlc*)
14230         lt_prog_compiler_pic_F77='-qnocommon'
14231         lt_prog_compiler_wl_F77='-Wl,'
14232         ;;
14233       esac
14234       ;;
14235
14236    mingw* | pw32* | os2*)
14237      # This hack is so that the source file can tell whether it is being
14238      # built for inclusion in a dll (and should export symbols for example).
14239      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14240      ;;
14241
14242    hpux9* | hpux10* | hpux11*)
14243      lt_prog_compiler_wl_F77='-Wl,'
14244      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14245      # not for PA HP-UX.
14246      case $host_cpu in
14247      hppa*64*|ia64*)
14248	# +Z the default
14249	;;
14250      *)
14251	lt_prog_compiler_pic_F77='+Z'
14252	;;
14253      esac
14254      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14255      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14256      ;;
14257
14258    irix5* | irix6* | nonstopux*)
14259      lt_prog_compiler_wl_F77='-Wl,'
14260      # PIC (with -KPIC) is the default.
14261      lt_prog_compiler_static_F77='-non_shared'
14262      ;;
14263
14264    newsos6)
14265      lt_prog_compiler_pic_F77='-KPIC'
14266      lt_prog_compiler_static_F77='-Bstatic'
14267      ;;
14268
14269    linux* | k*bsd*-gnu)
14270      case $cc_basename in
14271      icc* | ecc*)
14272	lt_prog_compiler_wl_F77='-Wl,'
14273	lt_prog_compiler_pic_F77='-KPIC'
14274	lt_prog_compiler_static_F77='-static'
14275        ;;
14276      pgcc* | pgf77* | pgf90* | pgf95*)
14277        # Portland Group compilers (*not* the Pentium gcc compiler,
14278	# which looks to be a dead project)
14279	lt_prog_compiler_wl_F77='-Wl,'
14280	lt_prog_compiler_pic_F77='-fpic'
14281	lt_prog_compiler_static_F77='-Bstatic'
14282        ;;
14283      ccc*)
14284        lt_prog_compiler_wl_F77='-Wl,'
14285        # All Alpha code is PIC.
14286        lt_prog_compiler_static_F77='-non_shared'
14287        ;;
14288      esac
14289      ;;
14290
14291    osf3* | osf4* | osf5*)
14292      lt_prog_compiler_wl_F77='-Wl,'
14293      # All OSF/1 code is PIC.
14294      lt_prog_compiler_static_F77='-non_shared'
14295      ;;
14296
14297    solaris*)
14298      lt_prog_compiler_pic_F77='-KPIC'
14299      lt_prog_compiler_static_F77='-Bstatic'
14300      case $cc_basename in
14301      f77* | f90* | f95*)
14302	lt_prog_compiler_wl_F77='-Qoption ld ';;
14303      *)
14304	lt_prog_compiler_wl_F77='-Wl,';;
14305      esac
14306      ;;
14307
14308    sunos4*)
14309      lt_prog_compiler_wl_F77='-Qoption ld '
14310      lt_prog_compiler_pic_F77='-PIC'
14311      lt_prog_compiler_static_F77='-Bstatic'
14312      ;;
14313
14314    sysv4 | sysv4.2uw2* | sysv4.3*)
14315      lt_prog_compiler_wl_F77='-Wl,'
14316      lt_prog_compiler_pic_F77='-KPIC'
14317      lt_prog_compiler_static_F77='-Bstatic'
14318      ;;
14319
14320    sysv4*MP*)
14321      if test -d /usr/nec ;then
14322	lt_prog_compiler_pic_F77='-Kconform_pic'
14323	lt_prog_compiler_static_F77='-Bstatic'
14324      fi
14325      ;;
14326
14327    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14328      lt_prog_compiler_wl_F77='-Wl,'
14329      lt_prog_compiler_pic_F77='-KPIC'
14330      lt_prog_compiler_static_F77='-Bstatic'
14331      ;;
14332
14333    unicos*)
14334      lt_prog_compiler_wl_F77='-Wl,'
14335      lt_prog_compiler_can_build_shared_F77=no
14336      ;;
14337
14338    uts4*)
14339      lt_prog_compiler_pic_F77='-pic'
14340      lt_prog_compiler_static_F77='-Bstatic'
14341      ;;
14342
14343    *)
14344      lt_prog_compiler_can_build_shared_F77=no
14345      ;;
14346    esac
14347  fi
14348
14349{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14350echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14351
14352#
14353# Check to make sure the PIC flag actually works.
14354#
14355if test -n "$lt_prog_compiler_pic_F77"; then
14356
14357{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14358echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14359if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14360  echo $ECHO_N "(cached) $ECHO_C" >&6
14361else
14362  lt_prog_compiler_pic_works_F77=no
14363  ac_outfile=conftest.$ac_objext
14364   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14365   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14366   # Insert the option either (1) after the last *FLAGS variable, or
14367   # (2) before a word containing "conftest.", or (3) at the end.
14368   # Note that $ac_compile itself does not contain backslashes and begins
14369   # with a dollar sign (not a hyphen), so the echo should work correctly.
14370   # The option is referenced via a variable to avoid confusing sed.
14371   lt_compile=`echo "$ac_compile" | $SED \
14372   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14373   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14374   -e 's:$: $lt_compiler_flag:'`
14375   (eval echo "\"\$as_me:14375: $lt_compile\"" >&5)
14376   (eval "$lt_compile" 2>conftest.err)
14377   ac_status=$?
14378   cat conftest.err >&5
14379   echo "$as_me:14379: \$? = $ac_status" >&5
14380   if (exit $ac_status) && test -s "$ac_outfile"; then
14381     # The compiler can only warn and ignore the option if not recognized
14382     # So say no if there are warnings other than the usual output.
14383     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14384     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14385     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14386       lt_prog_compiler_pic_works_F77=yes
14387     fi
14388   fi
14389   $rm conftest*
14390
14391fi
14392{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14393echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14394
14395if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14396    case $lt_prog_compiler_pic_F77 in
14397     "" | " "*) ;;
14398     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14399     esac
14400else
14401    lt_prog_compiler_pic_F77=
14402     lt_prog_compiler_can_build_shared_F77=no
14403fi
14404
14405fi
14406case $host_os in
14407  # For platforms which do not support PIC, -DPIC is meaningless:
14408  *djgpp*)
14409    lt_prog_compiler_pic_F77=
14410    ;;
14411  *)
14412    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14413    ;;
14414esac
14415
14416#
14417# Check to make sure the static flag actually works.
14418#
14419wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14420{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14421echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14422if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14423  echo $ECHO_N "(cached) $ECHO_C" >&6
14424else
14425  lt_prog_compiler_static_works_F77=no
14426   save_LDFLAGS="$LDFLAGS"
14427   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14428   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14429   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14430     # The linker can only warn and ignore the option if not recognized
14431     # So say no if there are warnings
14432     if test -s conftest.err; then
14433       # Append any errors to the config.log.
14434       cat conftest.err 1>&5
14435       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14436       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14437       if diff conftest.exp conftest.er2 >/dev/null; then
14438         lt_prog_compiler_static_works_F77=yes
14439       fi
14440     else
14441       lt_prog_compiler_static_works_F77=yes
14442     fi
14443   fi
14444   $rm conftest*
14445   LDFLAGS="$save_LDFLAGS"
14446
14447fi
14448{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14449echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14450
14451if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14452    :
14453else
14454    lt_prog_compiler_static_F77=
14455fi
14456
14457
14458{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14459echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14460if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14461  echo $ECHO_N "(cached) $ECHO_C" >&6
14462else
14463  lt_cv_prog_compiler_c_o_F77=no
14464   $rm -r conftest 2>/dev/null
14465   mkdir conftest
14466   cd conftest
14467   mkdir out
14468   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14469
14470   lt_compiler_flag="-o out/conftest2.$ac_objext"
14471   # Insert the option either (1) after the last *FLAGS variable, or
14472   # (2) before a word containing "conftest.", or (3) at the end.
14473   # Note that $ac_compile itself does not contain backslashes and begins
14474   # with a dollar sign (not a hyphen), so the echo should work correctly.
14475   lt_compile=`echo "$ac_compile" | $SED \
14476   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14477   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14478   -e 's:$: $lt_compiler_flag:'`
14479   (eval echo "\"\$as_me:14479: $lt_compile\"" >&5)
14480   (eval "$lt_compile" 2>out/conftest.err)
14481   ac_status=$?
14482   cat out/conftest.err >&5
14483   echo "$as_me:14483: \$? = $ac_status" >&5
14484   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14485   then
14486     # The compiler can only warn and ignore the option if not recognized
14487     # So say no if there are warnings
14488     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14489     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14490     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14491       lt_cv_prog_compiler_c_o_F77=yes
14492     fi
14493   fi
14494   chmod u+w . 2>&5
14495   $rm conftest*
14496   # SGI C++ compiler will create directory out/ii_files/ for
14497   # template instantiation
14498   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14499   $rm out/* && rmdir out
14500   cd ..
14501   rmdir conftest
14502   $rm conftest*
14503
14504fi
14505{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14506echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14507
14508
14509hard_links="nottested"
14510if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14511  # do not overwrite the value of need_locks provided by the user
14512  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14513echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14514  hard_links=yes
14515  $rm conftest*
14516  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14517  touch conftest.a
14518  ln conftest.a conftest.b 2>&5 || hard_links=no
14519  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14520  { echo "$as_me:$LINENO: result: $hard_links" >&5
14521echo "${ECHO_T}$hard_links" >&6; }
14522  if test "$hard_links" = no; then
14523    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14524echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14525    need_locks=warn
14526  fi
14527else
14528  need_locks=no
14529fi
14530
14531{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14532echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14533
14534  runpath_var=
14535  allow_undefined_flag_F77=
14536  enable_shared_with_static_runtimes_F77=no
14537  archive_cmds_F77=
14538  archive_expsym_cmds_F77=
14539  old_archive_From_new_cmds_F77=
14540  old_archive_from_expsyms_cmds_F77=
14541  export_dynamic_flag_spec_F77=
14542  whole_archive_flag_spec_F77=
14543  thread_safe_flag_spec_F77=
14544  hardcode_libdir_flag_spec_F77=
14545  hardcode_libdir_flag_spec_ld_F77=
14546  hardcode_libdir_separator_F77=
14547  hardcode_direct_F77=no
14548  hardcode_minus_L_F77=no
14549  hardcode_shlibpath_var_F77=unsupported
14550  link_all_deplibs_F77=unknown
14551  hardcode_automatic_F77=no
14552  module_cmds_F77=
14553  module_expsym_cmds_F77=
14554  always_export_symbols_F77=no
14555  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14556  # include_expsyms should be a list of space-separated symbols to be *always*
14557  # included in the symbol list
14558  include_expsyms_F77=
14559  # exclude_expsyms can be an extended regexp of symbols to exclude
14560  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14561  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14562  # as well as any symbol that contains `d'.
14563  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14564  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14565  # platforms (ab)use it in PIC code, but their linkers get confused if
14566  # the symbol is explicitly referenced.  Since portable code cannot
14567  # rely on this symbol name, it's probably fine to never include it in
14568  # preloaded symbol tables.
14569  extract_expsyms_cmds=
14570  # Just being paranoid about ensuring that cc_basename is set.
14571  for cc_temp in $compiler""; do
14572  case $cc_temp in
14573    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14574    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14575    \-*) ;;
14576    *) break;;
14577  esac
14578done
14579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14580
14581  case $host_os in
14582  cygwin* | mingw* | pw32*)
14583    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14584    # When not using gcc, we currently assume that we are using
14585    # Microsoft Visual C++.
14586    if test "$GCC" != yes; then
14587      with_gnu_ld=no
14588    fi
14589    ;;
14590  interix*)
14591    # we just hope/assume this is gcc and not c89 (= MSVC++)
14592    with_gnu_ld=yes
14593    ;;
14594  openbsd*)
14595    with_gnu_ld=no
14596    ;;
14597  esac
14598
14599  ld_shlibs_F77=yes
14600  if test "$with_gnu_ld" = yes; then
14601    # If archive_cmds runs LD, not CC, wlarc should be empty
14602    wlarc='${wl}'
14603
14604    # Set some defaults for GNU ld with shared library support. These
14605    # are reset later if shared libraries are not supported. Putting them
14606    # here allows them to be overridden if necessary.
14607    runpath_var=LD_RUN_PATH
14608    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14609    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14610    # ancient GNU ld didn't support --whole-archive et. al.
14611    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14612	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14613      else
14614  	whole_archive_flag_spec_F77=
14615    fi
14616    supports_anon_versioning=no
14617    case `$LD -v 2>/dev/null` in
14618      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14619      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14620      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14621      *\ 2.11.*) ;; # other 2.11 versions
14622      *) supports_anon_versioning=yes ;;
14623    esac
14624
14625    # See if GNU ld supports shared libraries.
14626    case $host_os in
14627    aix3* | aix4* | aix5*)
14628      # On AIX/PPC, the GNU linker is very broken
14629      if test "$host_cpu" != ia64; then
14630	ld_shlibs_F77=no
14631	cat <<EOF 1>&2
14632
14633*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14634*** to be unable to reliably create shared libraries on AIX.
14635*** Therefore, libtool is disabling shared libraries support.  If you
14636*** really care for shared libraries, you may want to modify your PATH
14637*** so that a non-GNU linker is found, and then restart.
14638
14639EOF
14640      fi
14641      ;;
14642
14643    amigaos*)
14644      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)'
14645      hardcode_libdir_flag_spec_F77='-L$libdir'
14646      hardcode_minus_L_F77=yes
14647
14648      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14649      # that the semantics of dynamic libraries on AmigaOS, at least up
14650      # to version 4, is to share data among multiple programs linked
14651      # with the same dynamic library.  Since this doesn't match the
14652      # behavior of shared libraries on other platforms, we can't use
14653      # them.
14654      ld_shlibs_F77=no
14655      ;;
14656
14657    beos*)
14658      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14659	allow_undefined_flag_F77=unsupported
14660	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14661	# support --undefined.  This deserves some investigation.  FIXME
14662	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14663      else
14664	ld_shlibs_F77=no
14665      fi
14666      ;;
14667
14668    cygwin* | mingw* | pw32*)
14669      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14670      # as there is no search path for DLLs.
14671      hardcode_libdir_flag_spec_F77='-L$libdir'
14672      allow_undefined_flag_F77=unsupported
14673      always_export_symbols_F77=no
14674      enable_shared_with_static_runtimes_F77=yes
14675      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14676
14677      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14678        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14679	# If the export-symbols file already is a .def file (1st line
14680	# is EXPORTS), use it as is; otherwise, prepend...
14681	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14682	  cp $export_symbols $output_objdir/$soname.def;
14683	else
14684	  echo EXPORTS > $output_objdir/$soname.def;
14685	  cat $export_symbols >> $output_objdir/$soname.def;
14686	fi~
14687	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14688      else
14689	ld_shlibs_F77=no
14690      fi
14691      ;;
14692
14693    interix3*)
14694      hardcode_direct_F77=no
14695      hardcode_shlibpath_var_F77=no
14696      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14697      export_dynamic_flag_spec_F77='${wl}-E'
14698      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14699      # Instead, shared libraries are loaded at an image base (0x10000000 by
14700      # default) and relocated if they conflict, which is a slow very memory
14701      # consuming and fragmenting process.  To avoid this, we pick a random,
14702      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14703      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14704      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'
14705      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'
14706      ;;
14707
14708    linux* | k*bsd*-gnu)
14709      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14710	tmp_addflag=
14711	case $cc_basename,$host_cpu in
14712	pgcc*)				# Portland Group C compiler
14713	  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'
14714	  tmp_addflag=' $pic_flag'
14715	  ;;
14716	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14717	  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'
14718	  tmp_addflag=' $pic_flag -Mnomain' ;;
14719	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14720	  tmp_addflag=' -i_dynamic' ;;
14721	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14722	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14723	ifc* | ifort*)			# Intel Fortran compiler
14724	  tmp_addflag=' -nofor_main' ;;
14725	esac
14726	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14727
14728	if test $supports_anon_versioning = yes; then
14729	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14730  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14731  $echo "local: *; };" >> $output_objdir/$libname.ver~
14732	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14733	fi
14734	link_all_deplibs_F77=no
14735      else
14736	ld_shlibs_F77=no
14737      fi
14738      ;;
14739
14740    netbsd* | netbsdelf*-gnu)
14741      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14742	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14743	wlarc=
14744      else
14745	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14746	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14747      fi
14748      ;;
14749
14750    solaris*)
14751      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14752	ld_shlibs_F77=no
14753	cat <<EOF 1>&2
14754
14755*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14756*** create shared libraries on Solaris systems.  Therefore, libtool
14757*** is disabling shared libraries support.  We urge you to upgrade GNU
14758*** binutils to release 2.9.1 or newer.  Another option is to modify
14759*** your PATH or compiler configuration so that the native linker is
14760*** used, and then restart.
14761
14762EOF
14763      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14764	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14765	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14766      else
14767	ld_shlibs_F77=no
14768      fi
14769      ;;
14770
14771    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14772      case `$LD -v 2>&1` in
14773        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14774	ld_shlibs_F77=no
14775	cat <<_LT_EOF 1>&2
14776
14777*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14778*** reliably create shared libraries on SCO systems.  Therefore, libtool
14779*** is disabling shared libraries support.  We urge you to upgrade GNU
14780*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14781*** your PATH or compiler configuration so that the native linker is
14782*** used, and then restart.
14783
14784_LT_EOF
14785	;;
14786	*)
14787	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14788	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14789	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14790	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14791	  else
14792	    ld_shlibs_F77=no
14793	  fi
14794	;;
14795      esac
14796      ;;
14797
14798    sunos4*)
14799      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14800      wlarc=
14801      hardcode_direct_F77=yes
14802      hardcode_shlibpath_var_F77=no
14803      ;;
14804
14805    *)
14806      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14807	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14808	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14809      else
14810	ld_shlibs_F77=no
14811      fi
14812      ;;
14813    esac
14814
14815    if test "$ld_shlibs_F77" = no; then
14816      runpath_var=
14817      hardcode_libdir_flag_spec_F77=
14818      export_dynamic_flag_spec_F77=
14819      whole_archive_flag_spec_F77=
14820    fi
14821  else
14822    # PORTME fill in a description of your system's linker (not GNU ld)
14823    case $host_os in
14824    aix3*)
14825      allow_undefined_flag_F77=unsupported
14826      always_export_symbols_F77=yes
14827      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'
14828      # Note: this linker hardcodes the directories in LIBPATH if there
14829      # are no directories specified by -L.
14830      hardcode_minus_L_F77=yes
14831      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14832	# Neither direct hardcoding nor static linking is supported with a
14833	# broken collect2.
14834	hardcode_direct_F77=unsupported
14835      fi
14836      ;;
14837
14838    aix4* | aix5*)
14839      if test "$host_cpu" = ia64; then
14840	# On IA64, the linker does run time linking by default, so we don't
14841	# have to do anything special.
14842	aix_use_runtimelinking=no
14843	exp_sym_flag='-Bexport'
14844	no_entry_flag=""
14845      else
14846	# If we're using GNU nm, then we don't want the "-C" option.
14847	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14848	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14849	  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'
14850	else
14851	  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'
14852	fi
14853	aix_use_runtimelinking=no
14854
14855	# Test if we are trying to use run time linking or normal
14856	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14857	# need to do runtime linking.
14858	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14859	  for ld_flag in $LDFLAGS; do
14860  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14861  	    aix_use_runtimelinking=yes
14862  	    break
14863  	  fi
14864	  done
14865	  ;;
14866	esac
14867
14868	exp_sym_flag='-bexport'
14869	no_entry_flag='-bnoentry'
14870      fi
14871
14872      # When large executables or shared objects are built, AIX ld can
14873      # have problems creating the table of contents.  If linking a library
14874      # or program results in "error TOC overflow" add -mminimal-toc to
14875      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14876      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14877
14878      archive_cmds_F77=''
14879      hardcode_direct_F77=yes
14880      hardcode_libdir_separator_F77=':'
14881      link_all_deplibs_F77=yes
14882
14883      if test "$GCC" = yes; then
14884	case $host_os in aix4.[012]|aix4.[012].*)
14885	# We only want to do this on AIX 4.2 and lower, the check
14886	# below for broken collect2 doesn't work under 4.3+
14887	  collect2name=`${CC} -print-prog-name=collect2`
14888	  if test -f "$collect2name" && \
14889  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14890	  then
14891  	  # We have reworked collect2
14892  	  hardcode_direct_F77=yes
14893	  else
14894  	  # We have old collect2
14895  	  hardcode_direct_F77=unsupported
14896  	  # It fails to find uninstalled libraries when the uninstalled
14897  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14898  	  # to unsupported forces relinking
14899  	  hardcode_minus_L_F77=yes
14900  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14901  	  hardcode_libdir_separator_F77=
14902	  fi
14903	  ;;
14904	esac
14905	shared_flag='-shared'
14906	if test "$aix_use_runtimelinking" = yes; then
14907	  shared_flag="$shared_flag "'${wl}-G'
14908	fi
14909      else
14910	# not using gcc
14911	if test "$host_cpu" = ia64; then
14912  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14913  	# chokes on -Wl,-G. The following line is correct:
14914	  shared_flag='-G'
14915	else
14916	  if test "$aix_use_runtimelinking" = yes; then
14917	    shared_flag='${wl}-G'
14918	  else
14919	    shared_flag='${wl}-bM:SRE'
14920	  fi
14921	fi
14922      fi
14923
14924      # It seems that -bexpall does not export symbols beginning with
14925      # underscore (_), so it is better to generate a list of symbols to export.
14926      always_export_symbols_F77=yes
14927      if test "$aix_use_runtimelinking" = yes; then
14928	# Warning - without using the other runtime loading flags (-brtl),
14929	# -berok will link without error, but may produce a broken library.
14930	allow_undefined_flag_F77='-berok'
14931       # Determine the default libpath from the value encoded in an empty executable.
14932       cat >conftest.$ac_ext <<_ACEOF
14933      program main
14934
14935      end
14936_ACEOF
14937rm -f conftest.$ac_objext conftest$ac_exeext
14938if { (ac_try="$ac_link"
14939case "(($ac_try" in
14940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941  *) ac_try_echo=$ac_try;;
14942esac
14943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944  (eval "$ac_link") 2>conftest.er1
14945  ac_status=$?
14946  grep -v '^ *+' conftest.er1 >conftest.err
14947  rm -f conftest.er1
14948  cat conftest.err >&5
14949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950  (exit $ac_status); } &&
14951	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14952  { (case "(($ac_try" in
14953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954  *) ac_try_echo=$ac_try;;
14955esac
14956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957  (eval "$ac_try") 2>&5
14958  ac_status=$?
14959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960  (exit $ac_status); }; } &&
14961	 { ac_try='test -s conftest$ac_exeext'
14962  { (case "(($ac_try" in
14963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964  *) ac_try_echo=$ac_try;;
14965esac
14966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967  (eval "$ac_try") 2>&5
14968  ac_status=$?
14969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970  (exit $ac_status); }; }; then
14971
14972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14973}'`
14974# Check for a 64-bit object if we didn't find anything.
14975if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14976}'`; fi
14977else
14978  echo "$as_me: failed program was:" >&5
14979sed 's/^/| /' conftest.$ac_ext >&5
14980
14981
14982fi
14983
14984rm -f core conftest.err conftest.$ac_objext \
14985      conftest$ac_exeext conftest.$ac_ext
14986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14987
14988       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14989	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"
14990       else
14991	if test "$host_cpu" = ia64; then
14992	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14993	  allow_undefined_flag_F77="-z nodefs"
14994	  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"
14995	else
14996	 # Determine the default libpath from the value encoded in an empty executable.
14997	 cat >conftest.$ac_ext <<_ACEOF
14998      program main
14999
15000      end
15001_ACEOF
15002rm -f conftest.$ac_objext conftest$ac_exeext
15003if { (ac_try="$ac_link"
15004case "(($ac_try" in
15005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006  *) ac_try_echo=$ac_try;;
15007esac
15008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009  (eval "$ac_link") 2>conftest.er1
15010  ac_status=$?
15011  grep -v '^ *+' conftest.er1 >conftest.err
15012  rm -f conftest.er1
15013  cat conftest.err >&5
15014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015  (exit $ac_status); } &&
15016	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15017  { (case "(($ac_try" in
15018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019  *) ac_try_echo=$ac_try;;
15020esac
15021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022  (eval "$ac_try") 2>&5
15023  ac_status=$?
15024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025  (exit $ac_status); }; } &&
15026	 { ac_try='test -s conftest$ac_exeext'
15027  { (case "(($ac_try" in
15028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029  *) ac_try_echo=$ac_try;;
15030esac
15031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032  (eval "$ac_try") 2>&5
15033  ac_status=$?
15034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035  (exit $ac_status); }; }; then
15036
15037aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15038}'`
15039# Check for a 64-bit object if we didn't find anything.
15040if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15041}'`; fi
15042else
15043  echo "$as_me: failed program was:" >&5
15044sed 's/^/| /' conftest.$ac_ext >&5
15045
15046
15047fi
15048
15049rm -f core conftest.err conftest.$ac_objext \
15050      conftest$ac_exeext conftest.$ac_ext
15051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15052
15053	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15054	  # Warning - without using the other run time loading flags,
15055	  # -berok will link without error, but may produce a broken library.
15056	  no_undefined_flag_F77=' ${wl}-bernotok'
15057	  allow_undefined_flag_F77=' ${wl}-berok'
15058	  # Exported symbols can be pulled into shared objects from archives
15059	  whole_archive_flag_spec_F77='$convenience'
15060	  archive_cmds_need_lc_F77=yes
15061	  # This is similar to how AIX traditionally builds its shared libraries.
15062	  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'
15063	fi
15064      fi
15065      ;;
15066
15067    amigaos*)
15068      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)'
15069      hardcode_libdir_flag_spec_F77='-L$libdir'
15070      hardcode_minus_L_F77=yes
15071      # see comment about different semantics on the GNU ld section
15072      ld_shlibs_F77=no
15073      ;;
15074
15075    bsdi[45]*)
15076      export_dynamic_flag_spec_F77=-rdynamic
15077      ;;
15078
15079    cygwin* | mingw* | pw32*)
15080      # When not using gcc, we currently assume that we are using
15081      # Microsoft Visual C++.
15082      # hardcode_libdir_flag_spec is actually meaningless, as there is
15083      # no search path for DLLs.
15084      hardcode_libdir_flag_spec_F77=' '
15085      allow_undefined_flag_F77=unsupported
15086      # Tell ltmain to make .lib files, not .a files.
15087      libext=lib
15088      # Tell ltmain to make .dll files, not .so files.
15089      shrext_cmds=".dll"
15090      # FIXME: Setting linknames here is a bad hack.
15091      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15092      # The linker will automatically build a .lib file if we build a DLL.
15093      old_archive_From_new_cmds_F77='true'
15094      # FIXME: Should let the user specify the lib program.
15095      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15096      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15097      enable_shared_with_static_runtimes_F77=yes
15098      ;;
15099
15100    darwin* | rhapsody*)
15101      case $host_os in
15102        rhapsody* | darwin1.[012])
15103         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15104         ;;
15105       *) # Darwin 1.3 on
15106         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15107           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15108         else
15109           case ${MACOSX_DEPLOYMENT_TARGET} in
15110             10.[012])
15111               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15112               ;;
15113             10.*)
15114               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15115               ;;
15116           esac
15117         fi
15118         ;;
15119      esac
15120      archive_cmds_need_lc_F77=no
15121      hardcode_direct_F77=no
15122      hardcode_automatic_F77=yes
15123      hardcode_shlibpath_var_F77=unsupported
15124      whole_archive_flag_spec_F77=''
15125      link_all_deplibs_F77=yes
15126    if test "$GCC" = yes ; then
15127    	output_verbose_link_cmd='echo'
15128        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15129      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15130      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15131      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}'
15132      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}'
15133    else
15134      case $cc_basename in
15135        xlc*)
15136         output_verbose_link_cmd='echo'
15137         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15138         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15139          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15140         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15141          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}'
15142          ;;
15143       *)
15144         ld_shlibs_F77=no
15145          ;;
15146      esac
15147    fi
15148      ;;
15149
15150    dgux*)
15151      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152      hardcode_libdir_flag_spec_F77='-L$libdir'
15153      hardcode_shlibpath_var_F77=no
15154      ;;
15155
15156    freebsd1*)
15157      ld_shlibs_F77=no
15158      ;;
15159
15160    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15161    # support.  Future versions do this automatically, but an explicit c++rt0.o
15162    # does not break anything, and helps significantly (at the cost of a little
15163    # extra space).
15164    freebsd2.2*)
15165      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15166      hardcode_libdir_flag_spec_F77='-R$libdir'
15167      hardcode_direct_F77=yes
15168      hardcode_shlibpath_var_F77=no
15169      ;;
15170
15171    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15172    freebsd2*)
15173      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15174      hardcode_direct_F77=yes
15175      hardcode_minus_L_F77=yes
15176      hardcode_shlibpath_var_F77=no
15177      ;;
15178
15179    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15180    freebsd* | dragonfly*)
15181      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15182      hardcode_libdir_flag_spec_F77='-R$libdir'
15183      hardcode_direct_F77=yes
15184      hardcode_shlibpath_var_F77=no
15185      ;;
15186
15187    hpux9*)
15188      if test "$GCC" = yes; then
15189	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'
15190      else
15191	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'
15192      fi
15193      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15194      hardcode_libdir_separator_F77=:
15195      hardcode_direct_F77=yes
15196
15197      # hardcode_minus_L: Not really in the search PATH,
15198      # but as the default location of the library.
15199      hardcode_minus_L_F77=yes
15200      export_dynamic_flag_spec_F77='${wl}-E'
15201      ;;
15202
15203    hpux10*)
15204      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15205	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15206      else
15207	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15208      fi
15209      if test "$with_gnu_ld" = no; then
15210	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15211	hardcode_libdir_separator_F77=:
15212
15213	hardcode_direct_F77=yes
15214	export_dynamic_flag_spec_F77='${wl}-E'
15215
15216	# hardcode_minus_L: Not really in the search PATH,
15217	# but as the default location of the library.
15218	hardcode_minus_L_F77=yes
15219      fi
15220      ;;
15221
15222    hpux11*)
15223      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15224	case $host_cpu in
15225	hppa*64*)
15226	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15227	  ;;
15228	ia64*)
15229	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15230	  ;;
15231	*)
15232	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15233	  ;;
15234	esac
15235      else
15236	case $host_cpu in
15237	hppa*64*)
15238	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15239	  ;;
15240	ia64*)
15241	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15242	  ;;
15243	*)
15244	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15245	  ;;
15246	esac
15247      fi
15248      if test "$with_gnu_ld" = no; then
15249	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15250	hardcode_libdir_separator_F77=:
15251
15252	case $host_cpu in
15253	hppa*64*|ia64*)
15254	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15255	  hardcode_direct_F77=no
15256	  hardcode_shlibpath_var_F77=no
15257	  ;;
15258	*)
15259	  hardcode_direct_F77=yes
15260	  export_dynamic_flag_spec_F77='${wl}-E'
15261
15262	  # hardcode_minus_L: Not really in the search PATH,
15263	  # but as the default location of the library.
15264	  hardcode_minus_L_F77=yes
15265	  ;;
15266	esac
15267      fi
15268      ;;
15269
15270    irix5* | irix6* | nonstopux*)
15271      if test "$GCC" = yes; then
15272	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'
15273      else
15274	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'
15275	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15276      fi
15277      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15278      hardcode_libdir_separator_F77=:
15279      link_all_deplibs_F77=yes
15280      ;;
15281
15282    netbsd* | netbsdelf*-gnu)
15283      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15284	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15285      else
15286	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15287      fi
15288      hardcode_libdir_flag_spec_F77='-R$libdir'
15289      hardcode_direct_F77=yes
15290      hardcode_shlibpath_var_F77=no
15291      ;;
15292
15293    newsos6)
15294      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15295      hardcode_direct_F77=yes
15296      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15297      hardcode_libdir_separator_F77=:
15298      hardcode_shlibpath_var_F77=no
15299      ;;
15300
15301    openbsd*)
15302      hardcode_direct_F77=yes
15303      hardcode_shlibpath_var_F77=no
15304      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15305	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15306	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15307	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15308	export_dynamic_flag_spec_F77='${wl}-E'
15309      else
15310       case $host_os in
15311	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15312	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15313	   hardcode_libdir_flag_spec_F77='-R$libdir'
15314	   ;;
15315	 *)
15316	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15317	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15318	   ;;
15319       esac
15320      fi
15321      ;;
15322
15323    os2*)
15324      hardcode_libdir_flag_spec_F77='-L$libdir'
15325      hardcode_minus_L_F77=yes
15326      allow_undefined_flag_F77=unsupported
15327      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'
15328      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15329      ;;
15330
15331    osf3*)
15332      if test "$GCC" = yes; then
15333	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15334	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'
15335      else
15336	allow_undefined_flag_F77=' -expect_unresolved \*'
15337	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'
15338      fi
15339      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15340      hardcode_libdir_separator_F77=:
15341      ;;
15342
15343    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15344      if test "$GCC" = yes; then
15345	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15346	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'
15347	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15348      else
15349	allow_undefined_flag_F77=' -expect_unresolved \*'
15350	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'
15351	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~
15352	$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'
15353
15354	# Both c and cxx compiler support -rpath directly
15355	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15356      fi
15357      hardcode_libdir_separator_F77=:
15358      ;;
15359
15360    solaris*)
15361      no_undefined_flag_F77=' -z text'
15362      if test "$GCC" = yes; then
15363	wlarc='${wl}'
15364	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15365	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15366	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15367      else
15368	wlarc=''
15369	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15370	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15371  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15372      fi
15373      hardcode_libdir_flag_spec_F77='-R$libdir'
15374      hardcode_shlibpath_var_F77=no
15375      case $host_os in
15376      solaris2.[0-5] | solaris2.[0-5].*) ;;
15377      *)
15378 	# The compiler driver will combine linker options so we
15379 	# cannot just pass the convience library names through
15380 	# without $wl, iff we do not link with $LD.
15381 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15382 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15383 	case $wlarc in
15384 	'')
15385 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15386 	*)
15387 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15388 	esac ;;
15389      esac
15390      link_all_deplibs_F77=yes
15391      ;;
15392
15393    sunos4*)
15394      if test "x$host_vendor" = xsequent; then
15395	# Use $CC to link under sequent, because it throws in some extra .o
15396	# files that make .init and .fini sections work.
15397	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15398      else
15399	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15400      fi
15401      hardcode_libdir_flag_spec_F77='-L$libdir'
15402      hardcode_direct_F77=yes
15403      hardcode_minus_L_F77=yes
15404      hardcode_shlibpath_var_F77=no
15405      ;;
15406
15407    sysv4)
15408      case $host_vendor in
15409	sni)
15410	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15411	  hardcode_direct_F77=yes # is this really true???
15412	;;
15413	siemens)
15414	  ## LD is ld it makes a PLAMLIB
15415	  ## CC just makes a GrossModule.
15416	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15417	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15418	  hardcode_direct_F77=no
15419        ;;
15420	motorola)
15421	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15422	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15423	;;
15424      esac
15425      runpath_var='LD_RUN_PATH'
15426      hardcode_shlibpath_var_F77=no
15427      ;;
15428
15429    sysv4.3*)
15430      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15431      hardcode_shlibpath_var_F77=no
15432      export_dynamic_flag_spec_F77='-Bexport'
15433      ;;
15434
15435    sysv4*MP*)
15436      if test -d /usr/nec; then
15437	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15438	hardcode_shlibpath_var_F77=no
15439	runpath_var=LD_RUN_PATH
15440	hardcode_runpath_var=yes
15441	ld_shlibs_F77=yes
15442      fi
15443      ;;
15444
15445    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15446      no_undefined_flag_F77='${wl}-z,text'
15447      archive_cmds_need_lc_F77=no
15448      hardcode_shlibpath_var_F77=no
15449      runpath_var='LD_RUN_PATH'
15450
15451      if test "$GCC" = yes; then
15452	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15453	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15454      else
15455	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15456	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15457      fi
15458      ;;
15459
15460    sysv5* | sco3.2v5* | sco5v6*)
15461      # Note: We can NOT use -z defs as we might desire, because we do not
15462      # link with -lc, and that would cause any symbols used from libc to
15463      # always be unresolved, which means just about no library would
15464      # ever link correctly.  If we're not using GNU ld we use -z text
15465      # though, which does catch some bad symbols but isn't as heavy-handed
15466      # as -z defs.
15467      no_undefined_flag_F77='${wl}-z,text'
15468      allow_undefined_flag_F77='${wl}-z,nodefs'
15469      archive_cmds_need_lc_F77=no
15470      hardcode_shlibpath_var_F77=no
15471      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15472      hardcode_libdir_separator_F77=':'
15473      link_all_deplibs_F77=yes
15474      export_dynamic_flag_spec_F77='${wl}-Bexport'
15475      runpath_var='LD_RUN_PATH'
15476
15477      if test "$GCC" = yes; then
15478	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15479	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15480      else
15481	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15482	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15483      fi
15484      ;;
15485
15486    uts4*)
15487      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15488      hardcode_libdir_flag_spec_F77='-L$libdir'
15489      hardcode_shlibpath_var_F77=no
15490      ;;
15491
15492    *)
15493      ld_shlibs_F77=no
15494      ;;
15495    esac
15496  fi
15497
15498{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15499echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15500test "$ld_shlibs_F77" = no && can_build_shared=no
15501
15502#
15503# Do we need to explicitly link libc?
15504#
15505case "x$archive_cmds_need_lc_F77" in
15506x|xyes)
15507  # Assume -lc should be added
15508  archive_cmds_need_lc_F77=yes
15509
15510  if test "$enable_shared" = yes && test "$GCC" = yes; then
15511    case $archive_cmds_F77 in
15512    *'~'*)
15513      # FIXME: we may have to deal with multi-command sequences.
15514      ;;
15515    '$CC '*)
15516      # Test whether the compiler implicitly links with -lc since on some
15517      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15518      # to ld, don't add -lc before -lgcc.
15519      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15520echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15521      $rm conftest*
15522      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15523
15524      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15525  (eval $ac_compile) 2>&5
15526  ac_status=$?
15527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528  (exit $ac_status); } 2>conftest.err; then
15529        soname=conftest
15530        lib=conftest
15531        libobjs=conftest.$ac_objext
15532        deplibs=
15533        wl=$lt_prog_compiler_wl_F77
15534	pic_flag=$lt_prog_compiler_pic_F77
15535        compiler_flags=-v
15536        linker_flags=-v
15537        verstring=
15538        output_objdir=.
15539        libname=conftest
15540        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15541        allow_undefined_flag_F77=
15542        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15543  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15544  ac_status=$?
15545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546  (exit $ac_status); }
15547        then
15548	  archive_cmds_need_lc_F77=no
15549        else
15550	  archive_cmds_need_lc_F77=yes
15551        fi
15552        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15553      else
15554        cat conftest.err 1>&5
15555      fi
15556      $rm conftest*
15557      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15558echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15559      ;;
15560    esac
15561  fi
15562  ;;
15563esac
15564
15565{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15566echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15567library_names_spec=
15568libname_spec='lib$name'
15569soname_spec=
15570shrext_cmds=".so"
15571postinstall_cmds=
15572postuninstall_cmds=
15573finish_cmds=
15574finish_eval=
15575shlibpath_var=
15576shlibpath_overrides_runpath=unknown
15577version_type=none
15578dynamic_linker="$host_os ld.so"
15579sys_lib_dlsearch_path_spec="/lib /usr/lib"
15580if test "$GCC" = yes; then
15581  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15582  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15583    # if the path contains ";" then we assume it to be the separator
15584    # otherwise default to the standard path separator (i.e. ":") - it is
15585    # assumed that no part of a normal pathname contains ";" but that should
15586    # okay in the real world where ";" in dirpaths is itself problematic.
15587    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15588  else
15589    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15590  fi
15591else
15592  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15593fi
15594need_lib_prefix=unknown
15595hardcode_into_libs=no
15596
15597# when you set need_version to no, make sure it does not cause -set_version
15598# flags to be left without arguments
15599need_version=unknown
15600
15601case $host_os in
15602aix3*)
15603  version_type=linux
15604  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15605  shlibpath_var=LIBPATH
15606
15607  # AIX 3 has no versioning support, so we append a major version to the name.
15608  soname_spec='${libname}${release}${shared_ext}$major'
15609  ;;
15610
15611aix4* | aix5*)
15612  version_type=linux
15613  need_lib_prefix=no
15614  need_version=no
15615  hardcode_into_libs=yes
15616  if test "$host_cpu" = ia64; then
15617    # AIX 5 supports IA64
15618    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15619    shlibpath_var=LD_LIBRARY_PATH
15620  else
15621    # With GCC up to 2.95.x, collect2 would create an import file
15622    # for dependence libraries.  The import file would start with
15623    # the line `#! .'.  This would cause the generated library to
15624    # depend on `.', always an invalid library.  This was fixed in
15625    # development snapshots of GCC prior to 3.0.
15626    case $host_os in
15627      aix4 | aix4.[01] | aix4.[01].*)
15628      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15629	   echo ' yes '
15630	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15631	:
15632      else
15633	can_build_shared=no
15634      fi
15635      ;;
15636    esac
15637    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15638    # soname into executable. Probably we can add versioning support to
15639    # collect2, so additional links can be useful in future.
15640    if test "$aix_use_runtimelinking" = yes; then
15641      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15642      # instead of lib<name>.a to let people know that these are not
15643      # typical AIX shared libraries.
15644      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645    else
15646      # We preserve .a as extension for shared libraries through AIX4.2
15647      # and later when we are not doing run time linking.
15648      library_names_spec='${libname}${release}.a $libname.a'
15649      soname_spec='${libname}${release}${shared_ext}$major'
15650    fi
15651    shlibpath_var=LIBPATH
15652  fi
15653  ;;
15654
15655amigaos*)
15656  library_names_spec='$libname.ixlibrary $libname.a'
15657  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15658  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'
15659  ;;
15660
15661beos*)
15662  library_names_spec='${libname}${shared_ext}'
15663  dynamic_linker="$host_os ld.so"
15664  shlibpath_var=LIBRARY_PATH
15665  ;;
15666
15667bsdi[45]*)
15668  version_type=linux
15669  need_version=no
15670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671  soname_spec='${libname}${release}${shared_ext}$major'
15672  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15673  shlibpath_var=LD_LIBRARY_PATH
15674  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15675  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15676  # the default ld.so.conf also contains /usr/contrib/lib and
15677  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15678  # libtool to hard-code these into programs
15679  ;;
15680
15681cygwin* | mingw* | pw32*)
15682  version_type=windows
15683  shrext_cmds=".dll"
15684  need_version=no
15685  need_lib_prefix=no
15686
15687  case $GCC,$host_os in
15688  yes,cygwin* | yes,mingw* | yes,pw32*)
15689    library_names_spec='$libname.dll.a'
15690    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15691    postinstall_cmds='base_file=`basename \${file}`~
15692      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15693      dldir=$destdir/`dirname \$dlpath`~
15694      test -d \$dldir || mkdir -p \$dldir~
15695      $install_prog $dir/$dlname \$dldir/$dlname~
15696      chmod a+x \$dldir/$dlname'
15697    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15698      dlpath=$dir/\$dldll~
15699       $rm \$dlpath'
15700    shlibpath_overrides_runpath=yes
15701
15702    case $host_os in
15703    cygwin*)
15704      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15705      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15706      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15707      ;;
15708    mingw*)
15709      # MinGW DLLs use traditional 'lib' prefix
15710      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15711      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15712      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15713        # It is most probably a Windows format PATH printed by
15714        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15715        # path with ; separators, and with drive letters. We can handle the
15716        # drive letters (cygwin fileutils understands them), so leave them,
15717        # especially as we might pass files found there to a mingw objdump,
15718        # which wouldn't understand a cygwinified path. Ahh.
15719        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15720      else
15721        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15722      fi
15723      ;;
15724    pw32*)
15725      # pw32 DLLs use 'pw' prefix rather than 'lib'
15726      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15727      ;;
15728    esac
15729    ;;
15730
15731  *)
15732    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15733    ;;
15734  esac
15735  dynamic_linker='Win32 ld.exe'
15736  # FIXME: first we should search . and the directory the executable is in
15737  shlibpath_var=PATH
15738  ;;
15739
15740darwin* | rhapsody*)
15741  dynamic_linker="$host_os dyld"
15742  version_type=darwin
15743  need_lib_prefix=no
15744  need_version=no
15745  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15746  soname_spec='${libname}${release}${major}$shared_ext'
15747  shlibpath_overrides_runpath=yes
15748  shlibpath_var=DYLD_LIBRARY_PATH
15749  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15750  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15751  if test "$GCC" = yes; then
15752    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15753  else
15754    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15755  fi
15756  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15757  ;;
15758
15759dgux*)
15760  version_type=linux
15761  need_lib_prefix=no
15762  need_version=no
15763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15764  soname_spec='${libname}${release}${shared_ext}$major'
15765  shlibpath_var=LD_LIBRARY_PATH
15766  ;;
15767
15768freebsd1*)
15769  dynamic_linker=no
15770  ;;
15771
15772freebsd* | dragonfly*)
15773  # DragonFly does not have aout.  When/if they implement a new
15774  # versioning mechanism, adjust this.
15775  if test -x /usr/bin/objformat; then
15776    objformat=`/usr/bin/objformat`
15777  else
15778    case $host_os in
15779    freebsd[123]*) objformat=aout ;;
15780    *) objformat=elf ;;
15781    esac
15782  fi
15783  version_type=freebsd-$objformat
15784  case $version_type in
15785    freebsd-elf*)
15786      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15787      need_version=no
15788      need_lib_prefix=no
15789      ;;
15790    freebsd-*)
15791      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15792      need_version=yes
15793      ;;
15794  esac
15795  shlibpath_var=LD_LIBRARY_PATH
15796  case $host_os in
15797  freebsd2*)
15798    shlibpath_overrides_runpath=yes
15799    ;;
15800  freebsd3.[01]* | freebsdelf3.[01]*)
15801    shlibpath_overrides_runpath=yes
15802    hardcode_into_libs=yes
15803    ;;
15804  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15805  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15806    shlibpath_overrides_runpath=no
15807    hardcode_into_libs=yes
15808    ;;
15809  freebsd*) # from 4.6 on
15810    shlibpath_overrides_runpath=yes
15811    hardcode_into_libs=yes
15812    ;;
15813  esac
15814  ;;
15815
15816gnu*)
15817  version_type=linux
15818  need_lib_prefix=no
15819  need_version=no
15820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15821  soname_spec='${libname}${release}${shared_ext}$major'
15822  shlibpath_var=LD_LIBRARY_PATH
15823  hardcode_into_libs=yes
15824  ;;
15825
15826hpux9* | hpux10* | hpux11*)
15827  # Give a soname corresponding to the major version so that dld.sl refuses to
15828  # link against other versions.
15829  version_type=sunos
15830  need_lib_prefix=no
15831  need_version=no
15832  case $host_cpu in
15833  ia64*)
15834    shrext_cmds='.so'
15835    hardcode_into_libs=yes
15836    dynamic_linker="$host_os dld.so"
15837    shlibpath_var=LD_LIBRARY_PATH
15838    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15839    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15840    soname_spec='${libname}${release}${shared_ext}$major'
15841    if test "X$HPUX_IA64_MODE" = X32; then
15842      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15843    else
15844      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15845    fi
15846    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15847    ;;
15848   hppa*64*)
15849     shrext_cmds='.sl'
15850     hardcode_into_libs=yes
15851     dynamic_linker="$host_os dld.sl"
15852     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15853     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855     soname_spec='${libname}${release}${shared_ext}$major'
15856     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15857     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15858     ;;
15859   *)
15860    shrext_cmds='.sl'
15861    dynamic_linker="$host_os dld.sl"
15862    shlibpath_var=SHLIB_PATH
15863    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15864    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865    soname_spec='${libname}${release}${shared_ext}$major'
15866    ;;
15867  esac
15868  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15869  postinstall_cmds='chmod 555 $lib'
15870  ;;
15871
15872interix3*)
15873  version_type=linux
15874  need_lib_prefix=no
15875  need_version=no
15876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15877  soname_spec='${libname}${release}${shared_ext}$major'
15878  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15879  shlibpath_var=LD_LIBRARY_PATH
15880  shlibpath_overrides_runpath=no
15881  hardcode_into_libs=yes
15882  ;;
15883
15884irix5* | irix6* | nonstopux*)
15885  case $host_os in
15886    nonstopux*) version_type=nonstopux ;;
15887    *)
15888	if test "$lt_cv_prog_gnu_ld" = yes; then
15889		version_type=linux
15890	else
15891		version_type=irix
15892	fi ;;
15893  esac
15894  need_lib_prefix=no
15895  need_version=no
15896  soname_spec='${libname}${release}${shared_ext}$major'
15897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15898  case $host_os in
15899  irix5* | nonstopux*)
15900    libsuff= shlibsuff=
15901    ;;
15902  *)
15903    case $LD in # libtool.m4 will add one of these switches to LD
15904    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15905      libsuff= shlibsuff= libmagic=32-bit;;
15906    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15907      libsuff=32 shlibsuff=N32 libmagic=N32;;
15908    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15909      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15910    *) libsuff= shlibsuff= libmagic=never-match;;
15911    esac
15912    ;;
15913  esac
15914  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15915  shlibpath_overrides_runpath=no
15916  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15917  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15918  hardcode_into_libs=yes
15919  ;;
15920
15921# No shared lib support for Linux oldld, aout, or coff.
15922linux*oldld* | linux*aout* | linux*coff*)
15923  dynamic_linker=no
15924  ;;
15925
15926# This must be Linux ELF.
15927linux* | k*bsd*-gnu)
15928  version_type=linux
15929  need_lib_prefix=no
15930  need_version=no
15931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15932  soname_spec='${libname}${release}${shared_ext}$major'
15933  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15934  shlibpath_var=LD_LIBRARY_PATH
15935  shlibpath_overrides_runpath=no
15936  # This implies no fast_install, which is unacceptable.
15937  # Some rework will be needed to allow for fast_install
15938  # before this can be enabled.
15939  hardcode_into_libs=yes
15940
15941  # Append ld.so.conf contents to the search path
15942  if test -f /etc/ld.so.conf; then
15943    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15944    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15945  fi
15946
15947  # We used to test for /lib/ld.so.1 and disable shared libraries on
15948  # powerpc, because MkLinux only supported shared libraries with the
15949  # GNU dynamic linker.  Since this was broken with cross compilers,
15950  # most powerpc-linux boxes support dynamic linking these days and
15951  # people can always --disable-shared, the test was removed, and we
15952  # assume the GNU/Linux dynamic linker is in use.
15953  dynamic_linker='GNU/Linux ld.so'
15954  ;;
15955
15956netbsdelf*-gnu)
15957  version_type=linux
15958  need_lib_prefix=no
15959  need_version=no
15960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15961  soname_spec='${libname}${release}${shared_ext}$major'
15962  shlibpath_var=LD_LIBRARY_PATH
15963  shlibpath_overrides_runpath=no
15964  hardcode_into_libs=yes
15965  dynamic_linker='NetBSD ld.elf_so'
15966  ;;
15967
15968netbsd*)
15969  version_type=sunos
15970  need_lib_prefix=no
15971  need_version=no
15972  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15973    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15974    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15975    dynamic_linker='NetBSD (a.out) ld.so'
15976  else
15977    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15978    soname_spec='${libname}${release}${shared_ext}$major'
15979    dynamic_linker='NetBSD ld.elf_so'
15980  fi
15981  shlibpath_var=LD_LIBRARY_PATH
15982  shlibpath_overrides_runpath=yes
15983  hardcode_into_libs=yes
15984  ;;
15985
15986newsos6)
15987  version_type=linux
15988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989  shlibpath_var=LD_LIBRARY_PATH
15990  shlibpath_overrides_runpath=yes
15991  ;;
15992
15993nto-qnx*)
15994  version_type=linux
15995  need_lib_prefix=no
15996  need_version=no
15997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998  soname_spec='${libname}${release}${shared_ext}$major'
15999  shlibpath_var=LD_LIBRARY_PATH
16000  shlibpath_overrides_runpath=yes
16001  ;;
16002
16003openbsd*)
16004  version_type=sunos
16005  sys_lib_dlsearch_path_spec="/usr/lib"
16006  need_lib_prefix=no
16007  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16008  case $host_os in
16009    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16010    *)                         need_version=no  ;;
16011  esac
16012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16013  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16014  shlibpath_var=LD_LIBRARY_PATH
16015  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16016    case $host_os in
16017      openbsd2.[89] | openbsd2.[89].*)
16018	shlibpath_overrides_runpath=no
16019	;;
16020      *)
16021	shlibpath_overrides_runpath=yes
16022	;;
16023      esac
16024  else
16025    shlibpath_overrides_runpath=yes
16026  fi
16027  ;;
16028
16029os2*)
16030  libname_spec='$name'
16031  shrext_cmds=".dll"
16032  need_lib_prefix=no
16033  library_names_spec='$libname${shared_ext} $libname.a'
16034  dynamic_linker='OS/2 ld.exe'
16035  shlibpath_var=LIBPATH
16036  ;;
16037
16038osf3* | osf4* | osf5*)
16039  version_type=osf
16040  need_lib_prefix=no
16041  need_version=no
16042  soname_spec='${libname}${release}${shared_ext}$major'
16043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044  shlibpath_var=LD_LIBRARY_PATH
16045  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16046  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16047  ;;
16048
16049solaris*)
16050  version_type=linux
16051  need_lib_prefix=no
16052  need_version=no
16053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054  soname_spec='${libname}${release}${shared_ext}$major'
16055  shlibpath_var=LD_LIBRARY_PATH
16056  shlibpath_overrides_runpath=yes
16057  hardcode_into_libs=yes
16058  # ldd complains unless libraries are executable
16059  postinstall_cmds='chmod +x $lib'
16060  ;;
16061
16062sunos4*)
16063  version_type=sunos
16064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16065  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16066  shlibpath_var=LD_LIBRARY_PATH
16067  shlibpath_overrides_runpath=yes
16068  if test "$with_gnu_ld" = yes; then
16069    need_lib_prefix=no
16070  fi
16071  need_version=yes
16072  ;;
16073
16074sysv4 | sysv4.3*)
16075  version_type=linux
16076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077  soname_spec='${libname}${release}${shared_ext}$major'
16078  shlibpath_var=LD_LIBRARY_PATH
16079  case $host_vendor in
16080    sni)
16081      shlibpath_overrides_runpath=no
16082      need_lib_prefix=no
16083      export_dynamic_flag_spec='${wl}-Blargedynsym'
16084      runpath_var=LD_RUN_PATH
16085      ;;
16086    siemens)
16087      need_lib_prefix=no
16088      ;;
16089    motorola)
16090      need_lib_prefix=no
16091      need_version=no
16092      shlibpath_overrides_runpath=no
16093      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16094      ;;
16095  esac
16096  ;;
16097
16098sysv4*MP*)
16099  if test -d /usr/nec ;then
16100    version_type=linux
16101    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16102    soname_spec='$libname${shared_ext}.$major'
16103    shlibpath_var=LD_LIBRARY_PATH
16104  fi
16105  ;;
16106
16107sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16108  version_type=freebsd-elf
16109  need_lib_prefix=no
16110  need_version=no
16111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16112  soname_spec='${libname}${release}${shared_ext}$major'
16113  shlibpath_var=LD_LIBRARY_PATH
16114  hardcode_into_libs=yes
16115  if test "$with_gnu_ld" = yes; then
16116    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16117    shlibpath_overrides_runpath=no
16118  else
16119    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16120    shlibpath_overrides_runpath=yes
16121    case $host_os in
16122      sco3.2v5*)
16123        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16124	;;
16125    esac
16126  fi
16127  sys_lib_dlsearch_path_spec='/usr/lib'
16128  ;;
16129
16130uts4*)
16131  version_type=linux
16132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133  soname_spec='${libname}${release}${shared_ext}$major'
16134  shlibpath_var=LD_LIBRARY_PATH
16135  ;;
16136
16137*)
16138  dynamic_linker=no
16139  ;;
16140esac
16141{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16142echo "${ECHO_T}$dynamic_linker" >&6; }
16143test "$dynamic_linker" = no && can_build_shared=no
16144
16145variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16146if test "$GCC" = yes; then
16147  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16148fi
16149
16150{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16151echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16152hardcode_action_F77=
16153if test -n "$hardcode_libdir_flag_spec_F77" || \
16154   test -n "$runpath_var_F77" || \
16155   test "X$hardcode_automatic_F77" = "Xyes" ; then
16156
16157  # We can hardcode non-existant directories.
16158  if test "$hardcode_direct_F77" != no &&
16159     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16160     # have to relink, otherwise we might link with an installed library
16161     # when we should be linking with a yet-to-be-installed one
16162     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16163     test "$hardcode_minus_L_F77" != no; then
16164    # Linking always hardcodes the temporary library directory.
16165    hardcode_action_F77=relink
16166  else
16167    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16168    hardcode_action_F77=immediate
16169  fi
16170else
16171  # We cannot hardcode anything, or else we can only hardcode existing
16172  # directories.
16173  hardcode_action_F77=unsupported
16174fi
16175{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16176echo "${ECHO_T}$hardcode_action_F77" >&6; }
16177
16178if test "$hardcode_action_F77" = relink; then
16179  # Fast installation is not supported
16180  enable_fast_install=no
16181elif test "$shlibpath_overrides_runpath" = yes ||
16182     test "$enable_shared" = no; then
16183  # Fast installation is not necessary
16184  enable_fast_install=needless
16185fi
16186
16187
16188# The else clause should only fire when bootstrapping the
16189# libtool distribution, otherwise you forgot to ship ltmain.sh
16190# with your package, and you will get complaints that there are
16191# no rules to generate ltmain.sh.
16192if test -f "$ltmain"; then
16193  # See if we are running on zsh, and set the options which allow our commands through
16194  # without removal of \ escapes.
16195  if test -n "${ZSH_VERSION+set}" ; then
16196    setopt NO_GLOB_SUBST
16197  fi
16198  # Now quote all the things that may contain metacharacters while being
16199  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16200  # variables and quote the copies for generation of the libtool script.
16201  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16202    SED SHELL STRIP \
16203    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16204    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16205    deplibs_check_method reload_flag reload_cmds need_locks \
16206    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16207    lt_cv_sys_global_symbol_to_c_name_address \
16208    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16209    old_postinstall_cmds old_postuninstall_cmds \
16210    compiler_F77 \
16211    CC_F77 \
16212    LD_F77 \
16213    lt_prog_compiler_wl_F77 \
16214    lt_prog_compiler_pic_F77 \
16215    lt_prog_compiler_static_F77 \
16216    lt_prog_compiler_no_builtin_flag_F77 \
16217    export_dynamic_flag_spec_F77 \
16218    thread_safe_flag_spec_F77 \
16219    whole_archive_flag_spec_F77 \
16220    enable_shared_with_static_runtimes_F77 \
16221    old_archive_cmds_F77 \
16222    old_archive_from_new_cmds_F77 \
16223    predep_objects_F77 \
16224    postdep_objects_F77 \
16225    predeps_F77 \
16226    postdeps_F77 \
16227    compiler_lib_search_path_F77 \
16228    archive_cmds_F77 \
16229    archive_expsym_cmds_F77 \
16230    postinstall_cmds_F77 \
16231    postuninstall_cmds_F77 \
16232    old_archive_from_expsyms_cmds_F77 \
16233    allow_undefined_flag_F77 \
16234    no_undefined_flag_F77 \
16235    export_symbols_cmds_F77 \
16236    hardcode_libdir_flag_spec_F77 \
16237    hardcode_libdir_flag_spec_ld_F77 \
16238    hardcode_libdir_separator_F77 \
16239    hardcode_automatic_F77 \
16240    module_cmds_F77 \
16241    module_expsym_cmds_F77 \
16242    lt_cv_prog_compiler_c_o_F77 \
16243    exclude_expsyms_F77 \
16244    include_expsyms_F77; do
16245
16246    case $var in
16247    old_archive_cmds_F77 | \
16248    old_archive_from_new_cmds_F77 | \
16249    archive_cmds_F77 | \
16250    archive_expsym_cmds_F77 | \
16251    module_cmds_F77 | \
16252    module_expsym_cmds_F77 | \
16253    old_archive_from_expsyms_cmds_F77 | \
16254    export_symbols_cmds_F77 | \
16255    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16256    postinstall_cmds | postuninstall_cmds | \
16257    old_postinstall_cmds | old_postuninstall_cmds | \
16258    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16259      # Double-quote double-evaled strings.
16260      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16261      ;;
16262    *)
16263      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16264      ;;
16265    esac
16266  done
16267
16268  case $lt_echo in
16269  *'\$0 --fallback-echo"')
16270    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16271    ;;
16272  esac
16273
16274cfgfile="$ofile"
16275
16276  cat <<__EOF__ >> "$cfgfile"
16277# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16278
16279# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16280
16281# Shell to use when invoking shell scripts.
16282SHELL=$lt_SHELL
16283
16284# Whether or not to build shared libraries.
16285build_libtool_libs=$enable_shared
16286
16287# Whether or not to build static libraries.
16288build_old_libs=$enable_static
16289
16290# Whether or not to add -lc for building shared libraries.
16291build_libtool_need_lc=$archive_cmds_need_lc_F77
16292
16293# Whether or not to disallow shared libs when runtime libs are static
16294allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16295
16296# Whether or not to optimize for fast installation.
16297fast_install=$enable_fast_install
16298
16299# The host system.
16300host_alias=$host_alias
16301host=$host
16302host_os=$host_os
16303
16304# The build system.
16305build_alias=$build_alias
16306build=$build
16307build_os=$build_os
16308
16309# An echo program that does not interpret backslashes.
16310echo=$lt_echo
16311
16312# The archiver.
16313AR=$lt_AR
16314AR_FLAGS=$lt_AR_FLAGS
16315
16316# A C compiler.
16317LTCC=$lt_LTCC
16318
16319# LTCC compiler flags.
16320LTCFLAGS=$lt_LTCFLAGS
16321
16322# A language-specific compiler.
16323CC=$lt_compiler_F77
16324
16325# Is the compiler the GNU C compiler?
16326with_gcc=$GCC_F77
16327
16328# An ERE matcher.
16329EGREP=$lt_EGREP
16330
16331# The linker used to build libraries.
16332LD=$lt_LD_F77
16333
16334# Whether we need hard or soft links.
16335LN_S=$lt_LN_S
16336
16337# A BSD-compatible nm program.
16338NM=$lt_NM
16339
16340# A symbol stripping program
16341STRIP=$lt_STRIP
16342
16343# Used to examine libraries when file_magic_cmd begins "file"
16344MAGIC_CMD=$MAGIC_CMD
16345
16346# Used on cygwin: DLL creation program.
16347DLLTOOL="$DLLTOOL"
16348
16349# Used on cygwin: object dumper.
16350OBJDUMP="$OBJDUMP"
16351
16352# Used on cygwin: assembler.
16353AS="$AS"
16354
16355# The name of the directory that contains temporary libtool files.
16356objdir=$objdir
16357
16358# How to create reloadable object files.
16359reload_flag=$lt_reload_flag
16360reload_cmds=$lt_reload_cmds
16361
16362# How to pass a linker flag through the compiler.
16363wl=$lt_lt_prog_compiler_wl_F77
16364
16365# Object file suffix (normally "o").
16366objext="$ac_objext"
16367
16368# Old archive suffix (normally "a").
16369libext="$libext"
16370
16371# Shared library suffix (normally ".so").
16372shrext_cmds='$shrext_cmds'
16373
16374# Executable file suffix (normally "").
16375exeext="$exeext"
16376
16377# Additional compiler flags for building library objects.
16378pic_flag=$lt_lt_prog_compiler_pic_F77
16379pic_mode=$pic_mode
16380
16381# What is the maximum length of a command?
16382max_cmd_len=$lt_cv_sys_max_cmd_len
16383
16384# Does compiler simultaneously support -c and -o options?
16385compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16386
16387# Must we lock files when doing compilation?
16388need_locks=$lt_need_locks
16389
16390# Do we need the lib prefix for modules?
16391need_lib_prefix=$need_lib_prefix
16392
16393# Do we need a version for libraries?
16394need_version=$need_version
16395
16396# Whether dlopen is supported.
16397dlopen_support=$enable_dlopen
16398
16399# Whether dlopen of programs is supported.
16400dlopen_self=$enable_dlopen_self
16401
16402# Whether dlopen of statically linked programs is supported.
16403dlopen_self_static=$enable_dlopen_self_static
16404
16405# Compiler flag to prevent dynamic linking.
16406link_static_flag=$lt_lt_prog_compiler_static_F77
16407
16408# Compiler flag to turn off builtin functions.
16409no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16410
16411# Compiler flag to allow reflexive dlopens.
16412export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16413
16414# Compiler flag to generate shared objects directly from archives.
16415whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16416
16417# Compiler flag to generate thread-safe objects.
16418thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16419
16420# Library versioning type.
16421version_type=$version_type
16422
16423# Format of library name prefix.
16424libname_spec=$lt_libname_spec
16425
16426# List of archive names.  First name is the real one, the rest are links.
16427# The last name is the one that the linker finds with -lNAME.
16428library_names_spec=$lt_library_names_spec
16429
16430# The coded name of the library, if different from the real name.
16431soname_spec=$lt_soname_spec
16432
16433# Commands used to build and install an old-style archive.
16434RANLIB=$lt_RANLIB
16435old_archive_cmds=$lt_old_archive_cmds_F77
16436old_postinstall_cmds=$lt_old_postinstall_cmds
16437old_postuninstall_cmds=$lt_old_postuninstall_cmds
16438
16439# Create an old-style archive from a shared archive.
16440old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16441
16442# Create a temporary old-style archive to link instead of a shared archive.
16443old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16444
16445# Commands used to build and install a shared archive.
16446archive_cmds=$lt_archive_cmds_F77
16447archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16448postinstall_cmds=$lt_postinstall_cmds
16449postuninstall_cmds=$lt_postuninstall_cmds
16450
16451# Commands used to build a loadable module (assumed same as above if empty)
16452module_cmds=$lt_module_cmds_F77
16453module_expsym_cmds=$lt_module_expsym_cmds_F77
16454
16455# Commands to strip libraries.
16456old_striplib=$lt_old_striplib
16457striplib=$lt_striplib
16458
16459# Dependencies to place before the objects being linked to create a
16460# shared library.
16461predep_objects=$lt_predep_objects_F77
16462
16463# Dependencies to place after the objects being linked to create a
16464# shared library.
16465postdep_objects=$lt_postdep_objects_F77
16466
16467# Dependencies to place before the objects being linked to create a
16468# shared library.
16469predeps=$lt_predeps_F77
16470
16471# Dependencies to place after the objects being linked to create a
16472# shared library.
16473postdeps=$lt_postdeps_F77
16474
16475# The library search path used internally by the compiler when linking
16476# a shared library.
16477compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16478
16479# Method to check whether dependent libraries are shared objects.
16480deplibs_check_method=$lt_deplibs_check_method
16481
16482# Command to use when deplibs_check_method == file_magic.
16483file_magic_cmd=$lt_file_magic_cmd
16484
16485# Flag that allows shared libraries with undefined symbols to be built.
16486allow_undefined_flag=$lt_allow_undefined_flag_F77
16487
16488# Flag that forces no undefined symbols.
16489no_undefined_flag=$lt_no_undefined_flag_F77
16490
16491# Commands used to finish a libtool library installation in a directory.
16492finish_cmds=$lt_finish_cmds
16493
16494# Same as above, but a single script fragment to be evaled but not shown.
16495finish_eval=$lt_finish_eval
16496
16497# Take the output of nm and produce a listing of raw symbols and C names.
16498global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16499
16500# Transform the output of nm in a proper C declaration
16501global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16502
16503# Transform the output of nm in a C name address pair
16504global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16505
16506# This is the shared library runtime path variable.
16507runpath_var=$runpath_var
16508
16509# This is the shared library path variable.
16510shlibpath_var=$shlibpath_var
16511
16512# Is shlibpath searched before the hard-coded library search path?
16513shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16514
16515# How to hardcode a shared library path into an executable.
16516hardcode_action=$hardcode_action_F77
16517
16518# Whether we should hardcode library paths into libraries.
16519hardcode_into_libs=$hardcode_into_libs
16520
16521# Flag to hardcode \$libdir into a binary during linking.
16522# This must work even if \$libdir does not exist.
16523hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16524
16525# If ld is used when linking, flag to hardcode \$libdir into
16526# a binary during linking. This must work even if \$libdir does
16527# not exist.
16528hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16529
16530# Whether we need a single -rpath flag with a separated argument.
16531hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16532
16533# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16534# resulting binary.
16535hardcode_direct=$hardcode_direct_F77
16536
16537# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16538# resulting binary.
16539hardcode_minus_L=$hardcode_minus_L_F77
16540
16541# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16542# the resulting binary.
16543hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16544
16545# Set to yes if building a shared library automatically hardcodes DIR into the library
16546# and all subsequent libraries and executables linked against it.
16547hardcode_automatic=$hardcode_automatic_F77
16548
16549# Variables whose values should be saved in libtool wrapper scripts and
16550# restored at relink time.
16551variables_saved_for_relink="$variables_saved_for_relink"
16552
16553# Whether libtool must link a program against all its dependency libraries.
16554link_all_deplibs=$link_all_deplibs_F77
16555
16556# Compile-time system search path for libraries
16557sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16558
16559# Run-time system search path for libraries
16560sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16561
16562# Fix the shell variable \$srcfile for the compiler.
16563fix_srcfile_path="$fix_srcfile_path_F77"
16564
16565# Set to yes if exported symbols are required.
16566always_export_symbols=$always_export_symbols_F77
16567
16568# The commands to list exported symbols.
16569export_symbols_cmds=$lt_export_symbols_cmds_F77
16570
16571# The commands to extract the exported symbol list from a shared archive.
16572extract_expsyms_cmds=$lt_extract_expsyms_cmds
16573
16574# Symbols that should not be listed in the preloaded symbols.
16575exclude_expsyms=$lt_exclude_expsyms_F77
16576
16577# Symbols that must always be exported.
16578include_expsyms=$lt_include_expsyms_F77
16579
16580# ### END LIBTOOL TAG CONFIG: $tagname
16581
16582__EOF__
16583
16584
16585else
16586  # If there is no Makefile yet, we rely on a make rule to execute
16587  # `config.status --recheck' to rerun these tests and create the
16588  # libtool script then.
16589  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16590  if test -f "$ltmain_in"; then
16591    test -f Makefile && make "$ltmain"
16592  fi
16593fi
16594
16595
16596ac_ext=c
16597ac_cpp='$CPP $CPPFLAGS'
16598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16600ac_compiler_gnu=$ac_cv_c_compiler_gnu
16601
16602CC="$lt_save_CC"
16603
16604	else
16605	  tagname=""
16606	fi
16607	;;
16608
16609      GCJ)
16610	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16611
16612
16613# Source file extension for Java test sources.
16614ac_ext=java
16615
16616# Object file extension for compiled Java test sources.
16617objext=o
16618objext_GCJ=$objext
16619
16620# Code to be used in simple compile tests
16621lt_simple_compile_test_code="class foo {}\n"
16622
16623# Code to be used in simple link tests
16624lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16625
16626# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16627
16628# If no C compiler was specified, use CC.
16629LTCC=${LTCC-"$CC"}
16630
16631# If no C compiler flags were specified, use CFLAGS.
16632LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16633
16634# Allow CC to be a program name with arguments.
16635compiler=$CC
16636
16637
16638# save warnings/boilerplate of simple test code
16639ac_outfile=conftest.$ac_objext
16640printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16641eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16642_lt_compiler_boilerplate=`cat conftest.err`
16643$rm conftest*
16644
16645ac_outfile=conftest.$ac_objext
16646printf "$lt_simple_link_test_code" >conftest.$ac_ext
16647eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16648_lt_linker_boilerplate=`cat conftest.err`
16649$rm conftest*
16650
16651
16652# Allow CC to be a program name with arguments.
16653lt_save_CC="$CC"
16654CC=${GCJ-"gcj"}
16655compiler=$CC
16656compiler_GCJ=$CC
16657for cc_temp in $compiler""; do
16658  case $cc_temp in
16659    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16660    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16661    \-*) ;;
16662    *) break;;
16663  esac
16664done
16665cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16666
16667
16668# GCJ did not exist at the time GCC didn't implicitly link libc in.
16669archive_cmds_need_lc_GCJ=no
16670
16671old_archive_cmds_GCJ=$old_archive_cmds
16672
16673
16674lt_prog_compiler_no_builtin_flag_GCJ=
16675
16676if test "$GCC" = yes; then
16677  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16678
16679
16680{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16681echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16682if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16683  echo $ECHO_N "(cached) $ECHO_C" >&6
16684else
16685  lt_cv_prog_compiler_rtti_exceptions=no
16686  ac_outfile=conftest.$ac_objext
16687   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16688   lt_compiler_flag="-fno-rtti -fno-exceptions"
16689   # Insert the option either (1) after the last *FLAGS variable, or
16690   # (2) before a word containing "conftest.", or (3) at the end.
16691   # Note that $ac_compile itself does not contain backslashes and begins
16692   # with a dollar sign (not a hyphen), so the echo should work correctly.
16693   # The option is referenced via a variable to avoid confusing sed.
16694   lt_compile=`echo "$ac_compile" | $SED \
16695   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16696   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16697   -e 's:$: $lt_compiler_flag:'`
16698   (eval echo "\"\$as_me:16698: $lt_compile\"" >&5)
16699   (eval "$lt_compile" 2>conftest.err)
16700   ac_status=$?
16701   cat conftest.err >&5
16702   echo "$as_me:16702: \$? = $ac_status" >&5
16703   if (exit $ac_status) && test -s "$ac_outfile"; then
16704     # The compiler can only warn and ignore the option if not recognized
16705     # So say no if there are warnings other than the usual output.
16706     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16707     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16708     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16709       lt_cv_prog_compiler_rtti_exceptions=yes
16710     fi
16711   fi
16712   $rm conftest*
16713
16714fi
16715{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16716echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16717
16718if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16719    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16720else
16721    :
16722fi
16723
16724fi
16725
16726lt_prog_compiler_wl_GCJ=
16727lt_prog_compiler_pic_GCJ=
16728lt_prog_compiler_static_GCJ=
16729
16730{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16731echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16732
16733  if test "$GCC" = yes; then
16734    lt_prog_compiler_wl_GCJ='-Wl,'
16735    lt_prog_compiler_static_GCJ='-static'
16736
16737    case $host_os in
16738      aix*)
16739      # All AIX code is PIC.
16740      if test "$host_cpu" = ia64; then
16741	# AIX 5 now supports IA64 processor
16742	lt_prog_compiler_static_GCJ='-Bstatic'
16743      fi
16744      ;;
16745
16746    amigaos*)
16747      # FIXME: we need at least 68020 code to build shared libraries, but
16748      # adding the `-m68020' flag to GCC prevents building anything better,
16749      # like `-m68040'.
16750      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16751      ;;
16752
16753    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16754      # PIC is the default for these OSes.
16755      ;;
16756
16757    mingw* | pw32* | os2*)
16758      # This hack is so that the source file can tell whether it is being
16759      # built for inclusion in a dll (and should export symbols for example).
16760      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16761      ;;
16762
16763    darwin* | rhapsody*)
16764      # PIC is the default on this platform
16765      # Common symbols not allowed in MH_DYLIB files
16766      lt_prog_compiler_pic_GCJ='-fno-common'
16767      ;;
16768
16769    interix3*)
16770      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16771      # Instead, we relocate shared libraries at runtime.
16772      ;;
16773
16774    msdosdjgpp*)
16775      # Just because we use GCC doesn't mean we suddenly get shared libraries
16776      # on systems that don't support them.
16777      lt_prog_compiler_can_build_shared_GCJ=no
16778      enable_shared=no
16779      ;;
16780
16781    sysv4*MP*)
16782      if test -d /usr/nec; then
16783	lt_prog_compiler_pic_GCJ=-Kconform_pic
16784      fi
16785      ;;
16786
16787    hpux*)
16788      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16789      # not for PA HP-UX.
16790      case $host_cpu in
16791      hppa*64*|ia64*)
16792	# +Z the default
16793	;;
16794      *)
16795	lt_prog_compiler_pic_GCJ='-fPIC'
16796	;;
16797      esac
16798      ;;
16799
16800    *)
16801      lt_prog_compiler_pic_GCJ='-fPIC'
16802      ;;
16803    esac
16804  else
16805    # PORTME Check for flag to pass linker flags through the system compiler.
16806    case $host_os in
16807    aix*)
16808      lt_prog_compiler_wl_GCJ='-Wl,'
16809      if test "$host_cpu" = ia64; then
16810	# AIX 5 now supports IA64 processor
16811	lt_prog_compiler_static_GCJ='-Bstatic'
16812      else
16813	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16814      fi
16815      ;;
16816      darwin*)
16817        # PIC is the default on this platform
16818        # Common symbols not allowed in MH_DYLIB files
16819       case $cc_basename in
16820         xlc*)
16821         lt_prog_compiler_pic_GCJ='-qnocommon'
16822         lt_prog_compiler_wl_GCJ='-Wl,'
16823         ;;
16824       esac
16825       ;;
16826
16827    mingw* | pw32* | os2*)
16828      # This hack is so that the source file can tell whether it is being
16829      # built for inclusion in a dll (and should export symbols for example).
16830      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16831      ;;
16832
16833    hpux9* | hpux10* | hpux11*)
16834      lt_prog_compiler_wl_GCJ='-Wl,'
16835      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16836      # not for PA HP-UX.
16837      case $host_cpu in
16838      hppa*64*|ia64*)
16839	# +Z the default
16840	;;
16841      *)
16842	lt_prog_compiler_pic_GCJ='+Z'
16843	;;
16844      esac
16845      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16846      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16847      ;;
16848
16849    irix5* | irix6* | nonstopux*)
16850      lt_prog_compiler_wl_GCJ='-Wl,'
16851      # PIC (with -KPIC) is the default.
16852      lt_prog_compiler_static_GCJ='-non_shared'
16853      ;;
16854
16855    newsos6)
16856      lt_prog_compiler_pic_GCJ='-KPIC'
16857      lt_prog_compiler_static_GCJ='-Bstatic'
16858      ;;
16859
16860    linux* | k*bsd*-gnu)
16861      case $cc_basename in
16862      icc* | ecc*)
16863	lt_prog_compiler_wl_GCJ='-Wl,'
16864	lt_prog_compiler_pic_GCJ='-KPIC'
16865	lt_prog_compiler_static_GCJ='-static'
16866        ;;
16867      pgcc* | pgf77* | pgf90* | pgf95*)
16868        # Portland Group compilers (*not* the Pentium gcc compiler,
16869	# which looks to be a dead project)
16870	lt_prog_compiler_wl_GCJ='-Wl,'
16871	lt_prog_compiler_pic_GCJ='-fpic'
16872	lt_prog_compiler_static_GCJ='-Bstatic'
16873        ;;
16874      ccc*)
16875        lt_prog_compiler_wl_GCJ='-Wl,'
16876        # All Alpha code is PIC.
16877        lt_prog_compiler_static_GCJ='-non_shared'
16878        ;;
16879      esac
16880      ;;
16881
16882    osf3* | osf4* | osf5*)
16883      lt_prog_compiler_wl_GCJ='-Wl,'
16884      # All OSF/1 code is PIC.
16885      lt_prog_compiler_static_GCJ='-non_shared'
16886      ;;
16887
16888    solaris*)
16889      lt_prog_compiler_pic_GCJ='-KPIC'
16890      lt_prog_compiler_static_GCJ='-Bstatic'
16891      case $cc_basename in
16892      f77* | f90* | f95*)
16893	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16894      *)
16895	lt_prog_compiler_wl_GCJ='-Wl,';;
16896      esac
16897      ;;
16898
16899    sunos4*)
16900      lt_prog_compiler_wl_GCJ='-Qoption ld '
16901      lt_prog_compiler_pic_GCJ='-PIC'
16902      lt_prog_compiler_static_GCJ='-Bstatic'
16903      ;;
16904
16905    sysv4 | sysv4.2uw2* | sysv4.3*)
16906      lt_prog_compiler_wl_GCJ='-Wl,'
16907      lt_prog_compiler_pic_GCJ='-KPIC'
16908      lt_prog_compiler_static_GCJ='-Bstatic'
16909      ;;
16910
16911    sysv4*MP*)
16912      if test -d /usr/nec ;then
16913	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16914	lt_prog_compiler_static_GCJ='-Bstatic'
16915      fi
16916      ;;
16917
16918    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16919      lt_prog_compiler_wl_GCJ='-Wl,'
16920      lt_prog_compiler_pic_GCJ='-KPIC'
16921      lt_prog_compiler_static_GCJ='-Bstatic'
16922      ;;
16923
16924    unicos*)
16925      lt_prog_compiler_wl_GCJ='-Wl,'
16926      lt_prog_compiler_can_build_shared_GCJ=no
16927      ;;
16928
16929    uts4*)
16930      lt_prog_compiler_pic_GCJ='-pic'
16931      lt_prog_compiler_static_GCJ='-Bstatic'
16932      ;;
16933
16934    *)
16935      lt_prog_compiler_can_build_shared_GCJ=no
16936      ;;
16937    esac
16938  fi
16939
16940{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16941echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16942
16943#
16944# Check to make sure the PIC flag actually works.
16945#
16946if test -n "$lt_prog_compiler_pic_GCJ"; then
16947
16948{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16949echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16950if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16951  echo $ECHO_N "(cached) $ECHO_C" >&6
16952else
16953  lt_prog_compiler_pic_works_GCJ=no
16954  ac_outfile=conftest.$ac_objext
16955   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16956   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16957   # Insert the option either (1) after the last *FLAGS variable, or
16958   # (2) before a word containing "conftest.", or (3) at the end.
16959   # Note that $ac_compile itself does not contain backslashes and begins
16960   # with a dollar sign (not a hyphen), so the echo should work correctly.
16961   # The option is referenced via a variable to avoid confusing sed.
16962   lt_compile=`echo "$ac_compile" | $SED \
16963   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16964   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16965   -e 's:$: $lt_compiler_flag:'`
16966   (eval echo "\"\$as_me:16966: $lt_compile\"" >&5)
16967   (eval "$lt_compile" 2>conftest.err)
16968   ac_status=$?
16969   cat conftest.err >&5
16970   echo "$as_me:16970: \$? = $ac_status" >&5
16971   if (exit $ac_status) && test -s "$ac_outfile"; then
16972     # The compiler can only warn and ignore the option if not recognized
16973     # So say no if there are warnings other than the usual output.
16974     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16975     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16976     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16977       lt_prog_compiler_pic_works_GCJ=yes
16978     fi
16979   fi
16980   $rm conftest*
16981
16982fi
16983{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16984echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16985
16986if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16987    case $lt_prog_compiler_pic_GCJ in
16988     "" | " "*) ;;
16989     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16990     esac
16991else
16992    lt_prog_compiler_pic_GCJ=
16993     lt_prog_compiler_can_build_shared_GCJ=no
16994fi
16995
16996fi
16997case $host_os in
16998  # For platforms which do not support PIC, -DPIC is meaningless:
16999  *djgpp*)
17000    lt_prog_compiler_pic_GCJ=
17001    ;;
17002  *)
17003    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17004    ;;
17005esac
17006
17007#
17008# Check to make sure the static flag actually works.
17009#
17010wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17011{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17012echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17013if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17014  echo $ECHO_N "(cached) $ECHO_C" >&6
17015else
17016  lt_prog_compiler_static_works_GCJ=no
17017   save_LDFLAGS="$LDFLAGS"
17018   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17019   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17020   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17021     # The linker can only warn and ignore the option if not recognized
17022     # So say no if there are warnings
17023     if test -s conftest.err; then
17024       # Append any errors to the config.log.
17025       cat conftest.err 1>&5
17026       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17027       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17028       if diff conftest.exp conftest.er2 >/dev/null; then
17029         lt_prog_compiler_static_works_GCJ=yes
17030       fi
17031     else
17032       lt_prog_compiler_static_works_GCJ=yes
17033     fi
17034   fi
17035   $rm conftest*
17036   LDFLAGS="$save_LDFLAGS"
17037
17038fi
17039{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17040echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17041
17042if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17043    :
17044else
17045    lt_prog_compiler_static_GCJ=
17046fi
17047
17048
17049{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17050echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17051if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17052  echo $ECHO_N "(cached) $ECHO_C" >&6
17053else
17054  lt_cv_prog_compiler_c_o_GCJ=no
17055   $rm -r conftest 2>/dev/null
17056   mkdir conftest
17057   cd conftest
17058   mkdir out
17059   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17060
17061   lt_compiler_flag="-o out/conftest2.$ac_objext"
17062   # Insert the option either (1) after the last *FLAGS variable, or
17063   # (2) before a word containing "conftest.", or (3) at the end.
17064   # Note that $ac_compile itself does not contain backslashes and begins
17065   # with a dollar sign (not a hyphen), so the echo should work correctly.
17066   lt_compile=`echo "$ac_compile" | $SED \
17067   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17068   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17069   -e 's:$: $lt_compiler_flag:'`
17070   (eval echo "\"\$as_me:17070: $lt_compile\"" >&5)
17071   (eval "$lt_compile" 2>out/conftest.err)
17072   ac_status=$?
17073   cat out/conftest.err >&5
17074   echo "$as_me:17074: \$? = $ac_status" >&5
17075   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17076   then
17077     # The compiler can only warn and ignore the option if not recognized
17078     # So say no if there are warnings
17079     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17080     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17081     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17082       lt_cv_prog_compiler_c_o_GCJ=yes
17083     fi
17084   fi
17085   chmod u+w . 2>&5
17086   $rm conftest*
17087   # SGI C++ compiler will create directory out/ii_files/ for
17088   # template instantiation
17089   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17090   $rm out/* && rmdir out
17091   cd ..
17092   rmdir conftest
17093   $rm conftest*
17094
17095fi
17096{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17097echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17098
17099
17100hard_links="nottested"
17101if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17102  # do not overwrite the value of need_locks provided by the user
17103  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17104echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17105  hard_links=yes
17106  $rm conftest*
17107  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17108  touch conftest.a
17109  ln conftest.a conftest.b 2>&5 || hard_links=no
17110  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17111  { echo "$as_me:$LINENO: result: $hard_links" >&5
17112echo "${ECHO_T}$hard_links" >&6; }
17113  if test "$hard_links" = no; then
17114    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17115echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17116    need_locks=warn
17117  fi
17118else
17119  need_locks=no
17120fi
17121
17122{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17123echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17124
17125  runpath_var=
17126  allow_undefined_flag_GCJ=
17127  enable_shared_with_static_runtimes_GCJ=no
17128  archive_cmds_GCJ=
17129  archive_expsym_cmds_GCJ=
17130  old_archive_From_new_cmds_GCJ=
17131  old_archive_from_expsyms_cmds_GCJ=
17132  export_dynamic_flag_spec_GCJ=
17133  whole_archive_flag_spec_GCJ=
17134  thread_safe_flag_spec_GCJ=
17135  hardcode_libdir_flag_spec_GCJ=
17136  hardcode_libdir_flag_spec_ld_GCJ=
17137  hardcode_libdir_separator_GCJ=
17138  hardcode_direct_GCJ=no
17139  hardcode_minus_L_GCJ=no
17140  hardcode_shlibpath_var_GCJ=unsupported
17141  link_all_deplibs_GCJ=unknown
17142  hardcode_automatic_GCJ=no
17143  module_cmds_GCJ=
17144  module_expsym_cmds_GCJ=
17145  always_export_symbols_GCJ=no
17146  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17147  # include_expsyms should be a list of space-separated symbols to be *always*
17148  # included in the symbol list
17149  include_expsyms_GCJ=
17150  # exclude_expsyms can be an extended regexp of symbols to exclude
17151  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17152  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17153  # as well as any symbol that contains `d'.
17154  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17155  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17156  # platforms (ab)use it in PIC code, but their linkers get confused if
17157  # the symbol is explicitly referenced.  Since portable code cannot
17158  # rely on this symbol name, it's probably fine to never include it in
17159  # preloaded symbol tables.
17160  extract_expsyms_cmds=
17161  # Just being paranoid about ensuring that cc_basename is set.
17162  for cc_temp in $compiler""; do
17163  case $cc_temp in
17164    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17165    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17166    \-*) ;;
17167    *) break;;
17168  esac
17169done
17170cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17171
17172  case $host_os in
17173  cygwin* | mingw* | pw32*)
17174    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17175    # When not using gcc, we currently assume that we are using
17176    # Microsoft Visual C++.
17177    if test "$GCC" != yes; then
17178      with_gnu_ld=no
17179    fi
17180    ;;
17181  interix*)
17182    # we just hope/assume this is gcc and not c89 (= MSVC++)
17183    with_gnu_ld=yes
17184    ;;
17185  openbsd*)
17186    with_gnu_ld=no
17187    ;;
17188  esac
17189
17190  ld_shlibs_GCJ=yes
17191  if test "$with_gnu_ld" = yes; then
17192    # If archive_cmds runs LD, not CC, wlarc should be empty
17193    wlarc='${wl}'
17194
17195    # Set some defaults for GNU ld with shared library support. These
17196    # are reset later if shared libraries are not supported. Putting them
17197    # here allows them to be overridden if necessary.
17198    runpath_var=LD_RUN_PATH
17199    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17200    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17201    # ancient GNU ld didn't support --whole-archive et. al.
17202    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17203	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17204      else
17205  	whole_archive_flag_spec_GCJ=
17206    fi
17207    supports_anon_versioning=no
17208    case `$LD -v 2>/dev/null` in
17209      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17210      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17211      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17212      *\ 2.11.*) ;; # other 2.11 versions
17213      *) supports_anon_versioning=yes ;;
17214    esac
17215
17216    # See if GNU ld supports shared libraries.
17217    case $host_os in
17218    aix3* | aix4* | aix5*)
17219      # On AIX/PPC, the GNU linker is very broken
17220      if test "$host_cpu" != ia64; then
17221	ld_shlibs_GCJ=no
17222	cat <<EOF 1>&2
17223
17224*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17225*** to be unable to reliably create shared libraries on AIX.
17226*** Therefore, libtool is disabling shared libraries support.  If you
17227*** really care for shared libraries, you may want to modify your PATH
17228*** so that a non-GNU linker is found, and then restart.
17229
17230EOF
17231      fi
17232      ;;
17233
17234    amigaos*)
17235      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)'
17236      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17237      hardcode_minus_L_GCJ=yes
17238
17239      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17240      # that the semantics of dynamic libraries on AmigaOS, at least up
17241      # to version 4, is to share data among multiple programs linked
17242      # with the same dynamic library.  Since this doesn't match the
17243      # behavior of shared libraries on other platforms, we can't use
17244      # them.
17245      ld_shlibs_GCJ=no
17246      ;;
17247
17248    beos*)
17249      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17250	allow_undefined_flag_GCJ=unsupported
17251	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17252	# support --undefined.  This deserves some investigation.  FIXME
17253	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17254      else
17255	ld_shlibs_GCJ=no
17256      fi
17257      ;;
17258
17259    cygwin* | mingw* | pw32*)
17260      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17261      # as there is no search path for DLLs.
17262      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17263      allow_undefined_flag_GCJ=unsupported
17264      always_export_symbols_GCJ=no
17265      enable_shared_with_static_runtimes_GCJ=yes
17266      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17267
17268      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17269        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17270	# If the export-symbols file already is a .def file (1st line
17271	# is EXPORTS), use it as is; otherwise, prepend...
17272	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17273	  cp $export_symbols $output_objdir/$soname.def;
17274	else
17275	  echo EXPORTS > $output_objdir/$soname.def;
17276	  cat $export_symbols >> $output_objdir/$soname.def;
17277	fi~
17278	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17279      else
17280	ld_shlibs_GCJ=no
17281      fi
17282      ;;
17283
17284    interix3*)
17285      hardcode_direct_GCJ=no
17286      hardcode_shlibpath_var_GCJ=no
17287      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17288      export_dynamic_flag_spec_GCJ='${wl}-E'
17289      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17290      # Instead, shared libraries are loaded at an image base (0x10000000 by
17291      # default) and relocated if they conflict, which is a slow very memory
17292      # consuming and fragmenting process.  To avoid this, we pick a random,
17293      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17294      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17295      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'
17296      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'
17297      ;;
17298
17299    linux* | k*bsd*-gnu)
17300      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17301	tmp_addflag=
17302	case $cc_basename,$host_cpu in
17303	pgcc*)				# Portland Group C compiler
17304	  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'
17305	  tmp_addflag=' $pic_flag'
17306	  ;;
17307	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17308	  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'
17309	  tmp_addflag=' $pic_flag -Mnomain' ;;
17310	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17311	  tmp_addflag=' -i_dynamic' ;;
17312	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17313	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17314	ifc* | ifort*)			# Intel Fortran compiler
17315	  tmp_addflag=' -nofor_main' ;;
17316	esac
17317	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17318
17319	if test $supports_anon_versioning = yes; then
17320	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17321  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17322  $echo "local: *; };" >> $output_objdir/$libname.ver~
17323	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17324	fi
17325	link_all_deplibs_GCJ=no
17326      else
17327	ld_shlibs_GCJ=no
17328      fi
17329      ;;
17330
17331    netbsd* | netbsdelf*-gnu)
17332      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17333	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17334	wlarc=
17335      else
17336	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17337	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17338      fi
17339      ;;
17340
17341    solaris*)
17342      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17343	ld_shlibs_GCJ=no
17344	cat <<EOF 1>&2
17345
17346*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17347*** create shared libraries on Solaris systems.  Therefore, libtool
17348*** is disabling shared libraries support.  We urge you to upgrade GNU
17349*** binutils to release 2.9.1 or newer.  Another option is to modify
17350*** your PATH or compiler configuration so that the native linker is
17351*** used, and then restart.
17352
17353EOF
17354      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17355	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17356	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17357      else
17358	ld_shlibs_GCJ=no
17359      fi
17360      ;;
17361
17362    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17363      case `$LD -v 2>&1` in
17364        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17365	ld_shlibs_GCJ=no
17366	cat <<_LT_EOF 1>&2
17367
17368*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17369*** reliably create shared libraries on SCO systems.  Therefore, libtool
17370*** is disabling shared libraries support.  We urge you to upgrade GNU
17371*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17372*** your PATH or compiler configuration so that the native linker is
17373*** used, and then restart.
17374
17375_LT_EOF
17376	;;
17377	*)
17378	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17379	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17380	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17381	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17382	  else
17383	    ld_shlibs_GCJ=no
17384	  fi
17385	;;
17386      esac
17387      ;;
17388
17389    sunos4*)
17390      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17391      wlarc=
17392      hardcode_direct_GCJ=yes
17393      hardcode_shlibpath_var_GCJ=no
17394      ;;
17395
17396    *)
17397      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17398	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17399	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17400      else
17401	ld_shlibs_GCJ=no
17402      fi
17403      ;;
17404    esac
17405
17406    if test "$ld_shlibs_GCJ" = no; then
17407      runpath_var=
17408      hardcode_libdir_flag_spec_GCJ=
17409      export_dynamic_flag_spec_GCJ=
17410      whole_archive_flag_spec_GCJ=
17411    fi
17412  else
17413    # PORTME fill in a description of your system's linker (not GNU ld)
17414    case $host_os in
17415    aix3*)
17416      allow_undefined_flag_GCJ=unsupported
17417      always_export_symbols_GCJ=yes
17418      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'
17419      # Note: this linker hardcodes the directories in LIBPATH if there
17420      # are no directories specified by -L.
17421      hardcode_minus_L_GCJ=yes
17422      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17423	# Neither direct hardcoding nor static linking is supported with a
17424	# broken collect2.
17425	hardcode_direct_GCJ=unsupported
17426      fi
17427      ;;
17428
17429    aix4* | aix5*)
17430      if test "$host_cpu" = ia64; then
17431	# On IA64, the linker does run time linking by default, so we don't
17432	# have to do anything special.
17433	aix_use_runtimelinking=no
17434	exp_sym_flag='-Bexport'
17435	no_entry_flag=""
17436      else
17437	# If we're using GNU nm, then we don't want the "-C" option.
17438	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17439	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17440	  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'
17441	else
17442	  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'
17443	fi
17444	aix_use_runtimelinking=no
17445
17446	# Test if we are trying to use run time linking or normal
17447	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17448	# need to do runtime linking.
17449	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17450	  for ld_flag in $LDFLAGS; do
17451  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17452  	    aix_use_runtimelinking=yes
17453  	    break
17454  	  fi
17455	  done
17456	  ;;
17457	esac
17458
17459	exp_sym_flag='-bexport'
17460	no_entry_flag='-bnoentry'
17461      fi
17462
17463      # When large executables or shared objects are built, AIX ld can
17464      # have problems creating the table of contents.  If linking a library
17465      # or program results in "error TOC overflow" add -mminimal-toc to
17466      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17467      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17468
17469      archive_cmds_GCJ=''
17470      hardcode_direct_GCJ=yes
17471      hardcode_libdir_separator_GCJ=':'
17472      link_all_deplibs_GCJ=yes
17473
17474      if test "$GCC" = yes; then
17475	case $host_os in aix4.[012]|aix4.[012].*)
17476	# We only want to do this on AIX 4.2 and lower, the check
17477	# below for broken collect2 doesn't work under 4.3+
17478	  collect2name=`${CC} -print-prog-name=collect2`
17479	  if test -f "$collect2name" && \
17480  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17481	  then
17482  	  # We have reworked collect2
17483  	  hardcode_direct_GCJ=yes
17484	  else
17485  	  # We have old collect2
17486  	  hardcode_direct_GCJ=unsupported
17487  	  # It fails to find uninstalled libraries when the uninstalled
17488  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17489  	  # to unsupported forces relinking
17490  	  hardcode_minus_L_GCJ=yes
17491  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17492  	  hardcode_libdir_separator_GCJ=
17493	  fi
17494	  ;;
17495	esac
17496	shared_flag='-shared'
17497	if test "$aix_use_runtimelinking" = yes; then
17498	  shared_flag="$shared_flag "'${wl}-G'
17499	fi
17500      else
17501	# not using gcc
17502	if test "$host_cpu" = ia64; then
17503  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17504  	# chokes on -Wl,-G. The following line is correct:
17505	  shared_flag='-G'
17506	else
17507	  if test "$aix_use_runtimelinking" = yes; then
17508	    shared_flag='${wl}-G'
17509	  else
17510	    shared_flag='${wl}-bM:SRE'
17511	  fi
17512	fi
17513      fi
17514
17515      # It seems that -bexpall does not export symbols beginning with
17516      # underscore (_), so it is better to generate a list of symbols to export.
17517      always_export_symbols_GCJ=yes
17518      if test "$aix_use_runtimelinking" = yes; then
17519	# Warning - without using the other runtime loading flags (-brtl),
17520	# -berok will link without error, but may produce a broken library.
17521	allow_undefined_flag_GCJ='-berok'
17522       # Determine the default libpath from the value encoded in an empty executable.
17523       cat >conftest.$ac_ext <<_ACEOF
17524/* confdefs.h.  */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h.  */
17529
17530int
17531main ()
17532{
17533
17534  ;
17535  return 0;
17536}
17537_ACEOF
17538rm -f conftest.$ac_objext conftest$ac_exeext
17539if { (ac_try="$ac_link"
17540case "(($ac_try" in
17541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542  *) ac_try_echo=$ac_try;;
17543esac
17544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545  (eval "$ac_link") 2>conftest.er1
17546  ac_status=$?
17547  grep -v '^ *+' conftest.er1 >conftest.err
17548  rm -f conftest.er1
17549  cat conftest.err >&5
17550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551  (exit $ac_status); } &&
17552	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553  { (case "(($ac_try" in
17554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555  *) ac_try_echo=$ac_try;;
17556esac
17557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558  (eval "$ac_try") 2>&5
17559  ac_status=$?
17560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561  (exit $ac_status); }; } &&
17562	 { ac_try='test -s conftest$ac_exeext'
17563  { (case "(($ac_try" in
17564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565  *) ac_try_echo=$ac_try;;
17566esac
17567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568  (eval "$ac_try") 2>&5
17569  ac_status=$?
17570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571  (exit $ac_status); }; }; then
17572
17573aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17574}'`
17575# Check for a 64-bit object if we didn't find anything.
17576if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17577}'`; fi
17578else
17579  echo "$as_me: failed program was:" >&5
17580sed 's/^/| /' conftest.$ac_ext >&5
17581
17582
17583fi
17584
17585rm -f core conftest.err conftest.$ac_objext \
17586      conftest$ac_exeext conftest.$ac_ext
17587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17588
17589       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17590	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"
17591       else
17592	if test "$host_cpu" = ia64; then
17593	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17594	  allow_undefined_flag_GCJ="-z nodefs"
17595	  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"
17596	else
17597	 # Determine the default libpath from the value encoded in an empty executable.
17598	 cat >conftest.$ac_ext <<_ACEOF
17599/* confdefs.h.  */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h.  */
17604
17605int
17606main ()
17607{
17608
17609  ;
17610  return 0;
17611}
17612_ACEOF
17613rm -f conftest.$ac_objext conftest$ac_exeext
17614if { (ac_try="$ac_link"
17615case "(($ac_try" in
17616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617  *) ac_try_echo=$ac_try;;
17618esac
17619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620  (eval "$ac_link") 2>conftest.er1
17621  ac_status=$?
17622  grep -v '^ *+' conftest.er1 >conftest.err
17623  rm -f conftest.er1
17624  cat conftest.err >&5
17625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626  (exit $ac_status); } &&
17627	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17628  { (case "(($ac_try" in
17629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630  *) ac_try_echo=$ac_try;;
17631esac
17632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633  (eval "$ac_try") 2>&5
17634  ac_status=$?
17635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636  (exit $ac_status); }; } &&
17637	 { ac_try='test -s conftest$ac_exeext'
17638  { (case "(($ac_try" in
17639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640  *) ac_try_echo=$ac_try;;
17641esac
17642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643  (eval "$ac_try") 2>&5
17644  ac_status=$?
17645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646  (exit $ac_status); }; }; then
17647
17648aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17649}'`
17650# Check for a 64-bit object if we didn't find anything.
17651if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17652}'`; fi
17653else
17654  echo "$as_me: failed program was:" >&5
17655sed 's/^/| /' conftest.$ac_ext >&5
17656
17657
17658fi
17659
17660rm -f core conftest.err conftest.$ac_objext \
17661      conftest$ac_exeext conftest.$ac_ext
17662if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17663
17664	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17665	  # Warning - without using the other run time loading flags,
17666	  # -berok will link without error, but may produce a broken library.
17667	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17668	  allow_undefined_flag_GCJ=' ${wl}-berok'
17669	  # Exported symbols can be pulled into shared objects from archives
17670	  whole_archive_flag_spec_GCJ='$convenience'
17671	  archive_cmds_need_lc_GCJ=yes
17672	  # This is similar to how AIX traditionally builds its shared libraries.
17673	  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'
17674	fi
17675      fi
17676      ;;
17677
17678    amigaos*)
17679      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)'
17680      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17681      hardcode_minus_L_GCJ=yes
17682      # see comment about different semantics on the GNU ld section
17683      ld_shlibs_GCJ=no
17684      ;;
17685
17686    bsdi[45]*)
17687      export_dynamic_flag_spec_GCJ=-rdynamic
17688      ;;
17689
17690    cygwin* | mingw* | pw32*)
17691      # When not using gcc, we currently assume that we are using
17692      # Microsoft Visual C++.
17693      # hardcode_libdir_flag_spec is actually meaningless, as there is
17694      # no search path for DLLs.
17695      hardcode_libdir_flag_spec_GCJ=' '
17696      allow_undefined_flag_GCJ=unsupported
17697      # Tell ltmain to make .lib files, not .a files.
17698      libext=lib
17699      # Tell ltmain to make .dll files, not .so files.
17700      shrext_cmds=".dll"
17701      # FIXME: Setting linknames here is a bad hack.
17702      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17703      # The linker will automatically build a .lib file if we build a DLL.
17704      old_archive_From_new_cmds_GCJ='true'
17705      # FIXME: Should let the user specify the lib program.
17706      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17707      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17708      enable_shared_with_static_runtimes_GCJ=yes
17709      ;;
17710
17711    darwin* | rhapsody*)
17712      case $host_os in
17713        rhapsody* | darwin1.[012])
17714         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17715         ;;
17716       *) # Darwin 1.3 on
17717         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17718           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17719         else
17720           case ${MACOSX_DEPLOYMENT_TARGET} in
17721             10.[012])
17722               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17723               ;;
17724             10.*)
17725               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17726               ;;
17727           esac
17728         fi
17729         ;;
17730      esac
17731      archive_cmds_need_lc_GCJ=no
17732      hardcode_direct_GCJ=no
17733      hardcode_automatic_GCJ=yes
17734      hardcode_shlibpath_var_GCJ=unsupported
17735      whole_archive_flag_spec_GCJ=''
17736      link_all_deplibs_GCJ=yes
17737    if test "$GCC" = yes ; then
17738    	output_verbose_link_cmd='echo'
17739        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17740      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17741      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17742      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}'
17743      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}'
17744    else
17745      case $cc_basename in
17746        xlc*)
17747         output_verbose_link_cmd='echo'
17748         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17749         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17750          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17751         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17752          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}'
17753          ;;
17754       *)
17755         ld_shlibs_GCJ=no
17756          ;;
17757      esac
17758    fi
17759      ;;
17760
17761    dgux*)
17762      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17763      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17764      hardcode_shlibpath_var_GCJ=no
17765      ;;
17766
17767    freebsd1*)
17768      ld_shlibs_GCJ=no
17769      ;;
17770
17771    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17772    # support.  Future versions do this automatically, but an explicit c++rt0.o
17773    # does not break anything, and helps significantly (at the cost of a little
17774    # extra space).
17775    freebsd2.2*)
17776      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17777      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17778      hardcode_direct_GCJ=yes
17779      hardcode_shlibpath_var_GCJ=no
17780      ;;
17781
17782    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17783    freebsd2*)
17784      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17785      hardcode_direct_GCJ=yes
17786      hardcode_minus_L_GCJ=yes
17787      hardcode_shlibpath_var_GCJ=no
17788      ;;
17789
17790    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17791    freebsd* | dragonfly*)
17792      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17793      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17794      hardcode_direct_GCJ=yes
17795      hardcode_shlibpath_var_GCJ=no
17796      ;;
17797
17798    hpux9*)
17799      if test "$GCC" = yes; then
17800	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'
17801      else
17802	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'
17803      fi
17804      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17805      hardcode_libdir_separator_GCJ=:
17806      hardcode_direct_GCJ=yes
17807
17808      # hardcode_minus_L: Not really in the search PATH,
17809      # but as the default location of the library.
17810      hardcode_minus_L_GCJ=yes
17811      export_dynamic_flag_spec_GCJ='${wl}-E'
17812      ;;
17813
17814    hpux10*)
17815      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17816	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17817      else
17818	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17819      fi
17820      if test "$with_gnu_ld" = no; then
17821	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17822	hardcode_libdir_separator_GCJ=:
17823
17824	hardcode_direct_GCJ=yes
17825	export_dynamic_flag_spec_GCJ='${wl}-E'
17826
17827	# hardcode_minus_L: Not really in the search PATH,
17828	# but as the default location of the library.
17829	hardcode_minus_L_GCJ=yes
17830      fi
17831      ;;
17832
17833    hpux11*)
17834      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17835	case $host_cpu in
17836	hppa*64*)
17837	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17838	  ;;
17839	ia64*)
17840	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17841	  ;;
17842	*)
17843	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17844	  ;;
17845	esac
17846      else
17847	case $host_cpu in
17848	hppa*64*)
17849	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17850	  ;;
17851	ia64*)
17852	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17853	  ;;
17854	*)
17855	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17856	  ;;
17857	esac
17858      fi
17859      if test "$with_gnu_ld" = no; then
17860	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17861	hardcode_libdir_separator_GCJ=:
17862
17863	case $host_cpu in
17864	hppa*64*|ia64*)
17865	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17866	  hardcode_direct_GCJ=no
17867	  hardcode_shlibpath_var_GCJ=no
17868	  ;;
17869	*)
17870	  hardcode_direct_GCJ=yes
17871	  export_dynamic_flag_spec_GCJ='${wl}-E'
17872
17873	  # hardcode_minus_L: Not really in the search PATH,
17874	  # but as the default location of the library.
17875	  hardcode_minus_L_GCJ=yes
17876	  ;;
17877	esac
17878      fi
17879      ;;
17880
17881    irix5* | irix6* | nonstopux*)
17882      if test "$GCC" = yes; then
17883	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'
17884      else
17885	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'
17886	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17887      fi
17888      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17889      hardcode_libdir_separator_GCJ=:
17890      link_all_deplibs_GCJ=yes
17891      ;;
17892
17893    netbsd* | netbsdelf*-gnu)
17894      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17895	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17896      else
17897	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17898      fi
17899      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17900      hardcode_direct_GCJ=yes
17901      hardcode_shlibpath_var_GCJ=no
17902      ;;
17903
17904    newsos6)
17905      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17906      hardcode_direct_GCJ=yes
17907      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17908      hardcode_libdir_separator_GCJ=:
17909      hardcode_shlibpath_var_GCJ=no
17910      ;;
17911
17912    openbsd*)
17913      hardcode_direct_GCJ=yes
17914      hardcode_shlibpath_var_GCJ=no
17915      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17916	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17917	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17918	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17919	export_dynamic_flag_spec_GCJ='${wl}-E'
17920      else
17921       case $host_os in
17922	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17923	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17924	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17925	   ;;
17926	 *)
17927	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17928	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17929	   ;;
17930       esac
17931      fi
17932      ;;
17933
17934    os2*)
17935      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17936      hardcode_minus_L_GCJ=yes
17937      allow_undefined_flag_GCJ=unsupported
17938      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'
17939      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17940      ;;
17941
17942    osf3*)
17943      if test "$GCC" = yes; then
17944	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17945	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'
17946      else
17947	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17948	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'
17949      fi
17950      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17951      hardcode_libdir_separator_GCJ=:
17952      ;;
17953
17954    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17955      if test "$GCC" = yes; then
17956	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17957	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'
17958	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17959      else
17960	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17961	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'
17962	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~
17963	$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'
17964
17965	# Both c and cxx compiler support -rpath directly
17966	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17967      fi
17968      hardcode_libdir_separator_GCJ=:
17969      ;;
17970
17971    solaris*)
17972      no_undefined_flag_GCJ=' -z text'
17973      if test "$GCC" = yes; then
17974	wlarc='${wl}'
17975	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17976	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17977	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17978      else
17979	wlarc=''
17980	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17981	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17982  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17983      fi
17984      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17985      hardcode_shlibpath_var_GCJ=no
17986      case $host_os in
17987      solaris2.[0-5] | solaris2.[0-5].*) ;;
17988      *)
17989 	# The compiler driver will combine linker options so we
17990 	# cannot just pass the convience library names through
17991 	# without $wl, iff we do not link with $LD.
17992 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17993 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17994 	case $wlarc in
17995 	'')
17996 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17997 	*)
17998 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17999 	esac ;;
18000      esac
18001      link_all_deplibs_GCJ=yes
18002      ;;
18003
18004    sunos4*)
18005      if test "x$host_vendor" = xsequent; then
18006	# Use $CC to link under sequent, because it throws in some extra .o
18007	# files that make .init and .fini sections work.
18008	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18009      else
18010	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18011      fi
18012      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18013      hardcode_direct_GCJ=yes
18014      hardcode_minus_L_GCJ=yes
18015      hardcode_shlibpath_var_GCJ=no
18016      ;;
18017
18018    sysv4)
18019      case $host_vendor in
18020	sni)
18021	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18022	  hardcode_direct_GCJ=yes # is this really true???
18023	;;
18024	siemens)
18025	  ## LD is ld it makes a PLAMLIB
18026	  ## CC just makes a GrossModule.
18027	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18028	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18029	  hardcode_direct_GCJ=no
18030        ;;
18031	motorola)
18032	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18033	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18034	;;
18035      esac
18036      runpath_var='LD_RUN_PATH'
18037      hardcode_shlibpath_var_GCJ=no
18038      ;;
18039
18040    sysv4.3*)
18041      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18042      hardcode_shlibpath_var_GCJ=no
18043      export_dynamic_flag_spec_GCJ='-Bexport'
18044      ;;
18045
18046    sysv4*MP*)
18047      if test -d /usr/nec; then
18048	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18049	hardcode_shlibpath_var_GCJ=no
18050	runpath_var=LD_RUN_PATH
18051	hardcode_runpath_var=yes
18052	ld_shlibs_GCJ=yes
18053      fi
18054      ;;
18055
18056    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18057      no_undefined_flag_GCJ='${wl}-z,text'
18058      archive_cmds_need_lc_GCJ=no
18059      hardcode_shlibpath_var_GCJ=no
18060      runpath_var='LD_RUN_PATH'
18061
18062      if test "$GCC" = yes; then
18063	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18064	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18065      else
18066	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18067	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18068      fi
18069      ;;
18070
18071    sysv5* | sco3.2v5* | sco5v6*)
18072      # Note: We can NOT use -z defs as we might desire, because we do not
18073      # link with -lc, and that would cause any symbols used from libc to
18074      # always be unresolved, which means just about no library would
18075      # ever link correctly.  If we're not using GNU ld we use -z text
18076      # though, which does catch some bad symbols but isn't as heavy-handed
18077      # as -z defs.
18078      no_undefined_flag_GCJ='${wl}-z,text'
18079      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18080      archive_cmds_need_lc_GCJ=no
18081      hardcode_shlibpath_var_GCJ=no
18082      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18083      hardcode_libdir_separator_GCJ=':'
18084      link_all_deplibs_GCJ=yes
18085      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18086      runpath_var='LD_RUN_PATH'
18087
18088      if test "$GCC" = yes; then
18089	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18090	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18091      else
18092	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18093	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18094      fi
18095      ;;
18096
18097    uts4*)
18098      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18099      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18100      hardcode_shlibpath_var_GCJ=no
18101      ;;
18102
18103    *)
18104      ld_shlibs_GCJ=no
18105      ;;
18106    esac
18107  fi
18108
18109{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18110echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18111test "$ld_shlibs_GCJ" = no && can_build_shared=no
18112
18113#
18114# Do we need to explicitly link libc?
18115#
18116case "x$archive_cmds_need_lc_GCJ" in
18117x|xyes)
18118  # Assume -lc should be added
18119  archive_cmds_need_lc_GCJ=yes
18120
18121  if test "$enable_shared" = yes && test "$GCC" = yes; then
18122    case $archive_cmds_GCJ in
18123    *'~'*)
18124      # FIXME: we may have to deal with multi-command sequences.
18125      ;;
18126    '$CC '*)
18127      # Test whether the compiler implicitly links with -lc since on some
18128      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18129      # to ld, don't add -lc before -lgcc.
18130      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18131echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18132      $rm conftest*
18133      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18134
18135      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18136  (eval $ac_compile) 2>&5
18137  ac_status=$?
18138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139  (exit $ac_status); } 2>conftest.err; then
18140        soname=conftest
18141        lib=conftest
18142        libobjs=conftest.$ac_objext
18143        deplibs=
18144        wl=$lt_prog_compiler_wl_GCJ
18145	pic_flag=$lt_prog_compiler_pic_GCJ
18146        compiler_flags=-v
18147        linker_flags=-v
18148        verstring=
18149        output_objdir=.
18150        libname=conftest
18151        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18152        allow_undefined_flag_GCJ=
18153        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18154  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18155  ac_status=$?
18156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157  (exit $ac_status); }
18158        then
18159	  archive_cmds_need_lc_GCJ=no
18160        else
18161	  archive_cmds_need_lc_GCJ=yes
18162        fi
18163        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18164      else
18165        cat conftest.err 1>&5
18166      fi
18167      $rm conftest*
18168      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18169echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18170      ;;
18171    esac
18172  fi
18173  ;;
18174esac
18175
18176{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18177echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18178library_names_spec=
18179libname_spec='lib$name'
18180soname_spec=
18181shrext_cmds=".so"
18182postinstall_cmds=
18183postuninstall_cmds=
18184finish_cmds=
18185finish_eval=
18186shlibpath_var=
18187shlibpath_overrides_runpath=unknown
18188version_type=none
18189dynamic_linker="$host_os ld.so"
18190sys_lib_dlsearch_path_spec="/lib /usr/lib"
18191if test "$GCC" = yes; then
18192  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18193  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18194    # if the path contains ";" then we assume it to be the separator
18195    # otherwise default to the standard path separator (i.e. ":") - it is
18196    # assumed that no part of a normal pathname contains ";" but that should
18197    # okay in the real world where ";" in dirpaths is itself problematic.
18198    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18199  else
18200    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18201  fi
18202else
18203  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18204fi
18205need_lib_prefix=unknown
18206hardcode_into_libs=no
18207
18208# when you set need_version to no, make sure it does not cause -set_version
18209# flags to be left without arguments
18210need_version=unknown
18211
18212case $host_os in
18213aix3*)
18214  version_type=linux
18215  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18216  shlibpath_var=LIBPATH
18217
18218  # AIX 3 has no versioning support, so we append a major version to the name.
18219  soname_spec='${libname}${release}${shared_ext}$major'
18220  ;;
18221
18222aix4* | aix5*)
18223  version_type=linux
18224  need_lib_prefix=no
18225  need_version=no
18226  hardcode_into_libs=yes
18227  if test "$host_cpu" = ia64; then
18228    # AIX 5 supports IA64
18229    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18230    shlibpath_var=LD_LIBRARY_PATH
18231  else
18232    # With GCC up to 2.95.x, collect2 would create an import file
18233    # for dependence libraries.  The import file would start with
18234    # the line `#! .'.  This would cause the generated library to
18235    # depend on `.', always an invalid library.  This was fixed in
18236    # development snapshots of GCC prior to 3.0.
18237    case $host_os in
18238      aix4 | aix4.[01] | aix4.[01].*)
18239      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18240	   echo ' yes '
18241	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18242	:
18243      else
18244	can_build_shared=no
18245      fi
18246      ;;
18247    esac
18248    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18249    # soname into executable. Probably we can add versioning support to
18250    # collect2, so additional links can be useful in future.
18251    if test "$aix_use_runtimelinking" = yes; then
18252      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18253      # instead of lib<name>.a to let people know that these are not
18254      # typical AIX shared libraries.
18255      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18256    else
18257      # We preserve .a as extension for shared libraries through AIX4.2
18258      # and later when we are not doing run time linking.
18259      library_names_spec='${libname}${release}.a $libname.a'
18260      soname_spec='${libname}${release}${shared_ext}$major'
18261    fi
18262    shlibpath_var=LIBPATH
18263  fi
18264  ;;
18265
18266amigaos*)
18267  library_names_spec='$libname.ixlibrary $libname.a'
18268  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18269  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'
18270  ;;
18271
18272beos*)
18273  library_names_spec='${libname}${shared_ext}'
18274  dynamic_linker="$host_os ld.so"
18275  shlibpath_var=LIBRARY_PATH
18276  ;;
18277
18278bsdi[45]*)
18279  version_type=linux
18280  need_version=no
18281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282  soname_spec='${libname}${release}${shared_ext}$major'
18283  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18284  shlibpath_var=LD_LIBRARY_PATH
18285  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18286  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18287  # the default ld.so.conf also contains /usr/contrib/lib and
18288  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18289  # libtool to hard-code these into programs
18290  ;;
18291
18292cygwin* | mingw* | pw32*)
18293  version_type=windows
18294  shrext_cmds=".dll"
18295  need_version=no
18296  need_lib_prefix=no
18297
18298  case $GCC,$host_os in
18299  yes,cygwin* | yes,mingw* | yes,pw32*)
18300    library_names_spec='$libname.dll.a'
18301    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18302    postinstall_cmds='base_file=`basename \${file}`~
18303      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18304      dldir=$destdir/`dirname \$dlpath`~
18305      test -d \$dldir || mkdir -p \$dldir~
18306      $install_prog $dir/$dlname \$dldir/$dlname~
18307      chmod a+x \$dldir/$dlname'
18308    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18309      dlpath=$dir/\$dldll~
18310       $rm \$dlpath'
18311    shlibpath_overrides_runpath=yes
18312
18313    case $host_os in
18314    cygwin*)
18315      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18316      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18317      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18318      ;;
18319    mingw*)
18320      # MinGW DLLs use traditional 'lib' prefix
18321      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18322      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18323      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18324        # It is most probably a Windows format PATH printed by
18325        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18326        # path with ; separators, and with drive letters. We can handle the
18327        # drive letters (cygwin fileutils understands them), so leave them,
18328        # especially as we might pass files found there to a mingw objdump,
18329        # which wouldn't understand a cygwinified path. Ahh.
18330        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18331      else
18332        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18333      fi
18334      ;;
18335    pw32*)
18336      # pw32 DLLs use 'pw' prefix rather than 'lib'
18337      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18338      ;;
18339    esac
18340    ;;
18341
18342  *)
18343    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18344    ;;
18345  esac
18346  dynamic_linker='Win32 ld.exe'
18347  # FIXME: first we should search . and the directory the executable is in
18348  shlibpath_var=PATH
18349  ;;
18350
18351darwin* | rhapsody*)
18352  dynamic_linker="$host_os dyld"
18353  version_type=darwin
18354  need_lib_prefix=no
18355  need_version=no
18356  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18357  soname_spec='${libname}${release}${major}$shared_ext'
18358  shlibpath_overrides_runpath=yes
18359  shlibpath_var=DYLD_LIBRARY_PATH
18360  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18361  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18362  if test "$GCC" = yes; then
18363    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18364  else
18365    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18366  fi
18367  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18368  ;;
18369
18370dgux*)
18371  version_type=linux
18372  need_lib_prefix=no
18373  need_version=no
18374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18375  soname_spec='${libname}${release}${shared_ext}$major'
18376  shlibpath_var=LD_LIBRARY_PATH
18377  ;;
18378
18379freebsd1*)
18380  dynamic_linker=no
18381  ;;
18382
18383freebsd* | dragonfly*)
18384  # DragonFly does not have aout.  When/if they implement a new
18385  # versioning mechanism, adjust this.
18386  if test -x /usr/bin/objformat; then
18387    objformat=`/usr/bin/objformat`
18388  else
18389    case $host_os in
18390    freebsd[123]*) objformat=aout ;;
18391    *) objformat=elf ;;
18392    esac
18393  fi
18394  version_type=freebsd-$objformat
18395  case $version_type in
18396    freebsd-elf*)
18397      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18398      need_version=no
18399      need_lib_prefix=no
18400      ;;
18401    freebsd-*)
18402      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18403      need_version=yes
18404      ;;
18405  esac
18406  shlibpath_var=LD_LIBRARY_PATH
18407  case $host_os in
18408  freebsd2*)
18409    shlibpath_overrides_runpath=yes
18410    ;;
18411  freebsd3.[01]* | freebsdelf3.[01]*)
18412    shlibpath_overrides_runpath=yes
18413    hardcode_into_libs=yes
18414    ;;
18415  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18416  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18417    shlibpath_overrides_runpath=no
18418    hardcode_into_libs=yes
18419    ;;
18420  freebsd*) # from 4.6 on
18421    shlibpath_overrides_runpath=yes
18422    hardcode_into_libs=yes
18423    ;;
18424  esac
18425  ;;
18426
18427gnu*)
18428  version_type=linux
18429  need_lib_prefix=no
18430  need_version=no
18431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18432  soname_spec='${libname}${release}${shared_ext}$major'
18433  shlibpath_var=LD_LIBRARY_PATH
18434  hardcode_into_libs=yes
18435  ;;
18436
18437hpux9* | hpux10* | hpux11*)
18438  # Give a soname corresponding to the major version so that dld.sl refuses to
18439  # link against other versions.
18440  version_type=sunos
18441  need_lib_prefix=no
18442  need_version=no
18443  case $host_cpu in
18444  ia64*)
18445    shrext_cmds='.so'
18446    hardcode_into_libs=yes
18447    dynamic_linker="$host_os dld.so"
18448    shlibpath_var=LD_LIBRARY_PATH
18449    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18450    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451    soname_spec='${libname}${release}${shared_ext}$major'
18452    if test "X$HPUX_IA64_MODE" = X32; then
18453      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18454    else
18455      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18456    fi
18457    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18458    ;;
18459   hppa*64*)
18460     shrext_cmds='.sl'
18461     hardcode_into_libs=yes
18462     dynamic_linker="$host_os dld.sl"
18463     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18464     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18466     soname_spec='${libname}${release}${shared_ext}$major'
18467     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18468     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18469     ;;
18470   *)
18471    shrext_cmds='.sl'
18472    dynamic_linker="$host_os dld.sl"
18473    shlibpath_var=SHLIB_PATH
18474    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18475    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18476    soname_spec='${libname}${release}${shared_ext}$major'
18477    ;;
18478  esac
18479  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18480  postinstall_cmds='chmod 555 $lib'
18481  ;;
18482
18483interix3*)
18484  version_type=linux
18485  need_lib_prefix=no
18486  need_version=no
18487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18488  soname_spec='${libname}${release}${shared_ext}$major'
18489  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18490  shlibpath_var=LD_LIBRARY_PATH
18491  shlibpath_overrides_runpath=no
18492  hardcode_into_libs=yes
18493  ;;
18494
18495irix5* | irix6* | nonstopux*)
18496  case $host_os in
18497    nonstopux*) version_type=nonstopux ;;
18498    *)
18499	if test "$lt_cv_prog_gnu_ld" = yes; then
18500		version_type=linux
18501	else
18502		version_type=irix
18503	fi ;;
18504  esac
18505  need_lib_prefix=no
18506  need_version=no
18507  soname_spec='${libname}${release}${shared_ext}$major'
18508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18509  case $host_os in
18510  irix5* | nonstopux*)
18511    libsuff= shlibsuff=
18512    ;;
18513  *)
18514    case $LD in # libtool.m4 will add one of these switches to LD
18515    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18516      libsuff= shlibsuff= libmagic=32-bit;;
18517    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18518      libsuff=32 shlibsuff=N32 libmagic=N32;;
18519    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18520      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18521    *) libsuff= shlibsuff= libmagic=never-match;;
18522    esac
18523    ;;
18524  esac
18525  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18526  shlibpath_overrides_runpath=no
18527  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18528  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18529  hardcode_into_libs=yes
18530  ;;
18531
18532# No shared lib support for Linux oldld, aout, or coff.
18533linux*oldld* | linux*aout* | linux*coff*)
18534  dynamic_linker=no
18535  ;;
18536
18537# This must be Linux ELF.
18538linux* | k*bsd*-gnu)
18539  version_type=linux
18540  need_lib_prefix=no
18541  need_version=no
18542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18543  soname_spec='${libname}${release}${shared_ext}$major'
18544  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18545  shlibpath_var=LD_LIBRARY_PATH
18546  shlibpath_overrides_runpath=no
18547  # This implies no fast_install, which is unacceptable.
18548  # Some rework will be needed to allow for fast_install
18549  # before this can be enabled.
18550  hardcode_into_libs=yes
18551
18552  # Append ld.so.conf contents to the search path
18553  if test -f /etc/ld.so.conf; then
18554    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18555    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18556  fi
18557
18558  # We used to test for /lib/ld.so.1 and disable shared libraries on
18559  # powerpc, because MkLinux only supported shared libraries with the
18560  # GNU dynamic linker.  Since this was broken with cross compilers,
18561  # most powerpc-linux boxes support dynamic linking these days and
18562  # people can always --disable-shared, the test was removed, and we
18563  # assume the GNU/Linux dynamic linker is in use.
18564  dynamic_linker='GNU/Linux ld.so'
18565  ;;
18566
18567netbsdelf*-gnu)
18568  version_type=linux
18569  need_lib_prefix=no
18570  need_version=no
18571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18572  soname_spec='${libname}${release}${shared_ext}$major'
18573  shlibpath_var=LD_LIBRARY_PATH
18574  shlibpath_overrides_runpath=no
18575  hardcode_into_libs=yes
18576  dynamic_linker='NetBSD ld.elf_so'
18577  ;;
18578
18579netbsd*)
18580  version_type=sunos
18581  need_lib_prefix=no
18582  need_version=no
18583  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18584    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18585    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18586    dynamic_linker='NetBSD (a.out) ld.so'
18587  else
18588    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18589    soname_spec='${libname}${release}${shared_ext}$major'
18590    dynamic_linker='NetBSD ld.elf_so'
18591  fi
18592  shlibpath_var=LD_LIBRARY_PATH
18593  shlibpath_overrides_runpath=yes
18594  hardcode_into_libs=yes
18595  ;;
18596
18597newsos6)
18598  version_type=linux
18599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600  shlibpath_var=LD_LIBRARY_PATH
18601  shlibpath_overrides_runpath=yes
18602  ;;
18603
18604nto-qnx*)
18605  version_type=linux
18606  need_lib_prefix=no
18607  need_version=no
18608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18609  soname_spec='${libname}${release}${shared_ext}$major'
18610  shlibpath_var=LD_LIBRARY_PATH
18611  shlibpath_overrides_runpath=yes
18612  ;;
18613
18614openbsd*)
18615  version_type=sunos
18616  sys_lib_dlsearch_path_spec="/usr/lib"
18617  need_lib_prefix=no
18618  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18619  case $host_os in
18620    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18621    *)                         need_version=no  ;;
18622  esac
18623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18624  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18625  shlibpath_var=LD_LIBRARY_PATH
18626  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18627    case $host_os in
18628      openbsd2.[89] | openbsd2.[89].*)
18629	shlibpath_overrides_runpath=no
18630	;;
18631      *)
18632	shlibpath_overrides_runpath=yes
18633	;;
18634      esac
18635  else
18636    shlibpath_overrides_runpath=yes
18637  fi
18638  ;;
18639
18640os2*)
18641  libname_spec='$name'
18642  shrext_cmds=".dll"
18643  need_lib_prefix=no
18644  library_names_spec='$libname${shared_ext} $libname.a'
18645  dynamic_linker='OS/2 ld.exe'
18646  shlibpath_var=LIBPATH
18647  ;;
18648
18649osf3* | osf4* | osf5*)
18650  version_type=osf
18651  need_lib_prefix=no
18652  need_version=no
18653  soname_spec='${libname}${release}${shared_ext}$major'
18654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655  shlibpath_var=LD_LIBRARY_PATH
18656  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18657  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18658  ;;
18659
18660solaris*)
18661  version_type=linux
18662  need_lib_prefix=no
18663  need_version=no
18664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18665  soname_spec='${libname}${release}${shared_ext}$major'
18666  shlibpath_var=LD_LIBRARY_PATH
18667  shlibpath_overrides_runpath=yes
18668  hardcode_into_libs=yes
18669  # ldd complains unless libraries are executable
18670  postinstall_cmds='chmod +x $lib'
18671  ;;
18672
18673sunos4*)
18674  version_type=sunos
18675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18676  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18677  shlibpath_var=LD_LIBRARY_PATH
18678  shlibpath_overrides_runpath=yes
18679  if test "$with_gnu_ld" = yes; then
18680    need_lib_prefix=no
18681  fi
18682  need_version=yes
18683  ;;
18684
18685sysv4 | sysv4.3*)
18686  version_type=linux
18687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688  soname_spec='${libname}${release}${shared_ext}$major'
18689  shlibpath_var=LD_LIBRARY_PATH
18690  case $host_vendor in
18691    sni)
18692      shlibpath_overrides_runpath=no
18693      need_lib_prefix=no
18694      export_dynamic_flag_spec='${wl}-Blargedynsym'
18695      runpath_var=LD_RUN_PATH
18696      ;;
18697    siemens)
18698      need_lib_prefix=no
18699      ;;
18700    motorola)
18701      need_lib_prefix=no
18702      need_version=no
18703      shlibpath_overrides_runpath=no
18704      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18705      ;;
18706  esac
18707  ;;
18708
18709sysv4*MP*)
18710  if test -d /usr/nec ;then
18711    version_type=linux
18712    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18713    soname_spec='$libname${shared_ext}.$major'
18714    shlibpath_var=LD_LIBRARY_PATH
18715  fi
18716  ;;
18717
18718sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18719  version_type=freebsd-elf
18720  need_lib_prefix=no
18721  need_version=no
18722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18723  soname_spec='${libname}${release}${shared_ext}$major'
18724  shlibpath_var=LD_LIBRARY_PATH
18725  hardcode_into_libs=yes
18726  if test "$with_gnu_ld" = yes; then
18727    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18728    shlibpath_overrides_runpath=no
18729  else
18730    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18731    shlibpath_overrides_runpath=yes
18732    case $host_os in
18733      sco3.2v5*)
18734        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18735	;;
18736    esac
18737  fi
18738  sys_lib_dlsearch_path_spec='/usr/lib'
18739  ;;
18740
18741uts4*)
18742  version_type=linux
18743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18744  soname_spec='${libname}${release}${shared_ext}$major'
18745  shlibpath_var=LD_LIBRARY_PATH
18746  ;;
18747
18748*)
18749  dynamic_linker=no
18750  ;;
18751esac
18752{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18753echo "${ECHO_T}$dynamic_linker" >&6; }
18754test "$dynamic_linker" = no && can_build_shared=no
18755
18756variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18757if test "$GCC" = yes; then
18758  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18759fi
18760
18761{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18762echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18763hardcode_action_GCJ=
18764if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18765   test -n "$runpath_var_GCJ" || \
18766   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18767
18768  # We can hardcode non-existant directories.
18769  if test "$hardcode_direct_GCJ" != no &&
18770     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18771     # have to relink, otherwise we might link with an installed library
18772     # when we should be linking with a yet-to-be-installed one
18773     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18774     test "$hardcode_minus_L_GCJ" != no; then
18775    # Linking always hardcodes the temporary library directory.
18776    hardcode_action_GCJ=relink
18777  else
18778    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18779    hardcode_action_GCJ=immediate
18780  fi
18781else
18782  # We cannot hardcode anything, or else we can only hardcode existing
18783  # directories.
18784  hardcode_action_GCJ=unsupported
18785fi
18786{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18787echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18788
18789if test "$hardcode_action_GCJ" = relink; then
18790  # Fast installation is not supported
18791  enable_fast_install=no
18792elif test "$shlibpath_overrides_runpath" = yes ||
18793     test "$enable_shared" = no; then
18794  # Fast installation is not necessary
18795  enable_fast_install=needless
18796fi
18797
18798
18799# The else clause should only fire when bootstrapping the
18800# libtool distribution, otherwise you forgot to ship ltmain.sh
18801# with your package, and you will get complaints that there are
18802# no rules to generate ltmain.sh.
18803if test -f "$ltmain"; then
18804  # See if we are running on zsh, and set the options which allow our commands through
18805  # without removal of \ escapes.
18806  if test -n "${ZSH_VERSION+set}" ; then
18807    setopt NO_GLOB_SUBST
18808  fi
18809  # Now quote all the things that may contain metacharacters while being
18810  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18811  # variables and quote the copies for generation of the libtool script.
18812  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18813    SED SHELL STRIP \
18814    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18815    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18816    deplibs_check_method reload_flag reload_cmds need_locks \
18817    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18818    lt_cv_sys_global_symbol_to_c_name_address \
18819    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18820    old_postinstall_cmds old_postuninstall_cmds \
18821    compiler_GCJ \
18822    CC_GCJ \
18823    LD_GCJ \
18824    lt_prog_compiler_wl_GCJ \
18825    lt_prog_compiler_pic_GCJ \
18826    lt_prog_compiler_static_GCJ \
18827    lt_prog_compiler_no_builtin_flag_GCJ \
18828    export_dynamic_flag_spec_GCJ \
18829    thread_safe_flag_spec_GCJ \
18830    whole_archive_flag_spec_GCJ \
18831    enable_shared_with_static_runtimes_GCJ \
18832    old_archive_cmds_GCJ \
18833    old_archive_from_new_cmds_GCJ \
18834    predep_objects_GCJ \
18835    postdep_objects_GCJ \
18836    predeps_GCJ \
18837    postdeps_GCJ \
18838    compiler_lib_search_path_GCJ \
18839    archive_cmds_GCJ \
18840    archive_expsym_cmds_GCJ \
18841    postinstall_cmds_GCJ \
18842    postuninstall_cmds_GCJ \
18843    old_archive_from_expsyms_cmds_GCJ \
18844    allow_undefined_flag_GCJ \
18845    no_undefined_flag_GCJ \
18846    export_symbols_cmds_GCJ \
18847    hardcode_libdir_flag_spec_GCJ \
18848    hardcode_libdir_flag_spec_ld_GCJ \
18849    hardcode_libdir_separator_GCJ \
18850    hardcode_automatic_GCJ \
18851    module_cmds_GCJ \
18852    module_expsym_cmds_GCJ \
18853    lt_cv_prog_compiler_c_o_GCJ \
18854    exclude_expsyms_GCJ \
18855    include_expsyms_GCJ; do
18856
18857    case $var in
18858    old_archive_cmds_GCJ | \
18859    old_archive_from_new_cmds_GCJ | \
18860    archive_cmds_GCJ | \
18861    archive_expsym_cmds_GCJ | \
18862    module_cmds_GCJ | \
18863    module_expsym_cmds_GCJ | \
18864    old_archive_from_expsyms_cmds_GCJ | \
18865    export_symbols_cmds_GCJ | \
18866    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18867    postinstall_cmds | postuninstall_cmds | \
18868    old_postinstall_cmds | old_postuninstall_cmds | \
18869    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18870      # Double-quote double-evaled strings.
18871      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18872      ;;
18873    *)
18874      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18875      ;;
18876    esac
18877  done
18878
18879  case $lt_echo in
18880  *'\$0 --fallback-echo"')
18881    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18882    ;;
18883  esac
18884
18885cfgfile="$ofile"
18886
18887  cat <<__EOF__ >> "$cfgfile"
18888# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18889
18890# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18891
18892# Shell to use when invoking shell scripts.
18893SHELL=$lt_SHELL
18894
18895# Whether or not to build shared libraries.
18896build_libtool_libs=$enable_shared
18897
18898# Whether or not to build static libraries.
18899build_old_libs=$enable_static
18900
18901# Whether or not to add -lc for building shared libraries.
18902build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18903
18904# Whether or not to disallow shared libs when runtime libs are static
18905allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18906
18907# Whether or not to optimize for fast installation.
18908fast_install=$enable_fast_install
18909
18910# The host system.
18911host_alias=$host_alias
18912host=$host
18913host_os=$host_os
18914
18915# The build system.
18916build_alias=$build_alias
18917build=$build
18918build_os=$build_os
18919
18920# An echo program that does not interpret backslashes.
18921echo=$lt_echo
18922
18923# The archiver.
18924AR=$lt_AR
18925AR_FLAGS=$lt_AR_FLAGS
18926
18927# A C compiler.
18928LTCC=$lt_LTCC
18929
18930# LTCC compiler flags.
18931LTCFLAGS=$lt_LTCFLAGS
18932
18933# A language-specific compiler.
18934CC=$lt_compiler_GCJ
18935
18936# Is the compiler the GNU C compiler?
18937with_gcc=$GCC_GCJ
18938
18939# An ERE matcher.
18940EGREP=$lt_EGREP
18941
18942# The linker used to build libraries.
18943LD=$lt_LD_GCJ
18944
18945# Whether we need hard or soft links.
18946LN_S=$lt_LN_S
18947
18948# A BSD-compatible nm program.
18949NM=$lt_NM
18950
18951# A symbol stripping program
18952STRIP=$lt_STRIP
18953
18954# Used to examine libraries when file_magic_cmd begins "file"
18955MAGIC_CMD=$MAGIC_CMD
18956
18957# Used on cygwin: DLL creation program.
18958DLLTOOL="$DLLTOOL"
18959
18960# Used on cygwin: object dumper.
18961OBJDUMP="$OBJDUMP"
18962
18963# Used on cygwin: assembler.
18964AS="$AS"
18965
18966# The name of the directory that contains temporary libtool files.
18967objdir=$objdir
18968
18969# How to create reloadable object files.
18970reload_flag=$lt_reload_flag
18971reload_cmds=$lt_reload_cmds
18972
18973# How to pass a linker flag through the compiler.
18974wl=$lt_lt_prog_compiler_wl_GCJ
18975
18976# Object file suffix (normally "o").
18977objext="$ac_objext"
18978
18979# Old archive suffix (normally "a").
18980libext="$libext"
18981
18982# Shared library suffix (normally ".so").
18983shrext_cmds='$shrext_cmds'
18984
18985# Executable file suffix (normally "").
18986exeext="$exeext"
18987
18988# Additional compiler flags for building library objects.
18989pic_flag=$lt_lt_prog_compiler_pic_GCJ
18990pic_mode=$pic_mode
18991
18992# What is the maximum length of a command?
18993max_cmd_len=$lt_cv_sys_max_cmd_len
18994
18995# Does compiler simultaneously support -c and -o options?
18996compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18997
18998# Must we lock files when doing compilation?
18999need_locks=$lt_need_locks
19000
19001# Do we need the lib prefix for modules?
19002need_lib_prefix=$need_lib_prefix
19003
19004# Do we need a version for libraries?
19005need_version=$need_version
19006
19007# Whether dlopen is supported.
19008dlopen_support=$enable_dlopen
19009
19010# Whether dlopen of programs is supported.
19011dlopen_self=$enable_dlopen_self
19012
19013# Whether dlopen of statically linked programs is supported.
19014dlopen_self_static=$enable_dlopen_self_static
19015
19016# Compiler flag to prevent dynamic linking.
19017link_static_flag=$lt_lt_prog_compiler_static_GCJ
19018
19019# Compiler flag to turn off builtin functions.
19020no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19021
19022# Compiler flag to allow reflexive dlopens.
19023export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19024
19025# Compiler flag to generate shared objects directly from archives.
19026whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19027
19028# Compiler flag to generate thread-safe objects.
19029thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19030
19031# Library versioning type.
19032version_type=$version_type
19033
19034# Format of library name prefix.
19035libname_spec=$lt_libname_spec
19036
19037# List of archive names.  First name is the real one, the rest are links.
19038# The last name is the one that the linker finds with -lNAME.
19039library_names_spec=$lt_library_names_spec
19040
19041# The coded name of the library, if different from the real name.
19042soname_spec=$lt_soname_spec
19043
19044# Commands used to build and install an old-style archive.
19045RANLIB=$lt_RANLIB
19046old_archive_cmds=$lt_old_archive_cmds_GCJ
19047old_postinstall_cmds=$lt_old_postinstall_cmds
19048old_postuninstall_cmds=$lt_old_postuninstall_cmds
19049
19050# Create an old-style archive from a shared archive.
19051old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19052
19053# Create a temporary old-style archive to link instead of a shared archive.
19054old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19055
19056# Commands used to build and install a shared archive.
19057archive_cmds=$lt_archive_cmds_GCJ
19058archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19059postinstall_cmds=$lt_postinstall_cmds
19060postuninstall_cmds=$lt_postuninstall_cmds
19061
19062# Commands used to build a loadable module (assumed same as above if empty)
19063module_cmds=$lt_module_cmds_GCJ
19064module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19065
19066# Commands to strip libraries.
19067old_striplib=$lt_old_striplib
19068striplib=$lt_striplib
19069
19070# Dependencies to place before the objects being linked to create a
19071# shared library.
19072predep_objects=$lt_predep_objects_GCJ
19073
19074# Dependencies to place after the objects being linked to create a
19075# shared library.
19076postdep_objects=$lt_postdep_objects_GCJ
19077
19078# Dependencies to place before the objects being linked to create a
19079# shared library.
19080predeps=$lt_predeps_GCJ
19081
19082# Dependencies to place after the objects being linked to create a
19083# shared library.
19084postdeps=$lt_postdeps_GCJ
19085
19086# The library search path used internally by the compiler when linking
19087# a shared library.
19088compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19089
19090# Method to check whether dependent libraries are shared objects.
19091deplibs_check_method=$lt_deplibs_check_method
19092
19093# Command to use when deplibs_check_method == file_magic.
19094file_magic_cmd=$lt_file_magic_cmd
19095
19096# Flag that allows shared libraries with undefined symbols to be built.
19097allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19098
19099# Flag that forces no undefined symbols.
19100no_undefined_flag=$lt_no_undefined_flag_GCJ
19101
19102# Commands used to finish a libtool library installation in a directory.
19103finish_cmds=$lt_finish_cmds
19104
19105# Same as above, but a single script fragment to be evaled but not shown.
19106finish_eval=$lt_finish_eval
19107
19108# Take the output of nm and produce a listing of raw symbols and C names.
19109global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19110
19111# Transform the output of nm in a proper C declaration
19112global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19113
19114# Transform the output of nm in a C name address pair
19115global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19116
19117# This is the shared library runtime path variable.
19118runpath_var=$runpath_var
19119
19120# This is the shared library path variable.
19121shlibpath_var=$shlibpath_var
19122
19123# Is shlibpath searched before the hard-coded library search path?
19124shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19125
19126# How to hardcode a shared library path into an executable.
19127hardcode_action=$hardcode_action_GCJ
19128
19129# Whether we should hardcode library paths into libraries.
19130hardcode_into_libs=$hardcode_into_libs
19131
19132# Flag to hardcode \$libdir into a binary during linking.
19133# This must work even if \$libdir does not exist.
19134hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19135
19136# If ld is used when linking, flag to hardcode \$libdir into
19137# a binary during linking. This must work even if \$libdir does
19138# not exist.
19139hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19140
19141# Whether we need a single -rpath flag with a separated argument.
19142hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19143
19144# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19145# resulting binary.
19146hardcode_direct=$hardcode_direct_GCJ
19147
19148# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19149# resulting binary.
19150hardcode_minus_L=$hardcode_minus_L_GCJ
19151
19152# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19153# the resulting binary.
19154hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19155
19156# Set to yes if building a shared library automatically hardcodes DIR into the library
19157# and all subsequent libraries and executables linked against it.
19158hardcode_automatic=$hardcode_automatic_GCJ
19159
19160# Variables whose values should be saved in libtool wrapper scripts and
19161# restored at relink time.
19162variables_saved_for_relink="$variables_saved_for_relink"
19163
19164# Whether libtool must link a program against all its dependency libraries.
19165link_all_deplibs=$link_all_deplibs_GCJ
19166
19167# Compile-time system search path for libraries
19168sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19169
19170# Run-time system search path for libraries
19171sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19172
19173# Fix the shell variable \$srcfile for the compiler.
19174fix_srcfile_path="$fix_srcfile_path_GCJ"
19175
19176# Set to yes if exported symbols are required.
19177always_export_symbols=$always_export_symbols_GCJ
19178
19179# The commands to list exported symbols.
19180export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19181
19182# The commands to extract the exported symbol list from a shared archive.
19183extract_expsyms_cmds=$lt_extract_expsyms_cmds
19184
19185# Symbols that should not be listed in the preloaded symbols.
19186exclude_expsyms=$lt_exclude_expsyms_GCJ
19187
19188# Symbols that must always be exported.
19189include_expsyms=$lt_include_expsyms_GCJ
19190
19191# ### END LIBTOOL TAG CONFIG: $tagname
19192
19193__EOF__
19194
19195
19196else
19197  # If there is no Makefile yet, we rely on a make rule to execute
19198  # `config.status --recheck' to rerun these tests and create the
19199  # libtool script then.
19200  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19201  if test -f "$ltmain_in"; then
19202    test -f Makefile && make "$ltmain"
19203  fi
19204fi
19205
19206
19207ac_ext=c
19208ac_cpp='$CPP $CPPFLAGS'
19209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19211ac_compiler_gnu=$ac_cv_c_compiler_gnu
19212
19213CC="$lt_save_CC"
19214
19215	else
19216	  tagname=""
19217	fi
19218	;;
19219
19220      RC)
19221
19222
19223# Source file extension for RC test sources.
19224ac_ext=rc
19225
19226# Object file extension for compiled RC test sources.
19227objext=o
19228objext_RC=$objext
19229
19230# Code to be used in simple compile tests
19231lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19232
19233# Code to be used in simple link tests
19234lt_simple_link_test_code="$lt_simple_compile_test_code"
19235
19236# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19237
19238# If no C compiler was specified, use CC.
19239LTCC=${LTCC-"$CC"}
19240
19241# If no C compiler flags were specified, use CFLAGS.
19242LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19243
19244# Allow CC to be a program name with arguments.
19245compiler=$CC
19246
19247
19248# save warnings/boilerplate of simple test code
19249ac_outfile=conftest.$ac_objext
19250printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19251eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19252_lt_compiler_boilerplate=`cat conftest.err`
19253$rm conftest*
19254
19255ac_outfile=conftest.$ac_objext
19256printf "$lt_simple_link_test_code" >conftest.$ac_ext
19257eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19258_lt_linker_boilerplate=`cat conftest.err`
19259$rm conftest*
19260
19261
19262# Allow CC to be a program name with arguments.
19263lt_save_CC="$CC"
19264CC=${RC-"windres"}
19265compiler=$CC
19266compiler_RC=$CC
19267for cc_temp in $compiler""; do
19268  case $cc_temp in
19269    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19270    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19271    \-*) ;;
19272    *) break;;
19273  esac
19274done
19275cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19276
19277lt_cv_prog_compiler_c_o_RC=yes
19278
19279# The else clause should only fire when bootstrapping the
19280# libtool distribution, otherwise you forgot to ship ltmain.sh
19281# with your package, and you will get complaints that there are
19282# no rules to generate ltmain.sh.
19283if test -f "$ltmain"; then
19284  # See if we are running on zsh, and set the options which allow our commands through
19285  # without removal of \ escapes.
19286  if test -n "${ZSH_VERSION+set}" ; then
19287    setopt NO_GLOB_SUBST
19288  fi
19289  # Now quote all the things that may contain metacharacters while being
19290  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19291  # variables and quote the copies for generation of the libtool script.
19292  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19293    SED SHELL STRIP \
19294    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19295    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19296    deplibs_check_method reload_flag reload_cmds need_locks \
19297    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19298    lt_cv_sys_global_symbol_to_c_name_address \
19299    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19300    old_postinstall_cmds old_postuninstall_cmds \
19301    compiler_RC \
19302    CC_RC \
19303    LD_RC \
19304    lt_prog_compiler_wl_RC \
19305    lt_prog_compiler_pic_RC \
19306    lt_prog_compiler_static_RC \
19307    lt_prog_compiler_no_builtin_flag_RC \
19308    export_dynamic_flag_spec_RC \
19309    thread_safe_flag_spec_RC \
19310    whole_archive_flag_spec_RC \
19311    enable_shared_with_static_runtimes_RC \
19312    old_archive_cmds_RC \
19313    old_archive_from_new_cmds_RC \
19314    predep_objects_RC \
19315    postdep_objects_RC \
19316    predeps_RC \
19317    postdeps_RC \
19318    compiler_lib_search_path_RC \
19319    archive_cmds_RC \
19320    archive_expsym_cmds_RC \
19321    postinstall_cmds_RC \
19322    postuninstall_cmds_RC \
19323    old_archive_from_expsyms_cmds_RC \
19324    allow_undefined_flag_RC \
19325    no_undefined_flag_RC \
19326    export_symbols_cmds_RC \
19327    hardcode_libdir_flag_spec_RC \
19328    hardcode_libdir_flag_spec_ld_RC \
19329    hardcode_libdir_separator_RC \
19330    hardcode_automatic_RC \
19331    module_cmds_RC \
19332    module_expsym_cmds_RC \
19333    lt_cv_prog_compiler_c_o_RC \
19334    exclude_expsyms_RC \
19335    include_expsyms_RC; do
19336
19337    case $var in
19338    old_archive_cmds_RC | \
19339    old_archive_from_new_cmds_RC | \
19340    archive_cmds_RC | \
19341    archive_expsym_cmds_RC | \
19342    module_cmds_RC | \
19343    module_expsym_cmds_RC | \
19344    old_archive_from_expsyms_cmds_RC | \
19345    export_symbols_cmds_RC | \
19346    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19347    postinstall_cmds | postuninstall_cmds | \
19348    old_postinstall_cmds | old_postuninstall_cmds | \
19349    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19350      # Double-quote double-evaled strings.
19351      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19352      ;;
19353    *)
19354      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19355      ;;
19356    esac
19357  done
19358
19359  case $lt_echo in
19360  *'\$0 --fallback-echo"')
19361    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19362    ;;
19363  esac
19364
19365cfgfile="$ofile"
19366
19367  cat <<__EOF__ >> "$cfgfile"
19368# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19369
19370# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19371
19372# Shell to use when invoking shell scripts.
19373SHELL=$lt_SHELL
19374
19375# Whether or not to build shared libraries.
19376build_libtool_libs=$enable_shared
19377
19378# Whether or not to build static libraries.
19379build_old_libs=$enable_static
19380
19381# Whether or not to add -lc for building shared libraries.
19382build_libtool_need_lc=$archive_cmds_need_lc_RC
19383
19384# Whether or not to disallow shared libs when runtime libs are static
19385allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19386
19387# Whether or not to optimize for fast installation.
19388fast_install=$enable_fast_install
19389
19390# The host system.
19391host_alias=$host_alias
19392host=$host
19393host_os=$host_os
19394
19395# The build system.
19396build_alias=$build_alias
19397build=$build
19398build_os=$build_os
19399
19400# An echo program that does not interpret backslashes.
19401echo=$lt_echo
19402
19403# The archiver.
19404AR=$lt_AR
19405AR_FLAGS=$lt_AR_FLAGS
19406
19407# A C compiler.
19408LTCC=$lt_LTCC
19409
19410# LTCC compiler flags.
19411LTCFLAGS=$lt_LTCFLAGS
19412
19413# A language-specific compiler.
19414CC=$lt_compiler_RC
19415
19416# Is the compiler the GNU C compiler?
19417with_gcc=$GCC_RC
19418
19419# An ERE matcher.
19420EGREP=$lt_EGREP
19421
19422# The linker used to build libraries.
19423LD=$lt_LD_RC
19424
19425# Whether we need hard or soft links.
19426LN_S=$lt_LN_S
19427
19428# A BSD-compatible nm program.
19429NM=$lt_NM
19430
19431# A symbol stripping program
19432STRIP=$lt_STRIP
19433
19434# Used to examine libraries when file_magic_cmd begins "file"
19435MAGIC_CMD=$MAGIC_CMD
19436
19437# Used on cygwin: DLL creation program.
19438DLLTOOL="$DLLTOOL"
19439
19440# Used on cygwin: object dumper.
19441OBJDUMP="$OBJDUMP"
19442
19443# Used on cygwin: assembler.
19444AS="$AS"
19445
19446# The name of the directory that contains temporary libtool files.
19447objdir=$objdir
19448
19449# How to create reloadable object files.
19450reload_flag=$lt_reload_flag
19451reload_cmds=$lt_reload_cmds
19452
19453# How to pass a linker flag through the compiler.
19454wl=$lt_lt_prog_compiler_wl_RC
19455
19456# Object file suffix (normally "o").
19457objext="$ac_objext"
19458
19459# Old archive suffix (normally "a").
19460libext="$libext"
19461
19462# Shared library suffix (normally ".so").
19463shrext_cmds='$shrext_cmds'
19464
19465# Executable file suffix (normally "").
19466exeext="$exeext"
19467
19468# Additional compiler flags for building library objects.
19469pic_flag=$lt_lt_prog_compiler_pic_RC
19470pic_mode=$pic_mode
19471
19472# What is the maximum length of a command?
19473max_cmd_len=$lt_cv_sys_max_cmd_len
19474
19475# Does compiler simultaneously support -c and -o options?
19476compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19477
19478# Must we lock files when doing compilation?
19479need_locks=$lt_need_locks
19480
19481# Do we need the lib prefix for modules?
19482need_lib_prefix=$need_lib_prefix
19483
19484# Do we need a version for libraries?
19485need_version=$need_version
19486
19487# Whether dlopen is supported.
19488dlopen_support=$enable_dlopen
19489
19490# Whether dlopen of programs is supported.
19491dlopen_self=$enable_dlopen_self
19492
19493# Whether dlopen of statically linked programs is supported.
19494dlopen_self_static=$enable_dlopen_self_static
19495
19496# Compiler flag to prevent dynamic linking.
19497link_static_flag=$lt_lt_prog_compiler_static_RC
19498
19499# Compiler flag to turn off builtin functions.
19500no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19501
19502# Compiler flag to allow reflexive dlopens.
19503export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19504
19505# Compiler flag to generate shared objects directly from archives.
19506whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19507
19508# Compiler flag to generate thread-safe objects.
19509thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19510
19511# Library versioning type.
19512version_type=$version_type
19513
19514# Format of library name prefix.
19515libname_spec=$lt_libname_spec
19516
19517# List of archive names.  First name is the real one, the rest are links.
19518# The last name is the one that the linker finds with -lNAME.
19519library_names_spec=$lt_library_names_spec
19520
19521# The coded name of the library, if different from the real name.
19522soname_spec=$lt_soname_spec
19523
19524# Commands used to build and install an old-style archive.
19525RANLIB=$lt_RANLIB
19526old_archive_cmds=$lt_old_archive_cmds_RC
19527old_postinstall_cmds=$lt_old_postinstall_cmds
19528old_postuninstall_cmds=$lt_old_postuninstall_cmds
19529
19530# Create an old-style archive from a shared archive.
19531old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19532
19533# Create a temporary old-style archive to link instead of a shared archive.
19534old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19535
19536# Commands used to build and install a shared archive.
19537archive_cmds=$lt_archive_cmds_RC
19538archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19539postinstall_cmds=$lt_postinstall_cmds
19540postuninstall_cmds=$lt_postuninstall_cmds
19541
19542# Commands used to build a loadable module (assumed same as above if empty)
19543module_cmds=$lt_module_cmds_RC
19544module_expsym_cmds=$lt_module_expsym_cmds_RC
19545
19546# Commands to strip libraries.
19547old_striplib=$lt_old_striplib
19548striplib=$lt_striplib
19549
19550# Dependencies to place before the objects being linked to create a
19551# shared library.
19552predep_objects=$lt_predep_objects_RC
19553
19554# Dependencies to place after the objects being linked to create a
19555# shared library.
19556postdep_objects=$lt_postdep_objects_RC
19557
19558# Dependencies to place before the objects being linked to create a
19559# shared library.
19560predeps=$lt_predeps_RC
19561
19562# Dependencies to place after the objects being linked to create a
19563# shared library.
19564postdeps=$lt_postdeps_RC
19565
19566# The library search path used internally by the compiler when linking
19567# a shared library.
19568compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19569
19570# Method to check whether dependent libraries are shared objects.
19571deplibs_check_method=$lt_deplibs_check_method
19572
19573# Command to use when deplibs_check_method == file_magic.
19574file_magic_cmd=$lt_file_magic_cmd
19575
19576# Flag that allows shared libraries with undefined symbols to be built.
19577allow_undefined_flag=$lt_allow_undefined_flag_RC
19578
19579# Flag that forces no undefined symbols.
19580no_undefined_flag=$lt_no_undefined_flag_RC
19581
19582# Commands used to finish a libtool library installation in a directory.
19583finish_cmds=$lt_finish_cmds
19584
19585# Same as above, but a single script fragment to be evaled but not shown.
19586finish_eval=$lt_finish_eval
19587
19588# Take the output of nm and produce a listing of raw symbols and C names.
19589global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19590
19591# Transform the output of nm in a proper C declaration
19592global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19593
19594# Transform the output of nm in a C name address pair
19595global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19596
19597# This is the shared library runtime path variable.
19598runpath_var=$runpath_var
19599
19600# This is the shared library path variable.
19601shlibpath_var=$shlibpath_var
19602
19603# Is shlibpath searched before the hard-coded library search path?
19604shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19605
19606# How to hardcode a shared library path into an executable.
19607hardcode_action=$hardcode_action_RC
19608
19609# Whether we should hardcode library paths into libraries.
19610hardcode_into_libs=$hardcode_into_libs
19611
19612# Flag to hardcode \$libdir into a binary during linking.
19613# This must work even if \$libdir does not exist.
19614hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19615
19616# If ld is used when linking, flag to hardcode \$libdir into
19617# a binary during linking. This must work even if \$libdir does
19618# not exist.
19619hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19620
19621# Whether we need a single -rpath flag with a separated argument.
19622hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19623
19624# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19625# resulting binary.
19626hardcode_direct=$hardcode_direct_RC
19627
19628# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19629# resulting binary.
19630hardcode_minus_L=$hardcode_minus_L_RC
19631
19632# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19633# the resulting binary.
19634hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19635
19636# Set to yes if building a shared library automatically hardcodes DIR into the library
19637# and all subsequent libraries and executables linked against it.
19638hardcode_automatic=$hardcode_automatic_RC
19639
19640# Variables whose values should be saved in libtool wrapper scripts and
19641# restored at relink time.
19642variables_saved_for_relink="$variables_saved_for_relink"
19643
19644# Whether libtool must link a program against all its dependency libraries.
19645link_all_deplibs=$link_all_deplibs_RC
19646
19647# Compile-time system search path for libraries
19648sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19649
19650# Run-time system search path for libraries
19651sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19652
19653# Fix the shell variable \$srcfile for the compiler.
19654fix_srcfile_path="$fix_srcfile_path_RC"
19655
19656# Set to yes if exported symbols are required.
19657always_export_symbols=$always_export_symbols_RC
19658
19659# The commands to list exported symbols.
19660export_symbols_cmds=$lt_export_symbols_cmds_RC
19661
19662# The commands to extract the exported symbol list from a shared archive.
19663extract_expsyms_cmds=$lt_extract_expsyms_cmds
19664
19665# Symbols that should not be listed in the preloaded symbols.
19666exclude_expsyms=$lt_exclude_expsyms_RC
19667
19668# Symbols that must always be exported.
19669include_expsyms=$lt_include_expsyms_RC
19670
19671# ### END LIBTOOL TAG CONFIG: $tagname
19672
19673__EOF__
19674
19675
19676else
19677  # If there is no Makefile yet, we rely on a make rule to execute
19678  # `config.status --recheck' to rerun these tests and create the
19679  # libtool script then.
19680  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19681  if test -f "$ltmain_in"; then
19682    test -f Makefile && make "$ltmain"
19683  fi
19684fi
19685
19686
19687ac_ext=c
19688ac_cpp='$CPP $CPPFLAGS'
19689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691ac_compiler_gnu=$ac_cv_c_compiler_gnu
19692
19693CC="$lt_save_CC"
19694
19695	;;
19696
19697      *)
19698	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19699echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19700   { (exit 1); exit 1; }; }
19701	;;
19702      esac
19703
19704      # Append the new tag name to the list of available tags.
19705      if test -n "$tagname" ; then
19706      available_tags="$available_tags $tagname"
19707    fi
19708    fi
19709  done
19710  IFS="$lt_save_ifs"
19711
19712  # Now substitute the updated list of available tags.
19713  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19714    mv "${ofile}T" "$ofile"
19715    chmod +x "$ofile"
19716  else
19717    rm -f "${ofile}T"
19718    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19719echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19720   { (exit 1); exit 1; }; }
19721  fi
19722fi
19723
19724
19725
19726# This can be used to rebuild libtool when needed
19727LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19728
19729# Always use our own libtool.
19730LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19731
19732# Prevent multiple expansion
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753ac_ext=c
19754ac_cpp='$CPP $CPPFLAGS'
19755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19757ac_compiler_gnu=$ac_cv_c_compiler_gnu
19758if test -n "$ac_tool_prefix"; then
19759  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19760set dummy ${ac_tool_prefix}gcc; ac_word=$2
19761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19763if test "${ac_cv_prog_CC+set}" = set; then
19764  echo $ECHO_N "(cached) $ECHO_C" >&6
19765else
19766  if test -n "$CC"; then
19767  ac_cv_prog_CC="$CC" # Let the user override the test.
19768else
19769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19770for as_dir in $PATH
19771do
19772  IFS=$as_save_IFS
19773  test -z "$as_dir" && as_dir=.
19774  for ac_exec_ext in '' $ac_executable_extensions; do
19775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19776    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19778    break 2
19779  fi
19780done
19781done
19782IFS=$as_save_IFS
19783
19784fi
19785fi
19786CC=$ac_cv_prog_CC
19787if test -n "$CC"; then
19788  { echo "$as_me:$LINENO: result: $CC" >&5
19789echo "${ECHO_T}$CC" >&6; }
19790else
19791  { echo "$as_me:$LINENO: result: no" >&5
19792echo "${ECHO_T}no" >&6; }
19793fi
19794
19795
19796fi
19797if test -z "$ac_cv_prog_CC"; then
19798  ac_ct_CC=$CC
19799  # Extract the first word of "gcc", so it can be a program name with args.
19800set dummy gcc; ac_word=$2
19801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19803if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19804  echo $ECHO_N "(cached) $ECHO_C" >&6
19805else
19806  if test -n "$ac_ct_CC"; then
19807  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19808else
19809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19810for as_dir in $PATH
19811do
19812  IFS=$as_save_IFS
19813  test -z "$as_dir" && as_dir=.
19814  for ac_exec_ext in '' $ac_executable_extensions; do
19815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19816    ac_cv_prog_ac_ct_CC="gcc"
19817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19818    break 2
19819  fi
19820done
19821done
19822IFS=$as_save_IFS
19823
19824fi
19825fi
19826ac_ct_CC=$ac_cv_prog_ac_ct_CC
19827if test -n "$ac_ct_CC"; then
19828  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19829echo "${ECHO_T}$ac_ct_CC" >&6; }
19830else
19831  { echo "$as_me:$LINENO: result: no" >&5
19832echo "${ECHO_T}no" >&6; }
19833fi
19834
19835  if test "x$ac_ct_CC" = x; then
19836    CC=""
19837  else
19838    case $cross_compiling:$ac_tool_warned in
19839yes:)
19840{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19841whose name does not start with the host triplet.  If you think this
19842configuration is useful to you, please write to autoconf@gnu.org." >&5
19843echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19844whose name does not start with the host triplet.  If you think this
19845configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19846ac_tool_warned=yes ;;
19847esac
19848    CC=$ac_ct_CC
19849  fi
19850else
19851  CC="$ac_cv_prog_CC"
19852fi
19853
19854if test -z "$CC"; then
19855          if test -n "$ac_tool_prefix"; then
19856    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19857set dummy ${ac_tool_prefix}cc; ac_word=$2
19858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19860if test "${ac_cv_prog_CC+set}" = set; then
19861  echo $ECHO_N "(cached) $ECHO_C" >&6
19862else
19863  if test -n "$CC"; then
19864  ac_cv_prog_CC="$CC" # Let the user override the test.
19865else
19866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19867for as_dir in $PATH
19868do
19869  IFS=$as_save_IFS
19870  test -z "$as_dir" && as_dir=.
19871  for ac_exec_ext in '' $ac_executable_extensions; do
19872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19873    ac_cv_prog_CC="${ac_tool_prefix}cc"
19874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19875    break 2
19876  fi
19877done
19878done
19879IFS=$as_save_IFS
19880
19881fi
19882fi
19883CC=$ac_cv_prog_CC
19884if test -n "$CC"; then
19885  { echo "$as_me:$LINENO: result: $CC" >&5
19886echo "${ECHO_T}$CC" >&6; }
19887else
19888  { echo "$as_me:$LINENO: result: no" >&5
19889echo "${ECHO_T}no" >&6; }
19890fi
19891
19892
19893  fi
19894fi
19895if test -z "$CC"; then
19896  # Extract the first word of "cc", so it can be a program name with args.
19897set dummy cc; ac_word=$2
19898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19900if test "${ac_cv_prog_CC+set}" = set; then
19901  echo $ECHO_N "(cached) $ECHO_C" >&6
19902else
19903  if test -n "$CC"; then
19904  ac_cv_prog_CC="$CC" # Let the user override the test.
19905else
19906  ac_prog_rejected=no
19907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19908for as_dir in $PATH
19909do
19910  IFS=$as_save_IFS
19911  test -z "$as_dir" && as_dir=.
19912  for ac_exec_ext in '' $ac_executable_extensions; do
19913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19914    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19915       ac_prog_rejected=yes
19916       continue
19917     fi
19918    ac_cv_prog_CC="cc"
19919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19920    break 2
19921  fi
19922done
19923done
19924IFS=$as_save_IFS
19925
19926if test $ac_prog_rejected = yes; then
19927  # We found a bogon in the path, so make sure we never use it.
19928  set dummy $ac_cv_prog_CC
19929  shift
19930  if test $# != 0; then
19931    # We chose a different compiler from the bogus one.
19932    # However, it has the same basename, so the bogon will be chosen
19933    # first if we set CC to just the basename; use the full file name.
19934    shift
19935    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19936  fi
19937fi
19938fi
19939fi
19940CC=$ac_cv_prog_CC
19941if test -n "$CC"; then
19942  { echo "$as_me:$LINENO: result: $CC" >&5
19943echo "${ECHO_T}$CC" >&6; }
19944else
19945  { echo "$as_me:$LINENO: result: no" >&5
19946echo "${ECHO_T}no" >&6; }
19947fi
19948
19949
19950fi
19951if test -z "$CC"; then
19952  if test -n "$ac_tool_prefix"; then
19953  for ac_prog in cl.exe
19954  do
19955    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19956set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19959if test "${ac_cv_prog_CC+set}" = set; then
19960  echo $ECHO_N "(cached) $ECHO_C" >&6
19961else
19962  if test -n "$CC"; then
19963  ac_cv_prog_CC="$CC" # Let the user override the test.
19964else
19965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19966for as_dir in $PATH
19967do
19968  IFS=$as_save_IFS
19969  test -z "$as_dir" && as_dir=.
19970  for ac_exec_ext in '' $ac_executable_extensions; do
19971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19972    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19974    break 2
19975  fi
19976done
19977done
19978IFS=$as_save_IFS
19979
19980fi
19981fi
19982CC=$ac_cv_prog_CC
19983if test -n "$CC"; then
19984  { echo "$as_me:$LINENO: result: $CC" >&5
19985echo "${ECHO_T}$CC" >&6; }
19986else
19987  { echo "$as_me:$LINENO: result: no" >&5
19988echo "${ECHO_T}no" >&6; }
19989fi
19990
19991
19992    test -n "$CC" && break
19993  done
19994fi
19995if test -z "$CC"; then
19996  ac_ct_CC=$CC
19997  for ac_prog in cl.exe
19998do
19999  # Extract the first word of "$ac_prog", so it can be a program name with args.
20000set dummy $ac_prog; ac_word=$2
20001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20003if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20004  echo $ECHO_N "(cached) $ECHO_C" >&6
20005else
20006  if test -n "$ac_ct_CC"; then
20007  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20008else
20009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20010for as_dir in $PATH
20011do
20012  IFS=$as_save_IFS
20013  test -z "$as_dir" && as_dir=.
20014  for ac_exec_ext in '' $ac_executable_extensions; do
20015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20016    ac_cv_prog_ac_ct_CC="$ac_prog"
20017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20018    break 2
20019  fi
20020done
20021done
20022IFS=$as_save_IFS
20023
20024fi
20025fi
20026ac_ct_CC=$ac_cv_prog_ac_ct_CC
20027if test -n "$ac_ct_CC"; then
20028  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20029echo "${ECHO_T}$ac_ct_CC" >&6; }
20030else
20031  { echo "$as_me:$LINENO: result: no" >&5
20032echo "${ECHO_T}no" >&6; }
20033fi
20034
20035
20036  test -n "$ac_ct_CC" && break
20037done
20038
20039  if test "x$ac_ct_CC" = x; then
20040    CC=""
20041  else
20042    case $cross_compiling:$ac_tool_warned in
20043yes:)
20044{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20045whose name does not start with the host triplet.  If you think this
20046configuration is useful to you, please write to autoconf@gnu.org." >&5
20047echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20048whose name does not start with the host triplet.  If you think this
20049configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20050ac_tool_warned=yes ;;
20051esac
20052    CC=$ac_ct_CC
20053  fi
20054fi
20055
20056fi
20057
20058
20059test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20060See \`config.log' for more details." >&5
20061echo "$as_me: error: no acceptable C compiler found in \$PATH
20062See \`config.log' for more details." >&2;}
20063   { (exit 1); exit 1; }; }
20064
20065# Provide some information about the compiler.
20066echo "$as_me:$LINENO: checking for C compiler version" >&5
20067ac_compiler=`set X $ac_compile; echo $2`
20068{ (ac_try="$ac_compiler --version >&5"
20069case "(($ac_try" in
20070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071  *) ac_try_echo=$ac_try;;
20072esac
20073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074  (eval "$ac_compiler --version >&5") 2>&5
20075  ac_status=$?
20076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077  (exit $ac_status); }
20078{ (ac_try="$ac_compiler -v >&5"
20079case "(($ac_try" in
20080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081  *) ac_try_echo=$ac_try;;
20082esac
20083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084  (eval "$ac_compiler -v >&5") 2>&5
20085  ac_status=$?
20086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087  (exit $ac_status); }
20088{ (ac_try="$ac_compiler -V >&5"
20089case "(($ac_try" in
20090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091  *) ac_try_echo=$ac_try;;
20092esac
20093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094  (eval "$ac_compiler -V >&5") 2>&5
20095  ac_status=$?
20096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097  (exit $ac_status); }
20098
20099{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20100echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20101if test "${ac_cv_c_compiler_gnu+set}" = set; then
20102  echo $ECHO_N "(cached) $ECHO_C" >&6
20103else
20104  cat >conftest.$ac_ext <<_ACEOF
20105/* confdefs.h.  */
20106_ACEOF
20107cat confdefs.h >>conftest.$ac_ext
20108cat >>conftest.$ac_ext <<_ACEOF
20109/* end confdefs.h.  */
20110
20111int
20112main ()
20113{
20114#ifndef __GNUC__
20115       choke me
20116#endif
20117
20118  ;
20119  return 0;
20120}
20121_ACEOF
20122rm -f conftest.$ac_objext
20123if { (ac_try="$ac_compile"
20124case "(($ac_try" in
20125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126  *) ac_try_echo=$ac_try;;
20127esac
20128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129  (eval "$ac_compile") 2>conftest.er1
20130  ac_status=$?
20131  grep -v '^ *+' conftest.er1 >conftest.err
20132  rm -f conftest.er1
20133  cat conftest.err >&5
20134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135  (exit $ac_status); } &&
20136	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20137  { (case "(($ac_try" in
20138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139  *) ac_try_echo=$ac_try;;
20140esac
20141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142  (eval "$ac_try") 2>&5
20143  ac_status=$?
20144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145  (exit $ac_status); }; } &&
20146	 { ac_try='test -s conftest.$ac_objext'
20147  { (case "(($ac_try" in
20148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149  *) ac_try_echo=$ac_try;;
20150esac
20151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152  (eval "$ac_try") 2>&5
20153  ac_status=$?
20154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155  (exit $ac_status); }; }; then
20156  ac_compiler_gnu=yes
20157else
20158  echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161	ac_compiler_gnu=no
20162fi
20163
20164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165ac_cv_c_compiler_gnu=$ac_compiler_gnu
20166
20167fi
20168{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20169echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20170GCC=`test $ac_compiler_gnu = yes && echo yes`
20171ac_test_CFLAGS=${CFLAGS+set}
20172ac_save_CFLAGS=$CFLAGS
20173{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20174echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20175if test "${ac_cv_prog_cc_g+set}" = set; then
20176  echo $ECHO_N "(cached) $ECHO_C" >&6
20177else
20178  ac_save_c_werror_flag=$ac_c_werror_flag
20179   ac_c_werror_flag=yes
20180   ac_cv_prog_cc_g=no
20181   CFLAGS="-g"
20182   cat >conftest.$ac_ext <<_ACEOF
20183/* confdefs.h.  */
20184_ACEOF
20185cat confdefs.h >>conftest.$ac_ext
20186cat >>conftest.$ac_ext <<_ACEOF
20187/* end confdefs.h.  */
20188
20189int
20190main ()
20191{
20192
20193  ;
20194  return 0;
20195}
20196_ACEOF
20197rm -f conftest.$ac_objext
20198if { (ac_try="$ac_compile"
20199case "(($ac_try" in
20200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201  *) ac_try_echo=$ac_try;;
20202esac
20203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204  (eval "$ac_compile") 2>conftest.er1
20205  ac_status=$?
20206  grep -v '^ *+' conftest.er1 >conftest.err
20207  rm -f conftest.er1
20208  cat conftest.err >&5
20209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210  (exit $ac_status); } &&
20211	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20212  { (case "(($ac_try" in
20213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214  *) ac_try_echo=$ac_try;;
20215esac
20216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217  (eval "$ac_try") 2>&5
20218  ac_status=$?
20219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220  (exit $ac_status); }; } &&
20221	 { ac_try='test -s conftest.$ac_objext'
20222  { (case "(($ac_try" in
20223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224  *) ac_try_echo=$ac_try;;
20225esac
20226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227  (eval "$ac_try") 2>&5
20228  ac_status=$?
20229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230  (exit $ac_status); }; }; then
20231  ac_cv_prog_cc_g=yes
20232else
20233  echo "$as_me: failed program was:" >&5
20234sed 's/^/| /' conftest.$ac_ext >&5
20235
20236	CFLAGS=""
20237      cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h.  */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h.  */
20243
20244int
20245main ()
20246{
20247
20248  ;
20249  return 0;
20250}
20251_ACEOF
20252rm -f conftest.$ac_objext
20253if { (ac_try="$ac_compile"
20254case "(($ac_try" in
20255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256  *) ac_try_echo=$ac_try;;
20257esac
20258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259  (eval "$ac_compile") 2>conftest.er1
20260  ac_status=$?
20261  grep -v '^ *+' conftest.er1 >conftest.err
20262  rm -f conftest.er1
20263  cat conftest.err >&5
20264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265  (exit $ac_status); } &&
20266	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20267  { (case "(($ac_try" in
20268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269  *) ac_try_echo=$ac_try;;
20270esac
20271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272  (eval "$ac_try") 2>&5
20273  ac_status=$?
20274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275  (exit $ac_status); }; } &&
20276	 { ac_try='test -s conftest.$ac_objext'
20277  { (case "(($ac_try" in
20278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279  *) ac_try_echo=$ac_try;;
20280esac
20281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282  (eval "$ac_try") 2>&5
20283  ac_status=$?
20284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285  (exit $ac_status); }; }; then
20286  :
20287else
20288  echo "$as_me: failed program was:" >&5
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
20291	ac_c_werror_flag=$ac_save_c_werror_flag
20292	 CFLAGS="-g"
20293	 cat >conftest.$ac_ext <<_ACEOF
20294/* confdefs.h.  */
20295_ACEOF
20296cat confdefs.h >>conftest.$ac_ext
20297cat >>conftest.$ac_ext <<_ACEOF
20298/* end confdefs.h.  */
20299
20300int
20301main ()
20302{
20303
20304  ;
20305  return 0;
20306}
20307_ACEOF
20308rm -f conftest.$ac_objext
20309if { (ac_try="$ac_compile"
20310case "(($ac_try" in
20311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312  *) ac_try_echo=$ac_try;;
20313esac
20314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315  (eval "$ac_compile") 2>conftest.er1
20316  ac_status=$?
20317  grep -v '^ *+' conftest.er1 >conftest.err
20318  rm -f conftest.er1
20319  cat conftest.err >&5
20320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321  (exit $ac_status); } &&
20322	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20323  { (case "(($ac_try" in
20324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325  *) ac_try_echo=$ac_try;;
20326esac
20327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328  (eval "$ac_try") 2>&5
20329  ac_status=$?
20330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331  (exit $ac_status); }; } &&
20332	 { ac_try='test -s conftest.$ac_objext'
20333  { (case "(($ac_try" in
20334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335  *) ac_try_echo=$ac_try;;
20336esac
20337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338  (eval "$ac_try") 2>&5
20339  ac_status=$?
20340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341  (exit $ac_status); }; }; then
20342  ac_cv_prog_cc_g=yes
20343else
20344  echo "$as_me: failed program was:" >&5
20345sed 's/^/| /' conftest.$ac_ext >&5
20346
20347
20348fi
20349
20350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20351fi
20352
20353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20354fi
20355
20356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20357   ac_c_werror_flag=$ac_save_c_werror_flag
20358fi
20359{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20360echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20361if test "$ac_test_CFLAGS" = set; then
20362  CFLAGS=$ac_save_CFLAGS
20363elif test $ac_cv_prog_cc_g = yes; then
20364  if test "$GCC" = yes; then
20365    CFLAGS="-g -O2"
20366  else
20367    CFLAGS="-g"
20368  fi
20369else
20370  if test "$GCC" = yes; then
20371    CFLAGS="-O2"
20372  else
20373    CFLAGS=
20374  fi
20375fi
20376{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20377echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20378if test "${ac_cv_prog_cc_c89+set}" = set; then
20379  echo $ECHO_N "(cached) $ECHO_C" >&6
20380else
20381  ac_cv_prog_cc_c89=no
20382ac_save_CC=$CC
20383cat >conftest.$ac_ext <<_ACEOF
20384/* confdefs.h.  */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h.  */
20389#include <stdarg.h>
20390#include <stdio.h>
20391#include <sys/types.h>
20392#include <sys/stat.h>
20393/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20394struct buf { int x; };
20395FILE * (*rcsopen) (struct buf *, struct stat *, int);
20396static char *e (p, i)
20397     char **p;
20398     int i;
20399{
20400  return p[i];
20401}
20402static char *f (char * (*g) (char **, int), char **p, ...)
20403{
20404  char *s;
20405  va_list v;
20406  va_start (v,p);
20407  s = g (p, va_arg (v,int));
20408  va_end (v);
20409  return s;
20410}
20411
20412/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20413   function prototypes and stuff, but not '\xHH' hex character constants.
20414   These don't provoke an error unfortunately, instead are silently treated
20415   as 'x'.  The following induces an error, until -std is added to get
20416   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20417   array size at least.  It's necessary to write '\x00'==0 to get something
20418   that's true only with -std.  */
20419int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20420
20421/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20422   inside strings and character constants.  */
20423#define FOO(x) 'x'
20424int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20425
20426int test (int i, double x);
20427struct s1 {int (*f) (int a);};
20428struct s2 {int (*f) (double a);};
20429int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20430int argc;
20431char **argv;
20432int
20433main ()
20434{
20435return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20436  ;
20437  return 0;
20438}
20439_ACEOF
20440for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20441	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20442do
20443  CC="$ac_save_CC $ac_arg"
20444  rm -f conftest.$ac_objext
20445if { (ac_try="$ac_compile"
20446case "(($ac_try" in
20447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448  *) ac_try_echo=$ac_try;;
20449esac
20450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451  (eval "$ac_compile") 2>conftest.er1
20452  ac_status=$?
20453  grep -v '^ *+' conftest.er1 >conftest.err
20454  rm -f conftest.er1
20455  cat conftest.err >&5
20456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457  (exit $ac_status); } &&
20458	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20459  { (case "(($ac_try" in
20460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461  *) ac_try_echo=$ac_try;;
20462esac
20463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464  (eval "$ac_try") 2>&5
20465  ac_status=$?
20466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467  (exit $ac_status); }; } &&
20468	 { ac_try='test -s conftest.$ac_objext'
20469  { (case "(($ac_try" in
20470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471  *) ac_try_echo=$ac_try;;
20472esac
20473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474  (eval "$ac_try") 2>&5
20475  ac_status=$?
20476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477  (exit $ac_status); }; }; then
20478  ac_cv_prog_cc_c89=$ac_arg
20479else
20480  echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483
20484fi
20485
20486rm -f core conftest.err conftest.$ac_objext
20487  test "x$ac_cv_prog_cc_c89" != "xno" && break
20488done
20489rm -f conftest.$ac_ext
20490CC=$ac_save_CC
20491
20492fi
20493# AC_CACHE_VAL
20494case "x$ac_cv_prog_cc_c89" in
20495  x)
20496    { echo "$as_me:$LINENO: result: none needed" >&5
20497echo "${ECHO_T}none needed" >&6; } ;;
20498  xno)
20499    { echo "$as_me:$LINENO: result: unsupported" >&5
20500echo "${ECHO_T}unsupported" >&6; } ;;
20501  *)
20502    CC="$CC $ac_cv_prog_cc_c89"
20503    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20504echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20505esac
20506
20507
20508ac_ext=c
20509ac_cpp='$CPP $CPPFLAGS'
20510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512ac_compiler_gnu=$ac_cv_c_compiler_gnu
20513
20514depcc="$CC"   am_compiler_list=
20515
20516{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20517echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20518if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20519  echo $ECHO_N "(cached) $ECHO_C" >&6
20520else
20521  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20522  # We make a subdir and do the tests there.  Otherwise we can end up
20523  # making bogus files that we don't know about and never remove.  For
20524  # instance it was reported that on HP-UX the gcc test will end up
20525  # making a dummy file named `D' -- because `-MD' means `put the output
20526  # in D'.
20527  mkdir conftest.dir
20528  # Copy depcomp to subdir because otherwise we won't find it if we're
20529  # using a relative directory.
20530  cp "$am_depcomp" conftest.dir
20531  cd conftest.dir
20532  # We will build objects and dependencies in a subdirectory because
20533  # it helps to detect inapplicable dependency modes.  For instance
20534  # both Tru64's cc and ICC support -MD to output dependencies as a
20535  # side effect of compilation, but ICC will put the dependencies in
20536  # the current directory while Tru64 will put them in the object
20537  # directory.
20538  mkdir sub
20539
20540  am_cv_CC_dependencies_compiler_type=none
20541  if test "$am_compiler_list" = ""; then
20542     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20543  fi
20544  for depmode in $am_compiler_list; do
20545    # Setup a source with many dependencies, because some compilers
20546    # like to wrap large dependency lists on column 80 (with \), and
20547    # we should not choose a depcomp mode which is confused by this.
20548    #
20549    # We need to recreate these files for each test, as the compiler may
20550    # overwrite some of them when testing with obscure command lines.
20551    # This happens at least with the AIX C compiler.
20552    : > sub/conftest.c
20553    for i in 1 2 3 4 5 6; do
20554      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20555      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20556      # Solaris 8's {/usr,}/bin/sh.
20557      touch sub/conftst$i.h
20558    done
20559    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20560
20561    case $depmode in
20562    nosideeffect)
20563      # after this tag, mechanisms are not by side-effect, so they'll
20564      # only be used when explicitly requested
20565      if test "x$enable_dependency_tracking" = xyes; then
20566	continue
20567      else
20568	break
20569      fi
20570      ;;
20571    none) break ;;
20572    esac
20573    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20574    # mode.  It turns out that the SunPro C++ compiler does not properly
20575    # handle `-M -o', and we need to detect this.
20576    if depmode=$depmode \
20577       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20578       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20579       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20580         >/dev/null 2>conftest.err &&
20581       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20582       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20583       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20584      # icc doesn't choke on unknown options, it will just issue warnings
20585      # or remarks (even with -Werror).  So we grep stderr for any message
20586      # that says an option was ignored or not supported.
20587      # When given -MP, icc 7.0 and 7.1 complain thusly:
20588      #   icc: Command line warning: ignoring option '-M'; no argument required
20589      # The diagnosis changed in icc 8.0:
20590      #   icc: Command line remark: option '-MP' not supported
20591      if (grep 'ignoring option' conftest.err ||
20592          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20593        am_cv_CC_dependencies_compiler_type=$depmode
20594        break
20595      fi
20596    fi
20597  done
20598
20599  cd ..
20600  rm -rf conftest.dir
20601else
20602  am_cv_CC_dependencies_compiler_type=none
20603fi
20604
20605fi
20606{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20607echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20608CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20609
20610
20611
20612if
20613  test "x$enable_dependency_tracking" != xno \
20614  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20615  am__fastdepCC_TRUE=
20616  am__fastdepCC_FALSE='#'
20617else
20618  am__fastdepCC_TRUE='#'
20619  am__fastdepCC_FALSE=
20620fi
20621
20622
20623
20624
20625for ac_prog in cpp
20626do
20627  # Extract the first word of "$ac_prog", so it can be a program name with args.
20628set dummy $ac_prog; ac_word=$2
20629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20631if test "${ac_cv_path_RAWCPP+set}" = set; then
20632  echo $ECHO_N "(cached) $ECHO_C" >&6
20633else
20634  case $RAWCPP in
20635  [\\/]* | ?:[\\/]*)
20636  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
20637  ;;
20638  *)
20639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20640as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20641for as_dir in $as_dummy
20642do
20643  IFS=$as_save_IFS
20644  test -z "$as_dir" && as_dir=.
20645  for ac_exec_ext in '' $ac_executable_extensions; do
20646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20647    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
20648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20649    break 2
20650  fi
20651done
20652done
20653IFS=$as_save_IFS
20654
20655  ;;
20656esac
20657fi
20658RAWCPP=$ac_cv_path_RAWCPP
20659if test -n "$RAWCPP"; then
20660  { echo "$as_me:$LINENO: result: $RAWCPP" >&5
20661echo "${ECHO_T}$RAWCPP" >&6; }
20662else
20663  { echo "$as_me:$LINENO: result: no" >&5
20664echo "${ECHO_T}no" >&6; }
20665fi
20666
20667
20668  test -n "$RAWCPP" && break
20669done
20670test -n "$RAWCPP" || RAWCPP="${CPP}"
20671
20672
20673# Check for flag to avoid builtin definitions - assumes unix is predefined,
20674# which is not the best choice for supporting other OS'es, but covers most
20675# of the ones we need for now.
20676{ echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
20677echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
20678cat >conftest.$ac_ext <<_ACEOF
20679Does cpp redefine unix ?
20680_ACEOF
20681if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20682	{ echo "$as_me:$LINENO: result: no" >&5
20683echo "${ECHO_T}no" >&6; }
20684else
20685	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20686		RAWCPPFLAGS=-undef
20687		{ echo "$as_me:$LINENO: result: yes" >&5
20688echo "${ECHO_T}yes" >&6; }
20689	else
20690		{ { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&5
20691echo "$as_me: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&2;}
20692   { (exit 1); exit 1; }; }
20693	fi
20694fi
20695rm -f conftest.$ac_ext
20696
20697{ echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
20698echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
20699cat >conftest.$ac_ext <<_ACEOF
20700Does cpp preserve   "whitespace"?
20701_ACEOF
20702if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20703	{ echo "$as_me:$LINENO: result: no" >&5
20704echo "${ECHO_T}no" >&6; }
20705else
20706	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20707		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20708		{ echo "$as_me:$LINENO: result: yes" >&5
20709echo "${ECHO_T}yes" >&6; }
20710	else
20711		{ { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&5
20712echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&2;}
20713   { (exit 1); exit 1; }; }
20714	fi
20715fi
20716rm -f conftest.$ac_ext
20717
20718
20719
20720
20721
20722
20723
20724# Check whether --with-xorg-module-dir was given.
20725if test "${with_xorg_module_dir+set}" = set; then
20726  withval=$with_xorg_module_dir; moduledir="$withval"
20727else
20728  moduledir="$libdir/xorg/modules"
20729fi
20730
20731
20732# Check whether --enable-dri was given.
20733if test "${enable_dri+set}" = set; then
20734  enableval=$enable_dri; DRI="$enableval"
20735else
20736  DRI=auto
20737fi
20738
20739
20740# Checks for extensions
20741
20742	SAVE_CFLAGS="$CFLAGS"
20743	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20744	cat >conftest.$ac_ext <<_ACEOF
20745/* confdefs.h.  */
20746_ACEOF
20747cat confdefs.h >>conftest.$ac_ext
20748cat >>conftest.$ac_ext <<_ACEOF
20749/* end confdefs.h.  */
20750
20751#include "xorg-server.h"
20752#if !defined XINERAMA
20753#error XINERAMA not defined
20754#endif
20755
20756int
20757main ()
20758{
20759
20760  ;
20761  return 0;
20762}
20763_ACEOF
20764rm -f conftest.$ac_objext
20765if { (ac_try="$ac_compile"
20766case "(($ac_try" in
20767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20768  *) ac_try_echo=$ac_try;;
20769esac
20770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20771  (eval "$ac_compile") 2>conftest.er1
20772  ac_status=$?
20773  grep -v '^ *+' conftest.er1 >conftest.err
20774  rm -f conftest.er1
20775  cat conftest.err >&5
20776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777  (exit $ac_status); } &&
20778	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20779  { (case "(($ac_try" in
20780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781  *) ac_try_echo=$ac_try;;
20782esac
20783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784  (eval "$ac_try") 2>&5
20785  ac_status=$?
20786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787  (exit $ac_status); }; } &&
20788	 { ac_try='test -s conftest.$ac_objext'
20789  { (case "(($ac_try" in
20790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791  *) ac_try_echo=$ac_try;;
20792esac
20793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794  (eval "$ac_try") 2>&5
20795  ac_status=$?
20796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797  (exit $ac_status); }; }; then
20798  _EXT_CHECK=yes
20799else
20800  echo "$as_me: failed program was:" >&5
20801sed 's/^/| /' conftest.$ac_ext >&5
20802
20803	_EXT_CHECK=no
20804fi
20805
20806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20807	CFLAGS="$SAVE_CFLAGS"
20808	{ echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
20809echo $ECHO_N "checking if XINERAMA is defined... $ECHO_C" >&6; }
20810	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20811echo "${ECHO_T}$_EXT_CHECK" >&6; }
20812	if test "$_EXT_CHECK" != no; then
20813		REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
20814	fi
20815
20816
20817	SAVE_CFLAGS="$CFLAGS"
20818	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20819	cat >conftest.$ac_ext <<_ACEOF
20820/* confdefs.h.  */
20821_ACEOF
20822cat confdefs.h >>conftest.$ac_ext
20823cat >>conftest.$ac_ext <<_ACEOF
20824/* end confdefs.h.  */
20825
20826#include "xorg-server.h"
20827#if !defined RANDR
20828#error RANDR not defined
20829#endif
20830
20831int
20832main ()
20833{
20834
20835  ;
20836  return 0;
20837}
20838_ACEOF
20839rm -f conftest.$ac_objext
20840if { (ac_try="$ac_compile"
20841case "(($ac_try" in
20842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843  *) ac_try_echo=$ac_try;;
20844esac
20845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846  (eval "$ac_compile") 2>conftest.er1
20847  ac_status=$?
20848  grep -v '^ *+' conftest.er1 >conftest.err
20849  rm -f conftest.er1
20850  cat conftest.err >&5
20851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852  (exit $ac_status); } &&
20853	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20854  { (case "(($ac_try" in
20855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856  *) ac_try_echo=$ac_try;;
20857esac
20858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859  (eval "$ac_try") 2>&5
20860  ac_status=$?
20861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862  (exit $ac_status); }; } &&
20863	 { ac_try='test -s conftest.$ac_objext'
20864  { (case "(($ac_try" in
20865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866  *) ac_try_echo=$ac_try;;
20867esac
20868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869  (eval "$ac_try") 2>&5
20870  ac_status=$?
20871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872  (exit $ac_status); }; }; then
20873  _EXT_CHECK=yes
20874else
20875  echo "$as_me: failed program was:" >&5
20876sed 's/^/| /' conftest.$ac_ext >&5
20877
20878	_EXT_CHECK=no
20879fi
20880
20881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882	CFLAGS="$SAVE_CFLAGS"
20883	{ echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20884echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20885	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20886echo "${ECHO_T}$_EXT_CHECK" >&6; }
20887	if test "$_EXT_CHECK" != no; then
20888		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20889	fi
20890
20891
20892	SAVE_CFLAGS="$CFLAGS"
20893	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20894	cat >conftest.$ac_ext <<_ACEOF
20895/* confdefs.h.  */
20896_ACEOF
20897cat confdefs.h >>conftest.$ac_ext
20898cat >>conftest.$ac_ext <<_ACEOF
20899/* end confdefs.h.  */
20900
20901#include "xorg-server.h"
20902#if !defined RENDER
20903#error RENDER not defined
20904#endif
20905
20906int
20907main ()
20908{
20909
20910  ;
20911  return 0;
20912}
20913_ACEOF
20914rm -f conftest.$ac_objext
20915if { (ac_try="$ac_compile"
20916case "(($ac_try" in
20917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918  *) ac_try_echo=$ac_try;;
20919esac
20920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921  (eval "$ac_compile") 2>conftest.er1
20922  ac_status=$?
20923  grep -v '^ *+' conftest.er1 >conftest.err
20924  rm -f conftest.er1
20925  cat conftest.err >&5
20926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927  (exit $ac_status); } &&
20928	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20929  { (case "(($ac_try" in
20930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931  *) ac_try_echo=$ac_try;;
20932esac
20933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934  (eval "$ac_try") 2>&5
20935  ac_status=$?
20936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937  (exit $ac_status); }; } &&
20938	 { ac_try='test -s conftest.$ac_objext'
20939  { (case "(($ac_try" in
20940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941  *) ac_try_echo=$ac_try;;
20942esac
20943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944  (eval "$ac_try") 2>&5
20945  ac_status=$?
20946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947  (exit $ac_status); }; }; then
20948  _EXT_CHECK=yes
20949else
20950  echo "$as_me: failed program was:" >&5
20951sed 's/^/| /' conftest.$ac_ext >&5
20952
20953	_EXT_CHECK=no
20954fi
20955
20956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20957	CFLAGS="$SAVE_CFLAGS"
20958	{ echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20959echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
20960	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20961echo "${ECHO_T}$_EXT_CHECK" >&6; }
20962	if test "$_EXT_CHECK" != no; then
20963		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20964	fi
20965
20966
20967	SAVE_CFLAGS="$CFLAGS"
20968	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20969	cat >conftest.$ac_ext <<_ACEOF
20970/* confdefs.h.  */
20971_ACEOF
20972cat confdefs.h >>conftest.$ac_ext
20973cat >>conftest.$ac_ext <<_ACEOF
20974/* end confdefs.h.  */
20975
20976#include "xorg-server.h"
20977#if !defined XV
20978#error XV not defined
20979#endif
20980
20981int
20982main ()
20983{
20984
20985  ;
20986  return 0;
20987}
20988_ACEOF
20989rm -f conftest.$ac_objext
20990if { (ac_try="$ac_compile"
20991case "(($ac_try" in
20992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993  *) ac_try_echo=$ac_try;;
20994esac
20995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996  (eval "$ac_compile") 2>conftest.er1
20997  ac_status=$?
20998  grep -v '^ *+' conftest.er1 >conftest.err
20999  rm -f conftest.er1
21000  cat conftest.err >&5
21001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002  (exit $ac_status); } &&
21003	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21004  { (case "(($ac_try" in
21005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006  *) ac_try_echo=$ac_try;;
21007esac
21008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009  (eval "$ac_try") 2>&5
21010  ac_status=$?
21011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012  (exit $ac_status); }; } &&
21013	 { ac_try='test -s conftest.$ac_objext'
21014  { (case "(($ac_try" in
21015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016  *) ac_try_echo=$ac_try;;
21017esac
21018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019  (eval "$ac_try") 2>&5
21020  ac_status=$?
21021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022  (exit $ac_status); }; }; then
21023  _EXT_CHECK=yes
21024else
21025  echo "$as_me: failed program was:" >&5
21026sed 's/^/| /' conftest.$ac_ext >&5
21027
21028	_EXT_CHECK=no
21029fi
21030
21031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032	CFLAGS="$SAVE_CFLAGS"
21033	{ echo "$as_me:$LINENO: checking if XV is defined" >&5
21034echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; }
21035	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21036echo "${ECHO_T}$_EXT_CHECK" >&6; }
21037	if test "$_EXT_CHECK" != no; then
21038		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
21039	fi
21040
21041
21042	SAVE_CFLAGS="$CFLAGS"
21043	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21044	cat >conftest.$ac_ext <<_ACEOF
21045/* confdefs.h.  */
21046_ACEOF
21047cat confdefs.h >>conftest.$ac_ext
21048cat >>conftest.$ac_ext <<_ACEOF
21049/* end confdefs.h.  */
21050
21051#include "xorg-server.h"
21052#if !defined XF86MISC
21053#error XF86MISC not defined
21054#endif
21055
21056int
21057main ()
21058{
21059
21060  ;
21061  return 0;
21062}
21063_ACEOF
21064rm -f conftest.$ac_objext
21065if { (ac_try="$ac_compile"
21066case "(($ac_try" in
21067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068  *) ac_try_echo=$ac_try;;
21069esac
21070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071  (eval "$ac_compile") 2>conftest.er1
21072  ac_status=$?
21073  grep -v '^ *+' conftest.er1 >conftest.err
21074  rm -f conftest.er1
21075  cat conftest.err >&5
21076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077  (exit $ac_status); } &&
21078	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21079  { (case "(($ac_try" in
21080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081  *) ac_try_echo=$ac_try;;
21082esac
21083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084  (eval "$ac_try") 2>&5
21085  ac_status=$?
21086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087  (exit $ac_status); }; } &&
21088	 { ac_try='test -s conftest.$ac_objext'
21089  { (case "(($ac_try" in
21090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091  *) ac_try_echo=$ac_try;;
21092esac
21093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094  (eval "$ac_try") 2>&5
21095  ac_status=$?
21096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097  (exit $ac_status); }; }; then
21098  _EXT_CHECK=yes
21099else
21100  echo "$as_me: failed program was:" >&5
21101sed 's/^/| /' conftest.$ac_ext >&5
21102
21103	_EXT_CHECK=no
21104fi
21105
21106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107	CFLAGS="$SAVE_CFLAGS"
21108	{ echo "$as_me:$LINENO: checking if XF86MISC is defined" >&5
21109echo $ECHO_N "checking if XF86MISC is defined... $ECHO_C" >&6; }
21110	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21111echo "${ECHO_T}$_EXT_CHECK" >&6; }
21112	if test "$_EXT_CHECK" != no; then
21113		REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto"
21114	fi
21115
21116
21117	SAVE_CFLAGS="$CFLAGS"
21118	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21119	cat >conftest.$ac_ext <<_ACEOF
21120/* confdefs.h.  */
21121_ACEOF
21122cat confdefs.h >>conftest.$ac_ext
21123cat >>conftest.$ac_ext <<_ACEOF
21124/* end confdefs.h.  */
21125
21126#include "xorg-server.h"
21127#if !defined DPMSExtension
21128#error DPMSExtension not defined
21129#endif
21130
21131int
21132main ()
21133{
21134
21135  ;
21136  return 0;
21137}
21138_ACEOF
21139rm -f conftest.$ac_objext
21140if { (ac_try="$ac_compile"
21141case "(($ac_try" in
21142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143  *) ac_try_echo=$ac_try;;
21144esac
21145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146  (eval "$ac_compile") 2>conftest.er1
21147  ac_status=$?
21148  grep -v '^ *+' conftest.er1 >conftest.err
21149  rm -f conftest.er1
21150  cat conftest.err >&5
21151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152  (exit $ac_status); } &&
21153	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21154  { (case "(($ac_try" in
21155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156  *) ac_try_echo=$ac_try;;
21157esac
21158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159  (eval "$ac_try") 2>&5
21160  ac_status=$?
21161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162  (exit $ac_status); }; } &&
21163	 { ac_try='test -s conftest.$ac_objext'
21164  { (case "(($ac_try" in
21165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166  *) ac_try_echo=$ac_try;;
21167esac
21168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169  (eval "$ac_try") 2>&5
21170  ac_status=$?
21171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172  (exit $ac_status); }; }; then
21173  _EXT_CHECK=yes
21174else
21175  echo "$as_me: failed program was:" >&5
21176sed 's/^/| /' conftest.$ac_ext >&5
21177
21178	_EXT_CHECK=no
21179fi
21180
21181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21182	CFLAGS="$SAVE_CFLAGS"
21183	{ echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21184echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
21185	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21186echo "${ECHO_T}$_EXT_CHECK" >&6; }
21187	if test "$_EXT_CHECK" != no; then
21188		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21189	fi
21190
21191
21192# Checks for pkg-config packages
21193
21194
21195if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21196	if test -n "$ac_tool_prefix"; then
21197  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21198set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21199{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21201if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21202  echo $ECHO_N "(cached) $ECHO_C" >&6
21203else
21204  case $PKG_CONFIG in
21205  [\\/]* | ?:[\\/]*)
21206  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21207  ;;
21208  *)
21209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21210for as_dir in $PATH
21211do
21212  IFS=$as_save_IFS
21213  test -z "$as_dir" && as_dir=.
21214  for ac_exec_ext in '' $ac_executable_extensions; do
21215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21216    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21218    break 2
21219  fi
21220done
21221done
21222IFS=$as_save_IFS
21223
21224  ;;
21225esac
21226fi
21227PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21228if test -n "$PKG_CONFIG"; then
21229  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21230echo "${ECHO_T}$PKG_CONFIG" >&6; }
21231else
21232  { echo "$as_me:$LINENO: result: no" >&5
21233echo "${ECHO_T}no" >&6; }
21234fi
21235
21236
21237fi
21238if test -z "$ac_cv_path_PKG_CONFIG"; then
21239  ac_pt_PKG_CONFIG=$PKG_CONFIG
21240  # Extract the first word of "pkg-config", so it can be a program name with args.
21241set dummy pkg-config; ac_word=$2
21242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21244if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21245  echo $ECHO_N "(cached) $ECHO_C" >&6
21246else
21247  case $ac_pt_PKG_CONFIG in
21248  [\\/]* | ?:[\\/]*)
21249  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21250  ;;
21251  *)
21252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21253for as_dir in $PATH
21254do
21255  IFS=$as_save_IFS
21256  test -z "$as_dir" && as_dir=.
21257  for ac_exec_ext in '' $ac_executable_extensions; do
21258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21259    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21261    break 2
21262  fi
21263done
21264done
21265IFS=$as_save_IFS
21266
21267  ;;
21268esac
21269fi
21270ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21271if test -n "$ac_pt_PKG_CONFIG"; then
21272  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21273echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21274else
21275  { echo "$as_me:$LINENO: result: no" >&5
21276echo "${ECHO_T}no" >&6; }
21277fi
21278
21279  if test "x$ac_pt_PKG_CONFIG" = x; then
21280    PKG_CONFIG=""
21281  else
21282    case $cross_compiling:$ac_tool_warned in
21283yes:)
21284{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21285whose name does not start with the host triplet.  If you think this
21286configuration is useful to you, please write to autoconf@gnu.org." >&5
21287echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21288whose name does not start with the host triplet.  If you think this
21289configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21290ac_tool_warned=yes ;;
21291esac
21292    PKG_CONFIG=$ac_pt_PKG_CONFIG
21293  fi
21294else
21295  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21296fi
21297
21298fi
21299if test -n "$PKG_CONFIG"; then
21300	_pkg_min_version=0.9.0
21301	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21302echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21303	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21304		{ echo "$as_me:$LINENO: result: yes" >&5
21305echo "${ECHO_T}yes" >&6; }
21306	else
21307		{ echo "$as_me:$LINENO: result: no" >&5
21308echo "${ECHO_T}no" >&6; }
21309		PKG_CONFIG=""
21310	fi
21311
21312fi
21313
21314pkg_failed=no
21315{ echo "$as_me:$LINENO: checking for XORG" >&5
21316echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
21317
21318if test -n "$PKG_CONFIG"; then
21319    if test -n "$XORG_CFLAGS"; then
21320        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21321    else
21322        if test -n "$PKG_CONFIG" && \
21323    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto \$REQUIRED_MODULES\"") >&5
21324  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES") 2>&5
21325  ac_status=$?
21326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327  (exit $ac_status); }; then
21328  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES" 2>/dev/null`
21329else
21330  pkg_failed=yes
21331fi
21332    fi
21333else
21334	pkg_failed=untried
21335fi
21336if test -n "$PKG_CONFIG"; then
21337    if test -n "$XORG_LIBS"; then
21338        pkg_cv_XORG_LIBS="$XORG_LIBS"
21339    else
21340        if test -n "$PKG_CONFIG" && \
21341    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto \$REQUIRED_MODULES\"") >&5
21342  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES") 2>&5
21343  ac_status=$?
21344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345  (exit $ac_status); }; then
21346  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES" 2>/dev/null`
21347else
21348  pkg_failed=yes
21349fi
21350    fi
21351else
21352	pkg_failed=untried
21353fi
21354
21355
21356
21357if test $pkg_failed = yes; then
21358
21359if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21360        _pkg_short_errors_supported=yes
21361else
21362        _pkg_short_errors_supported=no
21363fi
21364        if test $_pkg_short_errors_supported = yes; then
21365	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES"`
21366        else
21367	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES"`
21368        fi
21369	# Put the nasty error message in config.log where it belongs
21370	echo "$XORG_PKG_ERRORS" >&5
21371
21372	{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES) were not met:
21373
21374$XORG_PKG_ERRORS
21375
21376Consider adjusting the PKG_CONFIG_PATH environment variable if you
21377installed software in a non-standard prefix.
21378
21379Alternatively, you may set the environment variables XORG_CFLAGS
21380and XORG_LIBS to avoid the need to call pkg-config.
21381See the pkg-config man page for more details.
21382" >&5
21383echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES) were not met:
21384
21385$XORG_PKG_ERRORS
21386
21387Consider adjusting the PKG_CONFIG_PATH environment variable if you
21388installed software in a non-standard prefix.
21389
21390Alternatively, you may set the environment variables XORG_CFLAGS
21391and XORG_LIBS to avoid the need to call pkg-config.
21392See the pkg-config man page for more details.
21393" >&2;}
21394   { (exit 1); exit 1; }; }
21395elif test $pkg_failed = untried; then
21396	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21397is in your PATH or set the PKG_CONFIG environment variable to the full
21398path to pkg-config.
21399
21400Alternatively, you may set the environment variables XORG_CFLAGS
21401and XORG_LIBS to avoid the need to call pkg-config.
21402See the pkg-config man page for more details.
21403
21404To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21405See \`config.log' for more details." >&5
21406echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21407is in your PATH or set the PKG_CONFIG environment variable to the full
21408path to pkg-config.
21409
21410Alternatively, you may set the environment variables XORG_CFLAGS
21411and XORG_LIBS to avoid the need to call pkg-config.
21412See the pkg-config man page for more details.
21413
21414To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21415See \`config.log' for more details." >&2;}
21416   { (exit 1); exit 1; }; }
21417else
21418	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21419	XORG_LIBS=$pkg_cv_XORG_LIBS
21420        { echo "$as_me:$LINENO: result: yes" >&5
21421echo "${ECHO_T}yes" >&6; }
21422	:
21423fi
21424sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21425
21426# Checks for libraries.
21427
21428# Checks for header files.
21429{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21430echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21431if test "${ac_cv_header_stdc+set}" = set; then
21432  echo $ECHO_N "(cached) $ECHO_C" >&6
21433else
21434  cat >conftest.$ac_ext <<_ACEOF
21435/* confdefs.h.  */
21436_ACEOF
21437cat confdefs.h >>conftest.$ac_ext
21438cat >>conftest.$ac_ext <<_ACEOF
21439/* end confdefs.h.  */
21440#include <stdlib.h>
21441#include <stdarg.h>
21442#include <string.h>
21443#include <float.h>
21444
21445int
21446main ()
21447{
21448
21449  ;
21450  return 0;
21451}
21452_ACEOF
21453rm -f conftest.$ac_objext
21454if { (ac_try="$ac_compile"
21455case "(($ac_try" in
21456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457  *) ac_try_echo=$ac_try;;
21458esac
21459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460  (eval "$ac_compile") 2>conftest.er1
21461  ac_status=$?
21462  grep -v '^ *+' conftest.er1 >conftest.err
21463  rm -f conftest.er1
21464  cat conftest.err >&5
21465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466  (exit $ac_status); } &&
21467	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21468  { (case "(($ac_try" in
21469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470  *) ac_try_echo=$ac_try;;
21471esac
21472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473  (eval "$ac_try") 2>&5
21474  ac_status=$?
21475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476  (exit $ac_status); }; } &&
21477	 { ac_try='test -s conftest.$ac_objext'
21478  { (case "(($ac_try" in
21479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480  *) ac_try_echo=$ac_try;;
21481esac
21482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21483  (eval "$ac_try") 2>&5
21484  ac_status=$?
21485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486  (exit $ac_status); }; }; then
21487  ac_cv_header_stdc=yes
21488else
21489  echo "$as_me: failed program was:" >&5
21490sed 's/^/| /' conftest.$ac_ext >&5
21491
21492	ac_cv_header_stdc=no
21493fi
21494
21495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21496
21497if test $ac_cv_header_stdc = yes; then
21498  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21499  cat >conftest.$ac_ext <<_ACEOF
21500/* confdefs.h.  */
21501_ACEOF
21502cat confdefs.h >>conftest.$ac_ext
21503cat >>conftest.$ac_ext <<_ACEOF
21504/* end confdefs.h.  */
21505#include <string.h>
21506
21507_ACEOF
21508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21509  $EGREP "memchr" >/dev/null 2>&1; then
21510  :
21511else
21512  ac_cv_header_stdc=no
21513fi
21514rm -f conftest*
21515
21516fi
21517
21518if test $ac_cv_header_stdc = yes; then
21519  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21520  cat >conftest.$ac_ext <<_ACEOF
21521/* confdefs.h.  */
21522_ACEOF
21523cat confdefs.h >>conftest.$ac_ext
21524cat >>conftest.$ac_ext <<_ACEOF
21525/* end confdefs.h.  */
21526#include <stdlib.h>
21527
21528_ACEOF
21529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21530  $EGREP "free" >/dev/null 2>&1; then
21531  :
21532else
21533  ac_cv_header_stdc=no
21534fi
21535rm -f conftest*
21536
21537fi
21538
21539if test $ac_cv_header_stdc = yes; then
21540  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21541  if test "$cross_compiling" = yes; then
21542  :
21543else
21544  cat >conftest.$ac_ext <<_ACEOF
21545/* confdefs.h.  */
21546_ACEOF
21547cat confdefs.h >>conftest.$ac_ext
21548cat >>conftest.$ac_ext <<_ACEOF
21549/* end confdefs.h.  */
21550#include <ctype.h>
21551#include <stdlib.h>
21552#if ((' ' & 0x0FF) == 0x020)
21553# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21554# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21555#else
21556# define ISLOWER(c) \
21557		   (('a' <= (c) && (c) <= 'i') \
21558		     || ('j' <= (c) && (c) <= 'r') \
21559		     || ('s' <= (c) && (c) <= 'z'))
21560# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21561#endif
21562
21563#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21564int
21565main ()
21566{
21567  int i;
21568  for (i = 0; i < 256; i++)
21569    if (XOR (islower (i), ISLOWER (i))
21570	|| toupper (i) != TOUPPER (i))
21571      return 2;
21572  return 0;
21573}
21574_ACEOF
21575rm -f conftest$ac_exeext
21576if { (ac_try="$ac_link"
21577case "(($ac_try" in
21578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579  *) ac_try_echo=$ac_try;;
21580esac
21581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582  (eval "$ac_link") 2>&5
21583  ac_status=$?
21584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21586  { (case "(($ac_try" in
21587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588  *) ac_try_echo=$ac_try;;
21589esac
21590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591  (eval "$ac_try") 2>&5
21592  ac_status=$?
21593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594  (exit $ac_status); }; }; then
21595  :
21596else
21597  echo "$as_me: program exited with status $ac_status" >&5
21598echo "$as_me: failed program was:" >&5
21599sed 's/^/| /' conftest.$ac_ext >&5
21600
21601( exit $ac_status )
21602ac_cv_header_stdc=no
21603fi
21604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21605fi
21606
21607
21608fi
21609fi
21610{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21611echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21612if test $ac_cv_header_stdc = yes; then
21613
21614cat >>confdefs.h <<\_ACEOF
21615#define STDC_HEADERS 1
21616_ACEOF
21617
21618fi
21619
21620
21621if test "$DRI" != no; then
21622        as_ac_File=`echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21623{ echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
21624echo $ECHO_N "checking for ${sdkdir}/dri.h... $ECHO_C" >&6; }
21625if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21626  echo $ECHO_N "(cached) $ECHO_C" >&6
21627else
21628  test "$cross_compiling" = yes &&
21629  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21630echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21631   { (exit 1); exit 1; }; }
21632if test -r "${sdkdir}/dri.h"; then
21633  eval "$as_ac_File=yes"
21634else
21635  eval "$as_ac_File=no"
21636fi
21637fi
21638ac_res=`eval echo '${'$as_ac_File'}'`
21639	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21640echo "${ECHO_T}$ac_res" >&6; }
21641if test `eval echo '${'$as_ac_File'}'` = yes; then
21642  have_dri_h="yes"
21643else
21644  have_dri_h="no"
21645fi
21646
21647        as_ac_File=`echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
21648{ echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
21649echo $ECHO_N "checking for ${sdkdir}/sarea.h... $ECHO_C" >&6; }
21650if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21651  echo $ECHO_N "(cached) $ECHO_C" >&6
21652else
21653  test "$cross_compiling" = yes &&
21654  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21655echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21656   { (exit 1); exit 1; }; }
21657if test -r "${sdkdir}/sarea.h"; then
21658  eval "$as_ac_File=yes"
21659else
21660  eval "$as_ac_File=no"
21661fi
21662fi
21663ac_res=`eval echo '${'$as_ac_File'}'`
21664	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21665echo "${ECHO_T}$ac_res" >&6; }
21666if test `eval echo '${'$as_ac_File'}'` = yes; then
21667  have_sarea_h="yes"
21668else
21669  have_sarea_h="no"
21670fi
21671
21672        as_ac_File=`echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
21673{ echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
21674echo $ECHO_N "checking for ${sdkdir}/dristruct.h... $ECHO_C" >&6; }
21675if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21676  echo $ECHO_N "(cached) $ECHO_C" >&6
21677else
21678  test "$cross_compiling" = yes &&
21679  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21680echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21681   { (exit 1); exit 1; }; }
21682if test -r "${sdkdir}/dristruct.h"; then
21683  eval "$as_ac_File=yes"
21684else
21685  eval "$as_ac_File=no"
21686fi
21687fi
21688ac_res=`eval echo '${'$as_ac_File'}'`
21689	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21690echo "${ECHO_T}$ac_res" >&6; }
21691if test `eval echo '${'$as_ac_File'}'` = yes; then
21692  have_dristruct_h="yes"
21693else
21694  have_dristruct_h="no"
21695fi
21696
21697fi
21698
21699{ echo "$as_me:$LINENO: checking whether to include DRI support" >&5
21700echo $ECHO_N "checking whether to include DRI support... $ECHO_C" >&6; }
21701if test x$DRI = xauto; then
21702        if test "$have_dri_h" = yes -a \
21703                "$have_sarea_h" = yes -a \
21704                "$have_dristruct_h" = yes; then
21705                DRI="yes"
21706        else
21707                DRI="no"
21708        fi
21709fi
21710{ echo "$as_me:$LINENO: result: $DRI" >&5
21711echo "${ECHO_T}$DRI" >&6; }
21712
21713
21714
21715if test x$DRI = xyes; then
21716  DRI_TRUE=
21717  DRI_FALSE='#'
21718else
21719  DRI_TRUE='#'
21720  DRI_FALSE=
21721fi
21722
21723if test "$DRI" = yes; then
21724
21725pkg_failed=no
21726{ echo "$as_me:$LINENO: checking for DRI" >&5
21727echo $ECHO_N "checking for DRI... $ECHO_C" >&6; }
21728
21729if test -n "$PKG_CONFIG"; then
21730    if test -n "$DRI_CFLAGS"; then
21731        pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
21732    else
21733        if test -n "$PKG_CONFIG" && \
21734    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21735  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21736  ac_status=$?
21737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738  (exit $ac_status); }; then
21739  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21740else
21741  pkg_failed=yes
21742fi
21743    fi
21744else
21745	pkg_failed=untried
21746fi
21747if test -n "$PKG_CONFIG"; then
21748    if test -n "$DRI_LIBS"; then
21749        pkg_cv_DRI_LIBS="$DRI_LIBS"
21750    else
21751        if test -n "$PKG_CONFIG" && \
21752    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21753  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21754  ac_status=$?
21755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756  (exit $ac_status); }; then
21757  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21758else
21759  pkg_failed=yes
21760fi
21761    fi
21762else
21763	pkg_failed=untried
21764fi
21765
21766
21767
21768if test $pkg_failed = yes; then
21769
21770if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21771        _pkg_short_errors_supported=yes
21772else
21773        _pkg_short_errors_supported=no
21774fi
21775        if test $_pkg_short_errors_supported = yes; then
21776	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.0 xf86driproto"`
21777        else
21778	        DRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.0 xf86driproto"`
21779        fi
21780	# Put the nasty error message in config.log where it belongs
21781	echo "$DRI_PKG_ERRORS" >&5
21782
21783	{ { echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21784
21785$DRI_PKG_ERRORS
21786
21787Consider adjusting the PKG_CONFIG_PATH environment variable if you
21788installed software in a non-standard prefix.
21789
21790Alternatively, you may set the environment variables DRI_CFLAGS
21791and DRI_LIBS to avoid the need to call pkg-config.
21792See the pkg-config man page for more details.
21793" >&5
21794echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21795
21796$DRI_PKG_ERRORS
21797
21798Consider adjusting the PKG_CONFIG_PATH environment variable if you
21799installed software in a non-standard prefix.
21800
21801Alternatively, you may set the environment variables DRI_CFLAGS
21802and DRI_LIBS to avoid the need to call pkg-config.
21803See the pkg-config man page for more details.
21804" >&2;}
21805   { (exit 1); exit 1; }; }
21806elif test $pkg_failed = untried; then
21807	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21808is in your PATH or set the PKG_CONFIG environment variable to the full
21809path to pkg-config.
21810
21811Alternatively, you may set the environment variables DRI_CFLAGS
21812and DRI_LIBS to avoid the need to call pkg-config.
21813See the pkg-config man page for more details.
21814
21815To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21816See \`config.log' for more details." >&5
21817echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21818is in your PATH or set the PKG_CONFIG environment variable to the full
21819path to pkg-config.
21820
21821Alternatively, you may set the environment variables DRI_CFLAGS
21822and DRI_LIBS to avoid the need to call pkg-config.
21823See the pkg-config man page for more details.
21824
21825To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21826See \`config.log' for more details." >&2;}
21827   { (exit 1); exit 1; }; }
21828else
21829	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
21830	DRI_LIBS=$pkg_cv_DRI_LIBS
21831        { echo "$as_me:$LINENO: result: yes" >&5
21832echo "${ECHO_T}yes" >&6; }
21833	:
21834fi
21835
21836cat >>confdefs.h <<\_ACEOF
21837#define XF86DRI 1
21838_ACEOF
21839
21840
21841cat >>confdefs.h <<\_ACEOF
21842#define XF86DRI_DEVEL 1
21843_ACEOF
21844
21845fi
21846
21847# technically this should be a configure flag.  meh.
21848
21849cat >>confdefs.h <<\_ACEOF
21850#define XF86EXA 1
21851_ACEOF
21852
21853
21854
21855
21856
21857
21858DRIVER_NAME=sis
21859
21860
21861
21862
21863
21864if test x$APP_MAN_SUFFIX = x    ; then
21865    APP_MAN_SUFFIX=1
21866fi
21867if test x$APP_MAN_DIR = x    ; then
21868    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21869fi
21870
21871if test x$LIB_MAN_SUFFIX = x    ; then
21872    LIB_MAN_SUFFIX=3
21873fi
21874if test x$LIB_MAN_DIR = x    ; then
21875    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21876fi
21877
21878if test x$FILE_MAN_SUFFIX = x    ; then
21879    case $host_os in
21880	solaris*)	FILE_MAN_SUFFIX=4  ;;
21881	*)		FILE_MAN_SUFFIX=5  ;;
21882    esac
21883fi
21884if test x$FILE_MAN_DIR = x    ; then
21885    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21886fi
21887
21888if test x$MISC_MAN_SUFFIX = x    ; then
21889    case $host_os in
21890	solaris*)	MISC_MAN_SUFFIX=5  ;;
21891	*)		MISC_MAN_SUFFIX=7  ;;
21892    esac
21893fi
21894if test x$MISC_MAN_DIR = x    ; then
21895    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21896fi
21897
21898if test x$DRIVER_MAN_SUFFIX = x    ; then
21899    case $host_os in
21900	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
21901	*)		DRIVER_MAN_SUFFIX=4  ;;
21902    esac
21903fi
21904if test x$DRIVER_MAN_DIR = x    ; then
21905    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21906fi
21907
21908if test x$ADMIN_MAN_SUFFIX = x    ; then
21909    case $host_os in
21910	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
21911	*)		ADMIN_MAN_SUFFIX=8  ;;
21912    esac
21913fi
21914if test x$ADMIN_MAN_DIR = x    ; then
21915    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21916fi
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934# Check whether --with-release-version was given.
21935if test "${with_release_version+set}" = set; then
21936  withval=$with_release_version; RELEASE_VERSION="$withval"
21937else
21938  RELEASE_VERSION=""
21939fi
21940
21941	if test "x$RELEASE_VERSION" != "x"; then
21942		PACKAGE="$PACKAGE-$RELEASE_VERSION"
21943		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21944		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21945echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21946	fi
21947
21948
21949
21950XORG_SGML_PATH=$prefix/share/sgml
21951HAVE_DEFS_ENT=
21952
21953as_ac_File=`echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
21954{ echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
21955echo $ECHO_N "checking for $XORG_SGML_PATH/X11/defs.ent... $ECHO_C" >&6; }
21956if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21957  echo $ECHO_N "(cached) $ECHO_C" >&6
21958else
21959  test "$cross_compiling" = yes &&
21960  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21961echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21962   { (exit 1); exit 1; }; }
21963if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
21964  eval "$as_ac_File=yes"
21965else
21966  eval "$as_ac_File=no"
21967fi
21968fi
21969ac_res=`eval echo '${'$as_ac_File'}'`
21970	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21971echo "${ECHO_T}$ac_res" >&6; }
21972if test `eval echo '${'$as_ac_File'}'` = yes; then
21973  HAVE_DEFS_ENT=yes
21974fi
21975
21976
21977# Extract the first word of "linuxdoc", so it can be a program name with args.
21978set dummy linuxdoc; ac_word=$2
21979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21981if test "${ac_cv_path_LINUXDOC+set}" = set; then
21982  echo $ECHO_N "(cached) $ECHO_C" >&6
21983else
21984  case $LINUXDOC in
21985  [\\/]* | ?:[\\/]*)
21986  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
21987  ;;
21988  *)
21989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21990for as_dir in $PATH
21991do
21992  IFS=$as_save_IFS
21993  test -z "$as_dir" && as_dir=.
21994  for ac_exec_ext in '' $ac_executable_extensions; do
21995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21996    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
21997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21998    break 2
21999  fi
22000done
22001done
22002IFS=$as_save_IFS
22003
22004  ;;
22005esac
22006fi
22007LINUXDOC=$ac_cv_path_LINUXDOC
22008if test -n "$LINUXDOC"; then
22009  { echo "$as_me:$LINENO: result: $LINUXDOC" >&5
22010echo "${ECHO_T}$LINUXDOC" >&6; }
22011else
22012  { echo "$as_me:$LINENO: result: no" >&5
22013echo "${ECHO_T}no" >&6; }
22014fi
22015
22016
22017# Extract the first word of "ps2pdf", so it can be a program name with args.
22018set dummy ps2pdf; ac_word=$2
22019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22021if test "${ac_cv_path_PS2PDF+set}" = set; then
22022  echo $ECHO_N "(cached) $ECHO_C" >&6
22023else
22024  case $PS2PDF in
22025  [\\/]* | ?:[\\/]*)
22026  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
22027  ;;
22028  *)
22029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22030for as_dir in $PATH
22031do
22032  IFS=$as_save_IFS
22033  test -z "$as_dir" && as_dir=.
22034  for ac_exec_ext in '' $ac_executable_extensions; do
22035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22036    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
22037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22038    break 2
22039  fi
22040done
22041done
22042IFS=$as_save_IFS
22043
22044  ;;
22045esac
22046fi
22047PS2PDF=$ac_cv_path_PS2PDF
22048if test -n "$PS2PDF"; then
22049  { echo "$as_me:$LINENO: result: $PS2PDF" >&5
22050echo "${ECHO_T}$PS2PDF" >&6; }
22051else
22052  { echo "$as_me:$LINENO: result: no" >&5
22053echo "${ECHO_T}no" >&6; }
22054fi
22055
22056
22057
22058{ echo "$as_me:$LINENO: checking Whether to build documentation" >&5
22059echo $ECHO_N "checking Whether to build documentation... $ECHO_C" >&6; }
22060
22061if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
22062   BUILDDOC=yes
22063else
22064   BUILDDOC=no
22065fi
22066
22067
22068
22069if test x$BUILDDOC = xyes; then
22070  BUILD_LINUXDOC_TRUE=
22071  BUILD_LINUXDOC_FALSE='#'
22072else
22073  BUILD_LINUXDOC_TRUE='#'
22074  BUILD_LINUXDOC_FALSE=
22075fi
22076
22077
22078{ echo "$as_me:$LINENO: result: $BUILDDOC" >&5
22079echo "${ECHO_T}$BUILDDOC" >&6; }
22080
22081{ echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
22082echo $ECHO_N "checking Whether to build pdf documentation... $ECHO_C" >&6; }
22083
22084if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
22085   BUILDPDFDOC=yes
22086else
22087   BUILDPDFDOC=no
22088fi
22089
22090
22091
22092if test x$BUILDPDFDOC = xyes; then
22093  BUILD_PDFDOC_TRUE=
22094  BUILD_PDFDOC_FALSE='#'
22095else
22096  BUILD_PDFDOC_TRUE='#'
22097  BUILD_PDFDOC_FALSE=
22098fi
22099
22100
22101{ echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
22102echo "${ECHO_T}$BUILDPDFDOC" >&6; }
22103
22104MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
22105MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
22106MAKE_PDF="$PS2PDF"
22107MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
22108
22109
22110
22111
22112
22113
22114
22115ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
22116
22117cat >confcache <<\_ACEOF
22118# This file is a shell script that caches the results of configure
22119# tests run on this system so they can be shared between configure
22120# scripts and configure runs, see configure's option --config-cache.
22121# It is not useful on other systems.  If it contains results you don't
22122# want to keep, you may remove or edit it.
22123#
22124# config.status only pays attention to the cache file if you give it
22125# the --recheck option to rerun configure.
22126#
22127# `ac_cv_env_foo' variables (set or unset) will be overridden when
22128# loading this file, other *unset* `ac_cv_foo' will be assigned the
22129# following values.
22130
22131_ACEOF
22132
22133# The following way of writing the cache mishandles newlines in values,
22134# but we know of no workaround that is simple, portable, and efficient.
22135# So, we kill variables containing newlines.
22136# Ultrix sh set writes to stderr and can't be redirected directly,
22137# and sets the high bit in the cache file unless we assign to the vars.
22138(
22139  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22140    eval ac_val=\$$ac_var
22141    case $ac_val in #(
22142    *${as_nl}*)
22143      case $ac_var in #(
22144      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22145echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22146      esac
22147      case $ac_var in #(
22148      _ | IFS | as_nl) ;; #(
22149      *) $as_unset $ac_var ;;
22150      esac ;;
22151    esac
22152  done
22153
22154  (set) 2>&1 |
22155    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22156    *${as_nl}ac_space=\ *)
22157      # `set' does not quote correctly, so add quotes (double-quote
22158      # substitution turns \\\\ into \\, and sed turns \\ into \).
22159      sed -n \
22160	"s/'/'\\\\''/g;
22161	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22162      ;; #(
22163    *)
22164      # `set' quotes correctly as required by POSIX, so do not add quotes.
22165      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22166      ;;
22167    esac |
22168    sort
22169) |
22170  sed '
22171     /^ac_cv_env_/b end
22172     t clear
22173     :clear
22174     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22175     t end
22176     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22177     :end' >>confcache
22178if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22179  if test -w "$cache_file"; then
22180    test "x$cache_file" != "x/dev/null" &&
22181      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22182echo "$as_me: updating cache $cache_file" >&6;}
22183    cat confcache >$cache_file
22184  else
22185    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22186echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22187  fi
22188fi
22189rm -f confcache
22190
22191test "x$prefix" = xNONE && prefix=$ac_default_prefix
22192# Let make expand exec_prefix.
22193test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22194
22195DEFS=-DHAVE_CONFIG_H
22196
22197ac_libobjs=
22198ac_ltlibobjs=
22199for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22200  # 1. Remove the extension, and $U if already installed.
22201  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22202  ac_i=`echo "$ac_i" | sed "$ac_script"`
22203  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22204  #    will be set to the directory where LIBOBJS objects are built.
22205  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22206  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22207done
22208LIBOBJS=$ac_libobjs
22209
22210LTLIBOBJS=$ac_ltlibobjs
22211
22212
22213if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22214  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22215Usually this means the macro was only invoked conditionally." >&5
22216echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22217Usually this means the macro was only invoked conditionally." >&2;}
22218   { (exit 1); exit 1; }; }
22219fi
22220if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22221  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22222Usually this means the macro was only invoked conditionally." >&5
22223echo "$as_me: error: conditional \"AMDEP\" was never defined.
22224Usually this means the macro was only invoked conditionally." >&2;}
22225   { (exit 1); exit 1; }; }
22226fi
22227if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22228  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22229Usually this means the macro was only invoked conditionally." >&5
22230echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22231Usually this means the macro was only invoked conditionally." >&2;}
22232   { (exit 1); exit 1; }; }
22233fi
22234if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22235  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22236Usually this means the macro was only invoked conditionally." >&5
22237echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22238Usually this means the macro was only invoked conditionally." >&2;}
22239   { (exit 1); exit 1; }; }
22240fi
22241if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22242  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22243Usually this means the macro was only invoked conditionally." >&5
22244echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22245Usually this means the macro was only invoked conditionally." >&2;}
22246   { (exit 1); exit 1; }; }
22247fi
22248if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
22249  { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
22250Usually this means the macro was only invoked conditionally." >&5
22251echo "$as_me: error: conditional \"DRI\" was never defined.
22252Usually this means the macro was only invoked conditionally." >&2;}
22253   { (exit 1); exit 1; }; }
22254fi
22255if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
22256  { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
22257Usually this means the macro was only invoked conditionally." >&5
22258echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
22259Usually this means the macro was only invoked conditionally." >&2;}
22260   { (exit 1); exit 1; }; }
22261fi
22262if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
22263  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
22264Usually this means the macro was only invoked conditionally." >&5
22265echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
22266Usually this means the macro was only invoked conditionally." >&2;}
22267   { (exit 1); exit 1; }; }
22268fi
22269
22270: ${CONFIG_STATUS=./config.status}
22271ac_clean_files_save=$ac_clean_files
22272ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22273{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22274echo "$as_me: creating $CONFIG_STATUS" >&6;}
22275cat >$CONFIG_STATUS <<_ACEOF
22276#! $SHELL
22277# Generated by $as_me.
22278# Run this file to recreate the current configuration.
22279# Compiler output produced by configure, useful for debugging
22280# configure, is in config.log if it exists.
22281
22282debug=false
22283ac_cs_recheck=false
22284ac_cs_silent=false
22285SHELL=\${CONFIG_SHELL-$SHELL}
22286_ACEOF
22287
22288cat >>$CONFIG_STATUS <<\_ACEOF
22289## --------------------- ##
22290## M4sh Initialization.  ##
22291## --------------------- ##
22292
22293# Be Bourne compatible
22294if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22295  emulate sh
22296  NULLCMD=:
22297  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22298  # is contrary to our usage.  Disable this feature.
22299  alias -g '${1+"$@"}'='"$@"'
22300  setopt NO_GLOB_SUBST
22301else
22302  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22303fi
22304BIN_SH=xpg4; export BIN_SH # for Tru64
22305DUALCASE=1; export DUALCASE # for MKS sh
22306
22307
22308# PATH needs CR
22309# Avoid depending upon Character Ranges.
22310as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22311as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22312as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22313as_cr_digits='0123456789'
22314as_cr_alnum=$as_cr_Letters$as_cr_digits
22315
22316# The user is always right.
22317if test "${PATH_SEPARATOR+set}" != set; then
22318  echo "#! /bin/sh" >conf$$.sh
22319  echo  "exit 0"   >>conf$$.sh
22320  chmod +x conf$$.sh
22321  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22322    PATH_SEPARATOR=';'
22323  else
22324    PATH_SEPARATOR=:
22325  fi
22326  rm -f conf$$.sh
22327fi
22328
22329# Support unset when possible.
22330if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22331  as_unset=unset
22332else
22333  as_unset=false
22334fi
22335
22336
22337# IFS
22338# We need space, tab and new line, in precisely that order.  Quoting is
22339# there to prevent editors from complaining about space-tab.
22340# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22341# splitting by setting IFS to empty value.)
22342as_nl='
22343'
22344IFS=" ""	$as_nl"
22345
22346# Find who we are.  Look in the path if we contain no directory separator.
22347case $0 in
22348  *[\\/]* ) as_myself=$0 ;;
22349  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22350for as_dir in $PATH
22351do
22352  IFS=$as_save_IFS
22353  test -z "$as_dir" && as_dir=.
22354  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22355done
22356IFS=$as_save_IFS
22357
22358     ;;
22359esac
22360# We did not find ourselves, most probably we were run as `sh COMMAND'
22361# in which case we are not to be found in the path.
22362if test "x$as_myself" = x; then
22363  as_myself=$0
22364fi
22365if test ! -f "$as_myself"; then
22366  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22367  { (exit 1); exit 1; }
22368fi
22369
22370# Work around bugs in pre-3.0 UWIN ksh.
22371for as_var in ENV MAIL MAILPATH
22372do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22373done
22374PS1='$ '
22375PS2='> '
22376PS4='+ '
22377
22378# NLS nuisances.
22379for as_var in \
22380  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22381  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22382  LC_TELEPHONE LC_TIME
22383do
22384  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22385    eval $as_var=C; export $as_var
22386  else
22387    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22388  fi
22389done
22390
22391# Required to use basename.
22392if expr a : '\(a\)' >/dev/null 2>&1 &&
22393   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22394  as_expr=expr
22395else
22396  as_expr=false
22397fi
22398
22399if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22400  as_basename=basename
22401else
22402  as_basename=false
22403fi
22404
22405
22406# Name of the executable.
22407as_me=`$as_basename -- "$0" ||
22408$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22409	 X"$0" : 'X\(//\)$' \| \
22410	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22411echo X/"$0" |
22412    sed '/^.*\/\([^/][^/]*\)\/*$/{
22413	    s//\1/
22414	    q
22415	  }
22416	  /^X\/\(\/\/\)$/{
22417	    s//\1/
22418	    q
22419	  }
22420	  /^X\/\(\/\).*/{
22421	    s//\1/
22422	    q
22423	  }
22424	  s/.*/./; q'`
22425
22426# CDPATH.
22427$as_unset CDPATH
22428
22429
22430
22431  as_lineno_1=$LINENO
22432  as_lineno_2=$LINENO
22433  test "x$as_lineno_1" != "x$as_lineno_2" &&
22434  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22435
22436  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22437  # uniformly replaced by the line number.  The first 'sed' inserts a
22438  # line-number line after each line using $LINENO; the second 'sed'
22439  # does the real work.  The second script uses 'N' to pair each
22440  # line-number line with the line containing $LINENO, and appends
22441  # trailing '-' during substitution so that $LINENO is not a special
22442  # case at line end.
22443  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22444  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22445  # E. McMahon (1931-1989) for sed's syntax.  :-)
22446  sed -n '
22447    p
22448    /[$]LINENO/=
22449  ' <$as_myself |
22450    sed '
22451      s/[$]LINENO.*/&-/
22452      t lineno
22453      b
22454      :lineno
22455      N
22456      :loop
22457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22458      t loop
22459      s/-\n.*//
22460    ' >$as_me.lineno &&
22461  chmod +x "$as_me.lineno" ||
22462    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22463   { (exit 1); exit 1; }; }
22464
22465  # Don't try to exec as it changes $[0], causing all sort of problems
22466  # (the dirname of $[0] is not the place where we might find the
22467  # original and so on.  Autoconf is especially sensitive to this).
22468  . "./$as_me.lineno"
22469  # Exit status is that of the last command.
22470  exit
22471}
22472
22473
22474if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22475  as_dirname=dirname
22476else
22477  as_dirname=false
22478fi
22479
22480ECHO_C= ECHO_N= ECHO_T=
22481case `echo -n x` in
22482-n*)
22483  case `echo 'x\c'` in
22484  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22485  *)   ECHO_C='\c';;
22486  esac;;
22487*)
22488  ECHO_N='-n';;
22489esac
22490
22491if expr a : '\(a\)' >/dev/null 2>&1 &&
22492   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22493  as_expr=expr
22494else
22495  as_expr=false
22496fi
22497
22498rm -f conf$$ conf$$.exe conf$$.file
22499if test -d conf$$.dir; then
22500  rm -f conf$$.dir/conf$$.file
22501else
22502  rm -f conf$$.dir
22503  mkdir conf$$.dir
22504fi
22505echo >conf$$.file
22506if ln -s conf$$.file conf$$ 2>/dev/null; then
22507  as_ln_s='ln -s'
22508  # ... but there are two gotchas:
22509  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22510  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22511  # In both cases, we have to default to `cp -p'.
22512  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22513    as_ln_s='cp -p'
22514elif ln conf$$.file conf$$ 2>/dev/null; then
22515  as_ln_s=ln
22516else
22517  as_ln_s='cp -p'
22518fi
22519rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22520rmdir conf$$.dir 2>/dev/null
22521
22522if mkdir -p . 2>/dev/null; then
22523  as_mkdir_p=:
22524else
22525  test -d ./-p && rmdir ./-p
22526  as_mkdir_p=false
22527fi
22528
22529# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22530# systems may use methods other than mode bits to determine executability.
22531cat >conf$$.file <<_ASEOF
22532#! /bin/sh
22533exit 0
22534_ASEOF
22535chmod +x conf$$.file
22536if test -x conf$$.file >/dev/null 2>&1; then
22537  as_executable_p="test -x"
22538else
22539  as_executable_p=:
22540fi
22541rm -f conf$$.file
22542
22543# Sed expression to map a string onto a valid CPP name.
22544as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22545
22546# Sed expression to map a string onto a valid variable name.
22547as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22548
22549
22550exec 6>&1
22551
22552# Save the log message, to keep $[0] and so on meaningful, and to
22553# report actual input values of CONFIG_FILES etc. instead of their
22554# values after options handling.
22555ac_log="
22556This file was extended by xf86-video-sis $as_me 0.9.3, which was
22557generated by GNU Autoconf 2.60.  Invocation command line was
22558
22559  CONFIG_FILES    = $CONFIG_FILES
22560  CONFIG_HEADERS  = $CONFIG_HEADERS
22561  CONFIG_LINKS    = $CONFIG_LINKS
22562  CONFIG_COMMANDS = $CONFIG_COMMANDS
22563  $ $0 $@
22564
22565on `(hostname || uname -n) 2>/dev/null | sed 1q`
22566"
22567
22568_ACEOF
22569
22570cat >>$CONFIG_STATUS <<_ACEOF
22571# Files that config.status was made for.
22572config_files="$ac_config_files"
22573config_headers="$ac_config_headers"
22574config_commands="$ac_config_commands"
22575
22576_ACEOF
22577
22578cat >>$CONFIG_STATUS <<\_ACEOF
22579ac_cs_usage="\
22580\`$as_me' instantiates files from templates according to the
22581current configuration.
22582
22583Usage: $0 [OPTIONS] [FILE]...
22584
22585  -h, --help       print this help, then exit
22586  -V, --version    print version number, then exit
22587  -q, --quiet      do not print progress messages
22588  -d, --debug      don't remove temporary files
22589      --recheck    update $as_me by reconfiguring in the same conditions
22590  --file=FILE[:TEMPLATE]
22591		   instantiate the configuration file FILE
22592  --header=FILE[:TEMPLATE]
22593		   instantiate the configuration header FILE
22594
22595Configuration files:
22596$config_files
22597
22598Configuration headers:
22599$config_headers
22600
22601Configuration commands:
22602$config_commands
22603
22604Report bugs to <bug-autoconf@gnu.org>."
22605
22606_ACEOF
22607cat >>$CONFIG_STATUS <<_ACEOF
22608ac_cs_version="\\
22609xf86-video-sis config.status 0.9.3
22610configured by $0, generated by GNU Autoconf 2.60,
22611  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22612
22613Copyright (C) 2006 Free Software Foundation, Inc.
22614This config.status script is free software; the Free Software Foundation
22615gives unlimited permission to copy, distribute and modify it."
22616
22617ac_pwd='$ac_pwd'
22618srcdir='$srcdir'
22619INSTALL='$INSTALL'
22620_ACEOF
22621
22622cat >>$CONFIG_STATUS <<\_ACEOF
22623# If no file are specified by the user, then we need to provide default
22624# value.  By we need to know if files were specified by the user.
22625ac_need_defaults=:
22626while test $# != 0
22627do
22628  case $1 in
22629  --*=*)
22630    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22631    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22632    ac_shift=:
22633    ;;
22634  *)
22635    ac_option=$1
22636    ac_optarg=$2
22637    ac_shift=shift
22638    ;;
22639  esac
22640
22641  case $ac_option in
22642  # Handling of the options.
22643  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22644    ac_cs_recheck=: ;;
22645  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22646    echo "$ac_cs_version"; exit ;;
22647  --debug | --debu | --deb | --de | --d | -d )
22648    debug=: ;;
22649  --file | --fil | --fi | --f )
22650    $ac_shift
22651    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22652    ac_need_defaults=false;;
22653  --header | --heade | --head | --hea )
22654    $ac_shift
22655    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22656    ac_need_defaults=false;;
22657  --he | --h)
22658    # Conflict between --help and --header
22659    { echo "$as_me: error: ambiguous option: $1
22660Try \`$0 --help' for more information." >&2
22661   { (exit 1); exit 1; }; };;
22662  --help | --hel | -h )
22663    echo "$ac_cs_usage"; exit ;;
22664  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22665  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22666    ac_cs_silent=: ;;
22667
22668  # This is an error.
22669  -*) { echo "$as_me: error: unrecognized option: $1
22670Try \`$0 --help' for more information." >&2
22671   { (exit 1); exit 1; }; } ;;
22672
22673  *) ac_config_targets="$ac_config_targets $1"
22674     ac_need_defaults=false ;;
22675
22676  esac
22677  shift
22678done
22679
22680ac_configure_extra_args=
22681
22682if $ac_cs_silent; then
22683  exec 6>/dev/null
22684  ac_configure_extra_args="$ac_configure_extra_args --silent"
22685fi
22686
22687_ACEOF
22688cat >>$CONFIG_STATUS <<_ACEOF
22689if \$ac_cs_recheck; then
22690  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22691  CONFIG_SHELL=$SHELL
22692  export CONFIG_SHELL
22693  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22694fi
22695
22696_ACEOF
22697cat >>$CONFIG_STATUS <<\_ACEOF
22698exec 5>>config.log
22699{
22700  echo
22701  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22702## Running $as_me. ##
22703_ASBOX
22704  echo "$ac_log"
22705} >&5
22706
22707_ACEOF
22708cat >>$CONFIG_STATUS <<_ACEOF
22709#
22710# INIT-COMMANDS
22711#
22712AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22713
22714_ACEOF
22715
22716cat >>$CONFIG_STATUS <<\_ACEOF
22717
22718# Handling of arguments.
22719for ac_config_target in $ac_config_targets
22720do
22721  case $ac_config_target in
22722    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22723    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22724    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22725    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22726    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22727
22728  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22729echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22730   { (exit 1); exit 1; }; };;
22731  esac
22732done
22733
22734
22735# If the user did not use the arguments to specify the items to instantiate,
22736# then the envvar interface is used.  Set only those that are not.
22737# We use the long form for the default assignment because of an extremely
22738# bizarre bug on SunOS 4.1.3.
22739if $ac_need_defaults; then
22740  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22741  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22742  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22743fi
22744
22745# Have a temporary directory for convenience.  Make it in the build tree
22746# simply because there is no reason against having it here, and in addition,
22747# creating and moving files from /tmp can sometimes cause problems.
22748# Hook for its removal unless debugging.
22749# Note that there is a small window in which the directory will not be cleaned:
22750# after its creation but before its name has been assigned to `$tmp'.
22751$debug ||
22752{
22753  tmp=
22754  trap 'exit_status=$?
22755  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22756' 0
22757  trap '{ (exit 1); exit 1; }' 1 2 13 15
22758}
22759# Create a (secure) tmp directory for tmp files.
22760
22761{
22762  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22763  test -n "$tmp" && test -d "$tmp"
22764}  ||
22765{
22766  tmp=./conf$$-$RANDOM
22767  (umask 077 && mkdir "$tmp")
22768} ||
22769{
22770   echo "$me: cannot create a temporary directory in ." >&2
22771   { (exit 1); exit 1; }
22772}
22773
22774#
22775# Set up the sed scripts for CONFIG_FILES section.
22776#
22777
22778# No need to generate the scripts if there are no CONFIG_FILES.
22779# This happens for instance when ./config.status config.h
22780if test -n "$CONFIG_FILES"; then
22781
22782_ACEOF
22783
22784
22785
22786ac_delim='%!_!# '
22787for ac_last_try in false false false false false :; do
22788  cat >conf$$subs.sed <<_ACEOF
22789SHELL!$SHELL$ac_delim
22790PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22791PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22792PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22793PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22794PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22795PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22796exec_prefix!$exec_prefix$ac_delim
22797prefix!$prefix$ac_delim
22798program_transform_name!$program_transform_name$ac_delim
22799bindir!$bindir$ac_delim
22800sbindir!$sbindir$ac_delim
22801libexecdir!$libexecdir$ac_delim
22802datarootdir!$datarootdir$ac_delim
22803datadir!$datadir$ac_delim
22804sysconfdir!$sysconfdir$ac_delim
22805sharedstatedir!$sharedstatedir$ac_delim
22806localstatedir!$localstatedir$ac_delim
22807includedir!$includedir$ac_delim
22808oldincludedir!$oldincludedir$ac_delim
22809docdir!$docdir$ac_delim
22810infodir!$infodir$ac_delim
22811htmldir!$htmldir$ac_delim
22812dvidir!$dvidir$ac_delim
22813pdfdir!$pdfdir$ac_delim
22814psdir!$psdir$ac_delim
22815libdir!$libdir$ac_delim
22816localedir!$localedir$ac_delim
22817mandir!$mandir$ac_delim
22818DEFS!$DEFS$ac_delim
22819ECHO_C!$ECHO_C$ac_delim
22820ECHO_N!$ECHO_N$ac_delim
22821ECHO_T!$ECHO_T$ac_delim
22822LIBS!$LIBS$ac_delim
22823build_alias!$build_alias$ac_delim
22824host_alias!$host_alias$ac_delim
22825target_alias!$target_alias$ac_delim
22826INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22827INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22828INSTALL_DATA!$INSTALL_DATA$ac_delim
22829CYGPATH_W!$CYGPATH_W$ac_delim
22830PACKAGE!$PACKAGE$ac_delim
22831VERSION!$VERSION$ac_delim
22832ACLOCAL!$ACLOCAL$ac_delim
22833AUTOCONF!$AUTOCONF$ac_delim
22834AUTOMAKE!$AUTOMAKE$ac_delim
22835AUTOHEADER!$AUTOHEADER$ac_delim
22836MAKEINFO!$MAKEINFO$ac_delim
22837install_sh!$install_sh$ac_delim
22838STRIP!$STRIP$ac_delim
22839INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22840mkdir_p!$mkdir_p$ac_delim
22841AWK!$AWK$ac_delim
22842SET_MAKE!$SET_MAKE$ac_delim
22843am__leading_dot!$am__leading_dot$ac_delim
22844AMTAR!$AMTAR$ac_delim
22845am__tar!$am__tar$ac_delim
22846am__untar!$am__untar$ac_delim
22847AMSHOWCMDSAT!$AMSHOWCMDSAT$ac_delim
22848AMDEPSHOWCMDSAT!$AMDEPSHOWCMDSAT$ac_delim
22849AMPRETTYECHO!$AMPRETTYECHO$ac_delim
22850AMCMDECHO!$AMCMDECHO$ac_delim
22851LT_QUIET!$LT_QUIET$ac_delim
22852MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22853MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22854MAINT!$MAINT$ac_delim
22855build!$build$ac_delim
22856build_cpu!$build_cpu$ac_delim
22857build_vendor!$build_vendor$ac_delim
22858build_os!$build_os$ac_delim
22859host!$host$ac_delim
22860host_cpu!$host_cpu$ac_delim
22861host_vendor!$host_vendor$ac_delim
22862host_os!$host_os$ac_delim
22863CC!$CC$ac_delim
22864CFLAGS!$CFLAGS$ac_delim
22865LDFLAGS!$LDFLAGS$ac_delim
22866CPPFLAGS!$CPPFLAGS$ac_delim
22867ac_ct_CC!$ac_ct_CC$ac_delim
22868EXEEXT!$EXEEXT$ac_delim
22869OBJEXT!$OBJEXT$ac_delim
22870DEPDIR!$DEPDIR$ac_delim
22871am__include!$am__include$ac_delim
22872am__quote!$am__quote$ac_delim
22873AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22874AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22875AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22876CCDEPMODE!$CCDEPMODE$ac_delim
22877am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22878am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22879GREP!$GREP$ac_delim
22880EGREP!$EGREP$ac_delim
22881LN_S!$LN_S$ac_delim
22882ECHO!$ECHO$ac_delim
22883AR!$AR$ac_delim
22884RANLIB!$RANLIB$ac_delim
22885CPP!$CPP$ac_delim
22886_ACEOF
22887
22888  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22889    break
22890  elif $ac_last_try; then
22891    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22892echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22893   { (exit 1); exit 1; }; }
22894  else
22895    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22896  fi
22897done
22898
22899ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22900if test -n "$ac_eof"; then
22901  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22902  ac_eof=`expr $ac_eof + 1`
22903fi
22904
22905cat >>$CONFIG_STATUS <<_ACEOF
22906cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22907/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22908_ACEOF
22909sed '
22910s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22911s/^/s,@/; s/!/@,|#_!!_#|/
22912:n
22913t n
22914s/'"$ac_delim"'$/,g/; t
22915s/$/\\/; p
22916N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22917' >>$CONFIG_STATUS <conf$$subs.sed
22918rm -f conf$$subs.sed
22919cat >>$CONFIG_STATUS <<_ACEOF
22920CEOF$ac_eof
22921_ACEOF
22922
22923
22924ac_delim='%!_!# '
22925for ac_last_try in false false false false false :; do
22926  cat >conf$$subs.sed <<_ACEOF
22927CXX!$CXX$ac_delim
22928CXXFLAGS!$CXXFLAGS$ac_delim
22929ac_ct_CXX!$ac_ct_CXX$ac_delim
22930CXXDEPMODE!$CXXDEPMODE$ac_delim
22931am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22932am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22933CXXCPP!$CXXCPP$ac_delim
22934F77!$F77$ac_delim
22935FFLAGS!$FFLAGS$ac_delim
22936ac_ct_F77!$ac_ct_F77$ac_delim
22937LIBTOOL!$LIBTOOL$ac_delim
22938RAWCPP!$RAWCPP$ac_delim
22939RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
22940PKG_CONFIG!$PKG_CONFIG$ac_delim
22941XORG_CFLAGS!$XORG_CFLAGS$ac_delim
22942XORG_LIBS!$XORG_LIBS$ac_delim
22943DRI_TRUE!$DRI_TRUE$ac_delim
22944DRI_FALSE!$DRI_FALSE$ac_delim
22945DRI_CFLAGS!$DRI_CFLAGS$ac_delim
22946DRI_LIBS!$DRI_LIBS$ac_delim
22947moduledir!$moduledir$ac_delim
22948DRIVER_NAME!$DRIVER_NAME$ac_delim
22949APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
22950LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
22951FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
22952MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
22953DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
22954ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
22955APP_MAN_DIR!$APP_MAN_DIR$ac_delim
22956LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
22957FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
22958MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
22959DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
22960ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
22961LINUXDOC!$LINUXDOC$ac_delim
22962PS2PDF!$PS2PDF$ac_delim
22963BUILD_LINUXDOC_TRUE!$BUILD_LINUXDOC_TRUE$ac_delim
22964BUILD_LINUXDOC_FALSE!$BUILD_LINUXDOC_FALSE$ac_delim
22965BUILD_PDFDOC_TRUE!$BUILD_PDFDOC_TRUE$ac_delim
22966BUILD_PDFDOC_FALSE!$BUILD_PDFDOC_FALSE$ac_delim
22967MAKE_TEXT!$MAKE_TEXT$ac_delim
22968MAKE_PS!$MAKE_PS$ac_delim
22969MAKE_PDF!$MAKE_PDF$ac_delim
22970MAKE_HTML!$MAKE_HTML$ac_delim
22971LIBOBJS!$LIBOBJS$ac_delim
22972LTLIBOBJS!$LTLIBOBJS$ac_delim
22973_ACEOF
22974
22975  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
22976    break
22977  elif $ac_last_try; then
22978    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22979echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22980   { (exit 1); exit 1; }; }
22981  else
22982    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22983  fi
22984done
22985
22986ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22987if test -n "$ac_eof"; then
22988  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22989  ac_eof=`expr $ac_eof + 1`
22990fi
22991
22992cat >>$CONFIG_STATUS <<_ACEOF
22993cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22994/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22995_ACEOF
22996sed '
22997s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22998s/^/s,@/; s/!/@,|#_!!_#|/
22999:n
23000t n
23001s/'"$ac_delim"'$/,g/; t
23002s/$/\\/; p
23003N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23004' >>$CONFIG_STATUS <conf$$subs.sed
23005rm -f conf$$subs.sed
23006cat >>$CONFIG_STATUS <<_ACEOF
23007:end
23008s/|#_!!_#|//g
23009CEOF$ac_eof
23010_ACEOF
23011
23012
23013# VPATH may cause trouble with some makes, so we remove $(srcdir),
23014# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23015# trailing colons and then remove the whole line if VPATH becomes empty
23016# (actually we leave an empty line to preserve line numbers).
23017if test "x$srcdir" = x.; then
23018  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23019s/:*\$(srcdir):*/:/
23020s/:*\${srcdir}:*/:/
23021s/:*@srcdir@:*/:/
23022s/^\([^=]*=[	 ]*\):*/\1/
23023s/:*$//
23024s/^[^=]*=[	 ]*$//
23025}'
23026fi
23027
23028cat >>$CONFIG_STATUS <<\_ACEOF
23029fi # test -n "$CONFIG_FILES"
23030
23031
23032for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23033do
23034  case $ac_tag in
23035  :[FHLC]) ac_mode=$ac_tag; continue;;
23036  esac
23037  case $ac_mode$ac_tag in
23038  :[FHL]*:*);;
23039  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23040echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23041   { (exit 1); exit 1; }; };;
23042  :[FH]-) ac_tag=-:-;;
23043  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23044  esac
23045  ac_save_IFS=$IFS
23046  IFS=:
23047  set x $ac_tag
23048  IFS=$ac_save_IFS
23049  shift
23050  ac_file=$1
23051  shift
23052
23053  case $ac_mode in
23054  :L) ac_source=$1;;
23055  :[FH])
23056    ac_file_inputs=
23057    for ac_f
23058    do
23059      case $ac_f in
23060      -) ac_f="$tmp/stdin";;
23061      *) # Look for the file first in the build tree, then in the source tree
23062	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23063	 # because $ac_f cannot contain `:'.
23064	 test -f "$ac_f" ||
23065	   case $ac_f in
23066	   [\\/$]*) false;;
23067	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23068	   esac ||
23069	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23070echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23071   { (exit 1); exit 1; }; };;
23072      esac
23073      ac_file_inputs="$ac_file_inputs $ac_f"
23074    done
23075
23076    # Let's still pretend it is `configure' which instantiates (i.e., don't
23077    # use $as_me), people would be surprised to read:
23078    #    /* config.h.  Generated by config.status.  */
23079    configure_input="Generated from "`IFS=:
23080	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23081    if test x"$ac_file" != x-; then
23082      configure_input="$ac_file.  $configure_input"
23083      { echo "$as_me:$LINENO: creating $ac_file" >&5
23084echo "$as_me: creating $ac_file" >&6;}
23085    fi
23086
23087    case $ac_tag in
23088    *:-:* | *:-) cat >"$tmp/stdin";;
23089    esac
23090    ;;
23091  esac
23092
23093  ac_dir=`$as_dirname -- "$ac_file" ||
23094$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23095	 X"$ac_file" : 'X\(//\)[^/]' \| \
23096	 X"$ac_file" : 'X\(//\)$' \| \
23097	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23098echo X"$ac_file" |
23099    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23100	    s//\1/
23101	    q
23102	  }
23103	  /^X\(\/\/\)[^/].*/{
23104	    s//\1/
23105	    q
23106	  }
23107	  /^X\(\/\/\)$/{
23108	    s//\1/
23109	    q
23110	  }
23111	  /^X\(\/\).*/{
23112	    s//\1/
23113	    q
23114	  }
23115	  s/.*/./; q'`
23116  { as_dir="$ac_dir"
23117  case $as_dir in #(
23118  -*) as_dir=./$as_dir;;
23119  esac
23120  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23121    as_dirs=
23122    while :; do
23123      case $as_dir in #(
23124      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23125      *) as_qdir=$as_dir;;
23126      esac
23127      as_dirs="'$as_qdir' $as_dirs"
23128      as_dir=`$as_dirname -- "$as_dir" ||
23129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23130	 X"$as_dir" : 'X\(//\)[^/]' \| \
23131	 X"$as_dir" : 'X\(//\)$' \| \
23132	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23133echo X"$as_dir" |
23134    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23135	    s//\1/
23136	    q
23137	  }
23138	  /^X\(\/\/\)[^/].*/{
23139	    s//\1/
23140	    q
23141	  }
23142	  /^X\(\/\/\)$/{
23143	    s//\1/
23144	    q
23145	  }
23146	  /^X\(\/\).*/{
23147	    s//\1/
23148	    q
23149	  }
23150	  s/.*/./; q'`
23151      test -d "$as_dir" && break
23152    done
23153    test -z "$as_dirs" || eval "mkdir $as_dirs"
23154  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23155echo "$as_me: error: cannot create directory $as_dir" >&2;}
23156   { (exit 1); exit 1; }; }; }
23157  ac_builddir=.
23158
23159case "$ac_dir" in
23160.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23161*)
23162  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23163  # A ".." for each directory in $ac_dir_suffix.
23164  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23165  case $ac_top_builddir_sub in
23166  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23167  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23168  esac ;;
23169esac
23170ac_abs_top_builddir=$ac_pwd
23171ac_abs_builddir=$ac_pwd$ac_dir_suffix
23172# for backward compatibility:
23173ac_top_builddir=$ac_top_build_prefix
23174
23175case $srcdir in
23176  .)  # We are building in place.
23177    ac_srcdir=.
23178    ac_top_srcdir=$ac_top_builddir_sub
23179    ac_abs_top_srcdir=$ac_pwd ;;
23180  [\\/]* | ?:[\\/]* )  # Absolute name.
23181    ac_srcdir=$srcdir$ac_dir_suffix;
23182    ac_top_srcdir=$srcdir
23183    ac_abs_top_srcdir=$srcdir ;;
23184  *) # Relative name.
23185    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23186    ac_top_srcdir=$ac_top_build_prefix$srcdir
23187    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23188esac
23189ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23190
23191
23192  case $ac_mode in
23193  :F)
23194  #
23195  # CONFIG_FILE
23196  #
23197
23198  case $INSTALL in
23199  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23200  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23201  esac
23202_ACEOF
23203
23204cat >>$CONFIG_STATUS <<\_ACEOF
23205# If the template does not know about datarootdir, expand it.
23206# FIXME: This hack should be removed a few years after 2.60.
23207ac_datarootdir_hack=; ac_datarootdir_seen=
23208
23209case `sed -n '/datarootdir/ {
23210  p
23211  q
23212}
23213/@datadir@/p
23214/@docdir@/p
23215/@infodir@/p
23216/@localedir@/p
23217/@mandir@/p
23218' $ac_file_inputs` in
23219*datarootdir*) ac_datarootdir_seen=yes;;
23220*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23221  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23222echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23223_ACEOF
23224cat >>$CONFIG_STATUS <<_ACEOF
23225  ac_datarootdir_hack='
23226  s&@datadir@&$datadir&g
23227  s&@docdir@&$docdir&g
23228  s&@infodir@&$infodir&g
23229  s&@localedir@&$localedir&g
23230  s&@mandir@&$mandir&g
23231    s&\\\${datarootdir}&$datarootdir&g' ;;
23232esac
23233_ACEOF
23234
23235# Neutralize VPATH when `$srcdir' = `.'.
23236# Shell code in configure.ac might set extrasub.
23237# FIXME: do we really want to maintain this feature?
23238cat >>$CONFIG_STATUS <<_ACEOF
23239  sed "$ac_vpsub
23240$extrasub
23241_ACEOF
23242cat >>$CONFIG_STATUS <<\_ACEOF
23243:t
23244/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23245s&@configure_input@&$configure_input&;t t
23246s&@top_builddir@&$ac_top_builddir_sub&;t t
23247s&@srcdir@&$ac_srcdir&;t t
23248s&@abs_srcdir@&$ac_abs_srcdir&;t t
23249s&@top_srcdir@&$ac_top_srcdir&;t t
23250s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23251s&@builddir@&$ac_builddir&;t t
23252s&@abs_builddir@&$ac_abs_builddir&;t t
23253s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23254s&@INSTALL@&$ac_INSTALL&;t t
23255$ac_datarootdir_hack
23256" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23257
23258test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23259  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23260  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23261  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23262which seems to be undefined.  Please make sure it is defined." >&5
23263echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23264which seems to be undefined.  Please make sure it is defined." >&2;}
23265
23266  rm -f "$tmp/stdin"
23267  case $ac_file in
23268  -) cat "$tmp/out"; rm -f "$tmp/out";;
23269  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23270  esac
23271 ;;
23272  :H)
23273  #
23274  # CONFIG_HEADER
23275  #
23276_ACEOF
23277
23278# Transform confdefs.h into a sed script `conftest.defines', that
23279# substitutes the proper values into config.h.in to produce config.h.
23280rm -f conftest.defines conftest.tail
23281# First, append a space to every undef/define line, to ease matching.
23282echo 's/$/ /' >conftest.defines
23283# Then, protect against being on the right side of a sed subst, or in
23284# an unquoted here document, in config.status.  If some macros were
23285# called several times there might be several #defines for the same
23286# symbol, which is useless.  But do not sort them, since the last
23287# AC_DEFINE must be honored.
23288ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23289# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23290# NAME is the cpp macro being defined, VALUE is the value it is being given.
23291# PARAMS is the parameter list in the macro definition--in most cases, it's
23292# just an empty string.
23293ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23294ac_dB='\\)[	 (].*,\\1define\\2'
23295ac_dC=' '
23296ac_dD=' ,'
23297
23298uniq confdefs.h |
23299  sed -n '
23300	t rset
23301	:rset
23302	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23303	t ok
23304	d
23305	:ok
23306	s/[\\&,]/\\&/g
23307	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23308	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23309  ' >>conftest.defines
23310
23311# Remove the space that was appended to ease matching.
23312# Then replace #undef with comments.  This is necessary, for
23313# example, in the case of _POSIX_SOURCE, which is predefined and required
23314# on some systems where configure will not decide to define it.
23315# (The regexp can be short, since the line contains either #define or #undef.)
23316echo 's/ $//
23317s,^[	 #]*u.*,/* & */,' >>conftest.defines
23318
23319# Break up conftest.defines:
23320ac_max_sed_lines=50
23321
23322# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23323# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23324# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23325# et cetera.
23326ac_in='$ac_file_inputs'
23327ac_out='"$tmp/out1"'
23328ac_nxt='"$tmp/out2"'
23329
23330while :
23331do
23332  # Write a here document:
23333    cat >>$CONFIG_STATUS <<_ACEOF
23334    # First, check the format of the line:
23335    cat >"\$tmp/defines.sed" <<\\CEOF
23336/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23337/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23338b
23339:def
23340_ACEOF
23341  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23342  echo 'CEOF
23343    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23344  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23345  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23346  grep . conftest.tail >/dev/null || break
23347  rm -f conftest.defines
23348  mv conftest.tail conftest.defines
23349done
23350rm -f conftest.defines conftest.tail
23351
23352echo "ac_result=$ac_in" >>$CONFIG_STATUS
23353cat >>$CONFIG_STATUS <<\_ACEOF
23354  if test x"$ac_file" != x-; then
23355    echo "/* $configure_input  */" >"$tmp/config.h"
23356    cat "$ac_result" >>"$tmp/config.h"
23357    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23358      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23359echo "$as_me: $ac_file is unchanged" >&6;}
23360    else
23361      rm -f $ac_file
23362      mv "$tmp/config.h" $ac_file
23363    fi
23364  else
23365    echo "/* $configure_input  */"
23366    cat "$ac_result"
23367  fi
23368  rm -f "$tmp/out12"
23369# Compute $ac_file's index in $config_headers.
23370_am_stamp_count=1
23371for _am_header in $config_headers :; do
23372  case $_am_header in
23373    $ac_file | $ac_file:* )
23374      break ;;
23375    * )
23376      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23377  esac
23378done
23379echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23380$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23381	 X$ac_file : 'X\(//\)[^/]' \| \
23382	 X$ac_file : 'X\(//\)$' \| \
23383	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23384echo X$ac_file |
23385    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23386	    s//\1/
23387	    q
23388	  }
23389	  /^X\(\/\/\)[^/].*/{
23390	    s//\1/
23391	    q
23392	  }
23393	  /^X\(\/\/\)$/{
23394	    s//\1/
23395	    q
23396	  }
23397	  /^X\(\/\).*/{
23398	    s//\1/
23399	    q
23400	  }
23401	  s/.*/./; q'`/stamp-h$_am_stamp_count
23402 ;;
23403
23404  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23405echo "$as_me: executing $ac_file commands" >&6;}
23406 ;;
23407  esac
23408
23409
23410  case $ac_file$ac_mode in
23411    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23412  # Strip MF so we end up with the name of the file.
23413  mf=`echo "$mf" | sed -e 's/:.*$//'`
23414  # Check whether this is an Automake generated Makefile or not.
23415  # We used to match only the files named `Makefile.in', but
23416  # some people rename them; so instead we look at the file content.
23417  # Grep'ing the first line is not enough: some people post-process
23418  # each Makefile.in and add a new line on top of each file to say so.
23419  # So let's grep whole file.
23420  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23421    dirpart=`$as_dirname -- "$mf" ||
23422$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23423	 X"$mf" : 'X\(//\)[^/]' \| \
23424	 X"$mf" : 'X\(//\)$' \| \
23425	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23426echo X"$mf" |
23427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23428	    s//\1/
23429	    q
23430	  }
23431	  /^X\(\/\/\)[^/].*/{
23432	    s//\1/
23433	    q
23434	  }
23435	  /^X\(\/\/\)$/{
23436	    s//\1/
23437	    q
23438	  }
23439	  /^X\(\/\).*/{
23440	    s//\1/
23441	    q
23442	  }
23443	  s/.*/./; q'`
23444  else
23445    continue
23446  fi
23447  # Extract the definition of DEPDIR, am__include, and am__quote
23448  # from the Makefile without running `make'.
23449  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23450  test -z "$DEPDIR" && continue
23451  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23452  test -z "am__include" && continue
23453  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23454  # When using ansi2knr, U may be empty or an underscore; expand it
23455  U=`sed -n 's/^U = //p' < "$mf"`
23456  # Find all dependency output files, they are included files with
23457  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23458  # simplest approach to changing $(DEPDIR) to its actual value in the
23459  # expansion.
23460  for file in `sed -n "
23461    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23462       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23463    # Make sure the directory exists.
23464    test -f "$dirpart/$file" && continue
23465    fdir=`$as_dirname -- "$file" ||
23466$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23467	 X"$file" : 'X\(//\)[^/]' \| \
23468	 X"$file" : 'X\(//\)$' \| \
23469	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23470echo X"$file" |
23471    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23472	    s//\1/
23473	    q
23474	  }
23475	  /^X\(\/\/\)[^/].*/{
23476	    s//\1/
23477	    q
23478	  }
23479	  /^X\(\/\/\)$/{
23480	    s//\1/
23481	    q
23482	  }
23483	  /^X\(\/\).*/{
23484	    s//\1/
23485	    q
23486	  }
23487	  s/.*/./; q'`
23488    { as_dir=$dirpart/$fdir
23489  case $as_dir in #(
23490  -*) as_dir=./$as_dir;;
23491  esac
23492  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23493    as_dirs=
23494    while :; do
23495      case $as_dir in #(
23496      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23497      *) as_qdir=$as_dir;;
23498      esac
23499      as_dirs="'$as_qdir' $as_dirs"
23500      as_dir=`$as_dirname -- "$as_dir" ||
23501$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23502	 X"$as_dir" : 'X\(//\)[^/]' \| \
23503	 X"$as_dir" : 'X\(//\)$' \| \
23504	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23505echo X"$as_dir" |
23506    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23507	    s//\1/
23508	    q
23509	  }
23510	  /^X\(\/\/\)[^/].*/{
23511	    s//\1/
23512	    q
23513	  }
23514	  /^X\(\/\/\)$/{
23515	    s//\1/
23516	    q
23517	  }
23518	  /^X\(\/\).*/{
23519	    s//\1/
23520	    q
23521	  }
23522	  s/.*/./; q'`
23523      test -d "$as_dir" && break
23524    done
23525    test -z "$as_dirs" || eval "mkdir $as_dirs"
23526  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23527echo "$as_me: error: cannot create directory $as_dir" >&2;}
23528   { (exit 1); exit 1; }; }; }
23529    # echo "creating $dirpart/$file"
23530    echo '# dummy' > "$dirpart/$file"
23531  done
23532done
23533 ;;
23534
23535  esac
23536done # for ac_tag
23537
23538
23539{ (exit 0); exit 0; }
23540_ACEOF
23541chmod +x $CONFIG_STATUS
23542ac_clean_files=$ac_clean_files_save
23543
23544
23545# configure is writing to config.log, and then calls config.status.
23546# config.status does its own redirection, appending to config.log.
23547# Unfortunately, on DOS this fails, as config.log is still kept open
23548# by configure, so config.status won't be able to write to it; its
23549# output is simply discarded.  So we exec the FD to /dev/null,
23550# effectively closing config.log, so it can be properly (re)opened and
23551# appended to by config.status.  When coming back to configure, we
23552# need to make the FD available again.
23553if test "$no_create" != yes; then
23554  ac_cs_success=:
23555  ac_config_status_args=
23556  test "$silent" = yes &&
23557    ac_config_status_args="$ac_config_status_args --quiet"
23558  exec 5>/dev/null
23559  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23560  exec 5>>config.log
23561  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23562  # would make configure fail if this is the last instruction.
23563  $ac_cs_success || { (exit 1); exit 1; }
23564fi
23565
23566