configure revision 1ab64890
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for libX11 1.1.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='libX11'
730PACKAGE_TARNAME='libX11'
731PACKAGE_VERSION='1.1.4'
732PACKAGE_STRING='libX11 1.1.4'
733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735ac_unique_file="Makefile.am"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750#  include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755#  include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831MAINTAINER_MODE_TRUE
832MAINTAINER_MODE_FALSE
833MAINT
834build
835build_cpu
836build_vendor
837build_os
838host
839host_cpu
840host_vendor
841host_os
842CC
843CFLAGS
844LDFLAGS
845CPPFLAGS
846ac_ct_CC
847EXEEXT
848OBJEXT
849DEPDIR
850am__include
851am__quote
852AMDEP_TRUE
853AMDEP_FALSE
854AMDEPBACKSLASH
855CCDEPMODE
856am__fastdepCC_TRUE
857am__fastdepCC_FALSE
858SED
859GREP
860EGREP
861LN_S
862ECHO
863AR
864RANLIB
865CPP
866CXX
867CXXFLAGS
868ac_ct_CXX
869CXXDEPMODE
870am__fastdepCXX_TRUE
871am__fastdepCXX_FALSE
872CXXCPP
873F77
874FFLAGS
875ac_ct_F77
876LIBTOOL
877RAWCPP
878RAWCPPFLAGS
879XCB_TRUE
880XCB_FALSE
881PKG_CONFIG
882XPROTO_CFLAGS
883XPROTO_LIBS
884XDMCP_CFLAGS
885XDMCP_LIBS
886X11_EXTRA_DEPS
887X11_CFLAGS
888X11_LIBS
889I18N_MODULE_LIBS
890XLIB_LOADABLE_I18N_TRUE
891XLIB_LOADABLE_I18N_FALSE
892WCHAR32
893OS2_TRUE
894OS2_FALSE
895LAUNCHD
896XTHREADS
897XUSE_MTSAFE_API
898THRSTUBS_TRUE
899THRSTUBS_FALSE
900XTHREADLIB
901XTHREAD_CFLAGS
902KEYSYMDEF
903UDC_TRUE
904UDC_FALSE
905XCMS_TRUE
906XCMS_FALSE
907XLOCALE_TRUE
908XLOCALE_FALSE
909BIGFONT_CFLAGS
910BIGFONT_LIBS
911APP_MAN_SUFFIX
912LIB_MAN_SUFFIX
913FILE_MAN_SUFFIX
914MISC_MAN_SUFFIX
915DRIVER_MAN_SUFFIX
916ADMIN_MAN_SUFFIX
917APP_MAN_DIR
918LIB_MAN_DIR
919FILE_MAN_DIR
920MISC_MAN_DIR
921DRIVER_MAN_DIR
922ADMIN_MAN_DIR
923MANPAGES_TRUE
924MANPAGES_FALSE
925XKB_TRUE
926XKB_FALSE
927XKBPROTO_CFLAGS
928XKBPROTO_LIBS
929XKBPROTO_REQUIRES
930LINT
931LINT_FLAGS
932LINT_TRUE
933LINT_FALSE
934LINTLIB
935MAKE_LINT_LIB_TRUE
936MAKE_LINT_LIB_FALSE
937X11_DATADIR
938X11_LIBDIR
939XLOCALEDATADIR
940X11_LOCALEDATADIR
941XLOCALELIBDIR
942X11_LOCALELIBDIR
943XLOCALEDIR
944X11_LOCALEDIR
945XKEYSYMDB
946XERRORDB
947MALLOC_ZERO_CFLAGS
948XMALLOC_ZERO_CFLAGS
949XTMALLOC_ZERO_CFLAGS
950LIBOBJS
951LTLIBOBJS'
952ac_subst_files=''
953      ac_precious_vars='build_alias
954host_alias
955target_alias
956CC
957CFLAGS
958LDFLAGS
959LIBS
960CPPFLAGS
961CPP
962CXX
963CXXFLAGS
964CCC
965CXXCPP
966F77
967FFLAGS
968PKG_CONFIG
969XPROTO_CFLAGS
970XPROTO_LIBS
971XDMCP_CFLAGS
972XDMCP_LIBS
973X11_CFLAGS
974X11_LIBS
975BIGFONT_CFLAGS
976BIGFONT_LIBS
977XKBPROTO_CFLAGS
978XKBPROTO_LIBS'
979
980
981# Initialize some variables set by options.
982ac_init_help=
983ac_init_version=false
984# The variables have the same names as the options, with
985# dashes changed to underlines.
986cache_file=/dev/null
987exec_prefix=NONE
988no_create=
989no_recursion=
990prefix=NONE
991program_prefix=NONE
992program_suffix=NONE
993program_transform_name=s,x,x,
994silent=
995site=
996srcdir=
997verbose=
998x_includes=NONE
999x_libraries=NONE
1000
1001# Installation directory options.
1002# These are left unexpanded so users can "make install exec_prefix=/foo"
1003# and all the variables that are supposed to be based on exec_prefix
1004# by default will actually change.
1005# Use braces instead of parens because sh, perl, etc. also accept them.
1006# (The list follows the same order as the GNU Coding Standards.)
1007bindir='${exec_prefix}/bin'
1008sbindir='${exec_prefix}/sbin'
1009libexecdir='${exec_prefix}/libexec'
1010datarootdir='${prefix}/share'
1011datadir='${datarootdir}'
1012sysconfdir='${prefix}/etc'
1013sharedstatedir='${prefix}/com'
1014localstatedir='${prefix}/var'
1015includedir='${prefix}/include'
1016oldincludedir='/usr/include'
1017docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1018infodir='${datarootdir}/info'
1019htmldir='${docdir}'
1020dvidir='${docdir}'
1021pdfdir='${docdir}'
1022psdir='${docdir}'
1023libdir='${exec_prefix}/lib'
1024localedir='${datarootdir}/locale'
1025mandir='${datarootdir}/man'
1026
1027ac_prev=
1028ac_dashdash=
1029for ac_option
1030do
1031  # If the previous option needs an argument, assign it.
1032  if test -n "$ac_prev"; then
1033    eval $ac_prev=\$ac_option
1034    ac_prev=
1035    continue
1036  fi
1037
1038  case $ac_option in
1039  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040  *)	ac_optarg=yes ;;
1041  esac
1042
1043  # Accept the important Cygnus configure options, so we can diagnose typos.
1044
1045  case $ac_dashdash$ac_option in
1046  --)
1047    ac_dashdash=yes ;;
1048
1049  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050    ac_prev=bindir ;;
1051  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052    bindir=$ac_optarg ;;
1053
1054  -build | --build | --buil | --bui | --bu)
1055    ac_prev=build_alias ;;
1056  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057    build_alias=$ac_optarg ;;
1058
1059  -cache-file | --cache-file | --cache-fil | --cache-fi \
1060  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061    ac_prev=cache_file ;;
1062  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064    cache_file=$ac_optarg ;;
1065
1066  --config-cache | -C)
1067    cache_file=config.cache ;;
1068
1069  -datadir | --datadir | --datadi | --datad)
1070    ac_prev=datadir ;;
1071  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072    datadir=$ac_optarg ;;
1073
1074  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075  | --dataroo | --dataro | --datar)
1076    ac_prev=datarootdir ;;
1077  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079    datarootdir=$ac_optarg ;;
1080
1081  -disable-* | --disable-*)
1082    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083    # Reject names that are not valid shell variable names.
1084    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086   { (exit 1); exit 1; }; }
1087    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1088    eval enable_$ac_feature=no ;;
1089
1090  -docdir | --docdir | --docdi | --doc | --do)
1091    ac_prev=docdir ;;
1092  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1093    docdir=$ac_optarg ;;
1094
1095  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1096    ac_prev=dvidir ;;
1097  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1098    dvidir=$ac_optarg ;;
1099
1100  -enable-* | --enable-*)
1101    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1102    # Reject names that are not valid shell variable names.
1103    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1105   { (exit 1); exit 1; }; }
1106    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1107    eval enable_$ac_feature=\$ac_optarg ;;
1108
1109  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111  | --exec | --exe | --ex)
1112    ac_prev=exec_prefix ;;
1113  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115  | --exec=* | --exe=* | --ex=*)
1116    exec_prefix=$ac_optarg ;;
1117
1118  -gas | --gas | --ga | --g)
1119    # Obsolete; use --with-gas.
1120    with_gas=yes ;;
1121
1122  -help | --help | --hel | --he | -h)
1123    ac_init_help=long ;;
1124  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125    ac_init_help=recursive ;;
1126  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127    ac_init_help=short ;;
1128
1129  -host | --host | --hos | --ho)
1130    ac_prev=host_alias ;;
1131  -host=* | --host=* | --hos=* | --ho=*)
1132    host_alias=$ac_optarg ;;
1133
1134  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135    ac_prev=htmldir ;;
1136  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137  | --ht=*)
1138    htmldir=$ac_optarg ;;
1139
1140  -includedir | --includedir | --includedi | --included | --include \
1141  | --includ | --inclu | --incl | --inc)
1142    ac_prev=includedir ;;
1143  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144  | --includ=* | --inclu=* | --incl=* | --inc=*)
1145    includedir=$ac_optarg ;;
1146
1147  -infodir | --infodir | --infodi | --infod | --info | --inf)
1148    ac_prev=infodir ;;
1149  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150    infodir=$ac_optarg ;;
1151
1152  -libdir | --libdir | --libdi | --libd)
1153    ac_prev=libdir ;;
1154  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155    libdir=$ac_optarg ;;
1156
1157  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158  | --libexe | --libex | --libe)
1159    ac_prev=libexecdir ;;
1160  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161  | --libexe=* | --libex=* | --libe=*)
1162    libexecdir=$ac_optarg ;;
1163
1164  -localedir | --localedir | --localedi | --localed | --locale)
1165    ac_prev=localedir ;;
1166  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167    localedir=$ac_optarg ;;
1168
1169  -localstatedir | --localstatedir | --localstatedi | --localstated \
1170  | --localstate | --localstat | --localsta | --localst | --locals)
1171    ac_prev=localstatedir ;;
1172  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174    localstatedir=$ac_optarg ;;
1175
1176  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177    ac_prev=mandir ;;
1178  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179    mandir=$ac_optarg ;;
1180
1181  -nfp | --nfp | --nf)
1182    # Obsolete; use --without-fp.
1183    with_fp=no ;;
1184
1185  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186  | --no-cr | --no-c | -n)
1187    no_create=yes ;;
1188
1189  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191    no_recursion=yes ;;
1192
1193  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195  | --oldin | --oldi | --old | --ol | --o)
1196    ac_prev=oldincludedir ;;
1197  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200    oldincludedir=$ac_optarg ;;
1201
1202  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203    ac_prev=prefix ;;
1204  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205    prefix=$ac_optarg ;;
1206
1207  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208  | --program-pre | --program-pr | --program-p)
1209    ac_prev=program_prefix ;;
1210  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212    program_prefix=$ac_optarg ;;
1213
1214  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215  | --program-suf | --program-su | --program-s)
1216    ac_prev=program_suffix ;;
1217  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219    program_suffix=$ac_optarg ;;
1220
1221  -program-transform-name | --program-transform-name \
1222  | --program-transform-nam | --program-transform-na \
1223  | --program-transform-n | --program-transform- \
1224  | --program-transform | --program-transfor \
1225  | --program-transfo | --program-transf \
1226  | --program-trans | --program-tran \
1227  | --progr-tra | --program-tr | --program-t)
1228    ac_prev=program_transform_name ;;
1229  -program-transform-name=* | --program-transform-name=* \
1230  | --program-transform-nam=* | --program-transform-na=* \
1231  | --program-transform-n=* | --program-transform-=* \
1232  | --program-transform=* | --program-transfor=* \
1233  | --program-transfo=* | --program-transf=* \
1234  | --program-trans=* | --program-tran=* \
1235  | --progr-tra=* | --program-tr=* | --program-t=*)
1236    program_transform_name=$ac_optarg ;;
1237
1238  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239    ac_prev=pdfdir ;;
1240  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241    pdfdir=$ac_optarg ;;
1242
1243  -psdir | --psdir | --psdi | --psd | --ps)
1244    ac_prev=psdir ;;
1245  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246    psdir=$ac_optarg ;;
1247
1248  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249  | -silent | --silent | --silen | --sile | --sil)
1250    silent=yes ;;
1251
1252  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253    ac_prev=sbindir ;;
1254  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255  | --sbi=* | --sb=*)
1256    sbindir=$ac_optarg ;;
1257
1258  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260  | --sharedst | --shareds | --shared | --share | --shar \
1261  | --sha | --sh)
1262    ac_prev=sharedstatedir ;;
1263  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266  | --sha=* | --sh=*)
1267    sharedstatedir=$ac_optarg ;;
1268
1269  -site | --site | --sit)
1270    ac_prev=site ;;
1271  -site=* | --site=* | --sit=*)
1272    site=$ac_optarg ;;
1273
1274  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275    ac_prev=srcdir ;;
1276  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277    srcdir=$ac_optarg ;;
1278
1279  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280  | --syscon | --sysco | --sysc | --sys | --sy)
1281    ac_prev=sysconfdir ;;
1282  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284    sysconfdir=$ac_optarg ;;
1285
1286  -target | --target | --targe | --targ | --tar | --ta | --t)
1287    ac_prev=target_alias ;;
1288  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289    target_alias=$ac_optarg ;;
1290
1291  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292    verbose=yes ;;
1293
1294  -version | --version | --versio | --versi | --vers | -V)
1295    ac_init_version=: ;;
1296
1297  -with-* | --with-*)
1298    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299    # Reject names that are not valid shell variable names.
1300    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301      { echo "$as_me: error: invalid package name: $ac_package" >&2
1302   { (exit 1); exit 1; }; }
1303    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304    eval with_$ac_package=\$ac_optarg ;;
1305
1306  -without-* | --without-*)
1307    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308    # Reject names that are not valid shell variable names.
1309    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310      { echo "$as_me: error: invalid package name: $ac_package" >&2
1311   { (exit 1); exit 1; }; }
1312    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1313    eval with_$ac_package=no ;;
1314
1315  --x)
1316    # Obsolete; use --with-x.
1317    with_x=yes ;;
1318
1319  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320  | --x-incl | --x-inc | --x-in | --x-i)
1321    ac_prev=x_includes ;;
1322  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324    x_includes=$ac_optarg ;;
1325
1326  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328    ac_prev=x_libraries ;;
1329  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331    x_libraries=$ac_optarg ;;
1332
1333  -*) { echo "$as_me: error: unrecognized option: $ac_option
1334Try \`$0 --help' for more information." >&2
1335   { (exit 1); exit 1; }; }
1336    ;;
1337
1338  *=*)
1339    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340    # Reject names that are not valid shell variable names.
1341    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1342      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1343   { (exit 1); exit 1; }; }
1344    eval $ac_envvar=\$ac_optarg
1345    export $ac_envvar ;;
1346
1347  *)
1348    # FIXME: should be removed in autoconf 3.0.
1349    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353    ;;
1354
1355  esac
1356done
1357
1358if test -n "$ac_prev"; then
1359  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360  { echo "$as_me: error: missing argument to $ac_option" >&2
1361   { (exit 1); exit 1; }; }
1362fi
1363
1364# Be sure to have absolute directory names.
1365for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366		datadir sysconfdir sharedstatedir localstatedir includedir \
1367		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368		libdir localedir mandir
1369do
1370  eval ac_val=\$$ac_var
1371  case $ac_val in
1372    [\\/$]* | ?:[\\/]* )  continue;;
1373    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374  esac
1375  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1376   { (exit 1); exit 1; }; }
1377done
1378
1379# There might be people who depend on the old broken behavior: `$host'
1380# used to hold the argument of --host etc.
1381# FIXME: To remove some day.
1382build=$build_alias
1383host=$host_alias
1384target=$target_alias
1385
1386# FIXME: To remove some day.
1387if test "x$host_alias" != x; then
1388  if test "x$build_alias" = x; then
1389    cross_compiling=maybe
1390    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1391    If a cross compiler is detected then cross compile mode will be used." >&2
1392  elif test "x$build_alias" != "x$host_alias"; then
1393    cross_compiling=yes
1394  fi
1395fi
1396
1397ac_tool_prefix=
1398test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399
1400test "$silent" = yes && exec 6>/dev/null
1401
1402
1403ac_pwd=`pwd` && test -n "$ac_pwd" &&
1404ac_ls_di=`ls -di .` &&
1405ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1406  { echo "$as_me: error: Working directory cannot be determined" >&2
1407   { (exit 1); exit 1; }; }
1408test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409  { echo "$as_me: error: pwd does not report name of working directory" >&2
1410   { (exit 1); exit 1; }; }
1411
1412
1413# Find the source files, if location was not specified.
1414if test -z "$srcdir"; then
1415  ac_srcdir_defaulted=yes
1416  # Try the directory containing this script, then the parent directory.
1417  ac_confdir=`$as_dirname -- "$0" ||
1418$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419	 X"$0" : 'X\(//\)[^/]' \| \
1420	 X"$0" : 'X\(//\)$' \| \
1421	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1422echo X"$0" |
1423    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424	    s//\1/
1425	    q
1426	  }
1427	  /^X\(\/\/\)[^/].*/{
1428	    s//\1/
1429	    q
1430	  }
1431	  /^X\(\/\/\)$/{
1432	    s//\1/
1433	    q
1434	  }
1435	  /^X\(\/\).*/{
1436	    s//\1/
1437	    q
1438	  }
1439	  s/.*/./; q'`
1440  srcdir=$ac_confdir
1441  if test ! -r "$srcdir/$ac_unique_file"; then
1442    srcdir=..
1443  fi
1444else
1445  ac_srcdir_defaulted=no
1446fi
1447if test ! -r "$srcdir/$ac_unique_file"; then
1448  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1450   { (exit 1); exit 1; }; }
1451fi
1452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453ac_abs_confdir=`(
1454	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1455   { (exit 1); exit 1; }; }
1456	pwd)`
1457# When building in place, set srcdir=.
1458if test "$ac_abs_confdir" = "$ac_pwd"; then
1459  srcdir=.
1460fi
1461# Remove unnecessary trailing slashes from srcdir.
1462# Double slashes in file names in object file debugging info
1463# mess up M-x gdb in Emacs.
1464case $srcdir in
1465*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466esac
1467for ac_var in $ac_precious_vars; do
1468  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469  eval ac_env_${ac_var}_value=\$${ac_var}
1470  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472done
1473
1474#
1475# Report the --help message.
1476#
1477if test "$ac_init_help" = "long"; then
1478  # Omit some internal or obsolete options to make the list less imposing.
1479  # This message is too long to be a string in the A/UX 3.1 sh.
1480  cat <<_ACEOF
1481\`configure' configures libX11 1.1.4 to adapt to many kinds of systems.
1482
1483Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488Defaults for the options are specified in brackets.
1489
1490Configuration:
1491  -h, --help              display this help and exit
1492      --help=short        display options specific to this package
1493      --help=recursive    display the short help of all the included packages
1494  -V, --version           display version information and exit
1495  -q, --quiet, --silent   do not print \`checking...' messages
1496      --cache-file=FILE   cache test results in FILE [disabled]
1497  -C, --config-cache      alias for \`--cache-file=config.cache'
1498  -n, --no-create         do not create output files
1499      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501Installation directories:
1502  --prefix=PREFIX         install architecture-independent files in PREFIX
1503			  [$ac_default_prefix]
1504  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505			  [PREFIX]
1506
1507By default, \`make install' will install all the files in
1508\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510for instance \`--prefix=\$HOME'.
1511
1512For better control, use the options below.
1513
1514Fine tuning of the installation directories:
1515  --bindir=DIR           user executables [EPREFIX/bin]
1516  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1517  --libexecdir=DIR       program executables [EPREFIX/libexec]
1518  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1519  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1520  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1521  --libdir=DIR           object code libraries [EPREFIX/lib]
1522  --includedir=DIR       C header files [PREFIX/include]
1523  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1524  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1525  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1526  --infodir=DIR          info documentation [DATAROOTDIR/info]
1527  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1528  --mandir=DIR           man documentation [DATAROOTDIR/man]
1529  --docdir=DIR           documentation root [DATAROOTDIR/doc/libX11]
1530  --htmldir=DIR          html documentation [DOCDIR]
1531  --dvidir=DIR           dvi documentation [DOCDIR]
1532  --pdfdir=DIR           pdf documentation [DOCDIR]
1533  --psdir=DIR            ps documentation [DOCDIR]
1534_ACEOF
1535
1536  cat <<\_ACEOF
1537
1538Program names:
1539  --program-prefix=PREFIX            prepend PREFIX to installed program names
1540  --program-suffix=SUFFIX            append SUFFIX to installed program names
1541  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542
1543System types:
1544  --build=BUILD     configure for building on BUILD [guessed]
1545  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546_ACEOF
1547fi
1548
1549if test -n "$ac_init_help"; then
1550  case $ac_init_help in
1551     short | recursive ) echo "Configuration of libX11 1.1.4:";;
1552   esac
1553  cat <<\_ACEOF
1554
1555Optional Features:
1556  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558  --enable-maintainer-mode  enable make rules and dependencies not useful
1559			  (and sometimes confusing) to the casual installer
1560  --enable-shared[=PKGS]  build shared libraries [default=yes]
1561  --enable-static[=PKGS]  build static libraries [default=yes]
1562  --enable-fast-install[=PKGS]
1563                          optimize for fast installation [default=yes]
1564  --disable-dependency-tracking  speeds up one-time build
1565  --enable-dependency-tracking   do not reject slow dependency extractors
1566  --disable-libtool-lock  avoid locking (might break parallel builds)
1567  --enable-secure-rpc     Enable Secure RPC
1568  --enable-loadable-i18n  Controls loadable i18n module support
1569  --disable-loadable-xcursor
1570                          Controls loadable xcursor library support
1571  --disable-xthreads      Disable Xlib support for Multithreading
1572  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1573  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1574  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1575  --disable-xf86bigfont   Disable XF86BigFont extension support
1576  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1577  --enable-man-pages=section
1578                          Choose manual section for installing man pages
1579  --disable-composecache  Disable compose table cache support
1580  --enable-lint-library   Create lint library (default: disabled)
1581  --enable-malloc0returnsnull
1582                          malloc(0) returns NULL (default: auto)
1583
1584Optional Packages:
1585  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1586  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1587  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1588  --with-pic              try to use only PIC/non-PIC objects [default=use
1589                          both]
1590  --with-tags[=TAGS]      include additional configurations [automatic]
1591  --with-xcb              use XCB for low-level protocol implementation
1592  --with-launchd          Build with support for Apple's launchd (default:
1593                          auto)
1594  --with-lint             Use a lint-style source code checker (default:
1595                          disabled)
1596  --with-release-version=STRING
1597                          Use release version string in package name
1598
1599Some influential environment variables:
1600  CC          C compiler command
1601  CFLAGS      C compiler flags
1602  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1603              nonstandard directory <lib dir>
1604  LIBS        libraries to pass to the linker, e.g. -l<library>
1605  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1606              you have headers in a nonstandard directory <include dir>
1607  CPP         C preprocessor
1608  CXX         C++ compiler command
1609  CXXFLAGS    C++ compiler flags
1610  CXXCPP      C++ preprocessor
1611  F77         Fortran 77 compiler command
1612  FFLAGS      Fortran 77 compiler flags
1613  PKG_CONFIG  path to pkg-config utility
1614  XPROTO_CFLAGS
1615              C compiler flags for XPROTO, overriding pkg-config
1616  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1617  XDMCP_CFLAGS
1618              C compiler flags for XDMCP, overriding pkg-config
1619  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1620  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1621  X11_LIBS    linker flags for X11, overriding pkg-config
1622  BIGFONT_CFLAGS
1623              C compiler flags for BIGFONT, overriding pkg-config
1624  BIGFONT_LIBS
1625              linker flags for BIGFONT, overriding pkg-config
1626  XKBPROTO_CFLAGS
1627              C compiler flags for XKBPROTO, overriding pkg-config
1628  XKBPROTO_LIBS
1629              linker flags for XKBPROTO, overriding pkg-config
1630
1631Use these variables to override the choices made by `configure' or to help
1632it to find libraries and programs with nonstandard names/locations.
1633
1634Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1635_ACEOF
1636ac_status=$?
1637fi
1638
1639if test "$ac_init_help" = "recursive"; then
1640  # If there are subdirs, report their specific --help.
1641  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642    test -d "$ac_dir" || continue
1643    ac_builddir=.
1644
1645case "$ac_dir" in
1646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647*)
1648  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1649  # A ".." for each directory in $ac_dir_suffix.
1650  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1651  case $ac_top_builddir_sub in
1652  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654  esac ;;
1655esac
1656ac_abs_top_builddir=$ac_pwd
1657ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658# for backward compatibility:
1659ac_top_builddir=$ac_top_build_prefix
1660
1661case $srcdir in
1662  .)  # We are building in place.
1663    ac_srcdir=.
1664    ac_top_srcdir=$ac_top_builddir_sub
1665    ac_abs_top_srcdir=$ac_pwd ;;
1666  [\\/]* | ?:[\\/]* )  # Absolute name.
1667    ac_srcdir=$srcdir$ac_dir_suffix;
1668    ac_top_srcdir=$srcdir
1669    ac_abs_top_srcdir=$srcdir ;;
1670  *) # Relative name.
1671    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672    ac_top_srcdir=$ac_top_build_prefix$srcdir
1673    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674esac
1675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677    cd "$ac_dir" || { ac_status=$?; continue; }
1678    # Check for guested configure.
1679    if test -f "$ac_srcdir/configure.gnu"; then
1680      echo &&
1681      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682    elif test -f "$ac_srcdir/configure"; then
1683      echo &&
1684      $SHELL "$ac_srcdir/configure" --help=recursive
1685    else
1686      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687    fi || ac_status=$?
1688    cd "$ac_pwd" || { ac_status=$?; break; }
1689  done
1690fi
1691
1692test -n "$ac_init_help" && exit $ac_status
1693if $ac_init_version; then
1694  cat <<\_ACEOF
1695libX11 configure 1.1.4
1696generated by GNU Autoconf 2.61
1697
1698Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16992002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1700This configure script is free software; the Free Software Foundation
1701gives unlimited permission to copy, distribute and modify it.
1702_ACEOF
1703  exit
1704fi
1705cat >config.log <<_ACEOF
1706This file contains any messages produced by compilers while
1707running configure, to aid debugging if configure makes a mistake.
1708
1709It was created by libX11 $as_me 1.1.4, which was
1710generated by GNU Autoconf 2.61.  Invocation command line was
1711
1712  $ $0 $@
1713
1714_ACEOF
1715exec 5>>config.log
1716{
1717cat <<_ASUNAME
1718## --------- ##
1719## Platform. ##
1720## --------- ##
1721
1722hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1723uname -m = `(uname -m) 2>/dev/null || echo unknown`
1724uname -r = `(uname -r) 2>/dev/null || echo unknown`
1725uname -s = `(uname -s) 2>/dev/null || echo unknown`
1726uname -v = `(uname -v) 2>/dev/null || echo unknown`
1727
1728/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1729/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1730
1731/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1732/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1733/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1734/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1735/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1736/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1737/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1738
1739_ASUNAME
1740
1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742for as_dir in $PATH
1743do
1744  IFS=$as_save_IFS
1745  test -z "$as_dir" && as_dir=.
1746  echo "PATH: $as_dir"
1747done
1748IFS=$as_save_IFS
1749
1750} >&5
1751
1752cat >&5 <<_ACEOF
1753
1754
1755## ----------- ##
1756## Core tests. ##
1757## ----------- ##
1758
1759_ACEOF
1760
1761
1762# Keep a trace of the command line.
1763# Strip out --no-create and --no-recursion so they do not pile up.
1764# Strip out --silent because we don't want to record it for future runs.
1765# Also quote any args containing shell meta-characters.
1766# Make two passes to allow for proper duplicate-argument suppression.
1767ac_configure_args=
1768ac_configure_args0=
1769ac_configure_args1=
1770ac_must_keep_next=false
1771for ac_pass in 1 2
1772do
1773  for ac_arg
1774  do
1775    case $ac_arg in
1776    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1777    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1778    | -silent | --silent | --silen | --sile | --sil)
1779      continue ;;
1780    *\'*)
1781      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1782    esac
1783    case $ac_pass in
1784    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1785    2)
1786      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1787      if test $ac_must_keep_next = true; then
1788	ac_must_keep_next=false # Got value, back to normal.
1789      else
1790	case $ac_arg in
1791	  *=* | --config-cache | -C | -disable-* | --disable-* \
1792	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1793	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1794	  | -with-* | --with-* | -without-* | --without-* | --x)
1795	    case "$ac_configure_args0 " in
1796	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1797	    esac
1798	    ;;
1799	  -* ) ac_must_keep_next=true ;;
1800	esac
1801      fi
1802      ac_configure_args="$ac_configure_args '$ac_arg'"
1803      ;;
1804    esac
1805  done
1806done
1807$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1808$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1809
1810# When interrupted or exit'd, cleanup temporary files, and complete
1811# config.log.  We remove comments because anyway the quotes in there
1812# would cause problems or look ugly.
1813# WARNING: Use '\'' to represent an apostrophe within the trap.
1814# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1815trap 'exit_status=$?
1816  # Save into config.log some information that might help in debugging.
1817  {
1818    echo
1819
1820    cat <<\_ASBOX
1821## ---------------- ##
1822## Cache variables. ##
1823## ---------------- ##
1824_ASBOX
1825    echo
1826    # The following way of writing the cache mishandles newlines in values,
1827(
1828  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1829    eval ac_val=\$$ac_var
1830    case $ac_val in #(
1831    *${as_nl}*)
1832      case $ac_var in #(
1833      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1834echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1835      esac
1836      case $ac_var in #(
1837      _ | IFS | as_nl) ;; #(
1838      *) $as_unset $ac_var ;;
1839      esac ;;
1840    esac
1841  done
1842  (set) 2>&1 |
1843    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1844    *${as_nl}ac_space=\ *)
1845      sed -n \
1846	"s/'\''/'\''\\\\'\'''\''/g;
1847	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1848      ;; #(
1849    *)
1850      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1851      ;;
1852    esac |
1853    sort
1854)
1855    echo
1856
1857    cat <<\_ASBOX
1858## ----------------- ##
1859## Output variables. ##
1860## ----------------- ##
1861_ASBOX
1862    echo
1863    for ac_var in $ac_subst_vars
1864    do
1865      eval ac_val=\$$ac_var
1866      case $ac_val in
1867      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1868      esac
1869      echo "$ac_var='\''$ac_val'\''"
1870    done | sort
1871    echo
1872
1873    if test -n "$ac_subst_files"; then
1874      cat <<\_ASBOX
1875## ------------------- ##
1876## File substitutions. ##
1877## ------------------- ##
1878_ASBOX
1879      echo
1880      for ac_var in $ac_subst_files
1881      do
1882	eval ac_val=\$$ac_var
1883	case $ac_val in
1884	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885	esac
1886	echo "$ac_var='\''$ac_val'\''"
1887      done | sort
1888      echo
1889    fi
1890
1891    if test -s confdefs.h; then
1892      cat <<\_ASBOX
1893## ----------- ##
1894## confdefs.h. ##
1895## ----------- ##
1896_ASBOX
1897      echo
1898      cat confdefs.h
1899      echo
1900    fi
1901    test "$ac_signal" != 0 &&
1902      echo "$as_me: caught signal $ac_signal"
1903    echo "$as_me: exit $exit_status"
1904  } >&5
1905  rm -f core *.core core.conftest.* &&
1906    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1907    exit $exit_status
1908' 0
1909for ac_signal in 1 2 13 15; do
1910  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1911done
1912ac_signal=0
1913
1914# confdefs.h avoids OS command line length limits that DEFS can exceed.
1915rm -f -r conftest* confdefs.h
1916
1917# Predefined preprocessor variables.
1918
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE_NAME "$PACKAGE_NAME"
1921_ACEOF
1922
1923
1924cat >>confdefs.h <<_ACEOF
1925#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1926_ACEOF
1927
1928
1929cat >>confdefs.h <<_ACEOF
1930#define PACKAGE_VERSION "$PACKAGE_VERSION"
1931_ACEOF
1932
1933
1934cat >>confdefs.h <<_ACEOF
1935#define PACKAGE_STRING "$PACKAGE_STRING"
1936_ACEOF
1937
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1941_ACEOF
1942
1943
1944# Let the site file select an alternate cache file if it wants to.
1945# Prefer explicitly selected file to automatically selected ones.
1946if test -n "$CONFIG_SITE"; then
1947  set x "$CONFIG_SITE"
1948elif test "x$prefix" != xNONE; then
1949  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1950else
1951  set x "$ac_default_prefix/share/config.site" \
1952	"$ac_default_prefix/etc/config.site"
1953fi
1954shift
1955for ac_site_file
1956do
1957  if test -r "$ac_site_file"; then
1958    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1959echo "$as_me: loading site script $ac_site_file" >&6;}
1960    sed 's/^/| /' "$ac_site_file" >&5
1961    . "$ac_site_file"
1962  fi
1963done
1964
1965if test -r "$cache_file"; then
1966  # Some versions of bash will fail to source /dev/null (special
1967  # files actually), so we avoid doing that.
1968  if test -f "$cache_file"; then
1969    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1970echo "$as_me: loading cache $cache_file" >&6;}
1971    case $cache_file in
1972      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1973      *)                      . "./$cache_file";;
1974    esac
1975  fi
1976else
1977  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1978echo "$as_me: creating cache $cache_file" >&6;}
1979  >$cache_file
1980fi
1981
1982# Check that the precious variables saved in the cache have kept the same
1983# value.
1984ac_cache_corrupted=false
1985for ac_var in $ac_precious_vars; do
1986  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1987  eval ac_new_set=\$ac_env_${ac_var}_set
1988  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1989  eval ac_new_val=\$ac_env_${ac_var}_value
1990  case $ac_old_set,$ac_new_set in
1991    set,)
1992      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1993echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1994      ac_cache_corrupted=: ;;
1995    ,set)
1996      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1997echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1998      ac_cache_corrupted=: ;;
1999    ,);;
2000    *)
2001      if test "x$ac_old_val" != "x$ac_new_val"; then
2002	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2003echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2004	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2005echo "$as_me:   former value:  $ac_old_val" >&2;}
2006	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2007echo "$as_me:   current value: $ac_new_val" >&2;}
2008	ac_cache_corrupted=:
2009      fi;;
2010  esac
2011  # Pass precious variables to config.status.
2012  if test "$ac_new_set" = set; then
2013    case $ac_new_val in
2014    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2015    *) ac_arg=$ac_var=$ac_new_val ;;
2016    esac
2017    case " $ac_configure_args " in
2018      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2019      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2020    esac
2021  fi
2022done
2023if $ac_cache_corrupted; then
2024  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2025echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2027echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2028   { (exit 1); exit 1; }; }
2029fi
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055ac_ext=c
2056ac_cpp='$CPP $CPPFLAGS'
2057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2059ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060
2061
2062
2063am__api_version='1.10'
2064
2065ac_aux_dir=
2066for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2067  if test -f "$ac_dir/install-sh"; then
2068    ac_aux_dir=$ac_dir
2069    ac_install_sh="$ac_aux_dir/install-sh -c"
2070    break
2071  elif test -f "$ac_dir/install.sh"; then
2072    ac_aux_dir=$ac_dir
2073    ac_install_sh="$ac_aux_dir/install.sh -c"
2074    break
2075  elif test -f "$ac_dir/shtool"; then
2076    ac_aux_dir=$ac_dir
2077    ac_install_sh="$ac_aux_dir/shtool install -c"
2078    break
2079  fi
2080done
2081if test -z "$ac_aux_dir"; then
2082  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2083echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2084   { (exit 1); exit 1; }; }
2085fi
2086
2087# These three variables are undocumented and unsupported,
2088# and are intended to be withdrawn in a future Autoconf release.
2089# They can cause serious problems if a builder's source tree is in a directory
2090# whose full name contains unusual characters.
2091ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2092ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2093ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2094
2095
2096# Find a good install program.  We prefer a C program (faster),
2097# so one script is as good as another.  But avoid the broken or
2098# incompatible versions:
2099# SysV /etc/install, /usr/sbin/install
2100# SunOS /usr/etc/install
2101# IRIX /sbin/install
2102# AIX /bin/install
2103# AmigaOS /C/install, which installs bootblocks on floppy discs
2104# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2105# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2106# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2107# OS/2's system install, which has a completely different semantic
2108# ./install, which can be erroneously created by make from ./install.sh.
2109{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2110echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2111if test -z "$INSTALL"; then
2112if test "${ac_cv_path_install+set}" = set; then
2113  echo $ECHO_N "(cached) $ECHO_C" >&6
2114else
2115  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116for as_dir in $PATH
2117do
2118  IFS=$as_save_IFS
2119  test -z "$as_dir" && as_dir=.
2120  # Account for people who put trailing slashes in PATH elements.
2121case $as_dir/ in
2122  ./ | .// | /cC/* | \
2123  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2124  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2125  /usr/ucb/* ) ;;
2126  *)
2127    # OSF1 and SCO ODT 3.0 have their own names for install.
2128    # Don't use installbsd from OSF since it installs stuff as root
2129    # by default.
2130    for ac_prog in ginstall scoinst install; do
2131      for ac_exec_ext in '' $ac_executable_extensions; do
2132	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2133	  if test $ac_prog = install &&
2134	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2135	    # AIX install.  It has an incompatible calling convention.
2136	    :
2137	  elif test $ac_prog = install &&
2138	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2139	    # program-specific install script used by HP pwplus--don't use.
2140	    :
2141	  else
2142	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2143	    break 3
2144	  fi
2145	fi
2146      done
2147    done
2148    ;;
2149esac
2150done
2151IFS=$as_save_IFS
2152
2153
2154fi
2155  if test "${ac_cv_path_install+set}" = set; then
2156    INSTALL=$ac_cv_path_install
2157  else
2158    # As a last resort, use the slow shell script.  Don't cache a
2159    # value for INSTALL within a source directory, because that will
2160    # break other packages using the cache if that directory is
2161    # removed, or if the value is a relative name.
2162    INSTALL=$ac_install_sh
2163  fi
2164fi
2165{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2166echo "${ECHO_T}$INSTALL" >&6; }
2167
2168# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2169# It thinks the first close brace ends the variable substitution.
2170test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2171
2172test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2173
2174test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2175
2176{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2177echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2178# Just in case
2179sleep 1
2180echo timestamp > conftest.file
2181# Do `set' in a subshell so we don't clobber the current shell's
2182# arguments.  Must try -L first in case configure is actually a
2183# symlink; some systems play weird games with the mod time of symlinks
2184# (eg FreeBSD returns the mod time of the symlink's containing
2185# directory).
2186if (
2187   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2188   if test "$*" = "X"; then
2189      # -L didn't work.
2190      set X `ls -t $srcdir/configure conftest.file`
2191   fi
2192   rm -f conftest.file
2193   if test "$*" != "X $srcdir/configure conftest.file" \
2194      && test "$*" != "X conftest.file $srcdir/configure"; then
2195
2196      # If neither matched, then we have a broken ls.  This can happen
2197      # if, for instance, CONFIG_SHELL is bash and it inherits a
2198      # broken ls alias from the environment.  This has actually
2199      # happened.  Such a system could not be considered "sane".
2200      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2201alias in your environment" >&5
2202echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2203alias in your environment" >&2;}
2204   { (exit 1); exit 1; }; }
2205   fi
2206
2207   test "$2" = conftest.file
2208   )
2209then
2210   # Ok.
2211   :
2212else
2213   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2214Check your system clock" >&5
2215echo "$as_me: error: newly created file is older than distributed files!
2216Check your system clock" >&2;}
2217   { (exit 1); exit 1; }; }
2218fi
2219{ echo "$as_me:$LINENO: result: yes" >&5
2220echo "${ECHO_T}yes" >&6; }
2221test "$program_prefix" != NONE &&
2222  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2223# Use a double $ so make ignores it.
2224test "$program_suffix" != NONE &&
2225  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2226# Double any \ or $.  echo might interpret backslashes.
2227# By default was `s,x,x', remove it if useless.
2228cat <<\_ACEOF >conftest.sed
2229s/[\\$]/&&/g;s/;s,x,x,$//
2230_ACEOF
2231program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2232rm -f conftest.sed
2233
2234# expand $ac_aux_dir to an absolute path
2235am_aux_dir=`cd $ac_aux_dir && pwd`
2236
2237test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2238# Use eval to expand $SHELL
2239if eval "$MISSING --run true"; then
2240  am_missing_run="$MISSING --run "
2241else
2242  am_missing_run=
2243  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2244echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2245fi
2246
2247{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2248echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2249if test -z "$MKDIR_P"; then
2250  if test "${ac_cv_path_mkdir+set}" = set; then
2251  echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2255do
2256  IFS=$as_save_IFS
2257  test -z "$as_dir" && as_dir=.
2258  for ac_prog in mkdir gmkdir; do
2259	 for ac_exec_ext in '' $ac_executable_extensions; do
2260	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2261	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2262	     'mkdir (GNU coreutils) '* | \
2263	     'mkdir (coreutils) '* | \
2264	     'mkdir (fileutils) '4.1*)
2265	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2266	       break 3;;
2267	   esac
2268	 done
2269       done
2270done
2271IFS=$as_save_IFS
2272
2273fi
2274
2275  if test "${ac_cv_path_mkdir+set}" = set; then
2276    MKDIR_P="$ac_cv_path_mkdir -p"
2277  else
2278    # As a last resort, use the slow shell script.  Don't cache a
2279    # value for MKDIR_P within a source directory, because that will
2280    # break other packages using the cache if that directory is
2281    # removed, or if the value is a relative name.
2282    test -d ./--version && rmdir ./--version
2283    MKDIR_P="$ac_install_sh -d"
2284  fi
2285fi
2286{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2287echo "${ECHO_T}$MKDIR_P" >&6; }
2288
2289mkdir_p="$MKDIR_P"
2290case $mkdir_p in
2291  [\\/$]* | ?:[\\/]*) ;;
2292  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2293esac
2294
2295for ac_prog in gawk mawk nawk awk
2296do
2297  # Extract the first word of "$ac_prog", so it can be a program name with args.
2298set dummy $ac_prog; ac_word=$2
2299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301if test "${ac_cv_prog_AWK+set}" = set; then
2302  echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304  if test -n "$AWK"; then
2305  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2306else
2307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308for as_dir in $PATH
2309do
2310  IFS=$as_save_IFS
2311  test -z "$as_dir" && as_dir=.
2312  for ac_exec_ext in '' $ac_executable_extensions; do
2313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314    ac_cv_prog_AWK="$ac_prog"
2315    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316    break 2
2317  fi
2318done
2319done
2320IFS=$as_save_IFS
2321
2322fi
2323fi
2324AWK=$ac_cv_prog_AWK
2325if test -n "$AWK"; then
2326  { echo "$as_me:$LINENO: result: $AWK" >&5
2327echo "${ECHO_T}$AWK" >&6; }
2328else
2329  { echo "$as_me:$LINENO: result: no" >&5
2330echo "${ECHO_T}no" >&6; }
2331fi
2332
2333
2334  test -n "$AWK" && break
2335done
2336
2337{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2338echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2339set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2340if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2341  echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343  cat >conftest.make <<\_ACEOF
2344SHELL = /bin/sh
2345all:
2346	@echo '@@@%%%=$(MAKE)=@@@%%%'
2347_ACEOF
2348# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2349case `${MAKE-make} -f conftest.make 2>/dev/null` in
2350  *@@@%%%=?*=@@@%%%*)
2351    eval ac_cv_prog_make_${ac_make}_set=yes;;
2352  *)
2353    eval ac_cv_prog_make_${ac_make}_set=no;;
2354esac
2355rm -f conftest.make
2356fi
2357if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2358  { echo "$as_me:$LINENO: result: yes" >&5
2359echo "${ECHO_T}yes" >&6; }
2360  SET_MAKE=
2361else
2362  { echo "$as_me:$LINENO: result: no" >&5
2363echo "${ECHO_T}no" >&6; }
2364  SET_MAKE="MAKE=${MAKE-make}"
2365fi
2366
2367rm -rf .tst 2>/dev/null
2368mkdir .tst 2>/dev/null
2369if test -d .tst; then
2370  am__leading_dot=.
2371else
2372  am__leading_dot=_
2373fi
2374rmdir .tst 2>/dev/null
2375
2376if test "`cd $srcdir && pwd`" != "`pwd`"; then
2377  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2378  # is not polluted with repeated "-I."
2379  am__isrc=' -I$(srcdir)'
2380  # test to see if srcdir already configured
2381  if test -f $srcdir/config.status; then
2382    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2383echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2384   { (exit 1); exit 1; }; }
2385  fi
2386fi
2387
2388# test whether we have cygpath
2389if test -z "$CYGPATH_W"; then
2390  if (cygpath --version) >/dev/null 2>/dev/null; then
2391    CYGPATH_W='cygpath -w'
2392  else
2393    CYGPATH_W=echo
2394  fi
2395fi
2396
2397
2398# Define the identity of the package.
2399 PACKAGE='libX11'
2400 VERSION='1.1.4'
2401
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE "$PACKAGE"
2405_ACEOF
2406
2407
2408cat >>confdefs.h <<_ACEOF
2409#define VERSION "$VERSION"
2410_ACEOF
2411
2412# Some tools Automake needs.
2413
2414ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2415
2416
2417AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2418
2419
2420AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2421
2422
2423AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2424
2425
2426MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2427
2428install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2429
2430# Installed binaries are usually stripped using `strip' when the user
2431# run `make install-strip'.  However `strip' might not be the right
2432# tool to use in cross-compilation environments, therefore Automake
2433# will honor the `STRIP' environment variable to overrule this program.
2434if test "$cross_compiling" != no; then
2435  if test -n "$ac_tool_prefix"; then
2436  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2437set dummy ${ac_tool_prefix}strip; ac_word=$2
2438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440if test "${ac_cv_prog_STRIP+set}" = set; then
2441  echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443  if test -n "$STRIP"; then
2444  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2445else
2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449  IFS=$as_save_IFS
2450  test -z "$as_dir" && as_dir=.
2451  for ac_exec_ext in '' $ac_executable_extensions; do
2452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2454    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455    break 2
2456  fi
2457done
2458done
2459IFS=$as_save_IFS
2460
2461fi
2462fi
2463STRIP=$ac_cv_prog_STRIP
2464if test -n "$STRIP"; then
2465  { echo "$as_me:$LINENO: result: $STRIP" >&5
2466echo "${ECHO_T}$STRIP" >&6; }
2467else
2468  { echo "$as_me:$LINENO: result: no" >&5
2469echo "${ECHO_T}no" >&6; }
2470fi
2471
2472
2473fi
2474if test -z "$ac_cv_prog_STRIP"; then
2475  ac_ct_STRIP=$STRIP
2476  # Extract the first word of "strip", so it can be a program name with args.
2477set dummy strip; ac_word=$2
2478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2481  echo $ECHO_N "(cached) $ECHO_C" >&6
2482else
2483  if test -n "$ac_ct_STRIP"; then
2484  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2485else
2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489  IFS=$as_save_IFS
2490  test -z "$as_dir" && as_dir=.
2491  for ac_exec_ext in '' $ac_executable_extensions; do
2492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493    ac_cv_prog_ac_ct_STRIP="strip"
2494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495    break 2
2496  fi
2497done
2498done
2499IFS=$as_save_IFS
2500
2501fi
2502fi
2503ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2504if test -n "$ac_ct_STRIP"; then
2505  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2506echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2507else
2508  { echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6; }
2510fi
2511
2512  if test "x$ac_ct_STRIP" = x; then
2513    STRIP=":"
2514  else
2515    case $cross_compiling:$ac_tool_warned in
2516yes:)
2517{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518whose name does not start with the host triplet.  If you think this
2519configuration is useful to you, please write to autoconf@gnu.org." >&5
2520echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521whose name does not start with the host triplet.  If you think this
2522configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523ac_tool_warned=yes ;;
2524esac
2525    STRIP=$ac_ct_STRIP
2526  fi
2527else
2528  STRIP="$ac_cv_prog_STRIP"
2529fi
2530
2531fi
2532INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2533
2534# We need awk for the "check" target.  The system "awk" is bad on
2535# some platforms.
2536# Always define AMTAR for backward compatibility.
2537
2538AMTAR=${AMTAR-"${am_missing_run}tar"}
2539
2540am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2541
2542
2543
2544
2545
2546
2547{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2548echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2549    # Check whether --enable-maintainer-mode was given.
2550if test "${enable_maintainer_mode+set}" = set; then
2551  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2552else
2553  USE_MAINTAINER_MODE=no
2554fi
2555
2556  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2557echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2558   if test $USE_MAINTAINER_MODE = yes; then
2559  MAINTAINER_MODE_TRUE=
2560  MAINTAINER_MODE_FALSE='#'
2561else
2562  MAINTAINER_MODE_TRUE='#'
2563  MAINTAINER_MODE_FALSE=
2564fi
2565
2566  MAINT=$MAINTAINER_MODE_TRUE
2567
2568
2569
2570ac_config_headers="$ac_config_headers src/config.h"
2571
2572ac_config_headers="$ac_config_headers include/X11/XlibConf.h"
2573
2574
2575# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro
2576
2577
2578	XORG_MACROS_needed_version=1.1
2579	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2580	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2581	{ echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2582echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; }
2583	XORG_MACROS_version=1.1.6
2584	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2585	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2586	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2587		{ { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2588echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2589   { (exit 1); exit 1; }; }
2590	fi
2591	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2592		{ { echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2593echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2594   { (exit 1); exit 1; }; }
2595	fi
2596	{ echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2597echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; }
2598
2599
2600# Checks for programs.
2601# Check whether --enable-shared was given.
2602if test "${enable_shared+set}" = set; then
2603  enableval=$enable_shared; p=${PACKAGE-default}
2604    case $enableval in
2605    yes) enable_shared=yes ;;
2606    no) enable_shared=no ;;
2607    *)
2608      enable_shared=no
2609      # Look at the argument we got.  We use all the common list separators.
2610      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2611      for pkg in $enableval; do
2612	IFS="$lt_save_ifs"
2613	if test "X$pkg" = "X$p"; then
2614	  enable_shared=yes
2615	fi
2616      done
2617      IFS="$lt_save_ifs"
2618      ;;
2619    esac
2620else
2621  enable_shared=yes
2622fi
2623
2624
2625# Check whether --enable-static was given.
2626if test "${enable_static+set}" = set; then
2627  enableval=$enable_static; p=${PACKAGE-default}
2628    case $enableval in
2629    yes) enable_static=yes ;;
2630    no) enable_static=no ;;
2631    *)
2632     enable_static=no
2633      # Look at the argument we got.  We use all the common list separators.
2634      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2635      for pkg in $enableval; do
2636	IFS="$lt_save_ifs"
2637	if test "X$pkg" = "X$p"; then
2638	  enable_static=yes
2639	fi
2640      done
2641      IFS="$lt_save_ifs"
2642      ;;
2643    esac
2644else
2645  enable_static=yes
2646fi
2647
2648
2649# Check whether --enable-fast-install was given.
2650if test "${enable_fast_install+set}" = set; then
2651  enableval=$enable_fast_install; p=${PACKAGE-default}
2652    case $enableval in
2653    yes) enable_fast_install=yes ;;
2654    no) enable_fast_install=no ;;
2655    *)
2656      enable_fast_install=no
2657      # Look at the argument we got.  We use all the common list separators.
2658      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2659      for pkg in $enableval; do
2660	IFS="$lt_save_ifs"
2661	if test "X$pkg" = "X$p"; then
2662	  enable_fast_install=yes
2663	fi
2664      done
2665      IFS="$lt_save_ifs"
2666      ;;
2667    esac
2668else
2669  enable_fast_install=yes
2670fi
2671
2672
2673# Make sure we can run config.sub.
2674$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2675  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2676echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2677   { (exit 1); exit 1; }; }
2678
2679{ echo "$as_me:$LINENO: checking build system type" >&5
2680echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2681if test "${ac_cv_build+set}" = set; then
2682  echo $ECHO_N "(cached) $ECHO_C" >&6
2683else
2684  ac_build_alias=$build_alias
2685test "x$ac_build_alias" = x &&
2686  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2687test "x$ac_build_alias" = x &&
2688  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2689echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2690   { (exit 1); exit 1; }; }
2691ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2692  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2693echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2694   { (exit 1); exit 1; }; }
2695
2696fi
2697{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2698echo "${ECHO_T}$ac_cv_build" >&6; }
2699case $ac_cv_build in
2700*-*-*) ;;
2701*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2702echo "$as_me: error: invalid value of canonical build" >&2;}
2703   { (exit 1); exit 1; }; };;
2704esac
2705build=$ac_cv_build
2706ac_save_IFS=$IFS; IFS='-'
2707set x $ac_cv_build
2708shift
2709build_cpu=$1
2710build_vendor=$2
2711shift; shift
2712# Remember, the first character of IFS is used to create $*,
2713# except with old shells:
2714build_os=$*
2715IFS=$ac_save_IFS
2716case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2717
2718
2719{ echo "$as_me:$LINENO: checking host system type" >&5
2720echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2721if test "${ac_cv_host+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  if test "x$host_alias" = x; then
2725  ac_cv_host=$ac_cv_build
2726else
2727  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2728    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2729echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2730   { (exit 1); exit 1; }; }
2731fi
2732
2733fi
2734{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2735echo "${ECHO_T}$ac_cv_host" >&6; }
2736case $ac_cv_host in
2737*-*-*) ;;
2738*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2739echo "$as_me: error: invalid value of canonical host" >&2;}
2740   { (exit 1); exit 1; }; };;
2741esac
2742host=$ac_cv_host
2743ac_save_IFS=$IFS; IFS='-'
2744set x $ac_cv_host
2745shift
2746host_cpu=$1
2747host_vendor=$2
2748shift; shift
2749# Remember, the first character of IFS is used to create $*,
2750# except with old shells:
2751host_os=$*
2752IFS=$ac_save_IFS
2753case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2754
2755
2756DEPDIR="${am__leading_dot}deps"
2757
2758ac_config_commands="$ac_config_commands depfiles"
2759
2760
2761am_make=${MAKE-make}
2762cat > confinc << 'END'
2763am__doit:
2764	@echo done
2765.PHONY: am__doit
2766END
2767# If we don't find an include directive, just comment out the code.
2768{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2769echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2770am__include="#"
2771am__quote=
2772_am_result=none
2773# First try GNU make style include.
2774echo "include confinc" > confmf
2775# We grep out `Entering directory' and `Leaving directory'
2776# messages which can occur if `w' ends up in MAKEFLAGS.
2777# In particular we don't look at `^make:' because GNU make might
2778# be invoked under some other name (usually "gmake"), in which
2779# case it prints its new name instead of `make'.
2780if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2781   am__include=include
2782   am__quote=
2783   _am_result=GNU
2784fi
2785# Now try BSD make style include.
2786if test "$am__include" = "#"; then
2787   echo '.include "confinc"' > confmf
2788   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2789      am__include=.include
2790      am__quote="\""
2791      _am_result=BSD
2792   fi
2793fi
2794
2795
2796{ echo "$as_me:$LINENO: result: $_am_result" >&5
2797echo "${ECHO_T}$_am_result" >&6; }
2798rm -f confinc confmf
2799
2800# Check whether --enable-dependency-tracking was given.
2801if test "${enable_dependency_tracking+set}" = set; then
2802  enableval=$enable_dependency_tracking;
2803fi
2804
2805if test "x$enable_dependency_tracking" != xno; then
2806  am_depcomp="$ac_aux_dir/depcomp"
2807  AMDEPBACKSLASH='\'
2808fi
2809 if test "x$enable_dependency_tracking" != xno; then
2810  AMDEP_TRUE=
2811  AMDEP_FALSE='#'
2812else
2813  AMDEP_TRUE='#'
2814  AMDEP_FALSE=
2815fi
2816
2817
2818ac_ext=c
2819ac_cpp='$CPP $CPPFLAGS'
2820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823if test -n "$ac_tool_prefix"; then
2824  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2825set dummy ${ac_tool_prefix}gcc; ac_word=$2
2826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828if test "${ac_cv_prog_CC+set}" = set; then
2829  echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
2831  if test -n "$CC"; then
2832  ac_cv_prog_CC="$CC" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837  IFS=$as_save_IFS
2838  test -z "$as_dir" && as_dir=.
2839  for ac_exec_ext in '' $ac_executable_extensions; do
2840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2842    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843    break 2
2844  fi
2845done
2846done
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851CC=$ac_cv_prog_CC
2852if test -n "$CC"; then
2853  { echo "$as_me:$LINENO: result: $CC" >&5
2854echo "${ECHO_T}$CC" >&6; }
2855else
2856  { echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6; }
2858fi
2859
2860
2861fi
2862if test -z "$ac_cv_prog_CC"; then
2863  ac_ct_CC=$CC
2864  # Extract the first word of "gcc", so it can be a program name with args.
2865set dummy gcc; ac_word=$2
2866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2869  echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871  if test -n "$ac_ct_CC"; then
2872  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2873else
2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877  IFS=$as_save_IFS
2878  test -z "$as_dir" && as_dir=.
2879  for ac_exec_ext in '' $ac_executable_extensions; do
2880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881    ac_cv_prog_ac_ct_CC="gcc"
2882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883    break 2
2884  fi
2885done
2886done
2887IFS=$as_save_IFS
2888
2889fi
2890fi
2891ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892if test -n "$ac_ct_CC"; then
2893  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2894echo "${ECHO_T}$ac_ct_CC" >&6; }
2895else
2896  { echo "$as_me:$LINENO: result: no" >&5
2897echo "${ECHO_T}no" >&6; }
2898fi
2899
2900  if test "x$ac_ct_CC" = x; then
2901    CC=""
2902  else
2903    case $cross_compiling:$ac_tool_warned in
2904yes:)
2905{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2906whose name does not start with the host triplet.  If you think this
2907configuration is useful to you, please write to autoconf@gnu.org." >&5
2908echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2909whose name does not start with the host triplet.  If you think this
2910configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2911ac_tool_warned=yes ;;
2912esac
2913    CC=$ac_ct_CC
2914  fi
2915else
2916  CC="$ac_cv_prog_CC"
2917fi
2918
2919if test -z "$CC"; then
2920          if test -n "$ac_tool_prefix"; then
2921    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2922set dummy ${ac_tool_prefix}cc; ac_word=$2
2923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2925if test "${ac_cv_prog_CC+set}" = set; then
2926  echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928  if test -n "$CC"; then
2929  ac_cv_prog_CC="$CC" # Let the user override the test.
2930else
2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934  IFS=$as_save_IFS
2935  test -z "$as_dir" && as_dir=.
2936  for ac_exec_ext in '' $ac_executable_extensions; do
2937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938    ac_cv_prog_CC="${ac_tool_prefix}cc"
2939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943done
2944IFS=$as_save_IFS
2945
2946fi
2947fi
2948CC=$ac_cv_prog_CC
2949if test -n "$CC"; then
2950  { echo "$as_me:$LINENO: result: $CC" >&5
2951echo "${ECHO_T}$CC" >&6; }
2952else
2953  { echo "$as_me:$LINENO: result: no" >&5
2954echo "${ECHO_T}no" >&6; }
2955fi
2956
2957
2958  fi
2959fi
2960if test -z "$CC"; then
2961  # Extract the first word of "cc", so it can be a program name with args.
2962set dummy cc; 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_CC+set}" = set; then
2966  echo $ECHO_N "(cached) $ECHO_C" >&6
2967else
2968  if test -n "$CC"; then
2969  ac_cv_prog_CC="$CC" # Let the user override the test.
2970else
2971  ac_prog_rejected=no
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977  for ac_exec_ext in '' $ac_executable_extensions; do
2978  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2980       ac_prog_rejected=yes
2981       continue
2982     fi
2983    ac_cv_prog_CC="cc"
2984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985    break 2
2986  fi
2987done
2988done
2989IFS=$as_save_IFS
2990
2991if test $ac_prog_rejected = yes; then
2992  # We found a bogon in the path, so make sure we never use it.
2993  set dummy $ac_cv_prog_CC
2994  shift
2995  if test $# != 0; then
2996    # We chose a different compiler from the bogus one.
2997    # However, it has the same basename, so the bogon will be chosen
2998    # first if we set CC to just the basename; use the full file name.
2999    shift
3000    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3001  fi
3002fi
3003fi
3004fi
3005CC=$ac_cv_prog_CC
3006if test -n "$CC"; then
3007  { echo "$as_me:$LINENO: result: $CC" >&5
3008echo "${ECHO_T}$CC" >&6; }
3009else
3010  { echo "$as_me:$LINENO: result: no" >&5
3011echo "${ECHO_T}no" >&6; }
3012fi
3013
3014
3015fi
3016if test -z "$CC"; then
3017  if test -n "$ac_tool_prefix"; then
3018  for ac_prog in cl.exe
3019  do
3020    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3024if test "${ac_cv_prog_CC+set}" = set; then
3025  echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027  if test -n "$CC"; then
3028  ac_cv_prog_CC="$CC" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033  IFS=$as_save_IFS
3034  test -z "$as_dir" && as_dir=.
3035  for ac_exec_ext in '' $ac_executable_extensions; do
3036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039    break 2
3040  fi
3041done
3042done
3043IFS=$as_save_IFS
3044
3045fi
3046fi
3047CC=$ac_cv_prog_CC
3048if test -n "$CC"; then
3049  { echo "$as_me:$LINENO: result: $CC" >&5
3050echo "${ECHO_T}$CC" >&6; }
3051else
3052  { echo "$as_me:$LINENO: result: no" >&5
3053echo "${ECHO_T}no" >&6; }
3054fi
3055
3056
3057    test -n "$CC" && break
3058  done
3059fi
3060if test -z "$CC"; then
3061  ac_ct_CC=$CC
3062  for ac_prog in cl.exe
3063do
3064  # Extract the first word of "$ac_prog", so it can be a program name with args.
3065set dummy $ac_prog; ac_word=$2
3066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3069  echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071  if test -n "$ac_ct_CC"; then
3072  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077  IFS=$as_save_IFS
3078  test -z "$as_dir" && as_dir=.
3079  for ac_exec_ext in '' $ac_executable_extensions; do
3080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081    ac_cv_prog_ac_ct_CC="$ac_prog"
3082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083    break 2
3084  fi
3085done
3086done
3087IFS=$as_save_IFS
3088
3089fi
3090fi
3091ac_ct_CC=$ac_cv_prog_ac_ct_CC
3092if test -n "$ac_ct_CC"; then
3093  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3094echo "${ECHO_T}$ac_ct_CC" >&6; }
3095else
3096  { echo "$as_me:$LINENO: result: no" >&5
3097echo "${ECHO_T}no" >&6; }
3098fi
3099
3100
3101  test -n "$ac_ct_CC" && break
3102done
3103
3104  if test "x$ac_ct_CC" = x; then
3105    CC=""
3106  else
3107    case $cross_compiling:$ac_tool_warned in
3108yes:)
3109{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3110whose name does not start with the host triplet.  If you think this
3111configuration is useful to you, please write to autoconf@gnu.org." >&5
3112echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3113whose name does not start with the host triplet.  If you think this
3114configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3115ac_tool_warned=yes ;;
3116esac
3117    CC=$ac_ct_CC
3118  fi
3119fi
3120
3121fi
3122
3123
3124test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3125See \`config.log' for more details." >&5
3126echo "$as_me: error: no acceptable C compiler found in \$PATH
3127See \`config.log' for more details." >&2;}
3128   { (exit 1); exit 1; }; }
3129
3130# Provide some information about the compiler.
3131echo "$as_me:$LINENO: checking for C compiler version" >&5
3132ac_compiler=`set X $ac_compile; echo $2`
3133{ (ac_try="$ac_compiler --version >&5"
3134case "(($ac_try" in
3135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136  *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139  (eval "$ac_compiler --version >&5") 2>&5
3140  ac_status=$?
3141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142  (exit $ac_status); }
3143{ (ac_try="$ac_compiler -v >&5"
3144case "(($ac_try" in
3145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146  *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149  (eval "$ac_compiler -v >&5") 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); }
3153{ (ac_try="$ac_compiler -V >&5"
3154case "(($ac_try" in
3155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156  *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159  (eval "$ac_compiler -V >&5") 2>&5
3160  ac_status=$?
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); }
3163
3164cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h.  */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h.  */
3170
3171int
3172main ()
3173{
3174
3175  ;
3176  return 0;
3177}
3178_ACEOF
3179ac_clean_files_save=$ac_clean_files
3180ac_clean_files="$ac_clean_files a.out a.exe b.out"
3181# Try to create an executable without -o first, disregard a.out.
3182# It will help us diagnose broken compilers, and finding out an intuition
3183# of exeext.
3184{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3187#
3188# List of possible output files, starting from the most likely.
3189# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3190# only as a last resort.  b.out is created by i960 compilers.
3191ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3192#
3193# The IRIX 6 linker writes into existing files which may not be
3194# executable, retaining their permissions.  Remove them first so a
3195# subsequent execution test works.
3196ac_rmfiles=
3197for ac_file in $ac_files
3198do
3199  case $ac_file in
3200    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3201    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3202  esac
3203done
3204rm -f $ac_rmfiles
3205
3206if { (ac_try="$ac_link_default"
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_default") 2>&5
3213  ac_status=$?
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); }; then
3216  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3217# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3218# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3219# so that the user can short-circuit this test for compilers unknown to
3220# Autoconf.
3221for ac_file in $ac_files ''
3222do
3223  test -f "$ac_file" || continue
3224  case $ac_file in
3225    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3226	;;
3227    [ab].out )
3228	# We found the default executable, but exeext='' is most
3229	# certainly right.
3230	break;;
3231    *.* )
3232        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3233	then :; else
3234	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235	fi
3236	# We set ac_cv_exeext here because the later test for it is not
3237	# safe: cross compilers may not add the suffix if given an `-o'
3238	# argument, so we may need to know it at that point already.
3239	# Even if this section looks crufty: it has the advantage of
3240	# actually working.
3241	break;;
3242    * )
3243	break;;
3244  esac
3245done
3246test "$ac_cv_exeext" = no && ac_cv_exeext=
3247
3248else
3249  ac_file=''
3250fi
3251
3252{ echo "$as_me:$LINENO: result: $ac_file" >&5
3253echo "${ECHO_T}$ac_file" >&6; }
3254if test -z "$ac_file"; then
3255  echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
3258{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3259See \`config.log' for more details." >&5
3260echo "$as_me: error: C compiler cannot create executables
3261See \`config.log' for more details." >&2;}
3262   { (exit 77); exit 77; }; }
3263fi
3264
3265ac_exeext=$ac_cv_exeext
3266
3267# Check that the compiler produces executables we can run.  If not, either
3268# the compiler is broken, or we cross compile.
3269{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3270echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3271# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3272# If not cross compiling, check that we can run a simple program.
3273if test "$cross_compiling" != yes; then
3274  if { ac_try='./$ac_file'
3275  { (case "(($ac_try" in
3276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277  *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280  (eval "$ac_try") 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; }; then
3284    cross_compiling=no
3285  else
3286    if test "$cross_compiling" = maybe; then
3287	cross_compiling=yes
3288    else
3289	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3290If you meant to cross compile, use \`--host'.
3291See \`config.log' for more details." >&5
3292echo "$as_me: error: cannot run C compiled programs.
3293If you meant to cross compile, use \`--host'.
3294See \`config.log' for more details." >&2;}
3295   { (exit 1); exit 1; }; }
3296    fi
3297  fi
3298fi
3299{ echo "$as_me:$LINENO: result: yes" >&5
3300echo "${ECHO_T}yes" >&6; }
3301
3302rm -f a.out a.exe conftest$ac_cv_exeext b.out
3303ac_clean_files=$ac_clean_files_save
3304# Check that the compiler produces executables we can run.  If not, either
3305# the compiler is broken, or we cross compile.
3306{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3307echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3308{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3309echo "${ECHO_T}$cross_compiling" >&6; }
3310
3311{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3312echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3313if { (ac_try="$ac_link"
3314case "(($ac_try" in
3315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316  *) ac_try_echo=$ac_try;;
3317esac
3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319  (eval "$ac_link") 2>&5
3320  ac_status=$?
3321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322  (exit $ac_status); }; then
3323  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3324# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3325# work properly (i.e., refer to `conftest.exe'), while it won't with
3326# `rm'.
3327for ac_file in conftest.exe conftest conftest.*; do
3328  test -f "$ac_file" || continue
3329  case $ac_file in
3330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3331    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332	  break;;
3333    * ) break;;
3334  esac
3335done
3336else
3337  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3338See \`config.log' for more details." >&5
3339echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3340See \`config.log' for more details." >&2;}
3341   { (exit 1); exit 1; }; }
3342fi
3343
3344rm -f conftest$ac_cv_exeext
3345{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3346echo "${ECHO_T}$ac_cv_exeext" >&6; }
3347
3348rm -f conftest.$ac_ext
3349EXEEXT=$ac_cv_exeext
3350ac_exeext=$EXEEXT
3351{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3352echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3353if test "${ac_cv_objext+set}" = set; then
3354  echo $ECHO_N "(cached) $ECHO_C" >&6
3355else
3356  cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h.  */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h.  */
3362
3363int
3364main ()
3365{
3366
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371rm -f conftest.o conftest.obj
3372if { (ac_try="$ac_compile"
3373case "(($ac_try" in
3374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375  *) ac_try_echo=$ac_try;;
3376esac
3377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378  (eval "$ac_compile") 2>&5
3379  ac_status=$?
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); }; then
3382  for ac_file in conftest.o conftest.obj conftest.*; do
3383  test -f "$ac_file" || continue;
3384  case $ac_file in
3385    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3386    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3387       break;;
3388  esac
3389done
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3395See \`config.log' for more details." >&5
3396echo "$as_me: error: cannot compute suffix of object files: cannot compile
3397See \`config.log' for more details." >&2;}
3398   { (exit 1); exit 1; }; }
3399fi
3400
3401rm -f conftest.$ac_cv_objext conftest.$ac_ext
3402fi
3403{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3404echo "${ECHO_T}$ac_cv_objext" >&6; }
3405OBJEXT=$ac_cv_objext
3406ac_objext=$OBJEXT
3407{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3408echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3409if test "${ac_cv_c_compiler_gnu+set}" = set; then
3410  echo $ECHO_N "(cached) $ECHO_C" >&6
3411else
3412  cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h.  */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h.  */
3418
3419int
3420main ()
3421{
3422#ifndef __GNUC__
3423       choke me
3424#endif
3425
3426  ;
3427  return 0;
3428}
3429_ACEOF
3430rm -f conftest.$ac_objext
3431if { (ac_try="$ac_compile"
3432case "(($ac_try" in
3433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434  *) ac_try_echo=$ac_try;;
3435esac
3436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437  (eval "$ac_compile") 2>conftest.er1
3438  ac_status=$?
3439  grep -v '^ *+' conftest.er1 >conftest.err
3440  rm -f conftest.er1
3441  cat conftest.err >&5
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); } && {
3444	 test -z "$ac_c_werror_flag" ||
3445	 test ! -s conftest.err
3446       } && test -s conftest.$ac_objext; then
3447  ac_compiler_gnu=yes
3448else
3449  echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452	ac_compiler_gnu=no
3453fi
3454
3455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456ac_cv_c_compiler_gnu=$ac_compiler_gnu
3457
3458fi
3459{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3461GCC=`test $ac_compiler_gnu = yes && echo yes`
3462ac_test_CFLAGS=${CFLAGS+set}
3463ac_save_CFLAGS=$CFLAGS
3464{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3465echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3466if test "${ac_cv_prog_cc_g+set}" = set; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469  ac_save_c_werror_flag=$ac_c_werror_flag
3470   ac_c_werror_flag=yes
3471   ac_cv_prog_cc_g=no
3472   CFLAGS="-g"
3473   cat >conftest.$ac_ext <<_ACEOF
3474/* confdefs.h.  */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h.  */
3479
3480int
3481main ()
3482{
3483
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488rm -f conftest.$ac_objext
3489if { (ac_try="$ac_compile"
3490case "(($ac_try" in
3491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492  *) ac_try_echo=$ac_try;;
3493esac
3494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495  (eval "$ac_compile") 2>conftest.er1
3496  ac_status=$?
3497  grep -v '^ *+' conftest.er1 >conftest.err
3498  rm -f conftest.er1
3499  cat conftest.err >&5
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); } && {
3502	 test -z "$ac_c_werror_flag" ||
3503	 test ! -s conftest.err
3504       } && test -s conftest.$ac_objext; then
3505  ac_cv_prog_cc_g=yes
3506else
3507  echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510	CFLAGS=""
3511      cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h.  */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h.  */
3517
3518int
3519main ()
3520{
3521
3522  ;
3523  return 0;
3524}
3525_ACEOF
3526rm -f conftest.$ac_objext
3527if { (ac_try="$ac_compile"
3528case "(($ac_try" in
3529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530  *) ac_try_echo=$ac_try;;
3531esac
3532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533  (eval "$ac_compile") 2>conftest.er1
3534  ac_status=$?
3535  grep -v '^ *+' conftest.er1 >conftest.err
3536  rm -f conftest.er1
3537  cat conftest.err >&5
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); } && {
3540	 test -z "$ac_c_werror_flag" ||
3541	 test ! -s conftest.err
3542       } && test -s conftest.$ac_objext; then
3543  :
3544else
3545  echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548	ac_c_werror_flag=$ac_save_c_werror_flag
3549	 CFLAGS="-g"
3550	 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h.  */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h.  */
3556
3557int
3558main ()
3559{
3560
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565rm -f conftest.$ac_objext
3566if { (ac_try="$ac_compile"
3567case "(($ac_try" in
3568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569  *) ac_try_echo=$ac_try;;
3570esac
3571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572  (eval "$ac_compile") 2>conftest.er1
3573  ac_status=$?
3574  grep -v '^ *+' conftest.er1 >conftest.err
3575  rm -f conftest.er1
3576  cat conftest.err >&5
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); } && {
3579	 test -z "$ac_c_werror_flag" ||
3580	 test ! -s conftest.err
3581       } && test -s conftest.$ac_objext; then
3582  ac_cv_prog_cc_g=yes
3583else
3584  echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587
3588fi
3589
3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591fi
3592
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594fi
3595
3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597   ac_c_werror_flag=$ac_save_c_werror_flag
3598fi
3599{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3600echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3601if test "$ac_test_CFLAGS" = set; then
3602  CFLAGS=$ac_save_CFLAGS
3603elif test $ac_cv_prog_cc_g = yes; then
3604  if test "$GCC" = yes; then
3605    CFLAGS="-g -O2"
3606  else
3607    CFLAGS="-g"
3608  fi
3609else
3610  if test "$GCC" = yes; then
3611    CFLAGS="-O2"
3612  else
3613    CFLAGS=
3614  fi
3615fi
3616{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3617echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3618if test "${ac_cv_prog_cc_c89+set}" = set; then
3619  echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621  ac_cv_prog_cc_c89=no
3622ac_save_CC=$CC
3623cat >conftest.$ac_ext <<_ACEOF
3624/* confdefs.h.  */
3625_ACEOF
3626cat confdefs.h >>conftest.$ac_ext
3627cat >>conftest.$ac_ext <<_ACEOF
3628/* end confdefs.h.  */
3629#include <stdarg.h>
3630#include <stdio.h>
3631#include <sys/types.h>
3632#include <sys/stat.h>
3633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3634struct buf { int x; };
3635FILE * (*rcsopen) (struct buf *, struct stat *, int);
3636static char *e (p, i)
3637     char **p;
3638     int i;
3639{
3640  return p[i];
3641}
3642static char *f (char * (*g) (char **, int), char **p, ...)
3643{
3644  char *s;
3645  va_list v;
3646  va_start (v,p);
3647  s = g (p, va_arg (v,int));
3648  va_end (v);
3649  return s;
3650}
3651
3652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3653   function prototypes and stuff, but not '\xHH' hex character constants.
3654   These don't provoke an error unfortunately, instead are silently treated
3655   as 'x'.  The following induces an error, until -std is added to get
3656   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3657   array size at least.  It's necessary to write '\x00'==0 to get something
3658   that's true only with -std.  */
3659int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3660
3661/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3662   inside strings and character constants.  */
3663#define FOO(x) 'x'
3664int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3665
3666int test (int i, double x);
3667struct s1 {int (*f) (int a);};
3668struct s2 {int (*f) (double a);};
3669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3670int argc;
3671char **argv;
3672int
3673main ()
3674{
3675return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3676  ;
3677  return 0;
3678}
3679_ACEOF
3680for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3681	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682do
3683  CC="$ac_save_CC $ac_arg"
3684  rm -f conftest.$ac_objext
3685if { (ac_try="$ac_compile"
3686case "(($ac_try" in
3687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688  *) ac_try_echo=$ac_try;;
3689esac
3690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691  (eval "$ac_compile") 2>conftest.er1
3692  ac_status=$?
3693  grep -v '^ *+' conftest.er1 >conftest.err
3694  rm -f conftest.er1
3695  cat conftest.err >&5
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); } && {
3698	 test -z "$ac_c_werror_flag" ||
3699	 test ! -s conftest.err
3700       } && test -s conftest.$ac_objext; then
3701  ac_cv_prog_cc_c89=$ac_arg
3702else
3703  echo "$as_me: failed program was:" >&5
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706
3707fi
3708
3709rm -f core conftest.err conftest.$ac_objext
3710  test "x$ac_cv_prog_cc_c89" != "xno" && break
3711done
3712rm -f conftest.$ac_ext
3713CC=$ac_save_CC
3714
3715fi
3716# AC_CACHE_VAL
3717case "x$ac_cv_prog_cc_c89" in
3718  x)
3719    { echo "$as_me:$LINENO: result: none needed" >&5
3720echo "${ECHO_T}none needed" >&6; } ;;
3721  xno)
3722    { echo "$as_me:$LINENO: result: unsupported" >&5
3723echo "${ECHO_T}unsupported" >&6; } ;;
3724  *)
3725    CC="$CC $ac_cv_prog_cc_c89"
3726    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3727echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3728esac
3729
3730
3731ac_ext=c
3732ac_cpp='$CPP $CPPFLAGS'
3733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736
3737depcc="$CC"   am_compiler_list=
3738
3739{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3740echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3741if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3742  echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
3744  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3745  # We make a subdir and do the tests there.  Otherwise we can end up
3746  # making bogus files that we don't know about and never remove.  For
3747  # instance it was reported that on HP-UX the gcc test will end up
3748  # making a dummy file named `D' -- because `-MD' means `put the output
3749  # in D'.
3750  mkdir conftest.dir
3751  # Copy depcomp to subdir because otherwise we won't find it if we're
3752  # using a relative directory.
3753  cp "$am_depcomp" conftest.dir
3754  cd conftest.dir
3755  # We will build objects and dependencies in a subdirectory because
3756  # it helps to detect inapplicable dependency modes.  For instance
3757  # both Tru64's cc and ICC support -MD to output dependencies as a
3758  # side effect of compilation, but ICC will put the dependencies in
3759  # the current directory while Tru64 will put them in the object
3760  # directory.
3761  mkdir sub
3762
3763  am_cv_CC_dependencies_compiler_type=none
3764  if test "$am_compiler_list" = ""; then
3765     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3766  fi
3767  for depmode in $am_compiler_list; do
3768    # Setup a source with many dependencies, because some compilers
3769    # like to wrap large dependency lists on column 80 (with \), and
3770    # we should not choose a depcomp mode which is confused by this.
3771    #
3772    # We need to recreate these files for each test, as the compiler may
3773    # overwrite some of them when testing with obscure command lines.
3774    # This happens at least with the AIX C compiler.
3775    : > sub/conftest.c
3776    for i in 1 2 3 4 5 6; do
3777      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3778      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3779      # Solaris 8's {/usr,}/bin/sh.
3780      touch sub/conftst$i.h
3781    done
3782    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3783
3784    case $depmode in
3785    nosideeffect)
3786      # after this tag, mechanisms are not by side-effect, so they'll
3787      # only be used when explicitly requested
3788      if test "x$enable_dependency_tracking" = xyes; then
3789	continue
3790      else
3791	break
3792      fi
3793      ;;
3794    none) break ;;
3795    esac
3796    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3797    # mode.  It turns out that the SunPro C++ compiler does not properly
3798    # handle `-M -o', and we need to detect this.
3799    if depmode=$depmode \
3800       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3801       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3802       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3803         >/dev/null 2>conftest.err &&
3804       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3805       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3806       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3807       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3808      # icc doesn't choke on unknown options, it will just issue warnings
3809      # or remarks (even with -Werror).  So we grep stderr for any message
3810      # that says an option was ignored or not supported.
3811      # When given -MP, icc 7.0 and 7.1 complain thusly:
3812      #   icc: Command line warning: ignoring option '-M'; no argument required
3813      # The diagnosis changed in icc 8.0:
3814      #   icc: Command line remark: option '-MP' not supported
3815      if (grep 'ignoring option' conftest.err ||
3816          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3817        am_cv_CC_dependencies_compiler_type=$depmode
3818        break
3819      fi
3820    fi
3821  done
3822
3823  cd ..
3824  rm -rf conftest.dir
3825else
3826  am_cv_CC_dependencies_compiler_type=none
3827fi
3828
3829fi
3830{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3831echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3832CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3833
3834 if
3835  test "x$enable_dependency_tracking" != xno \
3836  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3837  am__fastdepCC_TRUE=
3838  am__fastdepCC_FALSE='#'
3839else
3840  am__fastdepCC_TRUE='#'
3841  am__fastdepCC_FALSE=
3842fi
3843
3844
3845{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3846echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3847if test "${lt_cv_path_SED+set}" = set; then
3848  echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850  # Loop through the user's path and test for sed and gsed.
3851# Then use that list of sed's as ones to test for truncation.
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855  IFS=$as_save_IFS
3856  test -z "$as_dir" && as_dir=.
3857  for lt_ac_prog in sed gsed; do
3858    for ac_exec_ext in '' $ac_executable_extensions; do
3859      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3860        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3861      fi
3862    done
3863  done
3864done
3865IFS=$as_save_IFS
3866lt_ac_max=0
3867lt_ac_count=0
3868# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3869# along with /bin/sed that truncates output.
3870for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3871  test ! -f $lt_ac_sed && continue
3872  cat /dev/null > conftest.in
3873  lt_ac_count=0
3874  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3875  # Check for GNU sed and select it if it is found.
3876  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3877    lt_cv_path_SED=$lt_ac_sed
3878    break
3879  fi
3880  while true; do
3881    cat conftest.in conftest.in >conftest.tmp
3882    mv conftest.tmp conftest.in
3883    cp conftest.in conftest.nl
3884    echo >>conftest.nl
3885    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3886    cmp -s conftest.out conftest.nl || break
3887    # 10000 chars as input seems more than enough
3888    test $lt_ac_count -gt 10 && break
3889    lt_ac_count=`expr $lt_ac_count + 1`
3890    if test $lt_ac_count -gt $lt_ac_max; then
3891      lt_ac_max=$lt_ac_count
3892      lt_cv_path_SED=$lt_ac_sed
3893    fi
3894  done
3895done
3896
3897fi
3898
3899SED=$lt_cv_path_SED
3900
3901{ echo "$as_me:$LINENO: result: $SED" >&5
3902echo "${ECHO_T}$SED" >&6; }
3903
3904{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3905echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3906if test "${ac_cv_path_GREP+set}" = set; then
3907  echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909  # Extract the first word of "grep ggrep" to use in msg output
3910if test -z "$GREP"; then
3911set dummy grep ggrep; ac_prog_name=$2
3912if test "${ac_cv_path_GREP+set}" = set; then
3913  echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915  ac_path_GREP_found=false
3916# Loop through the user's path and test for each of PROGNAME-LIST
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919do
3920  IFS=$as_save_IFS
3921  test -z "$as_dir" && as_dir=.
3922  for ac_prog in grep ggrep; do
3923  for ac_exec_ext in '' $ac_executable_extensions; do
3924    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3925    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3926    # Check for GNU ac_path_GREP and select it if it is found.
3927  # Check for GNU $ac_path_GREP
3928case `"$ac_path_GREP" --version 2>&1` in
3929*GNU*)
3930  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3931*)
3932  ac_count=0
3933  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3934  while :
3935  do
3936    cat "conftest.in" "conftest.in" >"conftest.tmp"
3937    mv "conftest.tmp" "conftest.in"
3938    cp "conftest.in" "conftest.nl"
3939    echo 'GREP' >> "conftest.nl"
3940    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3941    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3942    ac_count=`expr $ac_count + 1`
3943    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3944      # Best one so far, save it but keep looking for a better one
3945      ac_cv_path_GREP="$ac_path_GREP"
3946      ac_path_GREP_max=$ac_count
3947    fi
3948    # 10*(2^10) chars as input seems more than enough
3949    test $ac_count -gt 10 && break
3950  done
3951  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952esac
3953
3954
3955    $ac_path_GREP_found && break 3
3956  done
3957done
3958
3959done
3960IFS=$as_save_IFS
3961
3962
3963fi
3964
3965GREP="$ac_cv_path_GREP"
3966if test -z "$GREP"; then
3967  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3968echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3969   { (exit 1); exit 1; }; }
3970fi
3971
3972else
3973  ac_cv_path_GREP=$GREP
3974fi
3975
3976
3977fi
3978{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3979echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3980 GREP="$ac_cv_path_GREP"
3981
3982
3983{ echo "$as_me:$LINENO: checking for egrep" >&5
3984echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3985if test "${ac_cv_path_EGREP+set}" = set; then
3986  echo $ECHO_N "(cached) $ECHO_C" >&6
3987else
3988  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3989   then ac_cv_path_EGREP="$GREP -E"
3990   else
3991     # Extract the first word of "egrep" to use in msg output
3992if test -z "$EGREP"; then
3993set dummy egrep; ac_prog_name=$2
3994if test "${ac_cv_path_EGREP+set}" = set; then
3995  echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
3997  ac_path_EGREP_found=false
3998# Loop through the user's path and test for each of PROGNAME-LIST
3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4001do
4002  IFS=$as_save_IFS
4003  test -z "$as_dir" && as_dir=.
4004  for ac_prog in egrep; do
4005  for ac_exec_ext in '' $ac_executable_extensions; do
4006    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4007    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4008    # Check for GNU ac_path_EGREP and select it if it is found.
4009  # Check for GNU $ac_path_EGREP
4010case `"$ac_path_EGREP" --version 2>&1` in
4011*GNU*)
4012  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4013*)
4014  ac_count=0
4015  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4016  while :
4017  do
4018    cat "conftest.in" "conftest.in" >"conftest.tmp"
4019    mv "conftest.tmp" "conftest.in"
4020    cp "conftest.in" "conftest.nl"
4021    echo 'EGREP' >> "conftest.nl"
4022    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024    ac_count=`expr $ac_count + 1`
4025    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4026      # Best one so far, save it but keep looking for a better one
4027      ac_cv_path_EGREP="$ac_path_EGREP"
4028      ac_path_EGREP_max=$ac_count
4029    fi
4030    # 10*(2^10) chars as input seems more than enough
4031    test $ac_count -gt 10 && break
4032  done
4033  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4034esac
4035
4036
4037    $ac_path_EGREP_found && break 3
4038  done
4039done
4040
4041done
4042IFS=$as_save_IFS
4043
4044
4045fi
4046
4047EGREP="$ac_cv_path_EGREP"
4048if test -z "$EGREP"; then
4049  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4050echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4051   { (exit 1); exit 1; }; }
4052fi
4053
4054else
4055  ac_cv_path_EGREP=$EGREP
4056fi
4057
4058
4059   fi
4060fi
4061{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4062echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4063 EGREP="$ac_cv_path_EGREP"
4064
4065
4066
4067# Check whether --with-gnu-ld was given.
4068if test "${with_gnu_ld+set}" = set; then
4069  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4070else
4071  with_gnu_ld=no
4072fi
4073
4074ac_prog=ld
4075if test "$GCC" = yes; then
4076  # Check if gcc -print-prog-name=ld gives a path.
4077  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4078echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4079  case $host in
4080  *-*-mingw*)
4081    # gcc leaves a trailing carriage return which upsets mingw
4082    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4083  *)
4084    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4085  esac
4086  case $ac_prog in
4087    # Accept absolute paths.
4088    [\\/]* | ?:[\\/]*)
4089      re_direlt='/[^/][^/]*/\.\./'
4090      # Canonicalize the pathname of ld
4091      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4092      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4093	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4094      done
4095      test -z "$LD" && LD="$ac_prog"
4096      ;;
4097  "")
4098    # If it fails, then pretend we aren't using GCC.
4099    ac_prog=ld
4100    ;;
4101  *)
4102    # If it is relative, then search for the first ld in PATH.
4103    with_gnu_ld=unknown
4104    ;;
4105  esac
4106elif test "$with_gnu_ld" = yes; then
4107  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4108echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4109else
4110  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4111echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4112fi
4113if test "${lt_cv_path_LD+set}" = set; then
4114  echo $ECHO_N "(cached) $ECHO_C" >&6
4115else
4116  if test -z "$LD"; then
4117  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4118  for ac_dir in $PATH; do
4119    IFS="$lt_save_ifs"
4120    test -z "$ac_dir" && ac_dir=.
4121    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4122      lt_cv_path_LD="$ac_dir/$ac_prog"
4123      # Check to see if the program is GNU ld.  I'd rather use --version,
4124      # but apparently some variants of GNU ld only accept -v.
4125      # Break only if it was the GNU/non-GNU ld that we prefer.
4126      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4127      *GNU* | *'with BFD'*)
4128	test "$with_gnu_ld" != no && break
4129	;;
4130      *)
4131	test "$with_gnu_ld" != yes && break
4132	;;
4133      esac
4134    fi
4135  done
4136  IFS="$lt_save_ifs"
4137else
4138  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4139fi
4140fi
4141
4142LD="$lt_cv_path_LD"
4143if test -n "$LD"; then
4144  { echo "$as_me:$LINENO: result: $LD" >&5
4145echo "${ECHO_T}$LD" >&6; }
4146else
4147  { echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6; }
4149fi
4150test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4151echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4152   { (exit 1); exit 1; }; }
4153{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4154echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4155if test "${lt_cv_prog_gnu_ld+set}" = set; then
4156  echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4159case `$LD -v 2>&1 </dev/null` in
4160*GNU* | *'with BFD'*)
4161  lt_cv_prog_gnu_ld=yes
4162  ;;
4163*)
4164  lt_cv_prog_gnu_ld=no
4165  ;;
4166esac
4167fi
4168{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4169echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4170with_gnu_ld=$lt_cv_prog_gnu_ld
4171
4172
4173{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4174echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4175if test "${lt_cv_ld_reload_flag+set}" = set; then
4176  echo $ECHO_N "(cached) $ECHO_C" >&6
4177else
4178  lt_cv_ld_reload_flag='-r'
4179fi
4180{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4181echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4182reload_flag=$lt_cv_ld_reload_flag
4183case $reload_flag in
4184"" | " "*) ;;
4185*) reload_flag=" $reload_flag" ;;
4186esac
4187reload_cmds='$LD$reload_flag -o $output$reload_objs'
4188case $host_os in
4189  darwin*)
4190    if test "$GCC" = yes; then
4191      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4192    else
4193      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4194    fi
4195    ;;
4196esac
4197
4198{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4199echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4200if test "${lt_cv_path_NM+set}" = set; then
4201  echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203  if test -n "$NM"; then
4204  # Let the user override the test.
4205  lt_cv_path_NM="$NM"
4206else
4207  lt_nm_to_check="${ac_tool_prefix}nm"
4208  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4209    lt_nm_to_check="$lt_nm_to_check nm"
4210  fi
4211  for lt_tmp_nm in $lt_nm_to_check; do
4212    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4213    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4214      IFS="$lt_save_ifs"
4215      test -z "$ac_dir" && ac_dir=.
4216      tmp_nm="$ac_dir/$lt_tmp_nm"
4217      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4218	# Check to see if the nm accepts a BSD-compat flag.
4219	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4220	#   nm: unknown option "B" ignored
4221	# Tru64's nm complains that /dev/null is an invalid object file
4222	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4223	*/dev/null* | *'Invalid file or object type'*)
4224	  lt_cv_path_NM="$tmp_nm -B"
4225	  break
4226	  ;;
4227	*)
4228	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4229	  */dev/null*)
4230	    lt_cv_path_NM="$tmp_nm -p"
4231	    break
4232	    ;;
4233	  *)
4234	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4235	    continue # so that we can try to find one that supports BSD flags
4236	    ;;
4237	  esac
4238	  ;;
4239	esac
4240      fi
4241    done
4242    IFS="$lt_save_ifs"
4243  done
4244  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4245fi
4246fi
4247{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4248echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4249NM="$lt_cv_path_NM"
4250
4251{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4252echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4253LN_S=$as_ln_s
4254if test "$LN_S" = "ln -s"; then
4255  { echo "$as_me:$LINENO: result: yes" >&5
4256echo "${ECHO_T}yes" >&6; }
4257else
4258  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4259echo "${ECHO_T}no, using $LN_S" >&6; }
4260fi
4261
4262{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4263echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4264if test "${lt_cv_deplibs_check_method+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  lt_cv_file_magic_cmd='$MAGIC_CMD'
4268lt_cv_file_magic_test_file=
4269lt_cv_deplibs_check_method='unknown'
4270# Need to set the preceding variable on all platforms that support
4271# interlibrary dependencies.
4272# 'none' -- dependencies not supported.
4273# `unknown' -- same as none, but documents that we really don't know.
4274# 'pass_all' -- all dependencies passed with no checks.
4275# 'test_compile' -- check by making test program.
4276# 'file_magic [[regex]]' -- check by looking for files in library path
4277# which responds to the $file_magic_cmd with a given extended regex.
4278# If you have `file' or equivalent on your system and you're not sure
4279# whether `pass_all' will *always* work, you probably want this one.
4280
4281case $host_os in
4282aix4* | aix5*)
4283  lt_cv_deplibs_check_method=pass_all
4284  ;;
4285
4286beos*)
4287  lt_cv_deplibs_check_method=pass_all
4288  ;;
4289
4290bsdi[45]*)
4291  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4292  lt_cv_file_magic_cmd='/usr/bin/file -L'
4293  lt_cv_file_magic_test_file=/shlib/libc.so
4294  ;;
4295
4296cygwin*)
4297  # func_win32_libid is a shell function defined in ltmain.sh
4298  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4299  lt_cv_file_magic_cmd='func_win32_libid'
4300  ;;
4301
4302mingw* | pw32*)
4303  # Base MSYS/MinGW do not provide the 'file' command needed by
4304  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4305  # unless we find 'file', for example because we are cross-compiling.
4306  if ( file / ) >/dev/null 2>&1; then
4307    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4308    lt_cv_file_magic_cmd='func_win32_libid'
4309  else
4310    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4311    lt_cv_file_magic_cmd='$OBJDUMP -f'
4312  fi
4313  ;;
4314
4315darwin* | rhapsody*)
4316  lt_cv_deplibs_check_method=pass_all
4317  ;;
4318
4319freebsd* | dragonfly*)
4320  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4321    case $host_cpu in
4322    i*86 )
4323      # Not sure whether the presence of OpenBSD here was a mistake.
4324      # Let's accept both of them until this is cleared up.
4325      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4326      lt_cv_file_magic_cmd=/usr/bin/file
4327      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4328      ;;
4329    esac
4330  else
4331    lt_cv_deplibs_check_method=pass_all
4332  fi
4333  ;;
4334
4335gnu*)
4336  lt_cv_deplibs_check_method=pass_all
4337  ;;
4338
4339hpux10.20* | hpux11*)
4340  lt_cv_file_magic_cmd=/usr/bin/file
4341  case $host_cpu in
4342  ia64*)
4343    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4344    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4345    ;;
4346  hppa*64*)
4347    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]'
4348    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4349    ;;
4350  *)
4351    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4352    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4353    ;;
4354  esac
4355  ;;
4356
4357interix[3-9]*)
4358  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4359  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4360  ;;
4361
4362irix5* | irix6* | nonstopux*)
4363  case $LD in
4364  *-32|*"-32 ") libmagic=32-bit;;
4365  *-n32|*"-n32 ") libmagic=N32;;
4366  *-64|*"-64 ") libmagic=64-bit;;
4367  *) libmagic=never-match;;
4368  esac
4369  lt_cv_deplibs_check_method=pass_all
4370  ;;
4371
4372# This must be Linux ELF.
4373linux* | k*bsd*-gnu)
4374  lt_cv_deplibs_check_method=pass_all
4375  ;;
4376
4377netbsd*)
4378  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4379    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4380  else
4381    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4382  fi
4383  ;;
4384
4385newos6*)
4386  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4387  lt_cv_file_magic_cmd=/usr/bin/file
4388  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4389  ;;
4390
4391nto-qnx*)
4392  lt_cv_deplibs_check_method=unknown
4393  ;;
4394
4395openbsd*)
4396  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4397    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4398  else
4399    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4400  fi
4401  ;;
4402
4403osf3* | osf4* | osf5*)
4404  lt_cv_deplibs_check_method=pass_all
4405  ;;
4406
4407rdos*)
4408  lt_cv_deplibs_check_method=pass_all
4409  ;;
4410
4411solaris*)
4412  lt_cv_deplibs_check_method=pass_all
4413  ;;
4414
4415sysv4 | sysv4.3*)
4416  case $host_vendor in
4417  motorola)
4418    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]'
4419    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4420    ;;
4421  ncr)
4422    lt_cv_deplibs_check_method=pass_all
4423    ;;
4424  sequent)
4425    lt_cv_file_magic_cmd='/bin/file'
4426    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4427    ;;
4428  sni)
4429    lt_cv_file_magic_cmd='/bin/file'
4430    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4431    lt_cv_file_magic_test_file=/lib/libc.so
4432    ;;
4433  siemens)
4434    lt_cv_deplibs_check_method=pass_all
4435    ;;
4436  pc)
4437    lt_cv_deplibs_check_method=pass_all
4438    ;;
4439  esac
4440  ;;
4441
4442sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4443  lt_cv_deplibs_check_method=pass_all
4444  ;;
4445esac
4446
4447fi
4448{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4449echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4450file_magic_cmd=$lt_cv_file_magic_cmd
4451deplibs_check_method=$lt_cv_deplibs_check_method
4452test -z "$deplibs_check_method" && deplibs_check_method=unknown
4453
4454
4455
4456
4457# If no C compiler was specified, use CC.
4458LTCC=${LTCC-"$CC"}
4459
4460# If no C compiler flags were specified, use CFLAGS.
4461LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4462
4463# Allow CC to be a program name with arguments.
4464compiler=$CC
4465
4466
4467# Check whether --enable-libtool-lock was given.
4468if test "${enable_libtool_lock+set}" = set; then
4469  enableval=$enable_libtool_lock;
4470fi
4471
4472test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4473
4474# Some flags need to be propagated to the compiler or linker for good
4475# libtool support.
4476case $host in
4477ia64-*-hpux*)
4478  # Find out which ABI we are using.
4479  echo 'int i;' > conftest.$ac_ext
4480  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481  (eval $ac_compile) 2>&5
4482  ac_status=$?
4483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484  (exit $ac_status); }; then
4485    case `/usr/bin/file conftest.$ac_objext` in
4486    *ELF-32*)
4487      HPUX_IA64_MODE="32"
4488      ;;
4489    *ELF-64*)
4490      HPUX_IA64_MODE="64"
4491      ;;
4492    esac
4493  fi
4494  rm -rf conftest*
4495  ;;
4496*-*-irix6*)
4497  # Find out which ABI we are using.
4498  echo '#line 4498 "configure"' > conftest.$ac_ext
4499  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500  (eval $ac_compile) 2>&5
4501  ac_status=$?
4502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503  (exit $ac_status); }; then
4504   if test "$lt_cv_prog_gnu_ld" = yes; then
4505    case `/usr/bin/file conftest.$ac_objext` in
4506    *32-bit*)
4507      LD="${LD-ld} -melf32bsmip"
4508      ;;
4509    *N32*)
4510      LD="${LD-ld} -melf32bmipn32"
4511      ;;
4512    *64-bit*)
4513      LD="${LD-ld} -melf64bmip"
4514      ;;
4515    esac
4516   else
4517    case `/usr/bin/file conftest.$ac_objext` in
4518    *32-bit*)
4519      LD="${LD-ld} -32"
4520      ;;
4521    *N32*)
4522      LD="${LD-ld} -n32"
4523      ;;
4524    *64-bit*)
4525      LD="${LD-ld} -64"
4526      ;;
4527    esac
4528   fi
4529  fi
4530  rm -rf conftest*
4531  ;;
4532
4533x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4534s390*-*linux*|sparc*-*linux*)
4535  # Find out which ABI we are using.
4536  echo 'int i;' > conftest.$ac_ext
4537  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4538  (eval $ac_compile) 2>&5
4539  ac_status=$?
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); }; then
4542    case `/usr/bin/file conftest.o` in
4543    *32-bit*)
4544      case $host in
4545        x86_64-*kfreebsd*-gnu)
4546          LD="${LD-ld} -m elf_i386_fbsd"
4547          ;;
4548        x86_64-*linux*)
4549          LD="${LD-ld} -m elf_i386"
4550          ;;
4551        ppc64-*linux*|powerpc64-*linux*)
4552          LD="${LD-ld} -m elf32ppclinux"
4553          ;;
4554        s390x-*linux*)
4555          LD="${LD-ld} -m elf_s390"
4556          ;;
4557        sparc64-*linux*)
4558          LD="${LD-ld} -m elf32_sparc"
4559          ;;
4560      esac
4561      ;;
4562    *64-bit*)
4563      libsuff=64
4564      case $host in
4565        x86_64-*kfreebsd*-gnu)
4566          LD="${LD-ld} -m elf_x86_64_fbsd"
4567          ;;
4568        x86_64-*linux*)
4569          LD="${LD-ld} -m elf_x86_64"
4570          ;;
4571        ppc*-*linux*|powerpc*-*linux*)
4572          LD="${LD-ld} -m elf64ppc"
4573          ;;
4574        s390*-*linux*)
4575          LD="${LD-ld} -m elf64_s390"
4576          ;;
4577        sparc*-*linux*)
4578          LD="${LD-ld} -m elf64_sparc"
4579          ;;
4580      esac
4581      ;;
4582    esac
4583  fi
4584  rm -rf conftest*
4585  ;;
4586
4587*-*-sco3.2v5*)
4588  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4589  SAVE_CFLAGS="$CFLAGS"
4590  CFLAGS="$CFLAGS -belf"
4591  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4592echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4593if test "${lt_cv_cc_needs_belf+set}" = set; then
4594  echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596  ac_ext=c
4597ac_cpp='$CPP $CPPFLAGS'
4598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601
4602     cat >conftest.$ac_ext <<_ACEOF
4603/* confdefs.h.  */
4604_ACEOF
4605cat confdefs.h >>conftest.$ac_ext
4606cat >>conftest.$ac_ext <<_ACEOF
4607/* end confdefs.h.  */
4608
4609int
4610main ()
4611{
4612
4613  ;
4614  return 0;
4615}
4616_ACEOF
4617rm -f conftest.$ac_objext conftest$ac_exeext
4618if { (ac_try="$ac_link"
4619case "(($ac_try" in
4620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621  *) ac_try_echo=$ac_try;;
4622esac
4623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624  (eval "$ac_link") 2>conftest.er1
4625  ac_status=$?
4626  grep -v '^ *+' conftest.er1 >conftest.err
4627  rm -f conftest.er1
4628  cat conftest.err >&5
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); } && {
4631	 test -z "$ac_c_werror_flag" ||
4632	 test ! -s conftest.err
4633       } && test -s conftest$ac_exeext &&
4634       $as_test_x conftest$ac_exeext; then
4635  lt_cv_cc_needs_belf=yes
4636else
4637  echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
4640	lt_cv_cc_needs_belf=no
4641fi
4642
4643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4644      conftest$ac_exeext conftest.$ac_ext
4645     ac_ext=c
4646ac_cpp='$CPP $CPPFLAGS'
4647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650
4651fi
4652{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4653echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4654  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4655    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4656    CFLAGS="$SAVE_CFLAGS"
4657  fi
4658  ;;
4659sparc*-*solaris*)
4660  # Find out which ABI we are using.
4661  echo 'int i;' > conftest.$ac_ext
4662  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663  (eval $ac_compile) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); }; then
4667    case `/usr/bin/file conftest.o` in
4668    *64-bit*)
4669      case $lt_cv_prog_gnu_ld in
4670      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4671      *)    LD="${LD-ld} -64" ;;
4672      esac
4673      ;;
4674    esac
4675  fi
4676  rm -rf conftest*
4677  ;;
4678
4679
4680esac
4681
4682need_locks="$enable_libtool_lock"
4683
4684
4685ac_ext=c
4686ac_cpp='$CPP $CPPFLAGS'
4687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689ac_compiler_gnu=$ac_cv_c_compiler_gnu
4690{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4691echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4692# On Suns, sometimes $CPP names a directory.
4693if test -n "$CPP" && test -d "$CPP"; then
4694  CPP=
4695fi
4696if test -z "$CPP"; then
4697  if test "${ac_cv_prog_CPP+set}" = set; then
4698  echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700      # Double quotes because CPP needs to be expanded
4701    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4702    do
4703      ac_preproc_ok=false
4704for ac_c_preproc_warn_flag in '' yes
4705do
4706  # Use a header file that comes with gcc, so configuring glibc
4707  # with a fresh cross-compiler works.
4708  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709  # <limits.h> exists even on freestanding compilers.
4710  # On the NeXT, cc -E runs the code through the compiler's parser,
4711  # not just through cpp. "Syntax error" is here to catch this case.
4712  cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h.  */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h.  */
4718#ifdef __STDC__
4719# include <limits.h>
4720#else
4721# include <assert.h>
4722#endif
4723		     Syntax error
4724_ACEOF
4725if { (ac_try="$ac_cpp conftest.$ac_ext"
4726case "(($ac_try" in
4727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728  *) ac_try_echo=$ac_try;;
4729esac
4730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4732  ac_status=$?
4733  grep -v '^ *+' conftest.er1 >conftest.err
4734  rm -f conftest.er1
4735  cat conftest.err >&5
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); } >/dev/null && {
4738	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4739	 test ! -s conftest.err
4740       }; then
4741  :
4742else
4743  echo "$as_me: failed program was:" >&5
4744sed 's/^/| /' conftest.$ac_ext >&5
4745
4746  # Broken: fails on valid input.
4747continue
4748fi
4749
4750rm -f conftest.err conftest.$ac_ext
4751
4752  # OK, works on sane cases.  Now check whether nonexistent headers
4753  # can be detected and how.
4754  cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h.  */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h.  */
4760#include <ac_nonexistent.h>
4761_ACEOF
4762if { (ac_try="$ac_cpp conftest.$ac_ext"
4763case "(($ac_try" in
4764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765  *) ac_try_echo=$ac_try;;
4766esac
4767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4769  ac_status=$?
4770  grep -v '^ *+' conftest.er1 >conftest.err
4771  rm -f conftest.er1
4772  cat conftest.err >&5
4773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774  (exit $ac_status); } >/dev/null && {
4775	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4776	 test ! -s conftest.err
4777       }; then
4778  # Broken: success on invalid input.
4779continue
4780else
4781  echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
4783
4784  # Passes both tests.
4785ac_preproc_ok=:
4786break
4787fi
4788
4789rm -f conftest.err conftest.$ac_ext
4790
4791done
4792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4793rm -f conftest.err conftest.$ac_ext
4794if $ac_preproc_ok; then
4795  break
4796fi
4797
4798    done
4799    ac_cv_prog_CPP=$CPP
4800
4801fi
4802  CPP=$ac_cv_prog_CPP
4803else
4804  ac_cv_prog_CPP=$CPP
4805fi
4806{ echo "$as_me:$LINENO: result: $CPP" >&5
4807echo "${ECHO_T}$CPP" >&6; }
4808ac_preproc_ok=false
4809for ac_c_preproc_warn_flag in '' yes
4810do
4811  # Use a header file that comes with gcc, so configuring glibc
4812  # with a fresh cross-compiler works.
4813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814  # <limits.h> exists even on freestanding compilers.
4815  # On the NeXT, cc -E runs the code through the compiler's parser,
4816  # not just through cpp. "Syntax error" is here to catch this case.
4817  cat >conftest.$ac_ext <<_ACEOF
4818/* confdefs.h.  */
4819_ACEOF
4820cat confdefs.h >>conftest.$ac_ext
4821cat >>conftest.$ac_ext <<_ACEOF
4822/* end confdefs.h.  */
4823#ifdef __STDC__
4824# include <limits.h>
4825#else
4826# include <assert.h>
4827#endif
4828		     Syntax error
4829_ACEOF
4830if { (ac_try="$ac_cpp conftest.$ac_ext"
4831case "(($ac_try" in
4832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833  *) ac_try_echo=$ac_try;;
4834esac
4835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4837  ac_status=$?
4838  grep -v '^ *+' conftest.er1 >conftest.err
4839  rm -f conftest.er1
4840  cat conftest.err >&5
4841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842  (exit $ac_status); } >/dev/null && {
4843	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4844	 test ! -s conftest.err
4845       }; then
4846  :
4847else
4848  echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851  # Broken: fails on valid input.
4852continue
4853fi
4854
4855rm -f conftest.err conftest.$ac_ext
4856
4857  # OK, works on sane cases.  Now check whether nonexistent headers
4858  # can be detected and how.
4859  cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h.  */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h.  */
4865#include <ac_nonexistent.h>
4866_ACEOF
4867if { (ac_try="$ac_cpp conftest.$ac_ext"
4868case "(($ac_try" in
4869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870  *) ac_try_echo=$ac_try;;
4871esac
4872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4874  ac_status=$?
4875  grep -v '^ *+' conftest.er1 >conftest.err
4876  rm -f conftest.er1
4877  cat conftest.err >&5
4878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879  (exit $ac_status); } >/dev/null && {
4880	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4881	 test ! -s conftest.err
4882       }; then
4883  # Broken: success on invalid input.
4884continue
4885else
4886  echo "$as_me: failed program was:" >&5
4887sed 's/^/| /' conftest.$ac_ext >&5
4888
4889  # Passes both tests.
4890ac_preproc_ok=:
4891break
4892fi
4893
4894rm -f conftest.err conftest.$ac_ext
4895
4896done
4897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4898rm -f conftest.err conftest.$ac_ext
4899if $ac_preproc_ok; then
4900  :
4901else
4902  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4903See \`config.log' for more details." >&5
4904echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4905See \`config.log' for more details." >&2;}
4906   { (exit 1); exit 1; }; }
4907fi
4908
4909ac_ext=c
4910ac_cpp='$CPP $CPPFLAGS'
4911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914
4915
4916{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4917echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4918if test "${ac_cv_header_stdc+set}" = set; then
4919  echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921  cat >conftest.$ac_ext <<_ACEOF
4922/* confdefs.h.  */
4923_ACEOF
4924cat confdefs.h >>conftest.$ac_ext
4925cat >>conftest.$ac_ext <<_ACEOF
4926/* end confdefs.h.  */
4927#include <stdlib.h>
4928#include <stdarg.h>
4929#include <string.h>
4930#include <float.h>
4931
4932int
4933main ()
4934{
4935
4936  ;
4937  return 0;
4938}
4939_ACEOF
4940rm -f conftest.$ac_objext
4941if { (ac_try="$ac_compile"
4942case "(($ac_try" in
4943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944  *) ac_try_echo=$ac_try;;
4945esac
4946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947  (eval "$ac_compile") 2>conftest.er1
4948  ac_status=$?
4949  grep -v '^ *+' conftest.er1 >conftest.err
4950  rm -f conftest.er1
4951  cat conftest.err >&5
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); } && {
4954	 test -z "$ac_c_werror_flag" ||
4955	 test ! -s conftest.err
4956       } && test -s conftest.$ac_objext; then
4957  ac_cv_header_stdc=yes
4958else
4959  echo "$as_me: failed program was:" >&5
4960sed 's/^/| /' conftest.$ac_ext >&5
4961
4962	ac_cv_header_stdc=no
4963fi
4964
4965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966
4967if test $ac_cv_header_stdc = yes; then
4968  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4969  cat >conftest.$ac_ext <<_ACEOF
4970/* confdefs.h.  */
4971_ACEOF
4972cat confdefs.h >>conftest.$ac_ext
4973cat >>conftest.$ac_ext <<_ACEOF
4974/* end confdefs.h.  */
4975#include <string.h>
4976
4977_ACEOF
4978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4979  $EGREP "memchr" >/dev/null 2>&1; then
4980  :
4981else
4982  ac_cv_header_stdc=no
4983fi
4984rm -f conftest*
4985
4986fi
4987
4988if test $ac_cv_header_stdc = yes; then
4989  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4990  cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h.  */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h.  */
4996#include <stdlib.h>
4997
4998_ACEOF
4999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5000  $EGREP "free" >/dev/null 2>&1; then
5001  :
5002else
5003  ac_cv_header_stdc=no
5004fi
5005rm -f conftest*
5006
5007fi
5008
5009if test $ac_cv_header_stdc = yes; then
5010  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5011  if test "$cross_compiling" = yes; then
5012  :
5013else
5014  cat >conftest.$ac_ext <<_ACEOF
5015/* confdefs.h.  */
5016_ACEOF
5017cat confdefs.h >>conftest.$ac_ext
5018cat >>conftest.$ac_ext <<_ACEOF
5019/* end confdefs.h.  */
5020#include <ctype.h>
5021#include <stdlib.h>
5022#if ((' ' & 0x0FF) == 0x020)
5023# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5024# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5025#else
5026# define ISLOWER(c) \
5027		   (('a' <= (c) && (c) <= 'i') \
5028		     || ('j' <= (c) && (c) <= 'r') \
5029		     || ('s' <= (c) && (c) <= 'z'))
5030# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5031#endif
5032
5033#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5034int
5035main ()
5036{
5037  int i;
5038  for (i = 0; i < 256; i++)
5039    if (XOR (islower (i), ISLOWER (i))
5040	|| toupper (i) != TOUPPER (i))
5041      return 2;
5042  return 0;
5043}
5044_ACEOF
5045rm -f conftest$ac_exeext
5046if { (ac_try="$ac_link"
5047case "(($ac_try" in
5048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049  *) ac_try_echo=$ac_try;;
5050esac
5051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052  (eval "$ac_link") 2>&5
5053  ac_status=$?
5054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5056  { (case "(($ac_try" in
5057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058  *) ac_try_echo=$ac_try;;
5059esac
5060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061  (eval "$ac_try") 2>&5
5062  ac_status=$?
5063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064  (exit $ac_status); }; }; then
5065  :
5066else
5067  echo "$as_me: program exited with status $ac_status" >&5
5068echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
5071( exit $ac_status )
5072ac_cv_header_stdc=no
5073fi
5074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5075fi
5076
5077
5078fi
5079fi
5080{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5081echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5082if test $ac_cv_header_stdc = yes; then
5083
5084cat >>confdefs.h <<\_ACEOF
5085#define STDC_HEADERS 1
5086_ACEOF
5087
5088fi
5089
5090# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5101		  inttypes.h stdint.h unistd.h
5102do
5103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5104{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5107  echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109  cat >conftest.$ac_ext <<_ACEOF
5110/* confdefs.h.  */
5111_ACEOF
5112cat confdefs.h >>conftest.$ac_ext
5113cat >>conftest.$ac_ext <<_ACEOF
5114/* end confdefs.h.  */
5115$ac_includes_default
5116
5117#include <$ac_header>
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (ac_try="$ac_compile"
5121case "(($ac_try" in
5122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123  *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126  (eval "$ac_compile") 2>conftest.er1
5127  ac_status=$?
5128  grep -v '^ *+' conftest.er1 >conftest.err
5129  rm -f conftest.er1
5130  cat conftest.err >&5
5131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132  (exit $ac_status); } && {
5133	 test -z "$ac_c_werror_flag" ||
5134	 test ! -s conftest.err
5135       } && test -s conftest.$ac_objext; then
5136  eval "$as_ac_Header=yes"
5137else
5138  echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141	eval "$as_ac_Header=no"
5142fi
5143
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145fi
5146ac_res=`eval echo '${'$as_ac_Header'}'`
5147	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5148echo "${ECHO_T}$ac_res" >&6; }
5149if test `eval echo '${'$as_ac_Header'}'` = yes; then
5150  cat >>confdefs.h <<_ACEOF
5151#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5152_ACEOF
5153
5154fi
5155
5156done
5157
5158
5159
5160for ac_header in dlfcn.h
5161do
5162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5164  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5167  echo $ECHO_N "(cached) $ECHO_C" >&6
5168fi
5169ac_res=`eval echo '${'$as_ac_Header'}'`
5170	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5171echo "${ECHO_T}$ac_res" >&6; }
5172else
5173  # Is the header compilable?
5174{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5176cat >conftest.$ac_ext <<_ACEOF
5177/* confdefs.h.  */
5178_ACEOF
5179cat confdefs.h >>conftest.$ac_ext
5180cat >>conftest.$ac_ext <<_ACEOF
5181/* end confdefs.h.  */
5182$ac_includes_default
5183#include <$ac_header>
5184_ACEOF
5185rm -f conftest.$ac_objext
5186if { (ac_try="$ac_compile"
5187case "(($ac_try" in
5188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189  *) ac_try_echo=$ac_try;;
5190esac
5191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192  (eval "$ac_compile") 2>conftest.er1
5193  ac_status=$?
5194  grep -v '^ *+' conftest.er1 >conftest.err
5195  rm -f conftest.er1
5196  cat conftest.err >&5
5197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198  (exit $ac_status); } && {
5199	 test -z "$ac_c_werror_flag" ||
5200	 test ! -s conftest.err
5201       } && test -s conftest.$ac_objext; then
5202  ac_header_compiler=yes
5203else
5204  echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207	ac_header_compiler=no
5208fi
5209
5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5212echo "${ECHO_T}$ac_header_compiler" >&6; }
5213
5214# Is the header present?
5215{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5216echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5217cat >conftest.$ac_ext <<_ACEOF
5218/* confdefs.h.  */
5219_ACEOF
5220cat confdefs.h >>conftest.$ac_ext
5221cat >>conftest.$ac_ext <<_ACEOF
5222/* end confdefs.h.  */
5223#include <$ac_header>
5224_ACEOF
5225if { (ac_try="$ac_cpp conftest.$ac_ext"
5226case "(($ac_try" in
5227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228  *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5232  ac_status=$?
5233  grep -v '^ *+' conftest.er1 >conftest.err
5234  rm -f conftest.er1
5235  cat conftest.err >&5
5236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237  (exit $ac_status); } >/dev/null && {
5238	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5239	 test ! -s conftest.err
5240       }; then
5241  ac_header_preproc=yes
5242else
5243  echo "$as_me: failed program was:" >&5
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
5246  ac_header_preproc=no
5247fi
5248
5249rm -f conftest.err conftest.$ac_ext
5250{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5251echo "${ECHO_T}$ac_header_preproc" >&6; }
5252
5253# So?  What about this header?
5254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5255  yes:no: )
5256    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5258    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5259echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5260    ac_header_preproc=yes
5261    ;;
5262  no:yes:* )
5263    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5265    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5266echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5267    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5268echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5269    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5270echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5271    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5273    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5274echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5275    ( cat <<\_ASBOX
5276## ---------------------------------------------------------------------- ##
5277## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5278## ---------------------------------------------------------------------- ##
5279_ASBOX
5280     ) | sed "s/^/$as_me: WARNING:     /" >&2
5281    ;;
5282esac
5283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5286  echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288  eval "$as_ac_Header=\$ac_header_preproc"
5289fi
5290ac_res=`eval echo '${'$as_ac_Header'}'`
5291	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5292echo "${ECHO_T}$ac_res" >&6; }
5293
5294fi
5295if test `eval echo '${'$as_ac_Header'}'` = yes; then
5296  cat >>confdefs.h <<_ACEOF
5297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5298_ACEOF
5299
5300fi
5301
5302done
5303
5304ac_ext=cpp
5305ac_cpp='$CXXCPP $CPPFLAGS'
5306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5309if test -z "$CXX"; then
5310  if test -n "$CCC"; then
5311    CXX=$CCC
5312  else
5313    if test -n "$ac_tool_prefix"; then
5314  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5315  do
5316    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5317set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5320if test "${ac_cv_prog_CXX+set}" = set; then
5321  echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323  if test -n "$CXX"; then
5324  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5325else
5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329  IFS=$as_save_IFS
5330  test -z "$as_dir" && as_dir=.
5331  for ac_exec_ext in '' $ac_executable_extensions; do
5332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335    break 2
5336  fi
5337done
5338done
5339IFS=$as_save_IFS
5340
5341fi
5342fi
5343CXX=$ac_cv_prog_CXX
5344if test -n "$CXX"; then
5345  { echo "$as_me:$LINENO: result: $CXX" >&5
5346echo "${ECHO_T}$CXX" >&6; }
5347else
5348  { echo "$as_me:$LINENO: result: no" >&5
5349echo "${ECHO_T}no" >&6; }
5350fi
5351
5352
5353    test -n "$CXX" && break
5354  done
5355fi
5356if test -z "$CXX"; then
5357  ac_ct_CXX=$CXX
5358  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5359do
5360  # Extract the first word of "$ac_prog", so it can be a program name with args.
5361set dummy $ac_prog; ac_word=$2
5362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5364if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5365  echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367  if test -n "$ac_ct_CXX"; then
5368  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5369else
5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in $PATH
5372do
5373  IFS=$as_save_IFS
5374  test -z "$as_dir" && as_dir=.
5375  for ac_exec_ext in '' $ac_executable_extensions; do
5376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377    ac_cv_prog_ac_ct_CXX="$ac_prog"
5378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379    break 2
5380  fi
5381done
5382done
5383IFS=$as_save_IFS
5384
5385fi
5386fi
5387ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5388if test -n "$ac_ct_CXX"; then
5389  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5390echo "${ECHO_T}$ac_ct_CXX" >&6; }
5391else
5392  { echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6; }
5394fi
5395
5396
5397  test -n "$ac_ct_CXX" && break
5398done
5399
5400  if test "x$ac_ct_CXX" = x; then
5401    CXX="g++"
5402  else
5403    case $cross_compiling:$ac_tool_warned in
5404yes:)
5405{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5406whose name does not start with the host triplet.  If you think this
5407configuration is useful to you, please write to autoconf@gnu.org." >&5
5408echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5409whose name does not start with the host triplet.  If you think this
5410configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5411ac_tool_warned=yes ;;
5412esac
5413    CXX=$ac_ct_CXX
5414  fi
5415fi
5416
5417  fi
5418fi
5419# Provide some information about the compiler.
5420echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5421ac_compiler=`set X $ac_compile; echo $2`
5422{ (ac_try="$ac_compiler --version >&5"
5423case "(($ac_try" in
5424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425  *) ac_try_echo=$ac_try;;
5426esac
5427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428  (eval "$ac_compiler --version >&5") 2>&5
5429  ac_status=$?
5430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431  (exit $ac_status); }
5432{ (ac_try="$ac_compiler -v >&5"
5433case "(($ac_try" in
5434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435  *) ac_try_echo=$ac_try;;
5436esac
5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438  (eval "$ac_compiler -v >&5") 2>&5
5439  ac_status=$?
5440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441  (exit $ac_status); }
5442{ (ac_try="$ac_compiler -V >&5"
5443case "(($ac_try" in
5444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445  *) ac_try_echo=$ac_try;;
5446esac
5447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448  (eval "$ac_compiler -V >&5") 2>&5
5449  ac_status=$?
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); }
5452
5453{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5454echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5455if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5456  echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458  cat >conftest.$ac_ext <<_ACEOF
5459/* confdefs.h.  */
5460_ACEOF
5461cat confdefs.h >>conftest.$ac_ext
5462cat >>conftest.$ac_ext <<_ACEOF
5463/* end confdefs.h.  */
5464
5465int
5466main ()
5467{
5468#ifndef __GNUC__
5469       choke me
5470#endif
5471
5472  ;
5473  return 0;
5474}
5475_ACEOF
5476rm -f conftest.$ac_objext
5477if { (ac_try="$ac_compile"
5478case "(($ac_try" in
5479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480  *) ac_try_echo=$ac_try;;
5481esac
5482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483  (eval "$ac_compile") 2>conftest.er1
5484  ac_status=$?
5485  grep -v '^ *+' conftest.er1 >conftest.err
5486  rm -f conftest.er1
5487  cat conftest.err >&5
5488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489  (exit $ac_status); } && {
5490	 test -z "$ac_cxx_werror_flag" ||
5491	 test ! -s conftest.err
5492       } && test -s conftest.$ac_objext; then
5493  ac_compiler_gnu=yes
5494else
5495  echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498	ac_compiler_gnu=no
5499fi
5500
5501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5503
5504fi
5505{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5506echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5507GXX=`test $ac_compiler_gnu = yes && echo yes`
5508ac_test_CXXFLAGS=${CXXFLAGS+set}
5509ac_save_CXXFLAGS=$CXXFLAGS
5510{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5511echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5512if test "${ac_cv_prog_cxx_g+set}" = set; then
5513  echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5516   ac_cxx_werror_flag=yes
5517   ac_cv_prog_cxx_g=no
5518   CXXFLAGS="-g"
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
5530  ;
5531  return 0;
5532}
5533_ACEOF
5534rm -f conftest.$ac_objext
5535if { (ac_try="$ac_compile"
5536case "(($ac_try" in
5537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538  *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541  (eval "$ac_compile") 2>conftest.er1
5542  ac_status=$?
5543  grep -v '^ *+' conftest.er1 >conftest.err
5544  rm -f conftest.er1
5545  cat conftest.err >&5
5546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547  (exit $ac_status); } && {
5548	 test -z "$ac_cxx_werror_flag" ||
5549	 test ! -s conftest.err
5550       } && test -s conftest.$ac_objext; then
5551  ac_cv_prog_cxx_g=yes
5552else
5553  echo "$as_me: failed program was:" >&5
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
5556	CXXFLAGS=""
5557      cat >conftest.$ac_ext <<_ACEOF
5558/* confdefs.h.  */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
5562/* end confdefs.h.  */
5563
5564int
5565main ()
5566{
5567
5568  ;
5569  return 0;
5570}
5571_ACEOF
5572rm -f conftest.$ac_objext
5573if { (ac_try="$ac_compile"
5574case "(($ac_try" in
5575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576  *) ac_try_echo=$ac_try;;
5577esac
5578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579  (eval "$ac_compile") 2>conftest.er1
5580  ac_status=$?
5581  grep -v '^ *+' conftest.er1 >conftest.err
5582  rm -f conftest.er1
5583  cat conftest.err >&5
5584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585  (exit $ac_status); } && {
5586	 test -z "$ac_cxx_werror_flag" ||
5587	 test ! -s conftest.err
5588       } && test -s conftest.$ac_objext; then
5589  :
5590else
5591  echo "$as_me: failed program was:" >&5
5592sed 's/^/| /' conftest.$ac_ext >&5
5593
5594	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5595	 CXXFLAGS="-g"
5596	 cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h.  */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h.  */
5602
5603int
5604main ()
5605{
5606
5607  ;
5608  return 0;
5609}
5610_ACEOF
5611rm -f conftest.$ac_objext
5612if { (ac_try="$ac_compile"
5613case "(($ac_try" in
5614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615  *) ac_try_echo=$ac_try;;
5616esac
5617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618  (eval "$ac_compile") 2>conftest.er1
5619  ac_status=$?
5620  grep -v '^ *+' conftest.er1 >conftest.err
5621  rm -f conftest.er1
5622  cat conftest.err >&5
5623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624  (exit $ac_status); } && {
5625	 test -z "$ac_cxx_werror_flag" ||
5626	 test ! -s conftest.err
5627       } && test -s conftest.$ac_objext; then
5628  ac_cv_prog_cxx_g=yes
5629else
5630  echo "$as_me: failed program was:" >&5
5631sed 's/^/| /' conftest.$ac_ext >&5
5632
5633
5634fi
5635
5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637fi
5638
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640fi
5641
5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5644fi
5645{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5646echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5647if test "$ac_test_CXXFLAGS" = set; then
5648  CXXFLAGS=$ac_save_CXXFLAGS
5649elif test $ac_cv_prog_cxx_g = yes; then
5650  if test "$GXX" = yes; then
5651    CXXFLAGS="-g -O2"
5652  else
5653    CXXFLAGS="-g"
5654  fi
5655else
5656  if test "$GXX" = yes; then
5657    CXXFLAGS="-O2"
5658  else
5659    CXXFLAGS=
5660  fi
5661fi
5662ac_ext=cpp
5663ac_cpp='$CXXCPP $CPPFLAGS'
5664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5667
5668depcc="$CXX"  am_compiler_list=
5669
5670{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5671echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5672if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5673  echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5676  # We make a subdir and do the tests there.  Otherwise we can end up
5677  # making bogus files that we don't know about and never remove.  For
5678  # instance it was reported that on HP-UX the gcc test will end up
5679  # making a dummy file named `D' -- because `-MD' means `put the output
5680  # in D'.
5681  mkdir conftest.dir
5682  # Copy depcomp to subdir because otherwise we won't find it if we're
5683  # using a relative directory.
5684  cp "$am_depcomp" conftest.dir
5685  cd conftest.dir
5686  # We will build objects and dependencies in a subdirectory because
5687  # it helps to detect inapplicable dependency modes.  For instance
5688  # both Tru64's cc and ICC support -MD to output dependencies as a
5689  # side effect of compilation, but ICC will put the dependencies in
5690  # the current directory while Tru64 will put them in the object
5691  # directory.
5692  mkdir sub
5693
5694  am_cv_CXX_dependencies_compiler_type=none
5695  if test "$am_compiler_list" = ""; then
5696     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5697  fi
5698  for depmode in $am_compiler_list; do
5699    # Setup a source with many dependencies, because some compilers
5700    # like to wrap large dependency lists on column 80 (with \), and
5701    # we should not choose a depcomp mode which is confused by this.
5702    #
5703    # We need to recreate these files for each test, as the compiler may
5704    # overwrite some of them when testing with obscure command lines.
5705    # This happens at least with the AIX C compiler.
5706    : > sub/conftest.c
5707    for i in 1 2 3 4 5 6; do
5708      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5709      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5710      # Solaris 8's {/usr,}/bin/sh.
5711      touch sub/conftst$i.h
5712    done
5713    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5714
5715    case $depmode in
5716    nosideeffect)
5717      # after this tag, mechanisms are not by side-effect, so they'll
5718      # only be used when explicitly requested
5719      if test "x$enable_dependency_tracking" = xyes; then
5720	continue
5721      else
5722	break
5723      fi
5724      ;;
5725    none) break ;;
5726    esac
5727    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5728    # mode.  It turns out that the SunPro C++ compiler does not properly
5729    # handle `-M -o', and we need to detect this.
5730    if depmode=$depmode \
5731       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5732       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5733       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5734         >/dev/null 2>conftest.err &&
5735       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5736       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5737       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5738       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5739      # icc doesn't choke on unknown options, it will just issue warnings
5740      # or remarks (even with -Werror).  So we grep stderr for any message
5741      # that says an option was ignored or not supported.
5742      # When given -MP, icc 7.0 and 7.1 complain thusly:
5743      #   icc: Command line warning: ignoring option '-M'; no argument required
5744      # The diagnosis changed in icc 8.0:
5745      #   icc: Command line remark: option '-MP' not supported
5746      if (grep 'ignoring option' conftest.err ||
5747          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5748        am_cv_CXX_dependencies_compiler_type=$depmode
5749        break
5750      fi
5751    fi
5752  done
5753
5754  cd ..
5755  rm -rf conftest.dir
5756else
5757  am_cv_CXX_dependencies_compiler_type=none
5758fi
5759
5760fi
5761{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5762echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5763CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5764
5765 if
5766  test "x$enable_dependency_tracking" != xno \
5767  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5768  am__fastdepCXX_TRUE=
5769  am__fastdepCXX_FALSE='#'
5770else
5771  am__fastdepCXX_TRUE='#'
5772  am__fastdepCXX_FALSE=
5773fi
5774
5775
5776
5777
5778if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5779    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5780    (test "X$CXX" != "Xg++"))) ; then
5781  ac_ext=cpp
5782ac_cpp='$CXXCPP $CPPFLAGS'
5783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5786{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5787echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5788if test -z "$CXXCPP"; then
5789  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5790  echo $ECHO_N "(cached) $ECHO_C" >&6
5791else
5792      # Double quotes because CXXCPP needs to be expanded
5793    for CXXCPP in "$CXX -E" "/lib/cpp"
5794    do
5795      ac_preproc_ok=false
5796for ac_cxx_preproc_warn_flag in '' yes
5797do
5798  # Use a header file that comes with gcc, so configuring glibc
5799  # with a fresh cross-compiler works.
5800  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5801  # <limits.h> exists even on freestanding compilers.
5802  # On the NeXT, cc -E runs the code through the compiler's parser,
5803  # not just through cpp. "Syntax error" is here to catch this case.
5804  cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h.  */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h.  */
5810#ifdef __STDC__
5811# include <limits.h>
5812#else
5813# include <assert.h>
5814#endif
5815		     Syntax error
5816_ACEOF
5817if { (ac_try="$ac_cpp conftest.$ac_ext"
5818case "(($ac_try" in
5819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820  *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5824  ac_status=$?
5825  grep -v '^ *+' conftest.er1 >conftest.err
5826  rm -f conftest.er1
5827  cat conftest.err >&5
5828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829  (exit $ac_status); } >/dev/null && {
5830	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5831	 test ! -s conftest.err
5832       }; then
5833  :
5834else
5835  echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
5838  # Broken: fails on valid input.
5839continue
5840fi
5841
5842rm -f conftest.err conftest.$ac_ext
5843
5844  # OK, works on sane cases.  Now check whether nonexistent headers
5845  # can be detected and how.
5846  cat >conftest.$ac_ext <<_ACEOF
5847/* confdefs.h.  */
5848_ACEOF
5849cat confdefs.h >>conftest.$ac_ext
5850cat >>conftest.$ac_ext <<_ACEOF
5851/* end confdefs.h.  */
5852#include <ac_nonexistent.h>
5853_ACEOF
5854if { (ac_try="$ac_cpp conftest.$ac_ext"
5855case "(($ac_try" in
5856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857  *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5861  ac_status=$?
5862  grep -v '^ *+' conftest.er1 >conftest.err
5863  rm -f conftest.er1
5864  cat conftest.err >&5
5865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866  (exit $ac_status); } >/dev/null && {
5867	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5868	 test ! -s conftest.err
5869       }; then
5870  # Broken: success on invalid input.
5871continue
5872else
5873  echo "$as_me: failed program was:" >&5
5874sed 's/^/| /' conftest.$ac_ext >&5
5875
5876  # Passes both tests.
5877ac_preproc_ok=:
5878break
5879fi
5880
5881rm -f conftest.err conftest.$ac_ext
5882
5883done
5884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5885rm -f conftest.err conftest.$ac_ext
5886if $ac_preproc_ok; then
5887  break
5888fi
5889
5890    done
5891    ac_cv_prog_CXXCPP=$CXXCPP
5892
5893fi
5894  CXXCPP=$ac_cv_prog_CXXCPP
5895else
5896  ac_cv_prog_CXXCPP=$CXXCPP
5897fi
5898{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5899echo "${ECHO_T}$CXXCPP" >&6; }
5900ac_preproc_ok=false
5901for ac_cxx_preproc_warn_flag in '' yes
5902do
5903  # Use a header file that comes with gcc, so configuring glibc
5904  # with a fresh cross-compiler works.
5905  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5906  # <limits.h> exists even on freestanding compilers.
5907  # On the NeXT, cc -E runs the code through the compiler's parser,
5908  # not just through cpp. "Syntax error" is here to catch this case.
5909  cat >conftest.$ac_ext <<_ACEOF
5910/* confdefs.h.  */
5911_ACEOF
5912cat confdefs.h >>conftest.$ac_ext
5913cat >>conftest.$ac_ext <<_ACEOF
5914/* end confdefs.h.  */
5915#ifdef __STDC__
5916# include <limits.h>
5917#else
5918# include <assert.h>
5919#endif
5920		     Syntax error
5921_ACEOF
5922if { (ac_try="$ac_cpp conftest.$ac_ext"
5923case "(($ac_try" in
5924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925  *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5929  ac_status=$?
5930  grep -v '^ *+' conftest.er1 >conftest.err
5931  rm -f conftest.er1
5932  cat conftest.err >&5
5933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934  (exit $ac_status); } >/dev/null && {
5935	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5936	 test ! -s conftest.err
5937       }; then
5938  :
5939else
5940  echo "$as_me: failed program was:" >&5
5941sed 's/^/| /' conftest.$ac_ext >&5
5942
5943  # Broken: fails on valid input.
5944continue
5945fi
5946
5947rm -f conftest.err conftest.$ac_ext
5948
5949  # OK, works on sane cases.  Now check whether nonexistent headers
5950  # can be detected and how.
5951  cat >conftest.$ac_ext <<_ACEOF
5952/* confdefs.h.  */
5953_ACEOF
5954cat confdefs.h >>conftest.$ac_ext
5955cat >>conftest.$ac_ext <<_ACEOF
5956/* end confdefs.h.  */
5957#include <ac_nonexistent.h>
5958_ACEOF
5959if { (ac_try="$ac_cpp conftest.$ac_ext"
5960case "(($ac_try" in
5961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962  *) ac_try_echo=$ac_try;;
5963esac
5964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5966  ac_status=$?
5967  grep -v '^ *+' conftest.er1 >conftest.err
5968  rm -f conftest.er1
5969  cat conftest.err >&5
5970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971  (exit $ac_status); } >/dev/null && {
5972	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5973	 test ! -s conftest.err
5974       }; then
5975  # Broken: success on invalid input.
5976continue
5977else
5978  echo "$as_me: failed program was:" >&5
5979sed 's/^/| /' conftest.$ac_ext >&5
5980
5981  # Passes both tests.
5982ac_preproc_ok=:
5983break
5984fi
5985
5986rm -f conftest.err conftest.$ac_ext
5987
5988done
5989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5990rm -f conftest.err conftest.$ac_ext
5991if $ac_preproc_ok; then
5992  :
5993else
5994  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5995See \`config.log' for more details." >&5
5996echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5997See \`config.log' for more details." >&2;}
5998   { (exit 1); exit 1; }; }
5999fi
6000
6001ac_ext=cpp
6002ac_cpp='$CXXCPP $CPPFLAGS'
6003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6006
6007fi
6008
6009
6010ac_ext=f
6011ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6012ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6014if test -n "$ac_tool_prefix"; then
6015  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6016  do
6017    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6018set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6021if test "${ac_cv_prog_F77+set}" = set; then
6022  echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024  if test -n "$F77"; then
6025  ac_cv_prog_F77="$F77" # Let the user override the test.
6026else
6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030  IFS=$as_save_IFS
6031  test -z "$as_dir" && as_dir=.
6032  for ac_exec_ext in '' $ac_executable_extensions; do
6033  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036    break 2
6037  fi
6038done
6039done
6040IFS=$as_save_IFS
6041
6042fi
6043fi
6044F77=$ac_cv_prog_F77
6045if test -n "$F77"; then
6046  { echo "$as_me:$LINENO: result: $F77" >&5
6047echo "${ECHO_T}$F77" >&6; }
6048else
6049  { echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6; }
6051fi
6052
6053
6054    test -n "$F77" && break
6055  done
6056fi
6057if test -z "$F77"; then
6058  ac_ct_F77=$F77
6059  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6060do
6061  # Extract the first word of "$ac_prog", so it can be a program name with args.
6062set dummy $ac_prog; ac_word=$2
6063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6065if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6066  echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
6068  if test -n "$ac_ct_F77"; then
6069  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074  IFS=$as_save_IFS
6075  test -z "$as_dir" && as_dir=.
6076  for ac_exec_ext in '' $ac_executable_extensions; do
6077  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078    ac_cv_prog_ac_ct_F77="$ac_prog"
6079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080    break 2
6081  fi
6082done
6083done
6084IFS=$as_save_IFS
6085
6086fi
6087fi
6088ac_ct_F77=$ac_cv_prog_ac_ct_F77
6089if test -n "$ac_ct_F77"; then
6090  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6091echo "${ECHO_T}$ac_ct_F77" >&6; }
6092else
6093  { echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6; }
6095fi
6096
6097
6098  test -n "$ac_ct_F77" && break
6099done
6100
6101  if test "x$ac_ct_F77" = x; then
6102    F77=""
6103  else
6104    case $cross_compiling:$ac_tool_warned in
6105yes:)
6106{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6107whose name does not start with the host triplet.  If you think this
6108configuration is useful to you, please write to autoconf@gnu.org." >&5
6109echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6110whose name does not start with the host triplet.  If you think this
6111configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6112ac_tool_warned=yes ;;
6113esac
6114    F77=$ac_ct_F77
6115  fi
6116fi
6117
6118
6119# Provide some information about the compiler.
6120echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6121ac_compiler=`set X $ac_compile; echo $2`
6122{ (ac_try="$ac_compiler --version >&5"
6123case "(($ac_try" in
6124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125  *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128  (eval "$ac_compiler --version >&5") 2>&5
6129  ac_status=$?
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); }
6132{ (ac_try="$ac_compiler -v >&5"
6133case "(($ac_try" in
6134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135  *) ac_try_echo=$ac_try;;
6136esac
6137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138  (eval "$ac_compiler -v >&5") 2>&5
6139  ac_status=$?
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); }
6142{ (ac_try="$ac_compiler -V >&5"
6143case "(($ac_try" in
6144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145  *) ac_try_echo=$ac_try;;
6146esac
6147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148  (eval "$ac_compiler -V >&5") 2>&5
6149  ac_status=$?
6150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151  (exit $ac_status); }
6152rm -f a.out
6153
6154# If we don't use `.F' as extension, the preprocessor is not run on the
6155# input file.  (Note that this only needs to work for GNU compilers.)
6156ac_save_ext=$ac_ext
6157ac_ext=F
6158{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6159echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6160if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6161  echo $ECHO_N "(cached) $ECHO_C" >&6
6162else
6163  cat >conftest.$ac_ext <<_ACEOF
6164      program main
6165#ifndef __GNUC__
6166       choke me
6167#endif
6168
6169      end
6170_ACEOF
6171rm -f conftest.$ac_objext
6172if { (ac_try="$ac_compile"
6173case "(($ac_try" in
6174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175  *) ac_try_echo=$ac_try;;
6176esac
6177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178  (eval "$ac_compile") 2>conftest.er1
6179  ac_status=$?
6180  grep -v '^ *+' conftest.er1 >conftest.err
6181  rm -f conftest.er1
6182  cat conftest.err >&5
6183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184  (exit $ac_status); } && {
6185	 test -z "$ac_f77_werror_flag" ||
6186	 test ! -s conftest.err
6187       } && test -s conftest.$ac_objext; then
6188  ac_compiler_gnu=yes
6189else
6190  echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
6192
6193	ac_compiler_gnu=no
6194fi
6195
6196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6198
6199fi
6200{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6201echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6202ac_ext=$ac_save_ext
6203ac_test_FFLAGS=${FFLAGS+set}
6204ac_save_FFLAGS=$FFLAGS
6205FFLAGS=
6206{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6207echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6208if test "${ac_cv_prog_f77_g+set}" = set; then
6209  echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211  FFLAGS=-g
6212cat >conftest.$ac_ext <<_ACEOF
6213      program main
6214
6215      end
6216_ACEOF
6217rm -f conftest.$ac_objext
6218if { (ac_try="$ac_compile"
6219case "(($ac_try" in
6220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221  *) ac_try_echo=$ac_try;;
6222esac
6223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224  (eval "$ac_compile") 2>conftest.er1
6225  ac_status=$?
6226  grep -v '^ *+' conftest.er1 >conftest.err
6227  rm -f conftest.er1
6228  cat conftest.err >&5
6229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230  (exit $ac_status); } && {
6231	 test -z "$ac_f77_werror_flag" ||
6232	 test ! -s conftest.err
6233       } && test -s conftest.$ac_objext; then
6234  ac_cv_prog_f77_g=yes
6235else
6236  echo "$as_me: failed program was:" >&5
6237sed 's/^/| /' conftest.$ac_ext >&5
6238
6239	ac_cv_prog_f77_g=no
6240fi
6241
6242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243
6244fi
6245{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6246echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6247if test "$ac_test_FFLAGS" = set; then
6248  FFLAGS=$ac_save_FFLAGS
6249elif test $ac_cv_prog_f77_g = yes; then
6250  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6251    FFLAGS="-g -O2"
6252  else
6253    FFLAGS="-g"
6254  fi
6255else
6256  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6257    FFLAGS="-O2"
6258  else
6259    FFLAGS=
6260  fi
6261fi
6262
6263G77=`test $ac_compiler_gnu = yes && echo yes`
6264ac_ext=c
6265ac_cpp='$CPP $CPPFLAGS'
6266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268ac_compiler_gnu=$ac_cv_c_compiler_gnu
6269
6270
6271
6272# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6273
6274# find the maximum length of command line arguments
6275{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6276echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6277if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6278  echo $ECHO_N "(cached) $ECHO_C" >&6
6279else
6280    i=0
6281  teststring="ABCD"
6282
6283  case $build_os in
6284  msdosdjgpp*)
6285    # On DJGPP, this test can blow up pretty badly due to problems in libc
6286    # (any single argument exceeding 2000 bytes causes a buffer overrun
6287    # during glob expansion).  Even if it were fixed, the result of this
6288    # check would be larger than it should be.
6289    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6290    ;;
6291
6292  gnu*)
6293    # Under GNU Hurd, this test is not required because there is
6294    # no limit to the length of command line arguments.
6295    # Libtool will interpret -1 as no limit whatsoever
6296    lt_cv_sys_max_cmd_len=-1;
6297    ;;
6298
6299  cygwin* | mingw*)
6300    # On Win9x/ME, this test blows up -- it succeeds, but takes
6301    # about 5 minutes as the teststring grows exponentially.
6302    # Worse, since 9x/ME are not pre-emptively multitasking,
6303    # you end up with a "frozen" computer, even though with patience
6304    # the test eventually succeeds (with a max line length of 256k).
6305    # Instead, let's just punt: use the minimum linelength reported by
6306    # all of the supported platforms: 8192 (on NT/2K/XP).
6307    lt_cv_sys_max_cmd_len=8192;
6308    ;;
6309
6310  amigaos*)
6311    # On AmigaOS with pdksh, this test takes hours, literally.
6312    # So we just punt and use a minimum line length of 8192.
6313    lt_cv_sys_max_cmd_len=8192;
6314    ;;
6315
6316  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6317    # This has been around since 386BSD, at least.  Likely further.
6318    if test -x /sbin/sysctl; then
6319      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6320    elif test -x /usr/sbin/sysctl; then
6321      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6322    else
6323      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6324    fi
6325    # And add a safety zone
6326    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6327    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6328    ;;
6329
6330  interix*)
6331    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6332    lt_cv_sys_max_cmd_len=196608
6333    ;;
6334
6335  osf*)
6336    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6337    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6338    # nice to cause kernel panics so lets avoid the loop below.
6339    # First set a reasonable default.
6340    lt_cv_sys_max_cmd_len=16384
6341    #
6342    if test -x /sbin/sysconfig; then
6343      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6344        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6345      esac
6346    fi
6347    ;;
6348  sco3.2v5*)
6349    lt_cv_sys_max_cmd_len=102400
6350    ;;
6351  sysv5* | sco5v6* | sysv4.2uw2*)
6352    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6353    if test -n "$kargmax"; then
6354      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6355    else
6356      lt_cv_sys_max_cmd_len=32768
6357    fi
6358    ;;
6359  *)
6360    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6361    if test -n "$lt_cv_sys_max_cmd_len"; then
6362      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6363      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6364    else
6365      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6366      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6367	       = "XX$teststring") >/dev/null 2>&1 &&
6368	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6369	      lt_cv_sys_max_cmd_len=$new_result &&
6370	      test $i != 17 # 1/2 MB should be enough
6371      do
6372        i=`expr $i + 1`
6373        teststring=$teststring$teststring
6374      done
6375      teststring=
6376      # Add a significant safety factor because C++ compilers can tack on massive
6377      # amounts of additional arguments before passing them to the linker.
6378      # It appears as though 1/2 is a usable value.
6379      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6380    fi
6381    ;;
6382  esac
6383
6384fi
6385
6386if test -n $lt_cv_sys_max_cmd_len ; then
6387  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6388echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6389else
6390  { echo "$as_me:$LINENO: result: none" >&5
6391echo "${ECHO_T}none" >&6; }
6392fi
6393
6394
6395
6396
6397
6398# Check for command to grab the raw symbol name followed by C symbol from nm.
6399{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6400echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6401if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6402  echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404
6405# These are sane defaults that work on at least a few old systems.
6406# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6407
6408# Character class describing NM global symbol codes.
6409symcode='[BCDEGRST]'
6410
6411# Regexp to match symbols that can be accessed directly from C.
6412sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6413
6414# Transform an extracted symbol line into a proper C declaration
6415lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6416
6417# Transform an extracted symbol line into symbol name and symbol address
6418lt_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'"
6419
6420# Define system-specific variables.
6421case $host_os in
6422aix*)
6423  symcode='[BCDT]'
6424  ;;
6425cygwin* | mingw* | pw32*)
6426  symcode='[ABCDGISTW]'
6427  ;;
6428hpux*) # Its linker distinguishes data from code symbols
6429  if test "$host_cpu" = ia64; then
6430    symcode='[ABCDEGRST]'
6431  fi
6432  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6433  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'"
6434  ;;
6435linux* | k*bsd*-gnu)
6436  if test "$host_cpu" = ia64; then
6437    symcode='[ABCDGIRSTW]'
6438    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6439    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'"
6440  fi
6441  ;;
6442irix* | nonstopux*)
6443  symcode='[BCDEGRST]'
6444  ;;
6445osf*)
6446  symcode='[BCDEGQRST]'
6447  ;;
6448solaris*)
6449  symcode='[BDRT]'
6450  ;;
6451sco3.2v5*)
6452  symcode='[DT]'
6453  ;;
6454sysv4.2uw2*)
6455  symcode='[DT]'
6456  ;;
6457sysv5* | sco5v6* | unixware* | OpenUNIX*)
6458  symcode='[ABDT]'
6459  ;;
6460sysv4)
6461  symcode='[DFNSTU]'
6462  ;;
6463esac
6464
6465# Handle CRLF in mingw tool chain
6466opt_cr=
6467case $build_os in
6468mingw*)
6469  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6470  ;;
6471esac
6472
6473# If we're using GNU nm, then use its standard symbol codes.
6474case `$NM -V 2>&1` in
6475*GNU* | *'with BFD'*)
6476  symcode='[ABCDGIRSTW]' ;;
6477esac
6478
6479# Try without a prefix undercore, then with it.
6480for ac_symprfx in "" "_"; do
6481
6482  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6483  symxfrm="\\1 $ac_symprfx\\2 \\2"
6484
6485  # Write the raw and C identifiers.
6486  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6487
6488  # Check to see that the pipe works correctly.
6489  pipe_works=no
6490
6491  rm -f conftest*
6492  cat > conftest.$ac_ext <<EOF
6493#ifdef __cplusplus
6494extern "C" {
6495#endif
6496char nm_test_var;
6497void nm_test_func(){}
6498#ifdef __cplusplus
6499}
6500#endif
6501int main(){nm_test_var='a';nm_test_func();return(0);}
6502EOF
6503
6504  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505  (eval $ac_compile) 2>&5
6506  ac_status=$?
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); }; then
6509    # Now try to grab the symbols.
6510    nlist=conftest.nm
6511    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6512  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6513  ac_status=$?
6514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515  (exit $ac_status); } && test -s "$nlist"; then
6516      # Try sorting and uniquifying the output.
6517      if sort "$nlist" | uniq > "$nlist"T; then
6518	mv -f "$nlist"T "$nlist"
6519      else
6520	rm -f "$nlist"T
6521      fi
6522
6523      # Make sure that we snagged all the symbols we need.
6524      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6525	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6526	  cat <<EOF > conftest.$ac_ext
6527#ifdef __cplusplus
6528extern "C" {
6529#endif
6530
6531EOF
6532	  # Now generate the symbol file.
6533	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6534
6535	  cat <<EOF >> conftest.$ac_ext
6536#if defined (__STDC__) && __STDC__
6537# define lt_ptr_t void *
6538#else
6539# define lt_ptr_t char *
6540# define const
6541#endif
6542
6543/* The mapping between symbol names and symbols. */
6544const struct {
6545  const char *name;
6546  lt_ptr_t address;
6547}
6548lt_preloaded_symbols[] =
6549{
6550EOF
6551	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6552	  cat <<\EOF >> conftest.$ac_ext
6553  {0, (lt_ptr_t) 0}
6554};
6555
6556#ifdef __cplusplus
6557}
6558#endif
6559EOF
6560	  # Now try linking the two files.
6561	  mv conftest.$ac_objext conftstm.$ac_objext
6562	  lt_save_LIBS="$LIBS"
6563	  lt_save_CFLAGS="$CFLAGS"
6564	  LIBS="conftstm.$ac_objext"
6565	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6566	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6567  (eval $ac_link) 2>&5
6568  ac_status=$?
6569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6571	    pipe_works=yes
6572	  fi
6573	  LIBS="$lt_save_LIBS"
6574	  CFLAGS="$lt_save_CFLAGS"
6575	else
6576	  echo "cannot find nm_test_func in $nlist" >&5
6577	fi
6578      else
6579	echo "cannot find nm_test_var in $nlist" >&5
6580      fi
6581    else
6582      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6583    fi
6584  else
6585    echo "$progname: failed program was:" >&5
6586    cat conftest.$ac_ext >&5
6587  fi
6588  rm -f conftest* conftst*
6589
6590  # Do not use the global_symbol_pipe unless it works.
6591  if test "$pipe_works" = yes; then
6592    break
6593  else
6594    lt_cv_sys_global_symbol_pipe=
6595  fi
6596done
6597
6598fi
6599
6600if test -z "$lt_cv_sys_global_symbol_pipe"; then
6601  lt_cv_sys_global_symbol_to_cdecl=
6602fi
6603if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6604  { echo "$as_me:$LINENO: result: failed" >&5
6605echo "${ECHO_T}failed" >&6; }
6606else
6607  { echo "$as_me:$LINENO: result: ok" >&5
6608echo "${ECHO_T}ok" >&6; }
6609fi
6610
6611{ echo "$as_me:$LINENO: checking for objdir" >&5
6612echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6613if test "${lt_cv_objdir+set}" = set; then
6614  echo $ECHO_N "(cached) $ECHO_C" >&6
6615else
6616  rm -f .libs 2>/dev/null
6617mkdir .libs 2>/dev/null
6618if test -d .libs; then
6619  lt_cv_objdir=.libs
6620else
6621  # MS-DOS does not allow filenames that begin with a dot.
6622  lt_cv_objdir=_libs
6623fi
6624rmdir .libs 2>/dev/null
6625fi
6626{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6627echo "${ECHO_T}$lt_cv_objdir" >&6; }
6628objdir=$lt_cv_objdir
6629
6630
6631
6632
6633
6634case $host_os in
6635aix3*)
6636  # AIX sometimes has problems with the GCC collect2 program.  For some
6637  # reason, if we set the COLLECT_NAMES environment variable, the problems
6638  # vanish in a puff of smoke.
6639  if test "X${COLLECT_NAMES+set}" != Xset; then
6640    COLLECT_NAMES=
6641    export COLLECT_NAMES
6642  fi
6643  ;;
6644esac
6645
6646# Sed substitution that helps us do robust quoting.  It backslashifies
6647# metacharacters that are still active within double-quoted strings.
6648Xsed='sed -e 1s/^X//'
6649sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6650
6651# Same as above, but do not quote variable references.
6652double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6653
6654# Sed substitution to delay expansion of an escaped shell variable in a
6655# double_quote_subst'ed string.
6656delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6657
6658# Sed substitution to avoid accidental globbing in evaled expressions
6659no_glob_subst='s/\*/\\\*/g'
6660
6661# Constants:
6662rm="rm -f"
6663
6664# Global variables:
6665default_ofile=libtool
6666can_build_shared=yes
6667
6668# All known linkers require a `.a' archive for static linking (except MSVC,
6669# which needs '.lib').
6670libext=a
6671ltmain="$ac_aux_dir/ltmain.sh"
6672ofile="$default_ofile"
6673with_gnu_ld="$lt_cv_prog_gnu_ld"
6674
6675if test -n "$ac_tool_prefix"; then
6676  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6677set dummy ${ac_tool_prefix}ar; ac_word=$2
6678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680if test "${ac_cv_prog_AR+set}" = set; then
6681  echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683  if test -n "$AR"; then
6684  ac_cv_prog_AR="$AR" # Let the user override the test.
6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689  IFS=$as_save_IFS
6690  test -z "$as_dir" && as_dir=.
6691  for ac_exec_ext in '' $ac_executable_extensions; do
6692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693    ac_cv_prog_AR="${ac_tool_prefix}ar"
6694    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695    break 2
6696  fi
6697done
6698done
6699IFS=$as_save_IFS
6700
6701fi
6702fi
6703AR=$ac_cv_prog_AR
6704if test -n "$AR"; then
6705  { echo "$as_me:$LINENO: result: $AR" >&5
6706echo "${ECHO_T}$AR" >&6; }
6707else
6708  { echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6; }
6710fi
6711
6712
6713fi
6714if test -z "$ac_cv_prog_AR"; then
6715  ac_ct_AR=$AR
6716  # Extract the first word of "ar", so it can be a program name with args.
6717set dummy ar; ac_word=$2
6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6721  echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723  if test -n "$ac_ct_AR"; then
6724  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731  for ac_exec_ext in '' $ac_executable_extensions; do
6732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733    ac_cv_prog_ac_ct_AR="ar"
6734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743ac_ct_AR=$ac_cv_prog_ac_ct_AR
6744if test -n "$ac_ct_AR"; then
6745  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6746echo "${ECHO_T}$ac_ct_AR" >&6; }
6747else
6748  { echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6; }
6750fi
6751
6752  if test "x$ac_ct_AR" = x; then
6753    AR="false"
6754  else
6755    case $cross_compiling:$ac_tool_warned in
6756yes:)
6757{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6758whose name does not start with the host triplet.  If you think this
6759configuration is useful to you, please write to autoconf@gnu.org." >&5
6760echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6761whose name does not start with the host triplet.  If you think this
6762configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6763ac_tool_warned=yes ;;
6764esac
6765    AR=$ac_ct_AR
6766  fi
6767else
6768  AR="$ac_cv_prog_AR"
6769fi
6770
6771if test -n "$ac_tool_prefix"; then
6772  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6773set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776if test "${ac_cv_prog_RANLIB+set}" = set; then
6777  echo $ECHO_N "(cached) $ECHO_C" >&6
6778else
6779  if test -n "$RANLIB"; then
6780  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785  IFS=$as_save_IFS
6786  test -z "$as_dir" && as_dir=.
6787  for ac_exec_ext in '' $ac_executable_extensions; do
6788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791    break 2
6792  fi
6793done
6794done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799RANLIB=$ac_cv_prog_RANLIB
6800if test -n "$RANLIB"; then
6801  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6802echo "${ECHO_T}$RANLIB" >&6; }
6803else
6804  { echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6; }
6806fi
6807
6808
6809fi
6810if test -z "$ac_cv_prog_RANLIB"; then
6811  ac_ct_RANLIB=$RANLIB
6812  # Extract the first word of "ranlib", so it can be a program name with args.
6813set dummy ranlib; ac_word=$2
6814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6817  echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819  if test -n "$ac_ct_RANLIB"; then
6820  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825  IFS=$as_save_IFS
6826  test -z "$as_dir" && as_dir=.
6827  for ac_exec_ext in '' $ac_executable_extensions; do
6828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829    ac_cv_prog_ac_ct_RANLIB="ranlib"
6830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831    break 2
6832  fi
6833done
6834done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6840if test -n "$ac_ct_RANLIB"; then
6841  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6842echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6843else
6844  { echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6; }
6846fi
6847
6848  if test "x$ac_ct_RANLIB" = x; then
6849    RANLIB=":"
6850  else
6851    case $cross_compiling:$ac_tool_warned in
6852yes:)
6853{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6854whose name does not start with the host triplet.  If you think this
6855configuration is useful to you, please write to autoconf@gnu.org." >&5
6856echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6857whose name does not start with the host triplet.  If you think this
6858configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6859ac_tool_warned=yes ;;
6860esac
6861    RANLIB=$ac_ct_RANLIB
6862  fi
6863else
6864  RANLIB="$ac_cv_prog_RANLIB"
6865fi
6866
6867if test -n "$ac_tool_prefix"; then
6868  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6869set dummy ${ac_tool_prefix}strip; ac_word=$2
6870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872if test "${ac_cv_prog_STRIP+set}" = set; then
6873  echo $ECHO_N "(cached) $ECHO_C" >&6
6874else
6875  if test -n "$STRIP"; then
6876  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6877else
6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881  IFS=$as_save_IFS
6882  test -z "$as_dir" && as_dir=.
6883  for ac_exec_ext in '' $ac_executable_extensions; do
6884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887    break 2
6888  fi
6889done
6890done
6891IFS=$as_save_IFS
6892
6893fi
6894fi
6895STRIP=$ac_cv_prog_STRIP
6896if test -n "$STRIP"; then
6897  { echo "$as_me:$LINENO: result: $STRIP" >&5
6898echo "${ECHO_T}$STRIP" >&6; }
6899else
6900  { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
6902fi
6903
6904
6905fi
6906if test -z "$ac_cv_prog_STRIP"; then
6907  ac_ct_STRIP=$STRIP
6908  # Extract the first word of "strip", so it can be a program name with args.
6909set dummy strip; ac_word=$2
6910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6913  echo $ECHO_N "(cached) $ECHO_C" >&6
6914else
6915  if test -n "$ac_ct_STRIP"; then
6916  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921  IFS=$as_save_IFS
6922  test -z "$as_dir" && as_dir=.
6923  for ac_exec_ext in '' $ac_executable_extensions; do
6924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925    ac_cv_prog_ac_ct_STRIP="strip"
6926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927    break 2
6928  fi
6929done
6930done
6931IFS=$as_save_IFS
6932
6933fi
6934fi
6935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6936if test -n "$ac_ct_STRIP"; then
6937  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6938echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6939else
6940  { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
6942fi
6943
6944  if test "x$ac_ct_STRIP" = x; then
6945    STRIP=":"
6946  else
6947    case $cross_compiling:$ac_tool_warned in
6948yes:)
6949{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6950whose name does not start with the host triplet.  If you think this
6951configuration is useful to you, please write to autoconf@gnu.org." >&5
6952echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6953whose name does not start with the host triplet.  If you think this
6954configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6955ac_tool_warned=yes ;;
6956esac
6957    STRIP=$ac_ct_STRIP
6958  fi
6959else
6960  STRIP="$ac_cv_prog_STRIP"
6961fi
6962
6963
6964old_CC="$CC"
6965old_CFLAGS="$CFLAGS"
6966
6967# Set sane defaults for various variables
6968test -z "$AR" && AR=ar
6969test -z "$AR_FLAGS" && AR_FLAGS=cru
6970test -z "$AS" && AS=as
6971test -z "$CC" && CC=cc
6972test -z "$LTCC" && LTCC=$CC
6973test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6974test -z "$DLLTOOL" && DLLTOOL=dlltool
6975test -z "$LD" && LD=ld
6976test -z "$LN_S" && LN_S="ln -s"
6977test -z "$MAGIC_CMD" && MAGIC_CMD=file
6978test -z "$NM" && NM=nm
6979test -z "$SED" && SED=sed
6980test -z "$OBJDUMP" && OBJDUMP=objdump
6981test -z "$RANLIB" && RANLIB=:
6982test -z "$STRIP" && STRIP=:
6983test -z "$ac_objext" && ac_objext=o
6984
6985# Determine commands to create old-style static archives.
6986old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6987old_postinstall_cmds='chmod 644 $oldlib'
6988old_postuninstall_cmds=
6989
6990if test -n "$RANLIB"; then
6991  case $host_os in
6992  openbsd*)
6993    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6994    ;;
6995  *)
6996    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6997    ;;
6998  esac
6999  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7000fi
7001
7002for cc_temp in $compiler""; do
7003  case $cc_temp in
7004    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7005    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7006    \-*) ;;
7007    *) break;;
7008  esac
7009done
7010cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7011
7012
7013# Only perform the check for file, if the check method requires it
7014case $deplibs_check_method in
7015file_magic*)
7016  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7017    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7018echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7019if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7020  echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022  case $MAGIC_CMD in
7023[\\/*] |  ?:[\\/]*)
7024  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7025  ;;
7026*)
7027  lt_save_MAGIC_CMD="$MAGIC_CMD"
7028  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7029  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7030  for ac_dir in $ac_dummy; do
7031    IFS="$lt_save_ifs"
7032    test -z "$ac_dir" && ac_dir=.
7033    if test -f $ac_dir/${ac_tool_prefix}file; then
7034      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7035      if test -n "$file_magic_test_file"; then
7036	case $deplibs_check_method in
7037	"file_magic "*)
7038	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7039	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7040	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7041	    $EGREP "$file_magic_regex" > /dev/null; then
7042	    :
7043	  else
7044	    cat <<EOF 1>&2
7045
7046*** Warning: the command libtool uses to detect shared libraries,
7047*** $file_magic_cmd, produces output that libtool cannot recognize.
7048*** The result is that libtool may fail to recognize shared libraries
7049*** as such.  This will affect the creation of libtool libraries that
7050*** depend on shared libraries, but programs linked with such libtool
7051*** libraries will work regardless of this problem.  Nevertheless, you
7052*** may want to report the problem to your system manager and/or to
7053*** bug-libtool@gnu.org
7054
7055EOF
7056	  fi ;;
7057	esac
7058      fi
7059      break
7060    fi
7061  done
7062  IFS="$lt_save_ifs"
7063  MAGIC_CMD="$lt_save_MAGIC_CMD"
7064  ;;
7065esac
7066fi
7067
7068MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7069if test -n "$MAGIC_CMD"; then
7070  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7071echo "${ECHO_T}$MAGIC_CMD" >&6; }
7072else
7073  { echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6; }
7075fi
7076
7077if test -z "$lt_cv_path_MAGIC_CMD"; then
7078  if test -n "$ac_tool_prefix"; then
7079    { echo "$as_me:$LINENO: checking for file" >&5
7080echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7081if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7082  echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084  case $MAGIC_CMD in
7085[\\/*] |  ?:[\\/]*)
7086  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7087  ;;
7088*)
7089  lt_save_MAGIC_CMD="$MAGIC_CMD"
7090  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7091  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7092  for ac_dir in $ac_dummy; do
7093    IFS="$lt_save_ifs"
7094    test -z "$ac_dir" && ac_dir=.
7095    if test -f $ac_dir/file; then
7096      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7097      if test -n "$file_magic_test_file"; then
7098	case $deplibs_check_method in
7099	"file_magic "*)
7100	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7101	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7102	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7103	    $EGREP "$file_magic_regex" > /dev/null; then
7104	    :
7105	  else
7106	    cat <<EOF 1>&2
7107
7108*** Warning: the command libtool uses to detect shared libraries,
7109*** $file_magic_cmd, produces output that libtool cannot recognize.
7110*** The result is that libtool may fail to recognize shared libraries
7111*** as such.  This will affect the creation of libtool libraries that
7112*** depend on shared libraries, but programs linked with such libtool
7113*** libraries will work regardless of this problem.  Nevertheless, you
7114*** may want to report the problem to your system manager and/or to
7115*** bug-libtool@gnu.org
7116
7117EOF
7118	  fi ;;
7119	esac
7120      fi
7121      break
7122    fi
7123  done
7124  IFS="$lt_save_ifs"
7125  MAGIC_CMD="$lt_save_MAGIC_CMD"
7126  ;;
7127esac
7128fi
7129
7130MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7131if test -n "$MAGIC_CMD"; then
7132  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7133echo "${ECHO_T}$MAGIC_CMD" >&6; }
7134else
7135  { echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6; }
7137fi
7138
7139  else
7140    MAGIC_CMD=:
7141  fi
7142fi
7143
7144  fi
7145  ;;
7146esac
7147
7148enable_dlopen=no
7149enable_win32_dll=no
7150
7151# Check whether --enable-libtool-lock was given.
7152if test "${enable_libtool_lock+set}" = set; then
7153  enableval=$enable_libtool_lock;
7154fi
7155
7156test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7157
7158
7159# Check whether --with-pic was given.
7160if test "${with_pic+set}" = set; then
7161  withval=$with_pic; pic_mode="$withval"
7162else
7163  pic_mode=default
7164fi
7165
7166test -z "$pic_mode" && pic_mode=default
7167
7168# Use C for the default configuration in the libtool script
7169tagname=
7170lt_save_CC="$CC"
7171ac_ext=c
7172ac_cpp='$CPP $CPPFLAGS'
7173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7175ac_compiler_gnu=$ac_cv_c_compiler_gnu
7176
7177
7178# Source file extension for C test sources.
7179ac_ext=c
7180
7181# Object file extension for compiled C test sources.
7182objext=o
7183objext=$objext
7184
7185# Code to be used in simple compile tests
7186lt_simple_compile_test_code="int some_variable = 0;"
7187
7188# Code to be used in simple link tests
7189lt_simple_link_test_code='int main(){return(0);}'
7190
7191
7192# If no C compiler was specified, use CC.
7193LTCC=${LTCC-"$CC"}
7194
7195# If no C compiler flags were specified, use CFLAGS.
7196LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7197
7198# Allow CC to be a program name with arguments.
7199compiler=$CC
7200
7201
7202# save warnings/boilerplate of simple test code
7203ac_outfile=conftest.$ac_objext
7204echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7205eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7206_lt_compiler_boilerplate=`cat conftest.err`
7207$rm conftest*
7208
7209ac_outfile=conftest.$ac_objext
7210echo "$lt_simple_link_test_code" >conftest.$ac_ext
7211eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7212_lt_linker_boilerplate=`cat conftest.err`
7213$rm conftest*
7214
7215
7216
7217lt_prog_compiler_no_builtin_flag=
7218
7219if test "$GCC" = yes; then
7220  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7221
7222
7223{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7224echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7225if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7226  echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228  lt_cv_prog_compiler_rtti_exceptions=no
7229  ac_outfile=conftest.$ac_objext
7230   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7231   lt_compiler_flag="-fno-rtti -fno-exceptions"
7232   # Insert the option either (1) after the last *FLAGS variable, or
7233   # (2) before a word containing "conftest.", or (3) at the end.
7234   # Note that $ac_compile itself does not contain backslashes and begins
7235   # with a dollar sign (not a hyphen), so the echo should work correctly.
7236   # The option is referenced via a variable to avoid confusing sed.
7237   lt_compile=`echo "$ac_compile" | $SED \
7238   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7239   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7240   -e 's:$: $lt_compiler_flag:'`
7241   (eval echo "\"\$as_me:7241: $lt_compile\"" >&5)
7242   (eval "$lt_compile" 2>conftest.err)
7243   ac_status=$?
7244   cat conftest.err >&5
7245   echo "$as_me:7245: \$? = $ac_status" >&5
7246   if (exit $ac_status) && test -s "$ac_outfile"; then
7247     # The compiler can only warn and ignore the option if not recognized
7248     # So say no if there are warnings other than the usual output.
7249     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7250     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7251     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7252       lt_cv_prog_compiler_rtti_exceptions=yes
7253     fi
7254   fi
7255   $rm conftest*
7256
7257fi
7258{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7259echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7260
7261if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7262    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7263else
7264    :
7265fi
7266
7267fi
7268
7269lt_prog_compiler_wl=
7270lt_prog_compiler_pic=
7271lt_prog_compiler_static=
7272
7273{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7274echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7275
7276  if test "$GCC" = yes; then
7277    lt_prog_compiler_wl='-Wl,'
7278    lt_prog_compiler_static='-static'
7279
7280    case $host_os in
7281      aix*)
7282      # All AIX code is PIC.
7283      if test "$host_cpu" = ia64; then
7284	# AIX 5 now supports IA64 processor
7285	lt_prog_compiler_static='-Bstatic'
7286      fi
7287      ;;
7288
7289    amigaos*)
7290      # FIXME: we need at least 68020 code to build shared libraries, but
7291      # adding the `-m68020' flag to GCC prevents building anything better,
7292      # like `-m68040'.
7293      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7294      ;;
7295
7296    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7297      # PIC is the default for these OSes.
7298      ;;
7299
7300    mingw* | cygwin* | pw32* | os2*)
7301      # This hack is so that the source file can tell whether it is being
7302      # built for inclusion in a dll (and should export symbols for example).
7303      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7304      # (--disable-auto-import) libraries
7305      lt_prog_compiler_pic='-DDLL_EXPORT'
7306      ;;
7307
7308    darwin* | rhapsody*)
7309      # PIC is the default on this platform
7310      # Common symbols not allowed in MH_DYLIB files
7311      lt_prog_compiler_pic='-fno-common'
7312      ;;
7313
7314    interix[3-9]*)
7315      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7316      # Instead, we relocate shared libraries at runtime.
7317      ;;
7318
7319    msdosdjgpp*)
7320      # Just because we use GCC doesn't mean we suddenly get shared libraries
7321      # on systems that don't support them.
7322      lt_prog_compiler_can_build_shared=no
7323      enable_shared=no
7324      ;;
7325
7326    sysv4*MP*)
7327      if test -d /usr/nec; then
7328	lt_prog_compiler_pic=-Kconform_pic
7329      fi
7330      ;;
7331
7332    hpux*)
7333      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7334      # not for PA HP-UX.
7335      case $host_cpu in
7336      hppa*64*|ia64*)
7337	# +Z the default
7338	;;
7339      *)
7340	lt_prog_compiler_pic='-fPIC'
7341	;;
7342      esac
7343      ;;
7344
7345    *)
7346      lt_prog_compiler_pic='-fPIC'
7347      ;;
7348    esac
7349  else
7350    # PORTME Check for flag to pass linker flags through the system compiler.
7351    case $host_os in
7352    aix*)
7353      lt_prog_compiler_wl='-Wl,'
7354      if test "$host_cpu" = ia64; then
7355	# AIX 5 now supports IA64 processor
7356	lt_prog_compiler_static='-Bstatic'
7357      else
7358	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7359      fi
7360      ;;
7361      darwin*)
7362        # PIC is the default on this platform
7363        # Common symbols not allowed in MH_DYLIB files
7364       case $cc_basename in
7365         xlc*)
7366         lt_prog_compiler_pic='-qnocommon'
7367         lt_prog_compiler_wl='-Wl,'
7368         ;;
7369       esac
7370       ;;
7371
7372    mingw* | cygwin* | pw32* | os2*)
7373      # This hack is so that the source file can tell whether it is being
7374      # built for inclusion in a dll (and should export symbols for example).
7375      lt_prog_compiler_pic='-DDLL_EXPORT'
7376      ;;
7377
7378    hpux9* | hpux10* | hpux11*)
7379      lt_prog_compiler_wl='-Wl,'
7380      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7381      # not for PA HP-UX.
7382      case $host_cpu in
7383      hppa*64*|ia64*)
7384	# +Z the default
7385	;;
7386      *)
7387	lt_prog_compiler_pic='+Z'
7388	;;
7389      esac
7390      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7391      lt_prog_compiler_static='${wl}-a ${wl}archive'
7392      ;;
7393
7394    irix5* | irix6* | nonstopux*)
7395      lt_prog_compiler_wl='-Wl,'
7396      # PIC (with -KPIC) is the default.
7397      lt_prog_compiler_static='-non_shared'
7398      ;;
7399
7400    newsos6)
7401      lt_prog_compiler_pic='-KPIC'
7402      lt_prog_compiler_static='-Bstatic'
7403      ;;
7404
7405    linux* | k*bsd*-gnu)
7406      case $cc_basename in
7407      icc* | ecc*)
7408	lt_prog_compiler_wl='-Wl,'
7409	lt_prog_compiler_pic='-KPIC'
7410	lt_prog_compiler_static='-static'
7411        ;;
7412      pgcc* | pgf77* | pgf90* | pgf95*)
7413        # Portland Group compilers (*not* the Pentium gcc compiler,
7414	# which looks to be a dead project)
7415	lt_prog_compiler_wl='-Wl,'
7416	lt_prog_compiler_pic='-fpic'
7417	lt_prog_compiler_static='-Bstatic'
7418        ;;
7419      ccc*)
7420        lt_prog_compiler_wl='-Wl,'
7421        # All Alpha code is PIC.
7422        lt_prog_compiler_static='-non_shared'
7423        ;;
7424      *)
7425        case `$CC -V 2>&1 | sed 5q` in
7426	*Sun\ C*)
7427	  # Sun C 5.9
7428	  lt_prog_compiler_pic='-KPIC'
7429	  lt_prog_compiler_static='-Bstatic'
7430	  lt_prog_compiler_wl='-Wl,'
7431	  ;;
7432	*Sun\ F*)
7433	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7434	  lt_prog_compiler_pic='-KPIC'
7435	  lt_prog_compiler_static='-Bstatic'
7436	  lt_prog_compiler_wl=''
7437	  ;;
7438	esac
7439	;;
7440      esac
7441      ;;
7442
7443    osf3* | osf4* | osf5*)
7444      lt_prog_compiler_wl='-Wl,'
7445      # All OSF/1 code is PIC.
7446      lt_prog_compiler_static='-non_shared'
7447      ;;
7448
7449    rdos*)
7450      lt_prog_compiler_static='-non_shared'
7451      ;;
7452
7453    solaris*)
7454      lt_prog_compiler_pic='-KPIC'
7455      lt_prog_compiler_static='-Bstatic'
7456      case $cc_basename in
7457      f77* | f90* | f95*)
7458	lt_prog_compiler_wl='-Qoption ld ';;
7459      *)
7460	lt_prog_compiler_wl='-Wl,';;
7461      esac
7462      ;;
7463
7464    sunos4*)
7465      lt_prog_compiler_wl='-Qoption ld '
7466      lt_prog_compiler_pic='-PIC'
7467      lt_prog_compiler_static='-Bstatic'
7468      ;;
7469
7470    sysv4 | sysv4.2uw2* | sysv4.3*)
7471      lt_prog_compiler_wl='-Wl,'
7472      lt_prog_compiler_pic='-KPIC'
7473      lt_prog_compiler_static='-Bstatic'
7474      ;;
7475
7476    sysv4*MP*)
7477      if test -d /usr/nec ;then
7478	lt_prog_compiler_pic='-Kconform_pic'
7479	lt_prog_compiler_static='-Bstatic'
7480      fi
7481      ;;
7482
7483    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7484      lt_prog_compiler_wl='-Wl,'
7485      lt_prog_compiler_pic='-KPIC'
7486      lt_prog_compiler_static='-Bstatic'
7487      ;;
7488
7489    unicos*)
7490      lt_prog_compiler_wl='-Wl,'
7491      lt_prog_compiler_can_build_shared=no
7492      ;;
7493
7494    uts4*)
7495      lt_prog_compiler_pic='-pic'
7496      lt_prog_compiler_static='-Bstatic'
7497      ;;
7498
7499    *)
7500      lt_prog_compiler_can_build_shared=no
7501      ;;
7502    esac
7503  fi
7504
7505{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7506echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7507
7508#
7509# Check to make sure the PIC flag actually works.
7510#
7511if test -n "$lt_prog_compiler_pic"; then
7512
7513{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7514echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7515if test "${lt_prog_compiler_pic_works+set}" = set; then
7516  echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518  lt_prog_compiler_pic_works=no
7519  ac_outfile=conftest.$ac_objext
7520   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7521   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7522   # Insert the option either (1) after the last *FLAGS variable, or
7523   # (2) before a word containing "conftest.", or (3) at the end.
7524   # Note that $ac_compile itself does not contain backslashes and begins
7525   # with a dollar sign (not a hyphen), so the echo should work correctly.
7526   # The option is referenced via a variable to avoid confusing sed.
7527   lt_compile=`echo "$ac_compile" | $SED \
7528   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7529   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7530   -e 's:$: $lt_compiler_flag:'`
7531   (eval echo "\"\$as_me:7531: $lt_compile\"" >&5)
7532   (eval "$lt_compile" 2>conftest.err)
7533   ac_status=$?
7534   cat conftest.err >&5
7535   echo "$as_me:7535: \$? = $ac_status" >&5
7536   if (exit $ac_status) && test -s "$ac_outfile"; then
7537     # The compiler can only warn and ignore the option if not recognized
7538     # So say no if there are warnings other than the usual output.
7539     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7540     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7541     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7542       lt_prog_compiler_pic_works=yes
7543     fi
7544   fi
7545   $rm conftest*
7546
7547fi
7548{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7549echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7550
7551if test x"$lt_prog_compiler_pic_works" = xyes; then
7552    case $lt_prog_compiler_pic in
7553     "" | " "*) ;;
7554     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7555     esac
7556else
7557    lt_prog_compiler_pic=
7558     lt_prog_compiler_can_build_shared=no
7559fi
7560
7561fi
7562case $host_os in
7563  # For platforms which do not support PIC, -DPIC is meaningless:
7564  *djgpp*)
7565    lt_prog_compiler_pic=
7566    ;;
7567  *)
7568    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7569    ;;
7570esac
7571
7572#
7573# Check to make sure the static flag actually works.
7574#
7575wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7576{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7577echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7578if test "${lt_prog_compiler_static_works+set}" = set; then
7579  echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581  lt_prog_compiler_static_works=no
7582   save_LDFLAGS="$LDFLAGS"
7583   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7584   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7585   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7586     # The linker can only warn and ignore the option if not recognized
7587     # So say no if there are warnings
7588     if test -s conftest.err; then
7589       # Append any errors to the config.log.
7590       cat conftest.err 1>&5
7591       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7592       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7593       if diff conftest.exp conftest.er2 >/dev/null; then
7594         lt_prog_compiler_static_works=yes
7595       fi
7596     else
7597       lt_prog_compiler_static_works=yes
7598     fi
7599   fi
7600   $rm conftest*
7601   LDFLAGS="$save_LDFLAGS"
7602
7603fi
7604{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7605echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7606
7607if test x"$lt_prog_compiler_static_works" = xyes; then
7608    :
7609else
7610    lt_prog_compiler_static=
7611fi
7612
7613
7614{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7615echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7616if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7617  echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619  lt_cv_prog_compiler_c_o=no
7620   $rm -r conftest 2>/dev/null
7621   mkdir conftest
7622   cd conftest
7623   mkdir out
7624   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7625
7626   lt_compiler_flag="-o out/conftest2.$ac_objext"
7627   # Insert the option either (1) after the last *FLAGS variable, or
7628   # (2) before a word containing "conftest.", or (3) at the end.
7629   # Note that $ac_compile itself does not contain backslashes and begins
7630   # with a dollar sign (not a hyphen), so the echo should work correctly.
7631   lt_compile=`echo "$ac_compile" | $SED \
7632   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7633   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7634   -e 's:$: $lt_compiler_flag:'`
7635   (eval echo "\"\$as_me:7635: $lt_compile\"" >&5)
7636   (eval "$lt_compile" 2>out/conftest.err)
7637   ac_status=$?
7638   cat out/conftest.err >&5
7639   echo "$as_me:7639: \$? = $ac_status" >&5
7640   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7641   then
7642     # The compiler can only warn and ignore the option if not recognized
7643     # So say no if there are warnings
7644     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7645     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7646     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7647       lt_cv_prog_compiler_c_o=yes
7648     fi
7649   fi
7650   chmod u+w . 2>&5
7651   $rm conftest*
7652   # SGI C++ compiler will create directory out/ii_files/ for
7653   # template instantiation
7654   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7655   $rm out/* && rmdir out
7656   cd ..
7657   rmdir conftest
7658   $rm conftest*
7659
7660fi
7661{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7662echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7663
7664
7665hard_links="nottested"
7666if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7667  # do not overwrite the value of need_locks provided by the user
7668  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7669echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7670  hard_links=yes
7671  $rm conftest*
7672  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7673  touch conftest.a
7674  ln conftest.a conftest.b 2>&5 || hard_links=no
7675  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7676  { echo "$as_me:$LINENO: result: $hard_links" >&5
7677echo "${ECHO_T}$hard_links" >&6; }
7678  if test "$hard_links" = no; then
7679    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7680echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7681    need_locks=warn
7682  fi
7683else
7684  need_locks=no
7685fi
7686
7687{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7688echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7689
7690  runpath_var=
7691  allow_undefined_flag=
7692  enable_shared_with_static_runtimes=no
7693  archive_cmds=
7694  archive_expsym_cmds=
7695  old_archive_From_new_cmds=
7696  old_archive_from_expsyms_cmds=
7697  export_dynamic_flag_spec=
7698  whole_archive_flag_spec=
7699  thread_safe_flag_spec=
7700  hardcode_libdir_flag_spec=
7701  hardcode_libdir_flag_spec_ld=
7702  hardcode_libdir_separator=
7703  hardcode_direct=no
7704  hardcode_minus_L=no
7705  hardcode_shlibpath_var=unsupported
7706  link_all_deplibs=unknown
7707  hardcode_automatic=no
7708  module_cmds=
7709  module_expsym_cmds=
7710  always_export_symbols=no
7711  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7712  # include_expsyms should be a list of space-separated symbols to be *always*
7713  # included in the symbol list
7714  include_expsyms=
7715  # exclude_expsyms can be an extended regexp of symbols to exclude
7716  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7717  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7718  # as well as any symbol that contains `d'.
7719  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7720  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7721  # platforms (ab)use it in PIC code, but their linkers get confused if
7722  # the symbol is explicitly referenced.  Since portable code cannot
7723  # rely on this symbol name, it's probably fine to never include it in
7724  # preloaded symbol tables.
7725  extract_expsyms_cmds=
7726  # Just being paranoid about ensuring that cc_basename is set.
7727  for cc_temp in $compiler""; do
7728  case $cc_temp in
7729    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7730    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7731    \-*) ;;
7732    *) break;;
7733  esac
7734done
7735cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7736
7737  case $host_os in
7738  cygwin* | mingw* | pw32*)
7739    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7740    # When not using gcc, we currently assume that we are using
7741    # Microsoft Visual C++.
7742    if test "$GCC" != yes; then
7743      with_gnu_ld=no
7744    fi
7745    ;;
7746  interix*)
7747    # we just hope/assume this is gcc and not c89 (= MSVC++)
7748    with_gnu_ld=yes
7749    ;;
7750  openbsd*)
7751    with_gnu_ld=no
7752    ;;
7753  esac
7754
7755  ld_shlibs=yes
7756  if test "$with_gnu_ld" = yes; then
7757    # If archive_cmds runs LD, not CC, wlarc should be empty
7758    wlarc='${wl}'
7759
7760    # Set some defaults for GNU ld with shared library support. These
7761    # are reset later if shared libraries are not supported. Putting them
7762    # here allows them to be overridden if necessary.
7763    runpath_var=LD_RUN_PATH
7764    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7765    export_dynamic_flag_spec='${wl}--export-dynamic'
7766    # ancient GNU ld didn't support --whole-archive et. al.
7767    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7768	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7769      else
7770  	whole_archive_flag_spec=
7771    fi
7772    supports_anon_versioning=no
7773    case `$LD -v 2>/dev/null` in
7774      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7775      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7776      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7777      *\ 2.11.*) ;; # other 2.11 versions
7778      *) supports_anon_versioning=yes ;;
7779    esac
7780
7781    # See if GNU ld supports shared libraries.
7782    case $host_os in
7783    aix3* | aix4* | aix5*)
7784      # On AIX/PPC, the GNU linker is very broken
7785      if test "$host_cpu" != ia64; then
7786	ld_shlibs=no
7787	cat <<EOF 1>&2
7788
7789*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7790*** to be unable to reliably create shared libraries on AIX.
7791*** Therefore, libtool is disabling shared libraries support.  If you
7792*** really care for shared libraries, you may want to modify your PATH
7793*** so that a non-GNU linker is found, and then restart.
7794
7795EOF
7796      fi
7797      ;;
7798
7799    amigaos*)
7800      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)'
7801      hardcode_libdir_flag_spec='-L$libdir'
7802      hardcode_minus_L=yes
7803
7804      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7805      # that the semantics of dynamic libraries on AmigaOS, at least up
7806      # to version 4, is to share data among multiple programs linked
7807      # with the same dynamic library.  Since this doesn't match the
7808      # behavior of shared libraries on other platforms, we can't use
7809      # them.
7810      ld_shlibs=no
7811      ;;
7812
7813    beos*)
7814      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7815	allow_undefined_flag=unsupported
7816	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7817	# support --undefined.  This deserves some investigation.  FIXME
7818	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7819      else
7820	ld_shlibs=no
7821      fi
7822      ;;
7823
7824    cygwin* | mingw* | pw32*)
7825      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7826      # as there is no search path for DLLs.
7827      hardcode_libdir_flag_spec='-L$libdir'
7828      allow_undefined_flag=unsupported
7829      always_export_symbols=no
7830      enable_shared_with_static_runtimes=yes
7831      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7832
7833      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7834        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7835	# If the export-symbols file already is a .def file (1st line
7836	# is EXPORTS), use it as is; otherwise, prepend...
7837	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7838	  cp $export_symbols $output_objdir/$soname.def;
7839	else
7840	  echo EXPORTS > $output_objdir/$soname.def;
7841	  cat $export_symbols >> $output_objdir/$soname.def;
7842	fi~
7843	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7844      else
7845	ld_shlibs=no
7846      fi
7847      ;;
7848
7849    interix[3-9]*)
7850      hardcode_direct=no
7851      hardcode_shlibpath_var=no
7852      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7853      export_dynamic_flag_spec='${wl}-E'
7854      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7855      # Instead, shared libraries are loaded at an image base (0x10000000 by
7856      # default) and relocated if they conflict, which is a slow very memory
7857      # consuming and fragmenting process.  To avoid this, we pick a random,
7858      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7859      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7860      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7861      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'
7862      ;;
7863
7864    gnu* | linux* | k*bsd*-gnu)
7865      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7866	tmp_addflag=
7867	case $cc_basename,$host_cpu in
7868	pgcc*)				# Portland Group C compiler
7869	  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'
7870	  tmp_addflag=' $pic_flag'
7871	  ;;
7872	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7873	  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'
7874	  tmp_addflag=' $pic_flag -Mnomain' ;;
7875	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7876	  tmp_addflag=' -i_dynamic' ;;
7877	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7878	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7879	ifc* | ifort*)			# Intel Fortran compiler
7880	  tmp_addflag=' -nofor_main' ;;
7881	esac
7882	case `$CC -V 2>&1 | sed 5q` in
7883	*Sun\ C*)			# Sun C 5.9
7884	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7885	  tmp_sharedflag='-G' ;;
7886	*Sun\ F*)			# Sun Fortran 8.3
7887	  tmp_sharedflag='-G' ;;
7888	*)
7889	  tmp_sharedflag='-shared' ;;
7890	esac
7891	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7892
7893	if test $supports_anon_versioning = yes; then
7894	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7895  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7896  $echo "local: *; };" >> $output_objdir/$libname.ver~
7897	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7898	fi
7899      else
7900	ld_shlibs=no
7901      fi
7902      ;;
7903
7904    netbsd*)
7905      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7906	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7907	wlarc=
7908      else
7909	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7910	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7911      fi
7912      ;;
7913
7914    solaris*)
7915      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7916	ld_shlibs=no
7917	cat <<EOF 1>&2
7918
7919*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7920*** create shared libraries on Solaris systems.  Therefore, libtool
7921*** is disabling shared libraries support.  We urge you to upgrade GNU
7922*** binutils to release 2.9.1 or newer.  Another option is to modify
7923*** your PATH or compiler configuration so that the native linker is
7924*** used, and then restart.
7925
7926EOF
7927      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7928	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7929	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7930      else
7931	ld_shlibs=no
7932      fi
7933      ;;
7934
7935    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7936      case `$LD -v 2>&1` in
7937        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7938	ld_shlibs=no
7939	cat <<_LT_EOF 1>&2
7940
7941*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7942*** reliably create shared libraries on SCO systems.  Therefore, libtool
7943*** is disabling shared libraries support.  We urge you to upgrade GNU
7944*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7945*** your PATH or compiler configuration so that the native linker is
7946*** used, and then restart.
7947
7948_LT_EOF
7949	;;
7950	*)
7951	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7952	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7953	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7954	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7955	  else
7956	    ld_shlibs=no
7957	  fi
7958	;;
7959      esac
7960      ;;
7961
7962    sunos4*)
7963      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7964      wlarc=
7965      hardcode_direct=yes
7966      hardcode_shlibpath_var=no
7967      ;;
7968
7969    *)
7970      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7971	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7973      else
7974	ld_shlibs=no
7975      fi
7976      ;;
7977    esac
7978
7979    if test "$ld_shlibs" = no; then
7980      runpath_var=
7981      hardcode_libdir_flag_spec=
7982      export_dynamic_flag_spec=
7983      whole_archive_flag_spec=
7984    fi
7985  else
7986    # PORTME fill in a description of your system's linker (not GNU ld)
7987    case $host_os in
7988    aix3*)
7989      allow_undefined_flag=unsupported
7990      always_export_symbols=yes
7991      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'
7992      # Note: this linker hardcodes the directories in LIBPATH if there
7993      # are no directories specified by -L.
7994      hardcode_minus_L=yes
7995      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7996	# Neither direct hardcoding nor static linking is supported with a
7997	# broken collect2.
7998	hardcode_direct=unsupported
7999      fi
8000      ;;
8001
8002    aix4* | aix5*)
8003      if test "$host_cpu" = ia64; then
8004	# On IA64, the linker does run time linking by default, so we don't
8005	# have to do anything special.
8006	aix_use_runtimelinking=no
8007	exp_sym_flag='-Bexport'
8008	no_entry_flag=""
8009      else
8010	# If we're using GNU nm, then we don't want the "-C" option.
8011	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8012	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8013	  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'
8014	else
8015	  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'
8016	fi
8017	aix_use_runtimelinking=no
8018
8019	# Test if we are trying to use run time linking or normal
8020	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8021	# need to do runtime linking.
8022	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8023	  for ld_flag in $LDFLAGS; do
8024  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8025  	    aix_use_runtimelinking=yes
8026  	    break
8027  	  fi
8028	  done
8029	  ;;
8030	esac
8031
8032	exp_sym_flag='-bexport'
8033	no_entry_flag='-bnoentry'
8034      fi
8035
8036      # When large executables or shared objects are built, AIX ld can
8037      # have problems creating the table of contents.  If linking a library
8038      # or program results in "error TOC overflow" add -mminimal-toc to
8039      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8040      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8041
8042      archive_cmds=''
8043      hardcode_direct=yes
8044      hardcode_libdir_separator=':'
8045      link_all_deplibs=yes
8046
8047      if test "$GCC" = yes; then
8048	case $host_os in aix4.[012]|aix4.[012].*)
8049	# We only want to do this on AIX 4.2 and lower, the check
8050	# below for broken collect2 doesn't work under 4.3+
8051	  collect2name=`${CC} -print-prog-name=collect2`
8052	  if test -f "$collect2name" && \
8053  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8054	  then
8055  	  # We have reworked collect2
8056  	  :
8057	  else
8058  	  # We have old collect2
8059  	  hardcode_direct=unsupported
8060  	  # It fails to find uninstalled libraries when the uninstalled
8061  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8062  	  # to unsupported forces relinking
8063  	  hardcode_minus_L=yes
8064  	  hardcode_libdir_flag_spec='-L$libdir'
8065  	  hardcode_libdir_separator=
8066	  fi
8067	  ;;
8068	esac
8069	shared_flag='-shared'
8070	if test "$aix_use_runtimelinking" = yes; then
8071	  shared_flag="$shared_flag "'${wl}-G'
8072	fi
8073      else
8074	# not using gcc
8075	if test "$host_cpu" = ia64; then
8076  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8077  	# chokes on -Wl,-G. The following line is correct:
8078	  shared_flag='-G'
8079	else
8080	  if test "$aix_use_runtimelinking" = yes; then
8081	    shared_flag='${wl}-G'
8082	  else
8083	    shared_flag='${wl}-bM:SRE'
8084	  fi
8085	fi
8086      fi
8087
8088      # It seems that -bexpall does not export symbols beginning with
8089      # underscore (_), so it is better to generate a list of symbols to export.
8090      always_export_symbols=yes
8091      if test "$aix_use_runtimelinking" = yes; then
8092	# Warning - without using the other runtime loading flags (-brtl),
8093	# -berok will link without error, but may produce a broken library.
8094	allow_undefined_flag='-berok'
8095       # Determine the default libpath from the value encoded in an empty executable.
8096       cat >conftest.$ac_ext <<_ACEOF
8097/* confdefs.h.  */
8098_ACEOF
8099cat confdefs.h >>conftest.$ac_ext
8100cat >>conftest.$ac_ext <<_ACEOF
8101/* end confdefs.h.  */
8102
8103int
8104main ()
8105{
8106
8107  ;
8108  return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext conftest$ac_exeext
8112if { (ac_try="$ac_link"
8113case "(($ac_try" in
8114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115  *) ac_try_echo=$ac_try;;
8116esac
8117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118  (eval "$ac_link") 2>conftest.er1
8119  ac_status=$?
8120  grep -v '^ *+' conftest.er1 >conftest.err
8121  rm -f conftest.er1
8122  cat conftest.err >&5
8123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124  (exit $ac_status); } && {
8125	 test -z "$ac_c_werror_flag" ||
8126	 test ! -s conftest.err
8127       } && test -s conftest$ac_exeext &&
8128       $as_test_x conftest$ac_exeext; then
8129
8130lt_aix_libpath_sed='
8131    /Import File Strings/,/^$/ {
8132	/^0/ {
8133	    s/^0  *\(.*\)$/\1/
8134	    p
8135	}
8136    }'
8137aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8138# Check for a 64-bit object if we didn't find anything.
8139if test -z "$aix_libpath"; then
8140  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8141fi
8142else
8143  echo "$as_me: failed program was:" >&5
8144sed 's/^/| /' conftest.$ac_ext >&5
8145
8146
8147fi
8148
8149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8150      conftest$ac_exeext conftest.$ac_ext
8151if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8152
8153       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8154	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"
8155       else
8156	if test "$host_cpu" = ia64; then
8157	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8158	  allow_undefined_flag="-z nodefs"
8159	  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"
8160	else
8161	 # Determine the default libpath from the value encoded in an empty executable.
8162	 cat >conftest.$ac_ext <<_ACEOF
8163/* confdefs.h.  */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h.  */
8168
8169int
8170main ()
8171{
8172
8173  ;
8174  return 0;
8175}
8176_ACEOF
8177rm -f conftest.$ac_objext conftest$ac_exeext
8178if { (ac_try="$ac_link"
8179case "(($ac_try" in
8180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181  *) ac_try_echo=$ac_try;;
8182esac
8183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184  (eval "$ac_link") 2>conftest.er1
8185  ac_status=$?
8186  grep -v '^ *+' conftest.er1 >conftest.err
8187  rm -f conftest.er1
8188  cat conftest.err >&5
8189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190  (exit $ac_status); } && {
8191	 test -z "$ac_c_werror_flag" ||
8192	 test ! -s conftest.err
8193       } && test -s conftest$ac_exeext &&
8194       $as_test_x conftest$ac_exeext; then
8195
8196lt_aix_libpath_sed='
8197    /Import File Strings/,/^$/ {
8198	/^0/ {
8199	    s/^0  *\(.*\)$/\1/
8200	    p
8201	}
8202    }'
8203aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8204# Check for a 64-bit object if we didn't find anything.
8205if test -z "$aix_libpath"; then
8206  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8207fi
8208else
8209  echo "$as_me: failed program was:" >&5
8210sed 's/^/| /' conftest.$ac_ext >&5
8211
8212
8213fi
8214
8215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8216      conftest$ac_exeext conftest.$ac_ext
8217if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8218
8219	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8220	  # Warning - without using the other run time loading flags,
8221	  # -berok will link without error, but may produce a broken library.
8222	  no_undefined_flag=' ${wl}-bernotok'
8223	  allow_undefined_flag=' ${wl}-berok'
8224	  # Exported symbols can be pulled into shared objects from archives
8225	  whole_archive_flag_spec='$convenience'
8226	  archive_cmds_need_lc=yes
8227	  # This is similar to how AIX traditionally builds its shared libraries.
8228	  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'
8229	fi
8230      fi
8231      ;;
8232
8233    amigaos*)
8234      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)'
8235      hardcode_libdir_flag_spec='-L$libdir'
8236      hardcode_minus_L=yes
8237      # see comment about different semantics on the GNU ld section
8238      ld_shlibs=no
8239      ;;
8240
8241    bsdi[45]*)
8242      export_dynamic_flag_spec=-rdynamic
8243      ;;
8244
8245    cygwin* | mingw* | pw32*)
8246      # When not using gcc, we currently assume that we are using
8247      # Microsoft Visual C++.
8248      # hardcode_libdir_flag_spec is actually meaningless, as there is
8249      # no search path for DLLs.
8250      hardcode_libdir_flag_spec=' '
8251      allow_undefined_flag=unsupported
8252      # Tell ltmain to make .lib files, not .a files.
8253      libext=lib
8254      # Tell ltmain to make .dll files, not .so files.
8255      shrext_cmds=".dll"
8256      # FIXME: Setting linknames here is a bad hack.
8257      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8258      # The linker will automatically build a .lib file if we build a DLL.
8259      old_archive_From_new_cmds='true'
8260      # FIXME: Should let the user specify the lib program.
8261      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8262      fix_srcfile_path='`cygpath -w "$srcfile"`'
8263      enable_shared_with_static_runtimes=yes
8264      ;;
8265
8266    darwin* | rhapsody*)
8267      case $host_os in
8268        rhapsody* | darwin1.[012])
8269         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8270         ;;
8271       *) # Darwin 1.3 on
8272         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8273           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8274         else
8275           case ${MACOSX_DEPLOYMENT_TARGET} in
8276             10.[012])
8277               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8278               ;;
8279             10.*)
8280               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8281               ;;
8282           esac
8283         fi
8284         ;;
8285      esac
8286      archive_cmds_need_lc=no
8287      hardcode_direct=no
8288      hardcode_automatic=yes
8289      hardcode_shlibpath_var=unsupported
8290      whole_archive_flag_spec=''
8291      link_all_deplibs=yes
8292    if test "$GCC" = yes ; then
8293    	output_verbose_link_cmd='echo'
8294        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8295      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8296      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8297      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}'
8298      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}'
8299    else
8300      case $cc_basename in
8301        xlc*)
8302         output_verbose_link_cmd='echo'
8303         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8304         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8305          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8306         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8307          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}'
8308          ;;
8309       *)
8310         ld_shlibs=no
8311          ;;
8312      esac
8313    fi
8314      ;;
8315
8316    dgux*)
8317      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8318      hardcode_libdir_flag_spec='-L$libdir'
8319      hardcode_shlibpath_var=no
8320      ;;
8321
8322    freebsd1*)
8323      ld_shlibs=no
8324      ;;
8325
8326    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8327    # support.  Future versions do this automatically, but an explicit c++rt0.o
8328    # does not break anything, and helps significantly (at the cost of a little
8329    # extra space).
8330    freebsd2.2*)
8331      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8332      hardcode_libdir_flag_spec='-R$libdir'
8333      hardcode_direct=yes
8334      hardcode_shlibpath_var=no
8335      ;;
8336
8337    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8338    freebsd2*)
8339      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8340      hardcode_direct=yes
8341      hardcode_minus_L=yes
8342      hardcode_shlibpath_var=no
8343      ;;
8344
8345    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8346    freebsd* | dragonfly*)
8347      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8348      hardcode_libdir_flag_spec='-R$libdir'
8349      hardcode_direct=yes
8350      hardcode_shlibpath_var=no
8351      ;;
8352
8353    hpux9*)
8354      if test "$GCC" = yes; then
8355	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'
8356      else
8357	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'
8358      fi
8359      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8360      hardcode_libdir_separator=:
8361      hardcode_direct=yes
8362
8363      # hardcode_minus_L: Not really in the search PATH,
8364      # but as the default location of the library.
8365      hardcode_minus_L=yes
8366      export_dynamic_flag_spec='${wl}-E'
8367      ;;
8368
8369    hpux10*)
8370      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8371	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8372      else
8373	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8374      fi
8375      if test "$with_gnu_ld" = no; then
8376	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8377	hardcode_libdir_separator=:
8378
8379	hardcode_direct=yes
8380	export_dynamic_flag_spec='${wl}-E'
8381
8382	# hardcode_minus_L: Not really in the search PATH,
8383	# but as the default location of the library.
8384	hardcode_minus_L=yes
8385      fi
8386      ;;
8387
8388    hpux11*)
8389      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8390	case $host_cpu in
8391	hppa*64*)
8392	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8393	  ;;
8394	ia64*)
8395	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8396	  ;;
8397	*)
8398	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8399	  ;;
8400	esac
8401      else
8402	case $host_cpu in
8403	hppa*64*)
8404	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8405	  ;;
8406	ia64*)
8407	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8408	  ;;
8409	*)
8410	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8411	  ;;
8412	esac
8413      fi
8414      if test "$with_gnu_ld" = no; then
8415	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8416	hardcode_libdir_separator=:
8417
8418	case $host_cpu in
8419	hppa*64*|ia64*)
8420	  hardcode_libdir_flag_spec_ld='+b $libdir'
8421	  hardcode_direct=no
8422	  hardcode_shlibpath_var=no
8423	  ;;
8424	*)
8425	  hardcode_direct=yes
8426	  export_dynamic_flag_spec='${wl}-E'
8427
8428	  # hardcode_minus_L: Not really in the search PATH,
8429	  # but as the default location of the library.
8430	  hardcode_minus_L=yes
8431	  ;;
8432	esac
8433      fi
8434      ;;
8435
8436    irix5* | irix6* | nonstopux*)
8437      if test "$GCC" = yes; then
8438	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'
8439      else
8440	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'
8441	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8442      fi
8443      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444      hardcode_libdir_separator=:
8445      link_all_deplibs=yes
8446      ;;
8447
8448    netbsd*)
8449      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8450	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8451      else
8452	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8453      fi
8454      hardcode_libdir_flag_spec='-R$libdir'
8455      hardcode_direct=yes
8456      hardcode_shlibpath_var=no
8457      ;;
8458
8459    newsos6)
8460      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8461      hardcode_direct=yes
8462      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8463      hardcode_libdir_separator=:
8464      hardcode_shlibpath_var=no
8465      ;;
8466
8467    openbsd*)
8468      if test -f /usr/libexec/ld.so; then
8469	hardcode_direct=yes
8470	hardcode_shlibpath_var=no
8471	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8472	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8473	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8474	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8475	  export_dynamic_flag_spec='${wl}-E'
8476	else
8477	  case $host_os in
8478	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8479	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8480	     hardcode_libdir_flag_spec='-R$libdir'
8481	     ;;
8482	   *)
8483	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8484	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8485	     ;;
8486	  esac
8487        fi
8488      else
8489	ld_shlibs=no
8490      fi
8491      ;;
8492
8493    os2*)
8494      hardcode_libdir_flag_spec='-L$libdir'
8495      hardcode_minus_L=yes
8496      allow_undefined_flag=unsupported
8497      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'
8498      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8499      ;;
8500
8501    osf3*)
8502      if test "$GCC" = yes; then
8503	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8504	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'
8505      else
8506	allow_undefined_flag=' -expect_unresolved \*'
8507	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'
8508      fi
8509      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8510      hardcode_libdir_separator=:
8511      ;;
8512
8513    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8514      if test "$GCC" = yes; then
8515	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8516	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'
8517	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8518      else
8519	allow_undefined_flag=' -expect_unresolved \*'
8520	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'
8521	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8522	$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'
8523
8524	# Both c and cxx compiler support -rpath directly
8525	hardcode_libdir_flag_spec='-rpath $libdir'
8526      fi
8527      hardcode_libdir_separator=:
8528      ;;
8529
8530    solaris*)
8531      no_undefined_flag=' -z text'
8532      if test "$GCC" = yes; then
8533	wlarc='${wl}'
8534	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8535	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8536	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8537      else
8538	wlarc=''
8539	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8540	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8541  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8542      fi
8543      hardcode_libdir_flag_spec='-R$libdir'
8544      hardcode_shlibpath_var=no
8545      case $host_os in
8546      solaris2.[0-5] | solaris2.[0-5].*) ;;
8547      *)
8548	# The compiler driver will combine and reorder linker options,
8549	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8550	# but is careful enough not to reorder.
8551 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8552	if test "$GCC" = yes; then
8553	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8554	else
8555	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8556	fi
8557	;;
8558      esac
8559      link_all_deplibs=yes
8560      ;;
8561
8562    sunos4*)
8563      if test "x$host_vendor" = xsequent; then
8564	# Use $CC to link under sequent, because it throws in some extra .o
8565	# files that make .init and .fini sections work.
8566	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8567      else
8568	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8569      fi
8570      hardcode_libdir_flag_spec='-L$libdir'
8571      hardcode_direct=yes
8572      hardcode_minus_L=yes
8573      hardcode_shlibpath_var=no
8574      ;;
8575
8576    sysv4)
8577      case $host_vendor in
8578	sni)
8579	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8580	  hardcode_direct=yes # is this really true???
8581	;;
8582	siemens)
8583	  ## LD is ld it makes a PLAMLIB
8584	  ## CC just makes a GrossModule.
8585	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8586	  reload_cmds='$CC -r -o $output$reload_objs'
8587	  hardcode_direct=no
8588        ;;
8589	motorola)
8590	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8591	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8592	;;
8593      esac
8594      runpath_var='LD_RUN_PATH'
8595      hardcode_shlibpath_var=no
8596      ;;
8597
8598    sysv4.3*)
8599      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8600      hardcode_shlibpath_var=no
8601      export_dynamic_flag_spec='-Bexport'
8602      ;;
8603
8604    sysv4*MP*)
8605      if test -d /usr/nec; then
8606	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8607	hardcode_shlibpath_var=no
8608	runpath_var=LD_RUN_PATH
8609	hardcode_runpath_var=yes
8610	ld_shlibs=yes
8611      fi
8612      ;;
8613
8614    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8615      no_undefined_flag='${wl}-z,text'
8616      archive_cmds_need_lc=no
8617      hardcode_shlibpath_var=no
8618      runpath_var='LD_RUN_PATH'
8619
8620      if test "$GCC" = yes; then
8621	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8622	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8623      else
8624	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8625	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8626      fi
8627      ;;
8628
8629    sysv5* | sco3.2v5* | sco5v6*)
8630      # Note: We can NOT use -z defs as we might desire, because we do not
8631      # link with -lc, and that would cause any symbols used from libc to
8632      # always be unresolved, which means just about no library would
8633      # ever link correctly.  If we're not using GNU ld we use -z text
8634      # though, which does catch some bad symbols but isn't as heavy-handed
8635      # as -z defs.
8636      no_undefined_flag='${wl}-z,text'
8637      allow_undefined_flag='${wl}-z,nodefs'
8638      archive_cmds_need_lc=no
8639      hardcode_shlibpath_var=no
8640      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8641      hardcode_libdir_separator=':'
8642      link_all_deplibs=yes
8643      export_dynamic_flag_spec='${wl}-Bexport'
8644      runpath_var='LD_RUN_PATH'
8645
8646      if test "$GCC" = yes; then
8647	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8648	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8649      else
8650	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8651	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8652      fi
8653      ;;
8654
8655    uts4*)
8656      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8657      hardcode_libdir_flag_spec='-L$libdir'
8658      hardcode_shlibpath_var=no
8659      ;;
8660
8661    *)
8662      ld_shlibs=no
8663      ;;
8664    esac
8665  fi
8666
8667{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8668echo "${ECHO_T}$ld_shlibs" >&6; }
8669test "$ld_shlibs" = no && can_build_shared=no
8670
8671#
8672# Do we need to explicitly link libc?
8673#
8674case "x$archive_cmds_need_lc" in
8675x|xyes)
8676  # Assume -lc should be added
8677  archive_cmds_need_lc=yes
8678
8679  if test "$enable_shared" = yes && test "$GCC" = yes; then
8680    case $archive_cmds in
8681    *'~'*)
8682      # FIXME: we may have to deal with multi-command sequences.
8683      ;;
8684    '$CC '*)
8685      # Test whether the compiler implicitly links with -lc since on some
8686      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8687      # to ld, don't add -lc before -lgcc.
8688      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8689echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8690      $rm conftest*
8691      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8692
8693      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8694  (eval $ac_compile) 2>&5
8695  ac_status=$?
8696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697  (exit $ac_status); } 2>conftest.err; then
8698        soname=conftest
8699        lib=conftest
8700        libobjs=conftest.$ac_objext
8701        deplibs=
8702        wl=$lt_prog_compiler_wl
8703	pic_flag=$lt_prog_compiler_pic
8704        compiler_flags=-v
8705        linker_flags=-v
8706        verstring=
8707        output_objdir=.
8708        libname=conftest
8709        lt_save_allow_undefined_flag=$allow_undefined_flag
8710        allow_undefined_flag=
8711        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8712  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8713  ac_status=$?
8714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715  (exit $ac_status); }
8716        then
8717	  archive_cmds_need_lc=no
8718        else
8719	  archive_cmds_need_lc=yes
8720        fi
8721        allow_undefined_flag=$lt_save_allow_undefined_flag
8722      else
8723        cat conftest.err 1>&5
8724      fi
8725      $rm conftest*
8726      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8727echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8728      ;;
8729    esac
8730  fi
8731  ;;
8732esac
8733
8734{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8735echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8736library_names_spec=
8737libname_spec='lib$name'
8738soname_spec=
8739shrext_cmds=".so"
8740postinstall_cmds=
8741postuninstall_cmds=
8742finish_cmds=
8743finish_eval=
8744shlibpath_var=
8745shlibpath_overrides_runpath=unknown
8746version_type=none
8747dynamic_linker="$host_os ld.so"
8748sys_lib_dlsearch_path_spec="/lib /usr/lib"
8749
8750if test "$GCC" = yes; then
8751  case $host_os in
8752    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8753    *) lt_awk_arg="/^libraries:/" ;;
8754  esac
8755  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8756  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8757    # if the path contains ";" then we assume it to be the separator
8758    # otherwise default to the standard path separator (i.e. ":") - it is
8759    # assumed that no part of a normal pathname contains ";" but that should
8760    # okay in the real world where ";" in dirpaths is itself problematic.
8761    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8762  else
8763    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8764  fi
8765  # Ok, now we have the path, separated by spaces, we can step through it
8766  # and add multilib dir if necessary.
8767  lt_tmp_lt_search_path_spec=
8768  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8769  for lt_sys_path in $lt_search_path_spec; do
8770    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8771      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8772    else
8773      test -d "$lt_sys_path" && \
8774	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8775    fi
8776  done
8777  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8778BEGIN {RS=" "; FS="/|\n";} {
8779  lt_foo="";
8780  lt_count=0;
8781  for (lt_i = NF; lt_i > 0; lt_i--) {
8782    if ($lt_i != "" && $lt_i != ".") {
8783      if ($lt_i == "..") {
8784        lt_count++;
8785      } else {
8786        if (lt_count == 0) {
8787          lt_foo="/" $lt_i lt_foo;
8788        } else {
8789          lt_count--;
8790        }
8791      }
8792    }
8793  }
8794  if (lt_foo != "") { lt_freq[lt_foo]++; }
8795  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8796}'`
8797  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8798else
8799  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8800fi
8801need_lib_prefix=unknown
8802hardcode_into_libs=no
8803
8804# when you set need_version to no, make sure it does not cause -set_version
8805# flags to be left without arguments
8806need_version=unknown
8807
8808case $host_os in
8809aix3*)
8810  version_type=linux
8811  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8812  shlibpath_var=LIBPATH
8813
8814  # AIX 3 has no versioning support, so we append a major version to the name.
8815  soname_spec='${libname}${release}${shared_ext}$major'
8816  ;;
8817
8818aix4* | aix5*)
8819  version_type=linux
8820  need_lib_prefix=no
8821  need_version=no
8822  hardcode_into_libs=yes
8823  if test "$host_cpu" = ia64; then
8824    # AIX 5 supports IA64
8825    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8826    shlibpath_var=LD_LIBRARY_PATH
8827  else
8828    # With GCC up to 2.95.x, collect2 would create an import file
8829    # for dependence libraries.  The import file would start with
8830    # the line `#! .'.  This would cause the generated library to
8831    # depend on `.', always an invalid library.  This was fixed in
8832    # development snapshots of GCC prior to 3.0.
8833    case $host_os in
8834      aix4 | aix4.[01] | aix4.[01].*)
8835      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8836	   echo ' yes '
8837	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8838	:
8839      else
8840	can_build_shared=no
8841      fi
8842      ;;
8843    esac
8844    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8845    # soname into executable. Probably we can add versioning support to
8846    # collect2, so additional links can be useful in future.
8847    if test "$aix_use_runtimelinking" = yes; then
8848      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8849      # instead of lib<name>.a to let people know that these are not
8850      # typical AIX shared libraries.
8851      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852    else
8853      # We preserve .a as extension for shared libraries through AIX4.2
8854      # and later when we are not doing run time linking.
8855      library_names_spec='${libname}${release}.a $libname.a'
8856      soname_spec='${libname}${release}${shared_ext}$major'
8857    fi
8858    shlibpath_var=LIBPATH
8859  fi
8860  ;;
8861
8862amigaos*)
8863  library_names_spec='$libname.ixlibrary $libname.a'
8864  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8865  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'
8866  ;;
8867
8868beos*)
8869  library_names_spec='${libname}${shared_ext}'
8870  dynamic_linker="$host_os ld.so"
8871  shlibpath_var=LIBRARY_PATH
8872  ;;
8873
8874bsdi[45]*)
8875  version_type=linux
8876  need_version=no
8877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878  soname_spec='${libname}${release}${shared_ext}$major'
8879  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8880  shlibpath_var=LD_LIBRARY_PATH
8881  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8882  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8883  # the default ld.so.conf also contains /usr/contrib/lib and
8884  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8885  # libtool to hard-code these into programs
8886  ;;
8887
8888cygwin* | mingw* | pw32*)
8889  version_type=windows
8890  shrext_cmds=".dll"
8891  need_version=no
8892  need_lib_prefix=no
8893
8894  case $GCC,$host_os in
8895  yes,cygwin* | yes,mingw* | yes,pw32*)
8896    library_names_spec='$libname.dll.a'
8897    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8898    postinstall_cmds='base_file=`basename \${file}`~
8899      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8900      dldir=$destdir/`dirname \$dlpath`~
8901      test -d \$dldir || mkdir -p \$dldir~
8902      $install_prog $dir/$dlname \$dldir/$dlname~
8903      chmod a+x \$dldir/$dlname'
8904    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8905      dlpath=$dir/\$dldll~
8906       $rm \$dlpath'
8907    shlibpath_overrides_runpath=yes
8908
8909    case $host_os in
8910    cygwin*)
8911      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8912      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8913      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8914      ;;
8915    mingw*)
8916      # MinGW DLLs use traditional 'lib' prefix
8917      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8918      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8919      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8920        # It is most probably a Windows format PATH printed by
8921        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8922        # path with ; separators, and with drive letters. We can handle the
8923        # drive letters (cygwin fileutils understands them), so leave them,
8924        # especially as we might pass files found there to a mingw objdump,
8925        # which wouldn't understand a cygwinified path. Ahh.
8926        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8927      else
8928        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8929      fi
8930      ;;
8931    pw32*)
8932      # pw32 DLLs use 'pw' prefix rather than 'lib'
8933      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934      ;;
8935    esac
8936    ;;
8937
8938  *)
8939    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8940    ;;
8941  esac
8942  dynamic_linker='Win32 ld.exe'
8943  # FIXME: first we should search . and the directory the executable is in
8944  shlibpath_var=PATH
8945  ;;
8946
8947darwin* | rhapsody*)
8948  dynamic_linker="$host_os dyld"
8949  version_type=darwin
8950  need_lib_prefix=no
8951  need_version=no
8952  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8953  soname_spec='${libname}${release}${major}$shared_ext'
8954  shlibpath_overrides_runpath=yes
8955  shlibpath_var=DYLD_LIBRARY_PATH
8956  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8957
8958  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8959  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8960  ;;
8961
8962dgux*)
8963  version_type=linux
8964  need_lib_prefix=no
8965  need_version=no
8966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8967  soname_spec='${libname}${release}${shared_ext}$major'
8968  shlibpath_var=LD_LIBRARY_PATH
8969  ;;
8970
8971freebsd1*)
8972  dynamic_linker=no
8973  ;;
8974
8975freebsd* | dragonfly*)
8976  # DragonFly does not have aout.  When/if they implement a new
8977  # versioning mechanism, adjust this.
8978  if test -x /usr/bin/objformat; then
8979    objformat=`/usr/bin/objformat`
8980  else
8981    case $host_os in
8982    freebsd[123]*) objformat=aout ;;
8983    *) objformat=elf ;;
8984    esac
8985  fi
8986  version_type=freebsd-$objformat
8987  case $version_type in
8988    freebsd-elf*)
8989      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8990      need_version=no
8991      need_lib_prefix=no
8992      ;;
8993    freebsd-*)
8994      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8995      need_version=yes
8996      ;;
8997  esac
8998  shlibpath_var=LD_LIBRARY_PATH
8999  case $host_os in
9000  freebsd2*)
9001    shlibpath_overrides_runpath=yes
9002    ;;
9003  freebsd3.[01]* | freebsdelf3.[01]*)
9004    shlibpath_overrides_runpath=yes
9005    hardcode_into_libs=yes
9006    ;;
9007  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9008  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9009    shlibpath_overrides_runpath=no
9010    hardcode_into_libs=yes
9011    ;;
9012  *) # from 4.6 on, and DragonFly
9013    shlibpath_overrides_runpath=yes
9014    hardcode_into_libs=yes
9015    ;;
9016  esac
9017  ;;
9018
9019gnu*)
9020  version_type=linux
9021  need_lib_prefix=no
9022  need_version=no
9023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9024  soname_spec='${libname}${release}${shared_ext}$major'
9025  shlibpath_var=LD_LIBRARY_PATH
9026  hardcode_into_libs=yes
9027  ;;
9028
9029hpux9* | hpux10* | hpux11*)
9030  # Give a soname corresponding to the major version so that dld.sl refuses to
9031  # link against other versions.
9032  version_type=sunos
9033  need_lib_prefix=no
9034  need_version=no
9035  case $host_cpu in
9036  ia64*)
9037    shrext_cmds='.so'
9038    hardcode_into_libs=yes
9039    dynamic_linker="$host_os dld.so"
9040    shlibpath_var=LD_LIBRARY_PATH
9041    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9042    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043    soname_spec='${libname}${release}${shared_ext}$major'
9044    if test "X$HPUX_IA64_MODE" = X32; then
9045      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9046    else
9047      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9048    fi
9049    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050    ;;
9051   hppa*64*)
9052     shrext_cmds='.sl'
9053     hardcode_into_libs=yes
9054     dynamic_linker="$host_os dld.sl"
9055     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058     soname_spec='${libname}${release}${shared_ext}$major'
9059     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9060     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9061     ;;
9062   *)
9063    shrext_cmds='.sl'
9064    dynamic_linker="$host_os dld.sl"
9065    shlibpath_var=SHLIB_PATH
9066    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9067    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068    soname_spec='${libname}${release}${shared_ext}$major'
9069    ;;
9070  esac
9071  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9072  postinstall_cmds='chmod 555 $lib'
9073  ;;
9074
9075interix[3-9]*)
9076  version_type=linux
9077  need_lib_prefix=no
9078  need_version=no
9079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9080  soname_spec='${libname}${release}${shared_ext}$major'
9081  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9082  shlibpath_var=LD_LIBRARY_PATH
9083  shlibpath_overrides_runpath=no
9084  hardcode_into_libs=yes
9085  ;;
9086
9087irix5* | irix6* | nonstopux*)
9088  case $host_os in
9089    nonstopux*) version_type=nonstopux ;;
9090    *)
9091	if test "$lt_cv_prog_gnu_ld" = yes; then
9092		version_type=linux
9093	else
9094		version_type=irix
9095	fi ;;
9096  esac
9097  need_lib_prefix=no
9098  need_version=no
9099  soname_spec='${libname}${release}${shared_ext}$major'
9100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9101  case $host_os in
9102  irix5* | nonstopux*)
9103    libsuff= shlibsuff=
9104    ;;
9105  *)
9106    case $LD in # libtool.m4 will add one of these switches to LD
9107    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9108      libsuff= shlibsuff= libmagic=32-bit;;
9109    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9110      libsuff=32 shlibsuff=N32 libmagic=N32;;
9111    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9112      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9113    *) libsuff= shlibsuff= libmagic=never-match;;
9114    esac
9115    ;;
9116  esac
9117  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9118  shlibpath_overrides_runpath=no
9119  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9120  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9121  hardcode_into_libs=yes
9122  ;;
9123
9124# No shared lib support for Linux oldld, aout, or coff.
9125linux*oldld* | linux*aout* | linux*coff*)
9126  dynamic_linker=no
9127  ;;
9128
9129# This must be Linux ELF.
9130linux* | k*bsd*-gnu)
9131  version_type=linux
9132  need_lib_prefix=no
9133  need_version=no
9134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135  soname_spec='${libname}${release}${shared_ext}$major'
9136  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9137  shlibpath_var=LD_LIBRARY_PATH
9138  shlibpath_overrides_runpath=no
9139  # This implies no fast_install, which is unacceptable.
9140  # Some rework will be needed to allow for fast_install
9141  # before this can be enabled.
9142  hardcode_into_libs=yes
9143  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9144  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9145
9146  # Append ld.so.conf contents to the search path
9147  if test -f /etc/ld.so.conf; then
9148    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9149    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9150  fi
9151
9152  # We used to test for /lib/ld.so.1 and disable shared libraries on
9153  # powerpc, because MkLinux only supported shared libraries with the
9154  # GNU dynamic linker.  Since this was broken with cross compilers,
9155  # most powerpc-linux boxes support dynamic linking these days and
9156  # people can always --disable-shared, the test was removed, and we
9157  # assume the GNU/Linux dynamic linker is in use.
9158  dynamic_linker='GNU/Linux ld.so'
9159  ;;
9160
9161netbsd*)
9162  version_type=sunos
9163  need_lib_prefix=no
9164  need_version=no
9165  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9166    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9167    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9168    dynamic_linker='NetBSD (a.out) ld.so'
9169  else
9170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9171    soname_spec='${libname}${release}${shared_ext}$major'
9172    dynamic_linker='NetBSD ld.elf_so'
9173  fi
9174  shlibpath_var=LD_LIBRARY_PATH
9175  shlibpath_overrides_runpath=yes
9176  hardcode_into_libs=yes
9177  ;;
9178
9179newsos6)
9180  version_type=linux
9181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9182  shlibpath_var=LD_LIBRARY_PATH
9183  shlibpath_overrides_runpath=yes
9184  ;;
9185
9186nto-qnx*)
9187  version_type=linux
9188  need_lib_prefix=no
9189  need_version=no
9190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191  soname_spec='${libname}${release}${shared_ext}$major'
9192  shlibpath_var=LD_LIBRARY_PATH
9193  shlibpath_overrides_runpath=yes
9194  ;;
9195
9196openbsd*)
9197  version_type=sunos
9198  sys_lib_dlsearch_path_spec="/usr/lib"
9199  need_lib_prefix=no
9200  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9201  case $host_os in
9202    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9203    *)                         need_version=no  ;;
9204  esac
9205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9206  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9207  shlibpath_var=LD_LIBRARY_PATH
9208  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9209    case $host_os in
9210      openbsd2.[89] | openbsd2.[89].*)
9211	shlibpath_overrides_runpath=no
9212	;;
9213      *)
9214	shlibpath_overrides_runpath=yes
9215	;;
9216      esac
9217  else
9218    shlibpath_overrides_runpath=yes
9219  fi
9220  ;;
9221
9222os2*)
9223  libname_spec='$name'
9224  shrext_cmds=".dll"
9225  need_lib_prefix=no
9226  library_names_spec='$libname${shared_ext} $libname.a'
9227  dynamic_linker='OS/2 ld.exe'
9228  shlibpath_var=LIBPATH
9229  ;;
9230
9231osf3* | osf4* | osf5*)
9232  version_type=osf
9233  need_lib_prefix=no
9234  need_version=no
9235  soname_spec='${libname}${release}${shared_ext}$major'
9236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237  shlibpath_var=LD_LIBRARY_PATH
9238  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9239  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9240  ;;
9241
9242rdos*)
9243  dynamic_linker=no
9244  ;;
9245
9246solaris*)
9247  version_type=linux
9248  need_lib_prefix=no
9249  need_version=no
9250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251  soname_spec='${libname}${release}${shared_ext}$major'
9252  shlibpath_var=LD_LIBRARY_PATH
9253  shlibpath_overrides_runpath=yes
9254  hardcode_into_libs=yes
9255  # ldd complains unless libraries are executable
9256  postinstall_cmds='chmod +x $lib'
9257  ;;
9258
9259sunos4*)
9260  version_type=sunos
9261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9262  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9263  shlibpath_var=LD_LIBRARY_PATH
9264  shlibpath_overrides_runpath=yes
9265  if test "$with_gnu_ld" = yes; then
9266    need_lib_prefix=no
9267  fi
9268  need_version=yes
9269  ;;
9270
9271sysv4 | sysv4.3*)
9272  version_type=linux
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  shlibpath_var=LD_LIBRARY_PATH
9276  case $host_vendor in
9277    sni)
9278      shlibpath_overrides_runpath=no
9279      need_lib_prefix=no
9280      export_dynamic_flag_spec='${wl}-Blargedynsym'
9281      runpath_var=LD_RUN_PATH
9282      ;;
9283    siemens)
9284      need_lib_prefix=no
9285      ;;
9286    motorola)
9287      need_lib_prefix=no
9288      need_version=no
9289      shlibpath_overrides_runpath=no
9290      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9291      ;;
9292  esac
9293  ;;
9294
9295sysv4*MP*)
9296  if test -d /usr/nec ;then
9297    version_type=linux
9298    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9299    soname_spec='$libname${shared_ext}.$major'
9300    shlibpath_var=LD_LIBRARY_PATH
9301  fi
9302  ;;
9303
9304sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9305  version_type=freebsd-elf
9306  need_lib_prefix=no
9307  need_version=no
9308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9309  soname_spec='${libname}${release}${shared_ext}$major'
9310  shlibpath_var=LD_LIBRARY_PATH
9311  hardcode_into_libs=yes
9312  if test "$with_gnu_ld" = yes; then
9313    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9314    shlibpath_overrides_runpath=no
9315  else
9316    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9317    shlibpath_overrides_runpath=yes
9318    case $host_os in
9319      sco3.2v5*)
9320        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9321	;;
9322    esac
9323  fi
9324  sys_lib_dlsearch_path_spec='/usr/lib'
9325  ;;
9326
9327uts4*)
9328  version_type=linux
9329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330  soname_spec='${libname}${release}${shared_ext}$major'
9331  shlibpath_var=LD_LIBRARY_PATH
9332  ;;
9333
9334*)
9335  dynamic_linker=no
9336  ;;
9337esac
9338{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9339echo "${ECHO_T}$dynamic_linker" >&6; }
9340test "$dynamic_linker" = no && can_build_shared=no
9341
9342variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9343if test "$GCC" = yes; then
9344  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9345fi
9346
9347{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9348echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9349hardcode_action=
9350if test -n "$hardcode_libdir_flag_spec" || \
9351   test -n "$runpath_var" || \
9352   test "X$hardcode_automatic" = "Xyes" ; then
9353
9354  # We can hardcode non-existant directories.
9355  if test "$hardcode_direct" != no &&
9356     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9357     # have to relink, otherwise we might link with an installed library
9358     # when we should be linking with a yet-to-be-installed one
9359     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9360     test "$hardcode_minus_L" != no; then
9361    # Linking always hardcodes the temporary library directory.
9362    hardcode_action=relink
9363  else
9364    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9365    hardcode_action=immediate
9366  fi
9367else
9368  # We cannot hardcode anything, or else we can only hardcode existing
9369  # directories.
9370  hardcode_action=unsupported
9371fi
9372{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9373echo "${ECHO_T}$hardcode_action" >&6; }
9374
9375if test "$hardcode_action" = relink; then
9376  # Fast installation is not supported
9377  enable_fast_install=no
9378elif test "$shlibpath_overrides_runpath" = yes ||
9379     test "$enable_shared" = no; then
9380  # Fast installation is not necessary
9381  enable_fast_install=needless
9382fi
9383
9384striplib=
9385old_striplib=
9386{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9387echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9388if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9389  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9390  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9391  { echo "$as_me:$LINENO: result: yes" >&5
9392echo "${ECHO_T}yes" >&6; }
9393else
9394# FIXME - insert some real tests, host_os isn't really good enough
9395  case $host_os in
9396   darwin*)
9397       if test -n "$STRIP" ; then
9398         striplib="$STRIP -x"
9399         old_striplib="$STRIP -S"
9400         { echo "$as_me:$LINENO: result: yes" >&5
9401echo "${ECHO_T}yes" >&6; }
9402       else
9403  { echo "$as_me:$LINENO: result: no" >&5
9404echo "${ECHO_T}no" >&6; }
9405fi
9406       ;;
9407   *)
9408  { echo "$as_me:$LINENO: result: no" >&5
9409echo "${ECHO_T}no" >&6; }
9410    ;;
9411  esac
9412fi
9413
9414if test "x$enable_dlopen" != xyes; then
9415  enable_dlopen=unknown
9416  enable_dlopen_self=unknown
9417  enable_dlopen_self_static=unknown
9418else
9419  lt_cv_dlopen=no
9420  lt_cv_dlopen_libs=
9421
9422  case $host_os in
9423  beos*)
9424    lt_cv_dlopen="load_add_on"
9425    lt_cv_dlopen_libs=
9426    lt_cv_dlopen_self=yes
9427    ;;
9428
9429  mingw* | pw32*)
9430    lt_cv_dlopen="LoadLibrary"
9431    lt_cv_dlopen_libs=
9432   ;;
9433
9434  cygwin*)
9435    lt_cv_dlopen="dlopen"
9436    lt_cv_dlopen_libs=
9437   ;;
9438
9439  darwin*)
9440  # if libdl is installed we need to link against it
9441    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9442echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9443if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9444  echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
9446  ac_check_lib_save_LIBS=$LIBS
9447LIBS="-ldl  $LIBS"
9448cat >conftest.$ac_ext <<_ACEOF
9449/* confdefs.h.  */
9450_ACEOF
9451cat confdefs.h >>conftest.$ac_ext
9452cat >>conftest.$ac_ext <<_ACEOF
9453/* end confdefs.h.  */
9454
9455/* Override any GCC internal prototype to avoid an error.
9456   Use char because int might match the return type of a GCC
9457   builtin and then its argument prototype would still apply.  */
9458#ifdef __cplusplus
9459extern "C"
9460#endif
9461char dlopen ();
9462int
9463main ()
9464{
9465return dlopen ();
9466  ;
9467  return 0;
9468}
9469_ACEOF
9470rm -f conftest.$ac_objext conftest$ac_exeext
9471if { (ac_try="$ac_link"
9472case "(($ac_try" in
9473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474  *) ac_try_echo=$ac_try;;
9475esac
9476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477  (eval "$ac_link") 2>conftest.er1
9478  ac_status=$?
9479  grep -v '^ *+' conftest.er1 >conftest.err
9480  rm -f conftest.er1
9481  cat conftest.err >&5
9482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483  (exit $ac_status); } && {
9484	 test -z "$ac_c_werror_flag" ||
9485	 test ! -s conftest.err
9486       } && test -s conftest$ac_exeext &&
9487       $as_test_x conftest$ac_exeext; then
9488  ac_cv_lib_dl_dlopen=yes
9489else
9490  echo "$as_me: failed program was:" >&5
9491sed 's/^/| /' conftest.$ac_ext >&5
9492
9493	ac_cv_lib_dl_dlopen=no
9494fi
9495
9496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9497      conftest$ac_exeext conftest.$ac_ext
9498LIBS=$ac_check_lib_save_LIBS
9499fi
9500{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9501echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9502if test $ac_cv_lib_dl_dlopen = yes; then
9503  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9504else
9505
9506    lt_cv_dlopen="dyld"
9507    lt_cv_dlopen_libs=
9508    lt_cv_dlopen_self=yes
9509
9510fi
9511
9512   ;;
9513
9514  *)
9515    { echo "$as_me:$LINENO: checking for shl_load" >&5
9516echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9517if test "${ac_cv_func_shl_load+set}" = set; then
9518  echo $ECHO_N "(cached) $ECHO_C" >&6
9519else
9520  cat >conftest.$ac_ext <<_ACEOF
9521/* confdefs.h.  */
9522_ACEOF
9523cat confdefs.h >>conftest.$ac_ext
9524cat >>conftest.$ac_ext <<_ACEOF
9525/* end confdefs.h.  */
9526/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9527   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9528#define shl_load innocuous_shl_load
9529
9530/* System header to define __stub macros and hopefully few prototypes,
9531    which can conflict with char shl_load (); below.
9532    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9533    <limits.h> exists even on freestanding compilers.  */
9534
9535#ifdef __STDC__
9536# include <limits.h>
9537#else
9538# include <assert.h>
9539#endif
9540
9541#undef shl_load
9542
9543/* Override any GCC internal prototype to avoid an error.
9544   Use char because int might match the return type of a GCC
9545   builtin and then its argument prototype would still apply.  */
9546#ifdef __cplusplus
9547extern "C"
9548#endif
9549char shl_load ();
9550/* The GNU C library defines this for functions which it implements
9551    to always fail with ENOSYS.  Some functions are actually named
9552    something starting with __ and the normal name is an alias.  */
9553#if defined __stub_shl_load || defined __stub___shl_load
9554choke me
9555#endif
9556
9557int
9558main ()
9559{
9560return shl_load ();
9561  ;
9562  return 0;
9563}
9564_ACEOF
9565rm -f conftest.$ac_objext conftest$ac_exeext
9566if { (ac_try="$ac_link"
9567case "(($ac_try" in
9568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569  *) ac_try_echo=$ac_try;;
9570esac
9571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572  (eval "$ac_link") 2>conftest.er1
9573  ac_status=$?
9574  grep -v '^ *+' conftest.er1 >conftest.err
9575  rm -f conftest.er1
9576  cat conftest.err >&5
9577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578  (exit $ac_status); } && {
9579	 test -z "$ac_c_werror_flag" ||
9580	 test ! -s conftest.err
9581       } && test -s conftest$ac_exeext &&
9582       $as_test_x conftest$ac_exeext; then
9583  ac_cv_func_shl_load=yes
9584else
9585  echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
9588	ac_cv_func_shl_load=no
9589fi
9590
9591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592      conftest$ac_exeext conftest.$ac_ext
9593fi
9594{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9595echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9596if test $ac_cv_func_shl_load = yes; then
9597  lt_cv_dlopen="shl_load"
9598else
9599  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9600echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9601if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9602  echo $ECHO_N "(cached) $ECHO_C" >&6
9603else
9604  ac_check_lib_save_LIBS=$LIBS
9605LIBS="-ldld  $LIBS"
9606cat >conftest.$ac_ext <<_ACEOF
9607/* confdefs.h.  */
9608_ACEOF
9609cat confdefs.h >>conftest.$ac_ext
9610cat >>conftest.$ac_ext <<_ACEOF
9611/* end confdefs.h.  */
9612
9613/* Override any GCC internal prototype to avoid an error.
9614   Use char because int might match the return type of a GCC
9615   builtin and then its argument prototype would still apply.  */
9616#ifdef __cplusplus
9617extern "C"
9618#endif
9619char shl_load ();
9620int
9621main ()
9622{
9623return shl_load ();
9624  ;
9625  return 0;
9626}
9627_ACEOF
9628rm -f conftest.$ac_objext conftest$ac_exeext
9629if { (ac_try="$ac_link"
9630case "(($ac_try" in
9631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632  *) ac_try_echo=$ac_try;;
9633esac
9634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635  (eval "$ac_link") 2>conftest.er1
9636  ac_status=$?
9637  grep -v '^ *+' conftest.er1 >conftest.err
9638  rm -f conftest.er1
9639  cat conftest.err >&5
9640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641  (exit $ac_status); } && {
9642	 test -z "$ac_c_werror_flag" ||
9643	 test ! -s conftest.err
9644       } && test -s conftest$ac_exeext &&
9645       $as_test_x conftest$ac_exeext; then
9646  ac_cv_lib_dld_shl_load=yes
9647else
9648  echo "$as_me: failed program was:" >&5
9649sed 's/^/| /' conftest.$ac_ext >&5
9650
9651	ac_cv_lib_dld_shl_load=no
9652fi
9653
9654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9655      conftest$ac_exeext conftest.$ac_ext
9656LIBS=$ac_check_lib_save_LIBS
9657fi
9658{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9659echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9660if test $ac_cv_lib_dld_shl_load = yes; then
9661  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9662else
9663  { echo "$as_me:$LINENO: checking for dlopen" >&5
9664echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9665if test "${ac_cv_func_dlopen+set}" = set; then
9666  echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
9668  cat >conftest.$ac_ext <<_ACEOF
9669/* confdefs.h.  */
9670_ACEOF
9671cat confdefs.h >>conftest.$ac_ext
9672cat >>conftest.$ac_ext <<_ACEOF
9673/* end confdefs.h.  */
9674/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9675   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9676#define dlopen innocuous_dlopen
9677
9678/* System header to define __stub macros and hopefully few prototypes,
9679    which can conflict with char dlopen (); below.
9680    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9681    <limits.h> exists even on freestanding compilers.  */
9682
9683#ifdef __STDC__
9684# include <limits.h>
9685#else
9686# include <assert.h>
9687#endif
9688
9689#undef dlopen
9690
9691/* Override any GCC internal prototype to avoid an error.
9692   Use char because int might match the return type of a GCC
9693   builtin and then its argument prototype would still apply.  */
9694#ifdef __cplusplus
9695extern "C"
9696#endif
9697char dlopen ();
9698/* The GNU C library defines this for functions which it implements
9699    to always fail with ENOSYS.  Some functions are actually named
9700    something starting with __ and the normal name is an alias.  */
9701#if defined __stub_dlopen || defined __stub___dlopen
9702choke me
9703#endif
9704
9705int
9706main ()
9707{
9708return dlopen ();
9709  ;
9710  return 0;
9711}
9712_ACEOF
9713rm -f conftest.$ac_objext conftest$ac_exeext
9714if { (ac_try="$ac_link"
9715case "(($ac_try" in
9716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717  *) ac_try_echo=$ac_try;;
9718esac
9719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720  (eval "$ac_link") 2>conftest.er1
9721  ac_status=$?
9722  grep -v '^ *+' conftest.er1 >conftest.err
9723  rm -f conftest.er1
9724  cat conftest.err >&5
9725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726  (exit $ac_status); } && {
9727	 test -z "$ac_c_werror_flag" ||
9728	 test ! -s conftest.err
9729       } && test -s conftest$ac_exeext &&
9730       $as_test_x conftest$ac_exeext; then
9731  ac_cv_func_dlopen=yes
9732else
9733  echo "$as_me: failed program was:" >&5
9734sed 's/^/| /' conftest.$ac_ext >&5
9735
9736	ac_cv_func_dlopen=no
9737fi
9738
9739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740      conftest$ac_exeext conftest.$ac_ext
9741fi
9742{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9743echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9744if test $ac_cv_func_dlopen = yes; then
9745  lt_cv_dlopen="dlopen"
9746else
9747  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9748echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9749if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9750  echo $ECHO_N "(cached) $ECHO_C" >&6
9751else
9752  ac_check_lib_save_LIBS=$LIBS
9753LIBS="-ldl  $LIBS"
9754cat >conftest.$ac_ext <<_ACEOF
9755/* confdefs.h.  */
9756_ACEOF
9757cat confdefs.h >>conftest.$ac_ext
9758cat >>conftest.$ac_ext <<_ACEOF
9759/* end confdefs.h.  */
9760
9761/* Override any GCC internal prototype to avoid an error.
9762   Use char because int might match the return type of a GCC
9763   builtin and then its argument prototype would still apply.  */
9764#ifdef __cplusplus
9765extern "C"
9766#endif
9767char dlopen ();
9768int
9769main ()
9770{
9771return dlopen ();
9772  ;
9773  return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext conftest$ac_exeext
9777if { (ac_try="$ac_link"
9778case "(($ac_try" in
9779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780  *) ac_try_echo=$ac_try;;
9781esac
9782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783  (eval "$ac_link") 2>conftest.er1
9784  ac_status=$?
9785  grep -v '^ *+' conftest.er1 >conftest.err
9786  rm -f conftest.er1
9787  cat conftest.err >&5
9788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789  (exit $ac_status); } && {
9790	 test -z "$ac_c_werror_flag" ||
9791	 test ! -s conftest.err
9792       } && test -s conftest$ac_exeext &&
9793       $as_test_x conftest$ac_exeext; then
9794  ac_cv_lib_dl_dlopen=yes
9795else
9796  echo "$as_me: failed program was:" >&5
9797sed 's/^/| /' conftest.$ac_ext >&5
9798
9799	ac_cv_lib_dl_dlopen=no
9800fi
9801
9802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9803      conftest$ac_exeext conftest.$ac_ext
9804LIBS=$ac_check_lib_save_LIBS
9805fi
9806{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9807echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9808if test $ac_cv_lib_dl_dlopen = yes; then
9809  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9810else
9811  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9812echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9813if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9814  echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816  ac_check_lib_save_LIBS=$LIBS
9817LIBS="-lsvld  $LIBS"
9818cat >conftest.$ac_ext <<_ACEOF
9819/* confdefs.h.  */
9820_ACEOF
9821cat confdefs.h >>conftest.$ac_ext
9822cat >>conftest.$ac_ext <<_ACEOF
9823/* end confdefs.h.  */
9824
9825/* Override any GCC internal prototype to avoid an error.
9826   Use char because int might match the return type of a GCC
9827   builtin and then its argument prototype would still apply.  */
9828#ifdef __cplusplus
9829extern "C"
9830#endif
9831char dlopen ();
9832int
9833main ()
9834{
9835return dlopen ();
9836  ;
9837  return 0;
9838}
9839_ACEOF
9840rm -f conftest.$ac_objext conftest$ac_exeext
9841if { (ac_try="$ac_link"
9842case "(($ac_try" in
9843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844  *) ac_try_echo=$ac_try;;
9845esac
9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847  (eval "$ac_link") 2>conftest.er1
9848  ac_status=$?
9849  grep -v '^ *+' conftest.er1 >conftest.err
9850  rm -f conftest.er1
9851  cat conftest.err >&5
9852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853  (exit $ac_status); } && {
9854	 test -z "$ac_c_werror_flag" ||
9855	 test ! -s conftest.err
9856       } && test -s conftest$ac_exeext &&
9857       $as_test_x conftest$ac_exeext; then
9858  ac_cv_lib_svld_dlopen=yes
9859else
9860  echo "$as_me: failed program was:" >&5
9861sed 's/^/| /' conftest.$ac_ext >&5
9862
9863	ac_cv_lib_svld_dlopen=no
9864fi
9865
9866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9867      conftest$ac_exeext conftest.$ac_ext
9868LIBS=$ac_check_lib_save_LIBS
9869fi
9870{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9871echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9872if test $ac_cv_lib_svld_dlopen = yes; then
9873  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9874else
9875  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9876echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9877if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9878  echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
9880  ac_check_lib_save_LIBS=$LIBS
9881LIBS="-ldld  $LIBS"
9882cat >conftest.$ac_ext <<_ACEOF
9883/* confdefs.h.  */
9884_ACEOF
9885cat confdefs.h >>conftest.$ac_ext
9886cat >>conftest.$ac_ext <<_ACEOF
9887/* end confdefs.h.  */
9888
9889/* Override any GCC internal prototype to avoid an error.
9890   Use char because int might match the return type of a GCC
9891   builtin and then its argument prototype would still apply.  */
9892#ifdef __cplusplus
9893extern "C"
9894#endif
9895char dld_link ();
9896int
9897main ()
9898{
9899return dld_link ();
9900  ;
9901  return 0;
9902}
9903_ACEOF
9904rm -f conftest.$ac_objext conftest$ac_exeext
9905if { (ac_try="$ac_link"
9906case "(($ac_try" in
9907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908  *) ac_try_echo=$ac_try;;
9909esac
9910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911  (eval "$ac_link") 2>conftest.er1
9912  ac_status=$?
9913  grep -v '^ *+' conftest.er1 >conftest.err
9914  rm -f conftest.er1
9915  cat conftest.err >&5
9916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917  (exit $ac_status); } && {
9918	 test -z "$ac_c_werror_flag" ||
9919	 test ! -s conftest.err
9920       } && test -s conftest$ac_exeext &&
9921       $as_test_x conftest$ac_exeext; then
9922  ac_cv_lib_dld_dld_link=yes
9923else
9924  echo "$as_me: failed program was:" >&5
9925sed 's/^/| /' conftest.$ac_ext >&5
9926
9927	ac_cv_lib_dld_dld_link=no
9928fi
9929
9930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9931      conftest$ac_exeext conftest.$ac_ext
9932LIBS=$ac_check_lib_save_LIBS
9933fi
9934{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9935echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9936if test $ac_cv_lib_dld_dld_link = yes; then
9937  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9938fi
9939
9940
9941fi
9942
9943
9944fi
9945
9946
9947fi
9948
9949
9950fi
9951
9952
9953fi
9954
9955    ;;
9956  esac
9957
9958  if test "x$lt_cv_dlopen" != xno; then
9959    enable_dlopen=yes
9960  else
9961    enable_dlopen=no
9962  fi
9963
9964  case $lt_cv_dlopen in
9965  dlopen)
9966    save_CPPFLAGS="$CPPFLAGS"
9967    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9968
9969    save_LDFLAGS="$LDFLAGS"
9970    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9971
9972    save_LIBS="$LIBS"
9973    LIBS="$lt_cv_dlopen_libs $LIBS"
9974
9975    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9976echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9977if test "${lt_cv_dlopen_self+set}" = set; then
9978  echo $ECHO_N "(cached) $ECHO_C" >&6
9979else
9980  	  if test "$cross_compiling" = yes; then :
9981  lt_cv_dlopen_self=cross
9982else
9983  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9984  lt_status=$lt_dlunknown
9985  cat > conftest.$ac_ext <<EOF
9986#line 9986 "configure"
9987#include "confdefs.h"
9988
9989#if HAVE_DLFCN_H
9990#include <dlfcn.h>
9991#endif
9992
9993#include <stdio.h>
9994
9995#ifdef RTLD_GLOBAL
9996#  define LT_DLGLOBAL		RTLD_GLOBAL
9997#else
9998#  ifdef DL_GLOBAL
9999#    define LT_DLGLOBAL		DL_GLOBAL
10000#  else
10001#    define LT_DLGLOBAL		0
10002#  endif
10003#endif
10004
10005/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10006   find out it does not work in some platform. */
10007#ifndef LT_DLLAZY_OR_NOW
10008#  ifdef RTLD_LAZY
10009#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10010#  else
10011#    ifdef DL_LAZY
10012#      define LT_DLLAZY_OR_NOW		DL_LAZY
10013#    else
10014#      ifdef RTLD_NOW
10015#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10016#      else
10017#        ifdef DL_NOW
10018#          define LT_DLLAZY_OR_NOW	DL_NOW
10019#        else
10020#          define LT_DLLAZY_OR_NOW	0
10021#        endif
10022#      endif
10023#    endif
10024#  endif
10025#endif
10026
10027#ifdef __cplusplus
10028extern "C" void exit (int);
10029#endif
10030
10031void fnord() { int i=42;}
10032int main ()
10033{
10034  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10035  int status = $lt_dlunknown;
10036
10037  if (self)
10038    {
10039      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10040      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10041      /* dlclose (self); */
10042    }
10043  else
10044    puts (dlerror ());
10045
10046    exit (status);
10047}
10048EOF
10049  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10050  (eval $ac_link) 2>&5
10051  ac_status=$?
10052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10054    (./conftest; exit; ) >&5 2>/dev/null
10055    lt_status=$?
10056    case x$lt_status in
10057      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10058      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10059      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10060    esac
10061  else :
10062    # compilation failed
10063    lt_cv_dlopen_self=no
10064  fi
10065fi
10066rm -fr conftest*
10067
10068
10069fi
10070{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10071echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10072
10073    if test "x$lt_cv_dlopen_self" = xyes; then
10074      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10075      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10076echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10077if test "${lt_cv_dlopen_self_static+set}" = set; then
10078  echo $ECHO_N "(cached) $ECHO_C" >&6
10079else
10080  	  if test "$cross_compiling" = yes; then :
10081  lt_cv_dlopen_self_static=cross
10082else
10083  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10084  lt_status=$lt_dlunknown
10085  cat > conftest.$ac_ext <<EOF
10086#line 10086 "configure"
10087#include "confdefs.h"
10088
10089#if HAVE_DLFCN_H
10090#include <dlfcn.h>
10091#endif
10092
10093#include <stdio.h>
10094
10095#ifdef RTLD_GLOBAL
10096#  define LT_DLGLOBAL		RTLD_GLOBAL
10097#else
10098#  ifdef DL_GLOBAL
10099#    define LT_DLGLOBAL		DL_GLOBAL
10100#  else
10101#    define LT_DLGLOBAL		0
10102#  endif
10103#endif
10104
10105/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10106   find out it does not work in some platform. */
10107#ifndef LT_DLLAZY_OR_NOW
10108#  ifdef RTLD_LAZY
10109#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10110#  else
10111#    ifdef DL_LAZY
10112#      define LT_DLLAZY_OR_NOW		DL_LAZY
10113#    else
10114#      ifdef RTLD_NOW
10115#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10116#      else
10117#        ifdef DL_NOW
10118#          define LT_DLLAZY_OR_NOW	DL_NOW
10119#        else
10120#          define LT_DLLAZY_OR_NOW	0
10121#        endif
10122#      endif
10123#    endif
10124#  endif
10125#endif
10126
10127#ifdef __cplusplus
10128extern "C" void exit (int);
10129#endif
10130
10131void fnord() { int i=42;}
10132int main ()
10133{
10134  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10135  int status = $lt_dlunknown;
10136
10137  if (self)
10138    {
10139      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10140      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10141      /* dlclose (self); */
10142    }
10143  else
10144    puts (dlerror ());
10145
10146    exit (status);
10147}
10148EOF
10149  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150  (eval $ac_link) 2>&5
10151  ac_status=$?
10152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10154    (./conftest; exit; ) >&5 2>/dev/null
10155    lt_status=$?
10156    case x$lt_status in
10157      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10158      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10159      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10160    esac
10161  else :
10162    # compilation failed
10163    lt_cv_dlopen_self_static=no
10164  fi
10165fi
10166rm -fr conftest*
10167
10168
10169fi
10170{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10171echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10172    fi
10173
10174    CPPFLAGS="$save_CPPFLAGS"
10175    LDFLAGS="$save_LDFLAGS"
10176    LIBS="$save_LIBS"
10177    ;;
10178  esac
10179
10180  case $lt_cv_dlopen_self in
10181  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10182  *) enable_dlopen_self=unknown ;;
10183  esac
10184
10185  case $lt_cv_dlopen_self_static in
10186  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10187  *) enable_dlopen_self_static=unknown ;;
10188  esac
10189fi
10190
10191
10192# Report which library types will actually be built
10193{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10194echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10195{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10196echo "${ECHO_T}$can_build_shared" >&6; }
10197
10198{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10199echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10200test "$can_build_shared" = "no" && enable_shared=no
10201
10202# On AIX, shared libraries and static libraries use the same namespace, and
10203# are all built from PIC.
10204case $host_os in
10205aix3*)
10206  test "$enable_shared" = yes && enable_static=no
10207  if test -n "$RANLIB"; then
10208    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10209    postinstall_cmds='$RANLIB $lib'
10210  fi
10211  ;;
10212
10213aix4* | aix5*)
10214  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10215    test "$enable_shared" = yes && enable_static=no
10216  fi
10217    ;;
10218esac
10219{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10220echo "${ECHO_T}$enable_shared" >&6; }
10221
10222{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10223echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10224# Make sure either enable_shared or enable_static is yes.
10225test "$enable_shared" = yes || enable_static=yes
10226{ echo "$as_me:$LINENO: result: $enable_static" >&5
10227echo "${ECHO_T}$enable_static" >&6; }
10228
10229# The else clause should only fire when bootstrapping the
10230# libtool distribution, otherwise you forgot to ship ltmain.sh
10231# with your package, and you will get complaints that there are
10232# no rules to generate ltmain.sh.
10233if test -f "$ltmain"; then
10234  # See if we are running on zsh, and set the options which allow our commands through
10235  # without removal of \ escapes.
10236  if test -n "${ZSH_VERSION+set}" ; then
10237    setopt NO_GLOB_SUBST
10238  fi
10239  # Now quote all the things that may contain metacharacters while being
10240  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10241  # variables and quote the copies for generation of the libtool script.
10242  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10243    SED SHELL STRIP \
10244    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10245    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10246    deplibs_check_method reload_flag reload_cmds need_locks \
10247    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10248    lt_cv_sys_global_symbol_to_c_name_address \
10249    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10250    old_postinstall_cmds old_postuninstall_cmds \
10251    compiler \
10252    CC \
10253    LD \
10254    lt_prog_compiler_wl \
10255    lt_prog_compiler_pic \
10256    lt_prog_compiler_static \
10257    lt_prog_compiler_no_builtin_flag \
10258    export_dynamic_flag_spec \
10259    thread_safe_flag_spec \
10260    whole_archive_flag_spec \
10261    enable_shared_with_static_runtimes \
10262    old_archive_cmds \
10263    old_archive_from_new_cmds \
10264    predep_objects \
10265    postdep_objects \
10266    predeps \
10267    postdeps \
10268    compiler_lib_search_path \
10269    archive_cmds \
10270    archive_expsym_cmds \
10271    postinstall_cmds \
10272    postuninstall_cmds \
10273    old_archive_from_expsyms_cmds \
10274    allow_undefined_flag \
10275    no_undefined_flag \
10276    export_symbols_cmds \
10277    hardcode_libdir_flag_spec \
10278    hardcode_libdir_flag_spec_ld \
10279    hardcode_libdir_separator \
10280    hardcode_automatic \
10281    module_cmds \
10282    module_expsym_cmds \
10283    lt_cv_prog_compiler_c_o \
10284    fix_srcfile_path \
10285    exclude_expsyms \
10286    include_expsyms; do
10287
10288    case $var in
10289    old_archive_cmds | \
10290    old_archive_from_new_cmds | \
10291    archive_cmds | \
10292    archive_expsym_cmds | \
10293    module_cmds | \
10294    module_expsym_cmds | \
10295    old_archive_from_expsyms_cmds | \
10296    export_symbols_cmds | \
10297    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10298    postinstall_cmds | postuninstall_cmds | \
10299    old_postinstall_cmds | old_postuninstall_cmds | \
10300    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10301      # Double-quote double-evaled strings.
10302      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10303      ;;
10304    *)
10305      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10306      ;;
10307    esac
10308  done
10309
10310  case $lt_echo in
10311  *'\$0 --fallback-echo"')
10312    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10313    ;;
10314  esac
10315
10316cfgfile="${ofile}T"
10317  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10318  $rm -f "$cfgfile"
10319  { echo "$as_me:$LINENO: creating $ofile" >&5
10320echo "$as_me: creating $ofile" >&6;}
10321
10322  cat <<__EOF__ >> "$cfgfile"
10323#! $SHELL
10324
10325# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10326# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10327# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10328#
10329# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10330# Free Software Foundation, Inc.
10331#
10332# This file is part of GNU Libtool:
10333# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10334#
10335# This program is free software; you can redistribute it and/or modify
10336# it under the terms of the GNU General Public License as published by
10337# the Free Software Foundation; either version 2 of the License, or
10338# (at your option) any later version.
10339#
10340# This program is distributed in the hope that it will be useful, but
10341# WITHOUT ANY WARRANTY; without even the implied warranty of
10342# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10343# General Public License for more details.
10344#
10345# You should have received a copy of the GNU General Public License
10346# along with this program; if not, write to the Free Software
10347# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10348#
10349# As a special exception to the GNU General Public License, if you
10350# distribute this file as part of a program that contains a
10351# configuration script generated by Autoconf, you may include it under
10352# the same distribution terms that you use for the rest of that program.
10353
10354# A sed program that does not truncate output.
10355SED=$lt_SED
10356
10357# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10358Xsed="$SED -e 1s/^X//"
10359
10360# The HP-UX ksh and POSIX shell print the target directory to stdout
10361# if CDPATH is set.
10362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10363
10364# The names of the tagged configurations supported by this script.
10365available_tags=
10366
10367# ### BEGIN LIBTOOL CONFIG
10368
10369# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10370
10371# Shell to use when invoking shell scripts.
10372SHELL=$lt_SHELL
10373
10374# Whether or not to build shared libraries.
10375build_libtool_libs=$enable_shared
10376
10377# Whether or not to build static libraries.
10378build_old_libs=$enable_static
10379
10380# Whether or not to add -lc for building shared libraries.
10381build_libtool_need_lc=$archive_cmds_need_lc
10382
10383# Whether or not to disallow shared libs when runtime libs are static
10384allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10385
10386# Whether or not to optimize for fast installation.
10387fast_install=$enable_fast_install
10388
10389# The host system.
10390host_alias=$host_alias
10391host=$host
10392host_os=$host_os
10393
10394# The build system.
10395build_alias=$build_alias
10396build=$build
10397build_os=$build_os
10398
10399# An echo program that does not interpret backslashes.
10400echo=$lt_echo
10401
10402# The archiver.
10403AR=$lt_AR
10404AR_FLAGS=$lt_AR_FLAGS
10405
10406# A C compiler.
10407LTCC=$lt_LTCC
10408
10409# LTCC compiler flags.
10410LTCFLAGS=$lt_LTCFLAGS
10411
10412# A language-specific compiler.
10413CC=$lt_compiler
10414
10415# Is the compiler the GNU C compiler?
10416with_gcc=$GCC
10417
10418# An ERE matcher.
10419EGREP=$lt_EGREP
10420
10421# The linker used to build libraries.
10422LD=$lt_LD
10423
10424# Whether we need hard or soft links.
10425LN_S=$lt_LN_S
10426
10427# A BSD-compatible nm program.
10428NM=$lt_NM
10429
10430# A symbol stripping program
10431STRIP=$lt_STRIP
10432
10433# Used to examine libraries when file_magic_cmd begins "file"
10434MAGIC_CMD=$MAGIC_CMD
10435
10436# Used on cygwin: DLL creation program.
10437DLLTOOL="$DLLTOOL"
10438
10439# Used on cygwin: object dumper.
10440OBJDUMP="$OBJDUMP"
10441
10442# Used on cygwin: assembler.
10443AS="$AS"
10444
10445# The name of the directory that contains temporary libtool files.
10446objdir=$objdir
10447
10448# How to create reloadable object files.
10449reload_flag=$lt_reload_flag
10450reload_cmds=$lt_reload_cmds
10451
10452# How to pass a linker flag through the compiler.
10453wl=$lt_lt_prog_compiler_wl
10454
10455# Object file suffix (normally "o").
10456objext="$ac_objext"
10457
10458# Old archive suffix (normally "a").
10459libext="$libext"
10460
10461# Shared library suffix (normally ".so").
10462shrext_cmds='$shrext_cmds'
10463
10464# Executable file suffix (normally "").
10465exeext="$exeext"
10466
10467# Additional compiler flags for building library objects.
10468pic_flag=$lt_lt_prog_compiler_pic
10469pic_mode=$pic_mode
10470
10471# What is the maximum length of a command?
10472max_cmd_len=$lt_cv_sys_max_cmd_len
10473
10474# Does compiler simultaneously support -c and -o options?
10475compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10476
10477# Must we lock files when doing compilation?
10478need_locks=$lt_need_locks
10479
10480# Do we need the lib prefix for modules?
10481need_lib_prefix=$need_lib_prefix
10482
10483# Do we need a version for libraries?
10484need_version=$need_version
10485
10486# Whether dlopen is supported.
10487dlopen_support=$enable_dlopen
10488
10489# Whether dlopen of programs is supported.
10490dlopen_self=$enable_dlopen_self
10491
10492# Whether dlopen of statically linked programs is supported.
10493dlopen_self_static=$enable_dlopen_self_static
10494
10495# Compiler flag to prevent dynamic linking.
10496link_static_flag=$lt_lt_prog_compiler_static
10497
10498# Compiler flag to turn off builtin functions.
10499no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10500
10501# Compiler flag to allow reflexive dlopens.
10502export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10503
10504# Compiler flag to generate shared objects directly from archives.
10505whole_archive_flag_spec=$lt_whole_archive_flag_spec
10506
10507# Compiler flag to generate thread-safe objects.
10508thread_safe_flag_spec=$lt_thread_safe_flag_spec
10509
10510# Library versioning type.
10511version_type=$version_type
10512
10513# Format of library name prefix.
10514libname_spec=$lt_libname_spec
10515
10516# List of archive names.  First name is the real one, the rest are links.
10517# The last name is the one that the linker finds with -lNAME.
10518library_names_spec=$lt_library_names_spec
10519
10520# The coded name of the library, if different from the real name.
10521soname_spec=$lt_soname_spec
10522
10523# Commands used to build and install an old-style archive.
10524RANLIB=$lt_RANLIB
10525old_archive_cmds=$lt_old_archive_cmds
10526old_postinstall_cmds=$lt_old_postinstall_cmds
10527old_postuninstall_cmds=$lt_old_postuninstall_cmds
10528
10529# Create an old-style archive from a shared archive.
10530old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10531
10532# Create a temporary old-style archive to link instead of a shared archive.
10533old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10534
10535# Commands used to build and install a shared archive.
10536archive_cmds=$lt_archive_cmds
10537archive_expsym_cmds=$lt_archive_expsym_cmds
10538postinstall_cmds=$lt_postinstall_cmds
10539postuninstall_cmds=$lt_postuninstall_cmds
10540
10541# Commands used to build a loadable module (assumed same as above if empty)
10542module_cmds=$lt_module_cmds
10543module_expsym_cmds=$lt_module_expsym_cmds
10544
10545# Commands to strip libraries.
10546old_striplib=$lt_old_striplib
10547striplib=$lt_striplib
10548
10549# Dependencies to place before the objects being linked to create a
10550# shared library.
10551predep_objects=$lt_predep_objects
10552
10553# Dependencies to place after the objects being linked to create a
10554# shared library.
10555postdep_objects=$lt_postdep_objects
10556
10557# Dependencies to place before the objects being linked to create a
10558# shared library.
10559predeps=$lt_predeps
10560
10561# Dependencies to place after the objects being linked to create a
10562# shared library.
10563postdeps=$lt_postdeps
10564
10565# The library search path used internally by the compiler when linking
10566# a shared library.
10567compiler_lib_search_path=$lt_compiler_lib_search_path
10568
10569# Method to check whether dependent libraries are shared objects.
10570deplibs_check_method=$lt_deplibs_check_method
10571
10572# Command to use when deplibs_check_method == file_magic.
10573file_magic_cmd=$lt_file_magic_cmd
10574
10575# Flag that allows shared libraries with undefined symbols to be built.
10576allow_undefined_flag=$lt_allow_undefined_flag
10577
10578# Flag that forces no undefined symbols.
10579no_undefined_flag=$lt_no_undefined_flag
10580
10581# Commands used to finish a libtool library installation in a directory.
10582finish_cmds=$lt_finish_cmds
10583
10584# Same as above, but a single script fragment to be evaled but not shown.
10585finish_eval=$lt_finish_eval
10586
10587# Take the output of nm and produce a listing of raw symbols and C names.
10588global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10589
10590# Transform the output of nm in a proper C declaration
10591global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10592
10593# Transform the output of nm in a C name address pair
10594global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10595
10596# This is the shared library runtime path variable.
10597runpath_var=$runpath_var
10598
10599# This is the shared library path variable.
10600shlibpath_var=$shlibpath_var
10601
10602# Is shlibpath searched before the hard-coded library search path?
10603shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10604
10605# How to hardcode a shared library path into an executable.
10606hardcode_action=$hardcode_action
10607
10608# Whether we should hardcode library paths into libraries.
10609hardcode_into_libs=$hardcode_into_libs
10610
10611# Flag to hardcode \$libdir into a binary during linking.
10612# This must work even if \$libdir does not exist.
10613hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10614
10615# If ld is used when linking, flag to hardcode \$libdir into
10616# a binary during linking. This must work even if \$libdir does
10617# not exist.
10618hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10619
10620# Whether we need a single -rpath flag with a separated argument.
10621hardcode_libdir_separator=$lt_hardcode_libdir_separator
10622
10623# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10624# resulting binary.
10625hardcode_direct=$hardcode_direct
10626
10627# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10628# resulting binary.
10629hardcode_minus_L=$hardcode_minus_L
10630
10631# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10632# the resulting binary.
10633hardcode_shlibpath_var=$hardcode_shlibpath_var
10634
10635# Set to yes if building a shared library automatically hardcodes DIR into the library
10636# and all subsequent libraries and executables linked against it.
10637hardcode_automatic=$hardcode_automatic
10638
10639# Variables whose values should be saved in libtool wrapper scripts and
10640# restored at relink time.
10641variables_saved_for_relink="$variables_saved_for_relink"
10642
10643# Whether libtool must link a program against all its dependency libraries.
10644link_all_deplibs=$link_all_deplibs
10645
10646# Compile-time system search path for libraries
10647sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10648
10649# Run-time system search path for libraries
10650sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10651
10652# Fix the shell variable \$srcfile for the compiler.
10653fix_srcfile_path=$lt_fix_srcfile_path
10654
10655# Set to yes if exported symbols are required.
10656always_export_symbols=$always_export_symbols
10657
10658# The commands to list exported symbols.
10659export_symbols_cmds=$lt_export_symbols_cmds
10660
10661# The commands to extract the exported symbol list from a shared archive.
10662extract_expsyms_cmds=$lt_extract_expsyms_cmds
10663
10664# Symbols that should not be listed in the preloaded symbols.
10665exclude_expsyms=$lt_exclude_expsyms
10666
10667# Symbols that must always be exported.
10668include_expsyms=$lt_include_expsyms
10669
10670# ### END LIBTOOL CONFIG
10671
10672__EOF__
10673
10674
10675  case $host_os in
10676  aix3*)
10677    cat <<\EOF >> "$cfgfile"
10678
10679# AIX sometimes has problems with the GCC collect2 program.  For some
10680# reason, if we set the COLLECT_NAMES environment variable, the problems
10681# vanish in a puff of smoke.
10682if test "X${COLLECT_NAMES+set}" != Xset; then
10683  COLLECT_NAMES=
10684  export COLLECT_NAMES
10685fi
10686EOF
10687    ;;
10688  esac
10689
10690  # We use sed instead of cat because bash on DJGPP gets confused if
10691  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10692  # text mode, it properly converts lines to CR/LF.  This bash problem
10693  # is reportedly fixed, but why not run on old versions too?
10694  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10695
10696  mv -f "$cfgfile" "$ofile" || \
10697    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10698  chmod +x "$ofile"
10699
10700else
10701  # If there is no Makefile yet, we rely on a make rule to execute
10702  # `config.status --recheck' to rerun these tests and create the
10703  # libtool script then.
10704  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10705  if test -f "$ltmain_in"; then
10706    test -f Makefile && make "$ltmain"
10707  fi
10708fi
10709
10710
10711ac_ext=c
10712ac_cpp='$CPP $CPPFLAGS'
10713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715ac_compiler_gnu=$ac_cv_c_compiler_gnu
10716
10717CC="$lt_save_CC"
10718
10719
10720# Check whether --with-tags was given.
10721if test "${with_tags+set}" = set; then
10722  withval=$with_tags; tagnames="$withval"
10723fi
10724
10725
10726if test -f "$ltmain" && test -n "$tagnames"; then
10727  if test ! -f "${ofile}"; then
10728    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10729echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10730  fi
10731
10732  if test -z "$LTCC"; then
10733    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10734    if test -z "$LTCC"; then
10735      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10736echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10737    else
10738      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10739echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10740    fi
10741  fi
10742  if test -z "$LTCFLAGS"; then
10743    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10744  fi
10745
10746  # Extract list of available tagged configurations in $ofile.
10747  # Note that this assumes the entire list is on one line.
10748  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10749
10750  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10751  for tagname in $tagnames; do
10752    IFS="$lt_save_ifs"
10753    # Check whether tagname contains only valid characters
10754    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10755    "") ;;
10756    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10757echo "$as_me: error: invalid tag name: $tagname" >&2;}
10758   { (exit 1); exit 1; }; }
10759	;;
10760    esac
10761
10762    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10763    then
10764      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10765echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10766   { (exit 1); exit 1; }; }
10767    fi
10768
10769    # Update the list of available tags.
10770    if test -n "$tagname"; then
10771      echo appending configuration tag \"$tagname\" to $ofile
10772
10773      case $tagname in
10774      CXX)
10775	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10776	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10777	    (test "X$CXX" != "Xg++"))) ; then
10778	  ac_ext=cpp
10779ac_cpp='$CXXCPP $CPPFLAGS'
10780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10783
10784
10785
10786
10787archive_cmds_need_lc_CXX=no
10788allow_undefined_flag_CXX=
10789always_export_symbols_CXX=no
10790archive_expsym_cmds_CXX=
10791export_dynamic_flag_spec_CXX=
10792hardcode_direct_CXX=no
10793hardcode_libdir_flag_spec_CXX=
10794hardcode_libdir_flag_spec_ld_CXX=
10795hardcode_libdir_separator_CXX=
10796hardcode_minus_L_CXX=no
10797hardcode_shlibpath_var_CXX=unsupported
10798hardcode_automatic_CXX=no
10799module_cmds_CXX=
10800module_expsym_cmds_CXX=
10801link_all_deplibs_CXX=unknown
10802old_archive_cmds_CXX=$old_archive_cmds
10803no_undefined_flag_CXX=
10804whole_archive_flag_spec_CXX=
10805enable_shared_with_static_runtimes_CXX=no
10806
10807# Dependencies to place before and after the object being linked:
10808predep_objects_CXX=
10809postdep_objects_CXX=
10810predeps_CXX=
10811postdeps_CXX=
10812compiler_lib_search_path_CXX=
10813
10814# Source file extension for C++ test sources.
10815ac_ext=cpp
10816
10817# Object file extension for compiled C++ test sources.
10818objext=o
10819objext_CXX=$objext
10820
10821# Code to be used in simple compile tests
10822lt_simple_compile_test_code="int some_variable = 0;"
10823
10824# Code to be used in simple link tests
10825lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10826
10827# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10828
10829# If no C compiler was specified, use CC.
10830LTCC=${LTCC-"$CC"}
10831
10832# If no C compiler flags were specified, use CFLAGS.
10833LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10834
10835# Allow CC to be a program name with arguments.
10836compiler=$CC
10837
10838
10839# save warnings/boilerplate of simple test code
10840ac_outfile=conftest.$ac_objext
10841echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10842eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10843_lt_compiler_boilerplate=`cat conftest.err`
10844$rm conftest*
10845
10846ac_outfile=conftest.$ac_objext
10847echo "$lt_simple_link_test_code" >conftest.$ac_ext
10848eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10849_lt_linker_boilerplate=`cat conftest.err`
10850$rm conftest*
10851
10852
10853# Allow CC to be a program name with arguments.
10854lt_save_CC=$CC
10855lt_save_LD=$LD
10856lt_save_GCC=$GCC
10857GCC=$GXX
10858lt_save_with_gnu_ld=$with_gnu_ld
10859lt_save_path_LD=$lt_cv_path_LD
10860if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10861  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10862else
10863  $as_unset lt_cv_prog_gnu_ld
10864fi
10865if test -n "${lt_cv_path_LDCXX+set}"; then
10866  lt_cv_path_LD=$lt_cv_path_LDCXX
10867else
10868  $as_unset lt_cv_path_LD
10869fi
10870test -z "${LDCXX+set}" || LD=$LDCXX
10871CC=${CXX-"c++"}
10872compiler=$CC
10873compiler_CXX=$CC
10874for cc_temp in $compiler""; do
10875  case $cc_temp in
10876    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10877    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10878    \-*) ;;
10879    *) break;;
10880  esac
10881done
10882cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10883
10884
10885# We don't want -fno-exception wen compiling C++ code, so set the
10886# no_builtin_flag separately
10887if test "$GXX" = yes; then
10888  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10889else
10890  lt_prog_compiler_no_builtin_flag_CXX=
10891fi
10892
10893if test "$GXX" = yes; then
10894  # Set up default GNU C++ configuration
10895
10896
10897# Check whether --with-gnu-ld was given.
10898if test "${with_gnu_ld+set}" = set; then
10899  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10900else
10901  with_gnu_ld=no
10902fi
10903
10904ac_prog=ld
10905if test "$GCC" = yes; then
10906  # Check if gcc -print-prog-name=ld gives a path.
10907  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10908echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10909  case $host in
10910  *-*-mingw*)
10911    # gcc leaves a trailing carriage return which upsets mingw
10912    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10913  *)
10914    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10915  esac
10916  case $ac_prog in
10917    # Accept absolute paths.
10918    [\\/]* | ?:[\\/]*)
10919      re_direlt='/[^/][^/]*/\.\./'
10920      # Canonicalize the pathname of ld
10921      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10922      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10923	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10924      done
10925      test -z "$LD" && LD="$ac_prog"
10926      ;;
10927  "")
10928    # If it fails, then pretend we aren't using GCC.
10929    ac_prog=ld
10930    ;;
10931  *)
10932    # If it is relative, then search for the first ld in PATH.
10933    with_gnu_ld=unknown
10934    ;;
10935  esac
10936elif test "$with_gnu_ld" = yes; then
10937  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10938echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10939else
10940  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10941echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10942fi
10943if test "${lt_cv_path_LD+set}" = set; then
10944  echo $ECHO_N "(cached) $ECHO_C" >&6
10945else
10946  if test -z "$LD"; then
10947  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10948  for ac_dir in $PATH; do
10949    IFS="$lt_save_ifs"
10950    test -z "$ac_dir" && ac_dir=.
10951    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10952      lt_cv_path_LD="$ac_dir/$ac_prog"
10953      # Check to see if the program is GNU ld.  I'd rather use --version,
10954      # but apparently some variants of GNU ld only accept -v.
10955      # Break only if it was the GNU/non-GNU ld that we prefer.
10956      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10957      *GNU* | *'with BFD'*)
10958	test "$with_gnu_ld" != no && break
10959	;;
10960      *)
10961	test "$with_gnu_ld" != yes && break
10962	;;
10963      esac
10964    fi
10965  done
10966  IFS="$lt_save_ifs"
10967else
10968  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10969fi
10970fi
10971
10972LD="$lt_cv_path_LD"
10973if test -n "$LD"; then
10974  { echo "$as_me:$LINENO: result: $LD" >&5
10975echo "${ECHO_T}$LD" >&6; }
10976else
10977  { echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6; }
10979fi
10980test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10981echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10982   { (exit 1); exit 1; }; }
10983{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10984echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10985if test "${lt_cv_prog_gnu_ld+set}" = set; then
10986  echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10989case `$LD -v 2>&1 </dev/null` in
10990*GNU* | *'with BFD'*)
10991  lt_cv_prog_gnu_ld=yes
10992  ;;
10993*)
10994  lt_cv_prog_gnu_ld=no
10995  ;;
10996esac
10997fi
10998{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10999echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11000with_gnu_ld=$lt_cv_prog_gnu_ld
11001
11002
11003
11004  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11005  # archiving commands below assume that GNU ld is being used.
11006  if test "$with_gnu_ld" = yes; then
11007    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11008    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'
11009
11010    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11011    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11012
11013    # If archive_cmds runs LD, not CC, wlarc should be empty
11014    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11015    #     investigate it a little bit more. (MM)
11016    wlarc='${wl}'
11017
11018    # ancient GNU ld didn't support --whole-archive et. al.
11019    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11020	grep 'no-whole-archive' > /dev/null; then
11021      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11022    else
11023      whole_archive_flag_spec_CXX=
11024    fi
11025  else
11026    with_gnu_ld=no
11027    wlarc=
11028
11029    # A generic and very simple default shared library creation
11030    # command for GNU C++ for the case where it uses the native
11031    # linker, instead of GNU ld.  If possible, this setting should
11032    # overridden to take advantage of the native linker features on
11033    # the platform it is being used on.
11034    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11035  fi
11036
11037  # Commands to make compiler produce verbose output that lists
11038  # what "hidden" libraries, object files and flags are used when
11039  # linking a shared library.
11040  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11041
11042else
11043  GXX=no
11044  with_gnu_ld=no
11045  wlarc=
11046fi
11047
11048# PORTME: fill in a description of your system's C++ link characteristics
11049{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11050echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11051ld_shlibs_CXX=yes
11052case $host_os in
11053  aix3*)
11054    # FIXME: insert proper C++ library support
11055    ld_shlibs_CXX=no
11056    ;;
11057  aix4* | aix5*)
11058    if test "$host_cpu" = ia64; then
11059      # On IA64, the linker does run time linking by default, so we don't
11060      # have to do anything special.
11061      aix_use_runtimelinking=no
11062      exp_sym_flag='-Bexport'
11063      no_entry_flag=""
11064    else
11065      aix_use_runtimelinking=no
11066
11067      # Test if we are trying to use run time linking or normal
11068      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11069      # need to do runtime linking.
11070      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11071	for ld_flag in $LDFLAGS; do
11072	  case $ld_flag in
11073	  *-brtl*)
11074	    aix_use_runtimelinking=yes
11075	    break
11076	    ;;
11077	  esac
11078	done
11079	;;
11080      esac
11081
11082      exp_sym_flag='-bexport'
11083      no_entry_flag='-bnoentry'
11084    fi
11085
11086    # When large executables or shared objects are built, AIX ld can
11087    # have problems creating the table of contents.  If linking a library
11088    # or program results in "error TOC overflow" add -mminimal-toc to
11089    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11090    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11091
11092    archive_cmds_CXX=''
11093    hardcode_direct_CXX=yes
11094    hardcode_libdir_separator_CXX=':'
11095    link_all_deplibs_CXX=yes
11096
11097    if test "$GXX" = yes; then
11098      case $host_os in aix4.[012]|aix4.[012].*)
11099      # We only want to do this on AIX 4.2 and lower, the check
11100      # below for broken collect2 doesn't work under 4.3+
11101	collect2name=`${CC} -print-prog-name=collect2`
11102	if test -f "$collect2name" && \
11103	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11104	then
11105	  # We have reworked collect2
11106	  :
11107	else
11108	  # We have old collect2
11109	  hardcode_direct_CXX=unsupported
11110	  # It fails to find uninstalled libraries when the uninstalled
11111	  # path is not listed in the libpath.  Setting hardcode_minus_L
11112	  # to unsupported forces relinking
11113	  hardcode_minus_L_CXX=yes
11114	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11115	  hardcode_libdir_separator_CXX=
11116	fi
11117	;;
11118      esac
11119      shared_flag='-shared'
11120      if test "$aix_use_runtimelinking" = yes; then
11121	shared_flag="$shared_flag "'${wl}-G'
11122      fi
11123    else
11124      # not using gcc
11125      if test "$host_cpu" = ia64; then
11126	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11127	# chokes on -Wl,-G. The following line is correct:
11128	shared_flag='-G'
11129      else
11130	if test "$aix_use_runtimelinking" = yes; then
11131	  shared_flag='${wl}-G'
11132	else
11133	  shared_flag='${wl}-bM:SRE'
11134	fi
11135      fi
11136    fi
11137
11138    # It seems that -bexpall does not export symbols beginning with
11139    # underscore (_), so it is better to generate a list of symbols to export.
11140    always_export_symbols_CXX=yes
11141    if test "$aix_use_runtimelinking" = yes; then
11142      # Warning - without using the other runtime loading flags (-brtl),
11143      # -berok will link without error, but may produce a broken library.
11144      allow_undefined_flag_CXX='-berok'
11145      # Determine the default libpath from the value encoded in an empty executable.
11146      cat >conftest.$ac_ext <<_ACEOF
11147/* confdefs.h.  */
11148_ACEOF
11149cat confdefs.h >>conftest.$ac_ext
11150cat >>conftest.$ac_ext <<_ACEOF
11151/* end confdefs.h.  */
11152
11153int
11154main ()
11155{
11156
11157  ;
11158  return 0;
11159}
11160_ACEOF
11161rm -f conftest.$ac_objext conftest$ac_exeext
11162if { (ac_try="$ac_link"
11163case "(($ac_try" in
11164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165  *) ac_try_echo=$ac_try;;
11166esac
11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168  (eval "$ac_link") 2>conftest.er1
11169  ac_status=$?
11170  grep -v '^ *+' conftest.er1 >conftest.err
11171  rm -f conftest.er1
11172  cat conftest.err >&5
11173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174  (exit $ac_status); } && {
11175	 test -z "$ac_cxx_werror_flag" ||
11176	 test ! -s conftest.err
11177       } && test -s conftest$ac_exeext &&
11178       $as_test_x conftest$ac_exeext; then
11179
11180lt_aix_libpath_sed='
11181    /Import File Strings/,/^$/ {
11182	/^0/ {
11183	    s/^0  *\(.*\)$/\1/
11184	    p
11185	}
11186    }'
11187aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11188# Check for a 64-bit object if we didn't find anything.
11189if test -z "$aix_libpath"; then
11190  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11191fi
11192else
11193  echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196
11197fi
11198
11199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11200      conftest$ac_exeext conftest.$ac_ext
11201if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11202
11203      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11204
11205      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"
11206     else
11207      if test "$host_cpu" = ia64; then
11208	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11209	allow_undefined_flag_CXX="-z nodefs"
11210	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"
11211      else
11212	# Determine the default libpath from the value encoded in an empty executable.
11213	cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h.  */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h.  */
11219
11220int
11221main ()
11222{
11223
11224  ;
11225  return 0;
11226}
11227_ACEOF
11228rm -f conftest.$ac_objext conftest$ac_exeext
11229if { (ac_try="$ac_link"
11230case "(($ac_try" in
11231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232  *) ac_try_echo=$ac_try;;
11233esac
11234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235  (eval "$ac_link") 2>conftest.er1
11236  ac_status=$?
11237  grep -v '^ *+' conftest.er1 >conftest.err
11238  rm -f conftest.er1
11239  cat conftest.err >&5
11240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241  (exit $ac_status); } && {
11242	 test -z "$ac_cxx_werror_flag" ||
11243	 test ! -s conftest.err
11244       } && test -s conftest$ac_exeext &&
11245       $as_test_x conftest$ac_exeext; then
11246
11247lt_aix_libpath_sed='
11248    /Import File Strings/,/^$/ {
11249	/^0/ {
11250	    s/^0  *\(.*\)$/\1/
11251	    p
11252	}
11253    }'
11254aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11255# Check for a 64-bit object if we didn't find anything.
11256if test -z "$aix_libpath"; then
11257  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11258fi
11259else
11260  echo "$as_me: failed program was:" >&5
11261sed 's/^/| /' conftest.$ac_ext >&5
11262
11263
11264fi
11265
11266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11267      conftest$ac_exeext conftest.$ac_ext
11268if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11269
11270	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11271	# Warning - without using the other run time loading flags,
11272	# -berok will link without error, but may produce a broken library.
11273	no_undefined_flag_CXX=' ${wl}-bernotok'
11274	allow_undefined_flag_CXX=' ${wl}-berok'
11275	# Exported symbols can be pulled into shared objects from archives
11276	whole_archive_flag_spec_CXX='$convenience'
11277	archive_cmds_need_lc_CXX=yes
11278	# This is similar to how AIX traditionally builds its shared libraries.
11279	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'
11280      fi
11281    fi
11282    ;;
11283
11284  beos*)
11285    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11286      allow_undefined_flag_CXX=unsupported
11287      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11288      # support --undefined.  This deserves some investigation.  FIXME
11289      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11290    else
11291      ld_shlibs_CXX=no
11292    fi
11293    ;;
11294
11295  chorus*)
11296    case $cc_basename in
11297      *)
11298	# FIXME: insert proper C++ library support
11299	ld_shlibs_CXX=no
11300	;;
11301    esac
11302    ;;
11303
11304  cygwin* | mingw* | pw32*)
11305    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11306    # as there is no search path for DLLs.
11307    hardcode_libdir_flag_spec_CXX='-L$libdir'
11308    allow_undefined_flag_CXX=unsupported
11309    always_export_symbols_CXX=no
11310    enable_shared_with_static_runtimes_CXX=yes
11311
11312    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11313      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'
11314      # If the export-symbols file already is a .def file (1st line
11315      # is EXPORTS), use it as is; otherwise, prepend...
11316      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11317	cp $export_symbols $output_objdir/$soname.def;
11318      else
11319	echo EXPORTS > $output_objdir/$soname.def;
11320	cat $export_symbols >> $output_objdir/$soname.def;
11321      fi~
11322      $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'
11323    else
11324      ld_shlibs_CXX=no
11325    fi
11326  ;;
11327      darwin* | rhapsody*)
11328        case $host_os in
11329        rhapsody* | darwin1.[012])
11330         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11331         ;;
11332       *) # Darwin 1.3 on
11333         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11334           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11335         else
11336           case ${MACOSX_DEPLOYMENT_TARGET} in
11337             10.[012])
11338               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11339               ;;
11340             10.*)
11341               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11342               ;;
11343           esac
11344         fi
11345         ;;
11346        esac
11347      archive_cmds_need_lc_CXX=no
11348      hardcode_direct_CXX=no
11349      hardcode_automatic_CXX=yes
11350      hardcode_shlibpath_var_CXX=unsupported
11351      whole_archive_flag_spec_CXX=''
11352      link_all_deplibs_CXX=yes
11353
11354    if test "$GXX" = yes ; then
11355      lt_int_apple_cc_single_mod=no
11356      output_verbose_link_cmd='echo'
11357      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11358       lt_int_apple_cc_single_mod=yes
11359      fi
11360      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11361       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11362      else
11363          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'
11364        fi
11365        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11366        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11367          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11368            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}'
11369          else
11370            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}'
11371          fi
11372            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}'
11373      else
11374      case $cc_basename in
11375        xlc*)
11376         output_verbose_link_cmd='echo'
11377          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11378          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11379          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11380          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11381          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}'
11382          ;;
11383       *)
11384         ld_shlibs_CXX=no
11385          ;;
11386      esac
11387      fi
11388        ;;
11389
11390  dgux*)
11391    case $cc_basename in
11392      ec++*)
11393	# FIXME: insert proper C++ library support
11394	ld_shlibs_CXX=no
11395	;;
11396      ghcx*)
11397	# Green Hills C++ Compiler
11398	# FIXME: insert proper C++ library support
11399	ld_shlibs_CXX=no
11400	;;
11401      *)
11402	# FIXME: insert proper C++ library support
11403	ld_shlibs_CXX=no
11404	;;
11405    esac
11406    ;;
11407  freebsd[12]*)
11408    # C++ shared libraries reported to be fairly broken before switch to ELF
11409    ld_shlibs_CXX=no
11410    ;;
11411  freebsd-elf*)
11412    archive_cmds_need_lc_CXX=no
11413    ;;
11414  freebsd* | dragonfly*)
11415    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11416    # conventions
11417    ld_shlibs_CXX=yes
11418    ;;
11419  gnu*)
11420    ;;
11421  hpux9*)
11422    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11423    hardcode_libdir_separator_CXX=:
11424    export_dynamic_flag_spec_CXX='${wl}-E'
11425    hardcode_direct_CXX=yes
11426    hardcode_minus_L_CXX=yes # Not in the search PATH,
11427				# but as the default
11428				# location of the library.
11429
11430    case $cc_basename in
11431    CC*)
11432      # FIXME: insert proper C++ library support
11433      ld_shlibs_CXX=no
11434      ;;
11435    aCC*)
11436      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'
11437      # Commands to make compiler produce verbose output that lists
11438      # what "hidden" libraries, object files and flags are used when
11439      # linking a shared library.
11440      #
11441      # There doesn't appear to be a way to prevent this compiler from
11442      # explicitly linking system object files so we need to strip them
11443      # from the output so that they don't get included in the library
11444      # dependencies.
11445      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'
11446      ;;
11447    *)
11448      if test "$GXX" = yes; then
11449        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'
11450      else
11451        # FIXME: insert proper C++ library support
11452        ld_shlibs_CXX=no
11453      fi
11454      ;;
11455    esac
11456    ;;
11457  hpux10*|hpux11*)
11458    if test $with_gnu_ld = no; then
11459      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11460      hardcode_libdir_separator_CXX=:
11461
11462      case $host_cpu in
11463      hppa*64*|ia64*) ;;
11464      *)
11465	export_dynamic_flag_spec_CXX='${wl}-E'
11466        ;;
11467      esac
11468    fi
11469    case $host_cpu in
11470    hppa*64*|ia64*)
11471      hardcode_direct_CXX=no
11472      hardcode_shlibpath_var_CXX=no
11473      ;;
11474    *)
11475      hardcode_direct_CXX=yes
11476      hardcode_minus_L_CXX=yes # Not in the search PATH,
11477					      # but as the default
11478					      # location of the library.
11479      ;;
11480    esac
11481
11482    case $cc_basename in
11483      CC*)
11484	# FIXME: insert proper C++ library support
11485	ld_shlibs_CXX=no
11486	;;
11487      aCC*)
11488	case $host_cpu in
11489	hppa*64*)
11490	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11491	  ;;
11492	ia64*)
11493	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11494	  ;;
11495	*)
11496	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11497	  ;;
11498	esac
11499	# Commands to make compiler produce verbose output that lists
11500	# what "hidden" libraries, object files and flags are used when
11501	# linking a shared library.
11502	#
11503	# There doesn't appear to be a way to prevent this compiler from
11504	# explicitly linking system object files so we need to strip them
11505	# from the output so that they don't get included in the library
11506	# dependencies.
11507	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'
11508	;;
11509      *)
11510	if test "$GXX" = yes; then
11511	  if test $with_gnu_ld = no; then
11512	    case $host_cpu in
11513	    hppa*64*)
11514	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11515	      ;;
11516	    ia64*)
11517	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11518	      ;;
11519	    *)
11520	      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'
11521	      ;;
11522	    esac
11523	  fi
11524	else
11525	  # FIXME: insert proper C++ library support
11526	  ld_shlibs_CXX=no
11527	fi
11528	;;
11529    esac
11530    ;;
11531  interix[3-9]*)
11532    hardcode_direct_CXX=no
11533    hardcode_shlibpath_var_CXX=no
11534    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11535    export_dynamic_flag_spec_CXX='${wl}-E'
11536    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11537    # Instead, shared libraries are loaded at an image base (0x10000000 by
11538    # default) and relocated if they conflict, which is a slow very memory
11539    # consuming and fragmenting process.  To avoid this, we pick a random,
11540    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11541    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11542    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'
11543    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'
11544    ;;
11545  irix5* | irix6*)
11546    case $cc_basename in
11547      CC*)
11548	# SGI C++
11549	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'
11550
11551	# Archives containing C++ object files must be created using
11552	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11553	# necessary to make sure instantiated templates are included
11554	# in the archive.
11555	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11556	;;
11557      *)
11558	if test "$GXX" = yes; then
11559	  if test "$with_gnu_ld" = no; then
11560	    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'
11561	  else
11562	    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'
11563	  fi
11564	fi
11565	link_all_deplibs_CXX=yes
11566	;;
11567    esac
11568    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11569    hardcode_libdir_separator_CXX=:
11570    ;;
11571  linux* | k*bsd*-gnu)
11572    case $cc_basename in
11573      KCC*)
11574	# Kuck and Associates, Inc. (KAI) C++ Compiler
11575
11576	# KCC will only create a shared library if the output file
11577	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11578	# to its proper name (with version) after linking.
11579	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'
11580	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'
11581	# Commands to make compiler produce verbose output that lists
11582	# what "hidden" libraries, object files and flags are used when
11583	# linking a shared library.
11584	#
11585	# There doesn't appear to be a way to prevent this compiler from
11586	# explicitly linking system object files so we need to strip them
11587	# from the output so that they don't get included in the library
11588	# dependencies.
11589	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'
11590
11591	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11592	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11593
11594	# Archives containing C++ object files must be created using
11595	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11596	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11597	;;
11598      icpc*)
11599	# Intel C++
11600	with_gnu_ld=yes
11601	# version 8.0 and above of icpc choke on multiply defined symbols
11602	# if we add $predep_objects and $postdep_objects, however 7.1 and
11603	# earlier do not add the objects themselves.
11604	case `$CC -V 2>&1` in
11605	*"Version 7."*)
11606  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11607  	  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'
11608	  ;;
11609	*)  # Version 8.0 or newer
11610	  tmp_idyn=
11611	  case $host_cpu in
11612	    ia64*) tmp_idyn=' -i_dynamic';;
11613	  esac
11614  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11615	  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'
11616	  ;;
11617	esac
11618	archive_cmds_need_lc_CXX=no
11619	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11620	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11621	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11622	;;
11623      pgCC*)
11624        # Portland Group C++ compiler
11625	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11626  	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'
11627
11628	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11629	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11630	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'
11631        ;;
11632      cxx*)
11633	# Compaq C++
11634	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11635	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'
11636
11637	runpath_var=LD_RUN_PATH
11638	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11639	hardcode_libdir_separator_CXX=:
11640
11641	# Commands to make compiler produce verbose output that lists
11642	# what "hidden" libraries, object files and flags are used when
11643	# linking a shared library.
11644	#
11645	# There doesn't appear to be a way to prevent this compiler from
11646	# explicitly linking system object files so we need to strip them
11647	# from the output so that they don't get included in the library
11648	# dependencies.
11649	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'
11650	;;
11651      *)
11652	case `$CC -V 2>&1 | sed 5q` in
11653	*Sun\ C*)
11654	  # Sun C++ 5.9
11655	  no_undefined_flag_CXX=' -zdefs'
11656	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11657	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11658	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11659	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11660
11661	  # Not sure whether something based on
11662	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11663	  # would be better.
11664	  output_verbose_link_cmd='echo'
11665
11666	  # Archives containing C++ object files must be created using
11667	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11668	  # necessary to make sure instantiated templates are included
11669	  # in the archive.
11670	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11671	  ;;
11672	esac
11673	;;
11674    esac
11675    ;;
11676  lynxos*)
11677    # FIXME: insert proper C++ library support
11678    ld_shlibs_CXX=no
11679    ;;
11680  m88k*)
11681    # FIXME: insert proper C++ library support
11682    ld_shlibs_CXX=no
11683    ;;
11684  mvs*)
11685    case $cc_basename in
11686      cxx*)
11687	# FIXME: insert proper C++ library support
11688	ld_shlibs_CXX=no
11689	;;
11690      *)
11691	# FIXME: insert proper C++ library support
11692	ld_shlibs_CXX=no
11693	;;
11694    esac
11695    ;;
11696  netbsd*)
11697    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11698      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11699      wlarc=
11700      hardcode_libdir_flag_spec_CXX='-R$libdir'
11701      hardcode_direct_CXX=yes
11702      hardcode_shlibpath_var_CXX=no
11703    fi
11704    # Workaround some broken pre-1.5 toolchains
11705    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11706    ;;
11707  openbsd2*)
11708    # C++ shared libraries are fairly broken
11709    ld_shlibs_CXX=no
11710    ;;
11711  openbsd*)
11712    if test -f /usr/libexec/ld.so; then
11713      hardcode_direct_CXX=yes
11714      hardcode_shlibpath_var_CXX=no
11715      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11716      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11717      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11718	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11719	export_dynamic_flag_spec_CXX='${wl}-E'
11720	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11721      fi
11722      output_verbose_link_cmd='echo'
11723    else
11724      ld_shlibs_CXX=no
11725    fi
11726    ;;
11727  osf3*)
11728    case $cc_basename in
11729      KCC*)
11730	# Kuck and Associates, Inc. (KAI) C++ Compiler
11731
11732	# KCC will only create a shared library if the output file
11733	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11734	# to its proper name (with version) after linking.
11735	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'
11736
11737	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11738	hardcode_libdir_separator_CXX=:
11739
11740	# Archives containing C++ object files must be created using
11741	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11742	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11743
11744	;;
11745      RCC*)
11746	# Rational C++ 2.4.1
11747	# FIXME: insert proper C++ library support
11748	ld_shlibs_CXX=no
11749	;;
11750      cxx*)
11751	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11752	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'
11753
11754	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11755	hardcode_libdir_separator_CXX=:
11756
11757	# Commands to make compiler produce verbose output that lists
11758	# what "hidden" libraries, object files and flags are used when
11759	# linking a shared library.
11760	#
11761	# There doesn't appear to be a way to prevent this compiler from
11762	# explicitly linking system object files so we need to strip them
11763	# from the output so that they don't get included in the library
11764	# dependencies.
11765	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'
11766	;;
11767      *)
11768	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11769	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11770	  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'
11771
11772	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11773	  hardcode_libdir_separator_CXX=:
11774
11775	  # Commands to make compiler produce verbose output that lists
11776	  # what "hidden" libraries, object files and flags are used when
11777	  # linking a shared library.
11778	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11779
11780	else
11781	  # FIXME: insert proper C++ library support
11782	  ld_shlibs_CXX=no
11783	fi
11784	;;
11785    esac
11786    ;;
11787  osf4* | osf5*)
11788    case $cc_basename in
11789      KCC*)
11790	# Kuck and Associates, Inc. (KAI) C++ Compiler
11791
11792	# KCC will only create a shared library if the output file
11793	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11794	# to its proper name (with version) after linking.
11795	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'
11796
11797	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11798	hardcode_libdir_separator_CXX=:
11799
11800	# Archives containing C++ object files must be created using
11801	# the KAI C++ compiler.
11802	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11803	;;
11804      RCC*)
11805	# Rational C++ 2.4.1
11806	# FIXME: insert proper C++ library support
11807	ld_shlibs_CXX=no
11808	;;
11809      cxx*)
11810	allow_undefined_flag_CXX=' -expect_unresolved \*'
11811	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'
11812	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11813	  echo "-hidden">> $lib.exp~
11814	  $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~
11815	  $rm $lib.exp'
11816
11817	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11818	hardcode_libdir_separator_CXX=:
11819
11820	# Commands to make compiler produce verbose output that lists
11821	# what "hidden" libraries, object files and flags are used when
11822	# linking a shared library.
11823	#
11824	# There doesn't appear to be a way to prevent this compiler from
11825	# explicitly linking system object files so we need to strip them
11826	# from the output so that they don't get included in the library
11827	# dependencies.
11828	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'
11829	;;
11830      *)
11831	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11832	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11833	 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'
11834
11835	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11836	  hardcode_libdir_separator_CXX=:
11837
11838	  # Commands to make compiler produce verbose output that lists
11839	  # what "hidden" libraries, object files and flags are used when
11840	  # linking a shared library.
11841	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11842
11843	else
11844	  # FIXME: insert proper C++ library support
11845	  ld_shlibs_CXX=no
11846	fi
11847	;;
11848    esac
11849    ;;
11850  psos*)
11851    # FIXME: insert proper C++ library support
11852    ld_shlibs_CXX=no
11853    ;;
11854  sunos4*)
11855    case $cc_basename in
11856      CC*)
11857	# Sun C++ 4.x
11858	# FIXME: insert proper C++ library support
11859	ld_shlibs_CXX=no
11860	;;
11861      lcc*)
11862	# Lucid
11863	# FIXME: insert proper C++ library support
11864	ld_shlibs_CXX=no
11865	;;
11866      *)
11867	# FIXME: insert proper C++ library support
11868	ld_shlibs_CXX=no
11869	;;
11870    esac
11871    ;;
11872  solaris*)
11873    case $cc_basename in
11874      CC*)
11875	# Sun C++ 4.2, 5.x and Centerline C++
11876        archive_cmds_need_lc_CXX=yes
11877	no_undefined_flag_CXX=' -zdefs'
11878	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11879	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11880	$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'
11881
11882	hardcode_libdir_flag_spec_CXX='-R$libdir'
11883	hardcode_shlibpath_var_CXX=no
11884	case $host_os in
11885	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11886	  *)
11887	    # The compiler driver will combine and reorder linker options,
11888	    # but understands `-z linker_flag'.
11889	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11890	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11891	    ;;
11892	esac
11893	link_all_deplibs_CXX=yes
11894
11895	output_verbose_link_cmd='echo'
11896
11897	# Archives containing C++ object files must be created using
11898	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11899	# necessary to make sure instantiated templates are included
11900	# in the archive.
11901	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11902	;;
11903      gcx*)
11904	# Green Hills C++ Compiler
11905	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11906
11907	# The C++ compiler must be used to create the archive.
11908	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11909	;;
11910      *)
11911	# GNU C++ compiler with Solaris linker
11912	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11913	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11914	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11915	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11916	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11917		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11918
11919	    # Commands to make compiler produce verbose output that lists
11920	    # what "hidden" libraries, object files and flags are used when
11921	    # linking a shared library.
11922	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11923	  else
11924	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11925	    # platform.
11926	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11927	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11928		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11929
11930	    # Commands to make compiler produce verbose output that lists
11931	    # what "hidden" libraries, object files and flags are used when
11932	    # linking a shared library.
11933	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11934	  fi
11935
11936	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11937	  case $host_os in
11938	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11939	  *)
11940	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11941	    ;;
11942	  esac
11943	fi
11944	;;
11945    esac
11946    ;;
11947  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11948    no_undefined_flag_CXX='${wl}-z,text'
11949    archive_cmds_need_lc_CXX=no
11950    hardcode_shlibpath_var_CXX=no
11951    runpath_var='LD_RUN_PATH'
11952
11953    case $cc_basename in
11954      CC*)
11955	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957	;;
11958      *)
11959	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11960	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11961	;;
11962    esac
11963    ;;
11964  sysv5* | sco3.2v5* | sco5v6*)
11965    # Note: We can NOT use -z defs as we might desire, because we do not
11966    # link with -lc, and that would cause any symbols used from libc to
11967    # always be unresolved, which means just about no library would
11968    # ever link correctly.  If we're not using GNU ld we use -z text
11969    # though, which does catch some bad symbols but isn't as heavy-handed
11970    # as -z defs.
11971    # For security reasons, it is highly recommended that you always
11972    # use absolute paths for naming shared libraries, and exclude the
11973    # DT_RUNPATH tag from executables and libraries.  But doing so
11974    # requires that you compile everything twice, which is a pain.
11975    # So that behaviour is only enabled if SCOABSPATH is set to a
11976    # non-empty value in the environment.  Most likely only useful for
11977    # creating official distributions of packages.
11978    # This is a hack until libtool officially supports absolute path
11979    # names for shared libraries.
11980    no_undefined_flag_CXX='${wl}-z,text'
11981    allow_undefined_flag_CXX='${wl}-z,nodefs'
11982    archive_cmds_need_lc_CXX=no
11983    hardcode_shlibpath_var_CXX=no
11984    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11985    hardcode_libdir_separator_CXX=':'
11986    link_all_deplibs_CXX=yes
11987    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11988    runpath_var='LD_RUN_PATH'
11989
11990    case $cc_basename in
11991      CC*)
11992	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11993	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11994	;;
11995      *)
11996	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11997	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11998	;;
11999    esac
12000    ;;
12001  tandem*)
12002    case $cc_basename in
12003      NCC*)
12004	# NonStop-UX NCC 3.20
12005	# FIXME: insert proper C++ library support
12006	ld_shlibs_CXX=no
12007	;;
12008      *)
12009	# FIXME: insert proper C++ library support
12010	ld_shlibs_CXX=no
12011	;;
12012    esac
12013    ;;
12014  vxworks*)
12015    # FIXME: insert proper C++ library support
12016    ld_shlibs_CXX=no
12017    ;;
12018  *)
12019    # FIXME: insert proper C++ library support
12020    ld_shlibs_CXX=no
12021    ;;
12022esac
12023{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12024echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12025test "$ld_shlibs_CXX" = no && can_build_shared=no
12026
12027GCC_CXX="$GXX"
12028LD_CXX="$LD"
12029
12030
12031cat > conftest.$ac_ext <<EOF
12032class Foo
12033{
12034public:
12035  Foo (void) { a = 0; }
12036private:
12037  int a;
12038};
12039EOF
12040
12041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042  (eval $ac_compile) 2>&5
12043  ac_status=$?
12044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045  (exit $ac_status); }; then
12046  # Parse the compiler output and extract the necessary
12047  # objects, libraries and library flags.
12048
12049  # Sentinel used to keep track of whether or not we are before
12050  # the conftest object file.
12051  pre_test_object_deps_done=no
12052
12053  # The `*' in the case matches for architectures that use `case' in
12054  # $output_verbose_cmd can trigger glob expansion during the loop
12055  # eval without this substitution.
12056  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12057
12058  for p in `eval $output_verbose_link_cmd`; do
12059    case $p in
12060
12061    -L* | -R* | -l*)
12062       # Some compilers place space between "-{L,R}" and the path.
12063       # Remove the space.
12064       if test $p = "-L" \
12065	  || test $p = "-R"; then
12066	 prev=$p
12067	 continue
12068       else
12069	 prev=
12070       fi
12071
12072       if test "$pre_test_object_deps_done" = no; then
12073	 case $p in
12074	 -L* | -R*)
12075	   # Internal compiler library paths should come after those
12076	   # provided the user.  The postdeps already come after the
12077	   # user supplied libs so there is no need to process them.
12078	   if test -z "$compiler_lib_search_path_CXX"; then
12079	     compiler_lib_search_path_CXX="${prev}${p}"
12080	   else
12081	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12082	   fi
12083	   ;;
12084	 # The "-l" case would never come before the object being
12085	 # linked, so don't bother handling this case.
12086	 esac
12087       else
12088	 if test -z "$postdeps_CXX"; then
12089	   postdeps_CXX="${prev}${p}"
12090	 else
12091	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12092	 fi
12093       fi
12094       ;;
12095
12096    *.$objext)
12097       # This assumes that the test object file only shows up
12098       # once in the compiler output.
12099       if test "$p" = "conftest.$objext"; then
12100	 pre_test_object_deps_done=yes
12101	 continue
12102       fi
12103
12104       if test "$pre_test_object_deps_done" = no; then
12105	 if test -z "$predep_objects_CXX"; then
12106	   predep_objects_CXX="$p"
12107	 else
12108	   predep_objects_CXX="$predep_objects_CXX $p"
12109	 fi
12110       else
12111	 if test -z "$postdep_objects_CXX"; then
12112	   postdep_objects_CXX="$p"
12113	 else
12114	   postdep_objects_CXX="$postdep_objects_CXX $p"
12115	 fi
12116       fi
12117       ;;
12118
12119    *) ;; # Ignore the rest.
12120
12121    esac
12122  done
12123
12124  # Clean up.
12125  rm -f a.out a.exe
12126else
12127  echo "libtool.m4: error: problem compiling CXX test program"
12128fi
12129
12130$rm -f confest.$objext
12131
12132# PORTME: override above test on systems where it is broken
12133case $host_os in
12134interix[3-9]*)
12135  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12136  # hack all around it, let's just trust "g++" to DTRT.
12137  predep_objects_CXX=
12138  postdep_objects_CXX=
12139  postdeps_CXX=
12140  ;;
12141
12142linux*)
12143  case `$CC -V 2>&1 | sed 5q` in
12144  *Sun\ C*)
12145    # Sun C++ 5.9
12146    #
12147    # The more standards-conforming stlport4 library is
12148    # incompatible with the Cstd library. Avoid specifying
12149    # it if it's in CXXFLAGS. Ignore libCrun as
12150    # -library=stlport4 depends on it.
12151    case " $CXX $CXXFLAGS " in
12152    *" -library=stlport4 "*)
12153      solaris_use_stlport4=yes
12154      ;;
12155    esac
12156    if test "$solaris_use_stlport4" != yes; then
12157      postdeps_CXX='-library=Cstd -library=Crun'
12158    fi
12159    ;;
12160  esac
12161  ;;
12162
12163solaris*)
12164  case $cc_basename in
12165  CC*)
12166    # The more standards-conforming stlport4 library is
12167    # incompatible with the Cstd library. Avoid specifying
12168    # it if it's in CXXFLAGS. Ignore libCrun as
12169    # -library=stlport4 depends on it.
12170    case " $CXX $CXXFLAGS " in
12171    *" -library=stlport4 "*)
12172      solaris_use_stlport4=yes
12173      ;;
12174    esac
12175
12176    # Adding this requires a known-good setup of shared libraries for
12177    # Sun compiler versions before 5.6, else PIC objects from an old
12178    # archive will be linked into the output, leading to subtle bugs.
12179    if test "$solaris_use_stlport4" != yes; then
12180      postdeps_CXX='-library=Cstd -library=Crun'
12181    fi
12182    ;;
12183  esac
12184  ;;
12185esac
12186
12187
12188case " $postdeps_CXX " in
12189*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12190esac
12191
12192lt_prog_compiler_wl_CXX=
12193lt_prog_compiler_pic_CXX=
12194lt_prog_compiler_static_CXX=
12195
12196{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12197echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12198
12199  # C++ specific cases for pic, static, wl, etc.
12200  if test "$GXX" = yes; then
12201    lt_prog_compiler_wl_CXX='-Wl,'
12202    lt_prog_compiler_static_CXX='-static'
12203
12204    case $host_os in
12205    aix*)
12206      # All AIX code is PIC.
12207      if test "$host_cpu" = ia64; then
12208	# AIX 5 now supports IA64 processor
12209	lt_prog_compiler_static_CXX='-Bstatic'
12210      fi
12211      ;;
12212    amigaos*)
12213      # FIXME: we need at least 68020 code to build shared libraries, but
12214      # adding the `-m68020' flag to GCC prevents building anything better,
12215      # like `-m68040'.
12216      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12217      ;;
12218    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12219      # PIC is the default for these OSes.
12220      ;;
12221    mingw* | cygwin* | os2* | pw32*)
12222      # This hack is so that the source file can tell whether it is being
12223      # built for inclusion in a dll (and should export symbols for example).
12224      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12225      # (--disable-auto-import) libraries
12226      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12227      ;;
12228    darwin* | rhapsody*)
12229      # PIC is the default on this platform
12230      # Common symbols not allowed in MH_DYLIB files
12231      lt_prog_compiler_pic_CXX='-fno-common'
12232      ;;
12233    *djgpp*)
12234      # DJGPP does not support shared libraries at all
12235      lt_prog_compiler_pic_CXX=
12236      ;;
12237    interix[3-9]*)
12238      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12239      # Instead, we relocate shared libraries at runtime.
12240      ;;
12241    sysv4*MP*)
12242      if test -d /usr/nec; then
12243	lt_prog_compiler_pic_CXX=-Kconform_pic
12244      fi
12245      ;;
12246    hpux*)
12247      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12248      # not for PA HP-UX.
12249      case $host_cpu in
12250      hppa*64*|ia64*)
12251	;;
12252      *)
12253	lt_prog_compiler_pic_CXX='-fPIC'
12254	;;
12255      esac
12256      ;;
12257    *)
12258      lt_prog_compiler_pic_CXX='-fPIC'
12259      ;;
12260    esac
12261  else
12262    case $host_os in
12263      aix4* | aix5*)
12264	# All AIX code is PIC.
12265	if test "$host_cpu" = ia64; then
12266	  # AIX 5 now supports IA64 processor
12267	  lt_prog_compiler_static_CXX='-Bstatic'
12268	else
12269	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12270	fi
12271	;;
12272      chorus*)
12273	case $cc_basename in
12274	cxch68*)
12275	  # Green Hills C++ Compiler
12276	  # _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"
12277	  ;;
12278	esac
12279	;;
12280       darwin*)
12281         # PIC is the default on this platform
12282         # Common symbols not allowed in MH_DYLIB files
12283         case $cc_basename in
12284           xlc*)
12285           lt_prog_compiler_pic_CXX='-qnocommon'
12286           lt_prog_compiler_wl_CXX='-Wl,'
12287           ;;
12288         esac
12289       ;;
12290      dgux*)
12291	case $cc_basename in
12292	  ec++*)
12293	    lt_prog_compiler_pic_CXX='-KPIC'
12294	    ;;
12295	  ghcx*)
12296	    # Green Hills C++ Compiler
12297	    lt_prog_compiler_pic_CXX='-pic'
12298	    ;;
12299	  *)
12300	    ;;
12301	esac
12302	;;
12303      freebsd* | dragonfly*)
12304	# FreeBSD uses GNU C++
12305	;;
12306      hpux9* | hpux10* | hpux11*)
12307	case $cc_basename in
12308	  CC*)
12309	    lt_prog_compiler_wl_CXX='-Wl,'
12310	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12311	    if test "$host_cpu" != ia64; then
12312	      lt_prog_compiler_pic_CXX='+Z'
12313	    fi
12314	    ;;
12315	  aCC*)
12316	    lt_prog_compiler_wl_CXX='-Wl,'
12317	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12318	    case $host_cpu in
12319	    hppa*64*|ia64*)
12320	      # +Z the default
12321	      ;;
12322	    *)
12323	      lt_prog_compiler_pic_CXX='+Z'
12324	      ;;
12325	    esac
12326	    ;;
12327	  *)
12328	    ;;
12329	esac
12330	;;
12331      interix*)
12332	# This is c89, which is MS Visual C++ (no shared libs)
12333	# Anyone wants to do a port?
12334	;;
12335      irix5* | irix6* | nonstopux*)
12336	case $cc_basename in
12337	  CC*)
12338	    lt_prog_compiler_wl_CXX='-Wl,'
12339	    lt_prog_compiler_static_CXX='-non_shared'
12340	    # CC pic flag -KPIC is the default.
12341	    ;;
12342	  *)
12343	    ;;
12344	esac
12345	;;
12346      linux* | k*bsd*-gnu)
12347	case $cc_basename in
12348	  KCC*)
12349	    # KAI C++ Compiler
12350	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12351	    lt_prog_compiler_pic_CXX='-fPIC'
12352	    ;;
12353	  icpc* | ecpc*)
12354	    # Intel C++
12355	    lt_prog_compiler_wl_CXX='-Wl,'
12356	    lt_prog_compiler_pic_CXX='-KPIC'
12357	    lt_prog_compiler_static_CXX='-static'
12358	    ;;
12359	  pgCC*)
12360	    # Portland Group C++ compiler.
12361	    lt_prog_compiler_wl_CXX='-Wl,'
12362	    lt_prog_compiler_pic_CXX='-fpic'
12363	    lt_prog_compiler_static_CXX='-Bstatic'
12364	    ;;
12365	  cxx*)
12366	    # Compaq C++
12367	    # Make sure the PIC flag is empty.  It appears that all Alpha
12368	    # Linux and Compaq Tru64 Unix objects are PIC.
12369	    lt_prog_compiler_pic_CXX=
12370	    lt_prog_compiler_static_CXX='-non_shared'
12371	    ;;
12372	  *)
12373	    case `$CC -V 2>&1 | sed 5q` in
12374	    *Sun\ C*)
12375	      # Sun C++ 5.9
12376	      lt_prog_compiler_pic_CXX='-KPIC'
12377	      lt_prog_compiler_static_CXX='-Bstatic'
12378	      lt_prog_compiler_wl_CXX='-Qoption ld '
12379	      ;;
12380	    esac
12381	    ;;
12382	esac
12383	;;
12384      lynxos*)
12385	;;
12386      m88k*)
12387	;;
12388      mvs*)
12389	case $cc_basename in
12390	  cxx*)
12391	    lt_prog_compiler_pic_CXX='-W c,exportall'
12392	    ;;
12393	  *)
12394	    ;;
12395	esac
12396	;;
12397      netbsd*)
12398	;;
12399      osf3* | osf4* | osf5*)
12400	case $cc_basename in
12401	  KCC*)
12402	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12403	    ;;
12404	  RCC*)
12405	    # Rational C++ 2.4.1
12406	    lt_prog_compiler_pic_CXX='-pic'
12407	    ;;
12408	  cxx*)
12409	    # Digital/Compaq C++
12410	    lt_prog_compiler_wl_CXX='-Wl,'
12411	    # Make sure the PIC flag is empty.  It appears that all Alpha
12412	    # Linux and Compaq Tru64 Unix objects are PIC.
12413	    lt_prog_compiler_pic_CXX=
12414	    lt_prog_compiler_static_CXX='-non_shared'
12415	    ;;
12416	  *)
12417	    ;;
12418	esac
12419	;;
12420      psos*)
12421	;;
12422      solaris*)
12423	case $cc_basename in
12424	  CC*)
12425	    # Sun C++ 4.2, 5.x and Centerline C++
12426	    lt_prog_compiler_pic_CXX='-KPIC'
12427	    lt_prog_compiler_static_CXX='-Bstatic'
12428	    lt_prog_compiler_wl_CXX='-Qoption ld '
12429	    ;;
12430	  gcx*)
12431	    # Green Hills C++ Compiler
12432	    lt_prog_compiler_pic_CXX='-PIC'
12433	    ;;
12434	  *)
12435	    ;;
12436	esac
12437	;;
12438      sunos4*)
12439	case $cc_basename in
12440	  CC*)
12441	    # Sun C++ 4.x
12442	    lt_prog_compiler_pic_CXX='-pic'
12443	    lt_prog_compiler_static_CXX='-Bstatic'
12444	    ;;
12445	  lcc*)
12446	    # Lucid
12447	    lt_prog_compiler_pic_CXX='-pic'
12448	    ;;
12449	  *)
12450	    ;;
12451	esac
12452	;;
12453      tandem*)
12454	case $cc_basename in
12455	  NCC*)
12456	    # NonStop-UX NCC 3.20
12457	    lt_prog_compiler_pic_CXX='-KPIC'
12458	    ;;
12459	  *)
12460	    ;;
12461	esac
12462	;;
12463      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12464	case $cc_basename in
12465	  CC*)
12466	    lt_prog_compiler_wl_CXX='-Wl,'
12467	    lt_prog_compiler_pic_CXX='-KPIC'
12468	    lt_prog_compiler_static_CXX='-Bstatic'
12469	    ;;
12470	esac
12471	;;
12472      vxworks*)
12473	;;
12474      *)
12475	lt_prog_compiler_can_build_shared_CXX=no
12476	;;
12477    esac
12478  fi
12479
12480{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12481echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12482
12483#
12484# Check to make sure the PIC flag actually works.
12485#
12486if test -n "$lt_prog_compiler_pic_CXX"; then
12487
12488{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12489echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12490if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12491  echo $ECHO_N "(cached) $ECHO_C" >&6
12492else
12493  lt_prog_compiler_pic_works_CXX=no
12494  ac_outfile=conftest.$ac_objext
12495   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12496   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12497   # Insert the option either (1) after the last *FLAGS variable, or
12498   # (2) before a word containing "conftest.", or (3) at the end.
12499   # Note that $ac_compile itself does not contain backslashes and begins
12500   # with a dollar sign (not a hyphen), so the echo should work correctly.
12501   # The option is referenced via a variable to avoid confusing sed.
12502   lt_compile=`echo "$ac_compile" | $SED \
12503   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12504   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12505   -e 's:$: $lt_compiler_flag:'`
12506   (eval echo "\"\$as_me:12506: $lt_compile\"" >&5)
12507   (eval "$lt_compile" 2>conftest.err)
12508   ac_status=$?
12509   cat conftest.err >&5
12510   echo "$as_me:12510: \$? = $ac_status" >&5
12511   if (exit $ac_status) && test -s "$ac_outfile"; then
12512     # The compiler can only warn and ignore the option if not recognized
12513     # So say no if there are warnings other than the usual output.
12514     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12515     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12516     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12517       lt_prog_compiler_pic_works_CXX=yes
12518     fi
12519   fi
12520   $rm conftest*
12521
12522fi
12523{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12524echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12525
12526if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12527    case $lt_prog_compiler_pic_CXX in
12528     "" | " "*) ;;
12529     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12530     esac
12531else
12532    lt_prog_compiler_pic_CXX=
12533     lt_prog_compiler_can_build_shared_CXX=no
12534fi
12535
12536fi
12537case $host_os in
12538  # For platforms which do not support PIC, -DPIC is meaningless:
12539  *djgpp*)
12540    lt_prog_compiler_pic_CXX=
12541    ;;
12542  *)
12543    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12544    ;;
12545esac
12546
12547#
12548# Check to make sure the static flag actually works.
12549#
12550wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12551{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12552echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12553if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12554  echo $ECHO_N "(cached) $ECHO_C" >&6
12555else
12556  lt_prog_compiler_static_works_CXX=no
12557   save_LDFLAGS="$LDFLAGS"
12558   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12559   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12560   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12561     # The linker can only warn and ignore the option if not recognized
12562     # So say no if there are warnings
12563     if test -s conftest.err; then
12564       # Append any errors to the config.log.
12565       cat conftest.err 1>&5
12566       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12567       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12568       if diff conftest.exp conftest.er2 >/dev/null; then
12569         lt_prog_compiler_static_works_CXX=yes
12570       fi
12571     else
12572       lt_prog_compiler_static_works_CXX=yes
12573     fi
12574   fi
12575   $rm conftest*
12576   LDFLAGS="$save_LDFLAGS"
12577
12578fi
12579{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12580echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12581
12582if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12583    :
12584else
12585    lt_prog_compiler_static_CXX=
12586fi
12587
12588
12589{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12590echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12591if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12592  echo $ECHO_N "(cached) $ECHO_C" >&6
12593else
12594  lt_cv_prog_compiler_c_o_CXX=no
12595   $rm -r conftest 2>/dev/null
12596   mkdir conftest
12597   cd conftest
12598   mkdir out
12599   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12600
12601   lt_compiler_flag="-o out/conftest2.$ac_objext"
12602   # Insert the option either (1) after the last *FLAGS variable, or
12603   # (2) before a word containing "conftest.", or (3) at the end.
12604   # Note that $ac_compile itself does not contain backslashes and begins
12605   # with a dollar sign (not a hyphen), so the echo should work correctly.
12606   lt_compile=`echo "$ac_compile" | $SED \
12607   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12608   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12609   -e 's:$: $lt_compiler_flag:'`
12610   (eval echo "\"\$as_me:12610: $lt_compile\"" >&5)
12611   (eval "$lt_compile" 2>out/conftest.err)
12612   ac_status=$?
12613   cat out/conftest.err >&5
12614   echo "$as_me:12614: \$? = $ac_status" >&5
12615   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12616   then
12617     # The compiler can only warn and ignore the option if not recognized
12618     # So say no if there are warnings
12619     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12620     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12621     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12622       lt_cv_prog_compiler_c_o_CXX=yes
12623     fi
12624   fi
12625   chmod u+w . 2>&5
12626   $rm conftest*
12627   # SGI C++ compiler will create directory out/ii_files/ for
12628   # template instantiation
12629   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12630   $rm out/* && rmdir out
12631   cd ..
12632   rmdir conftest
12633   $rm conftest*
12634
12635fi
12636{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12637echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12638
12639
12640hard_links="nottested"
12641if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12642  # do not overwrite the value of need_locks provided by the user
12643  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12644echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12645  hard_links=yes
12646  $rm conftest*
12647  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12648  touch conftest.a
12649  ln conftest.a conftest.b 2>&5 || hard_links=no
12650  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12651  { echo "$as_me:$LINENO: result: $hard_links" >&5
12652echo "${ECHO_T}$hard_links" >&6; }
12653  if test "$hard_links" = no; then
12654    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12655echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12656    need_locks=warn
12657  fi
12658else
12659  need_locks=no
12660fi
12661
12662{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12663echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12664
12665  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12666  case $host_os in
12667  aix4* | aix5*)
12668    # If we're using GNU nm, then we don't want the "-C" option.
12669    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12670    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12671      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'
12672    else
12673      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'
12674    fi
12675    ;;
12676  pw32*)
12677    export_symbols_cmds_CXX="$ltdll_cmds"
12678  ;;
12679  cygwin* | mingw*)
12680    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'
12681  ;;
12682  *)
12683    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12684  ;;
12685  esac
12686
12687{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12688echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12689test "$ld_shlibs_CXX" = no && can_build_shared=no
12690
12691#
12692# Do we need to explicitly link libc?
12693#
12694case "x$archive_cmds_need_lc_CXX" in
12695x|xyes)
12696  # Assume -lc should be added
12697  archive_cmds_need_lc_CXX=yes
12698
12699  if test "$enable_shared" = yes && test "$GCC" = yes; then
12700    case $archive_cmds_CXX in
12701    *'~'*)
12702      # FIXME: we may have to deal with multi-command sequences.
12703      ;;
12704    '$CC '*)
12705      # Test whether the compiler implicitly links with -lc since on some
12706      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12707      # to ld, don't add -lc before -lgcc.
12708      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12709echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12710      $rm conftest*
12711      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12712
12713      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714  (eval $ac_compile) 2>&5
12715  ac_status=$?
12716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717  (exit $ac_status); } 2>conftest.err; then
12718        soname=conftest
12719        lib=conftest
12720        libobjs=conftest.$ac_objext
12721        deplibs=
12722        wl=$lt_prog_compiler_wl_CXX
12723	pic_flag=$lt_prog_compiler_pic_CXX
12724        compiler_flags=-v
12725        linker_flags=-v
12726        verstring=
12727        output_objdir=.
12728        libname=conftest
12729        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12730        allow_undefined_flag_CXX=
12731        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12732  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12733  ac_status=$?
12734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735  (exit $ac_status); }
12736        then
12737	  archive_cmds_need_lc_CXX=no
12738        else
12739	  archive_cmds_need_lc_CXX=yes
12740        fi
12741        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12742      else
12743        cat conftest.err 1>&5
12744      fi
12745      $rm conftest*
12746      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12747echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12748      ;;
12749    esac
12750  fi
12751  ;;
12752esac
12753
12754{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12755echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12756library_names_spec=
12757libname_spec='lib$name'
12758soname_spec=
12759shrext_cmds=".so"
12760postinstall_cmds=
12761postuninstall_cmds=
12762finish_cmds=
12763finish_eval=
12764shlibpath_var=
12765shlibpath_overrides_runpath=unknown
12766version_type=none
12767dynamic_linker="$host_os ld.so"
12768sys_lib_dlsearch_path_spec="/lib /usr/lib"
12769
12770need_lib_prefix=unknown
12771hardcode_into_libs=no
12772
12773# when you set need_version to no, make sure it does not cause -set_version
12774# flags to be left without arguments
12775need_version=unknown
12776
12777case $host_os in
12778aix3*)
12779  version_type=linux
12780  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12781  shlibpath_var=LIBPATH
12782
12783  # AIX 3 has no versioning support, so we append a major version to the name.
12784  soname_spec='${libname}${release}${shared_ext}$major'
12785  ;;
12786
12787aix4* | aix5*)
12788  version_type=linux
12789  need_lib_prefix=no
12790  need_version=no
12791  hardcode_into_libs=yes
12792  if test "$host_cpu" = ia64; then
12793    # AIX 5 supports IA64
12794    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12795    shlibpath_var=LD_LIBRARY_PATH
12796  else
12797    # With GCC up to 2.95.x, collect2 would create an import file
12798    # for dependence libraries.  The import file would start with
12799    # the line `#! .'.  This would cause the generated library to
12800    # depend on `.', always an invalid library.  This was fixed in
12801    # development snapshots of GCC prior to 3.0.
12802    case $host_os in
12803      aix4 | aix4.[01] | aix4.[01].*)
12804      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12805	   echo ' yes '
12806	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12807	:
12808      else
12809	can_build_shared=no
12810      fi
12811      ;;
12812    esac
12813    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12814    # soname into executable. Probably we can add versioning support to
12815    # collect2, so additional links can be useful in future.
12816    if test "$aix_use_runtimelinking" = yes; then
12817      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12818      # instead of lib<name>.a to let people know that these are not
12819      # typical AIX shared libraries.
12820      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12821    else
12822      # We preserve .a as extension for shared libraries through AIX4.2
12823      # and later when we are not doing run time linking.
12824      library_names_spec='${libname}${release}.a $libname.a'
12825      soname_spec='${libname}${release}${shared_ext}$major'
12826    fi
12827    shlibpath_var=LIBPATH
12828  fi
12829  ;;
12830
12831amigaos*)
12832  library_names_spec='$libname.ixlibrary $libname.a'
12833  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12834  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'
12835  ;;
12836
12837beos*)
12838  library_names_spec='${libname}${shared_ext}'
12839  dynamic_linker="$host_os ld.so"
12840  shlibpath_var=LIBRARY_PATH
12841  ;;
12842
12843bsdi[45]*)
12844  version_type=linux
12845  need_version=no
12846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847  soname_spec='${libname}${release}${shared_ext}$major'
12848  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12849  shlibpath_var=LD_LIBRARY_PATH
12850  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12851  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12852  # the default ld.so.conf also contains /usr/contrib/lib and
12853  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12854  # libtool to hard-code these into programs
12855  ;;
12856
12857cygwin* | mingw* | pw32*)
12858  version_type=windows
12859  shrext_cmds=".dll"
12860  need_version=no
12861  need_lib_prefix=no
12862
12863  case $GCC,$host_os in
12864  yes,cygwin* | yes,mingw* | yes,pw32*)
12865    library_names_spec='$libname.dll.a'
12866    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12867    postinstall_cmds='base_file=`basename \${file}`~
12868      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12869      dldir=$destdir/`dirname \$dlpath`~
12870      test -d \$dldir || mkdir -p \$dldir~
12871      $install_prog $dir/$dlname \$dldir/$dlname~
12872      chmod a+x \$dldir/$dlname'
12873    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12874      dlpath=$dir/\$dldll~
12875       $rm \$dlpath'
12876    shlibpath_overrides_runpath=yes
12877
12878    case $host_os in
12879    cygwin*)
12880      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12881      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12882      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12883      ;;
12884    mingw*)
12885      # MinGW DLLs use traditional 'lib' prefix
12886      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12887      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12888      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12889        # It is most probably a Windows format PATH printed by
12890        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12891        # path with ; separators, and with drive letters. We can handle the
12892        # drive letters (cygwin fileutils understands them), so leave them,
12893        # especially as we might pass files found there to a mingw objdump,
12894        # which wouldn't understand a cygwinified path. Ahh.
12895        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12896      else
12897        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12898      fi
12899      ;;
12900    pw32*)
12901      # pw32 DLLs use 'pw' prefix rather than 'lib'
12902      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12903      ;;
12904    esac
12905    ;;
12906
12907  *)
12908    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12909    ;;
12910  esac
12911  dynamic_linker='Win32 ld.exe'
12912  # FIXME: first we should search . and the directory the executable is in
12913  shlibpath_var=PATH
12914  ;;
12915
12916darwin* | rhapsody*)
12917  dynamic_linker="$host_os dyld"
12918  version_type=darwin
12919  need_lib_prefix=no
12920  need_version=no
12921  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12922  soname_spec='${libname}${release}${major}$shared_ext'
12923  shlibpath_overrides_runpath=yes
12924  shlibpath_var=DYLD_LIBRARY_PATH
12925  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12926
12927  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12928  ;;
12929
12930dgux*)
12931  version_type=linux
12932  need_lib_prefix=no
12933  need_version=no
12934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12935  soname_spec='${libname}${release}${shared_ext}$major'
12936  shlibpath_var=LD_LIBRARY_PATH
12937  ;;
12938
12939freebsd1*)
12940  dynamic_linker=no
12941  ;;
12942
12943freebsd* | dragonfly*)
12944  # DragonFly does not have aout.  When/if they implement a new
12945  # versioning mechanism, adjust this.
12946  if test -x /usr/bin/objformat; then
12947    objformat=`/usr/bin/objformat`
12948  else
12949    case $host_os in
12950    freebsd[123]*) objformat=aout ;;
12951    *) objformat=elf ;;
12952    esac
12953  fi
12954  version_type=freebsd-$objformat
12955  case $version_type in
12956    freebsd-elf*)
12957      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12958      need_version=no
12959      need_lib_prefix=no
12960      ;;
12961    freebsd-*)
12962      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12963      need_version=yes
12964      ;;
12965  esac
12966  shlibpath_var=LD_LIBRARY_PATH
12967  case $host_os in
12968  freebsd2*)
12969    shlibpath_overrides_runpath=yes
12970    ;;
12971  freebsd3.[01]* | freebsdelf3.[01]*)
12972    shlibpath_overrides_runpath=yes
12973    hardcode_into_libs=yes
12974    ;;
12975  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12976  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12977    shlibpath_overrides_runpath=no
12978    hardcode_into_libs=yes
12979    ;;
12980  *) # from 4.6 on, and DragonFly
12981    shlibpath_overrides_runpath=yes
12982    hardcode_into_libs=yes
12983    ;;
12984  esac
12985  ;;
12986
12987gnu*)
12988  version_type=linux
12989  need_lib_prefix=no
12990  need_version=no
12991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12992  soname_spec='${libname}${release}${shared_ext}$major'
12993  shlibpath_var=LD_LIBRARY_PATH
12994  hardcode_into_libs=yes
12995  ;;
12996
12997hpux9* | hpux10* | hpux11*)
12998  # Give a soname corresponding to the major version so that dld.sl refuses to
12999  # link against other versions.
13000  version_type=sunos
13001  need_lib_prefix=no
13002  need_version=no
13003  case $host_cpu in
13004  ia64*)
13005    shrext_cmds='.so'
13006    hardcode_into_libs=yes
13007    dynamic_linker="$host_os dld.so"
13008    shlibpath_var=LD_LIBRARY_PATH
13009    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13010    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011    soname_spec='${libname}${release}${shared_ext}$major'
13012    if test "X$HPUX_IA64_MODE" = X32; then
13013      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13014    else
13015      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13016    fi
13017    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13018    ;;
13019   hppa*64*)
13020     shrext_cmds='.sl'
13021     hardcode_into_libs=yes
13022     dynamic_linker="$host_os dld.sl"
13023     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13024     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13025     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13026     soname_spec='${libname}${release}${shared_ext}$major'
13027     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13028     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13029     ;;
13030   *)
13031    shrext_cmds='.sl'
13032    dynamic_linker="$host_os dld.sl"
13033    shlibpath_var=SHLIB_PATH
13034    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13035    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13036    soname_spec='${libname}${release}${shared_ext}$major'
13037    ;;
13038  esac
13039  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13040  postinstall_cmds='chmod 555 $lib'
13041  ;;
13042
13043interix[3-9]*)
13044  version_type=linux
13045  need_lib_prefix=no
13046  need_version=no
13047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13048  soname_spec='${libname}${release}${shared_ext}$major'
13049  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13050  shlibpath_var=LD_LIBRARY_PATH
13051  shlibpath_overrides_runpath=no
13052  hardcode_into_libs=yes
13053  ;;
13054
13055irix5* | irix6* | nonstopux*)
13056  case $host_os in
13057    nonstopux*) version_type=nonstopux ;;
13058    *)
13059	if test "$lt_cv_prog_gnu_ld" = yes; then
13060		version_type=linux
13061	else
13062		version_type=irix
13063	fi ;;
13064  esac
13065  need_lib_prefix=no
13066  need_version=no
13067  soname_spec='${libname}${release}${shared_ext}$major'
13068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13069  case $host_os in
13070  irix5* | nonstopux*)
13071    libsuff= shlibsuff=
13072    ;;
13073  *)
13074    case $LD in # libtool.m4 will add one of these switches to LD
13075    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13076      libsuff= shlibsuff= libmagic=32-bit;;
13077    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13078      libsuff=32 shlibsuff=N32 libmagic=N32;;
13079    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13080      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13081    *) libsuff= shlibsuff= libmagic=never-match;;
13082    esac
13083    ;;
13084  esac
13085  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13086  shlibpath_overrides_runpath=no
13087  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13088  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13089  hardcode_into_libs=yes
13090  ;;
13091
13092# No shared lib support for Linux oldld, aout, or coff.
13093linux*oldld* | linux*aout* | linux*coff*)
13094  dynamic_linker=no
13095  ;;
13096
13097# This must be Linux ELF.
13098linux* | k*bsd*-gnu)
13099  version_type=linux
13100  need_lib_prefix=no
13101  need_version=no
13102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13103  soname_spec='${libname}${release}${shared_ext}$major'
13104  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13105  shlibpath_var=LD_LIBRARY_PATH
13106  shlibpath_overrides_runpath=no
13107  # This implies no fast_install, which is unacceptable.
13108  # Some rework will be needed to allow for fast_install
13109  # before this can be enabled.
13110  hardcode_into_libs=yes
13111  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13112  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13113
13114  # Append ld.so.conf contents to the search path
13115  if test -f /etc/ld.so.conf; then
13116    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13117    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13118  fi
13119
13120  # We used to test for /lib/ld.so.1 and disable shared libraries on
13121  # powerpc, because MkLinux only supported shared libraries with the
13122  # GNU dynamic linker.  Since this was broken with cross compilers,
13123  # most powerpc-linux boxes support dynamic linking these days and
13124  # people can always --disable-shared, the test was removed, and we
13125  # assume the GNU/Linux dynamic linker is in use.
13126  dynamic_linker='GNU/Linux ld.so'
13127  ;;
13128
13129netbsd*)
13130  version_type=sunos
13131  need_lib_prefix=no
13132  need_version=no
13133  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13134    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13135    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13136    dynamic_linker='NetBSD (a.out) ld.so'
13137  else
13138    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13139    soname_spec='${libname}${release}${shared_ext}$major'
13140    dynamic_linker='NetBSD ld.elf_so'
13141  fi
13142  shlibpath_var=LD_LIBRARY_PATH
13143  shlibpath_overrides_runpath=yes
13144  hardcode_into_libs=yes
13145  ;;
13146
13147newsos6)
13148  version_type=linux
13149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150  shlibpath_var=LD_LIBRARY_PATH
13151  shlibpath_overrides_runpath=yes
13152  ;;
13153
13154nto-qnx*)
13155  version_type=linux
13156  need_lib_prefix=no
13157  need_version=no
13158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13159  soname_spec='${libname}${release}${shared_ext}$major'
13160  shlibpath_var=LD_LIBRARY_PATH
13161  shlibpath_overrides_runpath=yes
13162  ;;
13163
13164openbsd*)
13165  version_type=sunos
13166  sys_lib_dlsearch_path_spec="/usr/lib"
13167  need_lib_prefix=no
13168  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13169  case $host_os in
13170    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13171    *)                         need_version=no  ;;
13172  esac
13173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13174  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13175  shlibpath_var=LD_LIBRARY_PATH
13176  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13177    case $host_os in
13178      openbsd2.[89] | openbsd2.[89].*)
13179	shlibpath_overrides_runpath=no
13180	;;
13181      *)
13182	shlibpath_overrides_runpath=yes
13183	;;
13184      esac
13185  else
13186    shlibpath_overrides_runpath=yes
13187  fi
13188  ;;
13189
13190os2*)
13191  libname_spec='$name'
13192  shrext_cmds=".dll"
13193  need_lib_prefix=no
13194  library_names_spec='$libname${shared_ext} $libname.a'
13195  dynamic_linker='OS/2 ld.exe'
13196  shlibpath_var=LIBPATH
13197  ;;
13198
13199osf3* | osf4* | osf5*)
13200  version_type=osf
13201  need_lib_prefix=no
13202  need_version=no
13203  soname_spec='${libname}${release}${shared_ext}$major'
13204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205  shlibpath_var=LD_LIBRARY_PATH
13206  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13207  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13208  ;;
13209
13210rdos*)
13211  dynamic_linker=no
13212  ;;
13213
13214solaris*)
13215  version_type=linux
13216  need_lib_prefix=no
13217  need_version=no
13218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219  soname_spec='${libname}${release}${shared_ext}$major'
13220  shlibpath_var=LD_LIBRARY_PATH
13221  shlibpath_overrides_runpath=yes
13222  hardcode_into_libs=yes
13223  # ldd complains unless libraries are executable
13224  postinstall_cmds='chmod +x $lib'
13225  ;;
13226
13227sunos4*)
13228  version_type=sunos
13229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13230  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13231  shlibpath_var=LD_LIBRARY_PATH
13232  shlibpath_overrides_runpath=yes
13233  if test "$with_gnu_ld" = yes; then
13234    need_lib_prefix=no
13235  fi
13236  need_version=yes
13237  ;;
13238
13239sysv4 | sysv4.3*)
13240  version_type=linux
13241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13242  soname_spec='${libname}${release}${shared_ext}$major'
13243  shlibpath_var=LD_LIBRARY_PATH
13244  case $host_vendor in
13245    sni)
13246      shlibpath_overrides_runpath=no
13247      need_lib_prefix=no
13248      export_dynamic_flag_spec='${wl}-Blargedynsym'
13249      runpath_var=LD_RUN_PATH
13250      ;;
13251    siemens)
13252      need_lib_prefix=no
13253      ;;
13254    motorola)
13255      need_lib_prefix=no
13256      need_version=no
13257      shlibpath_overrides_runpath=no
13258      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13259      ;;
13260  esac
13261  ;;
13262
13263sysv4*MP*)
13264  if test -d /usr/nec ;then
13265    version_type=linux
13266    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13267    soname_spec='$libname${shared_ext}.$major'
13268    shlibpath_var=LD_LIBRARY_PATH
13269  fi
13270  ;;
13271
13272sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13273  version_type=freebsd-elf
13274  need_lib_prefix=no
13275  need_version=no
13276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13277  soname_spec='${libname}${release}${shared_ext}$major'
13278  shlibpath_var=LD_LIBRARY_PATH
13279  hardcode_into_libs=yes
13280  if test "$with_gnu_ld" = yes; then
13281    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13282    shlibpath_overrides_runpath=no
13283  else
13284    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13285    shlibpath_overrides_runpath=yes
13286    case $host_os in
13287      sco3.2v5*)
13288        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13289	;;
13290    esac
13291  fi
13292  sys_lib_dlsearch_path_spec='/usr/lib'
13293  ;;
13294
13295uts4*)
13296  version_type=linux
13297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298  soname_spec='${libname}${release}${shared_ext}$major'
13299  shlibpath_var=LD_LIBRARY_PATH
13300  ;;
13301
13302*)
13303  dynamic_linker=no
13304  ;;
13305esac
13306{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13307echo "${ECHO_T}$dynamic_linker" >&6; }
13308test "$dynamic_linker" = no && can_build_shared=no
13309
13310variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13311if test "$GCC" = yes; then
13312  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13313fi
13314
13315{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13316echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13317hardcode_action_CXX=
13318if test -n "$hardcode_libdir_flag_spec_CXX" || \
13319   test -n "$runpath_var_CXX" || \
13320   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13321
13322  # We can hardcode non-existant directories.
13323  if test "$hardcode_direct_CXX" != no &&
13324     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13325     # have to relink, otherwise we might link with an installed library
13326     # when we should be linking with a yet-to-be-installed one
13327     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13328     test "$hardcode_minus_L_CXX" != no; then
13329    # Linking always hardcodes the temporary library directory.
13330    hardcode_action_CXX=relink
13331  else
13332    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13333    hardcode_action_CXX=immediate
13334  fi
13335else
13336  # We cannot hardcode anything, or else we can only hardcode existing
13337  # directories.
13338  hardcode_action_CXX=unsupported
13339fi
13340{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13341echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13342
13343if test "$hardcode_action_CXX" = relink; then
13344  # Fast installation is not supported
13345  enable_fast_install=no
13346elif test "$shlibpath_overrides_runpath" = yes ||
13347     test "$enable_shared" = no; then
13348  # Fast installation is not necessary
13349  enable_fast_install=needless
13350fi
13351
13352
13353# The else clause should only fire when bootstrapping the
13354# libtool distribution, otherwise you forgot to ship ltmain.sh
13355# with your package, and you will get complaints that there are
13356# no rules to generate ltmain.sh.
13357if test -f "$ltmain"; then
13358  # See if we are running on zsh, and set the options which allow our commands through
13359  # without removal of \ escapes.
13360  if test -n "${ZSH_VERSION+set}" ; then
13361    setopt NO_GLOB_SUBST
13362  fi
13363  # Now quote all the things that may contain metacharacters while being
13364  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13365  # variables and quote the copies for generation of the libtool script.
13366  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13367    SED SHELL STRIP \
13368    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13369    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13370    deplibs_check_method reload_flag reload_cmds need_locks \
13371    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13372    lt_cv_sys_global_symbol_to_c_name_address \
13373    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13374    old_postinstall_cmds old_postuninstall_cmds \
13375    compiler_CXX \
13376    CC_CXX \
13377    LD_CXX \
13378    lt_prog_compiler_wl_CXX \
13379    lt_prog_compiler_pic_CXX \
13380    lt_prog_compiler_static_CXX \
13381    lt_prog_compiler_no_builtin_flag_CXX \
13382    export_dynamic_flag_spec_CXX \
13383    thread_safe_flag_spec_CXX \
13384    whole_archive_flag_spec_CXX \
13385    enable_shared_with_static_runtimes_CXX \
13386    old_archive_cmds_CXX \
13387    old_archive_from_new_cmds_CXX \
13388    predep_objects_CXX \
13389    postdep_objects_CXX \
13390    predeps_CXX \
13391    postdeps_CXX \
13392    compiler_lib_search_path_CXX \
13393    archive_cmds_CXX \
13394    archive_expsym_cmds_CXX \
13395    postinstall_cmds_CXX \
13396    postuninstall_cmds_CXX \
13397    old_archive_from_expsyms_cmds_CXX \
13398    allow_undefined_flag_CXX \
13399    no_undefined_flag_CXX \
13400    export_symbols_cmds_CXX \
13401    hardcode_libdir_flag_spec_CXX \
13402    hardcode_libdir_flag_spec_ld_CXX \
13403    hardcode_libdir_separator_CXX \
13404    hardcode_automatic_CXX \
13405    module_cmds_CXX \
13406    module_expsym_cmds_CXX \
13407    lt_cv_prog_compiler_c_o_CXX \
13408    fix_srcfile_path_CXX \
13409    exclude_expsyms_CXX \
13410    include_expsyms_CXX; do
13411
13412    case $var in
13413    old_archive_cmds_CXX | \
13414    old_archive_from_new_cmds_CXX | \
13415    archive_cmds_CXX | \
13416    archive_expsym_cmds_CXX | \
13417    module_cmds_CXX | \
13418    module_expsym_cmds_CXX | \
13419    old_archive_from_expsyms_cmds_CXX | \
13420    export_symbols_cmds_CXX | \
13421    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13422    postinstall_cmds | postuninstall_cmds | \
13423    old_postinstall_cmds | old_postuninstall_cmds | \
13424    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13425      # Double-quote double-evaled strings.
13426      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13427      ;;
13428    *)
13429      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13430      ;;
13431    esac
13432  done
13433
13434  case $lt_echo in
13435  *'\$0 --fallback-echo"')
13436    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13437    ;;
13438  esac
13439
13440cfgfile="$ofile"
13441
13442  cat <<__EOF__ >> "$cfgfile"
13443# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13444
13445# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13446
13447# Shell to use when invoking shell scripts.
13448SHELL=$lt_SHELL
13449
13450# Whether or not to build shared libraries.
13451build_libtool_libs=$enable_shared
13452
13453# Whether or not to build static libraries.
13454build_old_libs=$enable_static
13455
13456# Whether or not to add -lc for building shared libraries.
13457build_libtool_need_lc=$archive_cmds_need_lc_CXX
13458
13459# Whether or not to disallow shared libs when runtime libs are static
13460allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13461
13462# Whether or not to optimize for fast installation.
13463fast_install=$enable_fast_install
13464
13465# The host system.
13466host_alias=$host_alias
13467host=$host
13468host_os=$host_os
13469
13470# The build system.
13471build_alias=$build_alias
13472build=$build
13473build_os=$build_os
13474
13475# An echo program that does not interpret backslashes.
13476echo=$lt_echo
13477
13478# The archiver.
13479AR=$lt_AR
13480AR_FLAGS=$lt_AR_FLAGS
13481
13482# A C compiler.
13483LTCC=$lt_LTCC
13484
13485# LTCC compiler flags.
13486LTCFLAGS=$lt_LTCFLAGS
13487
13488# A language-specific compiler.
13489CC=$lt_compiler_CXX
13490
13491# Is the compiler the GNU C compiler?
13492with_gcc=$GCC_CXX
13493
13494# An ERE matcher.
13495EGREP=$lt_EGREP
13496
13497# The linker used to build libraries.
13498LD=$lt_LD_CXX
13499
13500# Whether we need hard or soft links.
13501LN_S=$lt_LN_S
13502
13503# A BSD-compatible nm program.
13504NM=$lt_NM
13505
13506# A symbol stripping program
13507STRIP=$lt_STRIP
13508
13509# Used to examine libraries when file_magic_cmd begins "file"
13510MAGIC_CMD=$MAGIC_CMD
13511
13512# Used on cygwin: DLL creation program.
13513DLLTOOL="$DLLTOOL"
13514
13515# Used on cygwin: object dumper.
13516OBJDUMP="$OBJDUMP"
13517
13518# Used on cygwin: assembler.
13519AS="$AS"
13520
13521# The name of the directory that contains temporary libtool files.
13522objdir=$objdir
13523
13524# How to create reloadable object files.
13525reload_flag=$lt_reload_flag
13526reload_cmds=$lt_reload_cmds
13527
13528# How to pass a linker flag through the compiler.
13529wl=$lt_lt_prog_compiler_wl_CXX
13530
13531# Object file suffix (normally "o").
13532objext="$ac_objext"
13533
13534# Old archive suffix (normally "a").
13535libext="$libext"
13536
13537# Shared library suffix (normally ".so").
13538shrext_cmds='$shrext_cmds'
13539
13540# Executable file suffix (normally "").
13541exeext="$exeext"
13542
13543# Additional compiler flags for building library objects.
13544pic_flag=$lt_lt_prog_compiler_pic_CXX
13545pic_mode=$pic_mode
13546
13547# What is the maximum length of a command?
13548max_cmd_len=$lt_cv_sys_max_cmd_len
13549
13550# Does compiler simultaneously support -c and -o options?
13551compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13552
13553# Must we lock files when doing compilation?
13554need_locks=$lt_need_locks
13555
13556# Do we need the lib prefix for modules?
13557need_lib_prefix=$need_lib_prefix
13558
13559# Do we need a version for libraries?
13560need_version=$need_version
13561
13562# Whether dlopen is supported.
13563dlopen_support=$enable_dlopen
13564
13565# Whether dlopen of programs is supported.
13566dlopen_self=$enable_dlopen_self
13567
13568# Whether dlopen of statically linked programs is supported.
13569dlopen_self_static=$enable_dlopen_self_static
13570
13571# Compiler flag to prevent dynamic linking.
13572link_static_flag=$lt_lt_prog_compiler_static_CXX
13573
13574# Compiler flag to turn off builtin functions.
13575no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13576
13577# Compiler flag to allow reflexive dlopens.
13578export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13579
13580# Compiler flag to generate shared objects directly from archives.
13581whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13582
13583# Compiler flag to generate thread-safe objects.
13584thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13585
13586# Library versioning type.
13587version_type=$version_type
13588
13589# Format of library name prefix.
13590libname_spec=$lt_libname_spec
13591
13592# List of archive names.  First name is the real one, the rest are links.
13593# The last name is the one that the linker finds with -lNAME.
13594library_names_spec=$lt_library_names_spec
13595
13596# The coded name of the library, if different from the real name.
13597soname_spec=$lt_soname_spec
13598
13599# Commands used to build and install an old-style archive.
13600RANLIB=$lt_RANLIB
13601old_archive_cmds=$lt_old_archive_cmds_CXX
13602old_postinstall_cmds=$lt_old_postinstall_cmds
13603old_postuninstall_cmds=$lt_old_postuninstall_cmds
13604
13605# Create an old-style archive from a shared archive.
13606old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13607
13608# Create a temporary old-style archive to link instead of a shared archive.
13609old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13610
13611# Commands used to build and install a shared archive.
13612archive_cmds=$lt_archive_cmds_CXX
13613archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13614postinstall_cmds=$lt_postinstall_cmds
13615postuninstall_cmds=$lt_postuninstall_cmds
13616
13617# Commands used to build a loadable module (assumed same as above if empty)
13618module_cmds=$lt_module_cmds_CXX
13619module_expsym_cmds=$lt_module_expsym_cmds_CXX
13620
13621# Commands to strip libraries.
13622old_striplib=$lt_old_striplib
13623striplib=$lt_striplib
13624
13625# Dependencies to place before the objects being linked to create a
13626# shared library.
13627predep_objects=$lt_predep_objects_CXX
13628
13629# Dependencies to place after the objects being linked to create a
13630# shared library.
13631postdep_objects=$lt_postdep_objects_CXX
13632
13633# Dependencies to place before the objects being linked to create a
13634# shared library.
13635predeps=$lt_predeps_CXX
13636
13637# Dependencies to place after the objects being linked to create a
13638# shared library.
13639postdeps=$lt_postdeps_CXX
13640
13641# The library search path used internally by the compiler when linking
13642# a shared library.
13643compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13644
13645# Method to check whether dependent libraries are shared objects.
13646deplibs_check_method=$lt_deplibs_check_method
13647
13648# Command to use when deplibs_check_method == file_magic.
13649file_magic_cmd=$lt_file_magic_cmd
13650
13651# Flag that allows shared libraries with undefined symbols to be built.
13652allow_undefined_flag=$lt_allow_undefined_flag_CXX
13653
13654# Flag that forces no undefined symbols.
13655no_undefined_flag=$lt_no_undefined_flag_CXX
13656
13657# Commands used to finish a libtool library installation in a directory.
13658finish_cmds=$lt_finish_cmds
13659
13660# Same as above, but a single script fragment to be evaled but not shown.
13661finish_eval=$lt_finish_eval
13662
13663# Take the output of nm and produce a listing of raw symbols and C names.
13664global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13665
13666# Transform the output of nm in a proper C declaration
13667global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13668
13669# Transform the output of nm in a C name address pair
13670global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13671
13672# This is the shared library runtime path variable.
13673runpath_var=$runpath_var
13674
13675# This is the shared library path variable.
13676shlibpath_var=$shlibpath_var
13677
13678# Is shlibpath searched before the hard-coded library search path?
13679shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13680
13681# How to hardcode a shared library path into an executable.
13682hardcode_action=$hardcode_action_CXX
13683
13684# Whether we should hardcode library paths into libraries.
13685hardcode_into_libs=$hardcode_into_libs
13686
13687# Flag to hardcode \$libdir into a binary during linking.
13688# This must work even if \$libdir does not exist.
13689hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13690
13691# If ld is used when linking, flag to hardcode \$libdir into
13692# a binary during linking. This must work even if \$libdir does
13693# not exist.
13694hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13695
13696# Whether we need a single -rpath flag with a separated argument.
13697hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13698
13699# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13700# resulting binary.
13701hardcode_direct=$hardcode_direct_CXX
13702
13703# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13704# resulting binary.
13705hardcode_minus_L=$hardcode_minus_L_CXX
13706
13707# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13708# the resulting binary.
13709hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13710
13711# Set to yes if building a shared library automatically hardcodes DIR into the library
13712# and all subsequent libraries and executables linked against it.
13713hardcode_automatic=$hardcode_automatic_CXX
13714
13715# Variables whose values should be saved in libtool wrapper scripts and
13716# restored at relink time.
13717variables_saved_for_relink="$variables_saved_for_relink"
13718
13719# Whether libtool must link a program against all its dependency libraries.
13720link_all_deplibs=$link_all_deplibs_CXX
13721
13722# Compile-time system search path for libraries
13723sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13724
13725# Run-time system search path for libraries
13726sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13727
13728# Fix the shell variable \$srcfile for the compiler.
13729fix_srcfile_path=$lt_fix_srcfile_path
13730
13731# Set to yes if exported symbols are required.
13732always_export_symbols=$always_export_symbols_CXX
13733
13734# The commands to list exported symbols.
13735export_symbols_cmds=$lt_export_symbols_cmds_CXX
13736
13737# The commands to extract the exported symbol list from a shared archive.
13738extract_expsyms_cmds=$lt_extract_expsyms_cmds
13739
13740# Symbols that should not be listed in the preloaded symbols.
13741exclude_expsyms=$lt_exclude_expsyms_CXX
13742
13743# Symbols that must always be exported.
13744include_expsyms=$lt_include_expsyms_CXX
13745
13746# ### END LIBTOOL TAG CONFIG: $tagname
13747
13748__EOF__
13749
13750
13751else
13752  # If there is no Makefile yet, we rely on a make rule to execute
13753  # `config.status --recheck' to rerun these tests and create the
13754  # libtool script then.
13755  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13756  if test -f "$ltmain_in"; then
13757    test -f Makefile && make "$ltmain"
13758  fi
13759fi
13760
13761
13762ac_ext=c
13763ac_cpp='$CPP $CPPFLAGS'
13764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13766ac_compiler_gnu=$ac_cv_c_compiler_gnu
13767
13768CC=$lt_save_CC
13769LDCXX=$LD
13770LD=$lt_save_LD
13771GCC=$lt_save_GCC
13772with_gnu_ldcxx=$with_gnu_ld
13773with_gnu_ld=$lt_save_with_gnu_ld
13774lt_cv_path_LDCXX=$lt_cv_path_LD
13775lt_cv_path_LD=$lt_save_path_LD
13776lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13777lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13778
13779	else
13780	  tagname=""
13781	fi
13782	;;
13783
13784      F77)
13785	if test -n "$F77" && test "X$F77" != "Xno"; then
13786
13787ac_ext=f
13788ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13789ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13790ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13791
13792
13793archive_cmds_need_lc_F77=no
13794allow_undefined_flag_F77=
13795always_export_symbols_F77=no
13796archive_expsym_cmds_F77=
13797export_dynamic_flag_spec_F77=
13798hardcode_direct_F77=no
13799hardcode_libdir_flag_spec_F77=
13800hardcode_libdir_flag_spec_ld_F77=
13801hardcode_libdir_separator_F77=
13802hardcode_minus_L_F77=no
13803hardcode_automatic_F77=no
13804module_cmds_F77=
13805module_expsym_cmds_F77=
13806link_all_deplibs_F77=unknown
13807old_archive_cmds_F77=$old_archive_cmds
13808no_undefined_flag_F77=
13809whole_archive_flag_spec_F77=
13810enable_shared_with_static_runtimes_F77=no
13811
13812# Source file extension for f77 test sources.
13813ac_ext=f
13814
13815# Object file extension for compiled f77 test sources.
13816objext=o
13817objext_F77=$objext
13818
13819# Code to be used in simple compile tests
13820lt_simple_compile_test_code="\
13821      subroutine t
13822      return
13823      end
13824"
13825
13826# Code to be used in simple link tests
13827lt_simple_link_test_code="\
13828      program t
13829      end
13830"
13831
13832# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13833
13834# If no C compiler was specified, use CC.
13835LTCC=${LTCC-"$CC"}
13836
13837# If no C compiler flags were specified, use CFLAGS.
13838LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13839
13840# Allow CC to be a program name with arguments.
13841compiler=$CC
13842
13843
13844# save warnings/boilerplate of simple test code
13845ac_outfile=conftest.$ac_objext
13846echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13847eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13848_lt_compiler_boilerplate=`cat conftest.err`
13849$rm conftest*
13850
13851ac_outfile=conftest.$ac_objext
13852echo "$lt_simple_link_test_code" >conftest.$ac_ext
13853eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13854_lt_linker_boilerplate=`cat conftest.err`
13855$rm conftest*
13856
13857
13858# Allow CC to be a program name with arguments.
13859lt_save_CC="$CC"
13860CC=${F77-"f77"}
13861compiler=$CC
13862compiler_F77=$CC
13863for cc_temp in $compiler""; do
13864  case $cc_temp in
13865    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13866    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13867    \-*) ;;
13868    *) break;;
13869  esac
13870done
13871cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13872
13873
13874{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13875echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13876{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13877echo "${ECHO_T}$can_build_shared" >&6; }
13878
13879{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13880echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13881test "$can_build_shared" = "no" && enable_shared=no
13882
13883# On AIX, shared libraries and static libraries use the same namespace, and
13884# are all built from PIC.
13885case $host_os in
13886aix3*)
13887  test "$enable_shared" = yes && enable_static=no
13888  if test -n "$RANLIB"; then
13889    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13890    postinstall_cmds='$RANLIB $lib'
13891  fi
13892  ;;
13893aix4* | aix5*)
13894  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13895    test "$enable_shared" = yes && enable_static=no
13896  fi
13897  ;;
13898esac
13899{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13900echo "${ECHO_T}$enable_shared" >&6; }
13901
13902{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13903echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13904# Make sure either enable_shared or enable_static is yes.
13905test "$enable_shared" = yes || enable_static=yes
13906{ echo "$as_me:$LINENO: result: $enable_static" >&5
13907echo "${ECHO_T}$enable_static" >&6; }
13908
13909GCC_F77="$G77"
13910LD_F77="$LD"
13911
13912lt_prog_compiler_wl_F77=
13913lt_prog_compiler_pic_F77=
13914lt_prog_compiler_static_F77=
13915
13916{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13917echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13918
13919  if test "$GCC" = yes; then
13920    lt_prog_compiler_wl_F77='-Wl,'
13921    lt_prog_compiler_static_F77='-static'
13922
13923    case $host_os in
13924      aix*)
13925      # All AIX code is PIC.
13926      if test "$host_cpu" = ia64; then
13927	# AIX 5 now supports IA64 processor
13928	lt_prog_compiler_static_F77='-Bstatic'
13929      fi
13930      ;;
13931
13932    amigaos*)
13933      # FIXME: we need at least 68020 code to build shared libraries, but
13934      # adding the `-m68020' flag to GCC prevents building anything better,
13935      # like `-m68040'.
13936      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13937      ;;
13938
13939    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13940      # PIC is the default for these OSes.
13941      ;;
13942
13943    mingw* | cygwin* | pw32* | os2*)
13944      # This hack is so that the source file can tell whether it is being
13945      # built for inclusion in a dll (and should export symbols for example).
13946      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13947      # (--disable-auto-import) libraries
13948      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13949      ;;
13950
13951    darwin* | rhapsody*)
13952      # PIC is the default on this platform
13953      # Common symbols not allowed in MH_DYLIB files
13954      lt_prog_compiler_pic_F77='-fno-common'
13955      ;;
13956
13957    interix[3-9]*)
13958      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13959      # Instead, we relocate shared libraries at runtime.
13960      ;;
13961
13962    msdosdjgpp*)
13963      # Just because we use GCC doesn't mean we suddenly get shared libraries
13964      # on systems that don't support them.
13965      lt_prog_compiler_can_build_shared_F77=no
13966      enable_shared=no
13967      ;;
13968
13969    sysv4*MP*)
13970      if test -d /usr/nec; then
13971	lt_prog_compiler_pic_F77=-Kconform_pic
13972      fi
13973      ;;
13974
13975    hpux*)
13976      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13977      # not for PA HP-UX.
13978      case $host_cpu in
13979      hppa*64*|ia64*)
13980	# +Z the default
13981	;;
13982      *)
13983	lt_prog_compiler_pic_F77='-fPIC'
13984	;;
13985      esac
13986      ;;
13987
13988    *)
13989      lt_prog_compiler_pic_F77='-fPIC'
13990      ;;
13991    esac
13992  else
13993    # PORTME Check for flag to pass linker flags through the system compiler.
13994    case $host_os in
13995    aix*)
13996      lt_prog_compiler_wl_F77='-Wl,'
13997      if test "$host_cpu" = ia64; then
13998	# AIX 5 now supports IA64 processor
13999	lt_prog_compiler_static_F77='-Bstatic'
14000      else
14001	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14002      fi
14003      ;;
14004      darwin*)
14005        # PIC is the default on this platform
14006        # Common symbols not allowed in MH_DYLIB files
14007       case $cc_basename in
14008         xlc*)
14009         lt_prog_compiler_pic_F77='-qnocommon'
14010         lt_prog_compiler_wl_F77='-Wl,'
14011         ;;
14012       esac
14013       ;;
14014
14015    mingw* | cygwin* | pw32* | os2*)
14016      # This hack is so that the source file can tell whether it is being
14017      # built for inclusion in a dll (and should export symbols for example).
14018      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14019      ;;
14020
14021    hpux9* | hpux10* | hpux11*)
14022      lt_prog_compiler_wl_F77='-Wl,'
14023      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14024      # not for PA HP-UX.
14025      case $host_cpu in
14026      hppa*64*|ia64*)
14027	# +Z the default
14028	;;
14029      *)
14030	lt_prog_compiler_pic_F77='+Z'
14031	;;
14032      esac
14033      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14034      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14035      ;;
14036
14037    irix5* | irix6* | nonstopux*)
14038      lt_prog_compiler_wl_F77='-Wl,'
14039      # PIC (with -KPIC) is the default.
14040      lt_prog_compiler_static_F77='-non_shared'
14041      ;;
14042
14043    newsos6)
14044      lt_prog_compiler_pic_F77='-KPIC'
14045      lt_prog_compiler_static_F77='-Bstatic'
14046      ;;
14047
14048    linux* | k*bsd*-gnu)
14049      case $cc_basename in
14050      icc* | ecc*)
14051	lt_prog_compiler_wl_F77='-Wl,'
14052	lt_prog_compiler_pic_F77='-KPIC'
14053	lt_prog_compiler_static_F77='-static'
14054        ;;
14055      pgcc* | pgf77* | pgf90* | pgf95*)
14056        # Portland Group compilers (*not* the Pentium gcc compiler,
14057	# which looks to be a dead project)
14058	lt_prog_compiler_wl_F77='-Wl,'
14059	lt_prog_compiler_pic_F77='-fpic'
14060	lt_prog_compiler_static_F77='-Bstatic'
14061        ;;
14062      ccc*)
14063        lt_prog_compiler_wl_F77='-Wl,'
14064        # All Alpha code is PIC.
14065        lt_prog_compiler_static_F77='-non_shared'
14066        ;;
14067      *)
14068        case `$CC -V 2>&1 | sed 5q` in
14069	*Sun\ C*)
14070	  # Sun C 5.9
14071	  lt_prog_compiler_pic_F77='-KPIC'
14072	  lt_prog_compiler_static_F77='-Bstatic'
14073	  lt_prog_compiler_wl_F77='-Wl,'
14074	  ;;
14075	*Sun\ F*)
14076	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14077	  lt_prog_compiler_pic_F77='-KPIC'
14078	  lt_prog_compiler_static_F77='-Bstatic'
14079	  lt_prog_compiler_wl_F77=''
14080	  ;;
14081	esac
14082	;;
14083      esac
14084      ;;
14085
14086    osf3* | osf4* | osf5*)
14087      lt_prog_compiler_wl_F77='-Wl,'
14088      # All OSF/1 code is PIC.
14089      lt_prog_compiler_static_F77='-non_shared'
14090      ;;
14091
14092    rdos*)
14093      lt_prog_compiler_static_F77='-non_shared'
14094      ;;
14095
14096    solaris*)
14097      lt_prog_compiler_pic_F77='-KPIC'
14098      lt_prog_compiler_static_F77='-Bstatic'
14099      case $cc_basename in
14100      f77* | f90* | f95*)
14101	lt_prog_compiler_wl_F77='-Qoption ld ';;
14102      *)
14103	lt_prog_compiler_wl_F77='-Wl,';;
14104      esac
14105      ;;
14106
14107    sunos4*)
14108      lt_prog_compiler_wl_F77='-Qoption ld '
14109      lt_prog_compiler_pic_F77='-PIC'
14110      lt_prog_compiler_static_F77='-Bstatic'
14111      ;;
14112
14113    sysv4 | sysv4.2uw2* | sysv4.3*)
14114      lt_prog_compiler_wl_F77='-Wl,'
14115      lt_prog_compiler_pic_F77='-KPIC'
14116      lt_prog_compiler_static_F77='-Bstatic'
14117      ;;
14118
14119    sysv4*MP*)
14120      if test -d /usr/nec ;then
14121	lt_prog_compiler_pic_F77='-Kconform_pic'
14122	lt_prog_compiler_static_F77='-Bstatic'
14123      fi
14124      ;;
14125
14126    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14127      lt_prog_compiler_wl_F77='-Wl,'
14128      lt_prog_compiler_pic_F77='-KPIC'
14129      lt_prog_compiler_static_F77='-Bstatic'
14130      ;;
14131
14132    unicos*)
14133      lt_prog_compiler_wl_F77='-Wl,'
14134      lt_prog_compiler_can_build_shared_F77=no
14135      ;;
14136
14137    uts4*)
14138      lt_prog_compiler_pic_F77='-pic'
14139      lt_prog_compiler_static_F77='-Bstatic'
14140      ;;
14141
14142    *)
14143      lt_prog_compiler_can_build_shared_F77=no
14144      ;;
14145    esac
14146  fi
14147
14148{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14149echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14150
14151#
14152# Check to make sure the PIC flag actually works.
14153#
14154if test -n "$lt_prog_compiler_pic_F77"; then
14155
14156{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14157echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14158if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14159  echo $ECHO_N "(cached) $ECHO_C" >&6
14160else
14161  lt_prog_compiler_pic_works_F77=no
14162  ac_outfile=conftest.$ac_objext
14163   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14164   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14165   # Insert the option either (1) after the last *FLAGS variable, or
14166   # (2) before a word containing "conftest.", or (3) at the end.
14167   # Note that $ac_compile itself does not contain backslashes and begins
14168   # with a dollar sign (not a hyphen), so the echo should work correctly.
14169   # The option is referenced via a variable to avoid confusing sed.
14170   lt_compile=`echo "$ac_compile" | $SED \
14171   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14172   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14173   -e 's:$: $lt_compiler_flag:'`
14174   (eval echo "\"\$as_me:14174: $lt_compile\"" >&5)
14175   (eval "$lt_compile" 2>conftest.err)
14176   ac_status=$?
14177   cat conftest.err >&5
14178   echo "$as_me:14178: \$? = $ac_status" >&5
14179   if (exit $ac_status) && test -s "$ac_outfile"; then
14180     # The compiler can only warn and ignore the option if not recognized
14181     # So say no if there are warnings other than the usual output.
14182     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14183     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14184     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14185       lt_prog_compiler_pic_works_F77=yes
14186     fi
14187   fi
14188   $rm conftest*
14189
14190fi
14191{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14192echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14193
14194if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14195    case $lt_prog_compiler_pic_F77 in
14196     "" | " "*) ;;
14197     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14198     esac
14199else
14200    lt_prog_compiler_pic_F77=
14201     lt_prog_compiler_can_build_shared_F77=no
14202fi
14203
14204fi
14205case $host_os in
14206  # For platforms which do not support PIC, -DPIC is meaningless:
14207  *djgpp*)
14208    lt_prog_compiler_pic_F77=
14209    ;;
14210  *)
14211    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14212    ;;
14213esac
14214
14215#
14216# Check to make sure the static flag actually works.
14217#
14218wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14219{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14220echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14221if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14222  echo $ECHO_N "(cached) $ECHO_C" >&6
14223else
14224  lt_prog_compiler_static_works_F77=no
14225   save_LDFLAGS="$LDFLAGS"
14226   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14227   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14228   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14229     # The linker can only warn and ignore the option if not recognized
14230     # So say no if there are warnings
14231     if test -s conftest.err; then
14232       # Append any errors to the config.log.
14233       cat conftest.err 1>&5
14234       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14235       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14236       if diff conftest.exp conftest.er2 >/dev/null; then
14237         lt_prog_compiler_static_works_F77=yes
14238       fi
14239     else
14240       lt_prog_compiler_static_works_F77=yes
14241     fi
14242   fi
14243   $rm conftest*
14244   LDFLAGS="$save_LDFLAGS"
14245
14246fi
14247{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14248echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14249
14250if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14251    :
14252else
14253    lt_prog_compiler_static_F77=
14254fi
14255
14256
14257{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14258echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14259if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14260  echo $ECHO_N "(cached) $ECHO_C" >&6
14261else
14262  lt_cv_prog_compiler_c_o_F77=no
14263   $rm -r conftest 2>/dev/null
14264   mkdir conftest
14265   cd conftest
14266   mkdir out
14267   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14268
14269   lt_compiler_flag="-o out/conftest2.$ac_objext"
14270   # Insert the option either (1) after the last *FLAGS variable, or
14271   # (2) before a word containing "conftest.", or (3) at the end.
14272   # Note that $ac_compile itself does not contain backslashes and begins
14273   # with a dollar sign (not a hyphen), so the echo should work correctly.
14274   lt_compile=`echo "$ac_compile" | $SED \
14275   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14276   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14277   -e 's:$: $lt_compiler_flag:'`
14278   (eval echo "\"\$as_me:14278: $lt_compile\"" >&5)
14279   (eval "$lt_compile" 2>out/conftest.err)
14280   ac_status=$?
14281   cat out/conftest.err >&5
14282   echo "$as_me:14282: \$? = $ac_status" >&5
14283   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14284   then
14285     # The compiler can only warn and ignore the option if not recognized
14286     # So say no if there are warnings
14287     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14288     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14289     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14290       lt_cv_prog_compiler_c_o_F77=yes
14291     fi
14292   fi
14293   chmod u+w . 2>&5
14294   $rm conftest*
14295   # SGI C++ compiler will create directory out/ii_files/ for
14296   # template instantiation
14297   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14298   $rm out/* && rmdir out
14299   cd ..
14300   rmdir conftest
14301   $rm conftest*
14302
14303fi
14304{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14305echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14306
14307
14308hard_links="nottested"
14309if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14310  # do not overwrite the value of need_locks provided by the user
14311  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14312echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14313  hard_links=yes
14314  $rm conftest*
14315  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14316  touch conftest.a
14317  ln conftest.a conftest.b 2>&5 || hard_links=no
14318  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14319  { echo "$as_me:$LINENO: result: $hard_links" >&5
14320echo "${ECHO_T}$hard_links" >&6; }
14321  if test "$hard_links" = no; then
14322    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14323echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14324    need_locks=warn
14325  fi
14326else
14327  need_locks=no
14328fi
14329
14330{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14331echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14332
14333  runpath_var=
14334  allow_undefined_flag_F77=
14335  enable_shared_with_static_runtimes_F77=no
14336  archive_cmds_F77=
14337  archive_expsym_cmds_F77=
14338  old_archive_From_new_cmds_F77=
14339  old_archive_from_expsyms_cmds_F77=
14340  export_dynamic_flag_spec_F77=
14341  whole_archive_flag_spec_F77=
14342  thread_safe_flag_spec_F77=
14343  hardcode_libdir_flag_spec_F77=
14344  hardcode_libdir_flag_spec_ld_F77=
14345  hardcode_libdir_separator_F77=
14346  hardcode_direct_F77=no
14347  hardcode_minus_L_F77=no
14348  hardcode_shlibpath_var_F77=unsupported
14349  link_all_deplibs_F77=unknown
14350  hardcode_automatic_F77=no
14351  module_cmds_F77=
14352  module_expsym_cmds_F77=
14353  always_export_symbols_F77=no
14354  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14355  # include_expsyms should be a list of space-separated symbols to be *always*
14356  # included in the symbol list
14357  include_expsyms_F77=
14358  # exclude_expsyms can be an extended regexp of symbols to exclude
14359  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14360  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14361  # as well as any symbol that contains `d'.
14362  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14363  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14364  # platforms (ab)use it in PIC code, but their linkers get confused if
14365  # the symbol is explicitly referenced.  Since portable code cannot
14366  # rely on this symbol name, it's probably fine to never include it in
14367  # preloaded symbol tables.
14368  extract_expsyms_cmds=
14369  # Just being paranoid about ensuring that cc_basename is set.
14370  for cc_temp in $compiler""; do
14371  case $cc_temp in
14372    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14373    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14374    \-*) ;;
14375    *) break;;
14376  esac
14377done
14378cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14379
14380  case $host_os in
14381  cygwin* | mingw* | pw32*)
14382    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14383    # When not using gcc, we currently assume that we are using
14384    # Microsoft Visual C++.
14385    if test "$GCC" != yes; then
14386      with_gnu_ld=no
14387    fi
14388    ;;
14389  interix*)
14390    # we just hope/assume this is gcc and not c89 (= MSVC++)
14391    with_gnu_ld=yes
14392    ;;
14393  openbsd*)
14394    with_gnu_ld=no
14395    ;;
14396  esac
14397
14398  ld_shlibs_F77=yes
14399  if test "$with_gnu_ld" = yes; then
14400    # If archive_cmds runs LD, not CC, wlarc should be empty
14401    wlarc='${wl}'
14402
14403    # Set some defaults for GNU ld with shared library support. These
14404    # are reset later if shared libraries are not supported. Putting them
14405    # here allows them to be overridden if necessary.
14406    runpath_var=LD_RUN_PATH
14407    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14408    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14409    # ancient GNU ld didn't support --whole-archive et. al.
14410    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14411	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14412      else
14413  	whole_archive_flag_spec_F77=
14414    fi
14415    supports_anon_versioning=no
14416    case `$LD -v 2>/dev/null` in
14417      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14418      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14419      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14420      *\ 2.11.*) ;; # other 2.11 versions
14421      *) supports_anon_versioning=yes ;;
14422    esac
14423
14424    # See if GNU ld supports shared libraries.
14425    case $host_os in
14426    aix3* | aix4* | aix5*)
14427      # On AIX/PPC, the GNU linker is very broken
14428      if test "$host_cpu" != ia64; then
14429	ld_shlibs_F77=no
14430	cat <<EOF 1>&2
14431
14432*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14433*** to be unable to reliably create shared libraries on AIX.
14434*** Therefore, libtool is disabling shared libraries support.  If you
14435*** really care for shared libraries, you may want to modify your PATH
14436*** so that a non-GNU linker is found, and then restart.
14437
14438EOF
14439      fi
14440      ;;
14441
14442    amigaos*)
14443      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)'
14444      hardcode_libdir_flag_spec_F77='-L$libdir'
14445      hardcode_minus_L_F77=yes
14446
14447      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14448      # that the semantics of dynamic libraries on AmigaOS, at least up
14449      # to version 4, is to share data among multiple programs linked
14450      # with the same dynamic library.  Since this doesn't match the
14451      # behavior of shared libraries on other platforms, we can't use
14452      # them.
14453      ld_shlibs_F77=no
14454      ;;
14455
14456    beos*)
14457      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14458	allow_undefined_flag_F77=unsupported
14459	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14460	# support --undefined.  This deserves some investigation.  FIXME
14461	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14462      else
14463	ld_shlibs_F77=no
14464      fi
14465      ;;
14466
14467    cygwin* | mingw* | pw32*)
14468      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14469      # as there is no search path for DLLs.
14470      hardcode_libdir_flag_spec_F77='-L$libdir'
14471      allow_undefined_flag_F77=unsupported
14472      always_export_symbols_F77=no
14473      enable_shared_with_static_runtimes_F77=yes
14474      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14475
14476      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14477        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14478	# If the export-symbols file already is a .def file (1st line
14479	# is EXPORTS), use it as is; otherwise, prepend...
14480	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14481	  cp $export_symbols $output_objdir/$soname.def;
14482	else
14483	  echo EXPORTS > $output_objdir/$soname.def;
14484	  cat $export_symbols >> $output_objdir/$soname.def;
14485	fi~
14486	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14487      else
14488	ld_shlibs_F77=no
14489      fi
14490      ;;
14491
14492    interix[3-9]*)
14493      hardcode_direct_F77=no
14494      hardcode_shlibpath_var_F77=no
14495      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14496      export_dynamic_flag_spec_F77='${wl}-E'
14497      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14498      # Instead, shared libraries are loaded at an image base (0x10000000 by
14499      # default) and relocated if they conflict, which is a slow very memory
14500      # consuming and fragmenting process.  To avoid this, we pick a random,
14501      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14502      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14503      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'
14504      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'
14505      ;;
14506
14507    gnu* | linux* | k*bsd*-gnu)
14508      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14509	tmp_addflag=
14510	case $cc_basename,$host_cpu in
14511	pgcc*)				# Portland Group C compiler
14512	  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'
14513	  tmp_addflag=' $pic_flag'
14514	  ;;
14515	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14516	  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'
14517	  tmp_addflag=' $pic_flag -Mnomain' ;;
14518	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14519	  tmp_addflag=' -i_dynamic' ;;
14520	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14521	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14522	ifc* | ifort*)			# Intel Fortran compiler
14523	  tmp_addflag=' -nofor_main' ;;
14524	esac
14525	case `$CC -V 2>&1 | sed 5q` in
14526	*Sun\ C*)			# Sun C 5.9
14527	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14528	  tmp_sharedflag='-G' ;;
14529	*Sun\ F*)			# Sun Fortran 8.3
14530	  tmp_sharedflag='-G' ;;
14531	*)
14532	  tmp_sharedflag='-shared' ;;
14533	esac
14534	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14535
14536	if test $supports_anon_versioning = yes; then
14537	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14538  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14539  $echo "local: *; };" >> $output_objdir/$libname.ver~
14540	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14541	fi
14542      else
14543	ld_shlibs_F77=no
14544      fi
14545      ;;
14546
14547    netbsd*)
14548      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14549	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14550	wlarc=
14551      else
14552	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14553	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14554      fi
14555      ;;
14556
14557    solaris*)
14558      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14559	ld_shlibs_F77=no
14560	cat <<EOF 1>&2
14561
14562*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14563*** create shared libraries on Solaris systems.  Therefore, libtool
14564*** is disabling shared libraries support.  We urge you to upgrade GNU
14565*** binutils to release 2.9.1 or newer.  Another option is to modify
14566*** your PATH or compiler configuration so that the native linker is
14567*** used, and then restart.
14568
14569EOF
14570      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14571	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14572	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14573      else
14574	ld_shlibs_F77=no
14575      fi
14576      ;;
14577
14578    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14579      case `$LD -v 2>&1` in
14580        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14581	ld_shlibs_F77=no
14582	cat <<_LT_EOF 1>&2
14583
14584*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14585*** reliably create shared libraries on SCO systems.  Therefore, libtool
14586*** is disabling shared libraries support.  We urge you to upgrade GNU
14587*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14588*** your PATH or compiler configuration so that the native linker is
14589*** used, and then restart.
14590
14591_LT_EOF
14592	;;
14593	*)
14594	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14595	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14596	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14597	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14598	  else
14599	    ld_shlibs_F77=no
14600	  fi
14601	;;
14602      esac
14603      ;;
14604
14605    sunos4*)
14606      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14607      wlarc=
14608      hardcode_direct_F77=yes
14609      hardcode_shlibpath_var_F77=no
14610      ;;
14611
14612    *)
14613      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14614	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14615	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14616      else
14617	ld_shlibs_F77=no
14618      fi
14619      ;;
14620    esac
14621
14622    if test "$ld_shlibs_F77" = no; then
14623      runpath_var=
14624      hardcode_libdir_flag_spec_F77=
14625      export_dynamic_flag_spec_F77=
14626      whole_archive_flag_spec_F77=
14627    fi
14628  else
14629    # PORTME fill in a description of your system's linker (not GNU ld)
14630    case $host_os in
14631    aix3*)
14632      allow_undefined_flag_F77=unsupported
14633      always_export_symbols_F77=yes
14634      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'
14635      # Note: this linker hardcodes the directories in LIBPATH if there
14636      # are no directories specified by -L.
14637      hardcode_minus_L_F77=yes
14638      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14639	# Neither direct hardcoding nor static linking is supported with a
14640	# broken collect2.
14641	hardcode_direct_F77=unsupported
14642      fi
14643      ;;
14644
14645    aix4* | aix5*)
14646      if test "$host_cpu" = ia64; then
14647	# On IA64, the linker does run time linking by default, so we don't
14648	# have to do anything special.
14649	aix_use_runtimelinking=no
14650	exp_sym_flag='-Bexport'
14651	no_entry_flag=""
14652      else
14653	# If we're using GNU nm, then we don't want the "-C" option.
14654	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14655	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14656	  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'
14657	else
14658	  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'
14659	fi
14660	aix_use_runtimelinking=no
14661
14662	# Test if we are trying to use run time linking or normal
14663	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14664	# need to do runtime linking.
14665	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14666	  for ld_flag in $LDFLAGS; do
14667  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14668  	    aix_use_runtimelinking=yes
14669  	    break
14670  	  fi
14671	  done
14672	  ;;
14673	esac
14674
14675	exp_sym_flag='-bexport'
14676	no_entry_flag='-bnoentry'
14677      fi
14678
14679      # When large executables or shared objects are built, AIX ld can
14680      # have problems creating the table of contents.  If linking a library
14681      # or program results in "error TOC overflow" add -mminimal-toc to
14682      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14683      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14684
14685      archive_cmds_F77=''
14686      hardcode_direct_F77=yes
14687      hardcode_libdir_separator_F77=':'
14688      link_all_deplibs_F77=yes
14689
14690      if test "$GCC" = yes; then
14691	case $host_os in aix4.[012]|aix4.[012].*)
14692	# We only want to do this on AIX 4.2 and lower, the check
14693	# below for broken collect2 doesn't work under 4.3+
14694	  collect2name=`${CC} -print-prog-name=collect2`
14695	  if test -f "$collect2name" && \
14696  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14697	  then
14698  	  # We have reworked collect2
14699  	  :
14700	  else
14701  	  # We have old collect2
14702  	  hardcode_direct_F77=unsupported
14703  	  # It fails to find uninstalled libraries when the uninstalled
14704  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14705  	  # to unsupported forces relinking
14706  	  hardcode_minus_L_F77=yes
14707  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14708  	  hardcode_libdir_separator_F77=
14709	  fi
14710	  ;;
14711	esac
14712	shared_flag='-shared'
14713	if test "$aix_use_runtimelinking" = yes; then
14714	  shared_flag="$shared_flag "'${wl}-G'
14715	fi
14716      else
14717	# not using gcc
14718	if test "$host_cpu" = ia64; then
14719  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14720  	# chokes on -Wl,-G. The following line is correct:
14721	  shared_flag='-G'
14722	else
14723	  if test "$aix_use_runtimelinking" = yes; then
14724	    shared_flag='${wl}-G'
14725	  else
14726	    shared_flag='${wl}-bM:SRE'
14727	  fi
14728	fi
14729      fi
14730
14731      # It seems that -bexpall does not export symbols beginning with
14732      # underscore (_), so it is better to generate a list of symbols to export.
14733      always_export_symbols_F77=yes
14734      if test "$aix_use_runtimelinking" = yes; then
14735	# Warning - without using the other runtime loading flags (-brtl),
14736	# -berok will link without error, but may produce a broken library.
14737	allow_undefined_flag_F77='-berok'
14738       # Determine the default libpath from the value encoded in an empty executable.
14739       cat >conftest.$ac_ext <<_ACEOF
14740      program main
14741
14742      end
14743_ACEOF
14744rm -f conftest.$ac_objext conftest$ac_exeext
14745if { (ac_try="$ac_link"
14746case "(($ac_try" in
14747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748  *) ac_try_echo=$ac_try;;
14749esac
14750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751  (eval "$ac_link") 2>conftest.er1
14752  ac_status=$?
14753  grep -v '^ *+' conftest.er1 >conftest.err
14754  rm -f conftest.er1
14755  cat conftest.err >&5
14756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757  (exit $ac_status); } && {
14758	 test -z "$ac_f77_werror_flag" ||
14759	 test ! -s conftest.err
14760       } && test -s conftest$ac_exeext &&
14761       $as_test_x conftest$ac_exeext; then
14762
14763lt_aix_libpath_sed='
14764    /Import File Strings/,/^$/ {
14765	/^0/ {
14766	    s/^0  *\(.*\)$/\1/
14767	    p
14768	}
14769    }'
14770aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14771# Check for a 64-bit object if we didn't find anything.
14772if test -z "$aix_libpath"; then
14773  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14774fi
14775else
14776  echo "$as_me: failed program was:" >&5
14777sed 's/^/| /' conftest.$ac_ext >&5
14778
14779
14780fi
14781
14782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14783      conftest$ac_exeext conftest.$ac_ext
14784if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14785
14786       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14787	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"
14788       else
14789	if test "$host_cpu" = ia64; then
14790	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14791	  allow_undefined_flag_F77="-z nodefs"
14792	  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"
14793	else
14794	 # Determine the default libpath from the value encoded in an empty executable.
14795	 cat >conftest.$ac_ext <<_ACEOF
14796      program main
14797
14798      end
14799_ACEOF
14800rm -f conftest.$ac_objext conftest$ac_exeext
14801if { (ac_try="$ac_link"
14802case "(($ac_try" in
14803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804  *) ac_try_echo=$ac_try;;
14805esac
14806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807  (eval "$ac_link") 2>conftest.er1
14808  ac_status=$?
14809  grep -v '^ *+' conftest.er1 >conftest.err
14810  rm -f conftest.er1
14811  cat conftest.err >&5
14812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813  (exit $ac_status); } && {
14814	 test -z "$ac_f77_werror_flag" ||
14815	 test ! -s conftest.err
14816       } && test -s conftest$ac_exeext &&
14817       $as_test_x conftest$ac_exeext; then
14818
14819lt_aix_libpath_sed='
14820    /Import File Strings/,/^$/ {
14821	/^0/ {
14822	    s/^0  *\(.*\)$/\1/
14823	    p
14824	}
14825    }'
14826aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14827# Check for a 64-bit object if we didn't find anything.
14828if test -z "$aix_libpath"; then
14829  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14830fi
14831else
14832  echo "$as_me: failed program was:" >&5
14833sed 's/^/| /' conftest.$ac_ext >&5
14834
14835
14836fi
14837
14838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14839      conftest$ac_exeext conftest.$ac_ext
14840if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14841
14842	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14843	  # Warning - without using the other run time loading flags,
14844	  # -berok will link without error, but may produce a broken library.
14845	  no_undefined_flag_F77=' ${wl}-bernotok'
14846	  allow_undefined_flag_F77=' ${wl}-berok'
14847	  # Exported symbols can be pulled into shared objects from archives
14848	  whole_archive_flag_spec_F77='$convenience'
14849	  archive_cmds_need_lc_F77=yes
14850	  # This is similar to how AIX traditionally builds its shared libraries.
14851	  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'
14852	fi
14853      fi
14854      ;;
14855
14856    amigaos*)
14857      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)'
14858      hardcode_libdir_flag_spec_F77='-L$libdir'
14859      hardcode_minus_L_F77=yes
14860      # see comment about different semantics on the GNU ld section
14861      ld_shlibs_F77=no
14862      ;;
14863
14864    bsdi[45]*)
14865      export_dynamic_flag_spec_F77=-rdynamic
14866      ;;
14867
14868    cygwin* | mingw* | pw32*)
14869      # When not using gcc, we currently assume that we are using
14870      # Microsoft Visual C++.
14871      # hardcode_libdir_flag_spec is actually meaningless, as there is
14872      # no search path for DLLs.
14873      hardcode_libdir_flag_spec_F77=' '
14874      allow_undefined_flag_F77=unsupported
14875      # Tell ltmain to make .lib files, not .a files.
14876      libext=lib
14877      # Tell ltmain to make .dll files, not .so files.
14878      shrext_cmds=".dll"
14879      # FIXME: Setting linknames here is a bad hack.
14880      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14881      # The linker will automatically build a .lib file if we build a DLL.
14882      old_archive_From_new_cmds_F77='true'
14883      # FIXME: Should let the user specify the lib program.
14884      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14885      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14886      enable_shared_with_static_runtimes_F77=yes
14887      ;;
14888
14889    darwin* | rhapsody*)
14890      case $host_os in
14891        rhapsody* | darwin1.[012])
14892         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14893         ;;
14894       *) # Darwin 1.3 on
14895         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14896           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14897         else
14898           case ${MACOSX_DEPLOYMENT_TARGET} in
14899             10.[012])
14900               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14901               ;;
14902             10.*)
14903               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14904               ;;
14905           esac
14906         fi
14907         ;;
14908      esac
14909      archive_cmds_need_lc_F77=no
14910      hardcode_direct_F77=no
14911      hardcode_automatic_F77=yes
14912      hardcode_shlibpath_var_F77=unsupported
14913      whole_archive_flag_spec_F77=''
14914      link_all_deplibs_F77=yes
14915    if test "$GCC" = yes ; then
14916    	output_verbose_link_cmd='echo'
14917        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14918      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14919      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14920      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}'
14921      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}'
14922    else
14923      case $cc_basename in
14924        xlc*)
14925         output_verbose_link_cmd='echo'
14926         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14927         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14928          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14929         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14930          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}'
14931          ;;
14932       *)
14933         ld_shlibs_F77=no
14934          ;;
14935      esac
14936    fi
14937      ;;
14938
14939    dgux*)
14940      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14941      hardcode_libdir_flag_spec_F77='-L$libdir'
14942      hardcode_shlibpath_var_F77=no
14943      ;;
14944
14945    freebsd1*)
14946      ld_shlibs_F77=no
14947      ;;
14948
14949    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14950    # support.  Future versions do this automatically, but an explicit c++rt0.o
14951    # does not break anything, and helps significantly (at the cost of a little
14952    # extra space).
14953    freebsd2.2*)
14954      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14955      hardcode_libdir_flag_spec_F77='-R$libdir'
14956      hardcode_direct_F77=yes
14957      hardcode_shlibpath_var_F77=no
14958      ;;
14959
14960    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14961    freebsd2*)
14962      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14963      hardcode_direct_F77=yes
14964      hardcode_minus_L_F77=yes
14965      hardcode_shlibpath_var_F77=no
14966      ;;
14967
14968    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14969    freebsd* | dragonfly*)
14970      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14971      hardcode_libdir_flag_spec_F77='-R$libdir'
14972      hardcode_direct_F77=yes
14973      hardcode_shlibpath_var_F77=no
14974      ;;
14975
14976    hpux9*)
14977      if test "$GCC" = yes; then
14978	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'
14979      else
14980	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'
14981      fi
14982      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14983      hardcode_libdir_separator_F77=:
14984      hardcode_direct_F77=yes
14985
14986      # hardcode_minus_L: Not really in the search PATH,
14987      # but as the default location of the library.
14988      hardcode_minus_L_F77=yes
14989      export_dynamic_flag_spec_F77='${wl}-E'
14990      ;;
14991
14992    hpux10*)
14993      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14994	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14995      else
14996	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14997      fi
14998      if test "$with_gnu_ld" = no; then
14999	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15000	hardcode_libdir_separator_F77=:
15001
15002	hardcode_direct_F77=yes
15003	export_dynamic_flag_spec_F77='${wl}-E'
15004
15005	# hardcode_minus_L: Not really in the search PATH,
15006	# but as the default location of the library.
15007	hardcode_minus_L_F77=yes
15008      fi
15009      ;;
15010
15011    hpux11*)
15012      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15013	case $host_cpu in
15014	hppa*64*)
15015	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15016	  ;;
15017	ia64*)
15018	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15019	  ;;
15020	*)
15021	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15022	  ;;
15023	esac
15024      else
15025	case $host_cpu in
15026	hppa*64*)
15027	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15028	  ;;
15029	ia64*)
15030	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15031	  ;;
15032	*)
15033	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15034	  ;;
15035	esac
15036      fi
15037      if test "$with_gnu_ld" = no; then
15038	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15039	hardcode_libdir_separator_F77=:
15040
15041	case $host_cpu in
15042	hppa*64*|ia64*)
15043	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15044	  hardcode_direct_F77=no
15045	  hardcode_shlibpath_var_F77=no
15046	  ;;
15047	*)
15048	  hardcode_direct_F77=yes
15049	  export_dynamic_flag_spec_F77='${wl}-E'
15050
15051	  # hardcode_minus_L: Not really in the search PATH,
15052	  # but as the default location of the library.
15053	  hardcode_minus_L_F77=yes
15054	  ;;
15055	esac
15056      fi
15057      ;;
15058
15059    irix5* | irix6* | nonstopux*)
15060      if test "$GCC" = yes; then
15061	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'
15062      else
15063	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'
15064	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15065      fi
15066      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15067      hardcode_libdir_separator_F77=:
15068      link_all_deplibs_F77=yes
15069      ;;
15070
15071    netbsd*)
15072      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15073	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15074      else
15075	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15076      fi
15077      hardcode_libdir_flag_spec_F77='-R$libdir'
15078      hardcode_direct_F77=yes
15079      hardcode_shlibpath_var_F77=no
15080      ;;
15081
15082    newsos6)
15083      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084      hardcode_direct_F77=yes
15085      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15086      hardcode_libdir_separator_F77=:
15087      hardcode_shlibpath_var_F77=no
15088      ;;
15089
15090    openbsd*)
15091      if test -f /usr/libexec/ld.so; then
15092	hardcode_direct_F77=yes
15093	hardcode_shlibpath_var_F77=no
15094	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15095	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15096	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15097	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15098	  export_dynamic_flag_spec_F77='${wl}-E'
15099	else
15100	  case $host_os in
15101	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15102	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15103	     hardcode_libdir_flag_spec_F77='-R$libdir'
15104	     ;;
15105	   *)
15106	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15107	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15108	     ;;
15109	  esac
15110        fi
15111      else
15112	ld_shlibs_F77=no
15113      fi
15114      ;;
15115
15116    os2*)
15117      hardcode_libdir_flag_spec_F77='-L$libdir'
15118      hardcode_minus_L_F77=yes
15119      allow_undefined_flag_F77=unsupported
15120      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'
15121      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15122      ;;
15123
15124    osf3*)
15125      if test "$GCC" = yes; then
15126	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15127	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'
15128      else
15129	allow_undefined_flag_F77=' -expect_unresolved \*'
15130	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'
15131      fi
15132      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15133      hardcode_libdir_separator_F77=:
15134      ;;
15135
15136    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15137      if test "$GCC" = yes; then
15138	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15139	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'
15140	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15141      else
15142	allow_undefined_flag_F77=' -expect_unresolved \*'
15143	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'
15144	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~
15145	$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'
15146
15147	# Both c and cxx compiler support -rpath directly
15148	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15149      fi
15150      hardcode_libdir_separator_F77=:
15151      ;;
15152
15153    solaris*)
15154      no_undefined_flag_F77=' -z text'
15155      if test "$GCC" = yes; then
15156	wlarc='${wl}'
15157	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15158	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15159	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15160      else
15161	wlarc=''
15162	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15163	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15164  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15165      fi
15166      hardcode_libdir_flag_spec_F77='-R$libdir'
15167      hardcode_shlibpath_var_F77=no
15168      case $host_os in
15169      solaris2.[0-5] | solaris2.[0-5].*) ;;
15170      *)
15171	# The compiler driver will combine and reorder linker options,
15172	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15173	# but is careful enough not to reorder.
15174 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15175	if test "$GCC" = yes; then
15176	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15177	else
15178	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15179	fi
15180	;;
15181      esac
15182      link_all_deplibs_F77=yes
15183      ;;
15184
15185    sunos4*)
15186      if test "x$host_vendor" = xsequent; then
15187	# Use $CC to link under sequent, because it throws in some extra .o
15188	# files that make .init and .fini sections work.
15189	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15190      else
15191	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15192      fi
15193      hardcode_libdir_flag_spec_F77='-L$libdir'
15194      hardcode_direct_F77=yes
15195      hardcode_minus_L_F77=yes
15196      hardcode_shlibpath_var_F77=no
15197      ;;
15198
15199    sysv4)
15200      case $host_vendor in
15201	sni)
15202	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15203	  hardcode_direct_F77=yes # is this really true???
15204	;;
15205	siemens)
15206	  ## LD is ld it makes a PLAMLIB
15207	  ## CC just makes a GrossModule.
15208	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15209	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15210	  hardcode_direct_F77=no
15211        ;;
15212	motorola)
15213	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15214	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15215	;;
15216      esac
15217      runpath_var='LD_RUN_PATH'
15218      hardcode_shlibpath_var_F77=no
15219      ;;
15220
15221    sysv4.3*)
15222      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15223      hardcode_shlibpath_var_F77=no
15224      export_dynamic_flag_spec_F77='-Bexport'
15225      ;;
15226
15227    sysv4*MP*)
15228      if test -d /usr/nec; then
15229	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15230	hardcode_shlibpath_var_F77=no
15231	runpath_var=LD_RUN_PATH
15232	hardcode_runpath_var=yes
15233	ld_shlibs_F77=yes
15234      fi
15235      ;;
15236
15237    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15238      no_undefined_flag_F77='${wl}-z,text'
15239      archive_cmds_need_lc_F77=no
15240      hardcode_shlibpath_var_F77=no
15241      runpath_var='LD_RUN_PATH'
15242
15243      if test "$GCC" = yes; then
15244	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15245	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15246      else
15247	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15248	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15249      fi
15250      ;;
15251
15252    sysv5* | sco3.2v5* | sco5v6*)
15253      # Note: We can NOT use -z defs as we might desire, because we do not
15254      # link with -lc, and that would cause any symbols used from libc to
15255      # always be unresolved, which means just about no library would
15256      # ever link correctly.  If we're not using GNU ld we use -z text
15257      # though, which does catch some bad symbols but isn't as heavy-handed
15258      # as -z defs.
15259      no_undefined_flag_F77='${wl}-z,text'
15260      allow_undefined_flag_F77='${wl}-z,nodefs'
15261      archive_cmds_need_lc_F77=no
15262      hardcode_shlibpath_var_F77=no
15263      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15264      hardcode_libdir_separator_F77=':'
15265      link_all_deplibs_F77=yes
15266      export_dynamic_flag_spec_F77='${wl}-Bexport'
15267      runpath_var='LD_RUN_PATH'
15268
15269      if test "$GCC" = yes; then
15270	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15271	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15272      else
15273	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15274	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15275      fi
15276      ;;
15277
15278    uts4*)
15279      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15280      hardcode_libdir_flag_spec_F77='-L$libdir'
15281      hardcode_shlibpath_var_F77=no
15282      ;;
15283
15284    *)
15285      ld_shlibs_F77=no
15286      ;;
15287    esac
15288  fi
15289
15290{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15291echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15292test "$ld_shlibs_F77" = no && can_build_shared=no
15293
15294#
15295# Do we need to explicitly link libc?
15296#
15297case "x$archive_cmds_need_lc_F77" in
15298x|xyes)
15299  # Assume -lc should be added
15300  archive_cmds_need_lc_F77=yes
15301
15302  if test "$enable_shared" = yes && test "$GCC" = yes; then
15303    case $archive_cmds_F77 in
15304    *'~'*)
15305      # FIXME: we may have to deal with multi-command sequences.
15306      ;;
15307    '$CC '*)
15308      # Test whether the compiler implicitly links with -lc since on some
15309      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15310      # to ld, don't add -lc before -lgcc.
15311      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15312echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15313      $rm conftest*
15314      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15315
15316      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15317  (eval $ac_compile) 2>&5
15318  ac_status=$?
15319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320  (exit $ac_status); } 2>conftest.err; then
15321        soname=conftest
15322        lib=conftest
15323        libobjs=conftest.$ac_objext
15324        deplibs=
15325        wl=$lt_prog_compiler_wl_F77
15326	pic_flag=$lt_prog_compiler_pic_F77
15327        compiler_flags=-v
15328        linker_flags=-v
15329        verstring=
15330        output_objdir=.
15331        libname=conftest
15332        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15333        allow_undefined_flag_F77=
15334        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15335  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15336  ac_status=$?
15337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338  (exit $ac_status); }
15339        then
15340	  archive_cmds_need_lc_F77=no
15341        else
15342	  archive_cmds_need_lc_F77=yes
15343        fi
15344        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15345      else
15346        cat conftest.err 1>&5
15347      fi
15348      $rm conftest*
15349      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15350echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15351      ;;
15352    esac
15353  fi
15354  ;;
15355esac
15356
15357{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15358echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15359library_names_spec=
15360libname_spec='lib$name'
15361soname_spec=
15362shrext_cmds=".so"
15363postinstall_cmds=
15364postuninstall_cmds=
15365finish_cmds=
15366finish_eval=
15367shlibpath_var=
15368shlibpath_overrides_runpath=unknown
15369version_type=none
15370dynamic_linker="$host_os ld.so"
15371sys_lib_dlsearch_path_spec="/lib /usr/lib"
15372
15373need_lib_prefix=unknown
15374hardcode_into_libs=no
15375
15376# when you set need_version to no, make sure it does not cause -set_version
15377# flags to be left without arguments
15378need_version=unknown
15379
15380case $host_os in
15381aix3*)
15382  version_type=linux
15383  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15384  shlibpath_var=LIBPATH
15385
15386  # AIX 3 has no versioning support, so we append a major version to the name.
15387  soname_spec='${libname}${release}${shared_ext}$major'
15388  ;;
15389
15390aix4* | aix5*)
15391  version_type=linux
15392  need_lib_prefix=no
15393  need_version=no
15394  hardcode_into_libs=yes
15395  if test "$host_cpu" = ia64; then
15396    # AIX 5 supports IA64
15397    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15398    shlibpath_var=LD_LIBRARY_PATH
15399  else
15400    # With GCC up to 2.95.x, collect2 would create an import file
15401    # for dependence libraries.  The import file would start with
15402    # the line `#! .'.  This would cause the generated library to
15403    # depend on `.', always an invalid library.  This was fixed in
15404    # development snapshots of GCC prior to 3.0.
15405    case $host_os in
15406      aix4 | aix4.[01] | aix4.[01].*)
15407      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15408	   echo ' yes '
15409	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15410	:
15411      else
15412	can_build_shared=no
15413      fi
15414      ;;
15415    esac
15416    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15417    # soname into executable. Probably we can add versioning support to
15418    # collect2, so additional links can be useful in future.
15419    if test "$aix_use_runtimelinking" = yes; then
15420      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15421      # instead of lib<name>.a to let people know that these are not
15422      # typical AIX shared libraries.
15423      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15424    else
15425      # We preserve .a as extension for shared libraries through AIX4.2
15426      # and later when we are not doing run time linking.
15427      library_names_spec='${libname}${release}.a $libname.a'
15428      soname_spec='${libname}${release}${shared_ext}$major'
15429    fi
15430    shlibpath_var=LIBPATH
15431  fi
15432  ;;
15433
15434amigaos*)
15435  library_names_spec='$libname.ixlibrary $libname.a'
15436  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15437  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'
15438  ;;
15439
15440beos*)
15441  library_names_spec='${libname}${shared_ext}'
15442  dynamic_linker="$host_os ld.so"
15443  shlibpath_var=LIBRARY_PATH
15444  ;;
15445
15446bsdi[45]*)
15447  version_type=linux
15448  need_version=no
15449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450  soname_spec='${libname}${release}${shared_ext}$major'
15451  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15452  shlibpath_var=LD_LIBRARY_PATH
15453  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15454  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15455  # the default ld.so.conf also contains /usr/contrib/lib and
15456  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15457  # libtool to hard-code these into programs
15458  ;;
15459
15460cygwin* | mingw* | pw32*)
15461  version_type=windows
15462  shrext_cmds=".dll"
15463  need_version=no
15464  need_lib_prefix=no
15465
15466  case $GCC,$host_os in
15467  yes,cygwin* | yes,mingw* | yes,pw32*)
15468    library_names_spec='$libname.dll.a'
15469    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15470    postinstall_cmds='base_file=`basename \${file}`~
15471      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15472      dldir=$destdir/`dirname \$dlpath`~
15473      test -d \$dldir || mkdir -p \$dldir~
15474      $install_prog $dir/$dlname \$dldir/$dlname~
15475      chmod a+x \$dldir/$dlname'
15476    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15477      dlpath=$dir/\$dldll~
15478       $rm \$dlpath'
15479    shlibpath_overrides_runpath=yes
15480
15481    case $host_os in
15482    cygwin*)
15483      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15484      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15485      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15486      ;;
15487    mingw*)
15488      # MinGW DLLs use traditional 'lib' prefix
15489      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15490      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15491      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15492        # It is most probably a Windows format PATH printed by
15493        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15494        # path with ; separators, and with drive letters. We can handle the
15495        # drive letters (cygwin fileutils understands them), so leave them,
15496        # especially as we might pass files found there to a mingw objdump,
15497        # which wouldn't understand a cygwinified path. Ahh.
15498        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15499      else
15500        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15501      fi
15502      ;;
15503    pw32*)
15504      # pw32 DLLs use 'pw' prefix rather than 'lib'
15505      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15506      ;;
15507    esac
15508    ;;
15509
15510  *)
15511    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15512    ;;
15513  esac
15514  dynamic_linker='Win32 ld.exe'
15515  # FIXME: first we should search . and the directory the executable is in
15516  shlibpath_var=PATH
15517  ;;
15518
15519darwin* | rhapsody*)
15520  dynamic_linker="$host_os dyld"
15521  version_type=darwin
15522  need_lib_prefix=no
15523  need_version=no
15524  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15525  soname_spec='${libname}${release}${major}$shared_ext'
15526  shlibpath_overrides_runpath=yes
15527  shlibpath_var=DYLD_LIBRARY_PATH
15528  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15529
15530  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15531  ;;
15532
15533dgux*)
15534  version_type=linux
15535  need_lib_prefix=no
15536  need_version=no
15537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15538  soname_spec='${libname}${release}${shared_ext}$major'
15539  shlibpath_var=LD_LIBRARY_PATH
15540  ;;
15541
15542freebsd1*)
15543  dynamic_linker=no
15544  ;;
15545
15546freebsd* | dragonfly*)
15547  # DragonFly does not have aout.  When/if they implement a new
15548  # versioning mechanism, adjust this.
15549  if test -x /usr/bin/objformat; then
15550    objformat=`/usr/bin/objformat`
15551  else
15552    case $host_os in
15553    freebsd[123]*) objformat=aout ;;
15554    *) objformat=elf ;;
15555    esac
15556  fi
15557  version_type=freebsd-$objformat
15558  case $version_type in
15559    freebsd-elf*)
15560      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15561      need_version=no
15562      need_lib_prefix=no
15563      ;;
15564    freebsd-*)
15565      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15566      need_version=yes
15567      ;;
15568  esac
15569  shlibpath_var=LD_LIBRARY_PATH
15570  case $host_os in
15571  freebsd2*)
15572    shlibpath_overrides_runpath=yes
15573    ;;
15574  freebsd3.[01]* | freebsdelf3.[01]*)
15575    shlibpath_overrides_runpath=yes
15576    hardcode_into_libs=yes
15577    ;;
15578  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15579  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15580    shlibpath_overrides_runpath=no
15581    hardcode_into_libs=yes
15582    ;;
15583  *) # from 4.6 on, and DragonFly
15584    shlibpath_overrides_runpath=yes
15585    hardcode_into_libs=yes
15586    ;;
15587  esac
15588  ;;
15589
15590gnu*)
15591  version_type=linux
15592  need_lib_prefix=no
15593  need_version=no
15594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15595  soname_spec='${libname}${release}${shared_ext}$major'
15596  shlibpath_var=LD_LIBRARY_PATH
15597  hardcode_into_libs=yes
15598  ;;
15599
15600hpux9* | hpux10* | hpux11*)
15601  # Give a soname corresponding to the major version so that dld.sl refuses to
15602  # link against other versions.
15603  version_type=sunos
15604  need_lib_prefix=no
15605  need_version=no
15606  case $host_cpu in
15607  ia64*)
15608    shrext_cmds='.so'
15609    hardcode_into_libs=yes
15610    dynamic_linker="$host_os dld.so"
15611    shlibpath_var=LD_LIBRARY_PATH
15612    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15613    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614    soname_spec='${libname}${release}${shared_ext}$major'
15615    if test "X$HPUX_IA64_MODE" = X32; then
15616      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15617    else
15618      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15619    fi
15620    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15621    ;;
15622   hppa*64*)
15623     shrext_cmds='.sl'
15624     hardcode_into_libs=yes
15625     dynamic_linker="$host_os dld.sl"
15626     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15627     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629     soname_spec='${libname}${release}${shared_ext}$major'
15630     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15631     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15632     ;;
15633   *)
15634    shrext_cmds='.sl'
15635    dynamic_linker="$host_os dld.sl"
15636    shlibpath_var=SHLIB_PATH
15637    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15638    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15639    soname_spec='${libname}${release}${shared_ext}$major'
15640    ;;
15641  esac
15642  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15643  postinstall_cmds='chmod 555 $lib'
15644  ;;
15645
15646interix[3-9]*)
15647  version_type=linux
15648  need_lib_prefix=no
15649  need_version=no
15650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15651  soname_spec='${libname}${release}${shared_ext}$major'
15652  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15653  shlibpath_var=LD_LIBRARY_PATH
15654  shlibpath_overrides_runpath=no
15655  hardcode_into_libs=yes
15656  ;;
15657
15658irix5* | irix6* | nonstopux*)
15659  case $host_os in
15660    nonstopux*) version_type=nonstopux ;;
15661    *)
15662	if test "$lt_cv_prog_gnu_ld" = yes; then
15663		version_type=linux
15664	else
15665		version_type=irix
15666	fi ;;
15667  esac
15668  need_lib_prefix=no
15669  need_version=no
15670  soname_spec='${libname}${release}${shared_ext}$major'
15671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15672  case $host_os in
15673  irix5* | nonstopux*)
15674    libsuff= shlibsuff=
15675    ;;
15676  *)
15677    case $LD in # libtool.m4 will add one of these switches to LD
15678    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15679      libsuff= shlibsuff= libmagic=32-bit;;
15680    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15681      libsuff=32 shlibsuff=N32 libmagic=N32;;
15682    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15683      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15684    *) libsuff= shlibsuff= libmagic=never-match;;
15685    esac
15686    ;;
15687  esac
15688  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15689  shlibpath_overrides_runpath=no
15690  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15691  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15692  hardcode_into_libs=yes
15693  ;;
15694
15695# No shared lib support for Linux oldld, aout, or coff.
15696linux*oldld* | linux*aout* | linux*coff*)
15697  dynamic_linker=no
15698  ;;
15699
15700# This must be Linux ELF.
15701linux* | k*bsd*-gnu)
15702  version_type=linux
15703  need_lib_prefix=no
15704  need_version=no
15705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706  soname_spec='${libname}${release}${shared_ext}$major'
15707  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15708  shlibpath_var=LD_LIBRARY_PATH
15709  shlibpath_overrides_runpath=no
15710  # This implies no fast_install, which is unacceptable.
15711  # Some rework will be needed to allow for fast_install
15712  # before this can be enabled.
15713  hardcode_into_libs=yes
15714  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15715  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15716
15717  # Append ld.so.conf contents to the search path
15718  if test -f /etc/ld.so.conf; then
15719    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15720    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15721  fi
15722
15723  # We used to test for /lib/ld.so.1 and disable shared libraries on
15724  # powerpc, because MkLinux only supported shared libraries with the
15725  # GNU dynamic linker.  Since this was broken with cross compilers,
15726  # most powerpc-linux boxes support dynamic linking these days and
15727  # people can always --disable-shared, the test was removed, and we
15728  # assume the GNU/Linux dynamic linker is in use.
15729  dynamic_linker='GNU/Linux ld.so'
15730  ;;
15731
15732netbsd*)
15733  version_type=sunos
15734  need_lib_prefix=no
15735  need_version=no
15736  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15737    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15738    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15739    dynamic_linker='NetBSD (a.out) ld.so'
15740  else
15741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15742    soname_spec='${libname}${release}${shared_ext}$major'
15743    dynamic_linker='NetBSD ld.elf_so'
15744  fi
15745  shlibpath_var=LD_LIBRARY_PATH
15746  shlibpath_overrides_runpath=yes
15747  hardcode_into_libs=yes
15748  ;;
15749
15750newsos6)
15751  version_type=linux
15752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753  shlibpath_var=LD_LIBRARY_PATH
15754  shlibpath_overrides_runpath=yes
15755  ;;
15756
15757nto-qnx*)
15758  version_type=linux
15759  need_lib_prefix=no
15760  need_version=no
15761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762  soname_spec='${libname}${release}${shared_ext}$major'
15763  shlibpath_var=LD_LIBRARY_PATH
15764  shlibpath_overrides_runpath=yes
15765  ;;
15766
15767openbsd*)
15768  version_type=sunos
15769  sys_lib_dlsearch_path_spec="/usr/lib"
15770  need_lib_prefix=no
15771  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15772  case $host_os in
15773    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15774    *)                         need_version=no  ;;
15775  esac
15776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15777  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15778  shlibpath_var=LD_LIBRARY_PATH
15779  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15780    case $host_os in
15781      openbsd2.[89] | openbsd2.[89].*)
15782	shlibpath_overrides_runpath=no
15783	;;
15784      *)
15785	shlibpath_overrides_runpath=yes
15786	;;
15787      esac
15788  else
15789    shlibpath_overrides_runpath=yes
15790  fi
15791  ;;
15792
15793os2*)
15794  libname_spec='$name'
15795  shrext_cmds=".dll"
15796  need_lib_prefix=no
15797  library_names_spec='$libname${shared_ext} $libname.a'
15798  dynamic_linker='OS/2 ld.exe'
15799  shlibpath_var=LIBPATH
15800  ;;
15801
15802osf3* | osf4* | osf5*)
15803  version_type=osf
15804  need_lib_prefix=no
15805  need_version=no
15806  soname_spec='${libname}${release}${shared_ext}$major'
15807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808  shlibpath_var=LD_LIBRARY_PATH
15809  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15810  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15811  ;;
15812
15813rdos*)
15814  dynamic_linker=no
15815  ;;
15816
15817solaris*)
15818  version_type=linux
15819  need_lib_prefix=no
15820  need_version=no
15821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822  soname_spec='${libname}${release}${shared_ext}$major'
15823  shlibpath_var=LD_LIBRARY_PATH
15824  shlibpath_overrides_runpath=yes
15825  hardcode_into_libs=yes
15826  # ldd complains unless libraries are executable
15827  postinstall_cmds='chmod +x $lib'
15828  ;;
15829
15830sunos4*)
15831  version_type=sunos
15832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15833  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15834  shlibpath_var=LD_LIBRARY_PATH
15835  shlibpath_overrides_runpath=yes
15836  if test "$with_gnu_ld" = yes; then
15837    need_lib_prefix=no
15838  fi
15839  need_version=yes
15840  ;;
15841
15842sysv4 | sysv4.3*)
15843  version_type=linux
15844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845  soname_spec='${libname}${release}${shared_ext}$major'
15846  shlibpath_var=LD_LIBRARY_PATH
15847  case $host_vendor in
15848    sni)
15849      shlibpath_overrides_runpath=no
15850      need_lib_prefix=no
15851      export_dynamic_flag_spec='${wl}-Blargedynsym'
15852      runpath_var=LD_RUN_PATH
15853      ;;
15854    siemens)
15855      need_lib_prefix=no
15856      ;;
15857    motorola)
15858      need_lib_prefix=no
15859      need_version=no
15860      shlibpath_overrides_runpath=no
15861      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15862      ;;
15863  esac
15864  ;;
15865
15866sysv4*MP*)
15867  if test -d /usr/nec ;then
15868    version_type=linux
15869    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15870    soname_spec='$libname${shared_ext}.$major'
15871    shlibpath_var=LD_LIBRARY_PATH
15872  fi
15873  ;;
15874
15875sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15876  version_type=freebsd-elf
15877  need_lib_prefix=no
15878  need_version=no
15879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15880  soname_spec='${libname}${release}${shared_ext}$major'
15881  shlibpath_var=LD_LIBRARY_PATH
15882  hardcode_into_libs=yes
15883  if test "$with_gnu_ld" = yes; then
15884    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15885    shlibpath_overrides_runpath=no
15886  else
15887    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15888    shlibpath_overrides_runpath=yes
15889    case $host_os in
15890      sco3.2v5*)
15891        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15892	;;
15893    esac
15894  fi
15895  sys_lib_dlsearch_path_spec='/usr/lib'
15896  ;;
15897
15898uts4*)
15899  version_type=linux
15900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901  soname_spec='${libname}${release}${shared_ext}$major'
15902  shlibpath_var=LD_LIBRARY_PATH
15903  ;;
15904
15905*)
15906  dynamic_linker=no
15907  ;;
15908esac
15909{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15910echo "${ECHO_T}$dynamic_linker" >&6; }
15911test "$dynamic_linker" = no && can_build_shared=no
15912
15913variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15914if test "$GCC" = yes; then
15915  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15916fi
15917
15918{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15919echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15920hardcode_action_F77=
15921if test -n "$hardcode_libdir_flag_spec_F77" || \
15922   test -n "$runpath_var_F77" || \
15923   test "X$hardcode_automatic_F77" = "Xyes" ; then
15924
15925  # We can hardcode non-existant directories.
15926  if test "$hardcode_direct_F77" != no &&
15927     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15928     # have to relink, otherwise we might link with an installed library
15929     # when we should be linking with a yet-to-be-installed one
15930     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15931     test "$hardcode_minus_L_F77" != no; then
15932    # Linking always hardcodes the temporary library directory.
15933    hardcode_action_F77=relink
15934  else
15935    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15936    hardcode_action_F77=immediate
15937  fi
15938else
15939  # We cannot hardcode anything, or else we can only hardcode existing
15940  # directories.
15941  hardcode_action_F77=unsupported
15942fi
15943{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15944echo "${ECHO_T}$hardcode_action_F77" >&6; }
15945
15946if test "$hardcode_action_F77" = relink; then
15947  # Fast installation is not supported
15948  enable_fast_install=no
15949elif test "$shlibpath_overrides_runpath" = yes ||
15950     test "$enable_shared" = no; then
15951  # Fast installation is not necessary
15952  enable_fast_install=needless
15953fi
15954
15955
15956# The else clause should only fire when bootstrapping the
15957# libtool distribution, otherwise you forgot to ship ltmain.sh
15958# with your package, and you will get complaints that there are
15959# no rules to generate ltmain.sh.
15960if test -f "$ltmain"; then
15961  # See if we are running on zsh, and set the options which allow our commands through
15962  # without removal of \ escapes.
15963  if test -n "${ZSH_VERSION+set}" ; then
15964    setopt NO_GLOB_SUBST
15965  fi
15966  # Now quote all the things that may contain metacharacters while being
15967  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15968  # variables and quote the copies for generation of the libtool script.
15969  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15970    SED SHELL STRIP \
15971    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15972    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15973    deplibs_check_method reload_flag reload_cmds need_locks \
15974    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15975    lt_cv_sys_global_symbol_to_c_name_address \
15976    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15977    old_postinstall_cmds old_postuninstall_cmds \
15978    compiler_F77 \
15979    CC_F77 \
15980    LD_F77 \
15981    lt_prog_compiler_wl_F77 \
15982    lt_prog_compiler_pic_F77 \
15983    lt_prog_compiler_static_F77 \
15984    lt_prog_compiler_no_builtin_flag_F77 \
15985    export_dynamic_flag_spec_F77 \
15986    thread_safe_flag_spec_F77 \
15987    whole_archive_flag_spec_F77 \
15988    enable_shared_with_static_runtimes_F77 \
15989    old_archive_cmds_F77 \
15990    old_archive_from_new_cmds_F77 \
15991    predep_objects_F77 \
15992    postdep_objects_F77 \
15993    predeps_F77 \
15994    postdeps_F77 \
15995    compiler_lib_search_path_F77 \
15996    archive_cmds_F77 \
15997    archive_expsym_cmds_F77 \
15998    postinstall_cmds_F77 \
15999    postuninstall_cmds_F77 \
16000    old_archive_from_expsyms_cmds_F77 \
16001    allow_undefined_flag_F77 \
16002    no_undefined_flag_F77 \
16003    export_symbols_cmds_F77 \
16004    hardcode_libdir_flag_spec_F77 \
16005    hardcode_libdir_flag_spec_ld_F77 \
16006    hardcode_libdir_separator_F77 \
16007    hardcode_automatic_F77 \
16008    module_cmds_F77 \
16009    module_expsym_cmds_F77 \
16010    lt_cv_prog_compiler_c_o_F77 \
16011    fix_srcfile_path_F77 \
16012    exclude_expsyms_F77 \
16013    include_expsyms_F77; do
16014
16015    case $var in
16016    old_archive_cmds_F77 | \
16017    old_archive_from_new_cmds_F77 | \
16018    archive_cmds_F77 | \
16019    archive_expsym_cmds_F77 | \
16020    module_cmds_F77 | \
16021    module_expsym_cmds_F77 | \
16022    old_archive_from_expsyms_cmds_F77 | \
16023    export_symbols_cmds_F77 | \
16024    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16025    postinstall_cmds | postuninstall_cmds | \
16026    old_postinstall_cmds | old_postuninstall_cmds | \
16027    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16028      # Double-quote double-evaled strings.
16029      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16030      ;;
16031    *)
16032      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16033      ;;
16034    esac
16035  done
16036
16037  case $lt_echo in
16038  *'\$0 --fallback-echo"')
16039    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16040    ;;
16041  esac
16042
16043cfgfile="$ofile"
16044
16045  cat <<__EOF__ >> "$cfgfile"
16046# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16047
16048# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16049
16050# Shell to use when invoking shell scripts.
16051SHELL=$lt_SHELL
16052
16053# Whether or not to build shared libraries.
16054build_libtool_libs=$enable_shared
16055
16056# Whether or not to build static libraries.
16057build_old_libs=$enable_static
16058
16059# Whether or not to add -lc for building shared libraries.
16060build_libtool_need_lc=$archive_cmds_need_lc_F77
16061
16062# Whether or not to disallow shared libs when runtime libs are static
16063allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16064
16065# Whether or not to optimize for fast installation.
16066fast_install=$enable_fast_install
16067
16068# The host system.
16069host_alias=$host_alias
16070host=$host
16071host_os=$host_os
16072
16073# The build system.
16074build_alias=$build_alias
16075build=$build
16076build_os=$build_os
16077
16078# An echo program that does not interpret backslashes.
16079echo=$lt_echo
16080
16081# The archiver.
16082AR=$lt_AR
16083AR_FLAGS=$lt_AR_FLAGS
16084
16085# A C compiler.
16086LTCC=$lt_LTCC
16087
16088# LTCC compiler flags.
16089LTCFLAGS=$lt_LTCFLAGS
16090
16091# A language-specific compiler.
16092CC=$lt_compiler_F77
16093
16094# Is the compiler the GNU C compiler?
16095with_gcc=$GCC_F77
16096
16097# An ERE matcher.
16098EGREP=$lt_EGREP
16099
16100# The linker used to build libraries.
16101LD=$lt_LD_F77
16102
16103# Whether we need hard or soft links.
16104LN_S=$lt_LN_S
16105
16106# A BSD-compatible nm program.
16107NM=$lt_NM
16108
16109# A symbol stripping program
16110STRIP=$lt_STRIP
16111
16112# Used to examine libraries when file_magic_cmd begins "file"
16113MAGIC_CMD=$MAGIC_CMD
16114
16115# Used on cygwin: DLL creation program.
16116DLLTOOL="$DLLTOOL"
16117
16118# Used on cygwin: object dumper.
16119OBJDUMP="$OBJDUMP"
16120
16121# Used on cygwin: assembler.
16122AS="$AS"
16123
16124# The name of the directory that contains temporary libtool files.
16125objdir=$objdir
16126
16127# How to create reloadable object files.
16128reload_flag=$lt_reload_flag
16129reload_cmds=$lt_reload_cmds
16130
16131# How to pass a linker flag through the compiler.
16132wl=$lt_lt_prog_compiler_wl_F77
16133
16134# Object file suffix (normally "o").
16135objext="$ac_objext"
16136
16137# Old archive suffix (normally "a").
16138libext="$libext"
16139
16140# Shared library suffix (normally ".so").
16141shrext_cmds='$shrext_cmds'
16142
16143# Executable file suffix (normally "").
16144exeext="$exeext"
16145
16146# Additional compiler flags for building library objects.
16147pic_flag=$lt_lt_prog_compiler_pic_F77
16148pic_mode=$pic_mode
16149
16150# What is the maximum length of a command?
16151max_cmd_len=$lt_cv_sys_max_cmd_len
16152
16153# Does compiler simultaneously support -c and -o options?
16154compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16155
16156# Must we lock files when doing compilation?
16157need_locks=$lt_need_locks
16158
16159# Do we need the lib prefix for modules?
16160need_lib_prefix=$need_lib_prefix
16161
16162# Do we need a version for libraries?
16163need_version=$need_version
16164
16165# Whether dlopen is supported.
16166dlopen_support=$enable_dlopen
16167
16168# Whether dlopen of programs is supported.
16169dlopen_self=$enable_dlopen_self
16170
16171# Whether dlopen of statically linked programs is supported.
16172dlopen_self_static=$enable_dlopen_self_static
16173
16174# Compiler flag to prevent dynamic linking.
16175link_static_flag=$lt_lt_prog_compiler_static_F77
16176
16177# Compiler flag to turn off builtin functions.
16178no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16179
16180# Compiler flag to allow reflexive dlopens.
16181export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16182
16183# Compiler flag to generate shared objects directly from archives.
16184whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16185
16186# Compiler flag to generate thread-safe objects.
16187thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16188
16189# Library versioning type.
16190version_type=$version_type
16191
16192# Format of library name prefix.
16193libname_spec=$lt_libname_spec
16194
16195# List of archive names.  First name is the real one, the rest are links.
16196# The last name is the one that the linker finds with -lNAME.
16197library_names_spec=$lt_library_names_spec
16198
16199# The coded name of the library, if different from the real name.
16200soname_spec=$lt_soname_spec
16201
16202# Commands used to build and install an old-style archive.
16203RANLIB=$lt_RANLIB
16204old_archive_cmds=$lt_old_archive_cmds_F77
16205old_postinstall_cmds=$lt_old_postinstall_cmds
16206old_postuninstall_cmds=$lt_old_postuninstall_cmds
16207
16208# Create an old-style archive from a shared archive.
16209old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16210
16211# Create a temporary old-style archive to link instead of a shared archive.
16212old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16213
16214# Commands used to build and install a shared archive.
16215archive_cmds=$lt_archive_cmds_F77
16216archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16217postinstall_cmds=$lt_postinstall_cmds
16218postuninstall_cmds=$lt_postuninstall_cmds
16219
16220# Commands used to build a loadable module (assumed same as above if empty)
16221module_cmds=$lt_module_cmds_F77
16222module_expsym_cmds=$lt_module_expsym_cmds_F77
16223
16224# Commands to strip libraries.
16225old_striplib=$lt_old_striplib
16226striplib=$lt_striplib
16227
16228# Dependencies to place before the objects being linked to create a
16229# shared library.
16230predep_objects=$lt_predep_objects_F77
16231
16232# Dependencies to place after the objects being linked to create a
16233# shared library.
16234postdep_objects=$lt_postdep_objects_F77
16235
16236# Dependencies to place before the objects being linked to create a
16237# shared library.
16238predeps=$lt_predeps_F77
16239
16240# Dependencies to place after the objects being linked to create a
16241# shared library.
16242postdeps=$lt_postdeps_F77
16243
16244# The library search path used internally by the compiler when linking
16245# a shared library.
16246compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16247
16248# Method to check whether dependent libraries are shared objects.
16249deplibs_check_method=$lt_deplibs_check_method
16250
16251# Command to use when deplibs_check_method == file_magic.
16252file_magic_cmd=$lt_file_magic_cmd
16253
16254# Flag that allows shared libraries with undefined symbols to be built.
16255allow_undefined_flag=$lt_allow_undefined_flag_F77
16256
16257# Flag that forces no undefined symbols.
16258no_undefined_flag=$lt_no_undefined_flag_F77
16259
16260# Commands used to finish a libtool library installation in a directory.
16261finish_cmds=$lt_finish_cmds
16262
16263# Same as above, but a single script fragment to be evaled but not shown.
16264finish_eval=$lt_finish_eval
16265
16266# Take the output of nm and produce a listing of raw symbols and C names.
16267global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16268
16269# Transform the output of nm in a proper C declaration
16270global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16271
16272# Transform the output of nm in a C name address pair
16273global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16274
16275# This is the shared library runtime path variable.
16276runpath_var=$runpath_var
16277
16278# This is the shared library path variable.
16279shlibpath_var=$shlibpath_var
16280
16281# Is shlibpath searched before the hard-coded library search path?
16282shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16283
16284# How to hardcode a shared library path into an executable.
16285hardcode_action=$hardcode_action_F77
16286
16287# Whether we should hardcode library paths into libraries.
16288hardcode_into_libs=$hardcode_into_libs
16289
16290# Flag to hardcode \$libdir into a binary during linking.
16291# This must work even if \$libdir does not exist.
16292hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16293
16294# If ld is used when linking, flag to hardcode \$libdir into
16295# a binary during linking. This must work even if \$libdir does
16296# not exist.
16297hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16298
16299# Whether we need a single -rpath flag with a separated argument.
16300hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16301
16302# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16303# resulting binary.
16304hardcode_direct=$hardcode_direct_F77
16305
16306# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16307# resulting binary.
16308hardcode_minus_L=$hardcode_minus_L_F77
16309
16310# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16311# the resulting binary.
16312hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16313
16314# Set to yes if building a shared library automatically hardcodes DIR into the library
16315# and all subsequent libraries and executables linked against it.
16316hardcode_automatic=$hardcode_automatic_F77
16317
16318# Variables whose values should be saved in libtool wrapper scripts and
16319# restored at relink time.
16320variables_saved_for_relink="$variables_saved_for_relink"
16321
16322# Whether libtool must link a program against all its dependency libraries.
16323link_all_deplibs=$link_all_deplibs_F77
16324
16325# Compile-time system search path for libraries
16326sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16327
16328# Run-time system search path for libraries
16329sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16330
16331# Fix the shell variable \$srcfile for the compiler.
16332fix_srcfile_path=$lt_fix_srcfile_path
16333
16334# Set to yes if exported symbols are required.
16335always_export_symbols=$always_export_symbols_F77
16336
16337# The commands to list exported symbols.
16338export_symbols_cmds=$lt_export_symbols_cmds_F77
16339
16340# The commands to extract the exported symbol list from a shared archive.
16341extract_expsyms_cmds=$lt_extract_expsyms_cmds
16342
16343# Symbols that should not be listed in the preloaded symbols.
16344exclude_expsyms=$lt_exclude_expsyms_F77
16345
16346# Symbols that must always be exported.
16347include_expsyms=$lt_include_expsyms_F77
16348
16349# ### END LIBTOOL TAG CONFIG: $tagname
16350
16351__EOF__
16352
16353
16354else
16355  # If there is no Makefile yet, we rely on a make rule to execute
16356  # `config.status --recheck' to rerun these tests and create the
16357  # libtool script then.
16358  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16359  if test -f "$ltmain_in"; then
16360    test -f Makefile && make "$ltmain"
16361  fi
16362fi
16363
16364
16365ac_ext=c
16366ac_cpp='$CPP $CPPFLAGS'
16367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16369ac_compiler_gnu=$ac_cv_c_compiler_gnu
16370
16371CC="$lt_save_CC"
16372
16373	else
16374	  tagname=""
16375	fi
16376	;;
16377
16378      GCJ)
16379	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16380
16381
16382# Source file extension for Java test sources.
16383ac_ext=java
16384
16385# Object file extension for compiled Java test sources.
16386objext=o
16387objext_GCJ=$objext
16388
16389# Code to be used in simple compile tests
16390lt_simple_compile_test_code="class foo {}"
16391
16392# Code to be used in simple link tests
16393lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16394
16395# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16396
16397# If no C compiler was specified, use CC.
16398LTCC=${LTCC-"$CC"}
16399
16400# If no C compiler flags were specified, use CFLAGS.
16401LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16402
16403# Allow CC to be a program name with arguments.
16404compiler=$CC
16405
16406
16407# save warnings/boilerplate of simple test code
16408ac_outfile=conftest.$ac_objext
16409echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16410eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16411_lt_compiler_boilerplate=`cat conftest.err`
16412$rm conftest*
16413
16414ac_outfile=conftest.$ac_objext
16415echo "$lt_simple_link_test_code" >conftest.$ac_ext
16416eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16417_lt_linker_boilerplate=`cat conftest.err`
16418$rm conftest*
16419
16420
16421# Allow CC to be a program name with arguments.
16422lt_save_CC="$CC"
16423CC=${GCJ-"gcj"}
16424compiler=$CC
16425compiler_GCJ=$CC
16426for cc_temp in $compiler""; do
16427  case $cc_temp in
16428    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16429    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16430    \-*) ;;
16431    *) break;;
16432  esac
16433done
16434cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16435
16436
16437# GCJ did not exist at the time GCC didn't implicitly link libc in.
16438archive_cmds_need_lc_GCJ=no
16439
16440old_archive_cmds_GCJ=$old_archive_cmds
16441
16442
16443lt_prog_compiler_no_builtin_flag_GCJ=
16444
16445if test "$GCC" = yes; then
16446  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16447
16448
16449{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16450echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16451if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16452  echo $ECHO_N "(cached) $ECHO_C" >&6
16453else
16454  lt_cv_prog_compiler_rtti_exceptions=no
16455  ac_outfile=conftest.$ac_objext
16456   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16457   lt_compiler_flag="-fno-rtti -fno-exceptions"
16458   # Insert the option either (1) after the last *FLAGS variable, or
16459   # (2) before a word containing "conftest.", or (3) at the end.
16460   # Note that $ac_compile itself does not contain backslashes and begins
16461   # with a dollar sign (not a hyphen), so the echo should work correctly.
16462   # The option is referenced via a variable to avoid confusing sed.
16463   lt_compile=`echo "$ac_compile" | $SED \
16464   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16465   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16466   -e 's:$: $lt_compiler_flag:'`
16467   (eval echo "\"\$as_me:16467: $lt_compile\"" >&5)
16468   (eval "$lt_compile" 2>conftest.err)
16469   ac_status=$?
16470   cat conftest.err >&5
16471   echo "$as_me:16471: \$? = $ac_status" >&5
16472   if (exit $ac_status) && test -s "$ac_outfile"; then
16473     # The compiler can only warn and ignore the option if not recognized
16474     # So say no if there are warnings other than the usual output.
16475     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16476     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16477     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16478       lt_cv_prog_compiler_rtti_exceptions=yes
16479     fi
16480   fi
16481   $rm conftest*
16482
16483fi
16484{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16485echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16486
16487if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16488    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16489else
16490    :
16491fi
16492
16493fi
16494
16495lt_prog_compiler_wl_GCJ=
16496lt_prog_compiler_pic_GCJ=
16497lt_prog_compiler_static_GCJ=
16498
16499{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16500echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16501
16502  if test "$GCC" = yes; then
16503    lt_prog_compiler_wl_GCJ='-Wl,'
16504    lt_prog_compiler_static_GCJ='-static'
16505
16506    case $host_os in
16507      aix*)
16508      # All AIX code is PIC.
16509      if test "$host_cpu" = ia64; then
16510	# AIX 5 now supports IA64 processor
16511	lt_prog_compiler_static_GCJ='-Bstatic'
16512      fi
16513      ;;
16514
16515    amigaos*)
16516      # FIXME: we need at least 68020 code to build shared libraries, but
16517      # adding the `-m68020' flag to GCC prevents building anything better,
16518      # like `-m68040'.
16519      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16520      ;;
16521
16522    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16523      # PIC is the default for these OSes.
16524      ;;
16525
16526    mingw* | cygwin* | pw32* | os2*)
16527      # This hack is so that the source file can tell whether it is being
16528      # built for inclusion in a dll (and should export symbols for example).
16529      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16530      # (--disable-auto-import) libraries
16531      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16532      ;;
16533
16534    darwin* | rhapsody*)
16535      # PIC is the default on this platform
16536      # Common symbols not allowed in MH_DYLIB files
16537      lt_prog_compiler_pic_GCJ='-fno-common'
16538      ;;
16539
16540    interix[3-9]*)
16541      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16542      # Instead, we relocate shared libraries at runtime.
16543      ;;
16544
16545    msdosdjgpp*)
16546      # Just because we use GCC doesn't mean we suddenly get shared libraries
16547      # on systems that don't support them.
16548      lt_prog_compiler_can_build_shared_GCJ=no
16549      enable_shared=no
16550      ;;
16551
16552    sysv4*MP*)
16553      if test -d /usr/nec; then
16554	lt_prog_compiler_pic_GCJ=-Kconform_pic
16555      fi
16556      ;;
16557
16558    hpux*)
16559      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16560      # not for PA HP-UX.
16561      case $host_cpu in
16562      hppa*64*|ia64*)
16563	# +Z the default
16564	;;
16565      *)
16566	lt_prog_compiler_pic_GCJ='-fPIC'
16567	;;
16568      esac
16569      ;;
16570
16571    *)
16572      lt_prog_compiler_pic_GCJ='-fPIC'
16573      ;;
16574    esac
16575  else
16576    # PORTME Check for flag to pass linker flags through the system compiler.
16577    case $host_os in
16578    aix*)
16579      lt_prog_compiler_wl_GCJ='-Wl,'
16580      if test "$host_cpu" = ia64; then
16581	# AIX 5 now supports IA64 processor
16582	lt_prog_compiler_static_GCJ='-Bstatic'
16583      else
16584	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16585      fi
16586      ;;
16587      darwin*)
16588        # PIC is the default on this platform
16589        # Common symbols not allowed in MH_DYLIB files
16590       case $cc_basename in
16591         xlc*)
16592         lt_prog_compiler_pic_GCJ='-qnocommon'
16593         lt_prog_compiler_wl_GCJ='-Wl,'
16594         ;;
16595       esac
16596       ;;
16597
16598    mingw* | cygwin* | pw32* | os2*)
16599      # This hack is so that the source file can tell whether it is being
16600      # built for inclusion in a dll (and should export symbols for example).
16601      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16602      ;;
16603
16604    hpux9* | hpux10* | hpux11*)
16605      lt_prog_compiler_wl_GCJ='-Wl,'
16606      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16607      # not for PA HP-UX.
16608      case $host_cpu in
16609      hppa*64*|ia64*)
16610	# +Z the default
16611	;;
16612      *)
16613	lt_prog_compiler_pic_GCJ='+Z'
16614	;;
16615      esac
16616      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16617      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16618      ;;
16619
16620    irix5* | irix6* | nonstopux*)
16621      lt_prog_compiler_wl_GCJ='-Wl,'
16622      # PIC (with -KPIC) is the default.
16623      lt_prog_compiler_static_GCJ='-non_shared'
16624      ;;
16625
16626    newsos6)
16627      lt_prog_compiler_pic_GCJ='-KPIC'
16628      lt_prog_compiler_static_GCJ='-Bstatic'
16629      ;;
16630
16631    linux* | k*bsd*-gnu)
16632      case $cc_basename in
16633      icc* | ecc*)
16634	lt_prog_compiler_wl_GCJ='-Wl,'
16635	lt_prog_compiler_pic_GCJ='-KPIC'
16636	lt_prog_compiler_static_GCJ='-static'
16637        ;;
16638      pgcc* | pgf77* | pgf90* | pgf95*)
16639        # Portland Group compilers (*not* the Pentium gcc compiler,
16640	# which looks to be a dead project)
16641	lt_prog_compiler_wl_GCJ='-Wl,'
16642	lt_prog_compiler_pic_GCJ='-fpic'
16643	lt_prog_compiler_static_GCJ='-Bstatic'
16644        ;;
16645      ccc*)
16646        lt_prog_compiler_wl_GCJ='-Wl,'
16647        # All Alpha code is PIC.
16648        lt_prog_compiler_static_GCJ='-non_shared'
16649        ;;
16650      *)
16651        case `$CC -V 2>&1 | sed 5q` in
16652	*Sun\ C*)
16653	  # Sun C 5.9
16654	  lt_prog_compiler_pic_GCJ='-KPIC'
16655	  lt_prog_compiler_static_GCJ='-Bstatic'
16656	  lt_prog_compiler_wl_GCJ='-Wl,'
16657	  ;;
16658	*Sun\ F*)
16659	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16660	  lt_prog_compiler_pic_GCJ='-KPIC'
16661	  lt_prog_compiler_static_GCJ='-Bstatic'
16662	  lt_prog_compiler_wl_GCJ=''
16663	  ;;
16664	esac
16665	;;
16666      esac
16667      ;;
16668
16669    osf3* | osf4* | osf5*)
16670      lt_prog_compiler_wl_GCJ='-Wl,'
16671      # All OSF/1 code is PIC.
16672      lt_prog_compiler_static_GCJ='-non_shared'
16673      ;;
16674
16675    rdos*)
16676      lt_prog_compiler_static_GCJ='-non_shared'
16677      ;;
16678
16679    solaris*)
16680      lt_prog_compiler_pic_GCJ='-KPIC'
16681      lt_prog_compiler_static_GCJ='-Bstatic'
16682      case $cc_basename in
16683      f77* | f90* | f95*)
16684	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16685      *)
16686	lt_prog_compiler_wl_GCJ='-Wl,';;
16687      esac
16688      ;;
16689
16690    sunos4*)
16691      lt_prog_compiler_wl_GCJ='-Qoption ld '
16692      lt_prog_compiler_pic_GCJ='-PIC'
16693      lt_prog_compiler_static_GCJ='-Bstatic'
16694      ;;
16695
16696    sysv4 | sysv4.2uw2* | sysv4.3*)
16697      lt_prog_compiler_wl_GCJ='-Wl,'
16698      lt_prog_compiler_pic_GCJ='-KPIC'
16699      lt_prog_compiler_static_GCJ='-Bstatic'
16700      ;;
16701
16702    sysv4*MP*)
16703      if test -d /usr/nec ;then
16704	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16705	lt_prog_compiler_static_GCJ='-Bstatic'
16706      fi
16707      ;;
16708
16709    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16710      lt_prog_compiler_wl_GCJ='-Wl,'
16711      lt_prog_compiler_pic_GCJ='-KPIC'
16712      lt_prog_compiler_static_GCJ='-Bstatic'
16713      ;;
16714
16715    unicos*)
16716      lt_prog_compiler_wl_GCJ='-Wl,'
16717      lt_prog_compiler_can_build_shared_GCJ=no
16718      ;;
16719
16720    uts4*)
16721      lt_prog_compiler_pic_GCJ='-pic'
16722      lt_prog_compiler_static_GCJ='-Bstatic'
16723      ;;
16724
16725    *)
16726      lt_prog_compiler_can_build_shared_GCJ=no
16727      ;;
16728    esac
16729  fi
16730
16731{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16732echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16733
16734#
16735# Check to make sure the PIC flag actually works.
16736#
16737if test -n "$lt_prog_compiler_pic_GCJ"; then
16738
16739{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16740echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16741if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16742  echo $ECHO_N "(cached) $ECHO_C" >&6
16743else
16744  lt_prog_compiler_pic_works_GCJ=no
16745  ac_outfile=conftest.$ac_objext
16746   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16747   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16748   # Insert the option either (1) after the last *FLAGS variable, or
16749   # (2) before a word containing "conftest.", or (3) at the end.
16750   # Note that $ac_compile itself does not contain backslashes and begins
16751   # with a dollar sign (not a hyphen), so the echo should work correctly.
16752   # The option is referenced via a variable to avoid confusing sed.
16753   lt_compile=`echo "$ac_compile" | $SED \
16754   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16755   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16756   -e 's:$: $lt_compiler_flag:'`
16757   (eval echo "\"\$as_me:16757: $lt_compile\"" >&5)
16758   (eval "$lt_compile" 2>conftest.err)
16759   ac_status=$?
16760   cat conftest.err >&5
16761   echo "$as_me:16761: \$? = $ac_status" >&5
16762   if (exit $ac_status) && test -s "$ac_outfile"; then
16763     # The compiler can only warn and ignore the option if not recognized
16764     # So say no if there are warnings other than the usual output.
16765     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16766     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16767     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16768       lt_prog_compiler_pic_works_GCJ=yes
16769     fi
16770   fi
16771   $rm conftest*
16772
16773fi
16774{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16775echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16776
16777if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16778    case $lt_prog_compiler_pic_GCJ in
16779     "" | " "*) ;;
16780     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16781     esac
16782else
16783    lt_prog_compiler_pic_GCJ=
16784     lt_prog_compiler_can_build_shared_GCJ=no
16785fi
16786
16787fi
16788case $host_os in
16789  # For platforms which do not support PIC, -DPIC is meaningless:
16790  *djgpp*)
16791    lt_prog_compiler_pic_GCJ=
16792    ;;
16793  *)
16794    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16795    ;;
16796esac
16797
16798#
16799# Check to make sure the static flag actually works.
16800#
16801wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16802{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16803echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16804if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16805  echo $ECHO_N "(cached) $ECHO_C" >&6
16806else
16807  lt_prog_compiler_static_works_GCJ=no
16808   save_LDFLAGS="$LDFLAGS"
16809   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16810   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16811   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16812     # The linker can only warn and ignore the option if not recognized
16813     # So say no if there are warnings
16814     if test -s conftest.err; then
16815       # Append any errors to the config.log.
16816       cat conftest.err 1>&5
16817       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16818       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16819       if diff conftest.exp conftest.er2 >/dev/null; then
16820         lt_prog_compiler_static_works_GCJ=yes
16821       fi
16822     else
16823       lt_prog_compiler_static_works_GCJ=yes
16824     fi
16825   fi
16826   $rm conftest*
16827   LDFLAGS="$save_LDFLAGS"
16828
16829fi
16830{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16831echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16832
16833if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16834    :
16835else
16836    lt_prog_compiler_static_GCJ=
16837fi
16838
16839
16840{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16841echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16842if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16843  echo $ECHO_N "(cached) $ECHO_C" >&6
16844else
16845  lt_cv_prog_compiler_c_o_GCJ=no
16846   $rm -r conftest 2>/dev/null
16847   mkdir conftest
16848   cd conftest
16849   mkdir out
16850   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16851
16852   lt_compiler_flag="-o out/conftest2.$ac_objext"
16853   # Insert the option either (1) after the last *FLAGS variable, or
16854   # (2) before a word containing "conftest.", or (3) at the end.
16855   # Note that $ac_compile itself does not contain backslashes and begins
16856   # with a dollar sign (not a hyphen), so the echo should work correctly.
16857   lt_compile=`echo "$ac_compile" | $SED \
16858   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16859   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16860   -e 's:$: $lt_compiler_flag:'`
16861   (eval echo "\"\$as_me:16861: $lt_compile\"" >&5)
16862   (eval "$lt_compile" 2>out/conftest.err)
16863   ac_status=$?
16864   cat out/conftest.err >&5
16865   echo "$as_me:16865: \$? = $ac_status" >&5
16866   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16867   then
16868     # The compiler can only warn and ignore the option if not recognized
16869     # So say no if there are warnings
16870     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16871     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16872     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16873       lt_cv_prog_compiler_c_o_GCJ=yes
16874     fi
16875   fi
16876   chmod u+w . 2>&5
16877   $rm conftest*
16878   # SGI C++ compiler will create directory out/ii_files/ for
16879   # template instantiation
16880   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16881   $rm out/* && rmdir out
16882   cd ..
16883   rmdir conftest
16884   $rm conftest*
16885
16886fi
16887{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16888echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16889
16890
16891hard_links="nottested"
16892if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16893  # do not overwrite the value of need_locks provided by the user
16894  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16895echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16896  hard_links=yes
16897  $rm conftest*
16898  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16899  touch conftest.a
16900  ln conftest.a conftest.b 2>&5 || hard_links=no
16901  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16902  { echo "$as_me:$LINENO: result: $hard_links" >&5
16903echo "${ECHO_T}$hard_links" >&6; }
16904  if test "$hard_links" = no; then
16905    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16906echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16907    need_locks=warn
16908  fi
16909else
16910  need_locks=no
16911fi
16912
16913{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16914echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16915
16916  runpath_var=
16917  allow_undefined_flag_GCJ=
16918  enable_shared_with_static_runtimes_GCJ=no
16919  archive_cmds_GCJ=
16920  archive_expsym_cmds_GCJ=
16921  old_archive_From_new_cmds_GCJ=
16922  old_archive_from_expsyms_cmds_GCJ=
16923  export_dynamic_flag_spec_GCJ=
16924  whole_archive_flag_spec_GCJ=
16925  thread_safe_flag_spec_GCJ=
16926  hardcode_libdir_flag_spec_GCJ=
16927  hardcode_libdir_flag_spec_ld_GCJ=
16928  hardcode_libdir_separator_GCJ=
16929  hardcode_direct_GCJ=no
16930  hardcode_minus_L_GCJ=no
16931  hardcode_shlibpath_var_GCJ=unsupported
16932  link_all_deplibs_GCJ=unknown
16933  hardcode_automatic_GCJ=no
16934  module_cmds_GCJ=
16935  module_expsym_cmds_GCJ=
16936  always_export_symbols_GCJ=no
16937  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16938  # include_expsyms should be a list of space-separated symbols to be *always*
16939  # included in the symbol list
16940  include_expsyms_GCJ=
16941  # exclude_expsyms can be an extended regexp of symbols to exclude
16942  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16943  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16944  # as well as any symbol that contains `d'.
16945  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16946  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16947  # platforms (ab)use it in PIC code, but their linkers get confused if
16948  # the symbol is explicitly referenced.  Since portable code cannot
16949  # rely on this symbol name, it's probably fine to never include it in
16950  # preloaded symbol tables.
16951  extract_expsyms_cmds=
16952  # Just being paranoid about ensuring that cc_basename is set.
16953  for cc_temp in $compiler""; do
16954  case $cc_temp in
16955    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16956    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16957    \-*) ;;
16958    *) break;;
16959  esac
16960done
16961cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16962
16963  case $host_os in
16964  cygwin* | mingw* | pw32*)
16965    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16966    # When not using gcc, we currently assume that we are using
16967    # Microsoft Visual C++.
16968    if test "$GCC" != yes; then
16969      with_gnu_ld=no
16970    fi
16971    ;;
16972  interix*)
16973    # we just hope/assume this is gcc and not c89 (= MSVC++)
16974    with_gnu_ld=yes
16975    ;;
16976  openbsd*)
16977    with_gnu_ld=no
16978    ;;
16979  esac
16980
16981  ld_shlibs_GCJ=yes
16982  if test "$with_gnu_ld" = yes; then
16983    # If archive_cmds runs LD, not CC, wlarc should be empty
16984    wlarc='${wl}'
16985
16986    # Set some defaults for GNU ld with shared library support. These
16987    # are reset later if shared libraries are not supported. Putting them
16988    # here allows them to be overridden if necessary.
16989    runpath_var=LD_RUN_PATH
16990    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16991    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16992    # ancient GNU ld didn't support --whole-archive et. al.
16993    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16994	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16995      else
16996  	whole_archive_flag_spec_GCJ=
16997    fi
16998    supports_anon_versioning=no
16999    case `$LD -v 2>/dev/null` in
17000      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17001      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17002      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17003      *\ 2.11.*) ;; # other 2.11 versions
17004      *) supports_anon_versioning=yes ;;
17005    esac
17006
17007    # See if GNU ld supports shared libraries.
17008    case $host_os in
17009    aix3* | aix4* | aix5*)
17010      # On AIX/PPC, the GNU linker is very broken
17011      if test "$host_cpu" != ia64; then
17012	ld_shlibs_GCJ=no
17013	cat <<EOF 1>&2
17014
17015*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17016*** to be unable to reliably create shared libraries on AIX.
17017*** Therefore, libtool is disabling shared libraries support.  If you
17018*** really care for shared libraries, you may want to modify your PATH
17019*** so that a non-GNU linker is found, and then restart.
17020
17021EOF
17022      fi
17023      ;;
17024
17025    amigaos*)
17026      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)'
17027      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17028      hardcode_minus_L_GCJ=yes
17029
17030      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17031      # that the semantics of dynamic libraries on AmigaOS, at least up
17032      # to version 4, is to share data among multiple programs linked
17033      # with the same dynamic library.  Since this doesn't match the
17034      # behavior of shared libraries on other platforms, we can't use
17035      # them.
17036      ld_shlibs_GCJ=no
17037      ;;
17038
17039    beos*)
17040      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17041	allow_undefined_flag_GCJ=unsupported
17042	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17043	# support --undefined.  This deserves some investigation.  FIXME
17044	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17045      else
17046	ld_shlibs_GCJ=no
17047      fi
17048      ;;
17049
17050    cygwin* | mingw* | pw32*)
17051      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17052      # as there is no search path for DLLs.
17053      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17054      allow_undefined_flag_GCJ=unsupported
17055      always_export_symbols_GCJ=no
17056      enable_shared_with_static_runtimes_GCJ=yes
17057      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17058
17059      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17060        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17061	# If the export-symbols file already is a .def file (1st line
17062	# is EXPORTS), use it as is; otherwise, prepend...
17063	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17064	  cp $export_symbols $output_objdir/$soname.def;
17065	else
17066	  echo EXPORTS > $output_objdir/$soname.def;
17067	  cat $export_symbols >> $output_objdir/$soname.def;
17068	fi~
17069	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17070      else
17071	ld_shlibs_GCJ=no
17072      fi
17073      ;;
17074
17075    interix[3-9]*)
17076      hardcode_direct_GCJ=no
17077      hardcode_shlibpath_var_GCJ=no
17078      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17079      export_dynamic_flag_spec_GCJ='${wl}-E'
17080      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17081      # Instead, shared libraries are loaded at an image base (0x10000000 by
17082      # default) and relocated if they conflict, which is a slow very memory
17083      # consuming and fragmenting process.  To avoid this, we pick a random,
17084      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17085      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17086      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'
17087      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'
17088      ;;
17089
17090    gnu* | linux* | k*bsd*-gnu)
17091      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17092	tmp_addflag=
17093	case $cc_basename,$host_cpu in
17094	pgcc*)				# Portland Group C compiler
17095	  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'
17096	  tmp_addflag=' $pic_flag'
17097	  ;;
17098	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17099	  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'
17100	  tmp_addflag=' $pic_flag -Mnomain' ;;
17101	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17102	  tmp_addflag=' -i_dynamic' ;;
17103	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17104	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17105	ifc* | ifort*)			# Intel Fortran compiler
17106	  tmp_addflag=' -nofor_main' ;;
17107	esac
17108	case `$CC -V 2>&1 | sed 5q` in
17109	*Sun\ C*)			# Sun C 5.9
17110	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17111	  tmp_sharedflag='-G' ;;
17112	*Sun\ F*)			# Sun Fortran 8.3
17113	  tmp_sharedflag='-G' ;;
17114	*)
17115	  tmp_sharedflag='-shared' ;;
17116	esac
17117	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17118
17119	if test $supports_anon_versioning = yes; then
17120	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17121  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17122  $echo "local: *; };" >> $output_objdir/$libname.ver~
17123	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17124	fi
17125      else
17126	ld_shlibs_GCJ=no
17127      fi
17128      ;;
17129
17130    netbsd*)
17131      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17132	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17133	wlarc=
17134      else
17135	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17136	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17137      fi
17138      ;;
17139
17140    solaris*)
17141      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17142	ld_shlibs_GCJ=no
17143	cat <<EOF 1>&2
17144
17145*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17146*** create shared libraries on Solaris systems.  Therefore, libtool
17147*** is disabling shared libraries support.  We urge you to upgrade GNU
17148*** binutils to release 2.9.1 or newer.  Another option is to modify
17149*** your PATH or compiler configuration so that the native linker is
17150*** used, and then restart.
17151
17152EOF
17153      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17154	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17155	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17156      else
17157	ld_shlibs_GCJ=no
17158      fi
17159      ;;
17160
17161    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17162      case `$LD -v 2>&1` in
17163        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17164	ld_shlibs_GCJ=no
17165	cat <<_LT_EOF 1>&2
17166
17167*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17168*** reliably create shared libraries on SCO systems.  Therefore, libtool
17169*** is disabling shared libraries support.  We urge you to upgrade GNU
17170*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17171*** your PATH or compiler configuration so that the native linker is
17172*** used, and then restart.
17173
17174_LT_EOF
17175	;;
17176	*)
17177	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17178	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17179	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17180	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17181	  else
17182	    ld_shlibs_GCJ=no
17183	  fi
17184	;;
17185      esac
17186      ;;
17187
17188    sunos4*)
17189      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17190      wlarc=
17191      hardcode_direct_GCJ=yes
17192      hardcode_shlibpath_var_GCJ=no
17193      ;;
17194
17195    *)
17196      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17197	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17198	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17199      else
17200	ld_shlibs_GCJ=no
17201      fi
17202      ;;
17203    esac
17204
17205    if test "$ld_shlibs_GCJ" = no; then
17206      runpath_var=
17207      hardcode_libdir_flag_spec_GCJ=
17208      export_dynamic_flag_spec_GCJ=
17209      whole_archive_flag_spec_GCJ=
17210    fi
17211  else
17212    # PORTME fill in a description of your system's linker (not GNU ld)
17213    case $host_os in
17214    aix3*)
17215      allow_undefined_flag_GCJ=unsupported
17216      always_export_symbols_GCJ=yes
17217      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'
17218      # Note: this linker hardcodes the directories in LIBPATH if there
17219      # are no directories specified by -L.
17220      hardcode_minus_L_GCJ=yes
17221      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17222	# Neither direct hardcoding nor static linking is supported with a
17223	# broken collect2.
17224	hardcode_direct_GCJ=unsupported
17225      fi
17226      ;;
17227
17228    aix4* | aix5*)
17229      if test "$host_cpu" = ia64; then
17230	# On IA64, the linker does run time linking by default, so we don't
17231	# have to do anything special.
17232	aix_use_runtimelinking=no
17233	exp_sym_flag='-Bexport'
17234	no_entry_flag=""
17235      else
17236	# If we're using GNU nm, then we don't want the "-C" option.
17237	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17238	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17239	  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'
17240	else
17241	  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'
17242	fi
17243	aix_use_runtimelinking=no
17244
17245	# Test if we are trying to use run time linking or normal
17246	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17247	# need to do runtime linking.
17248	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17249	  for ld_flag in $LDFLAGS; do
17250  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17251  	    aix_use_runtimelinking=yes
17252  	    break
17253  	  fi
17254	  done
17255	  ;;
17256	esac
17257
17258	exp_sym_flag='-bexport'
17259	no_entry_flag='-bnoentry'
17260      fi
17261
17262      # When large executables or shared objects are built, AIX ld can
17263      # have problems creating the table of contents.  If linking a library
17264      # or program results in "error TOC overflow" add -mminimal-toc to
17265      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17266      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17267
17268      archive_cmds_GCJ=''
17269      hardcode_direct_GCJ=yes
17270      hardcode_libdir_separator_GCJ=':'
17271      link_all_deplibs_GCJ=yes
17272
17273      if test "$GCC" = yes; then
17274	case $host_os in aix4.[012]|aix4.[012].*)
17275	# We only want to do this on AIX 4.2 and lower, the check
17276	# below for broken collect2 doesn't work under 4.3+
17277	  collect2name=`${CC} -print-prog-name=collect2`
17278	  if test -f "$collect2name" && \
17279  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17280	  then
17281  	  # We have reworked collect2
17282  	  :
17283	  else
17284  	  # We have old collect2
17285  	  hardcode_direct_GCJ=unsupported
17286  	  # It fails to find uninstalled libraries when the uninstalled
17287  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17288  	  # to unsupported forces relinking
17289  	  hardcode_minus_L_GCJ=yes
17290  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17291  	  hardcode_libdir_separator_GCJ=
17292	  fi
17293	  ;;
17294	esac
17295	shared_flag='-shared'
17296	if test "$aix_use_runtimelinking" = yes; then
17297	  shared_flag="$shared_flag "'${wl}-G'
17298	fi
17299      else
17300	# not using gcc
17301	if test "$host_cpu" = ia64; then
17302  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17303  	# chokes on -Wl,-G. The following line is correct:
17304	  shared_flag='-G'
17305	else
17306	  if test "$aix_use_runtimelinking" = yes; then
17307	    shared_flag='${wl}-G'
17308	  else
17309	    shared_flag='${wl}-bM:SRE'
17310	  fi
17311	fi
17312      fi
17313
17314      # It seems that -bexpall does not export symbols beginning with
17315      # underscore (_), so it is better to generate a list of symbols to export.
17316      always_export_symbols_GCJ=yes
17317      if test "$aix_use_runtimelinking" = yes; then
17318	# Warning - without using the other runtime loading flags (-brtl),
17319	# -berok will link without error, but may produce a broken library.
17320	allow_undefined_flag_GCJ='-berok'
17321       # Determine the default libpath from the value encoded in an empty executable.
17322       cat >conftest.$ac_ext <<_ACEOF
17323/* confdefs.h.  */
17324_ACEOF
17325cat confdefs.h >>conftest.$ac_ext
17326cat >>conftest.$ac_ext <<_ACEOF
17327/* end confdefs.h.  */
17328
17329int
17330main ()
17331{
17332
17333  ;
17334  return 0;
17335}
17336_ACEOF
17337rm -f conftest.$ac_objext conftest$ac_exeext
17338if { (ac_try="$ac_link"
17339case "(($ac_try" in
17340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341  *) ac_try_echo=$ac_try;;
17342esac
17343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344  (eval "$ac_link") 2>conftest.er1
17345  ac_status=$?
17346  grep -v '^ *+' conftest.er1 >conftest.err
17347  rm -f conftest.er1
17348  cat conftest.err >&5
17349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350  (exit $ac_status); } && {
17351	 test -z "$ac_c_werror_flag" ||
17352	 test ! -s conftest.err
17353       } && test -s conftest$ac_exeext &&
17354       $as_test_x conftest$ac_exeext; then
17355
17356lt_aix_libpath_sed='
17357    /Import File Strings/,/^$/ {
17358	/^0/ {
17359	    s/^0  *\(.*\)$/\1/
17360	    p
17361	}
17362    }'
17363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17364# Check for a 64-bit object if we didn't find anything.
17365if test -z "$aix_libpath"; then
17366  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17367fi
17368else
17369  echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372
17373fi
17374
17375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17376      conftest$ac_exeext conftest.$ac_ext
17377if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17378
17379       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17380	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"
17381       else
17382	if test "$host_cpu" = ia64; then
17383	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17384	  allow_undefined_flag_GCJ="-z nodefs"
17385	  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"
17386	else
17387	 # Determine the default libpath from the value encoded in an empty executable.
17388	 cat >conftest.$ac_ext <<_ACEOF
17389/* confdefs.h.  */
17390_ACEOF
17391cat confdefs.h >>conftest.$ac_ext
17392cat >>conftest.$ac_ext <<_ACEOF
17393/* end confdefs.h.  */
17394
17395int
17396main ()
17397{
17398
17399  ;
17400  return 0;
17401}
17402_ACEOF
17403rm -f conftest.$ac_objext conftest$ac_exeext
17404if { (ac_try="$ac_link"
17405case "(($ac_try" in
17406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407  *) ac_try_echo=$ac_try;;
17408esac
17409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410  (eval "$ac_link") 2>conftest.er1
17411  ac_status=$?
17412  grep -v '^ *+' conftest.er1 >conftest.err
17413  rm -f conftest.er1
17414  cat conftest.err >&5
17415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416  (exit $ac_status); } && {
17417	 test -z "$ac_c_werror_flag" ||
17418	 test ! -s conftest.err
17419       } && test -s conftest$ac_exeext &&
17420       $as_test_x conftest$ac_exeext; then
17421
17422lt_aix_libpath_sed='
17423    /Import File Strings/,/^$/ {
17424	/^0/ {
17425	    s/^0  *\(.*\)$/\1/
17426	    p
17427	}
17428    }'
17429aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17430# Check for a 64-bit object if we didn't find anything.
17431if test -z "$aix_libpath"; then
17432  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17433fi
17434else
17435  echo "$as_me: failed program was:" >&5
17436sed 's/^/| /' conftest.$ac_ext >&5
17437
17438
17439fi
17440
17441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17442      conftest$ac_exeext conftest.$ac_ext
17443if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17444
17445	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17446	  # Warning - without using the other run time loading flags,
17447	  # -berok will link without error, but may produce a broken library.
17448	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17449	  allow_undefined_flag_GCJ=' ${wl}-berok'
17450	  # Exported symbols can be pulled into shared objects from archives
17451	  whole_archive_flag_spec_GCJ='$convenience'
17452	  archive_cmds_need_lc_GCJ=yes
17453	  # This is similar to how AIX traditionally builds its shared libraries.
17454	  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'
17455	fi
17456      fi
17457      ;;
17458
17459    amigaos*)
17460      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)'
17461      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17462      hardcode_minus_L_GCJ=yes
17463      # see comment about different semantics on the GNU ld section
17464      ld_shlibs_GCJ=no
17465      ;;
17466
17467    bsdi[45]*)
17468      export_dynamic_flag_spec_GCJ=-rdynamic
17469      ;;
17470
17471    cygwin* | mingw* | pw32*)
17472      # When not using gcc, we currently assume that we are using
17473      # Microsoft Visual C++.
17474      # hardcode_libdir_flag_spec is actually meaningless, as there is
17475      # no search path for DLLs.
17476      hardcode_libdir_flag_spec_GCJ=' '
17477      allow_undefined_flag_GCJ=unsupported
17478      # Tell ltmain to make .lib files, not .a files.
17479      libext=lib
17480      # Tell ltmain to make .dll files, not .so files.
17481      shrext_cmds=".dll"
17482      # FIXME: Setting linknames here is a bad hack.
17483      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17484      # The linker will automatically build a .lib file if we build a DLL.
17485      old_archive_From_new_cmds_GCJ='true'
17486      # FIXME: Should let the user specify the lib program.
17487      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17488      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17489      enable_shared_with_static_runtimes_GCJ=yes
17490      ;;
17491
17492    darwin* | rhapsody*)
17493      case $host_os in
17494        rhapsody* | darwin1.[012])
17495         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17496         ;;
17497       *) # Darwin 1.3 on
17498         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17499           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17500         else
17501           case ${MACOSX_DEPLOYMENT_TARGET} in
17502             10.[012])
17503               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17504               ;;
17505             10.*)
17506               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17507               ;;
17508           esac
17509         fi
17510         ;;
17511      esac
17512      archive_cmds_need_lc_GCJ=no
17513      hardcode_direct_GCJ=no
17514      hardcode_automatic_GCJ=yes
17515      hardcode_shlibpath_var_GCJ=unsupported
17516      whole_archive_flag_spec_GCJ=''
17517      link_all_deplibs_GCJ=yes
17518    if test "$GCC" = yes ; then
17519    	output_verbose_link_cmd='echo'
17520        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17521      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17522      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17523      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}'
17524      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}'
17525    else
17526      case $cc_basename in
17527        xlc*)
17528         output_verbose_link_cmd='echo'
17529         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17530         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17531          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17532         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17533          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}'
17534          ;;
17535       *)
17536         ld_shlibs_GCJ=no
17537          ;;
17538      esac
17539    fi
17540      ;;
17541
17542    dgux*)
17543      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17544      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17545      hardcode_shlibpath_var_GCJ=no
17546      ;;
17547
17548    freebsd1*)
17549      ld_shlibs_GCJ=no
17550      ;;
17551
17552    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17553    # support.  Future versions do this automatically, but an explicit c++rt0.o
17554    # does not break anything, and helps significantly (at the cost of a little
17555    # extra space).
17556    freebsd2.2*)
17557      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17558      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17559      hardcode_direct_GCJ=yes
17560      hardcode_shlibpath_var_GCJ=no
17561      ;;
17562
17563    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17564    freebsd2*)
17565      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17566      hardcode_direct_GCJ=yes
17567      hardcode_minus_L_GCJ=yes
17568      hardcode_shlibpath_var_GCJ=no
17569      ;;
17570
17571    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17572    freebsd* | dragonfly*)
17573      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17574      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17575      hardcode_direct_GCJ=yes
17576      hardcode_shlibpath_var_GCJ=no
17577      ;;
17578
17579    hpux9*)
17580      if test "$GCC" = yes; then
17581	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'
17582      else
17583	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'
17584      fi
17585      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17586      hardcode_libdir_separator_GCJ=:
17587      hardcode_direct_GCJ=yes
17588
17589      # hardcode_minus_L: Not really in the search PATH,
17590      # but as the default location of the library.
17591      hardcode_minus_L_GCJ=yes
17592      export_dynamic_flag_spec_GCJ='${wl}-E'
17593      ;;
17594
17595    hpux10*)
17596      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17597	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17598      else
17599	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17600      fi
17601      if test "$with_gnu_ld" = no; then
17602	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17603	hardcode_libdir_separator_GCJ=:
17604
17605	hardcode_direct_GCJ=yes
17606	export_dynamic_flag_spec_GCJ='${wl}-E'
17607
17608	# hardcode_minus_L: Not really in the search PATH,
17609	# but as the default location of the library.
17610	hardcode_minus_L_GCJ=yes
17611      fi
17612      ;;
17613
17614    hpux11*)
17615      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17616	case $host_cpu in
17617	hppa*64*)
17618	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619	  ;;
17620	ia64*)
17621	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17622	  ;;
17623	*)
17624	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17625	  ;;
17626	esac
17627      else
17628	case $host_cpu in
17629	hppa*64*)
17630	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17631	  ;;
17632	ia64*)
17633	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17634	  ;;
17635	*)
17636	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17637	  ;;
17638	esac
17639      fi
17640      if test "$with_gnu_ld" = no; then
17641	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17642	hardcode_libdir_separator_GCJ=:
17643
17644	case $host_cpu in
17645	hppa*64*|ia64*)
17646	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17647	  hardcode_direct_GCJ=no
17648	  hardcode_shlibpath_var_GCJ=no
17649	  ;;
17650	*)
17651	  hardcode_direct_GCJ=yes
17652	  export_dynamic_flag_spec_GCJ='${wl}-E'
17653
17654	  # hardcode_minus_L: Not really in the search PATH,
17655	  # but as the default location of the library.
17656	  hardcode_minus_L_GCJ=yes
17657	  ;;
17658	esac
17659      fi
17660      ;;
17661
17662    irix5* | irix6* | nonstopux*)
17663      if test "$GCC" = yes; then
17664	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'
17665      else
17666	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'
17667	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17668      fi
17669      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17670      hardcode_libdir_separator_GCJ=:
17671      link_all_deplibs_GCJ=yes
17672      ;;
17673
17674    netbsd*)
17675      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17676	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17677      else
17678	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17679      fi
17680      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17681      hardcode_direct_GCJ=yes
17682      hardcode_shlibpath_var_GCJ=no
17683      ;;
17684
17685    newsos6)
17686      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17687      hardcode_direct_GCJ=yes
17688      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17689      hardcode_libdir_separator_GCJ=:
17690      hardcode_shlibpath_var_GCJ=no
17691      ;;
17692
17693    openbsd*)
17694      if test -f /usr/libexec/ld.so; then
17695	hardcode_direct_GCJ=yes
17696	hardcode_shlibpath_var_GCJ=no
17697	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17698	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17699	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17700	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17701	  export_dynamic_flag_spec_GCJ='${wl}-E'
17702	else
17703	  case $host_os in
17704	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17705	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17706	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17707	     ;;
17708	   *)
17709	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17710	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17711	     ;;
17712	  esac
17713        fi
17714      else
17715	ld_shlibs_GCJ=no
17716      fi
17717      ;;
17718
17719    os2*)
17720      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17721      hardcode_minus_L_GCJ=yes
17722      allow_undefined_flag_GCJ=unsupported
17723      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'
17724      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17725      ;;
17726
17727    osf3*)
17728      if test "$GCC" = yes; then
17729	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17730	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'
17731      else
17732	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17733	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'
17734      fi
17735      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17736      hardcode_libdir_separator_GCJ=:
17737      ;;
17738
17739    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17740      if test "$GCC" = yes; then
17741	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17742	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'
17743	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17744      else
17745	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17746	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'
17747	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~
17748	$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'
17749
17750	# Both c and cxx compiler support -rpath directly
17751	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17752      fi
17753      hardcode_libdir_separator_GCJ=:
17754      ;;
17755
17756    solaris*)
17757      no_undefined_flag_GCJ=' -z text'
17758      if test "$GCC" = yes; then
17759	wlarc='${wl}'
17760	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17761	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17762	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17763      else
17764	wlarc=''
17765	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17766	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17767  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17768      fi
17769      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17770      hardcode_shlibpath_var_GCJ=no
17771      case $host_os in
17772      solaris2.[0-5] | solaris2.[0-5].*) ;;
17773      *)
17774	# The compiler driver will combine and reorder linker options,
17775	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17776	# but is careful enough not to reorder.
17777 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17778	if test "$GCC" = yes; then
17779	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17780	else
17781	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17782	fi
17783	;;
17784      esac
17785      link_all_deplibs_GCJ=yes
17786      ;;
17787
17788    sunos4*)
17789      if test "x$host_vendor" = xsequent; then
17790	# Use $CC to link under sequent, because it throws in some extra .o
17791	# files that make .init and .fini sections work.
17792	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17793      else
17794	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17795      fi
17796      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797      hardcode_direct_GCJ=yes
17798      hardcode_minus_L_GCJ=yes
17799      hardcode_shlibpath_var_GCJ=no
17800      ;;
17801
17802    sysv4)
17803      case $host_vendor in
17804	sni)
17805	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17806	  hardcode_direct_GCJ=yes # is this really true???
17807	;;
17808	siemens)
17809	  ## LD is ld it makes a PLAMLIB
17810	  ## CC just makes a GrossModule.
17811	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17812	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17813	  hardcode_direct_GCJ=no
17814        ;;
17815	motorola)
17816	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17817	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17818	;;
17819      esac
17820      runpath_var='LD_RUN_PATH'
17821      hardcode_shlibpath_var_GCJ=no
17822      ;;
17823
17824    sysv4.3*)
17825      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17826      hardcode_shlibpath_var_GCJ=no
17827      export_dynamic_flag_spec_GCJ='-Bexport'
17828      ;;
17829
17830    sysv4*MP*)
17831      if test -d /usr/nec; then
17832	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17833	hardcode_shlibpath_var_GCJ=no
17834	runpath_var=LD_RUN_PATH
17835	hardcode_runpath_var=yes
17836	ld_shlibs_GCJ=yes
17837      fi
17838      ;;
17839
17840    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17841      no_undefined_flag_GCJ='${wl}-z,text'
17842      archive_cmds_need_lc_GCJ=no
17843      hardcode_shlibpath_var_GCJ=no
17844      runpath_var='LD_RUN_PATH'
17845
17846      if test "$GCC" = yes; then
17847	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17848	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17849      else
17850	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17851	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17852      fi
17853      ;;
17854
17855    sysv5* | sco3.2v5* | sco5v6*)
17856      # Note: We can NOT use -z defs as we might desire, because we do not
17857      # link with -lc, and that would cause any symbols used from libc to
17858      # always be unresolved, which means just about no library would
17859      # ever link correctly.  If we're not using GNU ld we use -z text
17860      # though, which does catch some bad symbols but isn't as heavy-handed
17861      # as -z defs.
17862      no_undefined_flag_GCJ='${wl}-z,text'
17863      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17864      archive_cmds_need_lc_GCJ=no
17865      hardcode_shlibpath_var_GCJ=no
17866      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17867      hardcode_libdir_separator_GCJ=':'
17868      link_all_deplibs_GCJ=yes
17869      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17870      runpath_var='LD_RUN_PATH'
17871
17872      if test "$GCC" = yes; then
17873	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17874	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17875      else
17876	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17877	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17878      fi
17879      ;;
17880
17881    uts4*)
17882      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17883      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17884      hardcode_shlibpath_var_GCJ=no
17885      ;;
17886
17887    *)
17888      ld_shlibs_GCJ=no
17889      ;;
17890    esac
17891  fi
17892
17893{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17894echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17895test "$ld_shlibs_GCJ" = no && can_build_shared=no
17896
17897#
17898# Do we need to explicitly link libc?
17899#
17900case "x$archive_cmds_need_lc_GCJ" in
17901x|xyes)
17902  # Assume -lc should be added
17903  archive_cmds_need_lc_GCJ=yes
17904
17905  if test "$enable_shared" = yes && test "$GCC" = yes; then
17906    case $archive_cmds_GCJ in
17907    *'~'*)
17908      # FIXME: we may have to deal with multi-command sequences.
17909      ;;
17910    '$CC '*)
17911      # Test whether the compiler implicitly links with -lc since on some
17912      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17913      # to ld, don't add -lc before -lgcc.
17914      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17915echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17916      $rm conftest*
17917      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17918
17919      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920  (eval $ac_compile) 2>&5
17921  ac_status=$?
17922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923  (exit $ac_status); } 2>conftest.err; then
17924        soname=conftest
17925        lib=conftest
17926        libobjs=conftest.$ac_objext
17927        deplibs=
17928        wl=$lt_prog_compiler_wl_GCJ
17929	pic_flag=$lt_prog_compiler_pic_GCJ
17930        compiler_flags=-v
17931        linker_flags=-v
17932        verstring=
17933        output_objdir=.
17934        libname=conftest
17935        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17936        allow_undefined_flag_GCJ=
17937        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17938  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17939  ac_status=$?
17940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941  (exit $ac_status); }
17942        then
17943	  archive_cmds_need_lc_GCJ=no
17944        else
17945	  archive_cmds_need_lc_GCJ=yes
17946        fi
17947        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17948      else
17949        cat conftest.err 1>&5
17950      fi
17951      $rm conftest*
17952      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17953echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17954      ;;
17955    esac
17956  fi
17957  ;;
17958esac
17959
17960{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17961echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17962library_names_spec=
17963libname_spec='lib$name'
17964soname_spec=
17965shrext_cmds=".so"
17966postinstall_cmds=
17967postuninstall_cmds=
17968finish_cmds=
17969finish_eval=
17970shlibpath_var=
17971shlibpath_overrides_runpath=unknown
17972version_type=none
17973dynamic_linker="$host_os ld.so"
17974sys_lib_dlsearch_path_spec="/lib /usr/lib"
17975
17976need_lib_prefix=unknown
17977hardcode_into_libs=no
17978
17979# when you set need_version to no, make sure it does not cause -set_version
17980# flags to be left without arguments
17981need_version=unknown
17982
17983case $host_os in
17984aix3*)
17985  version_type=linux
17986  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17987  shlibpath_var=LIBPATH
17988
17989  # AIX 3 has no versioning support, so we append a major version to the name.
17990  soname_spec='${libname}${release}${shared_ext}$major'
17991  ;;
17992
17993aix4* | aix5*)
17994  version_type=linux
17995  need_lib_prefix=no
17996  need_version=no
17997  hardcode_into_libs=yes
17998  if test "$host_cpu" = ia64; then
17999    # AIX 5 supports IA64
18000    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18001    shlibpath_var=LD_LIBRARY_PATH
18002  else
18003    # With GCC up to 2.95.x, collect2 would create an import file
18004    # for dependence libraries.  The import file would start with
18005    # the line `#! .'.  This would cause the generated library to
18006    # depend on `.', always an invalid library.  This was fixed in
18007    # development snapshots of GCC prior to 3.0.
18008    case $host_os in
18009      aix4 | aix4.[01] | aix4.[01].*)
18010      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18011	   echo ' yes '
18012	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18013	:
18014      else
18015	can_build_shared=no
18016      fi
18017      ;;
18018    esac
18019    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18020    # soname into executable. Probably we can add versioning support to
18021    # collect2, so additional links can be useful in future.
18022    if test "$aix_use_runtimelinking" = yes; then
18023      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18024      # instead of lib<name>.a to let people know that these are not
18025      # typical AIX shared libraries.
18026      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18027    else
18028      # We preserve .a as extension for shared libraries through AIX4.2
18029      # and later when we are not doing run time linking.
18030      library_names_spec='${libname}${release}.a $libname.a'
18031      soname_spec='${libname}${release}${shared_ext}$major'
18032    fi
18033    shlibpath_var=LIBPATH
18034  fi
18035  ;;
18036
18037amigaos*)
18038  library_names_spec='$libname.ixlibrary $libname.a'
18039  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18040  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'
18041  ;;
18042
18043beos*)
18044  library_names_spec='${libname}${shared_ext}'
18045  dynamic_linker="$host_os ld.so"
18046  shlibpath_var=LIBRARY_PATH
18047  ;;
18048
18049bsdi[45]*)
18050  version_type=linux
18051  need_version=no
18052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053  soname_spec='${libname}${release}${shared_ext}$major'
18054  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18055  shlibpath_var=LD_LIBRARY_PATH
18056  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18057  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18058  # the default ld.so.conf also contains /usr/contrib/lib and
18059  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18060  # libtool to hard-code these into programs
18061  ;;
18062
18063cygwin* | mingw* | pw32*)
18064  version_type=windows
18065  shrext_cmds=".dll"
18066  need_version=no
18067  need_lib_prefix=no
18068
18069  case $GCC,$host_os in
18070  yes,cygwin* | yes,mingw* | yes,pw32*)
18071    library_names_spec='$libname.dll.a'
18072    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18073    postinstall_cmds='base_file=`basename \${file}`~
18074      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18075      dldir=$destdir/`dirname \$dlpath`~
18076      test -d \$dldir || mkdir -p \$dldir~
18077      $install_prog $dir/$dlname \$dldir/$dlname~
18078      chmod a+x \$dldir/$dlname'
18079    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18080      dlpath=$dir/\$dldll~
18081       $rm \$dlpath'
18082    shlibpath_overrides_runpath=yes
18083
18084    case $host_os in
18085    cygwin*)
18086      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18087      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18088      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18089      ;;
18090    mingw*)
18091      # MinGW DLLs use traditional 'lib' prefix
18092      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18093      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18094      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18095        # It is most probably a Windows format PATH printed by
18096        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18097        # path with ; separators, and with drive letters. We can handle the
18098        # drive letters (cygwin fileutils understands them), so leave them,
18099        # especially as we might pass files found there to a mingw objdump,
18100        # which wouldn't understand a cygwinified path. Ahh.
18101        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18102      else
18103        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18104      fi
18105      ;;
18106    pw32*)
18107      # pw32 DLLs use 'pw' prefix rather than 'lib'
18108      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18109      ;;
18110    esac
18111    ;;
18112
18113  *)
18114    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18115    ;;
18116  esac
18117  dynamic_linker='Win32 ld.exe'
18118  # FIXME: first we should search . and the directory the executable is in
18119  shlibpath_var=PATH
18120  ;;
18121
18122darwin* | rhapsody*)
18123  dynamic_linker="$host_os dyld"
18124  version_type=darwin
18125  need_lib_prefix=no
18126  need_version=no
18127  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18128  soname_spec='${libname}${release}${major}$shared_ext'
18129  shlibpath_overrides_runpath=yes
18130  shlibpath_var=DYLD_LIBRARY_PATH
18131  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18132
18133  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18134  ;;
18135
18136dgux*)
18137  version_type=linux
18138  need_lib_prefix=no
18139  need_version=no
18140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18141  soname_spec='${libname}${release}${shared_ext}$major'
18142  shlibpath_var=LD_LIBRARY_PATH
18143  ;;
18144
18145freebsd1*)
18146  dynamic_linker=no
18147  ;;
18148
18149freebsd* | dragonfly*)
18150  # DragonFly does not have aout.  When/if they implement a new
18151  # versioning mechanism, adjust this.
18152  if test -x /usr/bin/objformat; then
18153    objformat=`/usr/bin/objformat`
18154  else
18155    case $host_os in
18156    freebsd[123]*) objformat=aout ;;
18157    *) objformat=elf ;;
18158    esac
18159  fi
18160  version_type=freebsd-$objformat
18161  case $version_type in
18162    freebsd-elf*)
18163      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18164      need_version=no
18165      need_lib_prefix=no
18166      ;;
18167    freebsd-*)
18168      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18169      need_version=yes
18170      ;;
18171  esac
18172  shlibpath_var=LD_LIBRARY_PATH
18173  case $host_os in
18174  freebsd2*)
18175    shlibpath_overrides_runpath=yes
18176    ;;
18177  freebsd3.[01]* | freebsdelf3.[01]*)
18178    shlibpath_overrides_runpath=yes
18179    hardcode_into_libs=yes
18180    ;;
18181  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18182  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18183    shlibpath_overrides_runpath=no
18184    hardcode_into_libs=yes
18185    ;;
18186  *) # from 4.6 on, and DragonFly
18187    shlibpath_overrides_runpath=yes
18188    hardcode_into_libs=yes
18189    ;;
18190  esac
18191  ;;
18192
18193gnu*)
18194  version_type=linux
18195  need_lib_prefix=no
18196  need_version=no
18197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18198  soname_spec='${libname}${release}${shared_ext}$major'
18199  shlibpath_var=LD_LIBRARY_PATH
18200  hardcode_into_libs=yes
18201  ;;
18202
18203hpux9* | hpux10* | hpux11*)
18204  # Give a soname corresponding to the major version so that dld.sl refuses to
18205  # link against other versions.
18206  version_type=sunos
18207  need_lib_prefix=no
18208  need_version=no
18209  case $host_cpu in
18210  ia64*)
18211    shrext_cmds='.so'
18212    hardcode_into_libs=yes
18213    dynamic_linker="$host_os dld.so"
18214    shlibpath_var=LD_LIBRARY_PATH
18215    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18216    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18217    soname_spec='${libname}${release}${shared_ext}$major'
18218    if test "X$HPUX_IA64_MODE" = X32; then
18219      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18220    else
18221      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18222    fi
18223    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18224    ;;
18225   hppa*64*)
18226     shrext_cmds='.sl'
18227     hardcode_into_libs=yes
18228     dynamic_linker="$host_os dld.sl"
18229     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18230     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18232     soname_spec='${libname}${release}${shared_ext}$major'
18233     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18234     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18235     ;;
18236   *)
18237    shrext_cmds='.sl'
18238    dynamic_linker="$host_os dld.sl"
18239    shlibpath_var=SHLIB_PATH
18240    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18241    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242    soname_spec='${libname}${release}${shared_ext}$major'
18243    ;;
18244  esac
18245  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18246  postinstall_cmds='chmod 555 $lib'
18247  ;;
18248
18249interix[3-9]*)
18250  version_type=linux
18251  need_lib_prefix=no
18252  need_version=no
18253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18254  soname_spec='${libname}${release}${shared_ext}$major'
18255  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18256  shlibpath_var=LD_LIBRARY_PATH
18257  shlibpath_overrides_runpath=no
18258  hardcode_into_libs=yes
18259  ;;
18260
18261irix5* | irix6* | nonstopux*)
18262  case $host_os in
18263    nonstopux*) version_type=nonstopux ;;
18264    *)
18265	if test "$lt_cv_prog_gnu_ld" = yes; then
18266		version_type=linux
18267	else
18268		version_type=irix
18269	fi ;;
18270  esac
18271  need_lib_prefix=no
18272  need_version=no
18273  soname_spec='${libname}${release}${shared_ext}$major'
18274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18275  case $host_os in
18276  irix5* | nonstopux*)
18277    libsuff= shlibsuff=
18278    ;;
18279  *)
18280    case $LD in # libtool.m4 will add one of these switches to LD
18281    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18282      libsuff= shlibsuff= libmagic=32-bit;;
18283    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18284      libsuff=32 shlibsuff=N32 libmagic=N32;;
18285    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18286      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18287    *) libsuff= shlibsuff= libmagic=never-match;;
18288    esac
18289    ;;
18290  esac
18291  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18292  shlibpath_overrides_runpath=no
18293  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18294  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18295  hardcode_into_libs=yes
18296  ;;
18297
18298# No shared lib support for Linux oldld, aout, or coff.
18299linux*oldld* | linux*aout* | linux*coff*)
18300  dynamic_linker=no
18301  ;;
18302
18303# This must be Linux ELF.
18304linux* | k*bsd*-gnu)
18305  version_type=linux
18306  need_lib_prefix=no
18307  need_version=no
18308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309  soname_spec='${libname}${release}${shared_ext}$major'
18310  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18311  shlibpath_var=LD_LIBRARY_PATH
18312  shlibpath_overrides_runpath=no
18313  # This implies no fast_install, which is unacceptable.
18314  # Some rework will be needed to allow for fast_install
18315  # before this can be enabled.
18316  hardcode_into_libs=yes
18317  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18318  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18319
18320  # Append ld.so.conf contents to the search path
18321  if test -f /etc/ld.so.conf; then
18322    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18323    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18324  fi
18325
18326  # We used to test for /lib/ld.so.1 and disable shared libraries on
18327  # powerpc, because MkLinux only supported shared libraries with the
18328  # GNU dynamic linker.  Since this was broken with cross compilers,
18329  # most powerpc-linux boxes support dynamic linking these days and
18330  # people can always --disable-shared, the test was removed, and we
18331  # assume the GNU/Linux dynamic linker is in use.
18332  dynamic_linker='GNU/Linux ld.so'
18333  ;;
18334
18335netbsd*)
18336  version_type=sunos
18337  need_lib_prefix=no
18338  need_version=no
18339  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18340    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18341    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18342    dynamic_linker='NetBSD (a.out) ld.so'
18343  else
18344    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18345    soname_spec='${libname}${release}${shared_ext}$major'
18346    dynamic_linker='NetBSD ld.elf_so'
18347  fi
18348  shlibpath_var=LD_LIBRARY_PATH
18349  shlibpath_overrides_runpath=yes
18350  hardcode_into_libs=yes
18351  ;;
18352
18353newsos6)
18354  version_type=linux
18355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356  shlibpath_var=LD_LIBRARY_PATH
18357  shlibpath_overrides_runpath=yes
18358  ;;
18359
18360nto-qnx*)
18361  version_type=linux
18362  need_lib_prefix=no
18363  need_version=no
18364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365  soname_spec='${libname}${release}${shared_ext}$major'
18366  shlibpath_var=LD_LIBRARY_PATH
18367  shlibpath_overrides_runpath=yes
18368  ;;
18369
18370openbsd*)
18371  version_type=sunos
18372  sys_lib_dlsearch_path_spec="/usr/lib"
18373  need_lib_prefix=no
18374  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18375  case $host_os in
18376    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18377    *)                         need_version=no  ;;
18378  esac
18379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18380  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18381  shlibpath_var=LD_LIBRARY_PATH
18382  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18383    case $host_os in
18384      openbsd2.[89] | openbsd2.[89].*)
18385	shlibpath_overrides_runpath=no
18386	;;
18387      *)
18388	shlibpath_overrides_runpath=yes
18389	;;
18390      esac
18391  else
18392    shlibpath_overrides_runpath=yes
18393  fi
18394  ;;
18395
18396os2*)
18397  libname_spec='$name'
18398  shrext_cmds=".dll"
18399  need_lib_prefix=no
18400  library_names_spec='$libname${shared_ext} $libname.a'
18401  dynamic_linker='OS/2 ld.exe'
18402  shlibpath_var=LIBPATH
18403  ;;
18404
18405osf3* | osf4* | osf5*)
18406  version_type=osf
18407  need_lib_prefix=no
18408  need_version=no
18409  soname_spec='${libname}${release}${shared_ext}$major'
18410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411  shlibpath_var=LD_LIBRARY_PATH
18412  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18413  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18414  ;;
18415
18416rdos*)
18417  dynamic_linker=no
18418  ;;
18419
18420solaris*)
18421  version_type=linux
18422  need_lib_prefix=no
18423  need_version=no
18424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18425  soname_spec='${libname}${release}${shared_ext}$major'
18426  shlibpath_var=LD_LIBRARY_PATH
18427  shlibpath_overrides_runpath=yes
18428  hardcode_into_libs=yes
18429  # ldd complains unless libraries are executable
18430  postinstall_cmds='chmod +x $lib'
18431  ;;
18432
18433sunos4*)
18434  version_type=sunos
18435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18436  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18437  shlibpath_var=LD_LIBRARY_PATH
18438  shlibpath_overrides_runpath=yes
18439  if test "$with_gnu_ld" = yes; then
18440    need_lib_prefix=no
18441  fi
18442  need_version=yes
18443  ;;
18444
18445sysv4 | sysv4.3*)
18446  version_type=linux
18447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18448  soname_spec='${libname}${release}${shared_ext}$major'
18449  shlibpath_var=LD_LIBRARY_PATH
18450  case $host_vendor in
18451    sni)
18452      shlibpath_overrides_runpath=no
18453      need_lib_prefix=no
18454      export_dynamic_flag_spec='${wl}-Blargedynsym'
18455      runpath_var=LD_RUN_PATH
18456      ;;
18457    siemens)
18458      need_lib_prefix=no
18459      ;;
18460    motorola)
18461      need_lib_prefix=no
18462      need_version=no
18463      shlibpath_overrides_runpath=no
18464      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18465      ;;
18466  esac
18467  ;;
18468
18469sysv4*MP*)
18470  if test -d /usr/nec ;then
18471    version_type=linux
18472    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18473    soname_spec='$libname${shared_ext}.$major'
18474    shlibpath_var=LD_LIBRARY_PATH
18475  fi
18476  ;;
18477
18478sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18479  version_type=freebsd-elf
18480  need_lib_prefix=no
18481  need_version=no
18482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18483  soname_spec='${libname}${release}${shared_ext}$major'
18484  shlibpath_var=LD_LIBRARY_PATH
18485  hardcode_into_libs=yes
18486  if test "$with_gnu_ld" = yes; then
18487    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18488    shlibpath_overrides_runpath=no
18489  else
18490    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18491    shlibpath_overrides_runpath=yes
18492    case $host_os in
18493      sco3.2v5*)
18494        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18495	;;
18496    esac
18497  fi
18498  sys_lib_dlsearch_path_spec='/usr/lib'
18499  ;;
18500
18501uts4*)
18502  version_type=linux
18503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504  soname_spec='${libname}${release}${shared_ext}$major'
18505  shlibpath_var=LD_LIBRARY_PATH
18506  ;;
18507
18508*)
18509  dynamic_linker=no
18510  ;;
18511esac
18512{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18513echo "${ECHO_T}$dynamic_linker" >&6; }
18514test "$dynamic_linker" = no && can_build_shared=no
18515
18516variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18517if test "$GCC" = yes; then
18518  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18519fi
18520
18521{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18522echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18523hardcode_action_GCJ=
18524if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18525   test -n "$runpath_var_GCJ" || \
18526   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18527
18528  # We can hardcode non-existant directories.
18529  if test "$hardcode_direct_GCJ" != no &&
18530     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18531     # have to relink, otherwise we might link with an installed library
18532     # when we should be linking with a yet-to-be-installed one
18533     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18534     test "$hardcode_minus_L_GCJ" != no; then
18535    # Linking always hardcodes the temporary library directory.
18536    hardcode_action_GCJ=relink
18537  else
18538    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18539    hardcode_action_GCJ=immediate
18540  fi
18541else
18542  # We cannot hardcode anything, or else we can only hardcode existing
18543  # directories.
18544  hardcode_action_GCJ=unsupported
18545fi
18546{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18547echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18548
18549if test "$hardcode_action_GCJ" = relink; then
18550  # Fast installation is not supported
18551  enable_fast_install=no
18552elif test "$shlibpath_overrides_runpath" = yes ||
18553     test "$enable_shared" = no; then
18554  # Fast installation is not necessary
18555  enable_fast_install=needless
18556fi
18557
18558
18559# The else clause should only fire when bootstrapping the
18560# libtool distribution, otherwise you forgot to ship ltmain.sh
18561# with your package, and you will get complaints that there are
18562# no rules to generate ltmain.sh.
18563if test -f "$ltmain"; then
18564  # See if we are running on zsh, and set the options which allow our commands through
18565  # without removal of \ escapes.
18566  if test -n "${ZSH_VERSION+set}" ; then
18567    setopt NO_GLOB_SUBST
18568  fi
18569  # Now quote all the things that may contain metacharacters while being
18570  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18571  # variables and quote the copies for generation of the libtool script.
18572  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18573    SED SHELL STRIP \
18574    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18575    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18576    deplibs_check_method reload_flag reload_cmds need_locks \
18577    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18578    lt_cv_sys_global_symbol_to_c_name_address \
18579    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18580    old_postinstall_cmds old_postuninstall_cmds \
18581    compiler_GCJ \
18582    CC_GCJ \
18583    LD_GCJ \
18584    lt_prog_compiler_wl_GCJ \
18585    lt_prog_compiler_pic_GCJ \
18586    lt_prog_compiler_static_GCJ \
18587    lt_prog_compiler_no_builtin_flag_GCJ \
18588    export_dynamic_flag_spec_GCJ \
18589    thread_safe_flag_spec_GCJ \
18590    whole_archive_flag_spec_GCJ \
18591    enable_shared_with_static_runtimes_GCJ \
18592    old_archive_cmds_GCJ \
18593    old_archive_from_new_cmds_GCJ \
18594    predep_objects_GCJ \
18595    postdep_objects_GCJ \
18596    predeps_GCJ \
18597    postdeps_GCJ \
18598    compiler_lib_search_path_GCJ \
18599    archive_cmds_GCJ \
18600    archive_expsym_cmds_GCJ \
18601    postinstall_cmds_GCJ \
18602    postuninstall_cmds_GCJ \
18603    old_archive_from_expsyms_cmds_GCJ \
18604    allow_undefined_flag_GCJ \
18605    no_undefined_flag_GCJ \
18606    export_symbols_cmds_GCJ \
18607    hardcode_libdir_flag_spec_GCJ \
18608    hardcode_libdir_flag_spec_ld_GCJ \
18609    hardcode_libdir_separator_GCJ \
18610    hardcode_automatic_GCJ \
18611    module_cmds_GCJ \
18612    module_expsym_cmds_GCJ \
18613    lt_cv_prog_compiler_c_o_GCJ \
18614    fix_srcfile_path_GCJ \
18615    exclude_expsyms_GCJ \
18616    include_expsyms_GCJ; do
18617
18618    case $var in
18619    old_archive_cmds_GCJ | \
18620    old_archive_from_new_cmds_GCJ | \
18621    archive_cmds_GCJ | \
18622    archive_expsym_cmds_GCJ | \
18623    module_cmds_GCJ | \
18624    module_expsym_cmds_GCJ | \
18625    old_archive_from_expsyms_cmds_GCJ | \
18626    export_symbols_cmds_GCJ | \
18627    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18628    postinstall_cmds | postuninstall_cmds | \
18629    old_postinstall_cmds | old_postuninstall_cmds | \
18630    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18631      # Double-quote double-evaled strings.
18632      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18633      ;;
18634    *)
18635      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18636      ;;
18637    esac
18638  done
18639
18640  case $lt_echo in
18641  *'\$0 --fallback-echo"')
18642    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18643    ;;
18644  esac
18645
18646cfgfile="$ofile"
18647
18648  cat <<__EOF__ >> "$cfgfile"
18649# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18650
18651# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18652
18653# Shell to use when invoking shell scripts.
18654SHELL=$lt_SHELL
18655
18656# Whether or not to build shared libraries.
18657build_libtool_libs=$enable_shared
18658
18659# Whether or not to build static libraries.
18660build_old_libs=$enable_static
18661
18662# Whether or not to add -lc for building shared libraries.
18663build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18664
18665# Whether or not to disallow shared libs when runtime libs are static
18666allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18667
18668# Whether or not to optimize for fast installation.
18669fast_install=$enable_fast_install
18670
18671# The host system.
18672host_alias=$host_alias
18673host=$host
18674host_os=$host_os
18675
18676# The build system.
18677build_alias=$build_alias
18678build=$build
18679build_os=$build_os
18680
18681# An echo program that does not interpret backslashes.
18682echo=$lt_echo
18683
18684# The archiver.
18685AR=$lt_AR
18686AR_FLAGS=$lt_AR_FLAGS
18687
18688# A C compiler.
18689LTCC=$lt_LTCC
18690
18691# LTCC compiler flags.
18692LTCFLAGS=$lt_LTCFLAGS
18693
18694# A language-specific compiler.
18695CC=$lt_compiler_GCJ
18696
18697# Is the compiler the GNU C compiler?
18698with_gcc=$GCC_GCJ
18699
18700# An ERE matcher.
18701EGREP=$lt_EGREP
18702
18703# The linker used to build libraries.
18704LD=$lt_LD_GCJ
18705
18706# Whether we need hard or soft links.
18707LN_S=$lt_LN_S
18708
18709# A BSD-compatible nm program.
18710NM=$lt_NM
18711
18712# A symbol stripping program
18713STRIP=$lt_STRIP
18714
18715# Used to examine libraries when file_magic_cmd begins "file"
18716MAGIC_CMD=$MAGIC_CMD
18717
18718# Used on cygwin: DLL creation program.
18719DLLTOOL="$DLLTOOL"
18720
18721# Used on cygwin: object dumper.
18722OBJDUMP="$OBJDUMP"
18723
18724# Used on cygwin: assembler.
18725AS="$AS"
18726
18727# The name of the directory that contains temporary libtool files.
18728objdir=$objdir
18729
18730# How to create reloadable object files.
18731reload_flag=$lt_reload_flag
18732reload_cmds=$lt_reload_cmds
18733
18734# How to pass a linker flag through the compiler.
18735wl=$lt_lt_prog_compiler_wl_GCJ
18736
18737# Object file suffix (normally "o").
18738objext="$ac_objext"
18739
18740# Old archive suffix (normally "a").
18741libext="$libext"
18742
18743# Shared library suffix (normally ".so").
18744shrext_cmds='$shrext_cmds'
18745
18746# Executable file suffix (normally "").
18747exeext="$exeext"
18748
18749# Additional compiler flags for building library objects.
18750pic_flag=$lt_lt_prog_compiler_pic_GCJ
18751pic_mode=$pic_mode
18752
18753# What is the maximum length of a command?
18754max_cmd_len=$lt_cv_sys_max_cmd_len
18755
18756# Does compiler simultaneously support -c and -o options?
18757compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18758
18759# Must we lock files when doing compilation?
18760need_locks=$lt_need_locks
18761
18762# Do we need the lib prefix for modules?
18763need_lib_prefix=$need_lib_prefix
18764
18765# Do we need a version for libraries?
18766need_version=$need_version
18767
18768# Whether dlopen is supported.
18769dlopen_support=$enable_dlopen
18770
18771# Whether dlopen of programs is supported.
18772dlopen_self=$enable_dlopen_self
18773
18774# Whether dlopen of statically linked programs is supported.
18775dlopen_self_static=$enable_dlopen_self_static
18776
18777# Compiler flag to prevent dynamic linking.
18778link_static_flag=$lt_lt_prog_compiler_static_GCJ
18779
18780# Compiler flag to turn off builtin functions.
18781no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18782
18783# Compiler flag to allow reflexive dlopens.
18784export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18785
18786# Compiler flag to generate shared objects directly from archives.
18787whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18788
18789# Compiler flag to generate thread-safe objects.
18790thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18791
18792# Library versioning type.
18793version_type=$version_type
18794
18795# Format of library name prefix.
18796libname_spec=$lt_libname_spec
18797
18798# List of archive names.  First name is the real one, the rest are links.
18799# The last name is the one that the linker finds with -lNAME.
18800library_names_spec=$lt_library_names_spec
18801
18802# The coded name of the library, if different from the real name.
18803soname_spec=$lt_soname_spec
18804
18805# Commands used to build and install an old-style archive.
18806RANLIB=$lt_RANLIB
18807old_archive_cmds=$lt_old_archive_cmds_GCJ
18808old_postinstall_cmds=$lt_old_postinstall_cmds
18809old_postuninstall_cmds=$lt_old_postuninstall_cmds
18810
18811# Create an old-style archive from a shared archive.
18812old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18813
18814# Create a temporary old-style archive to link instead of a shared archive.
18815old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18816
18817# Commands used to build and install a shared archive.
18818archive_cmds=$lt_archive_cmds_GCJ
18819archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18820postinstall_cmds=$lt_postinstall_cmds
18821postuninstall_cmds=$lt_postuninstall_cmds
18822
18823# Commands used to build a loadable module (assumed same as above if empty)
18824module_cmds=$lt_module_cmds_GCJ
18825module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18826
18827# Commands to strip libraries.
18828old_striplib=$lt_old_striplib
18829striplib=$lt_striplib
18830
18831# Dependencies to place before the objects being linked to create a
18832# shared library.
18833predep_objects=$lt_predep_objects_GCJ
18834
18835# Dependencies to place after the objects being linked to create a
18836# shared library.
18837postdep_objects=$lt_postdep_objects_GCJ
18838
18839# Dependencies to place before the objects being linked to create a
18840# shared library.
18841predeps=$lt_predeps_GCJ
18842
18843# Dependencies to place after the objects being linked to create a
18844# shared library.
18845postdeps=$lt_postdeps_GCJ
18846
18847# The library search path used internally by the compiler when linking
18848# a shared library.
18849compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18850
18851# Method to check whether dependent libraries are shared objects.
18852deplibs_check_method=$lt_deplibs_check_method
18853
18854# Command to use when deplibs_check_method == file_magic.
18855file_magic_cmd=$lt_file_magic_cmd
18856
18857# Flag that allows shared libraries with undefined symbols to be built.
18858allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18859
18860# Flag that forces no undefined symbols.
18861no_undefined_flag=$lt_no_undefined_flag_GCJ
18862
18863# Commands used to finish a libtool library installation in a directory.
18864finish_cmds=$lt_finish_cmds
18865
18866# Same as above, but a single script fragment to be evaled but not shown.
18867finish_eval=$lt_finish_eval
18868
18869# Take the output of nm and produce a listing of raw symbols and C names.
18870global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18871
18872# Transform the output of nm in a proper C declaration
18873global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18874
18875# Transform the output of nm in a C name address pair
18876global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18877
18878# This is the shared library runtime path variable.
18879runpath_var=$runpath_var
18880
18881# This is the shared library path variable.
18882shlibpath_var=$shlibpath_var
18883
18884# Is shlibpath searched before the hard-coded library search path?
18885shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18886
18887# How to hardcode a shared library path into an executable.
18888hardcode_action=$hardcode_action_GCJ
18889
18890# Whether we should hardcode library paths into libraries.
18891hardcode_into_libs=$hardcode_into_libs
18892
18893# Flag to hardcode \$libdir into a binary during linking.
18894# This must work even if \$libdir does not exist.
18895hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18896
18897# If ld is used when linking, flag to hardcode \$libdir into
18898# a binary during linking. This must work even if \$libdir does
18899# not exist.
18900hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18901
18902# Whether we need a single -rpath flag with a separated argument.
18903hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18904
18905# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18906# resulting binary.
18907hardcode_direct=$hardcode_direct_GCJ
18908
18909# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18910# resulting binary.
18911hardcode_minus_L=$hardcode_minus_L_GCJ
18912
18913# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18914# the resulting binary.
18915hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18916
18917# Set to yes if building a shared library automatically hardcodes DIR into the library
18918# and all subsequent libraries and executables linked against it.
18919hardcode_automatic=$hardcode_automatic_GCJ
18920
18921# Variables whose values should be saved in libtool wrapper scripts and
18922# restored at relink time.
18923variables_saved_for_relink="$variables_saved_for_relink"
18924
18925# Whether libtool must link a program against all its dependency libraries.
18926link_all_deplibs=$link_all_deplibs_GCJ
18927
18928# Compile-time system search path for libraries
18929sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18930
18931# Run-time system search path for libraries
18932sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18933
18934# Fix the shell variable \$srcfile for the compiler.
18935fix_srcfile_path=$lt_fix_srcfile_path
18936
18937# Set to yes if exported symbols are required.
18938always_export_symbols=$always_export_symbols_GCJ
18939
18940# The commands to list exported symbols.
18941export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18942
18943# The commands to extract the exported symbol list from a shared archive.
18944extract_expsyms_cmds=$lt_extract_expsyms_cmds
18945
18946# Symbols that should not be listed in the preloaded symbols.
18947exclude_expsyms=$lt_exclude_expsyms_GCJ
18948
18949# Symbols that must always be exported.
18950include_expsyms=$lt_include_expsyms_GCJ
18951
18952# ### END LIBTOOL TAG CONFIG: $tagname
18953
18954__EOF__
18955
18956
18957else
18958  # If there is no Makefile yet, we rely on a make rule to execute
18959  # `config.status --recheck' to rerun these tests and create the
18960  # libtool script then.
18961  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18962  if test -f "$ltmain_in"; then
18963    test -f Makefile && make "$ltmain"
18964  fi
18965fi
18966
18967
18968ac_ext=c
18969ac_cpp='$CPP $CPPFLAGS'
18970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18972ac_compiler_gnu=$ac_cv_c_compiler_gnu
18973
18974CC="$lt_save_CC"
18975
18976	else
18977	  tagname=""
18978	fi
18979	;;
18980
18981      RC)
18982
18983
18984# Source file extension for RC test sources.
18985ac_ext=rc
18986
18987# Object file extension for compiled RC test sources.
18988objext=o
18989objext_RC=$objext
18990
18991# Code to be used in simple compile tests
18992lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18993
18994# Code to be used in simple link tests
18995lt_simple_link_test_code="$lt_simple_compile_test_code"
18996
18997# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18998
18999# If no C compiler was specified, use CC.
19000LTCC=${LTCC-"$CC"}
19001
19002# If no C compiler flags were specified, use CFLAGS.
19003LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19004
19005# Allow CC to be a program name with arguments.
19006compiler=$CC
19007
19008
19009# save warnings/boilerplate of simple test code
19010ac_outfile=conftest.$ac_objext
19011echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19012eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19013_lt_compiler_boilerplate=`cat conftest.err`
19014$rm conftest*
19015
19016ac_outfile=conftest.$ac_objext
19017echo "$lt_simple_link_test_code" >conftest.$ac_ext
19018eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19019_lt_linker_boilerplate=`cat conftest.err`
19020$rm conftest*
19021
19022
19023# Allow CC to be a program name with arguments.
19024lt_save_CC="$CC"
19025CC=${RC-"windres"}
19026compiler=$CC
19027compiler_RC=$CC
19028for cc_temp in $compiler""; do
19029  case $cc_temp in
19030    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19031    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19032    \-*) ;;
19033    *) break;;
19034  esac
19035done
19036cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19037
19038lt_cv_prog_compiler_c_o_RC=yes
19039
19040# The else clause should only fire when bootstrapping the
19041# libtool distribution, otherwise you forgot to ship ltmain.sh
19042# with your package, and you will get complaints that there are
19043# no rules to generate ltmain.sh.
19044if test -f "$ltmain"; then
19045  # See if we are running on zsh, and set the options which allow our commands through
19046  # without removal of \ escapes.
19047  if test -n "${ZSH_VERSION+set}" ; then
19048    setopt NO_GLOB_SUBST
19049  fi
19050  # Now quote all the things that may contain metacharacters while being
19051  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19052  # variables and quote the copies for generation of the libtool script.
19053  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19054    SED SHELL STRIP \
19055    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19056    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19057    deplibs_check_method reload_flag reload_cmds need_locks \
19058    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19059    lt_cv_sys_global_symbol_to_c_name_address \
19060    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19061    old_postinstall_cmds old_postuninstall_cmds \
19062    compiler_RC \
19063    CC_RC \
19064    LD_RC \
19065    lt_prog_compiler_wl_RC \
19066    lt_prog_compiler_pic_RC \
19067    lt_prog_compiler_static_RC \
19068    lt_prog_compiler_no_builtin_flag_RC \
19069    export_dynamic_flag_spec_RC \
19070    thread_safe_flag_spec_RC \
19071    whole_archive_flag_spec_RC \
19072    enable_shared_with_static_runtimes_RC \
19073    old_archive_cmds_RC \
19074    old_archive_from_new_cmds_RC \
19075    predep_objects_RC \
19076    postdep_objects_RC \
19077    predeps_RC \
19078    postdeps_RC \
19079    compiler_lib_search_path_RC \
19080    archive_cmds_RC \
19081    archive_expsym_cmds_RC \
19082    postinstall_cmds_RC \
19083    postuninstall_cmds_RC \
19084    old_archive_from_expsyms_cmds_RC \
19085    allow_undefined_flag_RC \
19086    no_undefined_flag_RC \
19087    export_symbols_cmds_RC \
19088    hardcode_libdir_flag_spec_RC \
19089    hardcode_libdir_flag_spec_ld_RC \
19090    hardcode_libdir_separator_RC \
19091    hardcode_automatic_RC \
19092    module_cmds_RC \
19093    module_expsym_cmds_RC \
19094    lt_cv_prog_compiler_c_o_RC \
19095    fix_srcfile_path_RC \
19096    exclude_expsyms_RC \
19097    include_expsyms_RC; do
19098
19099    case $var in
19100    old_archive_cmds_RC | \
19101    old_archive_from_new_cmds_RC | \
19102    archive_cmds_RC | \
19103    archive_expsym_cmds_RC | \
19104    module_cmds_RC | \
19105    module_expsym_cmds_RC | \
19106    old_archive_from_expsyms_cmds_RC | \
19107    export_symbols_cmds_RC | \
19108    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19109    postinstall_cmds | postuninstall_cmds | \
19110    old_postinstall_cmds | old_postuninstall_cmds | \
19111    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19112      # Double-quote double-evaled strings.
19113      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19114      ;;
19115    *)
19116      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19117      ;;
19118    esac
19119  done
19120
19121  case $lt_echo in
19122  *'\$0 --fallback-echo"')
19123    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19124    ;;
19125  esac
19126
19127cfgfile="$ofile"
19128
19129  cat <<__EOF__ >> "$cfgfile"
19130# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19131
19132# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19133
19134# Shell to use when invoking shell scripts.
19135SHELL=$lt_SHELL
19136
19137# Whether or not to build shared libraries.
19138build_libtool_libs=$enable_shared
19139
19140# Whether or not to build static libraries.
19141build_old_libs=$enable_static
19142
19143# Whether or not to add -lc for building shared libraries.
19144build_libtool_need_lc=$archive_cmds_need_lc_RC
19145
19146# Whether or not to disallow shared libs when runtime libs are static
19147allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19148
19149# Whether or not to optimize for fast installation.
19150fast_install=$enable_fast_install
19151
19152# The host system.
19153host_alias=$host_alias
19154host=$host
19155host_os=$host_os
19156
19157# The build system.
19158build_alias=$build_alias
19159build=$build
19160build_os=$build_os
19161
19162# An echo program that does not interpret backslashes.
19163echo=$lt_echo
19164
19165# The archiver.
19166AR=$lt_AR
19167AR_FLAGS=$lt_AR_FLAGS
19168
19169# A C compiler.
19170LTCC=$lt_LTCC
19171
19172# LTCC compiler flags.
19173LTCFLAGS=$lt_LTCFLAGS
19174
19175# A language-specific compiler.
19176CC=$lt_compiler_RC
19177
19178# Is the compiler the GNU C compiler?
19179with_gcc=$GCC_RC
19180
19181# An ERE matcher.
19182EGREP=$lt_EGREP
19183
19184# The linker used to build libraries.
19185LD=$lt_LD_RC
19186
19187# Whether we need hard or soft links.
19188LN_S=$lt_LN_S
19189
19190# A BSD-compatible nm program.
19191NM=$lt_NM
19192
19193# A symbol stripping program
19194STRIP=$lt_STRIP
19195
19196# Used to examine libraries when file_magic_cmd begins "file"
19197MAGIC_CMD=$MAGIC_CMD
19198
19199# Used on cygwin: DLL creation program.
19200DLLTOOL="$DLLTOOL"
19201
19202# Used on cygwin: object dumper.
19203OBJDUMP="$OBJDUMP"
19204
19205# Used on cygwin: assembler.
19206AS="$AS"
19207
19208# The name of the directory that contains temporary libtool files.
19209objdir=$objdir
19210
19211# How to create reloadable object files.
19212reload_flag=$lt_reload_flag
19213reload_cmds=$lt_reload_cmds
19214
19215# How to pass a linker flag through the compiler.
19216wl=$lt_lt_prog_compiler_wl_RC
19217
19218# Object file suffix (normally "o").
19219objext="$ac_objext"
19220
19221# Old archive suffix (normally "a").
19222libext="$libext"
19223
19224# Shared library suffix (normally ".so").
19225shrext_cmds='$shrext_cmds'
19226
19227# Executable file suffix (normally "").
19228exeext="$exeext"
19229
19230# Additional compiler flags for building library objects.
19231pic_flag=$lt_lt_prog_compiler_pic_RC
19232pic_mode=$pic_mode
19233
19234# What is the maximum length of a command?
19235max_cmd_len=$lt_cv_sys_max_cmd_len
19236
19237# Does compiler simultaneously support -c and -o options?
19238compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19239
19240# Must we lock files when doing compilation?
19241need_locks=$lt_need_locks
19242
19243# Do we need the lib prefix for modules?
19244need_lib_prefix=$need_lib_prefix
19245
19246# Do we need a version for libraries?
19247need_version=$need_version
19248
19249# Whether dlopen is supported.
19250dlopen_support=$enable_dlopen
19251
19252# Whether dlopen of programs is supported.
19253dlopen_self=$enable_dlopen_self
19254
19255# Whether dlopen of statically linked programs is supported.
19256dlopen_self_static=$enable_dlopen_self_static
19257
19258# Compiler flag to prevent dynamic linking.
19259link_static_flag=$lt_lt_prog_compiler_static_RC
19260
19261# Compiler flag to turn off builtin functions.
19262no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19263
19264# Compiler flag to allow reflexive dlopens.
19265export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19266
19267# Compiler flag to generate shared objects directly from archives.
19268whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19269
19270# Compiler flag to generate thread-safe objects.
19271thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19272
19273# Library versioning type.
19274version_type=$version_type
19275
19276# Format of library name prefix.
19277libname_spec=$lt_libname_spec
19278
19279# List of archive names.  First name is the real one, the rest are links.
19280# The last name is the one that the linker finds with -lNAME.
19281library_names_spec=$lt_library_names_spec
19282
19283# The coded name of the library, if different from the real name.
19284soname_spec=$lt_soname_spec
19285
19286# Commands used to build and install an old-style archive.
19287RANLIB=$lt_RANLIB
19288old_archive_cmds=$lt_old_archive_cmds_RC
19289old_postinstall_cmds=$lt_old_postinstall_cmds
19290old_postuninstall_cmds=$lt_old_postuninstall_cmds
19291
19292# Create an old-style archive from a shared archive.
19293old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19294
19295# Create a temporary old-style archive to link instead of a shared archive.
19296old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19297
19298# Commands used to build and install a shared archive.
19299archive_cmds=$lt_archive_cmds_RC
19300archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19301postinstall_cmds=$lt_postinstall_cmds
19302postuninstall_cmds=$lt_postuninstall_cmds
19303
19304# Commands used to build a loadable module (assumed same as above if empty)
19305module_cmds=$lt_module_cmds_RC
19306module_expsym_cmds=$lt_module_expsym_cmds_RC
19307
19308# Commands to strip libraries.
19309old_striplib=$lt_old_striplib
19310striplib=$lt_striplib
19311
19312# Dependencies to place before the objects being linked to create a
19313# shared library.
19314predep_objects=$lt_predep_objects_RC
19315
19316# Dependencies to place after the objects being linked to create a
19317# shared library.
19318postdep_objects=$lt_postdep_objects_RC
19319
19320# Dependencies to place before the objects being linked to create a
19321# shared library.
19322predeps=$lt_predeps_RC
19323
19324# Dependencies to place after the objects being linked to create a
19325# shared library.
19326postdeps=$lt_postdeps_RC
19327
19328# The library search path used internally by the compiler when linking
19329# a shared library.
19330compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19331
19332# Method to check whether dependent libraries are shared objects.
19333deplibs_check_method=$lt_deplibs_check_method
19334
19335# Command to use when deplibs_check_method == file_magic.
19336file_magic_cmd=$lt_file_magic_cmd
19337
19338# Flag that allows shared libraries with undefined symbols to be built.
19339allow_undefined_flag=$lt_allow_undefined_flag_RC
19340
19341# Flag that forces no undefined symbols.
19342no_undefined_flag=$lt_no_undefined_flag_RC
19343
19344# Commands used to finish a libtool library installation in a directory.
19345finish_cmds=$lt_finish_cmds
19346
19347# Same as above, but a single script fragment to be evaled but not shown.
19348finish_eval=$lt_finish_eval
19349
19350# Take the output of nm and produce a listing of raw symbols and C names.
19351global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19352
19353# Transform the output of nm in a proper C declaration
19354global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19355
19356# Transform the output of nm in a C name address pair
19357global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19358
19359# This is the shared library runtime path variable.
19360runpath_var=$runpath_var
19361
19362# This is the shared library path variable.
19363shlibpath_var=$shlibpath_var
19364
19365# Is shlibpath searched before the hard-coded library search path?
19366shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19367
19368# How to hardcode a shared library path into an executable.
19369hardcode_action=$hardcode_action_RC
19370
19371# Whether we should hardcode library paths into libraries.
19372hardcode_into_libs=$hardcode_into_libs
19373
19374# Flag to hardcode \$libdir into a binary during linking.
19375# This must work even if \$libdir does not exist.
19376hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19377
19378# If ld is used when linking, flag to hardcode \$libdir into
19379# a binary during linking. This must work even if \$libdir does
19380# not exist.
19381hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19382
19383# Whether we need a single -rpath flag with a separated argument.
19384hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19385
19386# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19387# resulting binary.
19388hardcode_direct=$hardcode_direct_RC
19389
19390# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19391# resulting binary.
19392hardcode_minus_L=$hardcode_minus_L_RC
19393
19394# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19395# the resulting binary.
19396hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19397
19398# Set to yes if building a shared library automatically hardcodes DIR into the library
19399# and all subsequent libraries and executables linked against it.
19400hardcode_automatic=$hardcode_automatic_RC
19401
19402# Variables whose values should be saved in libtool wrapper scripts and
19403# restored at relink time.
19404variables_saved_for_relink="$variables_saved_for_relink"
19405
19406# Whether libtool must link a program against all its dependency libraries.
19407link_all_deplibs=$link_all_deplibs_RC
19408
19409# Compile-time system search path for libraries
19410sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19411
19412# Run-time system search path for libraries
19413sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19414
19415# Fix the shell variable \$srcfile for the compiler.
19416fix_srcfile_path=$lt_fix_srcfile_path
19417
19418# Set to yes if exported symbols are required.
19419always_export_symbols=$always_export_symbols_RC
19420
19421# The commands to list exported symbols.
19422export_symbols_cmds=$lt_export_symbols_cmds_RC
19423
19424# The commands to extract the exported symbol list from a shared archive.
19425extract_expsyms_cmds=$lt_extract_expsyms_cmds
19426
19427# Symbols that should not be listed in the preloaded symbols.
19428exclude_expsyms=$lt_exclude_expsyms_RC
19429
19430# Symbols that must always be exported.
19431include_expsyms=$lt_include_expsyms_RC
19432
19433# ### END LIBTOOL TAG CONFIG: $tagname
19434
19435__EOF__
19436
19437
19438else
19439  # If there is no Makefile yet, we rely on a make rule to execute
19440  # `config.status --recheck' to rerun these tests and create the
19441  # libtool script then.
19442  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19443  if test -f "$ltmain_in"; then
19444    test -f Makefile && make "$ltmain"
19445  fi
19446fi
19447
19448
19449ac_ext=c
19450ac_cpp='$CPP $CPPFLAGS'
19451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453ac_compiler_gnu=$ac_cv_c_compiler_gnu
19454
19455CC="$lt_save_CC"
19456
19457	;;
19458
19459      *)
19460	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19461echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19462   { (exit 1); exit 1; }; }
19463	;;
19464      esac
19465
19466      # Append the new tag name to the list of available tags.
19467      if test -n "$tagname" ; then
19468      available_tags="$available_tags $tagname"
19469    fi
19470    fi
19471  done
19472  IFS="$lt_save_ifs"
19473
19474  # Now substitute the updated list of available tags.
19475  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19476    mv "${ofile}T" "$ofile"
19477    chmod +x "$ofile"
19478  else
19479    rm -f "${ofile}T"
19480    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19481echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19482   { (exit 1); exit 1; }; }
19483  fi
19484fi
19485
19486
19487
19488# This can be used to rebuild libtool when needed
19489LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19490
19491# Always use our own libtool.
19492LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19493
19494# Prevent multiple expansion
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515ac_ext=c
19516ac_cpp='$CPP $CPPFLAGS'
19517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19519ac_compiler_gnu=$ac_cv_c_compiler_gnu
19520if test -n "$ac_tool_prefix"; then
19521  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19522set dummy ${ac_tool_prefix}gcc; ac_word=$2
19523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19525if test "${ac_cv_prog_CC+set}" = set; then
19526  echo $ECHO_N "(cached) $ECHO_C" >&6
19527else
19528  if test -n "$CC"; then
19529  ac_cv_prog_CC="$CC" # Let the user override the test.
19530else
19531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532for as_dir in $PATH
19533do
19534  IFS=$as_save_IFS
19535  test -z "$as_dir" && as_dir=.
19536  for ac_exec_ext in '' $ac_executable_extensions; do
19537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19538    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19539    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19540    break 2
19541  fi
19542done
19543done
19544IFS=$as_save_IFS
19545
19546fi
19547fi
19548CC=$ac_cv_prog_CC
19549if test -n "$CC"; then
19550  { echo "$as_me:$LINENO: result: $CC" >&5
19551echo "${ECHO_T}$CC" >&6; }
19552else
19553  { echo "$as_me:$LINENO: result: no" >&5
19554echo "${ECHO_T}no" >&6; }
19555fi
19556
19557
19558fi
19559if test -z "$ac_cv_prog_CC"; then
19560  ac_ct_CC=$CC
19561  # Extract the first word of "gcc", so it can be a program name with args.
19562set dummy gcc; ac_word=$2
19563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19565if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19566  echo $ECHO_N "(cached) $ECHO_C" >&6
19567else
19568  if test -n "$ac_ct_CC"; then
19569  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19570else
19571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19572for as_dir in $PATH
19573do
19574  IFS=$as_save_IFS
19575  test -z "$as_dir" && as_dir=.
19576  for ac_exec_ext in '' $ac_executable_extensions; do
19577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19578    ac_cv_prog_ac_ct_CC="gcc"
19579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19580    break 2
19581  fi
19582done
19583done
19584IFS=$as_save_IFS
19585
19586fi
19587fi
19588ac_ct_CC=$ac_cv_prog_ac_ct_CC
19589if test -n "$ac_ct_CC"; then
19590  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19591echo "${ECHO_T}$ac_ct_CC" >&6; }
19592else
19593  { echo "$as_me:$LINENO: result: no" >&5
19594echo "${ECHO_T}no" >&6; }
19595fi
19596
19597  if test "x$ac_ct_CC" = x; then
19598    CC=""
19599  else
19600    case $cross_compiling:$ac_tool_warned in
19601yes:)
19602{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19603whose name does not start with the host triplet.  If you think this
19604configuration is useful to you, please write to autoconf@gnu.org." >&5
19605echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19606whose name does not start with the host triplet.  If you think this
19607configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19608ac_tool_warned=yes ;;
19609esac
19610    CC=$ac_ct_CC
19611  fi
19612else
19613  CC="$ac_cv_prog_CC"
19614fi
19615
19616if test -z "$CC"; then
19617          if test -n "$ac_tool_prefix"; then
19618    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19619set dummy ${ac_tool_prefix}cc; ac_word=$2
19620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19622if test "${ac_cv_prog_CC+set}" = set; then
19623  echo $ECHO_N "(cached) $ECHO_C" >&6
19624else
19625  if test -n "$CC"; then
19626  ac_cv_prog_CC="$CC" # Let the user override the test.
19627else
19628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19629for as_dir in $PATH
19630do
19631  IFS=$as_save_IFS
19632  test -z "$as_dir" && as_dir=.
19633  for ac_exec_ext in '' $ac_executable_extensions; do
19634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19635    ac_cv_prog_CC="${ac_tool_prefix}cc"
19636    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19637    break 2
19638  fi
19639done
19640done
19641IFS=$as_save_IFS
19642
19643fi
19644fi
19645CC=$ac_cv_prog_CC
19646if test -n "$CC"; then
19647  { echo "$as_me:$LINENO: result: $CC" >&5
19648echo "${ECHO_T}$CC" >&6; }
19649else
19650  { echo "$as_me:$LINENO: result: no" >&5
19651echo "${ECHO_T}no" >&6; }
19652fi
19653
19654
19655  fi
19656fi
19657if test -z "$CC"; then
19658  # Extract the first word of "cc", so it can be a program name with args.
19659set dummy cc; ac_word=$2
19660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19662if test "${ac_cv_prog_CC+set}" = set; then
19663  echo $ECHO_N "(cached) $ECHO_C" >&6
19664else
19665  if test -n "$CC"; then
19666  ac_cv_prog_CC="$CC" # Let the user override the test.
19667else
19668  ac_prog_rejected=no
19669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19670for as_dir in $PATH
19671do
19672  IFS=$as_save_IFS
19673  test -z "$as_dir" && as_dir=.
19674  for ac_exec_ext in '' $ac_executable_extensions; do
19675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19676    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19677       ac_prog_rejected=yes
19678       continue
19679     fi
19680    ac_cv_prog_CC="cc"
19681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19682    break 2
19683  fi
19684done
19685done
19686IFS=$as_save_IFS
19687
19688if test $ac_prog_rejected = yes; then
19689  # We found a bogon in the path, so make sure we never use it.
19690  set dummy $ac_cv_prog_CC
19691  shift
19692  if test $# != 0; then
19693    # We chose a different compiler from the bogus one.
19694    # However, it has the same basename, so the bogon will be chosen
19695    # first if we set CC to just the basename; use the full file name.
19696    shift
19697    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19698  fi
19699fi
19700fi
19701fi
19702CC=$ac_cv_prog_CC
19703if test -n "$CC"; then
19704  { echo "$as_me:$LINENO: result: $CC" >&5
19705echo "${ECHO_T}$CC" >&6; }
19706else
19707  { echo "$as_me:$LINENO: result: no" >&5
19708echo "${ECHO_T}no" >&6; }
19709fi
19710
19711
19712fi
19713if test -z "$CC"; then
19714  if test -n "$ac_tool_prefix"; then
19715  for ac_prog in cl.exe
19716  do
19717    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19721if test "${ac_cv_prog_CC+set}" = set; then
19722  echo $ECHO_N "(cached) $ECHO_C" >&6
19723else
19724  if test -n "$CC"; then
19725  ac_cv_prog_CC="$CC" # Let the user override the test.
19726else
19727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19728for as_dir in $PATH
19729do
19730  IFS=$as_save_IFS
19731  test -z "$as_dir" && as_dir=.
19732  for ac_exec_ext in '' $ac_executable_extensions; do
19733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19734    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19736    break 2
19737  fi
19738done
19739done
19740IFS=$as_save_IFS
19741
19742fi
19743fi
19744CC=$ac_cv_prog_CC
19745if test -n "$CC"; then
19746  { echo "$as_me:$LINENO: result: $CC" >&5
19747echo "${ECHO_T}$CC" >&6; }
19748else
19749  { echo "$as_me:$LINENO: result: no" >&5
19750echo "${ECHO_T}no" >&6; }
19751fi
19752
19753
19754    test -n "$CC" && break
19755  done
19756fi
19757if test -z "$CC"; then
19758  ac_ct_CC=$CC
19759  for ac_prog in cl.exe
19760do
19761  # Extract the first word of "$ac_prog", so it can be a program name with args.
19762set dummy $ac_prog; ac_word=$2
19763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19765if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19766  echo $ECHO_N "(cached) $ECHO_C" >&6
19767else
19768  if test -n "$ac_ct_CC"; then
19769  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19770else
19771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19772for as_dir in $PATH
19773do
19774  IFS=$as_save_IFS
19775  test -z "$as_dir" && as_dir=.
19776  for ac_exec_ext in '' $ac_executable_extensions; do
19777  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19778    ac_cv_prog_ac_ct_CC="$ac_prog"
19779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19780    break 2
19781  fi
19782done
19783done
19784IFS=$as_save_IFS
19785
19786fi
19787fi
19788ac_ct_CC=$ac_cv_prog_ac_ct_CC
19789if test -n "$ac_ct_CC"; then
19790  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19791echo "${ECHO_T}$ac_ct_CC" >&6; }
19792else
19793  { echo "$as_me:$LINENO: result: no" >&5
19794echo "${ECHO_T}no" >&6; }
19795fi
19796
19797
19798  test -n "$ac_ct_CC" && break
19799done
19800
19801  if test "x$ac_ct_CC" = x; then
19802    CC=""
19803  else
19804    case $cross_compiling:$ac_tool_warned in
19805yes:)
19806{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19807whose name does not start with the host triplet.  If you think this
19808configuration is useful to you, please write to autoconf@gnu.org." >&5
19809echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19810whose name does not start with the host triplet.  If you think this
19811configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19812ac_tool_warned=yes ;;
19813esac
19814    CC=$ac_ct_CC
19815  fi
19816fi
19817
19818fi
19819
19820
19821test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19822See \`config.log' for more details." >&5
19823echo "$as_me: error: no acceptable C compiler found in \$PATH
19824See \`config.log' for more details." >&2;}
19825   { (exit 1); exit 1; }; }
19826
19827# Provide some information about the compiler.
19828echo "$as_me:$LINENO: checking for C compiler version" >&5
19829ac_compiler=`set X $ac_compile; echo $2`
19830{ (ac_try="$ac_compiler --version >&5"
19831case "(($ac_try" in
19832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833  *) ac_try_echo=$ac_try;;
19834esac
19835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836  (eval "$ac_compiler --version >&5") 2>&5
19837  ac_status=$?
19838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839  (exit $ac_status); }
19840{ (ac_try="$ac_compiler -v >&5"
19841case "(($ac_try" in
19842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843  *) ac_try_echo=$ac_try;;
19844esac
19845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846  (eval "$ac_compiler -v >&5") 2>&5
19847  ac_status=$?
19848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849  (exit $ac_status); }
19850{ (ac_try="$ac_compiler -V >&5"
19851case "(($ac_try" in
19852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853  *) ac_try_echo=$ac_try;;
19854esac
19855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856  (eval "$ac_compiler -V >&5") 2>&5
19857  ac_status=$?
19858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859  (exit $ac_status); }
19860
19861{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19862echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19863if test "${ac_cv_c_compiler_gnu+set}" = set; then
19864  echo $ECHO_N "(cached) $ECHO_C" >&6
19865else
19866  cat >conftest.$ac_ext <<_ACEOF
19867/* confdefs.h.  */
19868_ACEOF
19869cat confdefs.h >>conftest.$ac_ext
19870cat >>conftest.$ac_ext <<_ACEOF
19871/* end confdefs.h.  */
19872
19873int
19874main ()
19875{
19876#ifndef __GNUC__
19877       choke me
19878#endif
19879
19880  ;
19881  return 0;
19882}
19883_ACEOF
19884rm -f conftest.$ac_objext
19885if { (ac_try="$ac_compile"
19886case "(($ac_try" in
19887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888  *) ac_try_echo=$ac_try;;
19889esac
19890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891  (eval "$ac_compile") 2>conftest.er1
19892  ac_status=$?
19893  grep -v '^ *+' conftest.er1 >conftest.err
19894  rm -f conftest.er1
19895  cat conftest.err >&5
19896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897  (exit $ac_status); } && {
19898	 test -z "$ac_c_werror_flag" ||
19899	 test ! -s conftest.err
19900       } && test -s conftest.$ac_objext; then
19901  ac_compiler_gnu=yes
19902else
19903  echo "$as_me: failed program was:" >&5
19904sed 's/^/| /' conftest.$ac_ext >&5
19905
19906	ac_compiler_gnu=no
19907fi
19908
19909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19910ac_cv_c_compiler_gnu=$ac_compiler_gnu
19911
19912fi
19913{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19914echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19915GCC=`test $ac_compiler_gnu = yes && echo yes`
19916ac_test_CFLAGS=${CFLAGS+set}
19917ac_save_CFLAGS=$CFLAGS
19918{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19919echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19920if test "${ac_cv_prog_cc_g+set}" = set; then
19921  echo $ECHO_N "(cached) $ECHO_C" >&6
19922else
19923  ac_save_c_werror_flag=$ac_c_werror_flag
19924   ac_c_werror_flag=yes
19925   ac_cv_prog_cc_g=no
19926   CFLAGS="-g"
19927   cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h.  */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h.  */
19933
19934int
19935main ()
19936{
19937
19938  ;
19939  return 0;
19940}
19941_ACEOF
19942rm -f conftest.$ac_objext
19943if { (ac_try="$ac_compile"
19944case "(($ac_try" in
19945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946  *) ac_try_echo=$ac_try;;
19947esac
19948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949  (eval "$ac_compile") 2>conftest.er1
19950  ac_status=$?
19951  grep -v '^ *+' conftest.er1 >conftest.err
19952  rm -f conftest.er1
19953  cat conftest.err >&5
19954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955  (exit $ac_status); } && {
19956	 test -z "$ac_c_werror_flag" ||
19957	 test ! -s conftest.err
19958       } && test -s conftest.$ac_objext; then
19959  ac_cv_prog_cc_g=yes
19960else
19961  echo "$as_me: failed program was:" >&5
19962sed 's/^/| /' conftest.$ac_ext >&5
19963
19964	CFLAGS=""
19965      cat >conftest.$ac_ext <<_ACEOF
19966/* confdefs.h.  */
19967_ACEOF
19968cat confdefs.h >>conftest.$ac_ext
19969cat >>conftest.$ac_ext <<_ACEOF
19970/* end confdefs.h.  */
19971
19972int
19973main ()
19974{
19975
19976  ;
19977  return 0;
19978}
19979_ACEOF
19980rm -f conftest.$ac_objext
19981if { (ac_try="$ac_compile"
19982case "(($ac_try" in
19983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984  *) ac_try_echo=$ac_try;;
19985esac
19986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987  (eval "$ac_compile") 2>conftest.er1
19988  ac_status=$?
19989  grep -v '^ *+' conftest.er1 >conftest.err
19990  rm -f conftest.er1
19991  cat conftest.err >&5
19992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993  (exit $ac_status); } && {
19994	 test -z "$ac_c_werror_flag" ||
19995	 test ! -s conftest.err
19996       } && test -s conftest.$ac_objext; then
19997  :
19998else
19999  echo "$as_me: failed program was:" >&5
20000sed 's/^/| /' conftest.$ac_ext >&5
20001
20002	ac_c_werror_flag=$ac_save_c_werror_flag
20003	 CFLAGS="-g"
20004	 cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h.  */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h.  */
20010
20011int
20012main ()
20013{
20014
20015  ;
20016  return 0;
20017}
20018_ACEOF
20019rm -f conftest.$ac_objext
20020if { (ac_try="$ac_compile"
20021case "(($ac_try" in
20022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023  *) ac_try_echo=$ac_try;;
20024esac
20025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026  (eval "$ac_compile") 2>conftest.er1
20027  ac_status=$?
20028  grep -v '^ *+' conftest.er1 >conftest.err
20029  rm -f conftest.er1
20030  cat conftest.err >&5
20031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032  (exit $ac_status); } && {
20033	 test -z "$ac_c_werror_flag" ||
20034	 test ! -s conftest.err
20035       } && test -s conftest.$ac_objext; then
20036  ac_cv_prog_cc_g=yes
20037else
20038  echo "$as_me: failed program was:" >&5
20039sed 's/^/| /' conftest.$ac_ext >&5
20040
20041
20042fi
20043
20044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20045fi
20046
20047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20048fi
20049
20050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051   ac_c_werror_flag=$ac_save_c_werror_flag
20052fi
20053{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20054echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20055if test "$ac_test_CFLAGS" = set; then
20056  CFLAGS=$ac_save_CFLAGS
20057elif test $ac_cv_prog_cc_g = yes; then
20058  if test "$GCC" = yes; then
20059    CFLAGS="-g -O2"
20060  else
20061    CFLAGS="-g"
20062  fi
20063else
20064  if test "$GCC" = yes; then
20065    CFLAGS="-O2"
20066  else
20067    CFLAGS=
20068  fi
20069fi
20070{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20071echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20072if test "${ac_cv_prog_cc_c89+set}" = set; then
20073  echo $ECHO_N "(cached) $ECHO_C" >&6
20074else
20075  ac_cv_prog_cc_c89=no
20076ac_save_CC=$CC
20077cat >conftest.$ac_ext <<_ACEOF
20078/* confdefs.h.  */
20079_ACEOF
20080cat confdefs.h >>conftest.$ac_ext
20081cat >>conftest.$ac_ext <<_ACEOF
20082/* end confdefs.h.  */
20083#include <stdarg.h>
20084#include <stdio.h>
20085#include <sys/types.h>
20086#include <sys/stat.h>
20087/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20088struct buf { int x; };
20089FILE * (*rcsopen) (struct buf *, struct stat *, int);
20090static char *e (p, i)
20091     char **p;
20092     int i;
20093{
20094  return p[i];
20095}
20096static char *f (char * (*g) (char **, int), char **p, ...)
20097{
20098  char *s;
20099  va_list v;
20100  va_start (v,p);
20101  s = g (p, va_arg (v,int));
20102  va_end (v);
20103  return s;
20104}
20105
20106/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20107   function prototypes and stuff, but not '\xHH' hex character constants.
20108   These don't provoke an error unfortunately, instead are silently treated
20109   as 'x'.  The following induces an error, until -std is added to get
20110   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20111   array size at least.  It's necessary to write '\x00'==0 to get something
20112   that's true only with -std.  */
20113int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20114
20115/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20116   inside strings and character constants.  */
20117#define FOO(x) 'x'
20118int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20119
20120int test (int i, double x);
20121struct s1 {int (*f) (int a);};
20122struct s2 {int (*f) (double a);};
20123int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20124int argc;
20125char **argv;
20126int
20127main ()
20128{
20129return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20130  ;
20131  return 0;
20132}
20133_ACEOF
20134for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20135	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20136do
20137  CC="$ac_save_CC $ac_arg"
20138  rm -f conftest.$ac_objext
20139if { (ac_try="$ac_compile"
20140case "(($ac_try" in
20141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142  *) ac_try_echo=$ac_try;;
20143esac
20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145  (eval "$ac_compile") 2>conftest.er1
20146  ac_status=$?
20147  grep -v '^ *+' conftest.er1 >conftest.err
20148  rm -f conftest.er1
20149  cat conftest.err >&5
20150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151  (exit $ac_status); } && {
20152	 test -z "$ac_c_werror_flag" ||
20153	 test ! -s conftest.err
20154       } && test -s conftest.$ac_objext; then
20155  ac_cv_prog_cc_c89=$ac_arg
20156else
20157  echo "$as_me: failed program was:" >&5
20158sed 's/^/| /' conftest.$ac_ext >&5
20159
20160
20161fi
20162
20163rm -f core conftest.err conftest.$ac_objext
20164  test "x$ac_cv_prog_cc_c89" != "xno" && break
20165done
20166rm -f conftest.$ac_ext
20167CC=$ac_save_CC
20168
20169fi
20170# AC_CACHE_VAL
20171case "x$ac_cv_prog_cc_c89" in
20172  x)
20173    { echo "$as_me:$LINENO: result: none needed" >&5
20174echo "${ECHO_T}none needed" >&6; } ;;
20175  xno)
20176    { echo "$as_me:$LINENO: result: unsupported" >&5
20177echo "${ECHO_T}unsupported" >&6; } ;;
20178  *)
20179    CC="$CC $ac_cv_prog_cc_c89"
20180    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20181echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20182esac
20183
20184
20185ac_ext=c
20186ac_cpp='$CPP $CPPFLAGS'
20187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20189ac_compiler_gnu=$ac_cv_c_compiler_gnu
20190
20191depcc="$CC"   am_compiler_list=
20192
20193{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20194echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20195if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20196  echo $ECHO_N "(cached) $ECHO_C" >&6
20197else
20198  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20199  # We make a subdir and do the tests there.  Otherwise we can end up
20200  # making bogus files that we don't know about and never remove.  For
20201  # instance it was reported that on HP-UX the gcc test will end up
20202  # making a dummy file named `D' -- because `-MD' means `put the output
20203  # in D'.
20204  mkdir conftest.dir
20205  # Copy depcomp to subdir because otherwise we won't find it if we're
20206  # using a relative directory.
20207  cp "$am_depcomp" conftest.dir
20208  cd conftest.dir
20209  # We will build objects and dependencies in a subdirectory because
20210  # it helps to detect inapplicable dependency modes.  For instance
20211  # both Tru64's cc and ICC support -MD to output dependencies as a
20212  # side effect of compilation, but ICC will put the dependencies in
20213  # the current directory while Tru64 will put them in the object
20214  # directory.
20215  mkdir sub
20216
20217  am_cv_CC_dependencies_compiler_type=none
20218  if test "$am_compiler_list" = ""; then
20219     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20220  fi
20221  for depmode in $am_compiler_list; do
20222    # Setup a source with many dependencies, because some compilers
20223    # like to wrap large dependency lists on column 80 (with \), and
20224    # we should not choose a depcomp mode which is confused by this.
20225    #
20226    # We need to recreate these files for each test, as the compiler may
20227    # overwrite some of them when testing with obscure command lines.
20228    # This happens at least with the AIX C compiler.
20229    : > sub/conftest.c
20230    for i in 1 2 3 4 5 6; do
20231      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20232      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20233      # Solaris 8's {/usr,}/bin/sh.
20234      touch sub/conftst$i.h
20235    done
20236    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20237
20238    case $depmode in
20239    nosideeffect)
20240      # after this tag, mechanisms are not by side-effect, so they'll
20241      # only be used when explicitly requested
20242      if test "x$enable_dependency_tracking" = xyes; then
20243	continue
20244      else
20245	break
20246      fi
20247      ;;
20248    none) break ;;
20249    esac
20250    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20251    # mode.  It turns out that the SunPro C++ compiler does not properly
20252    # handle `-M -o', and we need to detect this.
20253    if depmode=$depmode \
20254       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20255       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20256       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20257         >/dev/null 2>conftest.err &&
20258       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20259       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20260       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20261       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20262      # icc doesn't choke on unknown options, it will just issue warnings
20263      # or remarks (even with -Werror).  So we grep stderr for any message
20264      # that says an option was ignored or not supported.
20265      # When given -MP, icc 7.0 and 7.1 complain thusly:
20266      #   icc: Command line warning: ignoring option '-M'; no argument required
20267      # The diagnosis changed in icc 8.0:
20268      #   icc: Command line remark: option '-MP' not supported
20269      if (grep 'ignoring option' conftest.err ||
20270          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20271        am_cv_CC_dependencies_compiler_type=$depmode
20272        break
20273      fi
20274    fi
20275  done
20276
20277  cd ..
20278  rm -rf conftest.dir
20279else
20280  am_cv_CC_dependencies_compiler_type=none
20281fi
20282
20283fi
20284{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20285echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20286CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20287
20288 if
20289  test "x$enable_dependency_tracking" != xno \
20290  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20291  am__fastdepCC_TRUE=
20292  am__fastdepCC_FALSE='#'
20293else
20294  am__fastdepCC_TRUE='#'
20295  am__fastdepCC_FALSE=
20296fi
20297
20298
20299
20300
20301
20302for ac_prog in cpp
20303do
20304  # Extract the first word of "$ac_prog", so it can be a program name with args.
20305set dummy $ac_prog; ac_word=$2
20306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20308if test "${ac_cv_path_RAWCPP+set}" = set; then
20309  echo $ECHO_N "(cached) $ECHO_C" >&6
20310else
20311  case $RAWCPP in
20312  [\\/]* | ?:[\\/]*)
20313  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
20314  ;;
20315  *)
20316  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20317as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20318for as_dir in $as_dummy
20319do
20320  IFS=$as_save_IFS
20321  test -z "$as_dir" && as_dir=.
20322  for ac_exec_ext in '' $ac_executable_extensions; do
20323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20324    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
20325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20326    break 2
20327  fi
20328done
20329done
20330IFS=$as_save_IFS
20331
20332  ;;
20333esac
20334fi
20335RAWCPP=$ac_cv_path_RAWCPP
20336if test -n "$RAWCPP"; then
20337  { echo "$as_me:$LINENO: result: $RAWCPP" >&5
20338echo "${ECHO_T}$RAWCPP" >&6; }
20339else
20340  { echo "$as_me:$LINENO: result: no" >&5
20341echo "${ECHO_T}no" >&6; }
20342fi
20343
20344
20345  test -n "$RAWCPP" && break
20346done
20347test -n "$RAWCPP" || RAWCPP="${CPP}"
20348
20349
20350# Check for flag to avoid builtin definitions - assumes unix is predefined,
20351# which is not the best choice for supporting other OS'es, but covers most
20352# of the ones we need for now.
20353{ echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
20354echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
20355cat >conftest.$ac_ext <<_ACEOF
20356Does cpp redefine unix ?
20357_ACEOF
20358if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20359	{ echo "$as_me:$LINENO: result: no" >&5
20360echo "${ECHO_T}no" >&6; }
20361else
20362	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20363		RAWCPPFLAGS=-undef
20364		{ echo "$as_me:$LINENO: result: yes" >&5
20365echo "${ECHO_T}yes" >&6; }
20366	else
20367		{ { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&5
20368echo "$as_me: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&2;}
20369   { (exit 1); exit 1; }; }
20370	fi
20371fi
20372rm -f conftest.$ac_ext
20373
20374{ echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
20375echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
20376cat >conftest.$ac_ext <<_ACEOF
20377Does cpp preserve   "whitespace"?
20378_ACEOF
20379if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20380	{ echo "$as_me:$LINENO: result: no" >&5
20381echo "${ECHO_T}no" >&6; }
20382else
20383	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20384		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20385		{ echo "$as_me:$LINENO: result: yes" >&5
20386echo "${ECHO_T}yes" >&6; }
20387	else
20388		{ { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&5
20389echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&2;}
20390   { (exit 1); exit 1; }; }
20391	fi
20392fi
20393rm -f conftest.$ac_ext
20394
20395
20396
20397# Build with XCB support?
20398
20399# Check whether --with-xcb was given.
20400if test "${with_xcb+set}" = set; then
20401  withval=$with_xcb; ac_cv_use_xcb=$withval
20402else
20403  ac_cv_use_xcb=yes
20404fi
20405
20406{ echo "$as_me:$LINENO: checking whether to use XCB" >&5
20407echo $ECHO_N "checking whether to use XCB... $ECHO_C" >&6; }
20408if test "${ac_cv_use_xcb+set}" = set; then
20409  echo $ECHO_N "(cached) $ECHO_C" >&6
20410else
20411  ac_cv_use_xcb=yes
20412fi
20413{ echo "$as_me:$LINENO: result: $ac_cv_use_xcb" >&5
20414echo "${ECHO_T}$ac_cv_use_xcb" >&6; }
20415 if test x$ac_cv_use_xcb != xno; then
20416  XCB_TRUE=
20417  XCB_FALSE='#'
20418else
20419  XCB_TRUE='#'
20420  XCB_FALSE=
20421fi
20422
20423
20424# Checks for pkg-config packages
20425
20426
20427if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20428	if test -n "$ac_tool_prefix"; then
20429  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20430set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20433if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20434  echo $ECHO_N "(cached) $ECHO_C" >&6
20435else
20436  case $PKG_CONFIG in
20437  [\\/]* | ?:[\\/]*)
20438  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20439  ;;
20440  *)
20441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20442for as_dir in $PATH
20443do
20444  IFS=$as_save_IFS
20445  test -z "$as_dir" && as_dir=.
20446  for ac_exec_ext in '' $ac_executable_extensions; do
20447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20448    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20449    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20450    break 2
20451  fi
20452done
20453done
20454IFS=$as_save_IFS
20455
20456  ;;
20457esac
20458fi
20459PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20460if test -n "$PKG_CONFIG"; then
20461  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20462echo "${ECHO_T}$PKG_CONFIG" >&6; }
20463else
20464  { echo "$as_me:$LINENO: result: no" >&5
20465echo "${ECHO_T}no" >&6; }
20466fi
20467
20468
20469fi
20470if test -z "$ac_cv_path_PKG_CONFIG"; then
20471  ac_pt_PKG_CONFIG=$PKG_CONFIG
20472  # Extract the first word of "pkg-config", so it can be a program name with args.
20473set dummy pkg-config; ac_word=$2
20474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20476if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20477  echo $ECHO_N "(cached) $ECHO_C" >&6
20478else
20479  case $ac_pt_PKG_CONFIG in
20480  [\\/]* | ?:[\\/]*)
20481  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20482  ;;
20483  *)
20484  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20485for as_dir in $PATH
20486do
20487  IFS=$as_save_IFS
20488  test -z "$as_dir" && as_dir=.
20489  for ac_exec_ext in '' $ac_executable_extensions; do
20490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20491    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20492    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20493    break 2
20494  fi
20495done
20496done
20497IFS=$as_save_IFS
20498
20499  ;;
20500esac
20501fi
20502ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20503if test -n "$ac_pt_PKG_CONFIG"; then
20504  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20505echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20506else
20507  { echo "$as_me:$LINENO: result: no" >&5
20508echo "${ECHO_T}no" >&6; }
20509fi
20510
20511  if test "x$ac_pt_PKG_CONFIG" = x; then
20512    PKG_CONFIG=""
20513  else
20514    case $cross_compiling:$ac_tool_warned in
20515yes:)
20516{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20517whose name does not start with the host triplet.  If you think this
20518configuration is useful to you, please write to autoconf@gnu.org." >&5
20519echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20520whose name does not start with the host triplet.  If you think this
20521configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20522ac_tool_warned=yes ;;
20523esac
20524    PKG_CONFIG=$ac_pt_PKG_CONFIG
20525  fi
20526else
20527  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20528fi
20529
20530fi
20531if test -n "$PKG_CONFIG"; then
20532	_pkg_min_version=0.9.0
20533	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20534echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20535	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20536		{ echo "$as_me:$LINENO: result: yes" >&5
20537echo "${ECHO_T}yes" >&6; }
20538	else
20539		{ echo "$as_me:$LINENO: result: no" >&5
20540echo "${ECHO_T}no" >&6; }
20541		PKG_CONFIG=""
20542	fi
20543
20544fi
20545
20546pkg_failed=no
20547{ echo "$as_me:$LINENO: checking for XPROTO" >&5
20548echo $ECHO_N "checking for XPROTO... $ECHO_C" >&6; }
20549
20550if test -n "$XPROTO_CFLAGS"; then
20551    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
20552 elif test -n "$PKG_CONFIG"; then
20553    if test -n "$PKG_CONFIG" && \
20554    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.6\"") >&5
20555  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.6") 2>&5
20556  ac_status=$?
20557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558  (exit $ac_status); }; then
20559  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.6" 2>/dev/null`
20560else
20561  pkg_failed=yes
20562fi
20563 else
20564    pkg_failed=untried
20565fi
20566if test -n "$XPROTO_LIBS"; then
20567    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
20568 elif test -n "$PKG_CONFIG"; then
20569    if test -n "$PKG_CONFIG" && \
20570    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.6\"") >&5
20571  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.6") 2>&5
20572  ac_status=$?
20573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574  (exit $ac_status); }; then
20575  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.6" 2>/dev/null`
20576else
20577  pkg_failed=yes
20578fi
20579 else
20580    pkg_failed=untried
20581fi
20582
20583
20584
20585if test $pkg_failed = yes; then
20586
20587if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20588        _pkg_short_errors_supported=yes
20589else
20590        _pkg_short_errors_supported=no
20591fi
20592        if test $_pkg_short_errors_supported = yes; then
20593	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.6" 2>&1`
20594        else
20595	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.6" 2>&1`
20596        fi
20597	# Put the nasty error message in config.log where it belongs
20598	echo "$XPROTO_PKG_ERRORS" >&5
20599
20600	{ { echo "$as_me:$LINENO: error: Package requirements (xproto >= 7.0.6) were not met:
20601
20602$XPROTO_PKG_ERRORS
20603
20604Consider adjusting the PKG_CONFIG_PATH environment variable if you
20605installed software in a non-standard prefix.
20606
20607Alternatively, you may set the environment variables XPROTO_CFLAGS
20608and XPROTO_LIBS to avoid the need to call pkg-config.
20609See the pkg-config man page for more details.
20610" >&5
20611echo "$as_me: error: Package requirements (xproto >= 7.0.6) were not met:
20612
20613$XPROTO_PKG_ERRORS
20614
20615Consider adjusting the PKG_CONFIG_PATH environment variable if you
20616installed software in a non-standard prefix.
20617
20618Alternatively, you may set the environment variables XPROTO_CFLAGS
20619and XPROTO_LIBS to avoid the need to call pkg-config.
20620See the pkg-config man page for more details.
20621" >&2;}
20622   { (exit 1); exit 1; }; }
20623elif test $pkg_failed = untried; then
20624	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20625is in your PATH or set the PKG_CONFIG environment variable to the full
20626path to pkg-config.
20627
20628Alternatively, you may set the environment variables XPROTO_CFLAGS
20629and XPROTO_LIBS to avoid the need to call pkg-config.
20630See the pkg-config man page for more details.
20631
20632To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20633See \`config.log' for more details." >&5
20634echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20635is in your PATH or set the PKG_CONFIG environment variable to the full
20636path to pkg-config.
20637
20638Alternatively, you may set the environment variables XPROTO_CFLAGS
20639and XPROTO_LIBS to avoid the need to call pkg-config.
20640See the pkg-config man page for more details.
20641
20642To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20643See \`config.log' for more details." >&2;}
20644   { (exit 1); exit 1; }; }
20645else
20646	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
20647	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
20648        { echo "$as_me:$LINENO: result: yes" >&5
20649echo "${ECHO_T}yes" >&6; }
20650	:
20651fi
20652
20653
20654case "$ac_cv_use_xcb" in
20655no)
20656	X11_REQUIRES="xau xcmiscproto bigreqsproto"
20657
20658pkg_failed=no
20659{ echo "$as_me:$LINENO: checking for XDMCP" >&5
20660echo $ECHO_N "checking for XDMCP... $ECHO_C" >&6; }
20661
20662if test -n "$XDMCP_CFLAGS"; then
20663    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
20664 elif test -n "$PKG_CONFIG"; then
20665    if test -n "$PKG_CONFIG" && \
20666    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
20667  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
20668  ac_status=$?
20669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670  (exit $ac_status); }; then
20671  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
20672else
20673  pkg_failed=yes
20674fi
20675 else
20676    pkg_failed=untried
20677fi
20678if test -n "$XDMCP_LIBS"; then
20679    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
20680 elif test -n "$PKG_CONFIG"; then
20681    if test -n "$PKG_CONFIG" && \
20682    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
20683  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
20684  ac_status=$?
20685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686  (exit $ac_status); }; then
20687  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
20688else
20689  pkg_failed=yes
20690fi
20691 else
20692    pkg_failed=untried
20693fi
20694
20695
20696
20697if test $pkg_failed = yes; then
20698
20699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20700        _pkg_short_errors_supported=yes
20701else
20702        _pkg_short_errors_supported=no
20703fi
20704        if test $_pkg_short_errors_supported = yes; then
20705	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1`
20706        else
20707	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1`
20708        fi
20709	# Put the nasty error message in config.log where it belongs
20710	echo "$XDMCP_PKG_ERRORS" >&5
20711
20712	{ { echo "$as_me:$LINENO: error: Package requirements (xdmcp) were not met:
20713
20714$XDMCP_PKG_ERRORS
20715
20716Consider adjusting the PKG_CONFIG_PATH environment variable if you
20717installed software in a non-standard prefix.
20718
20719Alternatively, you may set the environment variables XDMCP_CFLAGS
20720and XDMCP_LIBS to avoid the need to call pkg-config.
20721See the pkg-config man page for more details.
20722" >&5
20723echo "$as_me: error: Package requirements (xdmcp) were not met:
20724
20725$XDMCP_PKG_ERRORS
20726
20727Consider adjusting the PKG_CONFIG_PATH environment variable if you
20728installed software in a non-standard prefix.
20729
20730Alternatively, you may set the environment variables XDMCP_CFLAGS
20731and XDMCP_LIBS to avoid the need to call pkg-config.
20732See the pkg-config man page for more details.
20733" >&2;}
20734   { (exit 1); exit 1; }; }
20735elif test $pkg_failed = untried; then
20736	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20737is in your PATH or set the PKG_CONFIG environment variable to the full
20738path to pkg-config.
20739
20740Alternatively, you may set the environment variables XDMCP_CFLAGS
20741and XDMCP_LIBS to avoid the need to call pkg-config.
20742See the pkg-config man page for more details.
20743
20744To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20745See \`config.log' for more details." >&5
20746echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20747is in your PATH or set the PKG_CONFIG environment variable to the full
20748path to pkg-config.
20749
20750Alternatively, you may set the environment variables XDMCP_CFLAGS
20751and XDMCP_LIBS to avoid the need to call pkg-config.
20752See the pkg-config man page for more details.
20753
20754To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20755See \`config.log' for more details." >&2;}
20756   { (exit 1); exit 1; }; }
20757else
20758	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
20759	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
20760        { echo "$as_me:$LINENO: result: yes" >&5
20761echo "${ECHO_T}yes" >&6; }
20762	:
20763fi
20764	{ echo "$as_me:$LINENO: checking for XdmcpWrap in -lXdmcp" >&5
20765echo $ECHO_N "checking for XdmcpWrap in -lXdmcp... $ECHO_C" >&6; }
20766if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then
20767  echo $ECHO_N "(cached) $ECHO_C" >&6
20768else
20769  ac_check_lib_save_LIBS=$LIBS
20770LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
20771cat >conftest.$ac_ext <<_ACEOF
20772/* confdefs.h.  */
20773_ACEOF
20774cat confdefs.h >>conftest.$ac_ext
20775cat >>conftest.$ac_ext <<_ACEOF
20776/* end confdefs.h.  */
20777
20778/* Override any GCC internal prototype to avoid an error.
20779   Use char because int might match the return type of a GCC
20780   builtin and then its argument prototype would still apply.  */
20781#ifdef __cplusplus
20782extern "C"
20783#endif
20784char XdmcpWrap ();
20785int
20786main ()
20787{
20788return XdmcpWrap ();
20789  ;
20790  return 0;
20791}
20792_ACEOF
20793rm -f conftest.$ac_objext conftest$ac_exeext
20794if { (ac_try="$ac_link"
20795case "(($ac_try" in
20796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797  *) ac_try_echo=$ac_try;;
20798esac
20799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800  (eval "$ac_link") 2>conftest.er1
20801  ac_status=$?
20802  grep -v '^ *+' conftest.er1 >conftest.err
20803  rm -f conftest.er1
20804  cat conftest.err >&5
20805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806  (exit $ac_status); } && {
20807	 test -z "$ac_c_werror_flag" ||
20808	 test ! -s conftest.err
20809       } && test -s conftest$ac_exeext &&
20810       $as_test_x conftest$ac_exeext; then
20811  ac_cv_lib_Xdmcp_XdmcpWrap=yes
20812else
20813  echo "$as_me: failed program was:" >&5
20814sed 's/^/| /' conftest.$ac_ext >&5
20815
20816	ac_cv_lib_Xdmcp_XdmcpWrap=no
20817fi
20818
20819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20820      conftest$ac_exeext conftest.$ac_ext
20821LIBS=$ac_check_lib_save_LIBS
20822fi
20823{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
20824echo "${ECHO_T}$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
20825if test $ac_cv_lib_Xdmcp_XdmcpWrap = yes; then
20826  xdmauth="yes"
20827else
20828  xdmauth="no"
20829fi
20830
20831
20832cat >>confdefs.h <<\_ACEOF
20833#define USE_XCB 0
20834_ACEOF
20835
20836	;;
20837*)
20838	X11_REQUIRES="xcb-xlib >= 0.9.92"
20839	X11_EXTRA_DEPS="xcb-xlib"
20840	xdmauth="no" # XCB handles all auth
20841
20842cat >>confdefs.h <<\_ACEOF
20843#define USE_XCB 1
20844_ACEOF
20845
20846	;;
20847esac
20848
20849
20850pkg_failed=no
20851{ echo "$as_me:$LINENO: checking for X11" >&5
20852echo $ECHO_N "checking for X11... $ECHO_C" >&6; }
20853
20854if test -n "$X11_CFLAGS"; then
20855    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
20856 elif test -n "$PKG_CONFIG"; then
20857    if test -n "$PKG_CONFIG" && \
20858    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto xtrans \$X11_REQUIRES\"") >&5
20859  ($PKG_CONFIG --exists --print-errors "xextproto xtrans $X11_REQUIRES") 2>&5
20860  ac_status=$?
20861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862  (exit $ac_status); }; then
20863  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xextproto xtrans $X11_REQUIRES" 2>/dev/null`
20864else
20865  pkg_failed=yes
20866fi
20867 else
20868    pkg_failed=untried
20869fi
20870if test -n "$X11_LIBS"; then
20871    pkg_cv_X11_LIBS="$X11_LIBS"
20872 elif test -n "$PKG_CONFIG"; then
20873    if test -n "$PKG_CONFIG" && \
20874    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto xtrans \$X11_REQUIRES\"") >&5
20875  ($PKG_CONFIG --exists --print-errors "xextproto xtrans $X11_REQUIRES") 2>&5
20876  ac_status=$?
20877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878  (exit $ac_status); }; then
20879  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xextproto xtrans $X11_REQUIRES" 2>/dev/null`
20880else
20881  pkg_failed=yes
20882fi
20883 else
20884    pkg_failed=untried
20885fi
20886
20887
20888
20889if test $pkg_failed = yes; then
20890
20891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20892        _pkg_short_errors_supported=yes
20893else
20894        _pkg_short_errors_supported=no
20895fi
20896        if test $_pkg_short_errors_supported = yes; then
20897	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto xtrans $X11_REQUIRES" 2>&1`
20898        else
20899	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto xtrans $X11_REQUIRES" 2>&1`
20900        fi
20901	# Put the nasty error message in config.log where it belongs
20902	echo "$X11_PKG_ERRORS" >&5
20903
20904	{ { echo "$as_me:$LINENO: error: Package requirements (xextproto xtrans $X11_REQUIRES) were not met:
20905
20906$X11_PKG_ERRORS
20907
20908Consider adjusting the PKG_CONFIG_PATH environment variable if you
20909installed software in a non-standard prefix.
20910
20911Alternatively, you may set the environment variables X11_CFLAGS
20912and X11_LIBS to avoid the need to call pkg-config.
20913See the pkg-config man page for more details.
20914" >&5
20915echo "$as_me: error: Package requirements (xextproto xtrans $X11_REQUIRES) were not met:
20916
20917$X11_PKG_ERRORS
20918
20919Consider adjusting the PKG_CONFIG_PATH environment variable if you
20920installed software in a non-standard prefix.
20921
20922Alternatively, you may set the environment variables X11_CFLAGS
20923and X11_LIBS to avoid the need to call pkg-config.
20924See the pkg-config man page for more details.
20925" >&2;}
20926   { (exit 1); exit 1; }; }
20927elif test $pkg_failed = untried; then
20928	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20929is in your PATH or set the PKG_CONFIG environment variable to the full
20930path to pkg-config.
20931
20932Alternatively, you may set the environment variables X11_CFLAGS
20933and X11_LIBS to avoid the need to call pkg-config.
20934See the pkg-config man page for more details.
20935
20936To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20937See \`config.log' for more details." >&5
20938echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20939is in your PATH or set the PKG_CONFIG environment variable to the full
20940path to pkg-config.
20941
20942Alternatively, you may set the environment variables X11_CFLAGS
20943and X11_LIBS to avoid the need to call pkg-config.
20944See the pkg-config man page for more details.
20945
20946To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20947See \`config.log' for more details." >&2;}
20948   { (exit 1); exit 1; }; }
20949else
20950	X11_CFLAGS=$pkg_cv_X11_CFLAGS
20951	X11_LIBS=$pkg_cv_X11_LIBS
20952        { echo "$as_me:$LINENO: result: yes" >&5
20953echo "${ECHO_T}yes" >&6; }
20954	:
20955fi
20956
20957
20958
20959# Transport selection macro from xtrans.m4
20960
20961
20962
20963 # Check whether --enable-unix-transport was given.
20964if test "${enable_unix_transport+set}" = set; then
20965  enableval=$enable_unix_transport; UNIXCONN=$enableval
20966else
20967  UNIXCONN=yes
20968fi
20969
20970 # Check whether --enable-tcp-transport was given.
20971if test "${enable_tcp_transport+set}" = set; then
20972  enableval=$enable_tcp_transport; TCPCONN=$enableval
20973else
20974  TCPCONN=yes
20975fi
20976
20977 { echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
20978echo $ECHO_N "checking if Xtrans should support UNIX socket connections... $ECHO_C" >&6; }
20979 if test "$UNIXCONN" = "yes"; then
20980
20981cat >>confdefs.h <<\_ACEOF
20982#define UNIXCONN 1
20983_ACEOF
20984
20985 fi
20986 { echo "$as_me:$LINENO: result: $UNIXCONN" >&5
20987echo "${ECHO_T}$UNIXCONN" >&6; }
20988 { echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
20989echo $ECHO_N "checking if Xtrans should support TCP socket connections... $ECHO_C" >&6; }
20990 { echo "$as_me:$LINENO: result: $TCPCONN" >&5
20991echo "${ECHO_T}$TCPCONN" >&6; }
20992 if test "$TCPCONN" = "yes"; then
20993
20994cat >>confdefs.h <<\_ACEOF
20995#define TCPCONN 1
20996_ACEOF
20997
20998
20999 # SVR4 hides these in libraries other than libc
21000 { echo "$as_me:$LINENO: checking for library containing socket" >&5
21001echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
21002if test "${ac_cv_search_socket+set}" = set; then
21003  echo $ECHO_N "(cached) $ECHO_C" >&6
21004else
21005  ac_func_search_save_LIBS=$LIBS
21006cat >conftest.$ac_ext <<_ACEOF
21007/* confdefs.h.  */
21008_ACEOF
21009cat confdefs.h >>conftest.$ac_ext
21010cat >>conftest.$ac_ext <<_ACEOF
21011/* end confdefs.h.  */
21012
21013/* Override any GCC internal prototype to avoid an error.
21014   Use char because int might match the return type of a GCC
21015   builtin and then its argument prototype would still apply.  */
21016#ifdef __cplusplus
21017extern "C"
21018#endif
21019char socket ();
21020int
21021main ()
21022{
21023return socket ();
21024  ;
21025  return 0;
21026}
21027_ACEOF
21028for ac_lib in '' socket; do
21029  if test -z "$ac_lib"; then
21030    ac_res="none required"
21031  else
21032    ac_res=-l$ac_lib
21033    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21034  fi
21035  rm -f conftest.$ac_objext conftest$ac_exeext
21036if { (ac_try="$ac_link"
21037case "(($ac_try" in
21038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039  *) ac_try_echo=$ac_try;;
21040esac
21041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042  (eval "$ac_link") 2>conftest.er1
21043  ac_status=$?
21044  grep -v '^ *+' conftest.er1 >conftest.err
21045  rm -f conftest.er1
21046  cat conftest.err >&5
21047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048  (exit $ac_status); } && {
21049	 test -z "$ac_c_werror_flag" ||
21050	 test ! -s conftest.err
21051       } && test -s conftest$ac_exeext &&
21052       $as_test_x conftest$ac_exeext; then
21053  ac_cv_search_socket=$ac_res
21054else
21055  echo "$as_me: failed program was:" >&5
21056sed 's/^/| /' conftest.$ac_ext >&5
21057
21058
21059fi
21060
21061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21062      conftest$ac_exeext
21063  if test "${ac_cv_search_socket+set}" = set; then
21064  break
21065fi
21066done
21067if test "${ac_cv_search_socket+set}" = set; then
21068  :
21069else
21070  ac_cv_search_socket=no
21071fi
21072rm conftest.$ac_ext
21073LIBS=$ac_func_search_save_LIBS
21074fi
21075{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
21076echo "${ECHO_T}$ac_cv_search_socket" >&6; }
21077ac_res=$ac_cv_search_socket
21078if test "$ac_res" != no; then
21079  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21080
21081fi
21082
21083 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
21084echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
21085if test "${ac_cv_search_gethostbyname+set}" = set; then
21086  echo $ECHO_N "(cached) $ECHO_C" >&6
21087else
21088  ac_func_search_save_LIBS=$LIBS
21089cat >conftest.$ac_ext <<_ACEOF
21090/* confdefs.h.  */
21091_ACEOF
21092cat confdefs.h >>conftest.$ac_ext
21093cat >>conftest.$ac_ext <<_ACEOF
21094/* end confdefs.h.  */
21095
21096/* Override any GCC internal prototype to avoid an error.
21097   Use char because int might match the return type of a GCC
21098   builtin and then its argument prototype would still apply.  */
21099#ifdef __cplusplus
21100extern "C"
21101#endif
21102char gethostbyname ();
21103int
21104main ()
21105{
21106return gethostbyname ();
21107  ;
21108  return 0;
21109}
21110_ACEOF
21111for ac_lib in '' nsl; do
21112  if test -z "$ac_lib"; then
21113    ac_res="none required"
21114  else
21115    ac_res=-l$ac_lib
21116    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21117  fi
21118  rm -f conftest.$ac_objext conftest$ac_exeext
21119if { (ac_try="$ac_link"
21120case "(($ac_try" in
21121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122  *) ac_try_echo=$ac_try;;
21123esac
21124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125  (eval "$ac_link") 2>conftest.er1
21126  ac_status=$?
21127  grep -v '^ *+' conftest.er1 >conftest.err
21128  rm -f conftest.er1
21129  cat conftest.err >&5
21130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131  (exit $ac_status); } && {
21132	 test -z "$ac_c_werror_flag" ||
21133	 test ! -s conftest.err
21134       } && test -s conftest$ac_exeext &&
21135       $as_test_x conftest$ac_exeext; then
21136  ac_cv_search_gethostbyname=$ac_res
21137else
21138  echo "$as_me: failed program was:" >&5
21139sed 's/^/| /' conftest.$ac_ext >&5
21140
21141
21142fi
21143
21144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21145      conftest$ac_exeext
21146  if test "${ac_cv_search_gethostbyname+set}" = set; then
21147  break
21148fi
21149done
21150if test "${ac_cv_search_gethostbyname+set}" = set; then
21151  :
21152else
21153  ac_cv_search_gethostbyname=no
21154fi
21155rm conftest.$ac_ext
21156LIBS=$ac_func_search_save_LIBS
21157fi
21158{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
21159echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
21160ac_res=$ac_cv_search_gethostbyname
21161if test "$ac_res" != no; then
21162  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21163
21164fi
21165
21166
21167 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21168 # Check whether --enable-ipv6 was given.
21169if test "${enable_ipv6+set}" = set; then
21170  enableval=$enable_ipv6; IPV6CONN=$enableval
21171else
21172  { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
21173echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
21174if test "${ac_cv_func_getaddrinfo+set}" = set; then
21175  echo $ECHO_N "(cached) $ECHO_C" >&6
21176else
21177  cat >conftest.$ac_ext <<_ACEOF
21178/* confdefs.h.  */
21179_ACEOF
21180cat confdefs.h >>conftest.$ac_ext
21181cat >>conftest.$ac_ext <<_ACEOF
21182/* end confdefs.h.  */
21183/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
21184   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21185#define getaddrinfo innocuous_getaddrinfo
21186
21187/* System header to define __stub macros and hopefully few prototypes,
21188    which can conflict with char getaddrinfo (); below.
21189    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21190    <limits.h> exists even on freestanding compilers.  */
21191
21192#ifdef __STDC__
21193# include <limits.h>
21194#else
21195# include <assert.h>
21196#endif
21197
21198#undef getaddrinfo
21199
21200/* Override any GCC internal prototype to avoid an error.
21201   Use char because int might match the return type of a GCC
21202   builtin and then its argument prototype would still apply.  */
21203#ifdef __cplusplus
21204extern "C"
21205#endif
21206char getaddrinfo ();
21207/* The GNU C library defines this for functions which it implements
21208    to always fail with ENOSYS.  Some functions are actually named
21209    something starting with __ and the normal name is an alias.  */
21210#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
21211choke me
21212#endif
21213
21214int
21215main ()
21216{
21217return getaddrinfo ();
21218  ;
21219  return 0;
21220}
21221_ACEOF
21222rm -f conftest.$ac_objext conftest$ac_exeext
21223if { (ac_try="$ac_link"
21224case "(($ac_try" in
21225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226  *) ac_try_echo=$ac_try;;
21227esac
21228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229  (eval "$ac_link") 2>conftest.er1
21230  ac_status=$?
21231  grep -v '^ *+' conftest.er1 >conftest.err
21232  rm -f conftest.er1
21233  cat conftest.err >&5
21234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235  (exit $ac_status); } && {
21236	 test -z "$ac_c_werror_flag" ||
21237	 test ! -s conftest.err
21238       } && test -s conftest$ac_exeext &&
21239       $as_test_x conftest$ac_exeext; then
21240  ac_cv_func_getaddrinfo=yes
21241else
21242  echo "$as_me: failed program was:" >&5
21243sed 's/^/| /' conftest.$ac_ext >&5
21244
21245	ac_cv_func_getaddrinfo=no
21246fi
21247
21248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21249      conftest$ac_exeext conftest.$ac_ext
21250fi
21251{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
21252echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
21253if test $ac_cv_func_getaddrinfo = yes; then
21254  IPV6CONN=yes
21255else
21256  IPV6CONN=no
21257fi
21258
21259fi
21260
21261 { echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
21262echo $ECHO_N "checking if IPv6 support should be built... $ECHO_C" >&6; }
21263 if test "$IPV6CONN" = "yes"; then
21264
21265cat >>confdefs.h <<\_ACEOF
21266#define IPv6 1
21267_ACEOF
21268
21269 fi
21270 { echo "$as_me:$LINENO: result: $IPV6CONN" >&5
21271echo "${ECHO_T}$IPV6CONN" >&6; }
21272
21273 # 4.3BSD-Reno added a new member to struct sockaddr_in
21274 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
21275echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
21276if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
21277  echo $ECHO_N "(cached) $ECHO_C" >&6
21278else
21279  cat >conftest.$ac_ext <<_ACEOF
21280/* confdefs.h.  */
21281_ACEOF
21282cat confdefs.h >>conftest.$ac_ext
21283cat >>conftest.$ac_ext <<_ACEOF
21284/* end confdefs.h.  */
21285
21286#include <sys/types.h>
21287#include <sys/socket.h>
21288#include <netinet/in.h>
21289
21290
21291int
21292main ()
21293{
21294static struct sockaddr_in ac_aggr;
21295if (ac_aggr.sin_len)
21296return 0;
21297  ;
21298  return 0;
21299}
21300_ACEOF
21301rm -f conftest.$ac_objext
21302if { (ac_try="$ac_compile"
21303case "(($ac_try" in
21304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305  *) ac_try_echo=$ac_try;;
21306esac
21307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308  (eval "$ac_compile") 2>conftest.er1
21309  ac_status=$?
21310  grep -v '^ *+' conftest.er1 >conftest.err
21311  rm -f conftest.er1
21312  cat conftest.err >&5
21313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314  (exit $ac_status); } && {
21315	 test -z "$ac_c_werror_flag" ||
21316	 test ! -s conftest.err
21317       } && test -s conftest.$ac_objext; then
21318  ac_cv_member_struct_sockaddr_in_sin_len=yes
21319else
21320  echo "$as_me: failed program was:" >&5
21321sed 's/^/| /' conftest.$ac_ext >&5
21322
21323	cat >conftest.$ac_ext <<_ACEOF
21324/* confdefs.h.  */
21325_ACEOF
21326cat confdefs.h >>conftest.$ac_ext
21327cat >>conftest.$ac_ext <<_ACEOF
21328/* end confdefs.h.  */
21329
21330#include <sys/types.h>
21331#include <sys/socket.h>
21332#include <netinet/in.h>
21333
21334
21335int
21336main ()
21337{
21338static struct sockaddr_in ac_aggr;
21339if (sizeof ac_aggr.sin_len)
21340return 0;
21341  ;
21342  return 0;
21343}
21344_ACEOF
21345rm -f conftest.$ac_objext
21346if { (ac_try="$ac_compile"
21347case "(($ac_try" in
21348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349  *) ac_try_echo=$ac_try;;
21350esac
21351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352  (eval "$ac_compile") 2>conftest.er1
21353  ac_status=$?
21354  grep -v '^ *+' conftest.er1 >conftest.err
21355  rm -f conftest.er1
21356  cat conftest.err >&5
21357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358  (exit $ac_status); } && {
21359	 test -z "$ac_c_werror_flag" ||
21360	 test ! -s conftest.err
21361       } && test -s conftest.$ac_objext; then
21362  ac_cv_member_struct_sockaddr_in_sin_len=yes
21363else
21364  echo "$as_me: failed program was:" >&5
21365sed 's/^/| /' conftest.$ac_ext >&5
21366
21367	ac_cv_member_struct_sockaddr_in_sin_len=no
21368fi
21369
21370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21371fi
21372
21373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374fi
21375{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
21376echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
21377if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
21378
21379cat >>confdefs.h <<\_ACEOF
21380#define BSD44SOCKETS 1
21381_ACEOF
21382
21383fi
21384
21385
21386 fi
21387 case $host_os in
21388	solaris*|sco*|sysv4*)	localdef="yes" ;;
21389	*)			localdef="no"  ;;
21390 esac
21391 # Check whether --enable-local-transport was given.
21392if test "${enable_local_transport+set}" = set; then
21393  enableval=$enable_local_transport; LOCALCONN=$enableval
21394else
21395  LOCALCONN=$localdef
21396fi
21397
21398 { echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
21399echo $ECHO_N "checking if Xtrans should support os-specific local connections... $ECHO_C" >&6; }
21400 { echo "$as_me:$LINENO: result: $LOCALCONN" >&5
21401echo "${ECHO_T}$LOCALCONN" >&6; }
21402 if test "$LOCALCONN" = "yes"; then
21403
21404cat >>confdefs.h <<\_ACEOF
21405#define LOCALCONN 1
21406_ACEOF
21407
21408 fi
21409
21410
21411
21412# Secure RPC detection macro from xtrans.m4
21413
21414 # Check whether --enable-secure-rpc was given.
21415if test "${enable_secure_rpc+set}" = set; then
21416  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
21417else
21418  SECURE_RPC="try"
21419fi
21420
21421
21422 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
21423	FOUND_SECURE_RPC="no"
21424
21425
21426for ac_func in authdes_seccreate authdes_create
21427do
21428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21429{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21431if { as_var=$as_ac_var; eval "test \"\${$as_var+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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21441   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21442#define $ac_func innocuous_$ac_func
21443
21444/* System header to define __stub macros and hopefully few prototypes,
21445    which can conflict with char $ac_func (); below.
21446    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21447    <limits.h> exists even on freestanding compilers.  */
21448
21449#ifdef __STDC__
21450# include <limits.h>
21451#else
21452# include <assert.h>
21453#endif
21454
21455#undef $ac_func
21456
21457/* Override any GCC internal prototype to avoid an error.
21458   Use char because int might match the return type of a GCC
21459   builtin and then its argument prototype would still apply.  */
21460#ifdef __cplusplus
21461extern "C"
21462#endif
21463char $ac_func ();
21464/* The GNU C library defines this for functions which it implements
21465    to always fail with ENOSYS.  Some functions are actually named
21466    something starting with __ and the normal name is an alias.  */
21467#if defined __stub_$ac_func || defined __stub___$ac_func
21468choke me
21469#endif
21470
21471int
21472main ()
21473{
21474return $ac_func ();
21475  ;
21476  return 0;
21477}
21478_ACEOF
21479rm -f conftest.$ac_objext conftest$ac_exeext
21480if { (ac_try="$ac_link"
21481case "(($ac_try" in
21482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483  *) ac_try_echo=$ac_try;;
21484esac
21485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486  (eval "$ac_link") 2>conftest.er1
21487  ac_status=$?
21488  grep -v '^ *+' conftest.er1 >conftest.err
21489  rm -f conftest.er1
21490  cat conftest.err >&5
21491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492  (exit $ac_status); } && {
21493	 test -z "$ac_c_werror_flag" ||
21494	 test ! -s conftest.err
21495       } && test -s conftest$ac_exeext &&
21496       $as_test_x conftest$ac_exeext; then
21497  eval "$as_ac_var=yes"
21498else
21499  echo "$as_me: failed program was:" >&5
21500sed 's/^/| /' conftest.$ac_ext >&5
21501
21502	eval "$as_ac_var=no"
21503fi
21504
21505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21506      conftest$ac_exeext conftest.$ac_ext
21507fi
21508ac_res=`eval echo '${'$as_ac_var'}'`
21509	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21510echo "${ECHO_T}$ac_res" >&6; }
21511if test `eval echo '${'$as_ac_var'}'` = yes; then
21512  cat >>confdefs.h <<_ACEOF
21513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21514_ACEOF
21515 FOUND_SECURE_RPC="yes"
21516fi
21517done
21518
21519	if test "x$FOUND_SECURE_RPC" = "xno" ; then
21520		if test "x$SECURE_RPC" = "xyes" ; then
21521	{ { echo "$as_me:$LINENO: error: Secure RPC requested, but required functions not found" >&5
21522echo "$as_me: error: Secure RPC requested, but required functions not found" >&2;}
21523   { (exit 1); exit 1; }; }
21524		fi
21525		SECURE_RPC="no"
21526	else
21527				{ echo "$as_me:$LINENO: checking for library containing getsecretkey" >&5
21528echo $ECHO_N "checking for library containing getsecretkey... $ECHO_C" >&6; }
21529if test "${ac_cv_search_getsecretkey+set}" = set; then
21530  echo $ECHO_N "(cached) $ECHO_C" >&6
21531else
21532  ac_func_search_save_LIBS=$LIBS
21533cat >conftest.$ac_ext <<_ACEOF
21534/* confdefs.h.  */
21535_ACEOF
21536cat confdefs.h >>conftest.$ac_ext
21537cat >>conftest.$ac_ext <<_ACEOF
21538/* end confdefs.h.  */
21539
21540/* Override any GCC internal prototype to avoid an error.
21541   Use char because int might match the return type of a GCC
21542   builtin and then its argument prototype would still apply.  */
21543#ifdef __cplusplus
21544extern "C"
21545#endif
21546char getsecretkey ();
21547int
21548main ()
21549{
21550return getsecretkey ();
21551  ;
21552  return 0;
21553}
21554_ACEOF
21555for ac_lib in '' rpcsvc; do
21556  if test -z "$ac_lib"; then
21557    ac_res="none required"
21558  else
21559    ac_res=-l$ac_lib
21560    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21561  fi
21562  rm -f conftest.$ac_objext conftest$ac_exeext
21563if { (ac_try="$ac_link"
21564case "(($ac_try" in
21565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566  *) ac_try_echo=$ac_try;;
21567esac
21568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569  (eval "$ac_link") 2>conftest.er1
21570  ac_status=$?
21571  grep -v '^ *+' conftest.er1 >conftest.err
21572  rm -f conftest.er1
21573  cat conftest.err >&5
21574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575  (exit $ac_status); } && {
21576	 test -z "$ac_c_werror_flag" ||
21577	 test ! -s conftest.err
21578       } && test -s conftest$ac_exeext &&
21579       $as_test_x conftest$ac_exeext; then
21580  ac_cv_search_getsecretkey=$ac_res
21581else
21582  echo "$as_me: failed program was:" >&5
21583sed 's/^/| /' conftest.$ac_ext >&5
21584
21585
21586fi
21587
21588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21589      conftest$ac_exeext
21590  if test "${ac_cv_search_getsecretkey+set}" = set; then
21591  break
21592fi
21593done
21594if test "${ac_cv_search_getsecretkey+set}" = set; then
21595  :
21596else
21597  ac_cv_search_getsecretkey=no
21598fi
21599rm conftest.$ac_ext
21600LIBS=$ac_func_search_save_LIBS
21601fi
21602{ echo "$as_me:$LINENO: result: $ac_cv_search_getsecretkey" >&5
21603echo "${ECHO_T}$ac_cv_search_getsecretkey" >&6; }
21604ac_res=$ac_cv_search_getsecretkey
21605if test "$ac_res" != no; then
21606  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21607
21608fi
21609
21610		SECURE_RPC="yes"
21611	fi
21612 fi
21613 { echo "$as_me:$LINENO: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
21614echo $ECHO_N "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... $ECHO_C" >&6; }
21615 if test "x$SECURE_RPC" = "xyes" ; then
21616
21617cat >>confdefs.h <<\_ACEOF
21618#define SECURE_RPC 1
21619_ACEOF
21620
21621 fi
21622 { echo "$as_me:$LINENO: result: $SECURE_RPC" >&5
21623echo "${ECHO_T}$SECURE_RPC" >&6; }
21624
21625
21626# Check for dlopen
21627{ echo "$as_me:$LINENO: checking if run-time linking is supported" >&5
21628echo $ECHO_N "checking if run-time linking is supported... $ECHO_C" >&6; }
21629{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21630echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
21631if test "${ac_cv_search_dlopen+set}" = set; then
21632  echo $ECHO_N "(cached) $ECHO_C" >&6
21633else
21634  ac_func_search_save_LIBS=$LIBS
21635cat >conftest.$ac_ext <<_ACEOF
21636/* confdefs.h.  */
21637_ACEOF
21638cat confdefs.h >>conftest.$ac_ext
21639cat >>conftest.$ac_ext <<_ACEOF
21640/* end confdefs.h.  */
21641
21642/* Override any GCC internal prototype to avoid an error.
21643   Use char because int might match the return type of a GCC
21644   builtin and then its argument prototype would still apply.  */
21645#ifdef __cplusplus
21646extern "C"
21647#endif
21648char dlopen ();
21649int
21650main ()
21651{
21652return dlopen ();
21653  ;
21654  return 0;
21655}
21656_ACEOF
21657for ac_lib in '' dl svld; do
21658  if test -z "$ac_lib"; then
21659    ac_res="none required"
21660  else
21661    ac_res=-l$ac_lib
21662    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21663  fi
21664  rm -f conftest.$ac_objext conftest$ac_exeext
21665if { (ac_try="$ac_link"
21666case "(($ac_try" in
21667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21668  *) ac_try_echo=$ac_try;;
21669esac
21670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21671  (eval "$ac_link") 2>conftest.er1
21672  ac_status=$?
21673  grep -v '^ *+' conftest.er1 >conftest.err
21674  rm -f conftest.er1
21675  cat conftest.err >&5
21676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677  (exit $ac_status); } && {
21678	 test -z "$ac_c_werror_flag" ||
21679	 test ! -s conftest.err
21680       } && test -s conftest$ac_exeext &&
21681       $as_test_x conftest$ac_exeext; then
21682  ac_cv_search_dlopen=$ac_res
21683else
21684  echo "$as_me: failed program was:" >&5
21685sed 's/^/| /' conftest.$ac_ext >&5
21686
21687
21688fi
21689
21690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21691      conftest$ac_exeext
21692  if test "${ac_cv_search_dlopen+set}" = set; then
21693  break
21694fi
21695done
21696if test "${ac_cv_search_dlopen+set}" = set; then
21697  :
21698else
21699  ac_cv_search_dlopen=no
21700fi
21701rm conftest.$ac_ext
21702LIBS=$ac_func_search_save_LIBS
21703fi
21704{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21705echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
21706ac_res=$ac_cv_search_dlopen
21707if test "$ac_res" != no; then
21708  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21709
21710fi
21711
21712if test "x$ac_cv_search_dlopen" = xno; then
21713	{ echo "$as_me:$LINENO: checking for library containing shl_load" >&5
21714echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
21715if test "${ac_cv_search_shl_load+set}" = set; then
21716  echo $ECHO_N "(cached) $ECHO_C" >&6
21717else
21718  ac_func_search_save_LIBS=$LIBS
21719cat >conftest.$ac_ext <<_ACEOF
21720/* confdefs.h.  */
21721_ACEOF
21722cat confdefs.h >>conftest.$ac_ext
21723cat >>conftest.$ac_ext <<_ACEOF
21724/* end confdefs.h.  */
21725
21726/* Override any GCC internal prototype to avoid an error.
21727   Use char because int might match the return type of a GCC
21728   builtin and then its argument prototype would still apply.  */
21729#ifdef __cplusplus
21730extern "C"
21731#endif
21732char shl_load ();
21733int
21734main ()
21735{
21736return shl_load ();
21737  ;
21738  return 0;
21739}
21740_ACEOF
21741for ac_lib in '' dld; do
21742  if test -z "$ac_lib"; then
21743    ac_res="none required"
21744  else
21745    ac_res=-l$ac_lib
21746    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21747  fi
21748  rm -f conftest.$ac_objext conftest$ac_exeext
21749if { (ac_try="$ac_link"
21750case "(($ac_try" in
21751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752  *) ac_try_echo=$ac_try;;
21753esac
21754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755  (eval "$ac_link") 2>conftest.er1
21756  ac_status=$?
21757  grep -v '^ *+' conftest.er1 >conftest.err
21758  rm -f conftest.er1
21759  cat conftest.err >&5
21760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761  (exit $ac_status); } && {
21762	 test -z "$ac_c_werror_flag" ||
21763	 test ! -s conftest.err
21764       } && test -s conftest$ac_exeext &&
21765       $as_test_x conftest$ac_exeext; then
21766  ac_cv_search_shl_load=$ac_res
21767else
21768  echo "$as_me: failed program was:" >&5
21769sed 's/^/| /' conftest.$ac_ext >&5
21770
21771
21772fi
21773
21774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21775      conftest$ac_exeext
21776  if test "${ac_cv_search_shl_load+set}" = set; then
21777  break
21778fi
21779done
21780if test "${ac_cv_search_shl_load+set}" = set; then
21781  :
21782else
21783  ac_cv_search_shl_load=no
21784fi
21785rm conftest.$ac_ext
21786LIBS=$ac_func_search_save_LIBS
21787fi
21788{ echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
21789echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
21790ac_res=$ac_cv_search_shl_load
21791if test "$ac_res" != no; then
21792  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21793
21794fi
21795
21796	if test "x$ac_cv_search_shl_load" != xno; then
21797
21798cat >>confdefs.h <<\_ACEOF
21799#define HAVE_SHL_LOAD 1
21800_ACEOF
21801
21802
21803for ac_header in dl.h
21804do
21805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21807  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21810  echo $ECHO_N "(cached) $ECHO_C" >&6
21811fi
21812ac_res=`eval echo '${'$as_ac_Header'}'`
21813	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21814echo "${ECHO_T}$ac_res" >&6; }
21815else
21816  # Is the header compilable?
21817{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21819cat >conftest.$ac_ext <<_ACEOF
21820/* confdefs.h.  */
21821_ACEOF
21822cat confdefs.h >>conftest.$ac_ext
21823cat >>conftest.$ac_ext <<_ACEOF
21824/* end confdefs.h.  */
21825$ac_includes_default
21826#include <$ac_header>
21827_ACEOF
21828rm -f conftest.$ac_objext
21829if { (ac_try="$ac_compile"
21830case "(($ac_try" in
21831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832  *) ac_try_echo=$ac_try;;
21833esac
21834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835  (eval "$ac_compile") 2>conftest.er1
21836  ac_status=$?
21837  grep -v '^ *+' conftest.er1 >conftest.err
21838  rm -f conftest.er1
21839  cat conftest.err >&5
21840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841  (exit $ac_status); } && {
21842	 test -z "$ac_c_werror_flag" ||
21843	 test ! -s conftest.err
21844       } && test -s conftest.$ac_objext; then
21845  ac_header_compiler=yes
21846else
21847  echo "$as_me: failed program was:" >&5
21848sed 's/^/| /' conftest.$ac_ext >&5
21849
21850	ac_header_compiler=no
21851fi
21852
21853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21855echo "${ECHO_T}$ac_header_compiler" >&6; }
21856
21857# Is the header present?
21858{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21860cat >conftest.$ac_ext <<_ACEOF
21861/* confdefs.h.  */
21862_ACEOF
21863cat confdefs.h >>conftest.$ac_ext
21864cat >>conftest.$ac_ext <<_ACEOF
21865/* end confdefs.h.  */
21866#include <$ac_header>
21867_ACEOF
21868if { (ac_try="$ac_cpp conftest.$ac_ext"
21869case "(($ac_try" in
21870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871  *) ac_try_echo=$ac_try;;
21872esac
21873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21875  ac_status=$?
21876  grep -v '^ *+' conftest.er1 >conftest.err
21877  rm -f conftest.er1
21878  cat conftest.err >&5
21879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880  (exit $ac_status); } >/dev/null && {
21881	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21882	 test ! -s conftest.err
21883       }; then
21884  ac_header_preproc=yes
21885else
21886  echo "$as_me: failed program was:" >&5
21887sed 's/^/| /' conftest.$ac_ext >&5
21888
21889  ac_header_preproc=no
21890fi
21891
21892rm -f conftest.err conftest.$ac_ext
21893{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21894echo "${ECHO_T}$ac_header_preproc" >&6; }
21895
21896# So?  What about this header?
21897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21898  yes:no: )
21899    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21901    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21903    ac_header_preproc=yes
21904    ;;
21905  no:yes:* )
21906    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21908    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21909echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21910    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21912    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21913echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21914    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21916    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21918    ( cat <<\_ASBOX
21919## ---------------------------------------------------------------------- ##
21920## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21921## ---------------------------------------------------------------------- ##
21922_ASBOX
21923     ) | sed "s/^/$as_me: WARNING:     /" >&2
21924    ;;
21925esac
21926{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21929  echo $ECHO_N "(cached) $ECHO_C" >&6
21930else
21931  eval "$as_ac_Header=\$ac_header_preproc"
21932fi
21933ac_res=`eval echo '${'$as_ac_Header'}'`
21934	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21935echo "${ECHO_T}$ac_res" >&6; }
21936
21937fi
21938if test `eval echo '${'$as_ac_Header'}'` = yes; then
21939  cat >>confdefs.h <<_ACEOF
21940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21941_ACEOF
21942
21943fi
21944
21945done
21946
21947	fi
21948else
21949
21950cat >>confdefs.h <<\_ACEOF
21951#define HAVE_DLOPEN 1
21952_ACEOF
21953
21954
21955for ac_header in dlfcn.h
21956do
21957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21962  echo $ECHO_N "(cached) $ECHO_C" >&6
21963fi
21964ac_res=`eval echo '${'$as_ac_Header'}'`
21965	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21966echo "${ECHO_T}$ac_res" >&6; }
21967else
21968  # Is the header compilable?
21969{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21971cat >conftest.$ac_ext <<_ACEOF
21972/* confdefs.h.  */
21973_ACEOF
21974cat confdefs.h >>conftest.$ac_ext
21975cat >>conftest.$ac_ext <<_ACEOF
21976/* end confdefs.h.  */
21977$ac_includes_default
21978#include <$ac_header>
21979_ACEOF
21980rm -f conftest.$ac_objext
21981if { (ac_try="$ac_compile"
21982case "(($ac_try" in
21983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984  *) ac_try_echo=$ac_try;;
21985esac
21986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987  (eval "$ac_compile") 2>conftest.er1
21988  ac_status=$?
21989  grep -v '^ *+' conftest.er1 >conftest.err
21990  rm -f conftest.er1
21991  cat conftest.err >&5
21992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993  (exit $ac_status); } && {
21994	 test -z "$ac_c_werror_flag" ||
21995	 test ! -s conftest.err
21996       } && test -s conftest.$ac_objext; then
21997  ac_header_compiler=yes
21998else
21999  echo "$as_me: failed program was:" >&5
22000sed 's/^/| /' conftest.$ac_ext >&5
22001
22002	ac_header_compiler=no
22003fi
22004
22005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007echo "${ECHO_T}$ac_header_compiler" >&6; }
22008
22009# Is the header present?
22010{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22012cat >conftest.$ac_ext <<_ACEOF
22013/* confdefs.h.  */
22014_ACEOF
22015cat confdefs.h >>conftest.$ac_ext
22016cat >>conftest.$ac_ext <<_ACEOF
22017/* end confdefs.h.  */
22018#include <$ac_header>
22019_ACEOF
22020if { (ac_try="$ac_cpp conftest.$ac_ext"
22021case "(($ac_try" in
22022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023  *) ac_try_echo=$ac_try;;
22024esac
22025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22027  ac_status=$?
22028  grep -v '^ *+' conftest.er1 >conftest.err
22029  rm -f conftest.er1
22030  cat conftest.err >&5
22031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032  (exit $ac_status); } >/dev/null && {
22033	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22034	 test ! -s conftest.err
22035       }; then
22036  ac_header_preproc=yes
22037else
22038  echo "$as_me: failed program was:" >&5
22039sed 's/^/| /' conftest.$ac_ext >&5
22040
22041  ac_header_preproc=no
22042fi
22043
22044rm -f conftest.err conftest.$ac_ext
22045{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22046echo "${ECHO_T}$ac_header_preproc" >&6; }
22047
22048# So?  What about this header?
22049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22050  yes:no: )
22051    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22053    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22055    ac_header_preproc=yes
22056    ;;
22057  no:yes:* )
22058    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22060    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22061echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22062    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22064    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22065echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22066    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22068    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22070    ( cat <<\_ASBOX
22071## ---------------------------------------------------------------------- ##
22072## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22073## ---------------------------------------------------------------------- ##
22074_ASBOX
22075     ) | sed "s/^/$as_me: WARNING:     /" >&2
22076    ;;
22077esac
22078{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22081  echo $ECHO_N "(cached) $ECHO_C" >&6
22082else
22083  eval "$as_ac_Header=\$ac_header_preproc"
22084fi
22085ac_res=`eval echo '${'$as_ac_Header'}'`
22086	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22087echo "${ECHO_T}$ac_res" >&6; }
22088
22089fi
22090if test `eval echo '${'$as_ac_Header'}'` = yes; then
22091  cat >>confdefs.h <<_ACEOF
22092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22093_ACEOF
22094
22095fi
22096
22097done
22098
22099fi
22100if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then
22101	HAVE_LOADABLE_MODULES=yes
22102else
22103	HAVE_LOADABLE_MODULES=no
22104fi
22105{ echo "$as_me:$LINENO: result: $HAVE_LOADABLE_MODULES" >&5
22106echo "${ECHO_T}$HAVE_LOADABLE_MODULES" >&6; }
22107
22108{ echo "$as_me:$LINENO: checking if loadable i18n module support should be enabled" >&5
22109echo $ECHO_N "checking if loadable i18n module support should be enabled... $ECHO_C" >&6; }
22110# Check whether --enable-loadable-i18n was given.
22111if test "${enable_loadable_i18n+set}" = set; then
22112  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
22113else
22114  XLIB_LOADABLE_I18N="no"
22115fi
22116
22117if test x$XLIB_LOADABLE_I18N = xyes; then
22118	if test x$HAVE_LOADABLE_MODULES = xno; then
22119		{ { echo "$as_me:$LINENO: error: Loadable module support is required to enable loadable i18n module support" >&5
22120echo "$as_me: error: Loadable module support is required to enable loadable i18n module support" >&2;}
22121   { (exit 1); exit 1; }; }
22122	fi
22123
22124cat >>confdefs.h <<\_ACEOF
22125#define USE_DYNAMIC_LC 1
22126_ACEOF
22127
22128	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
22129
22130fi
22131{ echo "$as_me:$LINENO: result: $XLIB_LOADABLE_I18N" >&5
22132echo "${ECHO_T}$XLIB_LOADABLE_I18N" >&6; }
22133
22134 if test x$XLIB_LOADABLE_I18N = xyes; then
22135  XLIB_LOADABLE_I18N_TRUE=
22136  XLIB_LOADABLE_I18N_FALSE='#'
22137else
22138  XLIB_LOADABLE_I18N_TRUE='#'
22139  XLIB_LOADABLE_I18N_FALSE=
22140fi
22141
22142
22143{ echo "$as_me:$LINENO: checking if loadable Xcursor library support should be enabled" >&5
22144echo $ECHO_N "checking if loadable Xcursor library support should be enabled... $ECHO_C" >&6; }
22145# Check whether --enable-loadable-xcursor was given.
22146if test "${enable_loadable_xcursor+set}" = set; then
22147  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
22148else
22149  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
22150fi
22151
22152if test x$XLIB_LOADABLE_XCURSOR = xyes; then
22153
22154cat >>confdefs.h <<\_ACEOF
22155#define USE_DYNAMIC_XCURSOR 1
22156_ACEOF
22157
22158fi
22159{ echo "$as_me:$LINENO: result: $XLIB_LOADABLE_XCURSOR" >&5
22160echo "${ECHO_T}$XLIB_LOADABLE_XCURSOR" >&6; }
22161
22162# Checks for header files.
22163{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22164echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22165if test "${ac_cv_header_stdc+set}" = set; then
22166  echo $ECHO_N "(cached) $ECHO_C" >&6
22167else
22168  cat >conftest.$ac_ext <<_ACEOF
22169/* confdefs.h.  */
22170_ACEOF
22171cat confdefs.h >>conftest.$ac_ext
22172cat >>conftest.$ac_ext <<_ACEOF
22173/* end confdefs.h.  */
22174#include <stdlib.h>
22175#include <stdarg.h>
22176#include <string.h>
22177#include <float.h>
22178
22179int
22180main ()
22181{
22182
22183  ;
22184  return 0;
22185}
22186_ACEOF
22187rm -f conftest.$ac_objext
22188if { (ac_try="$ac_compile"
22189case "(($ac_try" in
22190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191  *) ac_try_echo=$ac_try;;
22192esac
22193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194  (eval "$ac_compile") 2>conftest.er1
22195  ac_status=$?
22196  grep -v '^ *+' conftest.er1 >conftest.err
22197  rm -f conftest.er1
22198  cat conftest.err >&5
22199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200  (exit $ac_status); } && {
22201	 test -z "$ac_c_werror_flag" ||
22202	 test ! -s conftest.err
22203       } && test -s conftest.$ac_objext; then
22204  ac_cv_header_stdc=yes
22205else
22206  echo "$as_me: failed program was:" >&5
22207sed 's/^/| /' conftest.$ac_ext >&5
22208
22209	ac_cv_header_stdc=no
22210fi
22211
22212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213
22214if test $ac_cv_header_stdc = yes; then
22215  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22216  cat >conftest.$ac_ext <<_ACEOF
22217/* confdefs.h.  */
22218_ACEOF
22219cat confdefs.h >>conftest.$ac_ext
22220cat >>conftest.$ac_ext <<_ACEOF
22221/* end confdefs.h.  */
22222#include <string.h>
22223
22224_ACEOF
22225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22226  $EGREP "memchr" >/dev/null 2>&1; then
22227  :
22228else
22229  ac_cv_header_stdc=no
22230fi
22231rm -f conftest*
22232
22233fi
22234
22235if test $ac_cv_header_stdc = yes; then
22236  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22237  cat >conftest.$ac_ext <<_ACEOF
22238/* confdefs.h.  */
22239_ACEOF
22240cat confdefs.h >>conftest.$ac_ext
22241cat >>conftest.$ac_ext <<_ACEOF
22242/* end confdefs.h.  */
22243#include <stdlib.h>
22244
22245_ACEOF
22246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22247  $EGREP "free" >/dev/null 2>&1; then
22248  :
22249else
22250  ac_cv_header_stdc=no
22251fi
22252rm -f conftest*
22253
22254fi
22255
22256if test $ac_cv_header_stdc = yes; then
22257  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22258  if test "$cross_compiling" = yes; then
22259  :
22260else
22261  cat >conftest.$ac_ext <<_ACEOF
22262/* confdefs.h.  */
22263_ACEOF
22264cat confdefs.h >>conftest.$ac_ext
22265cat >>conftest.$ac_ext <<_ACEOF
22266/* end confdefs.h.  */
22267#include <ctype.h>
22268#include <stdlib.h>
22269#if ((' ' & 0x0FF) == 0x020)
22270# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22271# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22272#else
22273# define ISLOWER(c) \
22274		   (('a' <= (c) && (c) <= 'i') \
22275		     || ('j' <= (c) && (c) <= 'r') \
22276		     || ('s' <= (c) && (c) <= 'z'))
22277# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22278#endif
22279
22280#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22281int
22282main ()
22283{
22284  int i;
22285  for (i = 0; i < 256; i++)
22286    if (XOR (islower (i), ISLOWER (i))
22287	|| toupper (i) != TOUPPER (i))
22288      return 2;
22289  return 0;
22290}
22291_ACEOF
22292rm -f conftest$ac_exeext
22293if { (ac_try="$ac_link"
22294case "(($ac_try" in
22295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296  *) ac_try_echo=$ac_try;;
22297esac
22298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299  (eval "$ac_link") 2>&5
22300  ac_status=$?
22301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22303  { (case "(($ac_try" in
22304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305  *) ac_try_echo=$ac_try;;
22306esac
22307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308  (eval "$ac_try") 2>&5
22309  ac_status=$?
22310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311  (exit $ac_status); }; }; then
22312  :
22313else
22314  echo "$as_me: program exited with status $ac_status" >&5
22315echo "$as_me: failed program was:" >&5
22316sed 's/^/| /' conftest.$ac_ext >&5
22317
22318( exit $ac_status )
22319ac_cv_header_stdc=no
22320fi
22321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22322fi
22323
22324
22325fi
22326fi
22327{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22328echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22329if test $ac_cv_header_stdc = yes; then
22330
22331cat >>confdefs.h <<\_ACEOF
22332#define STDC_HEADERS 1
22333_ACEOF
22334
22335fi
22336
22337
22338# Checks for typedefs, structures, and compiler characteristics.
22339
22340# Checks for library functions.
22341
22342for ac_func in strtol
22343do
22344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22345{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22347if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22348  echo $ECHO_N "(cached) $ECHO_C" >&6
22349else
22350  cat >conftest.$ac_ext <<_ACEOF
22351/* confdefs.h.  */
22352_ACEOF
22353cat confdefs.h >>conftest.$ac_ext
22354cat >>conftest.$ac_ext <<_ACEOF
22355/* end confdefs.h.  */
22356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22357   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22358#define $ac_func innocuous_$ac_func
22359
22360/* System header to define __stub macros and hopefully few prototypes,
22361    which can conflict with char $ac_func (); below.
22362    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22363    <limits.h> exists even on freestanding compilers.  */
22364
22365#ifdef __STDC__
22366# include <limits.h>
22367#else
22368# include <assert.h>
22369#endif
22370
22371#undef $ac_func
22372
22373/* Override any GCC internal prototype to avoid an error.
22374   Use char because int might match the return type of a GCC
22375   builtin and then its argument prototype would still apply.  */
22376#ifdef __cplusplus
22377extern "C"
22378#endif
22379char $ac_func ();
22380/* The GNU C library defines this for functions which it implements
22381    to always fail with ENOSYS.  Some functions are actually named
22382    something starting with __ and the normal name is an alias.  */
22383#if defined __stub_$ac_func || defined __stub___$ac_func
22384choke me
22385#endif
22386
22387int
22388main ()
22389{
22390return $ac_func ();
22391  ;
22392  return 0;
22393}
22394_ACEOF
22395rm -f conftest.$ac_objext conftest$ac_exeext
22396if { (ac_try="$ac_link"
22397case "(($ac_try" in
22398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399  *) ac_try_echo=$ac_try;;
22400esac
22401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402  (eval "$ac_link") 2>conftest.er1
22403  ac_status=$?
22404  grep -v '^ *+' conftest.er1 >conftest.err
22405  rm -f conftest.er1
22406  cat conftest.err >&5
22407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408  (exit $ac_status); } && {
22409	 test -z "$ac_c_werror_flag" ||
22410	 test ! -s conftest.err
22411       } && test -s conftest$ac_exeext &&
22412       $as_test_x conftest$ac_exeext; then
22413  eval "$as_ac_var=yes"
22414else
22415  echo "$as_me: failed program was:" >&5
22416sed 's/^/| /' conftest.$ac_ext >&5
22417
22418	eval "$as_ac_var=no"
22419fi
22420
22421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22422      conftest$ac_exeext conftest.$ac_ext
22423fi
22424ac_res=`eval echo '${'$as_ac_var'}'`
22425	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22426echo "${ECHO_T}$ac_res" >&6; }
22427if test `eval echo '${'$as_ac_var'}'` = yes; then
22428  cat >>confdefs.h <<_ACEOF
22429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22430_ACEOF
22431
22432fi
22433done
22434
22435# Used in lcFile.c (see also --enable-xlocaledir settings below)
22436XLOCALEDIR_IS_SAFE="no"
22437{ echo "$as_me:$LINENO: checking for issetugid" >&5
22438echo $ECHO_N "checking for issetugid... $ECHO_C" >&6; }
22439if test "${ac_cv_func_issetugid+set}" = set; then
22440  echo $ECHO_N "(cached) $ECHO_C" >&6
22441else
22442  cat >conftest.$ac_ext <<_ACEOF
22443/* confdefs.h.  */
22444_ACEOF
22445cat confdefs.h >>conftest.$ac_ext
22446cat >>conftest.$ac_ext <<_ACEOF
22447/* end confdefs.h.  */
22448/* Define issetugid to an innocuous variant, in case <limits.h> declares issetugid.
22449   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22450#define issetugid innocuous_issetugid
22451
22452/* System header to define __stub macros and hopefully few prototypes,
22453    which can conflict with char issetugid (); below.
22454    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22455    <limits.h> exists even on freestanding compilers.  */
22456
22457#ifdef __STDC__
22458# include <limits.h>
22459#else
22460# include <assert.h>
22461#endif
22462
22463#undef issetugid
22464
22465/* Override any GCC internal prototype to avoid an error.
22466   Use char because int might match the return type of a GCC
22467   builtin and then its argument prototype would still apply.  */
22468#ifdef __cplusplus
22469extern "C"
22470#endif
22471char issetugid ();
22472/* The GNU C library defines this for functions which it implements
22473    to always fail with ENOSYS.  Some functions are actually named
22474    something starting with __ and the normal name is an alias.  */
22475#if defined __stub_issetugid || defined __stub___issetugid
22476choke me
22477#endif
22478
22479int
22480main ()
22481{
22482return issetugid ();
22483  ;
22484  return 0;
22485}
22486_ACEOF
22487rm -f conftest.$ac_objext conftest$ac_exeext
22488if { (ac_try="$ac_link"
22489case "(($ac_try" in
22490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491  *) ac_try_echo=$ac_try;;
22492esac
22493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494  (eval "$ac_link") 2>conftest.er1
22495  ac_status=$?
22496  grep -v '^ *+' conftest.er1 >conftest.err
22497  rm -f conftest.er1
22498  cat conftest.err >&5
22499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500  (exit $ac_status); } && {
22501	 test -z "$ac_c_werror_flag" ||
22502	 test ! -s conftest.err
22503       } && test -s conftest$ac_exeext &&
22504       $as_test_x conftest$ac_exeext; then
22505  ac_cv_func_issetugid=yes
22506else
22507  echo "$as_me: failed program was:" >&5
22508sed 's/^/| /' conftest.$ac_ext >&5
22509
22510	ac_cv_func_issetugid=no
22511fi
22512
22513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22514      conftest$ac_exeext conftest.$ac_ext
22515fi
22516{ echo "$as_me:$LINENO: result: $ac_cv_func_issetugid" >&5
22517echo "${ECHO_T}$ac_cv_func_issetugid" >&6; }
22518if test $ac_cv_func_issetugid = yes; then
22519  XLOCALEDIR_IS_SAFE="yes"
22520
22521cat >>confdefs.h <<\_ACEOF
22522#define HASSETUGID 1
22523_ACEOF
22524
22525fi
22526
22527{ echo "$as_me:$LINENO: checking for getresuid" >&5
22528echo $ECHO_N "checking for getresuid... $ECHO_C" >&6; }
22529if test "${ac_cv_func_getresuid+set}" = set; then
22530  echo $ECHO_N "(cached) $ECHO_C" >&6
22531else
22532  cat >conftest.$ac_ext <<_ACEOF
22533/* confdefs.h.  */
22534_ACEOF
22535cat confdefs.h >>conftest.$ac_ext
22536cat >>conftest.$ac_ext <<_ACEOF
22537/* end confdefs.h.  */
22538/* Define getresuid to an innocuous variant, in case <limits.h> declares getresuid.
22539   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22540#define getresuid innocuous_getresuid
22541
22542/* System header to define __stub macros and hopefully few prototypes,
22543    which can conflict with char getresuid (); below.
22544    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22545    <limits.h> exists even on freestanding compilers.  */
22546
22547#ifdef __STDC__
22548# include <limits.h>
22549#else
22550# include <assert.h>
22551#endif
22552
22553#undef getresuid
22554
22555/* Override any GCC internal prototype to avoid an error.
22556   Use char because int might match the return type of a GCC
22557   builtin and then its argument prototype would still apply.  */
22558#ifdef __cplusplus
22559extern "C"
22560#endif
22561char getresuid ();
22562/* The GNU C library defines this for functions which it implements
22563    to always fail with ENOSYS.  Some functions are actually named
22564    something starting with __ and the normal name is an alias.  */
22565#if defined __stub_getresuid || defined __stub___getresuid
22566choke me
22567#endif
22568
22569int
22570main ()
22571{
22572return getresuid ();
22573  ;
22574  return 0;
22575}
22576_ACEOF
22577rm -f conftest.$ac_objext conftest$ac_exeext
22578if { (ac_try="$ac_link"
22579case "(($ac_try" in
22580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581  *) ac_try_echo=$ac_try;;
22582esac
22583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584  (eval "$ac_link") 2>conftest.er1
22585  ac_status=$?
22586  grep -v '^ *+' conftest.er1 >conftest.err
22587  rm -f conftest.er1
22588  cat conftest.err >&5
22589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590  (exit $ac_status); } && {
22591	 test -z "$ac_c_werror_flag" ||
22592	 test ! -s conftest.err
22593       } && test -s conftest$ac_exeext &&
22594       $as_test_x conftest$ac_exeext; then
22595  ac_cv_func_getresuid=yes
22596else
22597  echo "$as_me: failed program was:" >&5
22598sed 's/^/| /' conftest.$ac_ext >&5
22599
22600	ac_cv_func_getresuid=no
22601fi
22602
22603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22604      conftest$ac_exeext conftest.$ac_ext
22605fi
22606{ echo "$as_me:$LINENO: result: $ac_cv_func_getresuid" >&5
22607echo "${ECHO_T}$ac_cv_func_getresuid" >&6; }
22608if test $ac_cv_func_getresuid = yes; then
22609  XLOCALEDIR_IS_SAFE="yes"
22610
22611cat >>confdefs.h <<\_ACEOF
22612#define HASGETRESUID 1
22613_ACEOF
22614
22615fi
22616
22617# Used in Font.c
22618{ echo "$as_me:$LINENO: checking for shmat" >&5
22619echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
22620if test "${ac_cv_func_shmat+set}" = set; then
22621  echo $ECHO_N "(cached) $ECHO_C" >&6
22622else
22623  cat >conftest.$ac_ext <<_ACEOF
22624/* confdefs.h.  */
22625_ACEOF
22626cat confdefs.h >>conftest.$ac_ext
22627cat >>conftest.$ac_ext <<_ACEOF
22628/* end confdefs.h.  */
22629/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22630   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22631#define shmat innocuous_shmat
22632
22633/* System header to define __stub macros and hopefully few prototypes,
22634    which can conflict with char shmat (); below.
22635    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22636    <limits.h> exists even on freestanding compilers.  */
22637
22638#ifdef __STDC__
22639# include <limits.h>
22640#else
22641# include <assert.h>
22642#endif
22643
22644#undef shmat
22645
22646/* Override any GCC internal prototype to avoid an error.
22647   Use char because int might match the return type of a GCC
22648   builtin and then its argument prototype would still apply.  */
22649#ifdef __cplusplus
22650extern "C"
22651#endif
22652char shmat ();
22653/* The GNU C library defines this for functions which it implements
22654    to always fail with ENOSYS.  Some functions are actually named
22655    something starting with __ and the normal name is an alias.  */
22656#if defined __stub_shmat || defined __stub___shmat
22657choke me
22658#endif
22659
22660int
22661main ()
22662{
22663return shmat ();
22664  ;
22665  return 0;
22666}
22667_ACEOF
22668rm -f conftest.$ac_objext conftest$ac_exeext
22669if { (ac_try="$ac_link"
22670case "(($ac_try" in
22671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672  *) ac_try_echo=$ac_try;;
22673esac
22674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675  (eval "$ac_link") 2>conftest.er1
22676  ac_status=$?
22677  grep -v '^ *+' conftest.er1 >conftest.err
22678  rm -f conftest.er1
22679  cat conftest.err >&5
22680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681  (exit $ac_status); } && {
22682	 test -z "$ac_c_werror_flag" ||
22683	 test ! -s conftest.err
22684       } && test -s conftest$ac_exeext &&
22685       $as_test_x conftest$ac_exeext; then
22686  ac_cv_func_shmat=yes
22687else
22688  echo "$as_me: failed program was:" >&5
22689sed 's/^/| /' conftest.$ac_ext >&5
22690
22691	ac_cv_func_shmat=no
22692fi
22693
22694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22695      conftest$ac_exeext conftest.$ac_ext
22696fi
22697{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22698echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
22699if test $ac_cv_func_shmat = yes; then
22700
22701cat >>confdefs.h <<\_ACEOF
22702#define HAS_SHM 1
22703_ACEOF
22704
22705fi
22706
22707
22708# Checks for system services
22709
22710# arch specific things
22711WCHAR32="1"
22712case $target_alias in
22713  *os2*) os2="true" ; WCHAR32="0" ;;
22714  *) ;;
22715esac
22716
22717
22718 if test x$os2 = xtrue; then
22719  OS2_TRUE=
22720  OS2_FALSE='#'
22721else
22722  OS2_TRUE='#'
22723  OS2_FALSE=
22724fi
22725
22726
22727
22728# Check whether --with-launchd was given.
22729if test "${with_launchd+set}" = set; then
22730  withval=$with_launchd; LAUNCHD=$withval
22731else
22732  LAUNCHD=auto
22733fi
22734
22735if test "x$LAUNCHD" = xauto; then
22736	unset LAUNCHD
22737	# Extract the first word of "launchd", so it can be a program name with args.
22738set dummy launchd; ac_word=$2
22739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22741if test "${ac_cv_prog_LAUNCHD+set}" = set; then
22742  echo $ECHO_N "(cached) $ECHO_C" >&6
22743else
22744  if test -n "$LAUNCHD"; then
22745  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
22746else
22747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22748for as_dir in $PATH
22749do
22750  IFS=$as_save_IFS
22751  test -z "$as_dir" && as_dir=.
22752  for ac_exec_ext in '' $ac_executable_extensions; do
22753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22754    ac_cv_prog_LAUNCHD="yes"
22755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22756    break 2
22757  fi
22758done
22759done
22760IFS=$as_save_IFS
22761
22762  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
22763fi
22764fi
22765LAUNCHD=$ac_cv_prog_LAUNCHD
22766if test -n "$LAUNCHD"; then
22767  { echo "$as_me:$LINENO: result: $LAUNCHD" >&5
22768echo "${ECHO_T}$LAUNCHD" >&6; }
22769else
22770  { echo "$as_me:$LINENO: result: no" >&5
22771echo "${ECHO_T}no" >&6; }
22772fi
22773
22774
22775fi
22776
22777if test "x$LAUNCHD" = xyes ; then
22778
22779cat >>confdefs.h <<\_ACEOF
22780#define HAVE_LAUNCHD 1
22781_ACEOF
22782
22783
22784cat >>confdefs.h <<\_ACEOF
22785#define TRANS_REOPEN 1
22786_ACEOF
22787
22788fi
22789
22790# Check whether --enable-xthreads was given.
22791if test "${enable_xthreads+set}" = set; then
22792  enableval=$enable_xthreads; xthreads=$enableval
22793else
22794  xthreads=yes
22795fi
22796
22797
22798{ echo "$as_me:$LINENO: checking for getpwuid_r in -lc" >&5
22799echo $ECHO_N "checking for getpwuid_r in -lc... $ECHO_C" >&6; }
22800if test "${ac_cv_lib_c_getpwuid_r+set}" = set; then
22801  echo $ECHO_N "(cached) $ECHO_C" >&6
22802else
22803  ac_check_lib_save_LIBS=$LIBS
22804LIBS="-lc  $LIBS"
22805cat >conftest.$ac_ext <<_ACEOF
22806/* confdefs.h.  */
22807_ACEOF
22808cat confdefs.h >>conftest.$ac_ext
22809cat >>conftest.$ac_ext <<_ACEOF
22810/* end confdefs.h.  */
22811
22812/* Override any GCC internal prototype to avoid an error.
22813   Use char because int might match the return type of a GCC
22814   builtin and then its argument prototype would still apply.  */
22815#ifdef __cplusplus
22816extern "C"
22817#endif
22818char getpwuid_r ();
22819int
22820main ()
22821{
22822return getpwuid_r ();
22823  ;
22824  return 0;
22825}
22826_ACEOF
22827rm -f conftest.$ac_objext conftest$ac_exeext
22828if { (ac_try="$ac_link"
22829case "(($ac_try" in
22830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831  *) ac_try_echo=$ac_try;;
22832esac
22833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834  (eval "$ac_link") 2>conftest.er1
22835  ac_status=$?
22836  grep -v '^ *+' conftest.er1 >conftest.err
22837  rm -f conftest.er1
22838  cat conftest.err >&5
22839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840  (exit $ac_status); } && {
22841	 test -z "$ac_c_werror_flag" ||
22842	 test ! -s conftest.err
22843       } && test -s conftest$ac_exeext &&
22844       $as_test_x conftest$ac_exeext; then
22845  ac_cv_lib_c_getpwuid_r=yes
22846else
22847  echo "$as_me: failed program was:" >&5
22848sed 's/^/| /' conftest.$ac_ext >&5
22849
22850	ac_cv_lib_c_getpwuid_r=no
22851fi
22852
22853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22854      conftest$ac_exeext conftest.$ac_ext
22855LIBS=$ac_check_lib_save_LIBS
22856fi
22857{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpwuid_r" >&5
22858echo "${ECHO_T}$ac_cv_lib_c_getpwuid_r" >&6; }
22859if test $ac_cv_lib_c_getpwuid_r = yes; then
22860  mtsafeapi="yes"
22861else
22862  mtsafeapi="no"
22863fi
22864
22865
22866case x$xthreads in
22867xyes)
22868
22869cat >>confdefs.h <<\_ACEOF
22870#define XTHREADS
22871_ACEOF
22872
22873	if test x$mtsafeapi = xyes
22874	then
22875
22876cat >>confdefs.h <<\_ACEOF
22877#define XUSE_MTSAFE_API
22878_ACEOF
22879
22880	fi
22881	;;
22882*)
22883	;;
22884esac
22885
22886
22887
22888{ echo "$as_me:$LINENO: checking for pthread_self in -lc" >&5
22889echo $ECHO_N "checking for pthread_self in -lc... $ECHO_C" >&6; }
22890if test "${ac_cv_lib_c_pthread_self+set}" = set; then
22891  echo $ECHO_N "(cached) $ECHO_C" >&6
22892else
22893  ac_check_lib_save_LIBS=$LIBS
22894LIBS="-lc  $LIBS"
22895cat >conftest.$ac_ext <<_ACEOF
22896/* confdefs.h.  */
22897_ACEOF
22898cat confdefs.h >>conftest.$ac_ext
22899cat >>conftest.$ac_ext <<_ACEOF
22900/* end confdefs.h.  */
22901
22902/* Override any GCC internal prototype to avoid an error.
22903   Use char because int might match the return type of a GCC
22904   builtin and then its argument prototype would still apply.  */
22905#ifdef __cplusplus
22906extern "C"
22907#endif
22908char pthread_self ();
22909int
22910main ()
22911{
22912return pthread_self ();
22913  ;
22914  return 0;
22915}
22916_ACEOF
22917rm -f conftest.$ac_objext conftest$ac_exeext
22918if { (ac_try="$ac_link"
22919case "(($ac_try" in
22920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921  *) ac_try_echo=$ac_try;;
22922esac
22923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924  (eval "$ac_link") 2>conftest.er1
22925  ac_status=$?
22926  grep -v '^ *+' conftest.er1 >conftest.err
22927  rm -f conftest.er1
22928  cat conftest.err >&5
22929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930  (exit $ac_status); } && {
22931	 test -z "$ac_c_werror_flag" ||
22932	 test ! -s conftest.err
22933       } && test -s conftest$ac_exeext &&
22934       $as_test_x conftest$ac_exeext; then
22935  ac_cv_lib_c_pthread_self=yes
22936else
22937  echo "$as_me: failed program was:" >&5
22938sed 's/^/| /' conftest.$ac_ext >&5
22939
22940	ac_cv_lib_c_pthread_self=no
22941fi
22942
22943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22944      conftest$ac_exeext conftest.$ac_ext
22945LIBS=$ac_check_lib_save_LIBS
22946fi
22947{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_self" >&5
22948echo "${ECHO_T}$ac_cv_lib_c_pthread_self" >&6; }
22949if test $ac_cv_lib_c_pthread_self = yes; then
22950  thrstubs="no"
22951else
22952  thrstubs="yes"
22953fi
22954
22955 if test x$thrstubs = xyes; then
22956  THRSTUBS_TRUE=
22957  THRSTUBS_FALSE='#'
22958else
22959  THRSTUBS_TRUE='#'
22960  THRSTUBS_FALSE=
22961fi
22962
22963
22964if test x$xthreads = xyes ; then
22965    case $host_os in
22966    linux*|openbsd*|gnu*|k*bsd*-gnu)
22967        XTHREADLIB=-lpthread ;;
22968    netbsd*)
22969	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
22970	XTHREADLIB="-lpthread" ;;
22971    freebsd*)
22972        XTHREAD_CFLAGS="-D_THREAD_SAFE"
22973        XTHREADLIB="-pthread" ;;
22974    dragonfly*)
22975        XTHREADLIB="-pthread" ;;
22976    solaris*)
22977	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
22978    esac
22979fi
22980
22981
22982X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
22983
22984case x$xdmauth in
22985xyes)
22986	XDMCP_CFLAGS="$XDMCP_CFLAGS -DHASXDMAUTH"
22987	;;
22988xno)
22989	XDMCP_LIBS=""
22990	;;
22991esac
22992
22993
22994
22995{ echo "$as_me:$LINENO: checking for poll" >&5
22996echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
22997if test "${ac_cv_func_poll+set}" = set; then
22998  echo $ECHO_N "(cached) $ECHO_C" >&6
22999else
23000  cat >conftest.$ac_ext <<_ACEOF
23001/* confdefs.h.  */
23002_ACEOF
23003cat confdefs.h >>conftest.$ac_ext
23004cat >>conftest.$ac_ext <<_ACEOF
23005/* end confdefs.h.  */
23006/* Define poll to an innocuous variant, in case <limits.h> declares poll.
23007   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23008#define poll innocuous_poll
23009
23010/* System header to define __stub macros and hopefully few prototypes,
23011    which can conflict with char poll (); below.
23012    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23013    <limits.h> exists even on freestanding compilers.  */
23014
23015#ifdef __STDC__
23016# include <limits.h>
23017#else
23018# include <assert.h>
23019#endif
23020
23021#undef poll
23022
23023/* Override any GCC internal prototype to avoid an error.
23024   Use char because int might match the return type of a GCC
23025   builtin and then its argument prototype would still apply.  */
23026#ifdef __cplusplus
23027extern "C"
23028#endif
23029char poll ();
23030/* The GNU C library defines this for functions which it implements
23031    to always fail with ENOSYS.  Some functions are actually named
23032    something starting with __ and the normal name is an alias.  */
23033#if defined __stub_poll || defined __stub___poll
23034choke me
23035#endif
23036
23037int
23038main ()
23039{
23040return poll ();
23041  ;
23042  return 0;
23043}
23044_ACEOF
23045rm -f conftest.$ac_objext conftest$ac_exeext
23046if { (ac_try="$ac_link"
23047case "(($ac_try" in
23048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049  *) ac_try_echo=$ac_try;;
23050esac
23051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052  (eval "$ac_link") 2>conftest.er1
23053  ac_status=$?
23054  grep -v '^ *+' conftest.er1 >conftest.err
23055  rm -f conftest.er1
23056  cat conftest.err >&5
23057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058  (exit $ac_status); } && {
23059	 test -z "$ac_c_werror_flag" ||
23060	 test ! -s conftest.err
23061       } && test -s conftest$ac_exeext &&
23062       $as_test_x conftest$ac_exeext; then
23063  ac_cv_func_poll=yes
23064else
23065  echo "$as_me: failed program was:" >&5
23066sed 's/^/| /' conftest.$ac_ext >&5
23067
23068	ac_cv_func_poll=no
23069fi
23070
23071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23072      conftest$ac_exeext conftest.$ac_ext
23073fi
23074{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
23075echo "${ECHO_T}$ac_cv_func_poll" >&6; }
23076if test $ac_cv_func_poll = yes; then
23077
23078cat >>confdefs.h <<\_ACEOF
23079#define USE_POLL 1
23080_ACEOF
23081
23082fi
23083
23084
23085#
23086# Find keysymdef.h
23087#
23088KEYSYMDEF=""
23089{ echo "$as_me:$LINENO: checking keysymdef.h" >&5
23090echo $ECHO_N "checking keysymdef.h... $ECHO_C" >&6; }
23091for flag in $XPROTO_CFLAGS -I/usr/include; do
23092	case "$KEYSYMDEF" in
23093	"")
23094		case "$flag" in
23095		*-I*)
23096			dir=`echo "$flag" | sed 's/ *-I//'`
23097			file="$dir/X11/keysymdef.h"
23098			if test -f "$file"; then
23099				KEYSYMDEF="$file"
23100			fi
23101			;;
23102		esac
23103		;;
23104	esac
23105done
23106case "$KEYSYMDEF" in
23107"")
23108	{ { echo "$as_me:$LINENO: error: Cannot find keysymdef.h" >&5
23109echo "$as_me: error: Cannot find keysymdef.h" >&2;}
23110   { (exit 1); exit 1; }; }
23111	;;
23112*)
23113	{ echo "$as_me:$LINENO: result: $KEYSYMDEF" >&5
23114echo "${ECHO_T}$KEYSYMDEF" >&6; }
23115        ;;
23116esac
23117
23118
23119 if test xfalse = xtrue; then
23120  UDC_TRUE=
23121  UDC_FALSE='#'
23122else
23123  UDC_TRUE='#'
23124  UDC_FALSE=
23125fi
23126
23127
23128# Check whether --enable-xcms was given.
23129if test "${enable_xcms+set}" = set; then
23130  enableval=$enable_xcms; XCMS=$enableval
23131else
23132  XCMS=yes
23133fi
23134
23135 if test x$XCMS = xyes ; then
23136  XCMS_TRUE=
23137  XCMS_FALSE='#'
23138else
23139  XCMS_TRUE='#'
23140  XCMS_FALSE=
23141fi
23142
23143if test x"$XCMS" = "xyes"; then
23144
23145cat >>confdefs.h <<\_ACEOF
23146#define XCMS 1
23147_ACEOF
23148
23149fi
23150
23151# Check whether --enable-xlocale was given.
23152if test "${enable_xlocale+set}" = set; then
23153  enableval=$enable_xlocale; XLOCALE=$enableval
23154else
23155  XLOCALE=yes
23156fi
23157
23158
23159 if  test x$XLOCALE = xyes ; then
23160  XLOCALE_TRUE=
23161  XLOCALE_FALSE='#'
23162else
23163  XLOCALE_TRUE='#'
23164  XLOCALE_FALSE=
23165fi
23166
23167if test x"$XLOCALE" = "xyes"; then
23168
23169cat >>confdefs.h <<\_ACEOF
23170#define XLOCALE 1
23171_ACEOF
23172
23173fi
23174
23175# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
23176# don't have either issetugid() or getresuid(), and you need to protect
23177# clients that are setgid or setuid to an id other than 0.
23178{ echo "$as_me:$LINENO: checking if XLOCALEDIR support should be enabled" >&5
23179echo $ECHO_N "checking if XLOCALEDIR support should be enabled... $ECHO_C" >&6; }
23180# Check whether --enable-xlocaledir was given.
23181if test "${enable_xlocaledir+set}" = set; then
23182  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
23183else
23184  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
23185fi
23186
23187if test "x$ENABLE_XLOCALEDIR" = "xno"; then
23188
23189cat >>confdefs.h <<\_ACEOF
23190#define NO_XLOCALEDIR 1
23191_ACEOF
23192
23193fi
23194{ echo "$as_me:$LINENO: result: $ENABLE_XLOCALEDIR" >&5
23195echo "${ECHO_T}$ENABLE_XLOCALEDIR" >&6; }
23196
23197# Check whether --enable-xf86bigfont was given.
23198if test "${enable_xf86bigfont+set}" = set; then
23199  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
23200else
23201  XF86BIGFONT="yes"
23202fi
23203
23204if test "x$XF86BIGFONT" = "xyes"; then
23205
23206pkg_failed=no
23207{ echo "$as_me:$LINENO: checking for BIGFONT" >&5
23208echo $ECHO_N "checking for BIGFONT... $ECHO_C" >&6; }
23209
23210if test -n "$BIGFONT_CFLAGS"; then
23211    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
23212 elif test -n "$PKG_CONFIG"; then
23213    if test -n "$PKG_CONFIG" && \
23214    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\"") >&5
23215  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5
23216  ac_status=$?
23217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218  (exit $ac_status); }; then
23219  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto" 2>/dev/null`
23220else
23221  pkg_failed=yes
23222fi
23223 else
23224    pkg_failed=untried
23225fi
23226if test -n "$BIGFONT_LIBS"; then
23227    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
23228 elif test -n "$PKG_CONFIG"; then
23229    if test -n "$PKG_CONFIG" && \
23230    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\"") >&5
23231  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5
23232  ac_status=$?
23233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234  (exit $ac_status); }; then
23235  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto" 2>/dev/null`
23236else
23237  pkg_failed=yes
23238fi
23239 else
23240    pkg_failed=untried
23241fi
23242
23243
23244
23245if test $pkg_failed = yes; then
23246
23247if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23248        _pkg_short_errors_supported=yes
23249else
23250        _pkg_short_errors_supported=no
23251fi
23252        if test $_pkg_short_errors_supported = yes; then
23253	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto" 2>&1`
23254        else
23255	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto" 2>&1`
23256        fi
23257	# Put the nasty error message in config.log where it belongs
23258	echo "$BIGFONT_PKG_ERRORS" >&5
23259
23260	{ echo "$as_me:$LINENO: result: no" >&5
23261echo "${ECHO_T}no" >&6; }
23262                XF86BIGFONT="no"
23263elif test $pkg_failed = untried; then
23264	XF86BIGFONT="no"
23265else
23266	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
23267	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
23268        { echo "$as_me:$LINENO: result: yes" >&5
23269echo "${ECHO_T}yes" >&6; }
23270
23271cat >>confdefs.h <<\_ACEOF
23272#define XF86BIGFONT 1
23273_ACEOF
23274
23275fi
23276
23277
23278fi
23279
23280# Check whether --enable-xkb was given.
23281if test "${enable_xkb+set}" = set; then
23282  enableval=$enable_xkb; XKB=$enableval
23283else
23284  XKB=yes
23285fi
23286
23287
23288
23289
23290
23291if test x$APP_MAN_SUFFIX = x    ; then
23292    APP_MAN_SUFFIX=1
23293fi
23294if test x$APP_MAN_DIR = x    ; then
23295    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
23296fi
23297
23298if test x$LIB_MAN_SUFFIX = x    ; then
23299    LIB_MAN_SUFFIX=3
23300fi
23301if test x$LIB_MAN_DIR = x    ; then
23302    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
23303fi
23304
23305if test x$FILE_MAN_SUFFIX = x    ; then
23306    case $host_os in
23307	solaris*)	FILE_MAN_SUFFIX=4  ;;
23308	*)		FILE_MAN_SUFFIX=5  ;;
23309    esac
23310fi
23311if test x$FILE_MAN_DIR = x    ; then
23312    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
23313fi
23314
23315if test x$MISC_MAN_SUFFIX = x    ; then
23316    case $host_os in
23317	solaris*)	MISC_MAN_SUFFIX=5  ;;
23318	*)		MISC_MAN_SUFFIX=7  ;;
23319    esac
23320fi
23321if test x$MISC_MAN_DIR = x    ; then
23322    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
23323fi
23324
23325if test x$DRIVER_MAN_SUFFIX = x    ; then
23326    case $host_os in
23327	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
23328	*)		DRIVER_MAN_SUFFIX=4  ;;
23329    esac
23330fi
23331if test x$DRIVER_MAN_DIR = x    ; then
23332    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
23333fi
23334
23335if test x$ADMIN_MAN_SUFFIX = x    ; then
23336    case $host_os in
23337	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
23338	*)		ADMIN_MAN_SUFFIX=8  ;;
23339    esac
23340fi
23341if test x$ADMIN_MAN_DIR = x    ; then
23342    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
23343fi
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360# Check whether --enable-man-pages was given.
23361if test "${enable_man_pages+set}" = set; then
23362  enableval=$enable_man_pages; LIBMAN=$enableval
23363else
23364  LIBMAN=yes
23365fi
23366
23367
23368if test "x$LIBMAN" != "xyes"; then
23369	LIB_MAN_SUFFIX=$LIBMAN
23370fi
23371
23372 if  test x$LIBMAN '!=' xno ; then
23373  MANPAGES_TRUE=
23374  MANPAGES_FALSE='#'
23375else
23376  MANPAGES_TRUE='#'
23377  MANPAGES_FALSE=
23378fi
23379
23380
23381 if  test x$XKB = xyes ; then
23382  XKB_TRUE=
23383  XKB_FALSE='#'
23384else
23385  XKB_TRUE='#'
23386  XKB_FALSE=
23387fi
23388
23389if test x"$XKB" = "xyes"; then
23390   XKBPROTO_REQUIRES="kbproto"
23391
23392pkg_failed=no
23393{ echo "$as_me:$LINENO: checking for XKBPROTO" >&5
23394echo $ECHO_N "checking for XKBPROTO... $ECHO_C" >&6; }
23395
23396if test -n "$XKBPROTO_CFLAGS"; then
23397    pkg_cv_XKBPROTO_CFLAGS="$XKBPROTO_CFLAGS"
23398 elif test -n "$PKG_CONFIG"; then
23399    if test -n "$PKG_CONFIG" && \
23400    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"kbproto inputproto\"") >&5
23401  ($PKG_CONFIG --exists --print-errors "kbproto inputproto") 2>&5
23402  ac_status=$?
23403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404  (exit $ac_status); }; then
23405  pkg_cv_XKBPROTO_CFLAGS=`$PKG_CONFIG --cflags "kbproto inputproto" 2>/dev/null`
23406else
23407  pkg_failed=yes
23408fi
23409 else
23410    pkg_failed=untried
23411fi
23412if test -n "$XKBPROTO_LIBS"; then
23413    pkg_cv_XKBPROTO_LIBS="$XKBPROTO_LIBS"
23414 elif test -n "$PKG_CONFIG"; then
23415    if test -n "$PKG_CONFIG" && \
23416    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"kbproto inputproto\"") >&5
23417  ($PKG_CONFIG --exists --print-errors "kbproto inputproto") 2>&5
23418  ac_status=$?
23419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420  (exit $ac_status); }; then
23421  pkg_cv_XKBPROTO_LIBS=`$PKG_CONFIG --libs "kbproto inputproto" 2>/dev/null`
23422else
23423  pkg_failed=yes
23424fi
23425 else
23426    pkg_failed=untried
23427fi
23428
23429
23430
23431if test $pkg_failed = yes; then
23432
23433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23434        _pkg_short_errors_supported=yes
23435else
23436        _pkg_short_errors_supported=no
23437fi
23438        if test $_pkg_short_errors_supported = yes; then
23439	        XKBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "kbproto inputproto" 2>&1`
23440        else
23441	        XKBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "kbproto inputproto" 2>&1`
23442        fi
23443	# Put the nasty error message in config.log where it belongs
23444	echo "$XKBPROTO_PKG_ERRORS" >&5
23445
23446	{ { echo "$as_me:$LINENO: error: Package requirements (kbproto inputproto) were not met:
23447
23448$XKBPROTO_PKG_ERRORS
23449
23450Consider adjusting the PKG_CONFIG_PATH environment variable if you
23451installed software in a non-standard prefix.
23452
23453Alternatively, you may set the environment variables XKBPROTO_CFLAGS
23454and XKBPROTO_LIBS to avoid the need to call pkg-config.
23455See the pkg-config man page for more details.
23456" >&5
23457echo "$as_me: error: Package requirements (kbproto inputproto) were not met:
23458
23459$XKBPROTO_PKG_ERRORS
23460
23461Consider adjusting the PKG_CONFIG_PATH environment variable if you
23462installed software in a non-standard prefix.
23463
23464Alternatively, you may set the environment variables XKBPROTO_CFLAGS
23465and XKBPROTO_LIBS to avoid the need to call pkg-config.
23466See the pkg-config man page for more details.
23467" >&2;}
23468   { (exit 1); exit 1; }; }
23469elif test $pkg_failed = untried; then
23470	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23471is in your PATH or set the PKG_CONFIG environment variable to the full
23472path to pkg-config.
23473
23474Alternatively, you may set the environment variables XKBPROTO_CFLAGS
23475and XKBPROTO_LIBS to avoid the need to call pkg-config.
23476See the pkg-config man page for more details.
23477
23478To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23479See \`config.log' for more details." >&5
23480echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
23481is in your PATH or set the PKG_CONFIG environment variable to the full
23482path to pkg-config.
23483
23484Alternatively, you may set the environment variables XKBPROTO_CFLAGS
23485and XKBPROTO_LIBS to avoid the need to call pkg-config.
23486See the pkg-config man page for more details.
23487
23488To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23489See \`config.log' for more details." >&2;}
23490   { (exit 1); exit 1; }; }
23491else
23492	XKBPROTO_CFLAGS=$pkg_cv_XKBPROTO_CFLAGS
23493	XKBPROTO_LIBS=$pkg_cv_XKBPROTO_LIBS
23494        { echo "$as_me:$LINENO: result: yes" >&5
23495echo "${ECHO_T}yes" >&6; }
23496	:
23497fi
23498
23499cat >>confdefs.h <<\_ACEOF
23500#define XKB 1
23501_ACEOF
23502
23503   X11_CFLAGS="$X11_CFLAGS $XKBPROTO_CFLAGS"
23504   X11_LIBS="$X11_LIBS $XKBPROTO_LIBS"
23505else
23506   XKBPROTO_REQUIRES=""
23507fi
23508
23509
23510
23511
23512for ac_header in stdlib.h unistd.h
23513do
23514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23516  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23519  echo $ECHO_N "(cached) $ECHO_C" >&6
23520fi
23521ac_res=`eval echo '${'$as_ac_Header'}'`
23522	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23523echo "${ECHO_T}$ac_res" >&6; }
23524else
23525  # Is the header compilable?
23526{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23528cat >conftest.$ac_ext <<_ACEOF
23529/* confdefs.h.  */
23530_ACEOF
23531cat confdefs.h >>conftest.$ac_ext
23532cat >>conftest.$ac_ext <<_ACEOF
23533/* end confdefs.h.  */
23534$ac_includes_default
23535#include <$ac_header>
23536_ACEOF
23537rm -f conftest.$ac_objext
23538if { (ac_try="$ac_compile"
23539case "(($ac_try" in
23540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541  *) ac_try_echo=$ac_try;;
23542esac
23543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544  (eval "$ac_compile") 2>conftest.er1
23545  ac_status=$?
23546  grep -v '^ *+' conftest.er1 >conftest.err
23547  rm -f conftest.er1
23548  cat conftest.err >&5
23549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550  (exit $ac_status); } && {
23551	 test -z "$ac_c_werror_flag" ||
23552	 test ! -s conftest.err
23553       } && test -s conftest.$ac_objext; then
23554  ac_header_compiler=yes
23555else
23556  echo "$as_me: failed program was:" >&5
23557sed 's/^/| /' conftest.$ac_ext >&5
23558
23559	ac_header_compiler=no
23560fi
23561
23562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23564echo "${ECHO_T}$ac_header_compiler" >&6; }
23565
23566# Is the header present?
23567{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23569cat >conftest.$ac_ext <<_ACEOF
23570/* confdefs.h.  */
23571_ACEOF
23572cat confdefs.h >>conftest.$ac_ext
23573cat >>conftest.$ac_ext <<_ACEOF
23574/* end confdefs.h.  */
23575#include <$ac_header>
23576_ACEOF
23577if { (ac_try="$ac_cpp conftest.$ac_ext"
23578case "(($ac_try" in
23579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580  *) ac_try_echo=$ac_try;;
23581esac
23582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23584  ac_status=$?
23585  grep -v '^ *+' conftest.er1 >conftest.err
23586  rm -f conftest.er1
23587  cat conftest.err >&5
23588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589  (exit $ac_status); } >/dev/null && {
23590	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23591	 test ! -s conftest.err
23592       }; then
23593  ac_header_preproc=yes
23594else
23595  echo "$as_me: failed program was:" >&5
23596sed 's/^/| /' conftest.$ac_ext >&5
23597
23598  ac_header_preproc=no
23599fi
23600
23601rm -f conftest.err conftest.$ac_ext
23602{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23603echo "${ECHO_T}$ac_header_preproc" >&6; }
23604
23605# So?  What about this header?
23606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23607  yes:no: )
23608    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23610    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23612    ac_header_preproc=yes
23613    ;;
23614  no:yes:* )
23615    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23617    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23618echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23619    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23621    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23622echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23623    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23625    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23627    ( cat <<\_ASBOX
23628## ---------------------------------------------------------------------- ##
23629## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
23630## ---------------------------------------------------------------------- ##
23631_ASBOX
23632     ) | sed "s/^/$as_me: WARNING:     /" >&2
23633    ;;
23634esac
23635{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23638  echo $ECHO_N "(cached) $ECHO_C" >&6
23639else
23640  eval "$as_ac_Header=\$ac_header_preproc"
23641fi
23642ac_res=`eval echo '${'$as_ac_Header'}'`
23643	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23644echo "${ECHO_T}$ac_res" >&6; }
23645
23646fi
23647if test `eval echo '${'$as_ac_Header'}'` = yes; then
23648  cat >>confdefs.h <<_ACEOF
23649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23650_ACEOF
23651
23652fi
23653
23654done
23655
23656
23657for ac_func in getpagesize
23658do
23659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23660{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23662if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23663  echo $ECHO_N "(cached) $ECHO_C" >&6
23664else
23665  cat >conftest.$ac_ext <<_ACEOF
23666/* confdefs.h.  */
23667_ACEOF
23668cat confdefs.h >>conftest.$ac_ext
23669cat >>conftest.$ac_ext <<_ACEOF
23670/* end confdefs.h.  */
23671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23672   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23673#define $ac_func innocuous_$ac_func
23674
23675/* System header to define __stub macros and hopefully few prototypes,
23676    which can conflict with char $ac_func (); below.
23677    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23678    <limits.h> exists even on freestanding compilers.  */
23679
23680#ifdef __STDC__
23681# include <limits.h>
23682#else
23683# include <assert.h>
23684#endif
23685
23686#undef $ac_func
23687
23688/* Override any GCC internal prototype to avoid an error.
23689   Use char because int might match the return type of a GCC
23690   builtin and then its argument prototype would still apply.  */
23691#ifdef __cplusplus
23692extern "C"
23693#endif
23694char $ac_func ();
23695/* The GNU C library defines this for functions which it implements
23696    to always fail with ENOSYS.  Some functions are actually named
23697    something starting with __ and the normal name is an alias.  */
23698#if defined __stub_$ac_func || defined __stub___$ac_func
23699choke me
23700#endif
23701
23702int
23703main ()
23704{
23705return $ac_func ();
23706  ;
23707  return 0;
23708}
23709_ACEOF
23710rm -f conftest.$ac_objext conftest$ac_exeext
23711if { (ac_try="$ac_link"
23712case "(($ac_try" in
23713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714  *) ac_try_echo=$ac_try;;
23715esac
23716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23717  (eval "$ac_link") 2>conftest.er1
23718  ac_status=$?
23719  grep -v '^ *+' conftest.er1 >conftest.err
23720  rm -f conftest.er1
23721  cat conftest.err >&5
23722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723  (exit $ac_status); } && {
23724	 test -z "$ac_c_werror_flag" ||
23725	 test ! -s conftest.err
23726       } && test -s conftest$ac_exeext &&
23727       $as_test_x conftest$ac_exeext; then
23728  eval "$as_ac_var=yes"
23729else
23730  echo "$as_me: failed program was:" >&5
23731sed 's/^/| /' conftest.$ac_ext >&5
23732
23733	eval "$as_ac_var=no"
23734fi
23735
23736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23737      conftest$ac_exeext conftest.$ac_ext
23738fi
23739ac_res=`eval echo '${'$as_ac_var'}'`
23740	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23741echo "${ECHO_T}$ac_res" >&6; }
23742if test `eval echo '${'$as_ac_var'}'` = yes; then
23743  cat >>confdefs.h <<_ACEOF
23744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23745_ACEOF
23746
23747fi
23748done
23749
23750{ echo "$as_me:$LINENO: checking for working mmap" >&5
23751echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
23752if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23753  echo $ECHO_N "(cached) $ECHO_C" >&6
23754else
23755  if test "$cross_compiling" = yes; then
23756  ac_cv_func_mmap_fixed_mapped=no
23757else
23758  cat >conftest.$ac_ext <<_ACEOF
23759/* confdefs.h.  */
23760_ACEOF
23761cat confdefs.h >>conftest.$ac_ext
23762cat >>conftest.$ac_ext <<_ACEOF
23763/* end confdefs.h.  */
23764$ac_includes_default
23765/* malloc might have been renamed as rpl_malloc. */
23766#undef malloc
23767
23768/* Thanks to Mike Haertel and Jim Avera for this test.
23769   Here is a matrix of mmap possibilities:
23770	mmap private not fixed
23771	mmap private fixed at somewhere currently unmapped
23772	mmap private fixed at somewhere already mapped
23773	mmap shared not fixed
23774	mmap shared fixed at somewhere currently unmapped
23775	mmap shared fixed at somewhere already mapped
23776   For private mappings, we should verify that changes cannot be read()
23777   back from the file, nor mmap's back from the file at a different
23778   address.  (There have been systems where private was not correctly
23779   implemented like the infamous i386 svr4.0, and systems where the
23780   VM page cache was not coherent with the file system buffer cache
23781   like early versions of FreeBSD and possibly contemporary NetBSD.)
23782   For shared mappings, we should conversely verify that changes get
23783   propagated back to all the places they're supposed to be.
23784
23785   Grep wants private fixed already mapped.
23786   The main things grep needs to know about mmap are:
23787   * does it exist and is it safe to write into the mmap'd area
23788   * how to use it (BSD variants)  */
23789
23790#include <fcntl.h>
23791#include <sys/mman.h>
23792
23793#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23794char *malloc ();
23795#endif
23796
23797/* This mess was copied from the GNU getpagesize.h.  */
23798#ifndef HAVE_GETPAGESIZE
23799/* Assume that all systems that can run configure have sys/param.h.  */
23800# ifndef HAVE_SYS_PARAM_H
23801#  define HAVE_SYS_PARAM_H 1
23802# endif
23803
23804# ifdef _SC_PAGESIZE
23805#  define getpagesize() sysconf(_SC_PAGESIZE)
23806# else /* no _SC_PAGESIZE */
23807#  ifdef HAVE_SYS_PARAM_H
23808#   include <sys/param.h>
23809#   ifdef EXEC_PAGESIZE
23810#    define getpagesize() EXEC_PAGESIZE
23811#   else /* no EXEC_PAGESIZE */
23812#    ifdef NBPG
23813#     define getpagesize() NBPG * CLSIZE
23814#     ifndef CLSIZE
23815#      define CLSIZE 1
23816#     endif /* no CLSIZE */
23817#    else /* no NBPG */
23818#     ifdef NBPC
23819#      define getpagesize() NBPC
23820#     else /* no NBPC */
23821#      ifdef PAGESIZE
23822#       define getpagesize() PAGESIZE
23823#      endif /* PAGESIZE */
23824#     endif /* no NBPC */
23825#    endif /* no NBPG */
23826#   endif /* no EXEC_PAGESIZE */
23827#  else /* no HAVE_SYS_PARAM_H */
23828#   define getpagesize() 8192	/* punt totally */
23829#  endif /* no HAVE_SYS_PARAM_H */
23830# endif /* no _SC_PAGESIZE */
23831
23832#endif /* no HAVE_GETPAGESIZE */
23833
23834int
23835main ()
23836{
23837  char *data, *data2, *data3;
23838  int i, pagesize;
23839  int fd;
23840
23841  pagesize = getpagesize ();
23842
23843  /* First, make a file with some known garbage in it. */
23844  data = (char *) malloc (pagesize);
23845  if (!data)
23846    return 1;
23847  for (i = 0; i < pagesize; ++i)
23848    *(data + i) = rand ();
23849  umask (0);
23850  fd = creat ("conftest.mmap", 0600);
23851  if (fd < 0)
23852    return 1;
23853  if (write (fd, data, pagesize) != pagesize)
23854    return 1;
23855  close (fd);
23856
23857  /* Next, try to mmap the file at a fixed address which already has
23858     something else allocated at it.  If we can, also make sure that
23859     we see the same garbage.  */
23860  fd = open ("conftest.mmap", O_RDWR);
23861  if (fd < 0)
23862    return 1;
23863  data2 = (char *) malloc (2 * pagesize);
23864  if (!data2)
23865    return 1;
23866  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
23867  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23868		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
23869    return 1;
23870  for (i = 0; i < pagesize; ++i)
23871    if (*(data + i) != *(data2 + i))
23872      return 1;
23873
23874  /* Finally, make sure that changes to the mapped area do not
23875     percolate back to the file as seen by read().  (This is a bug on
23876     some variants of i386 svr4.0.)  */
23877  for (i = 0; i < pagesize; ++i)
23878    *(data2 + i) = *(data2 + i) + 1;
23879  data3 = (char *) malloc (pagesize);
23880  if (!data3)
23881    return 1;
23882  if (read (fd, data3, pagesize) != pagesize)
23883    return 1;
23884  for (i = 0; i < pagesize; ++i)
23885    if (*(data + i) != *(data3 + i))
23886      return 1;
23887  close (fd);
23888  return 0;
23889}
23890_ACEOF
23891rm -f conftest$ac_exeext
23892if { (ac_try="$ac_link"
23893case "(($ac_try" in
23894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895  *) ac_try_echo=$ac_try;;
23896esac
23897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898  (eval "$ac_link") 2>&5
23899  ac_status=$?
23900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23902  { (case "(($ac_try" in
23903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23904  *) ac_try_echo=$ac_try;;
23905esac
23906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23907  (eval "$ac_try") 2>&5
23908  ac_status=$?
23909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910  (exit $ac_status); }; }; then
23911  ac_cv_func_mmap_fixed_mapped=yes
23912else
23913  echo "$as_me: program exited with status $ac_status" >&5
23914echo "$as_me: failed program was:" >&5
23915sed 's/^/| /' conftest.$ac_ext >&5
23916
23917( exit $ac_status )
23918ac_cv_func_mmap_fixed_mapped=no
23919fi
23920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23921fi
23922
23923
23924fi
23925{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23926echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
23927if test $ac_cv_func_mmap_fixed_mapped = yes; then
23928
23929cat >>confdefs.h <<\_ACEOF
23930#define HAVE_MMAP 1
23931_ACEOF
23932
23933fi
23934rm -f conftest.mmap
23935
23936composecache_default=$ac_cv_func_mmap_fixed_mapped
23937{ echo "$as_me:$LINENO: checking for nl_langinfo" >&5
23938echo $ECHO_N "checking for nl_langinfo... $ECHO_C" >&6; }
23939if test "${ac_cv_func_nl_langinfo+set}" = set; then
23940  echo $ECHO_N "(cached) $ECHO_C" >&6
23941else
23942  cat >conftest.$ac_ext <<_ACEOF
23943/* confdefs.h.  */
23944_ACEOF
23945cat confdefs.h >>conftest.$ac_ext
23946cat >>conftest.$ac_ext <<_ACEOF
23947/* end confdefs.h.  */
23948/* Define nl_langinfo to an innocuous variant, in case <limits.h> declares nl_langinfo.
23949   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23950#define nl_langinfo innocuous_nl_langinfo
23951
23952/* System header to define __stub macros and hopefully few prototypes,
23953    which can conflict with char nl_langinfo (); below.
23954    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23955    <limits.h> exists even on freestanding compilers.  */
23956
23957#ifdef __STDC__
23958# include <limits.h>
23959#else
23960# include <assert.h>
23961#endif
23962
23963#undef nl_langinfo
23964
23965/* Override any GCC internal prototype to avoid an error.
23966   Use char because int might match the return type of a GCC
23967   builtin and then its argument prototype would still apply.  */
23968#ifdef __cplusplus
23969extern "C"
23970#endif
23971char nl_langinfo ();
23972/* The GNU C library defines this for functions which it implements
23973    to always fail with ENOSYS.  Some functions are actually named
23974    something starting with __ and the normal name is an alias.  */
23975#if defined __stub_nl_langinfo || defined __stub___nl_langinfo
23976choke me
23977#endif
23978
23979int
23980main ()
23981{
23982return nl_langinfo ();
23983  ;
23984  return 0;
23985}
23986_ACEOF
23987rm -f conftest.$ac_objext conftest$ac_exeext
23988if { (ac_try="$ac_link"
23989case "(($ac_try" in
23990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23991  *) ac_try_echo=$ac_try;;
23992esac
23993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23994  (eval "$ac_link") 2>conftest.er1
23995  ac_status=$?
23996  grep -v '^ *+' conftest.er1 >conftest.err
23997  rm -f conftest.er1
23998  cat conftest.err >&5
23999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000  (exit $ac_status); } && {
24001	 test -z "$ac_c_werror_flag" ||
24002	 test ! -s conftest.err
24003       } && test -s conftest$ac_exeext &&
24004       $as_test_x conftest$ac_exeext; then
24005  ac_cv_func_nl_langinfo=yes
24006else
24007  echo "$as_me: failed program was:" >&5
24008sed 's/^/| /' conftest.$ac_ext >&5
24009
24010	ac_cv_func_nl_langinfo=no
24011fi
24012
24013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24014      conftest$ac_exeext conftest.$ac_ext
24015fi
24016{ echo "$as_me:$LINENO: result: $ac_cv_func_nl_langinfo" >&5
24017echo "${ECHO_T}$ac_cv_func_nl_langinfo" >&6; }
24018if test $ac_cv_func_nl_langinfo = yes; then
24019  :
24020else
24021  composecache_default=no
24022fi
24023
24024# Check whether --enable-composecache was given.
24025if test "${enable_composecache+set}" = set; then
24026  enableval=$enable_composecache; COMPOSECACHE=$enableval
24027else
24028  COMPOSECACHE=$composecache_default
24029fi
24030
24031if test x"$COMPOSECACHE" = "xyes"; then
24032
24033cat >>confdefs.h <<\_ACEOF
24034#define COMPOSECACHE 1
24035_ACEOF
24036
24037fi
24038
24039
24040
24041# Allow checking code with lint, sparse, etc.
24042
24043# Check whether --with-lint was given.
24044if test "${with_lint+set}" = set; then
24045  withval=$with_lint; use_lint=$withval
24046else
24047  use_lint=no
24048fi
24049
24050if test "x$use_lint" = "xyes" ; then
24051	LINT="lint"
24052else
24053	LINT="$use_lint"
24054fi
24055if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
24056    case $LINT in
24057	lint|*/lint)
24058	    case $host_os in
24059		solaris*)
24060			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
24061			;;
24062	    esac
24063	    ;;
24064    esac
24065fi
24066
24067
24068
24069 if test x$LINT != xno; then
24070  LINT_TRUE=
24071  LINT_FALSE='#'
24072else
24073  LINT_TRUE='#'
24074  LINT_FALSE=
24075fi
24076
24077
24078
24079
24080
24081# Build lint "library" for more indepth checks of programs calling this library
24082# Check whether --enable-lint-library was given.
24083if test "${enable_lint_library+set}" = set; then
24084  enableval=$enable_lint_library; make_lint_lib=$enableval
24085else
24086  make_lint_lib=no
24087fi
24088
24089if test "x$make_lint_lib" != "xno" ; then
24090	if test "x$LINT" = "xno" ; then
24091		{ { echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
24092echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
24093   { (exit 1); exit 1; }; }
24094	fi
24095	if test "x$make_lint_lib" = "xyes" ; then
24096		LINTLIB=llib-lX11.ln
24097	else
24098		LINTLIB=$make_lint_lib
24099	fi
24100fi
24101
24102 if test x$make_lint_lib != xno; then
24103  MAKE_LINT_LIB_TRUE=
24104  MAKE_LINT_LIB_FALSE='#'
24105else
24106  MAKE_LINT_LIB_TRUE='#'
24107  MAKE_LINT_LIB_FALSE=
24108fi
24109
24110
24111
24112LINT_FLAGS="${LINT_FLAGS} ${X11_CFLAGS} ${XPROTO_CFLAGS}"
24113
24114if test "x$GCC" = "xyes"; then
24115	GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \
24116	-Wmissing-prototypes -Wmissing-declarations \
24117	-Wnested-externs -fno-strict-aliasing"
24118	X11_CFLAGS="$GCC_WARNINGS $X11_CFLAGS"
24119fi
24120
24121cat >conftest.$ac_ext <<_ACEOF
24122/* confdefs.h.  */
24123_ACEOF
24124cat confdefs.h >>conftest.$ac_ext
24125cat >>conftest.$ac_ext <<_ACEOF
24126/* end confdefs.h.  */
24127
24128#include <features.h>
24129#ifndef __GLIBC__
24130#error not glibc
24131#endif
24132
24133int
24134main ()
24135{
24136
24137  ;
24138  return 0;
24139}
24140_ACEOF
24141rm -f conftest.$ac_objext
24142if { (ac_try="$ac_compile"
24143case "(($ac_try" in
24144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24145  *) ac_try_echo=$ac_try;;
24146esac
24147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24148  (eval "$ac_compile") 2>conftest.er1
24149  ac_status=$?
24150  grep -v '^ *+' conftest.er1 >conftest.err
24151  rm -f conftest.er1
24152  cat conftest.err >&5
24153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154  (exit $ac_status); } && {
24155	 test -z "$ac_c_werror_flag" ||
24156	 test ! -s conftest.err
24157       } && test -s conftest.$ac_objext; then
24158
24159cat >>confdefs.h <<\_ACEOF
24160#define _GNU_SOURCE 1
24161_ACEOF
24162
24163else
24164  echo "$as_me: failed program was:" >&5
24165sed 's/^/| /' conftest.$ac_ext >&5
24166
24167
24168fi
24169
24170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24171
24172X11_DATADIR="${datadir}/X11"
24173
24174  prefix_NONE=
24175  exec_prefix_NONE=
24176  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24177  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24178  eval ac_define_dir="\"$X11_DATADIR\""
24179  eval ac_define_dir="\"$ac_define_dir\""
24180  X11_DATADIR="$ac_define_dir"
24181
24182
24183cat >>confdefs.h <<_ACEOF
24184#define X11_DATADIR "$ac_define_dir"
24185_ACEOF
24186
24187  test "$prefix_NONE" && prefix=NONE
24188  test "$exec_prefix_NONE" && exec_prefix=NONE
24189
24190
24191
24192X11_LIBDIR="${libdir}/X11"
24193
24194  prefix_NONE=
24195  exec_prefix_NONE=
24196  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24197  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24198  eval ac_define_dir="\"$X11_LIBDIR\""
24199  eval ac_define_dir="\"$ac_define_dir\""
24200  X11_LIBDIR="$ac_define_dir"
24201
24202
24203cat >>confdefs.h <<_ACEOF
24204#define X11_LIBDIR "$ac_define_dir"
24205_ACEOF
24206
24207  test "$prefix_NONE" && prefix=NONE
24208  test "$exec_prefix_NONE" && exec_prefix=NONE
24209
24210
24211
24212X11_CFLAGS="$X11_CFLAGS $XPROTO_CFLAGS"
24213
24214
24215
24216
24217#
24218# Yes, it would be nice to put the locale data in
24219# /usr/share, but the locale stuff includes loadable
24220# libraries which must be located in the same directory
24221# as the other locale data, so for now, everything lives
24222# in ${libdir}
24223#
24224
24225X11_LOCALEDATADIR="${X11_DATADIR}/locale"
24226
24227  prefix_NONE=
24228  exec_prefix_NONE=
24229  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24230  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24231  eval ac_define_dir="\"$X11_LOCALEDATADIR\""
24232  eval ac_define_dir="\"$ac_define_dir\""
24233  XLOCALEDATADIR="$ac_define_dir"
24234
24235
24236cat >>confdefs.h <<_ACEOF
24237#define XLOCALEDATADIR "$ac_define_dir"
24238_ACEOF
24239
24240  test "$prefix_NONE" && prefix=NONE
24241  test "$exec_prefix_NONE" && exec_prefix=NONE
24242
24243
24244
24245X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
24246
24247  prefix_NONE=
24248  exec_prefix_NONE=
24249  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24250  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24251  eval ac_define_dir="\"$X11_LOCALELIBDIR\""
24252  eval ac_define_dir="\"$ac_define_dir\""
24253  XLOCALELIBDIR="$ac_define_dir"
24254
24255
24256cat >>confdefs.h <<_ACEOF
24257#define XLOCALELIBDIR "$ac_define_dir"
24258_ACEOF
24259
24260  test "$prefix_NONE" && prefix=NONE
24261  test "$exec_prefix_NONE" && exec_prefix=NONE
24262
24263
24264
24265X11_LOCALEDIR="${X11_LOCALEDATADIR}"
24266
24267  prefix_NONE=
24268  exec_prefix_NONE=
24269  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24270  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24271  eval ac_define_dir="\"$X11_LOCALEDIR\""
24272  eval ac_define_dir="\"$ac_define_dir\""
24273  XLOCALEDIR="$ac_define_dir"
24274
24275
24276cat >>confdefs.h <<_ACEOF
24277#define XLOCALEDIR "$ac_define_dir"
24278_ACEOF
24279
24280  test "$prefix_NONE" && prefix=NONE
24281  test "$exec_prefix_NONE" && exec_prefix=NONE
24282
24283
24284
24285XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
24286
24287  prefix_NONE=
24288  exec_prefix_NONE=
24289  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24290  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24291  eval ac_define_dir="\"$XKEYSYMDB\""
24292  eval ac_define_dir="\"$ac_define_dir\""
24293  XKEYSYMDB="$ac_define_dir"
24294
24295
24296cat >>confdefs.h <<_ACEOF
24297#define XKEYSYMDB "$ac_define_dir"
24298_ACEOF
24299
24300  test "$prefix_NONE" && prefix=NONE
24301  test "$exec_prefix_NONE" && exec_prefix=NONE
24302
24303
24304XERRORDB="${X11_DATADIR}/XErrorDB"
24305
24306  prefix_NONE=
24307  exec_prefix_NONE=
24308  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24309  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24310  eval ac_define_dir="\"$XERRORDB\""
24311  eval ac_define_dir="\"$ac_define_dir\""
24312  XERRORDB="$ac_define_dir"
24313
24314
24315cat >>confdefs.h <<_ACEOF
24316#define XERRORDB "$ac_define_dir"
24317_ACEOF
24318
24319  test "$prefix_NONE" && prefix=NONE
24320  test "$exec_prefix_NONE" && exec_prefix=NONE
24321
24322
24323
24324
24325# Check whether --enable-malloc0returnsnull was given.
24326if test "${enable_malloc0returnsnull+set}" = set; then
24327  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
24328else
24329  MALLOC_ZERO_RETURNS_NULL=auto
24330fi
24331
24332
24333{ echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
24334echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; }
24335if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
24336	if test "$cross_compiling" = yes; then
24337  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24338See \`config.log' for more details." >&5
24339echo "$as_me: error: cannot run test program while cross compiling
24340See \`config.log' for more details." >&2;}
24341   { (exit 1); exit 1; }; }
24342else
24343  cat >conftest.$ac_ext <<_ACEOF
24344
24345char *malloc();
24346char *realloc();
24347char *calloc();
24348main() {
24349    char *m0, *r0, *c0, *p;
24350    m0 = malloc(0);
24351    p = malloc(10);
24352    r0 = realloc(p,0);
24353    c0 = calloc(0);
24354    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
24355}
24356_ACEOF
24357rm -f conftest$ac_exeext
24358if { (ac_try="$ac_link"
24359case "(($ac_try" in
24360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361  *) ac_try_echo=$ac_try;;
24362esac
24363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364  (eval "$ac_link") 2>&5
24365  ac_status=$?
24366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24368  { (case "(($ac_try" in
24369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24370  *) ac_try_echo=$ac_try;;
24371esac
24372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24373  (eval "$ac_try") 2>&5
24374  ac_status=$?
24375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376  (exit $ac_status); }; }; then
24377  MALLOC_ZERO_RETURNS_NULL=yes
24378else
24379  echo "$as_me: program exited with status $ac_status" >&5
24380echo "$as_me: failed program was:" >&5
24381sed 's/^/| /' conftest.$ac_ext >&5
24382
24383( exit $ac_status )
24384MALLOC_ZERO_RETURNS_NULL=no
24385fi
24386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24387fi
24388
24389
24390fi
24391{ echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
24392echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; }
24393
24394if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
24395	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
24396	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
24397	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
24398else
24399	MALLOC_ZERO_CFLAGS=""
24400	XMALLOC_ZERO_CFLAGS=""
24401	XTMALLOC_ZERO_CFLAGS=""
24402fi
24403
24404
24405
24406
24407
24408
24409
24410# Check whether --with-release-version was given.
24411if test "${with_release_version+set}" = set; then
24412  withval=$with_release_version; RELEASE_VERSION="$withval"
24413else
24414  RELEASE_VERSION=""
24415fi
24416
24417	if test "x$RELEASE_VERSION" != "x"; then
24418		PACKAGE="$PACKAGE-$RELEASE_VERSION"
24419		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
24420		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
24421echo "$as_me: Building with package name set to $PACKAGE" >&6;}
24422	fi
24423
24424cat >>confdefs.h <<_ACEOF
24425#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
24426_ACEOF
24427
24428	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
24429	if test "x$PVM" = "x"; then
24430		PVM="0"
24431	fi
24432
24433cat >>confdefs.h <<_ACEOF
24434#define PACKAGE_VERSION_MINOR $PVM
24435_ACEOF
24436
24437	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
24438	if test "x$PVP" = "x"; then
24439		PVP="0"
24440	fi
24441
24442cat >>confdefs.h <<_ACEOF
24443#define PACKAGE_VERSION_PATCHLEVEL $PVP
24444_ACEOF
24445
24446
24447
24448ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/lc/xlocale/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile nls/am_ET.UTF-8/Makefile nls/armscii-8/Makefile nls/C/Makefile nls/el_GR.UTF-8/Makefile nls/en_US.UTF-8/Makefile nls/georgian-academy/Makefile nls/georgian-ps/Makefile nls/ibm-cp1133/Makefile nls/iscii-dev/Makefile nls/isiri-3342/Makefile nls/iso8859-1/Makefile nls/iso8859-10/Makefile nls/iso8859-11/Makefile nls/iso8859-13/Makefile nls/iso8859-14/Makefile nls/iso8859-15/Makefile nls/iso8859-2/Makefile nls/iso8859-3/Makefile nls/iso8859-4/Makefile nls/iso8859-5/Makefile nls/iso8859-6/Makefile nls/iso8859-7/Makefile nls/iso8859-8/Makefile nls/iso8859-9/Makefile nls/iso8859-9e/Makefile nls/ja/Makefile nls/ja.JIS/Makefile nls/ja_JP.UTF-8/Makefile nls/ja.S90/Makefile nls/ja.SJIS/Makefile nls/ja.U90/Makefile nls/ko/Makefile nls/koi8-c/Makefile nls/koi8-r/Makefile nls/koi8-u/Makefile nls/ko_KR.UTF-8/Makefile nls/microsoft-cp1251/Makefile nls/microsoft-cp1255/Makefile nls/microsoft-cp1256/Makefile nls/mulelao-1/Makefile nls/nokhchi-1/Makefile nls/pt_BR.UTF-8/Makefile nls/tatar-cyr/Makefile nls/th_TH/Makefile nls/th_TH.UTF-8/Makefile nls/tscii-0/Makefile nls/vi_VN.tcvn/Makefile nls/vi_VN.viscii/Makefile nls/zh_CN/Makefile nls/zh_CN.gb18030/Makefile nls/zh_CN.gbk/Makefile nls/zh_CN.UTF-8/Makefile nls/zh_HK.big5/Makefile nls/zh_HK.big5hkscs/Makefile nls/zh_HK.UTF-8/Makefile nls/zh_TW/Makefile nls/zh_TW.big5/Makefile nls/zh_TW.UTF-8/Makefile x11.pc x11-xcb.pc"
24449
24450cat >confcache <<\_ACEOF
24451# This file is a shell script that caches the results of configure
24452# tests run on this system so they can be shared between configure
24453# scripts and configure runs, see configure's option --config-cache.
24454# It is not useful on other systems.  If it contains results you don't
24455# want to keep, you may remove or edit it.
24456#
24457# config.status only pays attention to the cache file if you give it
24458# the --recheck option to rerun configure.
24459#
24460# `ac_cv_env_foo' variables (set or unset) will be overridden when
24461# loading this file, other *unset* `ac_cv_foo' will be assigned the
24462# following values.
24463
24464_ACEOF
24465
24466# The following way of writing the cache mishandles newlines in values,
24467# but we know of no workaround that is simple, portable, and efficient.
24468# So, we kill variables containing newlines.
24469# Ultrix sh set writes to stderr and can't be redirected directly,
24470# and sets the high bit in the cache file unless we assign to the vars.
24471(
24472  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24473    eval ac_val=\$$ac_var
24474    case $ac_val in #(
24475    *${as_nl}*)
24476      case $ac_var in #(
24477      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24478echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24479      esac
24480      case $ac_var in #(
24481      _ | IFS | as_nl) ;; #(
24482      *) $as_unset $ac_var ;;
24483      esac ;;
24484    esac
24485  done
24486
24487  (set) 2>&1 |
24488    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24489    *${as_nl}ac_space=\ *)
24490      # `set' does not quote correctly, so add quotes (double-quote
24491      # substitution turns \\\\ into \\, and sed turns \\ into \).
24492      sed -n \
24493	"s/'/'\\\\''/g;
24494	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24495      ;; #(
24496    *)
24497      # `set' quotes correctly as required by POSIX, so do not add quotes.
24498      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24499      ;;
24500    esac |
24501    sort
24502) |
24503  sed '
24504     /^ac_cv_env_/b end
24505     t clear
24506     :clear
24507     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24508     t end
24509     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24510     :end' >>confcache
24511if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24512  if test -w "$cache_file"; then
24513    test "x$cache_file" != "x/dev/null" &&
24514      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24515echo "$as_me: updating cache $cache_file" >&6;}
24516    cat confcache >$cache_file
24517  else
24518    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24519echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24520  fi
24521fi
24522rm -f confcache
24523
24524test "x$prefix" = xNONE && prefix=$ac_default_prefix
24525# Let make expand exec_prefix.
24526test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24527
24528DEFS=-DHAVE_CONFIG_H
24529
24530ac_libobjs=
24531ac_ltlibobjs=
24532for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24533  # 1. Remove the extension, and $U if already installed.
24534  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24535  ac_i=`echo "$ac_i" | sed "$ac_script"`
24536  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24537  #    will be set to the directory where LIBOBJS objects are built.
24538  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24539  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24540done
24541LIBOBJS=$ac_libobjs
24542
24543LTLIBOBJS=$ac_ltlibobjs
24544
24545
24546if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24547  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24548Usually this means the macro was only invoked conditionally." >&5
24549echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24550Usually this means the macro was only invoked conditionally." >&2;}
24551   { (exit 1); exit 1; }; }
24552fi
24553if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24554  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24555Usually this means the macro was only invoked conditionally." >&5
24556echo "$as_me: error: conditional \"AMDEP\" was never defined.
24557Usually this means the macro was only invoked conditionally." >&2;}
24558   { (exit 1); exit 1; }; }
24559fi
24560if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24561  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24562Usually this means the macro was only invoked conditionally." >&5
24563echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24564Usually this means the macro was only invoked conditionally." >&2;}
24565   { (exit 1); exit 1; }; }
24566fi
24567if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24568  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24569Usually this means the macro was only invoked conditionally." >&5
24570echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24571Usually this means the macro was only invoked conditionally." >&2;}
24572   { (exit 1); exit 1; }; }
24573fi
24574if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24575  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24576Usually this means the macro was only invoked conditionally." >&5
24577echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24578Usually this means the macro was only invoked conditionally." >&2;}
24579   { (exit 1); exit 1; }; }
24580fi
24581if test -z "${XCB_TRUE}" && test -z "${XCB_FALSE}"; then
24582  { { echo "$as_me:$LINENO: error: conditional \"XCB\" was never defined.
24583Usually this means the macro was only invoked conditionally." >&5
24584echo "$as_me: error: conditional \"XCB\" was never defined.
24585Usually this means the macro was only invoked conditionally." >&2;}
24586   { (exit 1); exit 1; }; }
24587fi
24588if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
24589  { { echo "$as_me:$LINENO: error: conditional \"XLIB_LOADABLE_I18N\" was never defined.
24590Usually this means the macro was only invoked conditionally." >&5
24591echo "$as_me: error: conditional \"XLIB_LOADABLE_I18N\" was never defined.
24592Usually this means the macro was only invoked conditionally." >&2;}
24593   { (exit 1); exit 1; }; }
24594fi
24595if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
24596  { { echo "$as_me:$LINENO: error: conditional \"OS2\" was never defined.
24597Usually this means the macro was only invoked conditionally." >&5
24598echo "$as_me: error: conditional \"OS2\" was never defined.
24599Usually this means the macro was only invoked conditionally." >&2;}
24600   { (exit 1); exit 1; }; }
24601fi
24602if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
24603  { { echo "$as_me:$LINENO: error: conditional \"THRSTUBS\" was never defined.
24604Usually this means the macro was only invoked conditionally." >&5
24605echo "$as_me: error: conditional \"THRSTUBS\" was never defined.
24606Usually this means the macro was only invoked conditionally." >&2;}
24607   { (exit 1); exit 1; }; }
24608fi
24609if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then
24610  { { echo "$as_me:$LINENO: error: conditional \"UDC\" was never defined.
24611Usually this means the macro was only invoked conditionally." >&5
24612echo "$as_me: error: conditional \"UDC\" was never defined.
24613Usually this means the macro was only invoked conditionally." >&2;}
24614   { (exit 1); exit 1; }; }
24615fi
24616if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
24617  { { echo "$as_me:$LINENO: error: conditional \"XCMS\" was never defined.
24618Usually this means the macro was only invoked conditionally." >&5
24619echo "$as_me: error: conditional \"XCMS\" was never defined.
24620Usually this means the macro was only invoked conditionally." >&2;}
24621   { (exit 1); exit 1; }; }
24622fi
24623if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
24624  { { echo "$as_me:$LINENO: error: conditional \"XLOCALE\" was never defined.
24625Usually this means the macro was only invoked conditionally." >&5
24626echo "$as_me: error: conditional \"XLOCALE\" was never defined.
24627Usually this means the macro was only invoked conditionally." >&2;}
24628   { (exit 1); exit 1; }; }
24629fi
24630if test -z "${MANPAGES_TRUE}" && test -z "${MANPAGES_FALSE}"; then
24631  { { echo "$as_me:$LINENO: error: conditional \"MANPAGES\" was never defined.
24632Usually this means the macro was only invoked conditionally." >&5
24633echo "$as_me: error: conditional \"MANPAGES\" was never defined.
24634Usually this means the macro was only invoked conditionally." >&2;}
24635   { (exit 1); exit 1; }; }
24636fi
24637if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
24638  { { echo "$as_me:$LINENO: error: conditional \"XKB\" was never defined.
24639Usually this means the macro was only invoked conditionally." >&5
24640echo "$as_me: error: conditional \"XKB\" was never defined.
24641Usually this means the macro was only invoked conditionally." >&2;}
24642   { (exit 1); exit 1; }; }
24643fi
24644if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
24645  { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
24646Usually this means the macro was only invoked conditionally." >&5
24647echo "$as_me: error: conditional \"LINT\" was never defined.
24648Usually this means the macro was only invoked conditionally." >&2;}
24649   { (exit 1); exit 1; }; }
24650fi
24651if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
24652  { { echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
24653Usually this means the macro was only invoked conditionally." >&5
24654echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
24655Usually this means the macro was only invoked conditionally." >&2;}
24656   { (exit 1); exit 1; }; }
24657fi
24658
24659: ${CONFIG_STATUS=./config.status}
24660ac_clean_files_save=$ac_clean_files
24661ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24662{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24663echo "$as_me: creating $CONFIG_STATUS" >&6;}
24664cat >$CONFIG_STATUS <<_ACEOF
24665#! $SHELL
24666# Generated by $as_me.
24667# Run this file to recreate the current configuration.
24668# Compiler output produced by configure, useful for debugging
24669# configure, is in config.log if it exists.
24670
24671debug=false
24672ac_cs_recheck=false
24673ac_cs_silent=false
24674SHELL=\${CONFIG_SHELL-$SHELL}
24675_ACEOF
24676
24677cat >>$CONFIG_STATUS <<\_ACEOF
24678## --------------------- ##
24679## M4sh Initialization.  ##
24680## --------------------- ##
24681
24682# Be more Bourne compatible
24683DUALCASE=1; export DUALCASE # for MKS sh
24684if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24685  emulate sh
24686  NULLCMD=:
24687  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24688  # is contrary to our usage.  Disable this feature.
24689  alias -g '${1+"$@"}'='"$@"'
24690  setopt NO_GLOB_SUBST
24691else
24692  case `(set -o) 2>/dev/null` in
24693  *posix*) set -o posix ;;
24694esac
24695
24696fi
24697
24698
24699
24700
24701# PATH needs CR
24702# Avoid depending upon Character Ranges.
24703as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24704as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24705as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24706as_cr_digits='0123456789'
24707as_cr_alnum=$as_cr_Letters$as_cr_digits
24708
24709# The user is always right.
24710if test "${PATH_SEPARATOR+set}" != set; then
24711  echo "#! /bin/sh" >conf$$.sh
24712  echo  "exit 0"   >>conf$$.sh
24713  chmod +x conf$$.sh
24714  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24715    PATH_SEPARATOR=';'
24716  else
24717    PATH_SEPARATOR=:
24718  fi
24719  rm -f conf$$.sh
24720fi
24721
24722# Support unset when possible.
24723if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24724  as_unset=unset
24725else
24726  as_unset=false
24727fi
24728
24729
24730# IFS
24731# We need space, tab and new line, in precisely that order.  Quoting is
24732# there to prevent editors from complaining about space-tab.
24733# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24734# splitting by setting IFS to empty value.)
24735as_nl='
24736'
24737IFS=" ""	$as_nl"
24738
24739# Find who we are.  Look in the path if we contain no directory separator.
24740case $0 in
24741  *[\\/]* ) as_myself=$0 ;;
24742  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24743for as_dir in $PATH
24744do
24745  IFS=$as_save_IFS
24746  test -z "$as_dir" && as_dir=.
24747  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24748done
24749IFS=$as_save_IFS
24750
24751     ;;
24752esac
24753# We did not find ourselves, most probably we were run as `sh COMMAND'
24754# in which case we are not to be found in the path.
24755if test "x$as_myself" = x; then
24756  as_myself=$0
24757fi
24758if test ! -f "$as_myself"; then
24759  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24760  { (exit 1); exit 1; }
24761fi
24762
24763# Work around bugs in pre-3.0 UWIN ksh.
24764for as_var in ENV MAIL MAILPATH
24765do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24766done
24767PS1='$ '
24768PS2='> '
24769PS4='+ '
24770
24771# NLS nuisances.
24772for as_var in \
24773  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24774  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24775  LC_TELEPHONE LC_TIME
24776do
24777  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24778    eval $as_var=C; export $as_var
24779  else
24780    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24781  fi
24782done
24783
24784# Required to use basename.
24785if expr a : '\(a\)' >/dev/null 2>&1 &&
24786   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24787  as_expr=expr
24788else
24789  as_expr=false
24790fi
24791
24792if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24793  as_basename=basename
24794else
24795  as_basename=false
24796fi
24797
24798
24799# Name of the executable.
24800as_me=`$as_basename -- "$0" ||
24801$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24802	 X"$0" : 'X\(//\)$' \| \
24803	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24804echo X/"$0" |
24805    sed '/^.*\/\([^/][^/]*\)\/*$/{
24806	    s//\1/
24807	    q
24808	  }
24809	  /^X\/\(\/\/\)$/{
24810	    s//\1/
24811	    q
24812	  }
24813	  /^X\/\(\/\).*/{
24814	    s//\1/
24815	    q
24816	  }
24817	  s/.*/./; q'`
24818
24819# CDPATH.
24820$as_unset CDPATH
24821
24822
24823
24824  as_lineno_1=$LINENO
24825  as_lineno_2=$LINENO
24826  test "x$as_lineno_1" != "x$as_lineno_2" &&
24827  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24828
24829  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24830  # uniformly replaced by the line number.  The first 'sed' inserts a
24831  # line-number line after each line using $LINENO; the second 'sed'
24832  # does the real work.  The second script uses 'N' to pair each
24833  # line-number line with the line containing $LINENO, and appends
24834  # trailing '-' during substitution so that $LINENO is not a special
24835  # case at line end.
24836  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24837  # scripts with optimization help from Paolo Bonzini.  Blame Lee
24838  # E. McMahon (1931-1989) for sed's syntax.  :-)
24839  sed -n '
24840    p
24841    /[$]LINENO/=
24842  ' <$as_myself |
24843    sed '
24844      s/[$]LINENO.*/&-/
24845      t lineno
24846      b
24847      :lineno
24848      N
24849      :loop
24850      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24851      t loop
24852      s/-\n.*//
24853    ' >$as_me.lineno &&
24854  chmod +x "$as_me.lineno" ||
24855    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24856   { (exit 1); exit 1; }; }
24857
24858  # Don't try to exec as it changes $[0], causing all sort of problems
24859  # (the dirname of $[0] is not the place where we might find the
24860  # original and so on.  Autoconf is especially sensitive to this).
24861  . "./$as_me.lineno"
24862  # Exit status is that of the last command.
24863  exit
24864}
24865
24866
24867if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24868  as_dirname=dirname
24869else
24870  as_dirname=false
24871fi
24872
24873ECHO_C= ECHO_N= ECHO_T=
24874case `echo -n x` in
24875-n*)
24876  case `echo 'x\c'` in
24877  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
24878  *)   ECHO_C='\c';;
24879  esac;;
24880*)
24881  ECHO_N='-n';;
24882esac
24883
24884if expr a : '\(a\)' >/dev/null 2>&1 &&
24885   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24886  as_expr=expr
24887else
24888  as_expr=false
24889fi
24890
24891rm -f conf$$ conf$$.exe conf$$.file
24892if test -d conf$$.dir; then
24893  rm -f conf$$.dir/conf$$.file
24894else
24895  rm -f conf$$.dir
24896  mkdir conf$$.dir
24897fi
24898echo >conf$$.file
24899if ln -s conf$$.file conf$$ 2>/dev/null; then
24900  as_ln_s='ln -s'
24901  # ... but there are two gotchas:
24902  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24903  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24904  # In both cases, we have to default to `cp -p'.
24905  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24906    as_ln_s='cp -p'
24907elif ln conf$$.file conf$$ 2>/dev/null; then
24908  as_ln_s=ln
24909else
24910  as_ln_s='cp -p'
24911fi
24912rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24913rmdir conf$$.dir 2>/dev/null
24914
24915if mkdir -p . 2>/dev/null; then
24916  as_mkdir_p=:
24917else
24918  test -d ./-p && rmdir ./-p
24919  as_mkdir_p=false
24920fi
24921
24922if test -x / >/dev/null 2>&1; then
24923  as_test_x='test -x'
24924else
24925  if ls -dL / >/dev/null 2>&1; then
24926    as_ls_L_option=L
24927  else
24928    as_ls_L_option=
24929  fi
24930  as_test_x='
24931    eval sh -c '\''
24932      if test -d "$1"; then
24933        test -d "$1/.";
24934      else
24935	case $1 in
24936        -*)set "./$1";;
24937	esac;
24938	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24939	???[sx]*):;;*)false;;esac;fi
24940    '\'' sh
24941  '
24942fi
24943as_executable_p=$as_test_x
24944
24945# Sed expression to map a string onto a valid CPP name.
24946as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24947
24948# Sed expression to map a string onto a valid variable name.
24949as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24950
24951
24952exec 6>&1
24953
24954# Save the log message, to keep $[0] and so on meaningful, and to
24955# report actual input values of CONFIG_FILES etc. instead of their
24956# values after options handling.
24957ac_log="
24958This file was extended by libX11 $as_me 1.1.4, which was
24959generated by GNU Autoconf 2.61.  Invocation command line was
24960
24961  CONFIG_FILES    = $CONFIG_FILES
24962  CONFIG_HEADERS  = $CONFIG_HEADERS
24963  CONFIG_LINKS    = $CONFIG_LINKS
24964  CONFIG_COMMANDS = $CONFIG_COMMANDS
24965  $ $0 $@
24966
24967on `(hostname || uname -n) 2>/dev/null | sed 1q`
24968"
24969
24970_ACEOF
24971
24972cat >>$CONFIG_STATUS <<_ACEOF
24973# Files that config.status was made for.
24974config_files="$ac_config_files"
24975config_headers="$ac_config_headers"
24976config_commands="$ac_config_commands"
24977
24978_ACEOF
24979
24980cat >>$CONFIG_STATUS <<\_ACEOF
24981ac_cs_usage="\
24982\`$as_me' instantiates files from templates according to the
24983current configuration.
24984
24985Usage: $0 [OPTIONS] [FILE]...
24986
24987  -h, --help       print this help, then exit
24988  -V, --version    print version number and configuration settings, then exit
24989  -q, --quiet      do not print progress messages
24990  -d, --debug      don't remove temporary files
24991      --recheck    update $as_me by reconfiguring in the same conditions
24992  --file=FILE[:TEMPLATE]
24993		   instantiate the configuration file FILE
24994  --header=FILE[:TEMPLATE]
24995		   instantiate the configuration header FILE
24996
24997Configuration files:
24998$config_files
24999
25000Configuration headers:
25001$config_headers
25002
25003Configuration commands:
25004$config_commands
25005
25006Report bugs to <bug-autoconf@gnu.org>."
25007
25008_ACEOF
25009cat >>$CONFIG_STATUS <<_ACEOF
25010ac_cs_version="\\
25011libX11 config.status 1.1.4
25012configured by $0, generated by GNU Autoconf 2.61,
25013  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25014
25015Copyright (C) 2006 Free Software Foundation, Inc.
25016This config.status script is free software; the Free Software Foundation
25017gives unlimited permission to copy, distribute and modify it."
25018
25019ac_pwd='$ac_pwd'
25020srcdir='$srcdir'
25021INSTALL='$INSTALL'
25022MKDIR_P='$MKDIR_P'
25023_ACEOF
25024
25025cat >>$CONFIG_STATUS <<\_ACEOF
25026# If no file are specified by the user, then we need to provide default
25027# value.  By we need to know if files were specified by the user.
25028ac_need_defaults=:
25029while test $# != 0
25030do
25031  case $1 in
25032  --*=*)
25033    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25034    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25035    ac_shift=:
25036    ;;
25037  *)
25038    ac_option=$1
25039    ac_optarg=$2
25040    ac_shift=shift
25041    ;;
25042  esac
25043
25044  case $ac_option in
25045  # Handling of the options.
25046  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25047    ac_cs_recheck=: ;;
25048  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25049    echo "$ac_cs_version"; exit ;;
25050  --debug | --debu | --deb | --de | --d | -d )
25051    debug=: ;;
25052  --file | --fil | --fi | --f )
25053    $ac_shift
25054    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25055    ac_need_defaults=false;;
25056  --header | --heade | --head | --hea )
25057    $ac_shift
25058    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25059    ac_need_defaults=false;;
25060  --he | --h)
25061    # Conflict between --help and --header
25062    { echo "$as_me: error: ambiguous option: $1
25063Try \`$0 --help' for more information." >&2
25064   { (exit 1); exit 1; }; };;
25065  --help | --hel | -h )
25066    echo "$ac_cs_usage"; exit ;;
25067  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25068  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25069    ac_cs_silent=: ;;
25070
25071  # This is an error.
25072  -*) { echo "$as_me: error: unrecognized option: $1
25073Try \`$0 --help' for more information." >&2
25074   { (exit 1); exit 1; }; } ;;
25075
25076  *) ac_config_targets="$ac_config_targets $1"
25077     ac_need_defaults=false ;;
25078
25079  esac
25080  shift
25081done
25082
25083ac_configure_extra_args=
25084
25085if $ac_cs_silent; then
25086  exec 6>/dev/null
25087  ac_configure_extra_args="$ac_configure_extra_args --silent"
25088fi
25089
25090_ACEOF
25091cat >>$CONFIG_STATUS <<_ACEOF
25092if \$ac_cs_recheck; then
25093  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25094  CONFIG_SHELL=$SHELL
25095  export CONFIG_SHELL
25096  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25097fi
25098
25099_ACEOF
25100cat >>$CONFIG_STATUS <<\_ACEOF
25101exec 5>>config.log
25102{
25103  echo
25104  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25105## Running $as_me. ##
25106_ASBOX
25107  echo "$ac_log"
25108} >&5
25109
25110_ACEOF
25111cat >>$CONFIG_STATUS <<_ACEOF
25112#
25113# INIT-COMMANDS
25114#
25115AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25116
25117_ACEOF
25118
25119cat >>$CONFIG_STATUS <<\_ACEOF
25120
25121# Handling of arguments.
25122for ac_config_target in $ac_config_targets
25123do
25124  case $ac_config_target in
25125    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25126    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
25127    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25128    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25129    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25130    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
25131    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
25132    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25133    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
25134    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
25135    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
25136    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
25137    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
25138    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
25139    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
25140    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
25141    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
25142    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
25143    "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;;
25144    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
25145    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
25146    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
25147    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
25148    "nls/am_ET.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/am_ET.UTF-8/Makefile" ;;
25149    "nls/armscii-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/armscii-8/Makefile" ;;
25150    "nls/C/Makefile") CONFIG_FILES="$CONFIG_FILES nls/C/Makefile" ;;
25151    "nls/el_GR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/el_GR.UTF-8/Makefile" ;;
25152    "nls/en_US.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/en_US.UTF-8/Makefile" ;;
25153    "nls/georgian-academy/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-academy/Makefile" ;;
25154    "nls/georgian-ps/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-ps/Makefile" ;;
25155    "nls/ibm-cp1133/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ibm-cp1133/Makefile" ;;
25156    "nls/iscii-dev/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iscii-dev/Makefile" ;;
25157    "nls/isiri-3342/Makefile") CONFIG_FILES="$CONFIG_FILES nls/isiri-3342/Makefile" ;;
25158    "nls/iso8859-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-1/Makefile" ;;
25159    "nls/iso8859-10/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-10/Makefile" ;;
25160    "nls/iso8859-11/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-11/Makefile" ;;
25161    "nls/iso8859-13/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-13/Makefile" ;;
25162    "nls/iso8859-14/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-14/Makefile" ;;
25163    "nls/iso8859-15/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-15/Makefile" ;;
25164    "nls/iso8859-2/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-2/Makefile" ;;
25165    "nls/iso8859-3/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-3/Makefile" ;;
25166    "nls/iso8859-4/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-4/Makefile" ;;
25167    "nls/iso8859-5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-5/Makefile" ;;
25168    "nls/iso8859-6/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-6/Makefile" ;;
25169    "nls/iso8859-7/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-7/Makefile" ;;
25170    "nls/iso8859-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-8/Makefile" ;;
25171    "nls/iso8859-9/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9/Makefile" ;;
25172    "nls/iso8859-9e/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9e/Makefile" ;;
25173    "nls/ja/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja/Makefile" ;;
25174    "nls/ja.JIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.JIS/Makefile" ;;
25175    "nls/ja_JP.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja_JP.UTF-8/Makefile" ;;
25176    "nls/ja.S90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.S90/Makefile" ;;
25177    "nls/ja.SJIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.SJIS/Makefile" ;;
25178    "nls/ja.U90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.U90/Makefile" ;;
25179    "nls/ko/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko/Makefile" ;;
25180    "nls/koi8-c/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-c/Makefile" ;;
25181    "nls/koi8-r/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-r/Makefile" ;;
25182    "nls/koi8-u/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-u/Makefile" ;;
25183    "nls/ko_KR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko_KR.UTF-8/Makefile" ;;
25184    "nls/microsoft-cp1251/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1251/Makefile" ;;
25185    "nls/microsoft-cp1255/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1255/Makefile" ;;
25186    "nls/microsoft-cp1256/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1256/Makefile" ;;
25187    "nls/mulelao-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/mulelao-1/Makefile" ;;
25188    "nls/nokhchi-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/nokhchi-1/Makefile" ;;
25189    "nls/pt_BR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/pt_BR.UTF-8/Makefile" ;;
25190    "nls/tatar-cyr/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tatar-cyr/Makefile" ;;
25191    "nls/th_TH/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH/Makefile" ;;
25192    "nls/th_TH.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH.UTF-8/Makefile" ;;
25193    "nls/tscii-0/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tscii-0/Makefile" ;;
25194    "nls/vi_VN.tcvn/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.tcvn/Makefile" ;;
25195    "nls/vi_VN.viscii/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.viscii/Makefile" ;;
25196    "nls/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN/Makefile" ;;
25197    "nls/zh_CN.gb18030/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gb18030/Makefile" ;;
25198    "nls/zh_CN.gbk/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gbk/Makefile" ;;
25199    "nls/zh_CN.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.UTF-8/Makefile" ;;
25200    "nls/zh_HK.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5/Makefile" ;;
25201    "nls/zh_HK.big5hkscs/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5hkscs/Makefile" ;;
25202    "nls/zh_HK.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.UTF-8/Makefile" ;;
25203    "nls/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW/Makefile" ;;
25204    "nls/zh_TW.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.big5/Makefile" ;;
25205    "nls/zh_TW.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.UTF-8/Makefile" ;;
25206    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
25207    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
25208
25209  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25210echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25211   { (exit 1); exit 1; }; };;
25212  esac
25213done
25214
25215
25216# If the user did not use the arguments to specify the items to instantiate,
25217# then the envvar interface is used.  Set only those that are not.
25218# We use the long form for the default assignment because of an extremely
25219# bizarre bug on SunOS 4.1.3.
25220if $ac_need_defaults; then
25221  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25222  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25223  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25224fi
25225
25226# Have a temporary directory for convenience.  Make it in the build tree
25227# simply because there is no reason against having it here, and in addition,
25228# creating and moving files from /tmp can sometimes cause problems.
25229# Hook for its removal unless debugging.
25230# Note that there is a small window in which the directory will not be cleaned:
25231# after its creation but before its name has been assigned to `$tmp'.
25232$debug ||
25233{
25234  tmp=
25235  trap 'exit_status=$?
25236  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25237' 0
25238  trap '{ (exit 1); exit 1; }' 1 2 13 15
25239}
25240# Create a (secure) tmp directory for tmp files.
25241
25242{
25243  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25244  test -n "$tmp" && test -d "$tmp"
25245}  ||
25246{
25247  tmp=./conf$$-$RANDOM
25248  (umask 077 && mkdir "$tmp")
25249} ||
25250{
25251   echo "$me: cannot create a temporary directory in ." >&2
25252   { (exit 1); exit 1; }
25253}
25254
25255#
25256# Set up the sed scripts for CONFIG_FILES section.
25257#
25258
25259# No need to generate the scripts if there are no CONFIG_FILES.
25260# This happens for instance when ./config.status config.h
25261if test -n "$CONFIG_FILES"; then
25262
25263_ACEOF
25264
25265
25266
25267ac_delim='%!_!# '
25268for ac_last_try in false false false false false :; do
25269  cat >conf$$subs.sed <<_ACEOF
25270SHELL!$SHELL$ac_delim
25271PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25272PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25273PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25274PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25275PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25276PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25277exec_prefix!$exec_prefix$ac_delim
25278prefix!$prefix$ac_delim
25279program_transform_name!$program_transform_name$ac_delim
25280bindir!$bindir$ac_delim
25281sbindir!$sbindir$ac_delim
25282libexecdir!$libexecdir$ac_delim
25283datarootdir!$datarootdir$ac_delim
25284datadir!$datadir$ac_delim
25285sysconfdir!$sysconfdir$ac_delim
25286sharedstatedir!$sharedstatedir$ac_delim
25287localstatedir!$localstatedir$ac_delim
25288includedir!$includedir$ac_delim
25289oldincludedir!$oldincludedir$ac_delim
25290docdir!$docdir$ac_delim
25291infodir!$infodir$ac_delim
25292htmldir!$htmldir$ac_delim
25293dvidir!$dvidir$ac_delim
25294pdfdir!$pdfdir$ac_delim
25295psdir!$psdir$ac_delim
25296libdir!$libdir$ac_delim
25297localedir!$localedir$ac_delim
25298mandir!$mandir$ac_delim
25299DEFS!$DEFS$ac_delim
25300ECHO_C!$ECHO_C$ac_delim
25301ECHO_N!$ECHO_N$ac_delim
25302ECHO_T!$ECHO_T$ac_delim
25303LIBS!$LIBS$ac_delim
25304build_alias!$build_alias$ac_delim
25305host_alias!$host_alias$ac_delim
25306target_alias!$target_alias$ac_delim
25307INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25308INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25309INSTALL_DATA!$INSTALL_DATA$ac_delim
25310am__isrc!$am__isrc$ac_delim
25311CYGPATH_W!$CYGPATH_W$ac_delim
25312PACKAGE!$PACKAGE$ac_delim
25313VERSION!$VERSION$ac_delim
25314ACLOCAL!$ACLOCAL$ac_delim
25315AUTOCONF!$AUTOCONF$ac_delim
25316AUTOMAKE!$AUTOMAKE$ac_delim
25317AUTOHEADER!$AUTOHEADER$ac_delim
25318MAKEINFO!$MAKEINFO$ac_delim
25319install_sh!$install_sh$ac_delim
25320STRIP!$STRIP$ac_delim
25321INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25322mkdir_p!$mkdir_p$ac_delim
25323AWK!$AWK$ac_delim
25324SET_MAKE!$SET_MAKE$ac_delim
25325am__leading_dot!$am__leading_dot$ac_delim
25326AMTAR!$AMTAR$ac_delim
25327am__tar!$am__tar$ac_delim
25328am__untar!$am__untar$ac_delim
25329MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
25330MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
25331MAINT!$MAINT$ac_delim
25332build!$build$ac_delim
25333build_cpu!$build_cpu$ac_delim
25334build_vendor!$build_vendor$ac_delim
25335build_os!$build_os$ac_delim
25336host!$host$ac_delim
25337host_cpu!$host_cpu$ac_delim
25338host_vendor!$host_vendor$ac_delim
25339host_os!$host_os$ac_delim
25340CC!$CC$ac_delim
25341CFLAGS!$CFLAGS$ac_delim
25342LDFLAGS!$LDFLAGS$ac_delim
25343CPPFLAGS!$CPPFLAGS$ac_delim
25344ac_ct_CC!$ac_ct_CC$ac_delim
25345EXEEXT!$EXEEXT$ac_delim
25346OBJEXT!$OBJEXT$ac_delim
25347DEPDIR!$DEPDIR$ac_delim
25348am__include!$am__include$ac_delim
25349am__quote!$am__quote$ac_delim
25350AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25351AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25352AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25353CCDEPMODE!$CCDEPMODE$ac_delim
25354am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25355am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25356SED!$SED$ac_delim
25357GREP!$GREP$ac_delim
25358EGREP!$EGREP$ac_delim
25359LN_S!$LN_S$ac_delim
25360ECHO!$ECHO$ac_delim
25361AR!$AR$ac_delim
25362RANLIB!$RANLIB$ac_delim
25363CPP!$CPP$ac_delim
25364CXX!$CXX$ac_delim
25365CXXFLAGS!$CXXFLAGS$ac_delim
25366ac_ct_CXX!$ac_ct_CXX$ac_delim
25367_ACEOF
25368
25369  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25370    break
25371  elif $ac_last_try; then
25372    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25373echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25374   { (exit 1); exit 1; }; }
25375  else
25376    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25377  fi
25378done
25379
25380ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25381if test -n "$ac_eof"; then
25382  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25383  ac_eof=`expr $ac_eof + 1`
25384fi
25385
25386cat >>$CONFIG_STATUS <<_ACEOF
25387cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25388/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25389_ACEOF
25390sed '
25391s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25392s/^/s,@/; s/!/@,|#_!!_#|/
25393:n
25394t n
25395s/'"$ac_delim"'$/,g/; t
25396s/$/\\/; p
25397N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25398' >>$CONFIG_STATUS <conf$$subs.sed
25399rm -f conf$$subs.sed
25400cat >>$CONFIG_STATUS <<_ACEOF
25401CEOF$ac_eof
25402_ACEOF
25403
25404
25405ac_delim='%!_!# '
25406for ac_last_try in false false false false false :; do
25407  cat >conf$$subs.sed <<_ACEOF
25408CXXDEPMODE!$CXXDEPMODE$ac_delim
25409am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25410am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25411CXXCPP!$CXXCPP$ac_delim
25412F77!$F77$ac_delim
25413FFLAGS!$FFLAGS$ac_delim
25414ac_ct_F77!$ac_ct_F77$ac_delim
25415LIBTOOL!$LIBTOOL$ac_delim
25416RAWCPP!$RAWCPP$ac_delim
25417RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
25418XCB_TRUE!$XCB_TRUE$ac_delim
25419XCB_FALSE!$XCB_FALSE$ac_delim
25420PKG_CONFIG!$PKG_CONFIG$ac_delim
25421XPROTO_CFLAGS!$XPROTO_CFLAGS$ac_delim
25422XPROTO_LIBS!$XPROTO_LIBS$ac_delim
25423XDMCP_CFLAGS!$XDMCP_CFLAGS$ac_delim
25424XDMCP_LIBS!$XDMCP_LIBS$ac_delim
25425X11_EXTRA_DEPS!$X11_EXTRA_DEPS$ac_delim
25426X11_CFLAGS!$X11_CFLAGS$ac_delim
25427X11_LIBS!$X11_LIBS$ac_delim
25428I18N_MODULE_LIBS!$I18N_MODULE_LIBS$ac_delim
25429XLIB_LOADABLE_I18N_TRUE!$XLIB_LOADABLE_I18N_TRUE$ac_delim
25430XLIB_LOADABLE_I18N_FALSE!$XLIB_LOADABLE_I18N_FALSE$ac_delim
25431WCHAR32!$WCHAR32$ac_delim
25432OS2_TRUE!$OS2_TRUE$ac_delim
25433OS2_FALSE!$OS2_FALSE$ac_delim
25434LAUNCHD!$LAUNCHD$ac_delim
25435XTHREADS!$XTHREADS$ac_delim
25436XUSE_MTSAFE_API!$XUSE_MTSAFE_API$ac_delim
25437THRSTUBS_TRUE!$THRSTUBS_TRUE$ac_delim
25438THRSTUBS_FALSE!$THRSTUBS_FALSE$ac_delim
25439XTHREADLIB!$XTHREADLIB$ac_delim
25440XTHREAD_CFLAGS!$XTHREAD_CFLAGS$ac_delim
25441KEYSYMDEF!$KEYSYMDEF$ac_delim
25442UDC_TRUE!$UDC_TRUE$ac_delim
25443UDC_FALSE!$UDC_FALSE$ac_delim
25444XCMS_TRUE!$XCMS_TRUE$ac_delim
25445XCMS_FALSE!$XCMS_FALSE$ac_delim
25446XLOCALE_TRUE!$XLOCALE_TRUE$ac_delim
25447XLOCALE_FALSE!$XLOCALE_FALSE$ac_delim
25448BIGFONT_CFLAGS!$BIGFONT_CFLAGS$ac_delim
25449BIGFONT_LIBS!$BIGFONT_LIBS$ac_delim
25450APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
25451LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
25452FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
25453MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
25454DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
25455ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
25456APP_MAN_DIR!$APP_MAN_DIR$ac_delim
25457LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
25458FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
25459MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
25460DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
25461ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
25462MANPAGES_TRUE!$MANPAGES_TRUE$ac_delim
25463MANPAGES_FALSE!$MANPAGES_FALSE$ac_delim
25464XKB_TRUE!$XKB_TRUE$ac_delim
25465XKB_FALSE!$XKB_FALSE$ac_delim
25466XKBPROTO_CFLAGS!$XKBPROTO_CFLAGS$ac_delim
25467XKBPROTO_LIBS!$XKBPROTO_LIBS$ac_delim
25468XKBPROTO_REQUIRES!$XKBPROTO_REQUIRES$ac_delim
25469LINT!$LINT$ac_delim
25470LINT_FLAGS!$LINT_FLAGS$ac_delim
25471LINT_TRUE!$LINT_TRUE$ac_delim
25472LINT_FALSE!$LINT_FALSE$ac_delim
25473LINTLIB!$LINTLIB$ac_delim
25474MAKE_LINT_LIB_TRUE!$MAKE_LINT_LIB_TRUE$ac_delim
25475MAKE_LINT_LIB_FALSE!$MAKE_LINT_LIB_FALSE$ac_delim
25476X11_DATADIR!$X11_DATADIR$ac_delim
25477X11_LIBDIR!$X11_LIBDIR$ac_delim
25478XLOCALEDATADIR!$XLOCALEDATADIR$ac_delim
25479X11_LOCALEDATADIR!$X11_LOCALEDATADIR$ac_delim
25480XLOCALELIBDIR!$XLOCALELIBDIR$ac_delim
25481X11_LOCALELIBDIR!$X11_LOCALELIBDIR$ac_delim
25482XLOCALEDIR!$XLOCALEDIR$ac_delim
25483X11_LOCALEDIR!$X11_LOCALEDIR$ac_delim
25484XKEYSYMDB!$XKEYSYMDB$ac_delim
25485XERRORDB!$XERRORDB$ac_delim
25486MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim
25487XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim
25488XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim
25489LIBOBJS!$LIBOBJS$ac_delim
25490LTLIBOBJS!$LTLIBOBJS$ac_delim
25491_ACEOF
25492
25493  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
25494    break
25495  elif $ac_last_try; then
25496    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25497echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25498   { (exit 1); exit 1; }; }
25499  else
25500    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25501  fi
25502done
25503
25504ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25505if test -n "$ac_eof"; then
25506  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25507  ac_eof=`expr $ac_eof + 1`
25508fi
25509
25510cat >>$CONFIG_STATUS <<_ACEOF
25511cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25512/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25513_ACEOF
25514sed '
25515s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25516s/^/s,@/; s/!/@,|#_!!_#|/
25517:n
25518t n
25519s/'"$ac_delim"'$/,g/; t
25520s/$/\\/; p
25521N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25522' >>$CONFIG_STATUS <conf$$subs.sed
25523rm -f conf$$subs.sed
25524cat >>$CONFIG_STATUS <<_ACEOF
25525:end
25526s/|#_!!_#|//g
25527CEOF$ac_eof
25528_ACEOF
25529
25530
25531# VPATH may cause trouble with some makes, so we remove $(srcdir),
25532# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25533# trailing colons and then remove the whole line if VPATH becomes empty
25534# (actually we leave an empty line to preserve line numbers).
25535if test "x$srcdir" = x.; then
25536  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
25537s/:*\$(srcdir):*/:/
25538s/:*\${srcdir}:*/:/
25539s/:*@srcdir@:*/:/
25540s/^\([^=]*=[	 ]*\):*/\1/
25541s/:*$//
25542s/^[^=]*=[	 ]*$//
25543}'
25544fi
25545
25546cat >>$CONFIG_STATUS <<\_ACEOF
25547fi # test -n "$CONFIG_FILES"
25548
25549
25550for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25551do
25552  case $ac_tag in
25553  :[FHLC]) ac_mode=$ac_tag; continue;;
25554  esac
25555  case $ac_mode$ac_tag in
25556  :[FHL]*:*);;
25557  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25558echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25559   { (exit 1); exit 1; }; };;
25560  :[FH]-) ac_tag=-:-;;
25561  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25562  esac
25563  ac_save_IFS=$IFS
25564  IFS=:
25565  set x $ac_tag
25566  IFS=$ac_save_IFS
25567  shift
25568  ac_file=$1
25569  shift
25570
25571  case $ac_mode in
25572  :L) ac_source=$1;;
25573  :[FH])
25574    ac_file_inputs=
25575    for ac_f
25576    do
25577      case $ac_f in
25578      -) ac_f="$tmp/stdin";;
25579      *) # Look for the file first in the build tree, then in the source tree
25580	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
25581	 # because $ac_f cannot contain `:'.
25582	 test -f "$ac_f" ||
25583	   case $ac_f in
25584	   [\\/$]*) false;;
25585	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25586	   esac ||
25587	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25588echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25589   { (exit 1); exit 1; }; };;
25590      esac
25591      ac_file_inputs="$ac_file_inputs $ac_f"
25592    done
25593
25594    # Let's still pretend it is `configure' which instantiates (i.e., don't
25595    # use $as_me), people would be surprised to read:
25596    #    /* config.h.  Generated by config.status.  */
25597    configure_input="Generated from "`IFS=:
25598	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25599    if test x"$ac_file" != x-; then
25600      configure_input="$ac_file.  $configure_input"
25601      { echo "$as_me:$LINENO: creating $ac_file" >&5
25602echo "$as_me: creating $ac_file" >&6;}
25603    fi
25604
25605    case $ac_tag in
25606    *:-:* | *:-) cat >"$tmp/stdin";;
25607    esac
25608    ;;
25609  esac
25610
25611  ac_dir=`$as_dirname -- "$ac_file" ||
25612$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25613	 X"$ac_file" : 'X\(//\)[^/]' \| \
25614	 X"$ac_file" : 'X\(//\)$' \| \
25615	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25616echo X"$ac_file" |
25617    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25618	    s//\1/
25619	    q
25620	  }
25621	  /^X\(\/\/\)[^/].*/{
25622	    s//\1/
25623	    q
25624	  }
25625	  /^X\(\/\/\)$/{
25626	    s//\1/
25627	    q
25628	  }
25629	  /^X\(\/\).*/{
25630	    s//\1/
25631	    q
25632	  }
25633	  s/.*/./; q'`
25634  { as_dir="$ac_dir"
25635  case $as_dir in #(
25636  -*) as_dir=./$as_dir;;
25637  esac
25638  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25639    as_dirs=
25640    while :; do
25641      case $as_dir in #(
25642      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25643      *) as_qdir=$as_dir;;
25644      esac
25645      as_dirs="'$as_qdir' $as_dirs"
25646      as_dir=`$as_dirname -- "$as_dir" ||
25647$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25648	 X"$as_dir" : 'X\(//\)[^/]' \| \
25649	 X"$as_dir" : 'X\(//\)$' \| \
25650	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25651echo X"$as_dir" |
25652    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25653	    s//\1/
25654	    q
25655	  }
25656	  /^X\(\/\/\)[^/].*/{
25657	    s//\1/
25658	    q
25659	  }
25660	  /^X\(\/\/\)$/{
25661	    s//\1/
25662	    q
25663	  }
25664	  /^X\(\/\).*/{
25665	    s//\1/
25666	    q
25667	  }
25668	  s/.*/./; q'`
25669      test -d "$as_dir" && break
25670    done
25671    test -z "$as_dirs" || eval "mkdir $as_dirs"
25672  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25673echo "$as_me: error: cannot create directory $as_dir" >&2;}
25674   { (exit 1); exit 1; }; }; }
25675  ac_builddir=.
25676
25677case "$ac_dir" in
25678.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25679*)
25680  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25681  # A ".." for each directory in $ac_dir_suffix.
25682  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25683  case $ac_top_builddir_sub in
25684  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25685  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25686  esac ;;
25687esac
25688ac_abs_top_builddir=$ac_pwd
25689ac_abs_builddir=$ac_pwd$ac_dir_suffix
25690# for backward compatibility:
25691ac_top_builddir=$ac_top_build_prefix
25692
25693case $srcdir in
25694  .)  # We are building in place.
25695    ac_srcdir=.
25696    ac_top_srcdir=$ac_top_builddir_sub
25697    ac_abs_top_srcdir=$ac_pwd ;;
25698  [\\/]* | ?:[\\/]* )  # Absolute name.
25699    ac_srcdir=$srcdir$ac_dir_suffix;
25700    ac_top_srcdir=$srcdir
25701    ac_abs_top_srcdir=$srcdir ;;
25702  *) # Relative name.
25703    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25704    ac_top_srcdir=$ac_top_build_prefix$srcdir
25705    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25706esac
25707ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25708
25709
25710  case $ac_mode in
25711  :F)
25712  #
25713  # CONFIG_FILE
25714  #
25715
25716  case $INSTALL in
25717  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25718  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25719  esac
25720  ac_MKDIR_P=$MKDIR_P
25721  case $MKDIR_P in
25722  [\\/$]* | ?:[\\/]* ) ;;
25723  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25724  esac
25725_ACEOF
25726
25727cat >>$CONFIG_STATUS <<\_ACEOF
25728# If the template does not know about datarootdir, expand it.
25729# FIXME: This hack should be removed a few years after 2.60.
25730ac_datarootdir_hack=; ac_datarootdir_seen=
25731
25732case `sed -n '/datarootdir/ {
25733  p
25734  q
25735}
25736/@datadir@/p
25737/@docdir@/p
25738/@infodir@/p
25739/@localedir@/p
25740/@mandir@/p
25741' $ac_file_inputs` in
25742*datarootdir*) ac_datarootdir_seen=yes;;
25743*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25744  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25745echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25746_ACEOF
25747cat >>$CONFIG_STATUS <<_ACEOF
25748  ac_datarootdir_hack='
25749  s&@datadir@&$datadir&g
25750  s&@docdir@&$docdir&g
25751  s&@infodir@&$infodir&g
25752  s&@localedir@&$localedir&g
25753  s&@mandir@&$mandir&g
25754    s&\\\${datarootdir}&$datarootdir&g' ;;
25755esac
25756_ACEOF
25757
25758# Neutralize VPATH when `$srcdir' = `.'.
25759# Shell code in configure.ac might set extrasub.
25760# FIXME: do we really want to maintain this feature?
25761cat >>$CONFIG_STATUS <<_ACEOF
25762  sed "$ac_vpsub
25763$extrasub
25764_ACEOF
25765cat >>$CONFIG_STATUS <<\_ACEOF
25766:t
25767/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25768s&@configure_input@&$configure_input&;t t
25769s&@top_builddir@&$ac_top_builddir_sub&;t t
25770s&@srcdir@&$ac_srcdir&;t t
25771s&@abs_srcdir@&$ac_abs_srcdir&;t t
25772s&@top_srcdir@&$ac_top_srcdir&;t t
25773s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25774s&@builddir@&$ac_builddir&;t t
25775s&@abs_builddir@&$ac_abs_builddir&;t t
25776s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25777s&@INSTALL@&$ac_INSTALL&;t t
25778s&@MKDIR_P@&$ac_MKDIR_P&;t t
25779$ac_datarootdir_hack
25780" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25781
25782test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25783  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25784  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25785  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25786which seems to be undefined.  Please make sure it is defined." >&5
25787echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25788which seems to be undefined.  Please make sure it is defined." >&2;}
25789
25790  rm -f "$tmp/stdin"
25791  case $ac_file in
25792  -) cat "$tmp/out"; rm -f "$tmp/out";;
25793  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25794  esac
25795 ;;
25796  :H)
25797  #
25798  # CONFIG_HEADER
25799  #
25800_ACEOF
25801
25802# Transform confdefs.h into a sed script `conftest.defines', that
25803# substitutes the proper values into config.h.in to produce config.h.
25804rm -f conftest.defines conftest.tail
25805# First, append a space to every undef/define line, to ease matching.
25806echo 's/$/ /' >conftest.defines
25807# Then, protect against being on the right side of a sed subst, or in
25808# an unquoted here document, in config.status.  If some macros were
25809# called several times there might be several #defines for the same
25810# symbol, which is useless.  But do not sort them, since the last
25811# AC_DEFINE must be honored.
25812ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25813# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25814# NAME is the cpp macro being defined, VALUE is the value it is being given.
25815# PARAMS is the parameter list in the macro definition--in most cases, it's
25816# just an empty string.
25817ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
25818ac_dB='\\)[	 (].*,\\1define\\2'
25819ac_dC=' '
25820ac_dD=' ,'
25821
25822uniq confdefs.h |
25823  sed -n '
25824	t rset
25825	:rset
25826	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
25827	t ok
25828	d
25829	:ok
25830	s/[\\&,]/\\&/g
25831	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25832	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25833  ' >>conftest.defines
25834
25835# Remove the space that was appended to ease matching.
25836# Then replace #undef with comments.  This is necessary, for
25837# example, in the case of _POSIX_SOURCE, which is predefined and required
25838# on some systems where configure will not decide to define it.
25839# (The regexp can be short, since the line contains either #define or #undef.)
25840echo 's/ $//
25841s,^[	 #]*u.*,/* & */,' >>conftest.defines
25842
25843# Break up conftest.defines:
25844ac_max_sed_lines=50
25845
25846# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25847# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25848# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25849# et cetera.
25850ac_in='$ac_file_inputs'
25851ac_out='"$tmp/out1"'
25852ac_nxt='"$tmp/out2"'
25853
25854while :
25855do
25856  # Write a here document:
25857    cat >>$CONFIG_STATUS <<_ACEOF
25858    # First, check the format of the line:
25859    cat >"\$tmp/defines.sed" <<\\CEOF
25860/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
25861/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
25862b
25863:def
25864_ACEOF
25865  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25866  echo 'CEOF
25867    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25868  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25869  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25870  grep . conftest.tail >/dev/null || break
25871  rm -f conftest.defines
25872  mv conftest.tail conftest.defines
25873done
25874rm -f conftest.defines conftest.tail
25875
25876echo "ac_result=$ac_in" >>$CONFIG_STATUS
25877cat >>$CONFIG_STATUS <<\_ACEOF
25878  if test x"$ac_file" != x-; then
25879    echo "/* $configure_input  */" >"$tmp/config.h"
25880    cat "$ac_result" >>"$tmp/config.h"
25881    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25882      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25883echo "$as_me: $ac_file is unchanged" >&6;}
25884    else
25885      rm -f $ac_file
25886      mv "$tmp/config.h" $ac_file
25887    fi
25888  else
25889    echo "/* $configure_input  */"
25890    cat "$ac_result"
25891  fi
25892  rm -f "$tmp/out12"
25893# Compute $ac_file's index in $config_headers.
25894_am_arg=$ac_file
25895_am_stamp_count=1
25896for _am_header in $config_headers :; do
25897  case $_am_header in
25898    $_am_arg | $_am_arg:* )
25899      break ;;
25900    * )
25901      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25902  esac
25903done
25904echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25905$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25906	 X"$_am_arg" : 'X\(//\)[^/]' \| \
25907	 X"$_am_arg" : 'X\(//\)$' \| \
25908	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25909echo X"$_am_arg" |
25910    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25911	    s//\1/
25912	    q
25913	  }
25914	  /^X\(\/\/\)[^/].*/{
25915	    s//\1/
25916	    q
25917	  }
25918	  /^X\(\/\/\)$/{
25919	    s//\1/
25920	    q
25921	  }
25922	  /^X\(\/\).*/{
25923	    s//\1/
25924	    q
25925	  }
25926	  s/.*/./; q'`/stamp-h$_am_stamp_count
25927 ;;
25928
25929  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25930echo "$as_me: executing $ac_file commands" >&6;}
25931 ;;
25932  esac
25933
25934
25935  case $ac_file$ac_mode in
25936    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25937  # Strip MF so we end up with the name of the file.
25938  mf=`echo "$mf" | sed -e 's/:.*$//'`
25939  # Check whether this is an Automake generated Makefile or not.
25940  # We used to match only the files named `Makefile.in', but
25941  # some people rename them; so instead we look at the file content.
25942  # Grep'ing the first line is not enough: some people post-process
25943  # each Makefile.in and add a new line on top of each file to say so.
25944  # Grep'ing the whole file is not good either: AIX grep has a line
25945  # limit of 2048, but all sed's we know have understand at least 4000.
25946  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25947    dirpart=`$as_dirname -- "$mf" ||
25948$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25949	 X"$mf" : 'X\(//\)[^/]' \| \
25950	 X"$mf" : 'X\(//\)$' \| \
25951	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25952echo X"$mf" |
25953    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25954	    s//\1/
25955	    q
25956	  }
25957	  /^X\(\/\/\)[^/].*/{
25958	    s//\1/
25959	    q
25960	  }
25961	  /^X\(\/\/\)$/{
25962	    s//\1/
25963	    q
25964	  }
25965	  /^X\(\/\).*/{
25966	    s//\1/
25967	    q
25968	  }
25969	  s/.*/./; q'`
25970  else
25971    continue
25972  fi
25973  # Extract the definition of DEPDIR, am__include, and am__quote
25974  # from the Makefile without running `make'.
25975  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25976  test -z "$DEPDIR" && continue
25977  am__include=`sed -n 's/^am__include = //p' < "$mf"`
25978  test -z "am__include" && continue
25979  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25980  # When using ansi2knr, U may be empty or an underscore; expand it
25981  U=`sed -n 's/^U = //p' < "$mf"`
25982  # Find all dependency output files, they are included files with
25983  # $(DEPDIR) in their names.  We invoke sed twice because it is the
25984  # simplest approach to changing $(DEPDIR) to its actual value in the
25985  # expansion.
25986  for file in `sed -n "
25987    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25988       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25989    # Make sure the directory exists.
25990    test -f "$dirpart/$file" && continue
25991    fdir=`$as_dirname -- "$file" ||
25992$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25993	 X"$file" : 'X\(//\)[^/]' \| \
25994	 X"$file" : 'X\(//\)$' \| \
25995	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25996echo X"$file" |
25997    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25998	    s//\1/
25999	    q
26000	  }
26001	  /^X\(\/\/\)[^/].*/{
26002	    s//\1/
26003	    q
26004	  }
26005	  /^X\(\/\/\)$/{
26006	    s//\1/
26007	    q
26008	  }
26009	  /^X\(\/\).*/{
26010	    s//\1/
26011	    q
26012	  }
26013	  s/.*/./; q'`
26014    { as_dir=$dirpart/$fdir
26015  case $as_dir in #(
26016  -*) as_dir=./$as_dir;;
26017  esac
26018  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26019    as_dirs=
26020    while :; do
26021      case $as_dir in #(
26022      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26023      *) as_qdir=$as_dir;;
26024      esac
26025      as_dirs="'$as_qdir' $as_dirs"
26026      as_dir=`$as_dirname -- "$as_dir" ||
26027$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26028	 X"$as_dir" : 'X\(//\)[^/]' \| \
26029	 X"$as_dir" : 'X\(//\)$' \| \
26030	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26031echo X"$as_dir" |
26032    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26033	    s//\1/
26034	    q
26035	  }
26036	  /^X\(\/\/\)[^/].*/{
26037	    s//\1/
26038	    q
26039	  }
26040	  /^X\(\/\/\)$/{
26041	    s//\1/
26042	    q
26043	  }
26044	  /^X\(\/\).*/{
26045	    s//\1/
26046	    q
26047	  }
26048	  s/.*/./; q'`
26049      test -d "$as_dir" && break
26050    done
26051    test -z "$as_dirs" || eval "mkdir $as_dirs"
26052  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26053echo "$as_me: error: cannot create directory $as_dir" >&2;}
26054   { (exit 1); exit 1; }; }; }
26055    # echo "creating $dirpart/$file"
26056    echo '# dummy' > "$dirpart/$file"
26057  done
26058done
26059 ;;
26060
26061  esac
26062done # for ac_tag
26063
26064
26065{ (exit 0); exit 0; }
26066_ACEOF
26067chmod +x $CONFIG_STATUS
26068ac_clean_files=$ac_clean_files_save
26069
26070
26071# configure is writing to config.log, and then calls config.status.
26072# config.status does its own redirection, appending to config.log.
26073# Unfortunately, on DOS this fails, as config.log is still kept open
26074# by configure, so config.status won't be able to write to it; its
26075# output is simply discarded.  So we exec the FD to /dev/null,
26076# effectively closing config.log, so it can be properly (re)opened and
26077# appended to by config.status.  When coming back to configure, we
26078# need to make the FD available again.
26079if test "$no_create" != yes; then
26080  ac_cs_success=:
26081  ac_config_status_args=
26082  test "$silent" = yes &&
26083    ac_config_status_args="$ac_config_status_args --quiet"
26084  exec 5>/dev/null
26085  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26086  exec 5>>config.log
26087  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26088  # would make configure fail if this is the last instruction.
26089  $ac_cs_success || { (exit 1); exit 1; }
26090fi
26091
26092
26093man_pages_suffix=$LIBMAN_SUFFIX
26094if test -z "$man_pages_suffix"; then
26095    man_pages_suffix=none
26096fi
26097
26098echo ""
26099echo "X11 will be built with the following settings:"
26100echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
26101echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
26102echo " Use XCB:                                 "$ac_cv_use_xcb
26103echo " Threading support:                       "$xthreads
26104echo " Use Threads safe API:                    "$mtsafeapi
26105echo " Threads stubs in libX11:                 "$thrstubs
26106echo " XCMS:                                    "$XCMS
26107echo " Internationalization support:            "$XLOCALE
26108echo " XF86BigFont support:                     "$XF86BIGFONT
26109echo " XKB support:                             "$XKB
26110echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
26111echo " Manual pages suffix:                     "$man_pages_suffix
26112echo " Compose table cache enabled:             "$COMPOSECACHE
26113echo ""
26114