configure revision 61b2299d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for libX11 1.2.
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.2'
732PACKAGE_STRING='libX11 1.2'
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
865DSYMUTIL
866NMEDIT
867CPP
868CXX
869CXXFLAGS
870ac_ct_CXX
871CXXDEPMODE
872am__fastdepCXX_TRUE
873am__fastdepCXX_FALSE
874CXXCPP
875F77
876FFLAGS
877ac_ct_F77
878LIBTOOL
879DOLT_BASH
880LTCOMPILE
881LTCXXCOMPILE
882CWARNFLAGS
883CC_FOR_BUILD
884RAWCPP
885RAWCPPFLAGS
886XCB_TRUE
887XCB_FALSE
888PKG_CONFIG
889XPROTO_CFLAGS
890XPROTO_LIBS
891XDMCP_CFLAGS
892XDMCP_LIBS
893X11_EXTRA_DEPS
894X11_CFLAGS
895X11_LIBS
896I18N_MODULE_LIBS
897XLIB_LOADABLE_I18N_TRUE
898XLIB_LOADABLE_I18N_FALSE
899WCHAR32
900OS2_TRUE
901OS2_FALSE
902LAUNCHD
903THRSTUBS_TRUE
904THRSTUBS_FALSE
905XTHREADLIB
906XTHREAD_CFLAGS
907KEYSYMDEF
908UDC_TRUE
909UDC_FALSE
910XCMS_TRUE
911XCMS_FALSE
912XLOCALE_TRUE
913XLOCALE_FALSE
914BIGFONT_CFLAGS
915BIGFONT_LIBS
916APP_MAN_SUFFIX
917LIB_MAN_SUFFIX
918FILE_MAN_SUFFIX
919MISC_MAN_SUFFIX
920DRIVER_MAN_SUFFIX
921ADMIN_MAN_SUFFIX
922APP_MAN_DIR
923LIB_MAN_DIR
924FILE_MAN_DIR
925MISC_MAN_DIR
926DRIVER_MAN_DIR
927ADMIN_MAN_DIR
928MANPAGES_TRUE
929MANPAGES_FALSE
930XKB_TRUE
931XKB_FALSE
932XKBPROTO_CFLAGS
933XKBPROTO_LIBS
934XKBPROTO_REQUIRES
935LINT
936LINT_FLAGS
937LINT_TRUE
938LINT_FALSE
939LINTLIB
940MAKE_LINT_LIB_TRUE
941MAKE_LINT_LIB_FALSE
942X11_DATADIR
943X11_LIBDIR
944XLOCALEDATADIR
945X11_LOCALEDATADIR
946XLOCALELIBDIR
947X11_LOCALELIBDIR
948XLOCALEDIR
949X11_LOCALEDIR
950XKEYSYMDB
951XERRORDB
952MALLOC_ZERO_CFLAGS
953XMALLOC_ZERO_CFLAGS
954XTMALLOC_ZERO_CFLAGS
955CHANGELOG_CMD
956distcleancheck_listfiles
957LIBOBJS
958LTLIBOBJS'
959ac_subst_files=''
960      ac_precious_vars='build_alias
961host_alias
962target_alias
963CC
964CFLAGS
965LDFLAGS
966LIBS
967CPPFLAGS
968CPP
969CXX
970CXXFLAGS
971CCC
972CXXCPP
973F77
974FFLAGS
975PKG_CONFIG
976XPROTO_CFLAGS
977XPROTO_LIBS
978XDMCP_CFLAGS
979XDMCP_LIBS
980X11_CFLAGS
981X11_LIBS
982BIGFONT_CFLAGS
983BIGFONT_LIBS
984XKBPROTO_CFLAGS
985XKBPROTO_LIBS'
986
987
988# Initialize some variables set by options.
989ac_init_help=
990ac_init_version=false
991# The variables have the same names as the options, with
992# dashes changed to underlines.
993cache_file=/dev/null
994exec_prefix=NONE
995no_create=
996no_recursion=
997prefix=NONE
998program_prefix=NONE
999program_suffix=NONE
1000program_transform_name=s,x,x,
1001silent=
1002site=
1003srcdir=
1004verbose=
1005x_includes=NONE
1006x_libraries=NONE
1007
1008# Installation directory options.
1009# These are left unexpanded so users can "make install exec_prefix=/foo"
1010# and all the variables that are supposed to be based on exec_prefix
1011# by default will actually change.
1012# Use braces instead of parens because sh, perl, etc. also accept them.
1013# (The list follows the same order as the GNU Coding Standards.)
1014bindir='${exec_prefix}/bin'
1015sbindir='${exec_prefix}/sbin'
1016libexecdir='${exec_prefix}/libexec'
1017datarootdir='${prefix}/share'
1018datadir='${datarootdir}'
1019sysconfdir='${prefix}/etc'
1020sharedstatedir='${prefix}/com'
1021localstatedir='${prefix}/var'
1022includedir='${prefix}/include'
1023oldincludedir='/usr/include'
1024docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1025infodir='${datarootdir}/info'
1026htmldir='${docdir}'
1027dvidir='${docdir}'
1028pdfdir='${docdir}'
1029psdir='${docdir}'
1030libdir='${exec_prefix}/lib'
1031localedir='${datarootdir}/locale'
1032mandir='${datarootdir}/man'
1033
1034ac_prev=
1035ac_dashdash=
1036for ac_option
1037do
1038  # If the previous option needs an argument, assign it.
1039  if test -n "$ac_prev"; then
1040    eval $ac_prev=\$ac_option
1041    ac_prev=
1042    continue
1043  fi
1044
1045  case $ac_option in
1046  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1047  *)	ac_optarg=yes ;;
1048  esac
1049
1050  # Accept the important Cygnus configure options, so we can diagnose typos.
1051
1052  case $ac_dashdash$ac_option in
1053  --)
1054    ac_dashdash=yes ;;
1055
1056  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1057    ac_prev=bindir ;;
1058  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1059    bindir=$ac_optarg ;;
1060
1061  -build | --build | --buil | --bui | --bu)
1062    ac_prev=build_alias ;;
1063  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1064    build_alias=$ac_optarg ;;
1065
1066  -cache-file | --cache-file | --cache-fil | --cache-fi \
1067  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1068    ac_prev=cache_file ;;
1069  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1070  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1071    cache_file=$ac_optarg ;;
1072
1073  --config-cache | -C)
1074    cache_file=config.cache ;;
1075
1076  -datadir | --datadir | --datadi | --datad)
1077    ac_prev=datadir ;;
1078  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1079    datadir=$ac_optarg ;;
1080
1081  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1082  | --dataroo | --dataro | --datar)
1083    ac_prev=datarootdir ;;
1084  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1085  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1086    datarootdir=$ac_optarg ;;
1087
1088  -disable-* | --disable-*)
1089    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090    # Reject names that are not valid shell variable names.
1091    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1093   { (exit 1); exit 1; }; }
1094    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1095    eval enable_$ac_feature=no ;;
1096
1097  -docdir | --docdir | --docdi | --doc | --do)
1098    ac_prev=docdir ;;
1099  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1100    docdir=$ac_optarg ;;
1101
1102  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1103    ac_prev=dvidir ;;
1104  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1105    dvidir=$ac_optarg ;;
1106
1107  -enable-* | --enable-*)
1108    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1112   { (exit 1); exit 1; }; }
1113    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1114    eval enable_$ac_feature=\$ac_optarg ;;
1115
1116  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1117  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1118  | --exec | --exe | --ex)
1119    ac_prev=exec_prefix ;;
1120  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1121  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1122  | --exec=* | --exe=* | --ex=*)
1123    exec_prefix=$ac_optarg ;;
1124
1125  -gas | --gas | --ga | --g)
1126    # Obsolete; use --with-gas.
1127    with_gas=yes ;;
1128
1129  -help | --help | --hel | --he | -h)
1130    ac_init_help=long ;;
1131  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1132    ac_init_help=recursive ;;
1133  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1134    ac_init_help=short ;;
1135
1136  -host | --host | --hos | --ho)
1137    ac_prev=host_alias ;;
1138  -host=* | --host=* | --hos=* | --ho=*)
1139    host_alias=$ac_optarg ;;
1140
1141  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142    ac_prev=htmldir ;;
1143  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144  | --ht=*)
1145    htmldir=$ac_optarg ;;
1146
1147  -includedir | --includedir | --includedi | --included | --include \
1148  | --includ | --inclu | --incl | --inc)
1149    ac_prev=includedir ;;
1150  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1151  | --includ=* | --inclu=* | --incl=* | --inc=*)
1152    includedir=$ac_optarg ;;
1153
1154  -infodir | --infodir | --infodi | --infod | --info | --inf)
1155    ac_prev=infodir ;;
1156  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1157    infodir=$ac_optarg ;;
1158
1159  -libdir | --libdir | --libdi | --libd)
1160    ac_prev=libdir ;;
1161  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1162    libdir=$ac_optarg ;;
1163
1164  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1165  | --libexe | --libex | --libe)
1166    ac_prev=libexecdir ;;
1167  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1168  | --libexe=* | --libex=* | --libe=*)
1169    libexecdir=$ac_optarg ;;
1170
1171  -localedir | --localedir | --localedi | --localed | --locale)
1172    ac_prev=localedir ;;
1173  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1174    localedir=$ac_optarg ;;
1175
1176  -localstatedir | --localstatedir | --localstatedi | --localstated \
1177  | --localstate | --localstat | --localsta | --localst | --locals)
1178    ac_prev=localstatedir ;;
1179  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1180  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1181    localstatedir=$ac_optarg ;;
1182
1183  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184    ac_prev=mandir ;;
1185  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1186    mandir=$ac_optarg ;;
1187
1188  -nfp | --nfp | --nf)
1189    # Obsolete; use --without-fp.
1190    with_fp=no ;;
1191
1192  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193  | --no-cr | --no-c | -n)
1194    no_create=yes ;;
1195
1196  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1197  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1198    no_recursion=yes ;;
1199
1200  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1201  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1202  | --oldin | --oldi | --old | --ol | --o)
1203    ac_prev=oldincludedir ;;
1204  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1205  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1206  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1207    oldincludedir=$ac_optarg ;;
1208
1209  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210    ac_prev=prefix ;;
1211  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1212    prefix=$ac_optarg ;;
1213
1214  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1215  | --program-pre | --program-pr | --program-p)
1216    ac_prev=program_prefix ;;
1217  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1218  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1219    program_prefix=$ac_optarg ;;
1220
1221  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1222  | --program-suf | --program-su | --program-s)
1223    ac_prev=program_suffix ;;
1224  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1225  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1226    program_suffix=$ac_optarg ;;
1227
1228  -program-transform-name | --program-transform-name \
1229  | --program-transform-nam | --program-transform-na \
1230  | --program-transform-n | --program-transform- \
1231  | --program-transform | --program-transfor \
1232  | --program-transfo | --program-transf \
1233  | --program-trans | --program-tran \
1234  | --progr-tra | --program-tr | --program-t)
1235    ac_prev=program_transform_name ;;
1236  -program-transform-name=* | --program-transform-name=* \
1237  | --program-transform-nam=* | --program-transform-na=* \
1238  | --program-transform-n=* | --program-transform-=* \
1239  | --program-transform=* | --program-transfor=* \
1240  | --program-transfo=* | --program-transf=* \
1241  | --program-trans=* | --program-tran=* \
1242  | --progr-tra=* | --program-tr=* | --program-t=*)
1243    program_transform_name=$ac_optarg ;;
1244
1245  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246    ac_prev=pdfdir ;;
1247  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1248    pdfdir=$ac_optarg ;;
1249
1250  -psdir | --psdir | --psdi | --psd | --ps)
1251    ac_prev=psdir ;;
1252  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1253    psdir=$ac_optarg ;;
1254
1255  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256  | -silent | --silent | --silen | --sile | --sil)
1257    silent=yes ;;
1258
1259  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260    ac_prev=sbindir ;;
1261  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262  | --sbi=* | --sb=*)
1263    sbindir=$ac_optarg ;;
1264
1265  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1266  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1267  | --sharedst | --shareds | --shared | --share | --shar \
1268  | --sha | --sh)
1269    ac_prev=sharedstatedir ;;
1270  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1271  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1272  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273  | --sha=* | --sh=*)
1274    sharedstatedir=$ac_optarg ;;
1275
1276  -site | --site | --sit)
1277    ac_prev=site ;;
1278  -site=* | --site=* | --sit=*)
1279    site=$ac_optarg ;;
1280
1281  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282    ac_prev=srcdir ;;
1283  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1284    srcdir=$ac_optarg ;;
1285
1286  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1287  | --syscon | --sysco | --sysc | --sys | --sy)
1288    ac_prev=sysconfdir ;;
1289  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1290  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1291    sysconfdir=$ac_optarg ;;
1292
1293  -target | --target | --targe | --targ | --tar | --ta | --t)
1294    ac_prev=target_alias ;;
1295  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1296    target_alias=$ac_optarg ;;
1297
1298  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299    verbose=yes ;;
1300
1301  -version | --version | --versio | --versi | --vers | -V)
1302    ac_init_version=: ;;
1303
1304  -with-* | --with-*)
1305    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1306    # Reject names that are not valid shell variable names.
1307    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1308      { echo "$as_me: error: invalid package name: $ac_package" >&2
1309   { (exit 1); exit 1; }; }
1310    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1311    eval with_$ac_package=\$ac_optarg ;;
1312
1313  -without-* | --without-*)
1314    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315    # Reject names that are not valid shell variable names.
1316    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317      { echo "$as_me: error: invalid package name: $ac_package" >&2
1318   { (exit 1); exit 1; }; }
1319    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1320    eval with_$ac_package=no ;;
1321
1322  --x)
1323    # Obsolete; use --with-x.
1324    with_x=yes ;;
1325
1326  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327  | --x-incl | --x-inc | --x-in | --x-i)
1328    ac_prev=x_includes ;;
1329  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331    x_includes=$ac_optarg ;;
1332
1333  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335    ac_prev=x_libraries ;;
1336  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338    x_libraries=$ac_optarg ;;
1339
1340  -*) { echo "$as_me: error: unrecognized option: $ac_option
1341Try \`$0 --help' for more information." >&2
1342   { (exit 1); exit 1; }; }
1343    ;;
1344
1345  *=*)
1346    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347    # Reject names that are not valid shell variable names.
1348    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1349      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1350   { (exit 1); exit 1; }; }
1351    eval $ac_envvar=\$ac_optarg
1352    export $ac_envvar ;;
1353
1354  *)
1355    # FIXME: should be removed in autoconf 3.0.
1356    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1360    ;;
1361
1362  esac
1363done
1364
1365if test -n "$ac_prev"; then
1366  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367  { echo "$as_me: error: missing argument to $ac_option" >&2
1368   { (exit 1); exit 1; }; }
1369fi
1370
1371# Be sure to have absolute directory names.
1372for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373		datadir sysconfdir sharedstatedir localstatedir includedir \
1374		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375		libdir localedir mandir
1376do
1377  eval ac_val=\$$ac_var
1378  case $ac_val in
1379    [\\/$]* | ?:[\\/]* )  continue;;
1380    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381  esac
1382  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1383   { (exit 1); exit 1; }; }
1384done
1385
1386# There might be people who depend on the old broken behavior: `$host'
1387# used to hold the argument of --host etc.
1388# FIXME: To remove some day.
1389build=$build_alias
1390host=$host_alias
1391target=$target_alias
1392
1393# FIXME: To remove some day.
1394if test "x$host_alias" != x; then
1395  if test "x$build_alias" = x; then
1396    cross_compiling=maybe
1397    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398    If a cross compiler is detected then cross compile mode will be used." >&2
1399  elif test "x$build_alias" != "x$host_alias"; then
1400    cross_compiling=yes
1401  fi
1402fi
1403
1404ac_tool_prefix=
1405test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407test "$silent" = yes && exec 6>/dev/null
1408
1409
1410ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411ac_ls_di=`ls -di .` &&
1412ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413  { echo "$as_me: error: Working directory cannot be determined" >&2
1414   { (exit 1); exit 1; }; }
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416  { echo "$as_me: error: pwd does not report name of working directory" >&2
1417   { (exit 1); exit 1; }; }
1418
1419
1420# Find the source files, if location was not specified.
1421if test -z "$srcdir"; then
1422  ac_srcdir_defaulted=yes
1423  # Try the directory containing this script, then the parent directory.
1424  ac_confdir=`$as_dirname -- "$0" ||
1425$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426	 X"$0" : 'X\(//\)[^/]' \| \
1427	 X"$0" : 'X\(//\)$' \| \
1428	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1429echo X"$0" |
1430    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431	    s//\1/
1432	    q
1433	  }
1434	  /^X\(\/\/\)[^/].*/{
1435	    s//\1/
1436	    q
1437	  }
1438	  /^X\(\/\/\)$/{
1439	    s//\1/
1440	    q
1441	  }
1442	  /^X\(\/\).*/{
1443	    s//\1/
1444	    q
1445	  }
1446	  s/.*/./; q'`
1447  srcdir=$ac_confdir
1448  if test ! -r "$srcdir/$ac_unique_file"; then
1449    srcdir=..
1450  fi
1451else
1452  ac_srcdir_defaulted=no
1453fi
1454if test ! -r "$srcdir/$ac_unique_file"; then
1455  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1457   { (exit 1); exit 1; }; }
1458fi
1459ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460ac_abs_confdir=`(
1461	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1462   { (exit 1); exit 1; }; }
1463	pwd)`
1464# When building in place, set srcdir=.
1465if test "$ac_abs_confdir" = "$ac_pwd"; then
1466  srcdir=.
1467fi
1468# Remove unnecessary trailing slashes from srcdir.
1469# Double slashes in file names in object file debugging info
1470# mess up M-x gdb in Emacs.
1471case $srcdir in
1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473esac
1474for ac_var in $ac_precious_vars; do
1475  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476  eval ac_env_${ac_var}_value=\$${ac_var}
1477  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479done
1480
1481#
1482# Report the --help message.
1483#
1484if test "$ac_init_help" = "long"; then
1485  # Omit some internal or obsolete options to make the list less imposing.
1486  # This message is too long to be a string in the A/UX 3.1 sh.
1487  cat <<_ACEOF
1488\`configure' configures libX11 1.2 to adapt to many kinds of systems.
1489
1490Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493VAR=VALUE.  See below for descriptions of some of the useful variables.
1494
1495Defaults for the options are specified in brackets.
1496
1497Configuration:
1498  -h, --help              display this help and exit
1499      --help=short        display options specific to this package
1500      --help=recursive    display the short help of all the included packages
1501  -V, --version           display version information and exit
1502  -q, --quiet, --silent   do not print \`checking...' messages
1503      --cache-file=FILE   cache test results in FILE [disabled]
1504  -C, --config-cache      alias for \`--cache-file=config.cache'
1505  -n, --no-create         do not create output files
1506      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1507
1508Installation directories:
1509  --prefix=PREFIX         install architecture-independent files in PREFIX
1510			  [$ac_default_prefix]
1511  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1512			  [PREFIX]
1513
1514By default, \`make install' will install all the files in
1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1516an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517for instance \`--prefix=\$HOME'.
1518
1519For better control, use the options below.
1520
1521Fine tuning of the installation directories:
1522  --bindir=DIR           user executables [EPREFIX/bin]
1523  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1524  --libexecdir=DIR       program executables [EPREFIX/libexec]
1525  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1526  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1527  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1528  --libdir=DIR           object code libraries [EPREFIX/lib]
1529  --includedir=DIR       C header files [PREFIX/include]
1530  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1531  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1532  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1533  --infodir=DIR          info documentation [DATAROOTDIR/info]
1534  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1535  --mandir=DIR           man documentation [DATAROOTDIR/man]
1536  --docdir=DIR           documentation root [DATAROOTDIR/doc/libX11]
1537  --htmldir=DIR          html documentation [DOCDIR]
1538  --dvidir=DIR           dvi documentation [DOCDIR]
1539  --pdfdir=DIR           pdf documentation [DOCDIR]
1540  --psdir=DIR            ps documentation [DOCDIR]
1541_ACEOF
1542
1543  cat <<\_ACEOF
1544
1545Program names:
1546  --program-prefix=PREFIX            prepend PREFIX to installed program names
1547  --program-suffix=SUFFIX            append SUFFIX to installed program names
1548  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1549
1550System types:
1551  --build=BUILD     configure for building on BUILD [guessed]
1552  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1553_ACEOF
1554fi
1555
1556if test -n "$ac_init_help"; then
1557  case $ac_init_help in
1558     short | recursive ) echo "Configuration of libX11 1.2:";;
1559   esac
1560  cat <<\_ACEOF
1561
1562Optional Features:
1563  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1564  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1565  --enable-maintainer-mode  enable make rules and dependencies not useful
1566			  (and sometimes confusing) to the casual installer
1567  --enable-shared[=PKGS]  build shared libraries [default=yes]
1568  --enable-static[=PKGS]  build static libraries [default=yes]
1569  --enable-fast-install[=PKGS]
1570                          optimize for fast installation [default=yes]
1571  --disable-dependency-tracking  speeds up one-time build
1572  --enable-dependency-tracking   do not reject slow dependency extractors
1573  --disable-libtool-lock  avoid locking (might break parallel builds)
1574  --enable-secure-rpc     Enable Secure RPC
1575  --enable-loadable-i18n  Controls loadable i18n module support
1576  --disable-loadable-xcursor
1577                          Controls loadable xcursor library support
1578  --disable-xthreads      Disable Xlib support for Multithreading
1579  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1580  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1581  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1582  --disable-xf86bigfont   Disable XF86BigFont extension support
1583  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1584  --enable-man-pages=section
1585                          Choose manual section for installing man pages
1586  --disable-composecache  Disable compose table cache support
1587  --enable-lint-library   Create lint library (default: disabled)
1588  --enable-malloc0returnsnull
1589                          malloc(0) returns NULL (default: auto)
1590
1591Optional Packages:
1592  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1593  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1594  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1595  --with-pic              try to use only PIC/non-PIC objects [default=use
1596                          both]
1597  --with-tags[=TAGS]      include additional configurations [automatic]
1598  --with-xcb              use XCB for low-level protocol implementation
1599  --with-local-transport-order=LIST
1600                          preference sorted list of transport types to try for
1601                          local connections
1602  --with-launchd          Build with support for Apple's launchd (default:
1603                          auto)
1604  --with-lint             Use a lint-style source code checker (default:
1605                          disabled)
1606  --with-release-version=STRING
1607                          Use release version string in package name
1608
1609Some influential environment variables:
1610  CC          C compiler command
1611  CFLAGS      C compiler flags
1612  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1613              nonstandard directory <lib dir>
1614  LIBS        libraries to pass to the linker, e.g. -l<library>
1615  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1616              you have headers in a nonstandard directory <include dir>
1617  CPP         C preprocessor
1618  CXX         C++ compiler command
1619  CXXFLAGS    C++ compiler flags
1620  CXXCPP      C++ preprocessor
1621  F77         Fortran 77 compiler command
1622  FFLAGS      Fortran 77 compiler flags
1623  PKG_CONFIG  path to pkg-config utility
1624  XPROTO_CFLAGS
1625              C compiler flags for XPROTO, overriding pkg-config
1626  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1627  XDMCP_CFLAGS
1628              C compiler flags for XDMCP, overriding pkg-config
1629  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1630  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1631  X11_LIBS    linker flags for X11, overriding pkg-config
1632  BIGFONT_CFLAGS
1633              C compiler flags for BIGFONT, overriding pkg-config
1634  BIGFONT_LIBS
1635              linker flags for BIGFONT, overriding pkg-config
1636  XKBPROTO_CFLAGS
1637              C compiler flags for XKBPROTO, overriding pkg-config
1638  XKBPROTO_LIBS
1639              linker flags for XKBPROTO, overriding pkg-config
1640
1641Use these variables to override the choices made by `configure' or to help
1642it to find libraries and programs with nonstandard names/locations.
1643
1644Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1645_ACEOF
1646ac_status=$?
1647fi
1648
1649if test "$ac_init_help" = "recursive"; then
1650  # If there are subdirs, report their specific --help.
1651  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652    test -d "$ac_dir" || continue
1653    ac_builddir=.
1654
1655case "$ac_dir" in
1656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657*)
1658  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1659  # A ".." for each directory in $ac_dir_suffix.
1660  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1661  case $ac_top_builddir_sub in
1662  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664  esac ;;
1665esac
1666ac_abs_top_builddir=$ac_pwd
1667ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668# for backward compatibility:
1669ac_top_builddir=$ac_top_build_prefix
1670
1671case $srcdir in
1672  .)  # We are building in place.
1673    ac_srcdir=.
1674    ac_top_srcdir=$ac_top_builddir_sub
1675    ac_abs_top_srcdir=$ac_pwd ;;
1676  [\\/]* | ?:[\\/]* )  # Absolute name.
1677    ac_srcdir=$srcdir$ac_dir_suffix;
1678    ac_top_srcdir=$srcdir
1679    ac_abs_top_srcdir=$srcdir ;;
1680  *) # Relative name.
1681    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682    ac_top_srcdir=$ac_top_build_prefix$srcdir
1683    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684esac
1685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686
1687    cd "$ac_dir" || { ac_status=$?; continue; }
1688    # Check for guested configure.
1689    if test -f "$ac_srcdir/configure.gnu"; then
1690      echo &&
1691      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692    elif test -f "$ac_srcdir/configure"; then
1693      echo &&
1694      $SHELL "$ac_srcdir/configure" --help=recursive
1695    else
1696      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697    fi || ac_status=$?
1698    cd "$ac_pwd" || { ac_status=$?; break; }
1699  done
1700fi
1701
1702test -n "$ac_init_help" && exit $ac_status
1703if $ac_init_version; then
1704  cat <<\_ACEOF
1705libX11 configure 1.2
1706generated by GNU Autoconf 2.61
1707
1708Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17092002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712_ACEOF
1713  exit
1714fi
1715cat >config.log <<_ACEOF
1716This file contains any messages produced by compilers while
1717running configure, to aid debugging if configure makes a mistake.
1718
1719It was created by libX11 $as_me 1.2, which was
1720generated by GNU Autoconf 2.61.  Invocation command line was
1721
1722  $ $0 $@
1723
1724_ACEOF
1725exec 5>>config.log
1726{
1727cat <<_ASUNAME
1728## --------- ##
1729## Platform. ##
1730## --------- ##
1731
1732hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1733uname -m = `(uname -m) 2>/dev/null || echo unknown`
1734uname -r = `(uname -r) 2>/dev/null || echo unknown`
1735uname -s = `(uname -s) 2>/dev/null || echo unknown`
1736uname -v = `(uname -v) 2>/dev/null || echo unknown`
1737
1738/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1739/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1740
1741/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1742/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1743/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1744/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1745/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1746/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1747/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1748
1749_ASUNAME
1750
1751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752for as_dir in $PATH
1753do
1754  IFS=$as_save_IFS
1755  test -z "$as_dir" && as_dir=.
1756  echo "PATH: $as_dir"
1757done
1758IFS=$as_save_IFS
1759
1760} >&5
1761
1762cat >&5 <<_ACEOF
1763
1764
1765## ----------- ##
1766## Core tests. ##
1767## ----------- ##
1768
1769_ACEOF
1770
1771
1772# Keep a trace of the command line.
1773# Strip out --no-create and --no-recursion so they do not pile up.
1774# Strip out --silent because we don't want to record it for future runs.
1775# Also quote any args containing shell meta-characters.
1776# Make two passes to allow for proper duplicate-argument suppression.
1777ac_configure_args=
1778ac_configure_args0=
1779ac_configure_args1=
1780ac_must_keep_next=false
1781for ac_pass in 1 2
1782do
1783  for ac_arg
1784  do
1785    case $ac_arg in
1786    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1787    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1788    | -silent | --silent | --silen | --sile | --sil)
1789      continue ;;
1790    *\'*)
1791      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1792    esac
1793    case $ac_pass in
1794    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1795    2)
1796      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1797      if test $ac_must_keep_next = true; then
1798	ac_must_keep_next=false # Got value, back to normal.
1799      else
1800	case $ac_arg in
1801	  *=* | --config-cache | -C | -disable-* | --disable-* \
1802	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1803	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1804	  | -with-* | --with-* | -without-* | --without-* | --x)
1805	    case "$ac_configure_args0 " in
1806	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1807	    esac
1808	    ;;
1809	  -* ) ac_must_keep_next=true ;;
1810	esac
1811      fi
1812      ac_configure_args="$ac_configure_args '$ac_arg'"
1813      ;;
1814    esac
1815  done
1816done
1817$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1818$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1819
1820# When interrupted or exit'd, cleanup temporary files, and complete
1821# config.log.  We remove comments because anyway the quotes in there
1822# would cause problems or look ugly.
1823# WARNING: Use '\'' to represent an apostrophe within the trap.
1824# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1825trap 'exit_status=$?
1826  # Save into config.log some information that might help in debugging.
1827  {
1828    echo
1829
1830    cat <<\_ASBOX
1831## ---------------- ##
1832## Cache variables. ##
1833## ---------------- ##
1834_ASBOX
1835    echo
1836    # The following way of writing the cache mishandles newlines in values,
1837(
1838  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1839    eval ac_val=\$$ac_var
1840    case $ac_val in #(
1841    *${as_nl}*)
1842      case $ac_var in #(
1843      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1844echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1845      esac
1846      case $ac_var in #(
1847      _ | IFS | as_nl) ;; #(
1848      *) $as_unset $ac_var ;;
1849      esac ;;
1850    esac
1851  done
1852  (set) 2>&1 |
1853    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854    *${as_nl}ac_space=\ *)
1855      sed -n \
1856	"s/'\''/'\''\\\\'\'''\''/g;
1857	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858      ;; #(
1859    *)
1860      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1861      ;;
1862    esac |
1863    sort
1864)
1865    echo
1866
1867    cat <<\_ASBOX
1868## ----------------- ##
1869## Output variables. ##
1870## ----------------- ##
1871_ASBOX
1872    echo
1873    for ac_var in $ac_subst_vars
1874    do
1875      eval ac_val=\$$ac_var
1876      case $ac_val in
1877      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878      esac
1879      echo "$ac_var='\''$ac_val'\''"
1880    done | sort
1881    echo
1882
1883    if test -n "$ac_subst_files"; then
1884      cat <<\_ASBOX
1885## ------------------- ##
1886## File substitutions. ##
1887## ------------------- ##
1888_ASBOX
1889      echo
1890      for ac_var in $ac_subst_files
1891      do
1892	eval ac_val=\$$ac_var
1893	case $ac_val in
1894	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895	esac
1896	echo "$ac_var='\''$ac_val'\''"
1897      done | sort
1898      echo
1899    fi
1900
1901    if test -s confdefs.h; then
1902      cat <<\_ASBOX
1903## ----------- ##
1904## confdefs.h. ##
1905## ----------- ##
1906_ASBOX
1907      echo
1908      cat confdefs.h
1909      echo
1910    fi
1911    test "$ac_signal" != 0 &&
1912      echo "$as_me: caught signal $ac_signal"
1913    echo "$as_me: exit $exit_status"
1914  } >&5
1915  rm -f core *.core core.conftest.* &&
1916    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1917    exit $exit_status
1918' 0
1919for ac_signal in 1 2 13 15; do
1920  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1921done
1922ac_signal=0
1923
1924# confdefs.h avoids OS command line length limits that DEFS can exceed.
1925rm -f -r conftest* confdefs.h
1926
1927# Predefined preprocessor variables.
1928
1929cat >>confdefs.h <<_ACEOF
1930#define PACKAGE_NAME "$PACKAGE_NAME"
1931_ACEOF
1932
1933
1934cat >>confdefs.h <<_ACEOF
1935#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1936_ACEOF
1937
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_VERSION "$PACKAGE_VERSION"
1941_ACEOF
1942
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_STRING "$PACKAGE_STRING"
1946_ACEOF
1947
1948
1949cat >>confdefs.h <<_ACEOF
1950#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951_ACEOF
1952
1953
1954# Let the site file select an alternate cache file if it wants to.
1955# Prefer explicitly selected file to automatically selected ones.
1956if test -n "$CONFIG_SITE"; then
1957  set x "$CONFIG_SITE"
1958elif test "x$prefix" != xNONE; then
1959  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1960else
1961  set x "$ac_default_prefix/share/config.site" \
1962	"$ac_default_prefix/etc/config.site"
1963fi
1964shift
1965for ac_site_file
1966do
1967  if test -r "$ac_site_file"; then
1968    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1969echo "$as_me: loading site script $ac_site_file" >&6;}
1970    sed 's/^/| /' "$ac_site_file" >&5
1971    . "$ac_site_file"
1972  fi
1973done
1974
1975if test -r "$cache_file"; then
1976  # Some versions of bash will fail to source /dev/null (special
1977  # files actually), so we avoid doing that.
1978  if test -f "$cache_file"; then
1979    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1980echo "$as_me: loading cache $cache_file" >&6;}
1981    case $cache_file in
1982      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1983      *)                      . "./$cache_file";;
1984    esac
1985  fi
1986else
1987  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1988echo "$as_me: creating cache $cache_file" >&6;}
1989  >$cache_file
1990fi
1991
1992# Check that the precious variables saved in the cache have kept the same
1993# value.
1994ac_cache_corrupted=false
1995for ac_var in $ac_precious_vars; do
1996  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1997  eval ac_new_set=\$ac_env_${ac_var}_set
1998  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1999  eval ac_new_val=\$ac_env_${ac_var}_value
2000  case $ac_old_set,$ac_new_set in
2001    set,)
2002      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2003echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2004      ac_cache_corrupted=: ;;
2005    ,set)
2006      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2007echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2008      ac_cache_corrupted=: ;;
2009    ,);;
2010    *)
2011      if test "x$ac_old_val" != "x$ac_new_val"; then
2012	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2013echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2014	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2015echo "$as_me:   former value:  $ac_old_val" >&2;}
2016	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2017echo "$as_me:   current value: $ac_new_val" >&2;}
2018	ac_cache_corrupted=:
2019      fi;;
2020  esac
2021  # Pass precious variables to config.status.
2022  if test "$ac_new_set" = set; then
2023    case $ac_new_val in
2024    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025    *) ac_arg=$ac_var=$ac_new_val ;;
2026    esac
2027    case " $ac_configure_args " in
2028      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2029      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030    esac
2031  fi
2032done
2033if $ac_cache_corrupted; then
2034  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2035echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2036  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2037echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2038   { (exit 1); exit 1; }; }
2039fi
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065ac_ext=c
2066ac_cpp='$CPP $CPPFLAGS'
2067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070
2071
2072
2073am__api_version='1.10'
2074
2075ac_aux_dir=
2076for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2077  if test -f "$ac_dir/install-sh"; then
2078    ac_aux_dir=$ac_dir
2079    ac_install_sh="$ac_aux_dir/install-sh -c"
2080    break
2081  elif test -f "$ac_dir/install.sh"; then
2082    ac_aux_dir=$ac_dir
2083    ac_install_sh="$ac_aux_dir/install.sh -c"
2084    break
2085  elif test -f "$ac_dir/shtool"; then
2086    ac_aux_dir=$ac_dir
2087    ac_install_sh="$ac_aux_dir/shtool install -c"
2088    break
2089  fi
2090done
2091if test -z "$ac_aux_dir"; then
2092  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2093echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096
2097# These three variables are undocumented and unsupported,
2098# and are intended to be withdrawn in a future Autoconf release.
2099# They can cause serious problems if a builder's source tree is in a directory
2100# whose full name contains unusual characters.
2101ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2102ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2103ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2104
2105
2106# Find a good install program.  We prefer a C program (faster),
2107# so one script is as good as another.  But avoid the broken or
2108# incompatible versions:
2109# SysV /etc/install, /usr/sbin/install
2110# SunOS /usr/etc/install
2111# IRIX /sbin/install
2112# AIX /bin/install
2113# AmigaOS /C/install, which installs bootblocks on floppy discs
2114# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2115# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2116# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2117# OS/2's system install, which has a completely different semantic
2118# ./install, which can be erroneously created by make from ./install.sh.
2119{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2120echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2121if test -z "$INSTALL"; then
2122if test "${ac_cv_path_install+set}" = set; then
2123  echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126for as_dir in $PATH
2127do
2128  IFS=$as_save_IFS
2129  test -z "$as_dir" && as_dir=.
2130  # Account for people who put trailing slashes in PATH elements.
2131case $as_dir/ in
2132  ./ | .// | /cC/* | \
2133  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2134  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2135  /usr/ucb/* ) ;;
2136  *)
2137    # OSF1 and SCO ODT 3.0 have their own names for install.
2138    # Don't use installbsd from OSF since it installs stuff as root
2139    # by default.
2140    for ac_prog in ginstall scoinst install; do
2141      for ac_exec_ext in '' $ac_executable_extensions; do
2142	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2143	  if test $ac_prog = install &&
2144	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2145	    # AIX install.  It has an incompatible calling convention.
2146	    :
2147	  elif test $ac_prog = install &&
2148	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2149	    # program-specific install script used by HP pwplus--don't use.
2150	    :
2151	  else
2152	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2153	    break 3
2154	  fi
2155	fi
2156      done
2157    done
2158    ;;
2159esac
2160done
2161IFS=$as_save_IFS
2162
2163
2164fi
2165  if test "${ac_cv_path_install+set}" = set; then
2166    INSTALL=$ac_cv_path_install
2167  else
2168    # As a last resort, use the slow shell script.  Don't cache a
2169    # value for INSTALL within a source directory, because that will
2170    # break other packages using the cache if that directory is
2171    # removed, or if the value is a relative name.
2172    INSTALL=$ac_install_sh
2173  fi
2174fi
2175{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2176echo "${ECHO_T}$INSTALL" >&6; }
2177
2178# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2179# It thinks the first close brace ends the variable substitution.
2180test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2181
2182test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2183
2184test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2185
2186{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2187echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2188# Just in case
2189sleep 1
2190echo timestamp > conftest.file
2191# Do `set' in a subshell so we don't clobber the current shell's
2192# arguments.  Must try -L first in case configure is actually a
2193# symlink; some systems play weird games with the mod time of symlinks
2194# (eg FreeBSD returns the mod time of the symlink's containing
2195# directory).
2196if (
2197   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2198   if test "$*" = "X"; then
2199      # -L didn't work.
2200      set X `ls -t $srcdir/configure conftest.file`
2201   fi
2202   rm -f conftest.file
2203   if test "$*" != "X $srcdir/configure conftest.file" \
2204      && test "$*" != "X conftest.file $srcdir/configure"; then
2205
2206      # If neither matched, then we have a broken ls.  This can happen
2207      # if, for instance, CONFIG_SHELL is bash and it inherits a
2208      # broken ls alias from the environment.  This has actually
2209      # happened.  Such a system could not be considered "sane".
2210      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2211alias in your environment" >&5
2212echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2213alias in your environment" >&2;}
2214   { (exit 1); exit 1; }; }
2215   fi
2216
2217   test "$2" = conftest.file
2218   )
2219then
2220   # Ok.
2221   :
2222else
2223   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2224Check your system clock" >&5
2225echo "$as_me: error: newly created file is older than distributed files!
2226Check your system clock" >&2;}
2227   { (exit 1); exit 1; }; }
2228fi
2229{ echo "$as_me:$LINENO: result: yes" >&5
2230echo "${ECHO_T}yes" >&6; }
2231test "$program_prefix" != NONE &&
2232  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2233# Use a double $ so make ignores it.
2234test "$program_suffix" != NONE &&
2235  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2236# Double any \ or $.  echo might interpret backslashes.
2237# By default was `s,x,x', remove it if useless.
2238cat <<\_ACEOF >conftest.sed
2239s/[\\$]/&&/g;s/;s,x,x,$//
2240_ACEOF
2241program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2242rm -f conftest.sed
2243
2244# expand $ac_aux_dir to an absolute path
2245am_aux_dir=`cd $ac_aux_dir && pwd`
2246
2247test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2248# Use eval to expand $SHELL
2249if eval "$MISSING --run true"; then
2250  am_missing_run="$MISSING --run "
2251else
2252  am_missing_run=
2253  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2254echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2255fi
2256
2257{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2258echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2259if test -z "$MKDIR_P"; then
2260  if test "${ac_cv_path_mkdir+set}" = set; then
2261  echo $ECHO_N "(cached) $ECHO_C" >&6
2262else
2263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2265do
2266  IFS=$as_save_IFS
2267  test -z "$as_dir" && as_dir=.
2268  for ac_prog in mkdir gmkdir; do
2269	 for ac_exec_ext in '' $ac_executable_extensions; do
2270	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2271	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2272	     'mkdir (GNU coreutils) '* | \
2273	     'mkdir (coreutils) '* | \
2274	     'mkdir (fileutils) '4.1*)
2275	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2276	       break 3;;
2277	   esac
2278	 done
2279       done
2280done
2281IFS=$as_save_IFS
2282
2283fi
2284
2285  if test "${ac_cv_path_mkdir+set}" = set; then
2286    MKDIR_P="$ac_cv_path_mkdir -p"
2287  else
2288    # As a last resort, use the slow shell script.  Don't cache a
2289    # value for MKDIR_P within a source directory, because that will
2290    # break other packages using the cache if that directory is
2291    # removed, or if the value is a relative name.
2292    test -d ./--version && rmdir ./--version
2293    MKDIR_P="$ac_install_sh -d"
2294  fi
2295fi
2296{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2297echo "${ECHO_T}$MKDIR_P" >&6; }
2298
2299mkdir_p="$MKDIR_P"
2300case $mkdir_p in
2301  [\\/$]* | ?:[\\/]*) ;;
2302  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2303esac
2304
2305for ac_prog in gawk mawk nawk awk
2306do
2307  # Extract the first word of "$ac_prog", so it can be a program name with args.
2308set dummy $ac_prog; ac_word=$2
2309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311if test "${ac_cv_prog_AWK+set}" = set; then
2312  echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314  if test -n "$AWK"; then
2315  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320  IFS=$as_save_IFS
2321  test -z "$as_dir" && as_dir=.
2322  for ac_exec_ext in '' $ac_executable_extensions; do
2323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324    ac_cv_prog_AWK="$ac_prog"
2325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326    break 2
2327  fi
2328done
2329done
2330IFS=$as_save_IFS
2331
2332fi
2333fi
2334AWK=$ac_cv_prog_AWK
2335if test -n "$AWK"; then
2336  { echo "$as_me:$LINENO: result: $AWK" >&5
2337echo "${ECHO_T}$AWK" >&6; }
2338else
2339  { echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6; }
2341fi
2342
2343
2344  test -n "$AWK" && break
2345done
2346
2347{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2348echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2349set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2350if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2351  echo $ECHO_N "(cached) $ECHO_C" >&6
2352else
2353  cat >conftest.make <<\_ACEOF
2354SHELL = /bin/sh
2355all:
2356	@echo '@@@%%%=$(MAKE)=@@@%%%'
2357_ACEOF
2358# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2359case `${MAKE-make} -f conftest.make 2>/dev/null` in
2360  *@@@%%%=?*=@@@%%%*)
2361    eval ac_cv_prog_make_${ac_make}_set=yes;;
2362  *)
2363    eval ac_cv_prog_make_${ac_make}_set=no;;
2364esac
2365rm -f conftest.make
2366fi
2367if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2368  { echo "$as_me:$LINENO: result: yes" >&5
2369echo "${ECHO_T}yes" >&6; }
2370  SET_MAKE=
2371else
2372  { echo "$as_me:$LINENO: result: no" >&5
2373echo "${ECHO_T}no" >&6; }
2374  SET_MAKE="MAKE=${MAKE-make}"
2375fi
2376
2377rm -rf .tst 2>/dev/null
2378mkdir .tst 2>/dev/null
2379if test -d .tst; then
2380  am__leading_dot=.
2381else
2382  am__leading_dot=_
2383fi
2384rmdir .tst 2>/dev/null
2385
2386if test "`cd $srcdir && pwd`" != "`pwd`"; then
2387  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2388  # is not polluted with repeated "-I."
2389  am__isrc=' -I$(srcdir)'
2390  # test to see if srcdir already configured
2391  if test -f $srcdir/config.status; then
2392    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2393echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2394   { (exit 1); exit 1; }; }
2395  fi
2396fi
2397
2398# test whether we have cygpath
2399if test -z "$CYGPATH_W"; then
2400  if (cygpath --version) >/dev/null 2>/dev/null; then
2401    CYGPATH_W='cygpath -w'
2402  else
2403    CYGPATH_W=echo
2404  fi
2405fi
2406
2407
2408# Define the identity of the package.
2409 PACKAGE='libX11'
2410 VERSION='1.2'
2411
2412
2413cat >>confdefs.h <<_ACEOF
2414#define PACKAGE "$PACKAGE"
2415_ACEOF
2416
2417
2418cat >>confdefs.h <<_ACEOF
2419#define VERSION "$VERSION"
2420_ACEOF
2421
2422# Some tools Automake needs.
2423
2424ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2425
2426
2427AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2428
2429
2430AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2431
2432
2433AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2434
2435
2436MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2437
2438install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2439
2440# Installed binaries are usually stripped using `strip' when the user
2441# run `make install-strip'.  However `strip' might not be the right
2442# tool to use in cross-compilation environments, therefore Automake
2443# will honor the `STRIP' environment variable to overrule this program.
2444if test "$cross_compiling" != no; then
2445  if test -n "$ac_tool_prefix"; then
2446  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2447set dummy ${ac_tool_prefix}strip; ac_word=$2
2448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450if test "${ac_cv_prog_STRIP+set}" = set; then
2451  echo $ECHO_N "(cached) $ECHO_C" >&6
2452else
2453  if test -n "$STRIP"; then
2454  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2455else
2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459  IFS=$as_save_IFS
2460  test -z "$as_dir" && as_dir=.
2461  for ac_exec_ext in '' $ac_executable_extensions; do
2462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2464    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465    break 2
2466  fi
2467done
2468done
2469IFS=$as_save_IFS
2470
2471fi
2472fi
2473STRIP=$ac_cv_prog_STRIP
2474if test -n "$STRIP"; then
2475  { echo "$as_me:$LINENO: result: $STRIP" >&5
2476echo "${ECHO_T}$STRIP" >&6; }
2477else
2478  { echo "$as_me:$LINENO: result: no" >&5
2479echo "${ECHO_T}no" >&6; }
2480fi
2481
2482
2483fi
2484if test -z "$ac_cv_prog_STRIP"; then
2485  ac_ct_STRIP=$STRIP
2486  # Extract the first word of "strip", so it can be a program name with args.
2487set dummy strip; ac_word=$2
2488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2491  echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493  if test -n "$ac_ct_STRIP"; then
2494  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2495else
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499  IFS=$as_save_IFS
2500  test -z "$as_dir" && as_dir=.
2501  for ac_exec_ext in '' $ac_executable_extensions; do
2502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503    ac_cv_prog_ac_ct_STRIP="strip"
2504    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505    break 2
2506  fi
2507done
2508done
2509IFS=$as_save_IFS
2510
2511fi
2512fi
2513ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2514if test -n "$ac_ct_STRIP"; then
2515  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2516echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2517else
2518  { echo "$as_me:$LINENO: result: no" >&5
2519echo "${ECHO_T}no" >&6; }
2520fi
2521
2522  if test "x$ac_ct_STRIP" = x; then
2523    STRIP=":"
2524  else
2525    case $cross_compiling:$ac_tool_warned in
2526yes:)
2527{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2528whose name does not start with the host triplet.  If you think this
2529configuration is useful to you, please write to autoconf@gnu.org." >&5
2530echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2531whose name does not start with the host triplet.  If you think this
2532configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2533ac_tool_warned=yes ;;
2534esac
2535    STRIP=$ac_ct_STRIP
2536  fi
2537else
2538  STRIP="$ac_cv_prog_STRIP"
2539fi
2540
2541fi
2542INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2543
2544# We need awk for the "check" target.  The system "awk" is bad on
2545# some platforms.
2546# Always define AMTAR for backward compatibility.
2547
2548AMTAR=${AMTAR-"${am_missing_run}tar"}
2549
2550am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2551
2552
2553
2554
2555
2556
2557{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2558echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2559    # Check whether --enable-maintainer-mode was given.
2560if test "${enable_maintainer_mode+set}" = set; then
2561  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2562else
2563  USE_MAINTAINER_MODE=no
2564fi
2565
2566  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2567echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2568   if test $USE_MAINTAINER_MODE = yes; then
2569  MAINTAINER_MODE_TRUE=
2570  MAINTAINER_MODE_FALSE='#'
2571else
2572  MAINTAINER_MODE_TRUE='#'
2573  MAINTAINER_MODE_FALSE=
2574fi
2575
2576  MAINT=$MAINTAINER_MODE_TRUE
2577
2578
2579
2580ac_config_headers="$ac_config_headers src/config.h"
2581
2582ac_config_headers="$ac_config_headers include/X11/XlibConf.h"
2583
2584
2585# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG, XORG_WITH_LINT
2586
2587
2588	XORG_MACROS_needed_version=1.2
2589	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2590	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2591	{ echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2592echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; }
2593	XORG_MACROS_version=1.2.1
2594	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2595	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2596	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2597		{ { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2598echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2599   { (exit 1); exit 1; }; }
2600	fi
2601	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2602		{ { 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
2603echo "$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;}
2604   { (exit 1); exit 1; }; }
2605	fi
2606	{ echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2607echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; }
2608
2609
2610# Checks for programs.
2611# Check whether --enable-shared was given.
2612if test "${enable_shared+set}" = set; then
2613  enableval=$enable_shared; p=${PACKAGE-default}
2614    case $enableval in
2615    yes) enable_shared=yes ;;
2616    no) enable_shared=no ;;
2617    *)
2618      enable_shared=no
2619      # Look at the argument we got.  We use all the common list separators.
2620      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2621      for pkg in $enableval; do
2622	IFS="$lt_save_ifs"
2623	if test "X$pkg" = "X$p"; then
2624	  enable_shared=yes
2625	fi
2626      done
2627      IFS="$lt_save_ifs"
2628      ;;
2629    esac
2630else
2631  enable_shared=yes
2632fi
2633
2634
2635# Check whether --enable-static was given.
2636if test "${enable_static+set}" = set; then
2637  enableval=$enable_static; p=${PACKAGE-default}
2638    case $enableval in
2639    yes) enable_static=yes ;;
2640    no) enable_static=no ;;
2641    *)
2642     enable_static=no
2643      # Look at the argument we got.  We use all the common list separators.
2644      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2645      for pkg in $enableval; do
2646	IFS="$lt_save_ifs"
2647	if test "X$pkg" = "X$p"; then
2648	  enable_static=yes
2649	fi
2650      done
2651      IFS="$lt_save_ifs"
2652      ;;
2653    esac
2654else
2655  enable_static=yes
2656fi
2657
2658
2659# Check whether --enable-fast-install was given.
2660if test "${enable_fast_install+set}" = set; then
2661  enableval=$enable_fast_install; p=${PACKAGE-default}
2662    case $enableval in
2663    yes) enable_fast_install=yes ;;
2664    no) enable_fast_install=no ;;
2665    *)
2666      enable_fast_install=no
2667      # Look at the argument we got.  We use all the common list separators.
2668      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2669      for pkg in $enableval; do
2670	IFS="$lt_save_ifs"
2671	if test "X$pkg" = "X$p"; then
2672	  enable_fast_install=yes
2673	fi
2674      done
2675      IFS="$lt_save_ifs"
2676      ;;
2677    esac
2678else
2679  enable_fast_install=yes
2680fi
2681
2682
2683# Make sure we can run config.sub.
2684$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2685  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2686echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2687   { (exit 1); exit 1; }; }
2688
2689{ echo "$as_me:$LINENO: checking build system type" >&5
2690echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2691if test "${ac_cv_build+set}" = set; then
2692  echo $ECHO_N "(cached) $ECHO_C" >&6
2693else
2694  ac_build_alias=$build_alias
2695test "x$ac_build_alias" = x &&
2696  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2697test "x$ac_build_alias" = x &&
2698  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2699echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2700   { (exit 1); exit 1; }; }
2701ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2702  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2703echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2704   { (exit 1); exit 1; }; }
2705
2706fi
2707{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2708echo "${ECHO_T}$ac_cv_build" >&6; }
2709case $ac_cv_build in
2710*-*-*) ;;
2711*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2712echo "$as_me: error: invalid value of canonical build" >&2;}
2713   { (exit 1); exit 1; }; };;
2714esac
2715build=$ac_cv_build
2716ac_save_IFS=$IFS; IFS='-'
2717set x $ac_cv_build
2718shift
2719build_cpu=$1
2720build_vendor=$2
2721shift; shift
2722# Remember, the first character of IFS is used to create $*,
2723# except with old shells:
2724build_os=$*
2725IFS=$ac_save_IFS
2726case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2727
2728
2729{ echo "$as_me:$LINENO: checking host system type" >&5
2730echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2731if test "${ac_cv_host+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734  if test "x$host_alias" = x; then
2735  ac_cv_host=$ac_cv_build
2736else
2737  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2738    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2739echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2740   { (exit 1); exit 1; }; }
2741fi
2742
2743fi
2744{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2745echo "${ECHO_T}$ac_cv_host" >&6; }
2746case $ac_cv_host in
2747*-*-*) ;;
2748*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2749echo "$as_me: error: invalid value of canonical host" >&2;}
2750   { (exit 1); exit 1; }; };;
2751esac
2752host=$ac_cv_host
2753ac_save_IFS=$IFS; IFS='-'
2754set x $ac_cv_host
2755shift
2756host_cpu=$1
2757host_vendor=$2
2758shift; shift
2759# Remember, the first character of IFS is used to create $*,
2760# except with old shells:
2761host_os=$*
2762IFS=$ac_save_IFS
2763case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2764
2765
2766DEPDIR="${am__leading_dot}deps"
2767
2768ac_config_commands="$ac_config_commands depfiles"
2769
2770
2771am_make=${MAKE-make}
2772cat > confinc << 'END'
2773am__doit:
2774	@echo done
2775.PHONY: am__doit
2776END
2777# If we don't find an include directive, just comment out the code.
2778{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2779echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2780am__include="#"
2781am__quote=
2782_am_result=none
2783# First try GNU make style include.
2784echo "include confinc" > confmf
2785# We grep out `Entering directory' and `Leaving directory'
2786# messages which can occur if `w' ends up in MAKEFLAGS.
2787# In particular we don't look at `^make:' because GNU make might
2788# be invoked under some other name (usually "gmake"), in which
2789# case it prints its new name instead of `make'.
2790if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2791   am__include=include
2792   am__quote=
2793   _am_result=GNU
2794fi
2795# Now try BSD make style include.
2796if test "$am__include" = "#"; then
2797   echo '.include "confinc"' > confmf
2798   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2799      am__include=.include
2800      am__quote="\""
2801      _am_result=BSD
2802   fi
2803fi
2804
2805
2806{ echo "$as_me:$LINENO: result: $_am_result" >&5
2807echo "${ECHO_T}$_am_result" >&6; }
2808rm -f confinc confmf
2809
2810# Check whether --enable-dependency-tracking was given.
2811if test "${enable_dependency_tracking+set}" = set; then
2812  enableval=$enable_dependency_tracking;
2813fi
2814
2815if test "x$enable_dependency_tracking" != xno; then
2816  am_depcomp="$ac_aux_dir/depcomp"
2817  AMDEPBACKSLASH='\'
2818fi
2819 if test "x$enable_dependency_tracking" != xno; then
2820  AMDEP_TRUE=
2821  AMDEP_FALSE='#'
2822else
2823  AMDEP_TRUE='#'
2824  AMDEP_FALSE=
2825fi
2826
2827
2828ac_ext=c
2829ac_cpp='$CPP $CPPFLAGS'
2830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833if test -n "$ac_tool_prefix"; then
2834  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2835set dummy ${ac_tool_prefix}gcc; ac_word=$2
2836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838if test "${ac_cv_prog_CC+set}" = set; then
2839  echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
2841  if test -n "$CC"; then
2842  ac_cv_prog_CC="$CC" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847  IFS=$as_save_IFS
2848  test -z "$as_dir" && as_dir=.
2849  for ac_exec_ext in '' $ac_executable_extensions; do
2850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853    break 2
2854  fi
2855done
2856done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861CC=$ac_cv_prog_CC
2862if test -n "$CC"; then
2863  { echo "$as_me:$LINENO: result: $CC" >&5
2864echo "${ECHO_T}$CC" >&6; }
2865else
2866  { echo "$as_me:$LINENO: result: no" >&5
2867echo "${ECHO_T}no" >&6; }
2868fi
2869
2870
2871fi
2872if test -z "$ac_cv_prog_CC"; then
2873  ac_ct_CC=$CC
2874  # Extract the first word of "gcc", so it can be a program name with args.
2875set dummy gcc; ac_word=$2
2876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2879  echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881  if test -n "$ac_ct_CC"; then
2882  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887  IFS=$as_save_IFS
2888  test -z "$as_dir" && as_dir=.
2889  for ac_exec_ext in '' $ac_executable_extensions; do
2890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891    ac_cv_prog_ac_ct_CC="gcc"
2892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893    break 2
2894  fi
2895done
2896done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902if test -n "$ac_ct_CC"; then
2903  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2904echo "${ECHO_T}$ac_ct_CC" >&6; }
2905else
2906  { echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6; }
2908fi
2909
2910  if test "x$ac_ct_CC" = x; then
2911    CC=""
2912  else
2913    case $cross_compiling:$ac_tool_warned in
2914yes:)
2915{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2916whose name does not start with the host triplet.  If you think this
2917configuration is useful to you, please write to autoconf@gnu.org." >&5
2918echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2919whose name does not start with the host triplet.  If you think this
2920configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2921ac_tool_warned=yes ;;
2922esac
2923    CC=$ac_ct_CC
2924  fi
2925else
2926  CC="$ac_cv_prog_CC"
2927fi
2928
2929if test -z "$CC"; then
2930          if test -n "$ac_tool_prefix"; then
2931    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2932set dummy ${ac_tool_prefix}cc; ac_word=$2
2933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2935if test "${ac_cv_prog_CC+set}" = set; then
2936  echo $ECHO_N "(cached) $ECHO_C" >&6
2937else
2938  if test -n "$CC"; then
2939  ac_cv_prog_CC="$CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944  IFS=$as_save_IFS
2945  test -z "$as_dir" && as_dir=.
2946  for ac_exec_ext in '' $ac_executable_extensions; do
2947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948    ac_cv_prog_CC="${ac_tool_prefix}cc"
2949    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950    break 2
2951  fi
2952done
2953done
2954IFS=$as_save_IFS
2955
2956fi
2957fi
2958CC=$ac_cv_prog_CC
2959if test -n "$CC"; then
2960  { echo "$as_me:$LINENO: result: $CC" >&5
2961echo "${ECHO_T}$CC" >&6; }
2962else
2963  { echo "$as_me:$LINENO: result: no" >&5
2964echo "${ECHO_T}no" >&6; }
2965fi
2966
2967
2968  fi
2969fi
2970if test -z "$CC"; then
2971  # Extract the first word of "cc", so it can be a program name with args.
2972set dummy cc; ac_word=$2
2973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2975if test "${ac_cv_prog_CC+set}" = set; then
2976  echo $ECHO_N "(cached) $ECHO_C" >&6
2977else
2978  if test -n "$CC"; then
2979  ac_cv_prog_CC="$CC" # Let the user override the test.
2980else
2981  ac_prog_rejected=no
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985  IFS=$as_save_IFS
2986  test -z "$as_dir" && as_dir=.
2987  for ac_exec_ext in '' $ac_executable_extensions; do
2988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2990       ac_prog_rejected=yes
2991       continue
2992     fi
2993    ac_cv_prog_CC="cc"
2994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995    break 2
2996  fi
2997done
2998done
2999IFS=$as_save_IFS
3000
3001if test $ac_prog_rejected = yes; then
3002  # We found a bogon in the path, so make sure we never use it.
3003  set dummy $ac_cv_prog_CC
3004  shift
3005  if test $# != 0; then
3006    # We chose a different compiler from the bogus one.
3007    # However, it has the same basename, so the bogon will be chosen
3008    # first if we set CC to just the basename; use the full file name.
3009    shift
3010    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3011  fi
3012fi
3013fi
3014fi
3015CC=$ac_cv_prog_CC
3016if test -n "$CC"; then
3017  { echo "$as_me:$LINENO: result: $CC" >&5
3018echo "${ECHO_T}$CC" >&6; }
3019else
3020  { echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6; }
3022fi
3023
3024
3025fi
3026if test -z "$CC"; then
3027  if test -n "$ac_tool_prefix"; then
3028  for ac_prog in cl.exe
3029  do
3030    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3034if test "${ac_cv_prog_CC+set}" = set; then
3035  echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037  if test -n "$CC"; then
3038  ac_cv_prog_CC="$CC" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043  IFS=$as_save_IFS
3044  test -z "$as_dir" && as_dir=.
3045  for ac_exec_ext in '' $ac_executable_extensions; do
3046  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049    break 2
3050  fi
3051done
3052done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
3057CC=$ac_cv_prog_CC
3058if test -n "$CC"; then
3059  { echo "$as_me:$LINENO: result: $CC" >&5
3060echo "${ECHO_T}$CC" >&6; }
3061else
3062  { echo "$as_me:$LINENO: result: no" >&5
3063echo "${ECHO_T}no" >&6; }
3064fi
3065
3066
3067    test -n "$CC" && break
3068  done
3069fi
3070if test -z "$CC"; then
3071  ac_ct_CC=$CC
3072  for ac_prog in cl.exe
3073do
3074  # Extract the first word of "$ac_prog", so it can be a program name with args.
3075set dummy $ac_prog; ac_word=$2
3076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3079  echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081  if test -n "$ac_ct_CC"; then
3082  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087  IFS=$as_save_IFS
3088  test -z "$as_dir" && as_dir=.
3089  for ac_exec_ext in '' $ac_executable_extensions; do
3090  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091    ac_cv_prog_ac_ct_CC="$ac_prog"
3092    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093    break 2
3094  fi
3095done
3096done
3097IFS=$as_save_IFS
3098
3099fi
3100fi
3101ac_ct_CC=$ac_cv_prog_ac_ct_CC
3102if test -n "$ac_ct_CC"; then
3103  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3104echo "${ECHO_T}$ac_ct_CC" >&6; }
3105else
3106  { echo "$as_me:$LINENO: result: no" >&5
3107echo "${ECHO_T}no" >&6; }
3108fi
3109
3110
3111  test -n "$ac_ct_CC" && break
3112done
3113
3114  if test "x$ac_ct_CC" = x; then
3115    CC=""
3116  else
3117    case $cross_compiling:$ac_tool_warned in
3118yes:)
3119{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3120whose name does not start with the host triplet.  If you think this
3121configuration is useful to you, please write to autoconf@gnu.org." >&5
3122echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3123whose name does not start with the host triplet.  If you think this
3124configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3125ac_tool_warned=yes ;;
3126esac
3127    CC=$ac_ct_CC
3128  fi
3129fi
3130
3131fi
3132
3133
3134test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3135See \`config.log' for more details." >&5
3136echo "$as_me: error: no acceptable C compiler found in \$PATH
3137See \`config.log' for more details." >&2;}
3138   { (exit 1); exit 1; }; }
3139
3140# Provide some information about the compiler.
3141echo "$as_me:$LINENO: checking for C compiler version" >&5
3142ac_compiler=`set X $ac_compile; echo $2`
3143{ (ac_try="$ac_compiler --version >&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 --version >&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{ (ac_try="$ac_compiler -V >&5"
3164case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169  (eval "$ac_compiler -V >&5") 2>&5
3170  ac_status=$?
3171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); }
3173
3174cat >conftest.$ac_ext <<_ACEOF
3175/* confdefs.h.  */
3176_ACEOF
3177cat confdefs.h >>conftest.$ac_ext
3178cat >>conftest.$ac_ext <<_ACEOF
3179/* end confdefs.h.  */
3180
3181int
3182main ()
3183{
3184
3185  ;
3186  return 0;
3187}
3188_ACEOF
3189ac_clean_files_save=$ac_clean_files
3190ac_clean_files="$ac_clean_files a.out a.exe b.out"
3191# Try to create an executable without -o first, disregard a.out.
3192# It will help us diagnose broken compilers, and finding out an intuition
3193# of exeext.
3194{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3195echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3196ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3197#
3198# List of possible output files, starting from the most likely.
3199# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3200# only as a last resort.  b.out is created by i960 compilers.
3201ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3202#
3203# The IRIX 6 linker writes into existing files which may not be
3204# executable, retaining their permissions.  Remove them first so a
3205# subsequent execution test works.
3206ac_rmfiles=
3207for ac_file in $ac_files
3208do
3209  case $ac_file in
3210    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3211    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3212  esac
3213done
3214rm -f $ac_rmfiles
3215
3216if { (ac_try="$ac_link_default"
3217case "(($ac_try" in
3218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219  *) ac_try_echo=$ac_try;;
3220esac
3221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222  (eval "$ac_link_default") 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; then
3226  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3227# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3228# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3229# so that the user can short-circuit this test for compilers unknown to
3230# Autoconf.
3231for ac_file in $ac_files ''
3232do
3233  test -f "$ac_file" || continue
3234  case $ac_file in
3235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3236	;;
3237    [ab].out )
3238	# We found the default executable, but exeext='' is most
3239	# certainly right.
3240	break;;
3241    *.* )
3242        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3243	then :; else
3244	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3245	fi
3246	# We set ac_cv_exeext here because the later test for it is not
3247	# safe: cross compilers may not add the suffix if given an `-o'
3248	# argument, so we may need to know it at that point already.
3249	# Even if this section looks crufty: it has the advantage of
3250	# actually working.
3251	break;;
3252    * )
3253	break;;
3254  esac
3255done
3256test "$ac_cv_exeext" = no && ac_cv_exeext=
3257
3258else
3259  ac_file=''
3260fi
3261
3262{ echo "$as_me:$LINENO: result: $ac_file" >&5
3263echo "${ECHO_T}$ac_file" >&6; }
3264if test -z "$ac_file"; then
3265  echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3269See \`config.log' for more details." >&5
3270echo "$as_me: error: C compiler cannot create executables
3271See \`config.log' for more details." >&2;}
3272   { (exit 77); exit 77; }; }
3273fi
3274
3275ac_exeext=$ac_cv_exeext
3276
3277# Check that the compiler produces executables we can run.  If not, either
3278# the compiler is broken, or we cross compile.
3279{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3280echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3281# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3282# If not cross compiling, check that we can run a simple program.
3283if test "$cross_compiling" != yes; then
3284  if { ac_try='./$ac_file'
3285  { (case "(($ac_try" in
3286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287  *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290  (eval "$ac_try") 2>&5
3291  ac_status=$?
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); }; }; then
3294    cross_compiling=no
3295  else
3296    if test "$cross_compiling" = maybe; then
3297	cross_compiling=yes
3298    else
3299	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3300If you meant to cross compile, use \`--host'.
3301See \`config.log' for more details." >&5
3302echo "$as_me: error: cannot run C compiled programs.
3303If you meant to cross compile, use \`--host'.
3304See \`config.log' for more details." >&2;}
3305   { (exit 1); exit 1; }; }
3306    fi
3307  fi
3308fi
3309{ echo "$as_me:$LINENO: result: yes" >&5
3310echo "${ECHO_T}yes" >&6; }
3311
3312rm -f a.out a.exe conftest$ac_cv_exeext b.out
3313ac_clean_files=$ac_clean_files_save
3314# Check that the compiler produces executables we can run.  If not, either
3315# the compiler is broken, or we cross compile.
3316{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3317echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3318{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3319echo "${ECHO_T}$cross_compiling" >&6; }
3320
3321{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3322echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3323if { (ac_try="$ac_link"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329  (eval "$ac_link") 2>&5
3330  ac_status=$?
3331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); }; then
3333  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3334# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3335# work properly (i.e., refer to `conftest.exe'), while it won't with
3336# `rm'.
3337for ac_file in conftest.exe conftest conftest.*; do
3338  test -f "$ac_file" || continue
3339  case $ac_file in
3340    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3341    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342	  break;;
3343    * ) break;;
3344  esac
3345done
3346else
3347  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3348See \`config.log' for more details." >&5
3349echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3350See \`config.log' for more details." >&2;}
3351   { (exit 1); exit 1; }; }
3352fi
3353
3354rm -f conftest$ac_cv_exeext
3355{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3356echo "${ECHO_T}$ac_cv_exeext" >&6; }
3357
3358rm -f conftest.$ac_ext
3359EXEEXT=$ac_cv_exeext
3360ac_exeext=$EXEEXT
3361{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3362echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3363if test "${ac_cv_objext+set}" = set; then
3364  echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366  cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h.  */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h.  */
3372
3373int
3374main ()
3375{
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381rm -f conftest.o conftest.obj
3382if { (ac_try="$ac_compile"
3383case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388  (eval "$ac_compile") 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }; then
3392  for ac_file in conftest.o conftest.obj conftest.*; do
3393  test -f "$ac_file" || continue;
3394  case $ac_file in
3395    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3396    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3397       break;;
3398  esac
3399done
3400else
3401  echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
3404{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3405See \`config.log' for more details." >&5
3406echo "$as_me: error: cannot compute suffix of object files: cannot compile
3407See \`config.log' for more details." >&2;}
3408   { (exit 1); exit 1; }; }
3409fi
3410
3411rm -f conftest.$ac_cv_objext conftest.$ac_ext
3412fi
3413{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3414echo "${ECHO_T}$ac_cv_objext" >&6; }
3415OBJEXT=$ac_cv_objext
3416ac_objext=$OBJEXT
3417{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3418echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3419if test "${ac_cv_c_compiler_gnu+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422  cat >conftest.$ac_ext <<_ACEOF
3423/* confdefs.h.  */
3424_ACEOF
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h.  */
3428
3429int
3430main ()
3431{
3432#ifndef __GNUC__
3433       choke me
3434#endif
3435
3436  ;
3437  return 0;
3438}
3439_ACEOF
3440rm -f conftest.$ac_objext
3441if { (ac_try="$ac_compile"
3442case "(($ac_try" in
3443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444  *) ac_try_echo=$ac_try;;
3445esac
3446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447  (eval "$ac_compile") 2>conftest.er1
3448  ac_status=$?
3449  grep -v '^ *+' conftest.er1 >conftest.err
3450  rm -f conftest.er1
3451  cat conftest.err >&5
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); } && {
3454	 test -z "$ac_c_werror_flag" ||
3455	 test ! -s conftest.err
3456       } && test -s conftest.$ac_objext; then
3457  ac_compiler_gnu=yes
3458else
3459  echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462	ac_compiler_gnu=no
3463fi
3464
3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468fi
3469{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3470echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3471GCC=`test $ac_compiler_gnu = yes && echo yes`
3472ac_test_CFLAGS=${CFLAGS+set}
3473ac_save_CFLAGS=$CFLAGS
3474{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3475echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3476if test "${ac_cv_prog_cc_g+set}" = set; then
3477  echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479  ac_save_c_werror_flag=$ac_c_werror_flag
3480   ac_c_werror_flag=yes
3481   ac_cv_prog_cc_g=no
3482   CFLAGS="-g"
3483   cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h.  */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext
3499if { (ac_try="$ac_compile"
3500case "(($ac_try" in
3501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502  *) ac_try_echo=$ac_try;;
3503esac
3504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505  (eval "$ac_compile") 2>conftest.er1
3506  ac_status=$?
3507  grep -v '^ *+' conftest.er1 >conftest.err
3508  rm -f conftest.er1
3509  cat conftest.err >&5
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); } && {
3512	 test -z "$ac_c_werror_flag" ||
3513	 test ! -s conftest.err
3514       } && test -s conftest.$ac_objext; then
3515  ac_cv_prog_cc_g=yes
3516else
3517  echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520	CFLAGS=""
3521      cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h.  */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h.  */
3527
3528int
3529main ()
3530{
3531
3532  ;
3533  return 0;
3534}
3535_ACEOF
3536rm -f conftest.$ac_objext
3537if { (ac_try="$ac_compile"
3538case "(($ac_try" in
3539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540  *) ac_try_echo=$ac_try;;
3541esac
3542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543  (eval "$ac_compile") 2>conftest.er1
3544  ac_status=$?
3545  grep -v '^ *+' conftest.er1 >conftest.err
3546  rm -f conftest.er1
3547  cat conftest.err >&5
3548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549  (exit $ac_status); } && {
3550	 test -z "$ac_c_werror_flag" ||
3551	 test ! -s conftest.err
3552       } && test -s conftest.$ac_objext; then
3553  :
3554else
3555  echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558	ac_c_werror_flag=$ac_save_c_werror_flag
3559	 CFLAGS="-g"
3560	 cat >conftest.$ac_ext <<_ACEOF
3561/* confdefs.h.  */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h.  */
3566
3567int
3568main ()
3569{
3570
3571  ;
3572  return 0;
3573}
3574_ACEOF
3575rm -f conftest.$ac_objext
3576if { (ac_try="$ac_compile"
3577case "(($ac_try" in
3578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579  *) ac_try_echo=$ac_try;;
3580esac
3581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582  (eval "$ac_compile") 2>conftest.er1
3583  ac_status=$?
3584  grep -v '^ *+' conftest.er1 >conftest.err
3585  rm -f conftest.er1
3586  cat conftest.err >&5
3587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588  (exit $ac_status); } && {
3589	 test -z "$ac_c_werror_flag" ||
3590	 test ! -s conftest.err
3591       } && test -s conftest.$ac_objext; then
3592  ac_cv_prog_cc_g=yes
3593else
3594  echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597
3598fi
3599
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601fi
3602
3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604fi
3605
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607   ac_c_werror_flag=$ac_save_c_werror_flag
3608fi
3609{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3611if test "$ac_test_CFLAGS" = set; then
3612  CFLAGS=$ac_save_CFLAGS
3613elif test $ac_cv_prog_cc_g = yes; then
3614  if test "$GCC" = yes; then
3615    CFLAGS="-g -O2"
3616  else
3617    CFLAGS="-g"
3618  fi
3619else
3620  if test "$GCC" = yes; then
3621    CFLAGS="-O2"
3622  else
3623    CFLAGS=
3624  fi
3625fi
3626{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3627echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3628if test "${ac_cv_prog_cc_c89+set}" = set; then
3629  echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631  ac_cv_prog_cc_c89=no
3632ac_save_CC=$CC
3633cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h.  */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h.  */
3639#include <stdarg.h>
3640#include <stdio.h>
3641#include <sys/types.h>
3642#include <sys/stat.h>
3643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3644struct buf { int x; };
3645FILE * (*rcsopen) (struct buf *, struct stat *, int);
3646static char *e (p, i)
3647     char **p;
3648     int i;
3649{
3650  return p[i];
3651}
3652static char *f (char * (*g) (char **, int), char **p, ...)
3653{
3654  char *s;
3655  va_list v;
3656  va_start (v,p);
3657  s = g (p, va_arg (v,int));
3658  va_end (v);
3659  return s;
3660}
3661
3662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3663   function prototypes and stuff, but not '\xHH' hex character constants.
3664   These don't provoke an error unfortunately, instead are silently treated
3665   as 'x'.  The following induces an error, until -std is added to get
3666   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3667   array size at least.  It's necessary to write '\x00'==0 to get something
3668   that's true only with -std.  */
3669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3670
3671/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3672   inside strings and character constants.  */
3673#define FOO(x) 'x'
3674int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3675
3676int test (int i, double x);
3677struct s1 {int (*f) (int a);};
3678struct s2 {int (*f) (double a);};
3679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3680int argc;
3681char **argv;
3682int
3683main ()
3684{
3685return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3691	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692do
3693  CC="$ac_save_CC $ac_arg"
3694  rm -f conftest.$ac_objext
3695if { (ac_try="$ac_compile"
3696case "(($ac_try" in
3697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698  *) ac_try_echo=$ac_try;;
3699esac
3700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701  (eval "$ac_compile") 2>conftest.er1
3702  ac_status=$?
3703  grep -v '^ *+' conftest.er1 >conftest.err
3704  rm -f conftest.er1
3705  cat conftest.err >&5
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); } && {
3708	 test -z "$ac_c_werror_flag" ||
3709	 test ! -s conftest.err
3710       } && test -s conftest.$ac_objext; then
3711  ac_cv_prog_cc_c89=$ac_arg
3712else
3713  echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
3715
3716
3717fi
3718
3719rm -f core conftest.err conftest.$ac_objext
3720  test "x$ac_cv_prog_cc_c89" != "xno" && break
3721done
3722rm -f conftest.$ac_ext
3723CC=$ac_save_CC
3724
3725fi
3726# AC_CACHE_VAL
3727case "x$ac_cv_prog_cc_c89" in
3728  x)
3729    { echo "$as_me:$LINENO: result: none needed" >&5
3730echo "${ECHO_T}none needed" >&6; } ;;
3731  xno)
3732    { echo "$as_me:$LINENO: result: unsupported" >&5
3733echo "${ECHO_T}unsupported" >&6; } ;;
3734  *)
3735    CC="$CC $ac_cv_prog_cc_c89"
3736    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3737echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3738esac
3739
3740
3741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747depcc="$CC"   am_compiler_list=
3748
3749{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3750echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3751if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3752  echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3755  # We make a subdir and do the tests there.  Otherwise we can end up
3756  # making bogus files that we don't know about and never remove.  For
3757  # instance it was reported that on HP-UX the gcc test will end up
3758  # making a dummy file named `D' -- because `-MD' means `put the output
3759  # in D'.
3760  mkdir conftest.dir
3761  # Copy depcomp to subdir because otherwise we won't find it if we're
3762  # using a relative directory.
3763  cp "$am_depcomp" conftest.dir
3764  cd conftest.dir
3765  # We will build objects and dependencies in a subdirectory because
3766  # it helps to detect inapplicable dependency modes.  For instance
3767  # both Tru64's cc and ICC support -MD to output dependencies as a
3768  # side effect of compilation, but ICC will put the dependencies in
3769  # the current directory while Tru64 will put them in the object
3770  # directory.
3771  mkdir sub
3772
3773  am_cv_CC_dependencies_compiler_type=none
3774  if test "$am_compiler_list" = ""; then
3775     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3776  fi
3777  for depmode in $am_compiler_list; do
3778    # Setup a source with many dependencies, because some compilers
3779    # like to wrap large dependency lists on column 80 (with \), and
3780    # we should not choose a depcomp mode which is confused by this.
3781    #
3782    # We need to recreate these files for each test, as the compiler may
3783    # overwrite some of them when testing with obscure command lines.
3784    # This happens at least with the AIX C compiler.
3785    : > sub/conftest.c
3786    for i in 1 2 3 4 5 6; do
3787      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3788      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3789      # Solaris 8's {/usr,}/bin/sh.
3790      touch sub/conftst$i.h
3791    done
3792    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3793
3794    case $depmode in
3795    nosideeffect)
3796      # after this tag, mechanisms are not by side-effect, so they'll
3797      # only be used when explicitly requested
3798      if test "x$enable_dependency_tracking" = xyes; then
3799	continue
3800      else
3801	break
3802      fi
3803      ;;
3804    none) break ;;
3805    esac
3806    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3807    # mode.  It turns out that the SunPro C++ compiler does not properly
3808    # handle `-M -o', and we need to detect this.
3809    if depmode=$depmode \
3810       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3811       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3812       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3813         >/dev/null 2>conftest.err &&
3814       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3815       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3816       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3817       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3818      # icc doesn't choke on unknown options, it will just issue warnings
3819      # or remarks (even with -Werror).  So we grep stderr for any message
3820      # that says an option was ignored or not supported.
3821      # When given -MP, icc 7.0 and 7.1 complain thusly:
3822      #   icc: Command line warning: ignoring option '-M'; no argument required
3823      # The diagnosis changed in icc 8.0:
3824      #   icc: Command line remark: option '-MP' not supported
3825      if (grep 'ignoring option' conftest.err ||
3826          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3827        am_cv_CC_dependencies_compiler_type=$depmode
3828        break
3829      fi
3830    fi
3831  done
3832
3833  cd ..
3834  rm -rf conftest.dir
3835else
3836  am_cv_CC_dependencies_compiler_type=none
3837fi
3838
3839fi
3840{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3841echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3842CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3843
3844 if
3845  test "x$enable_dependency_tracking" != xno \
3846  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3847  am__fastdepCC_TRUE=
3848  am__fastdepCC_FALSE='#'
3849else
3850  am__fastdepCC_TRUE='#'
3851  am__fastdepCC_FALSE=
3852fi
3853
3854
3855{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3856echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3857if test "${lt_cv_path_SED+set}" = set; then
3858  echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
3860  # Loop through the user's path and test for sed and gsed.
3861# Then use that list of sed's as ones to test for truncation.
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865  IFS=$as_save_IFS
3866  test -z "$as_dir" && as_dir=.
3867  for lt_ac_prog in sed gsed; do
3868    for ac_exec_ext in '' $ac_executable_extensions; do
3869      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3870        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3871      fi
3872    done
3873  done
3874done
3875IFS=$as_save_IFS
3876lt_ac_max=0
3877lt_ac_count=0
3878# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3879# along with /bin/sed that truncates output.
3880for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3881  test ! -f $lt_ac_sed && continue
3882  cat /dev/null > conftest.in
3883  lt_ac_count=0
3884  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3885  # Check for GNU sed and select it if it is found.
3886  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3887    lt_cv_path_SED=$lt_ac_sed
3888    break
3889  fi
3890  while true; do
3891    cat conftest.in conftest.in >conftest.tmp
3892    mv conftest.tmp conftest.in
3893    cp conftest.in conftest.nl
3894    echo >>conftest.nl
3895    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3896    cmp -s conftest.out conftest.nl || break
3897    # 10000 chars as input seems more than enough
3898    test $lt_ac_count -gt 10 && break
3899    lt_ac_count=`expr $lt_ac_count + 1`
3900    if test $lt_ac_count -gt $lt_ac_max; then
3901      lt_ac_max=$lt_ac_count
3902      lt_cv_path_SED=$lt_ac_sed
3903    fi
3904  done
3905done
3906
3907fi
3908
3909SED=$lt_cv_path_SED
3910
3911{ echo "$as_me:$LINENO: result: $SED" >&5
3912echo "${ECHO_T}$SED" >&6; }
3913
3914{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3915echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3916if test "${ac_cv_path_GREP+set}" = set; then
3917  echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919  # Extract the first word of "grep ggrep" to use in msg output
3920if test -z "$GREP"; then
3921set dummy grep ggrep; ac_prog_name=$2
3922if test "${ac_cv_path_GREP+set}" = set; then
3923  echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925  ac_path_GREP_found=false
3926# Loop through the user's path and test for each of PROGNAME-LIST
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3929do
3930  IFS=$as_save_IFS
3931  test -z "$as_dir" && as_dir=.
3932  for ac_prog in grep ggrep; do
3933  for ac_exec_ext in '' $ac_executable_extensions; do
3934    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3935    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3936    # Check for GNU ac_path_GREP and select it if it is found.
3937  # Check for GNU $ac_path_GREP
3938case `"$ac_path_GREP" --version 2>&1` in
3939*GNU*)
3940  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3941*)
3942  ac_count=0
3943  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3944  while :
3945  do
3946    cat "conftest.in" "conftest.in" >"conftest.tmp"
3947    mv "conftest.tmp" "conftest.in"
3948    cp "conftest.in" "conftest.nl"
3949    echo 'GREP' >> "conftest.nl"
3950    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952    ac_count=`expr $ac_count + 1`
3953    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3954      # Best one so far, save it but keep looking for a better one
3955      ac_cv_path_GREP="$ac_path_GREP"
3956      ac_path_GREP_max=$ac_count
3957    fi
3958    # 10*(2^10) chars as input seems more than enough
3959    test $ac_count -gt 10 && break
3960  done
3961  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962esac
3963
3964
3965    $ac_path_GREP_found && break 3
3966  done
3967done
3968
3969done
3970IFS=$as_save_IFS
3971
3972
3973fi
3974
3975GREP="$ac_cv_path_GREP"
3976if test -z "$GREP"; then
3977  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3978echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3979   { (exit 1); exit 1; }; }
3980fi
3981
3982else
3983  ac_cv_path_GREP=$GREP
3984fi
3985
3986
3987fi
3988{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3989echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3990 GREP="$ac_cv_path_GREP"
3991
3992
3993{ echo "$as_me:$LINENO: checking for egrep" >&5
3994echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3995if test "${ac_cv_path_EGREP+set}" = set; then
3996  echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3999   then ac_cv_path_EGREP="$GREP -E"
4000   else
4001     # Extract the first word of "egrep" to use in msg output
4002if test -z "$EGREP"; then
4003set dummy egrep; ac_prog_name=$2
4004if test "${ac_cv_path_EGREP+set}" = set; then
4005  echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007  ac_path_EGREP_found=false
4008# Loop through the user's path and test for each of PROGNAME-LIST
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4011do
4012  IFS=$as_save_IFS
4013  test -z "$as_dir" && as_dir=.
4014  for ac_prog in egrep; do
4015  for ac_exec_ext in '' $ac_executable_extensions; do
4016    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4017    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4018    # Check for GNU ac_path_EGREP and select it if it is found.
4019  # Check for GNU $ac_path_EGREP
4020case `"$ac_path_EGREP" --version 2>&1` in
4021*GNU*)
4022  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4023*)
4024  ac_count=0
4025  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4026  while :
4027  do
4028    cat "conftest.in" "conftest.in" >"conftest.tmp"
4029    mv "conftest.tmp" "conftest.in"
4030    cp "conftest.in" "conftest.nl"
4031    echo 'EGREP' >> "conftest.nl"
4032    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4033    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4034    ac_count=`expr $ac_count + 1`
4035    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4036      # Best one so far, save it but keep looking for a better one
4037      ac_cv_path_EGREP="$ac_path_EGREP"
4038      ac_path_EGREP_max=$ac_count
4039    fi
4040    # 10*(2^10) chars as input seems more than enough
4041    test $ac_count -gt 10 && break
4042  done
4043  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4044esac
4045
4046
4047    $ac_path_EGREP_found && break 3
4048  done
4049done
4050
4051done
4052IFS=$as_save_IFS
4053
4054
4055fi
4056
4057EGREP="$ac_cv_path_EGREP"
4058if test -z "$EGREP"; then
4059  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4060echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4061   { (exit 1); exit 1; }; }
4062fi
4063
4064else
4065  ac_cv_path_EGREP=$EGREP
4066fi
4067
4068
4069   fi
4070fi
4071{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4072echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4073 EGREP="$ac_cv_path_EGREP"
4074
4075
4076
4077# Check whether --with-gnu-ld was given.
4078if test "${with_gnu_ld+set}" = set; then
4079  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4080else
4081  with_gnu_ld=no
4082fi
4083
4084ac_prog=ld
4085if test "$GCC" = yes; then
4086  # Check if gcc -print-prog-name=ld gives a path.
4087  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4088echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4089  case $host in
4090  *-*-mingw*)
4091    # gcc leaves a trailing carriage return which upsets mingw
4092    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4093  *)
4094    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4095  esac
4096  case $ac_prog in
4097    # Accept absolute paths.
4098    [\\/]* | ?:[\\/]*)
4099      re_direlt='/[^/][^/]*/\.\./'
4100      # Canonicalize the pathname of ld
4101      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4102      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4103	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4104      done
4105      test -z "$LD" && LD="$ac_prog"
4106      ;;
4107  "")
4108    # If it fails, then pretend we aren't using GCC.
4109    ac_prog=ld
4110    ;;
4111  *)
4112    # If it is relative, then search for the first ld in PATH.
4113    with_gnu_ld=unknown
4114    ;;
4115  esac
4116elif test "$with_gnu_ld" = yes; then
4117  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4118echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4119else
4120  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4121echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4122fi
4123if test "${lt_cv_path_LD+set}" = set; then
4124  echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126  if test -z "$LD"; then
4127  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4128  for ac_dir in $PATH; do
4129    IFS="$lt_save_ifs"
4130    test -z "$ac_dir" && ac_dir=.
4131    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4132      lt_cv_path_LD="$ac_dir/$ac_prog"
4133      # Check to see if the program is GNU ld.  I'd rather use --version,
4134      # but apparently some variants of GNU ld only accept -v.
4135      # Break only if it was the GNU/non-GNU ld that we prefer.
4136      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4137      *GNU* | *'with BFD'*)
4138	test "$with_gnu_ld" != no && break
4139	;;
4140      *)
4141	test "$with_gnu_ld" != yes && break
4142	;;
4143      esac
4144    fi
4145  done
4146  IFS="$lt_save_ifs"
4147else
4148  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4149fi
4150fi
4151
4152LD="$lt_cv_path_LD"
4153if test -n "$LD"; then
4154  { echo "$as_me:$LINENO: result: $LD" >&5
4155echo "${ECHO_T}$LD" >&6; }
4156else
4157  { echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6; }
4159fi
4160test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4161echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4162   { (exit 1); exit 1; }; }
4163{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4164echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4165if test "${lt_cv_prog_gnu_ld+set}" = set; then
4166  echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4169case `$LD -v 2>&1 </dev/null` in
4170*GNU* | *'with BFD'*)
4171  lt_cv_prog_gnu_ld=yes
4172  ;;
4173*)
4174  lt_cv_prog_gnu_ld=no
4175  ;;
4176esac
4177fi
4178{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4179echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4180with_gnu_ld=$lt_cv_prog_gnu_ld
4181
4182
4183{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4184echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4185if test "${lt_cv_ld_reload_flag+set}" = set; then
4186  echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188  lt_cv_ld_reload_flag='-r'
4189fi
4190{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4191echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4192reload_flag=$lt_cv_ld_reload_flag
4193case $reload_flag in
4194"" | " "*) ;;
4195*) reload_flag=" $reload_flag" ;;
4196esac
4197reload_cmds='$LD$reload_flag -o $output$reload_objs'
4198case $host_os in
4199  darwin*)
4200    if test "$GCC" = yes; then
4201      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4202    else
4203      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4204    fi
4205    ;;
4206esac
4207
4208{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4209echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4210if test "${lt_cv_path_NM+set}" = set; then
4211  echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213  if test -n "$NM"; then
4214  # Let the user override the test.
4215  lt_cv_path_NM="$NM"
4216else
4217  lt_nm_to_check="${ac_tool_prefix}nm"
4218  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4219    lt_nm_to_check="$lt_nm_to_check nm"
4220  fi
4221  for lt_tmp_nm in $lt_nm_to_check; do
4222    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4223    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4224      IFS="$lt_save_ifs"
4225      test -z "$ac_dir" && ac_dir=.
4226      tmp_nm="$ac_dir/$lt_tmp_nm"
4227      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4228	# Check to see if the nm accepts a BSD-compat flag.
4229	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4230	#   nm: unknown option "B" ignored
4231	# Tru64's nm complains that /dev/null is an invalid object file
4232	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4233	*/dev/null* | *'Invalid file or object type'*)
4234	  lt_cv_path_NM="$tmp_nm -B"
4235	  break
4236	  ;;
4237	*)
4238	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4239	  */dev/null*)
4240	    lt_cv_path_NM="$tmp_nm -p"
4241	    break
4242	    ;;
4243	  *)
4244	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4245	    continue # so that we can try to find one that supports BSD flags
4246	    ;;
4247	  esac
4248	  ;;
4249	esac
4250      fi
4251    done
4252    IFS="$lt_save_ifs"
4253  done
4254  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4255fi
4256fi
4257{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4258echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4259NM="$lt_cv_path_NM"
4260
4261{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4262echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4263LN_S=$as_ln_s
4264if test "$LN_S" = "ln -s"; then
4265  { echo "$as_me:$LINENO: result: yes" >&5
4266echo "${ECHO_T}yes" >&6; }
4267else
4268  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4269echo "${ECHO_T}no, using $LN_S" >&6; }
4270fi
4271
4272{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4273echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4274if test "${lt_cv_deplibs_check_method+set}" = set; then
4275  echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
4277  lt_cv_file_magic_cmd='$MAGIC_CMD'
4278lt_cv_file_magic_test_file=
4279lt_cv_deplibs_check_method='unknown'
4280# Need to set the preceding variable on all platforms that support
4281# interlibrary dependencies.
4282# 'none' -- dependencies not supported.
4283# `unknown' -- same as none, but documents that we really don't know.
4284# 'pass_all' -- all dependencies passed with no checks.
4285# 'test_compile' -- check by making test program.
4286# 'file_magic [[regex]]' -- check by looking for files in library path
4287# which responds to the $file_magic_cmd with a given extended regex.
4288# If you have `file' or equivalent on your system and you're not sure
4289# whether `pass_all' will *always* work, you probably want this one.
4290
4291case $host_os in
4292aix[4-9]*)
4293  lt_cv_deplibs_check_method=pass_all
4294  ;;
4295
4296beos*)
4297  lt_cv_deplibs_check_method=pass_all
4298  ;;
4299
4300bsdi[45]*)
4301  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4302  lt_cv_file_magic_cmd='/usr/bin/file -L'
4303  lt_cv_file_magic_test_file=/shlib/libc.so
4304  ;;
4305
4306cygwin*)
4307  # func_win32_libid is a shell function defined in ltmain.sh
4308  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4309  lt_cv_file_magic_cmd='func_win32_libid'
4310  ;;
4311
4312mingw* | pw32*)
4313  # Base MSYS/MinGW do not provide the 'file' command needed by
4314  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4315  # unless we find 'file', for example because we are cross-compiling.
4316  if ( file / ) >/dev/null 2>&1; then
4317    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4318    lt_cv_file_magic_cmd='func_win32_libid'
4319  else
4320    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4321    lt_cv_file_magic_cmd='$OBJDUMP -f'
4322  fi
4323  ;;
4324
4325darwin* | rhapsody*)
4326  lt_cv_deplibs_check_method=pass_all
4327  ;;
4328
4329freebsd* | dragonfly*)
4330  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4331    case $host_cpu in
4332    i*86 )
4333      # Not sure whether the presence of OpenBSD here was a mistake.
4334      # Let's accept both of them until this is cleared up.
4335      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4336      lt_cv_file_magic_cmd=/usr/bin/file
4337      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4338      ;;
4339    esac
4340  else
4341    lt_cv_deplibs_check_method=pass_all
4342  fi
4343  ;;
4344
4345gnu*)
4346  lt_cv_deplibs_check_method=pass_all
4347  ;;
4348
4349hpux10.20* | hpux11*)
4350  lt_cv_file_magic_cmd=/usr/bin/file
4351  case $host_cpu in
4352  ia64*)
4353    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4354    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4355    ;;
4356  hppa*64*)
4357    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]'
4358    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4359    ;;
4360  *)
4361    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4362    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4363    ;;
4364  esac
4365  ;;
4366
4367interix[3-9]*)
4368  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4369  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4370  ;;
4371
4372irix5* | irix6* | nonstopux*)
4373  case $LD in
4374  *-32|*"-32 ") libmagic=32-bit;;
4375  *-n32|*"-n32 ") libmagic=N32;;
4376  *-64|*"-64 ") libmagic=64-bit;;
4377  *) libmagic=never-match;;
4378  esac
4379  lt_cv_deplibs_check_method=pass_all
4380  ;;
4381
4382# This must be Linux ELF.
4383linux* | k*bsd*-gnu)
4384  lt_cv_deplibs_check_method=pass_all
4385  ;;
4386
4387netbsd* | netbsdelf*-gnu)
4388  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4389    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4390  else
4391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4392  fi
4393  ;;
4394
4395newos6*)
4396  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4397  lt_cv_file_magic_cmd=/usr/bin/file
4398  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4399  ;;
4400
4401nto-qnx*)
4402  lt_cv_deplibs_check_method=unknown
4403  ;;
4404
4405openbsd*)
4406  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4407    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4408  else
4409    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4410  fi
4411  ;;
4412
4413osf3* | osf4* | osf5*)
4414  lt_cv_deplibs_check_method=pass_all
4415  ;;
4416
4417rdos*)
4418  lt_cv_deplibs_check_method=pass_all
4419  ;;
4420
4421solaris*)
4422  lt_cv_deplibs_check_method=pass_all
4423  ;;
4424
4425sysv4 | sysv4.3*)
4426  case $host_vendor in
4427  motorola)
4428    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]'
4429    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4430    ;;
4431  ncr)
4432    lt_cv_deplibs_check_method=pass_all
4433    ;;
4434  sequent)
4435    lt_cv_file_magic_cmd='/bin/file'
4436    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4437    ;;
4438  sni)
4439    lt_cv_file_magic_cmd='/bin/file'
4440    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4441    lt_cv_file_magic_test_file=/lib/libc.so
4442    ;;
4443  siemens)
4444    lt_cv_deplibs_check_method=pass_all
4445    ;;
4446  pc)
4447    lt_cv_deplibs_check_method=pass_all
4448    ;;
4449  esac
4450  ;;
4451
4452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4453  lt_cv_deplibs_check_method=pass_all
4454  ;;
4455esac
4456
4457fi
4458{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4459echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4460file_magic_cmd=$lt_cv_file_magic_cmd
4461deplibs_check_method=$lt_cv_deplibs_check_method
4462test -z "$deplibs_check_method" && deplibs_check_method=unknown
4463
4464
4465
4466
4467# If no C compiler was specified, use CC.
4468LTCC=${LTCC-"$CC"}
4469
4470# If no C compiler flags were specified, use CFLAGS.
4471LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4472
4473# Allow CC to be a program name with arguments.
4474compiler=$CC
4475
4476
4477# Check whether --enable-libtool-lock was given.
4478if test "${enable_libtool_lock+set}" = set; then
4479  enableval=$enable_libtool_lock;
4480fi
4481
4482test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4483
4484# Some flags need to be propagated to the compiler or linker for good
4485# libtool support.
4486case $host in
4487ia64-*-hpux*)
4488  # Find out which ABI we are using.
4489  echo 'int i;' > conftest.$ac_ext
4490  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491  (eval $ac_compile) 2>&5
4492  ac_status=$?
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); }; then
4495    case `/usr/bin/file conftest.$ac_objext` in
4496    *ELF-32*)
4497      HPUX_IA64_MODE="32"
4498      ;;
4499    *ELF-64*)
4500      HPUX_IA64_MODE="64"
4501      ;;
4502    esac
4503  fi
4504  rm -rf conftest*
4505  ;;
4506*-*-irix6*)
4507  # Find out which ABI we are using.
4508  echo '#line 4508 "configure"' > conftest.$ac_ext
4509  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510  (eval $ac_compile) 2>&5
4511  ac_status=$?
4512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513  (exit $ac_status); }; then
4514   if test "$lt_cv_prog_gnu_ld" = yes; then
4515    case `/usr/bin/file conftest.$ac_objext` in
4516    *32-bit*)
4517      LD="${LD-ld} -melf32bsmip"
4518      ;;
4519    *N32*)
4520      LD="${LD-ld} -melf32bmipn32"
4521      ;;
4522    *64-bit*)
4523      LD="${LD-ld} -melf64bmip"
4524      ;;
4525    esac
4526   else
4527    case `/usr/bin/file conftest.$ac_objext` in
4528    *32-bit*)
4529      LD="${LD-ld} -32"
4530      ;;
4531    *N32*)
4532      LD="${LD-ld} -n32"
4533      ;;
4534    *64-bit*)
4535      LD="${LD-ld} -64"
4536      ;;
4537    esac
4538   fi
4539  fi
4540  rm -rf conftest*
4541  ;;
4542
4543x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4544s390*-*linux*|sparc*-*linux*)
4545  # Find out which ABI we are using.
4546  echo 'int i;' > conftest.$ac_ext
4547  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548  (eval $ac_compile) 2>&5
4549  ac_status=$?
4550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551  (exit $ac_status); }; then
4552    case `/usr/bin/file conftest.o` in
4553    *32-bit*)
4554      case $host in
4555        x86_64-*kfreebsd*-gnu)
4556          LD="${LD-ld} -m elf_i386_fbsd"
4557          ;;
4558        x86_64-*linux*)
4559          LD="${LD-ld} -m elf_i386"
4560          ;;
4561        ppc64-*linux*|powerpc64-*linux*)
4562          LD="${LD-ld} -m elf32ppclinux"
4563          ;;
4564        s390x-*linux*)
4565          LD="${LD-ld} -m elf_s390"
4566          ;;
4567        sparc64-*linux*)
4568          LD="${LD-ld} -m elf32_sparc"
4569          ;;
4570      esac
4571      ;;
4572    *64-bit*)
4573      case $host in
4574        x86_64-*kfreebsd*-gnu)
4575          LD="${LD-ld} -m elf_x86_64_fbsd"
4576          ;;
4577        x86_64-*linux*)
4578          LD="${LD-ld} -m elf_x86_64"
4579          ;;
4580        ppc*-*linux*|powerpc*-*linux*)
4581          LD="${LD-ld} -m elf64ppc"
4582          ;;
4583        s390*-*linux*)
4584          LD="${LD-ld} -m elf64_s390"
4585          ;;
4586        sparc*-*linux*)
4587          LD="${LD-ld} -m elf64_sparc"
4588          ;;
4589      esac
4590      ;;
4591    esac
4592  fi
4593  rm -rf conftest*
4594  ;;
4595
4596*-*-sco3.2v5*)
4597  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4598  SAVE_CFLAGS="$CFLAGS"
4599  CFLAGS="$CFLAGS -belf"
4600  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4601echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4602if test "${lt_cv_cc_needs_belf+set}" = set; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605  ac_ext=c
4606ac_cpp='$CPP $CPPFLAGS'
4607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610
4611     cat >conftest.$ac_ext <<_ACEOF
4612/* confdefs.h.  */
4613_ACEOF
4614cat confdefs.h >>conftest.$ac_ext
4615cat >>conftest.$ac_ext <<_ACEOF
4616/* end confdefs.h.  */
4617
4618int
4619main ()
4620{
4621
4622  ;
4623  return 0;
4624}
4625_ACEOF
4626rm -f conftest.$ac_objext conftest$ac_exeext
4627if { (ac_try="$ac_link"
4628case "(($ac_try" in
4629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630  *) ac_try_echo=$ac_try;;
4631esac
4632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633  (eval "$ac_link") 2>conftest.er1
4634  ac_status=$?
4635  grep -v '^ *+' conftest.er1 >conftest.err
4636  rm -f conftest.er1
4637  cat conftest.err >&5
4638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639  (exit $ac_status); } && {
4640	 test -z "$ac_c_werror_flag" ||
4641	 test ! -s conftest.err
4642       } && test -s conftest$ac_exeext &&
4643       $as_test_x conftest$ac_exeext; then
4644  lt_cv_cc_needs_belf=yes
4645else
4646  echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649	lt_cv_cc_needs_belf=no
4650fi
4651
4652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4653      conftest$ac_exeext conftest.$ac_ext
4654     ac_ext=c
4655ac_cpp='$CPP $CPPFLAGS'
4656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659
4660fi
4661{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4662echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4663  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4664    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4665    CFLAGS="$SAVE_CFLAGS"
4666  fi
4667  ;;
4668sparc*-*solaris*)
4669  # Find out which ABI we are using.
4670  echo 'int i;' > conftest.$ac_ext
4671  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672  (eval $ac_compile) 2>&5
4673  ac_status=$?
4674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675  (exit $ac_status); }; then
4676    case `/usr/bin/file conftest.o` in
4677    *64-bit*)
4678      case $lt_cv_prog_gnu_ld in
4679      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4680      *)
4681        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4682	  LD="${LD-ld} -64"
4683	fi
4684	;;
4685      esac
4686      ;;
4687    esac
4688  fi
4689  rm -rf conftest*
4690  ;;
4691
4692
4693esac
4694
4695need_locks="$enable_libtool_lock"
4696
4697
4698ac_ext=c
4699ac_cpp='$CPP $CPPFLAGS'
4700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4704echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4705# On Suns, sometimes $CPP names a directory.
4706if test -n "$CPP" && test -d "$CPP"; then
4707  CPP=
4708fi
4709if test -z "$CPP"; then
4710  if test "${ac_cv_prog_CPP+set}" = set; then
4711  echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713      # Double quotes because CPP needs to be expanded
4714    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4715    do
4716      ac_preproc_ok=false
4717for ac_c_preproc_warn_flag in '' yes
4718do
4719  # Use a header file that comes with gcc, so configuring glibc
4720  # with a fresh cross-compiler works.
4721  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4722  # <limits.h> exists even on freestanding compilers.
4723  # On the NeXT, cc -E runs the code through the compiler's parser,
4724  # not just through cpp. "Syntax error" is here to catch this case.
4725  cat >conftest.$ac_ext <<_ACEOF
4726/* confdefs.h.  */
4727_ACEOF
4728cat confdefs.h >>conftest.$ac_ext
4729cat >>conftest.$ac_ext <<_ACEOF
4730/* end confdefs.h.  */
4731#ifdef __STDC__
4732# include <limits.h>
4733#else
4734# include <assert.h>
4735#endif
4736		     Syntax error
4737_ACEOF
4738if { (ac_try="$ac_cpp conftest.$ac_ext"
4739case "(($ac_try" in
4740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741  *) ac_try_echo=$ac_try;;
4742esac
4743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4745  ac_status=$?
4746  grep -v '^ *+' conftest.er1 >conftest.err
4747  rm -f conftest.er1
4748  cat conftest.err >&5
4749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750  (exit $ac_status); } >/dev/null && {
4751	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4752	 test ! -s conftest.err
4753       }; then
4754  :
4755else
4756  echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759  # Broken: fails on valid input.
4760continue
4761fi
4762
4763rm -f conftest.err conftest.$ac_ext
4764
4765  # OK, works on sane cases.  Now check whether nonexistent headers
4766  # can be detected and how.
4767  cat >conftest.$ac_ext <<_ACEOF
4768/* confdefs.h.  */
4769_ACEOF
4770cat confdefs.h >>conftest.$ac_ext
4771cat >>conftest.$ac_ext <<_ACEOF
4772/* end confdefs.h.  */
4773#include <ac_nonexistent.h>
4774_ACEOF
4775if { (ac_try="$ac_cpp conftest.$ac_ext"
4776case "(($ac_try" in
4777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778  *) ac_try_echo=$ac_try;;
4779esac
4780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4782  ac_status=$?
4783  grep -v '^ *+' conftest.er1 >conftest.err
4784  rm -f conftest.er1
4785  cat conftest.err >&5
4786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787  (exit $ac_status); } >/dev/null && {
4788	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4789	 test ! -s conftest.err
4790       }; then
4791  # Broken: success on invalid input.
4792continue
4793else
4794  echo "$as_me: failed program was:" >&5
4795sed 's/^/| /' conftest.$ac_ext >&5
4796
4797  # Passes both tests.
4798ac_preproc_ok=:
4799break
4800fi
4801
4802rm -f conftest.err conftest.$ac_ext
4803
4804done
4805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4806rm -f conftest.err conftest.$ac_ext
4807if $ac_preproc_ok; then
4808  break
4809fi
4810
4811    done
4812    ac_cv_prog_CPP=$CPP
4813
4814fi
4815  CPP=$ac_cv_prog_CPP
4816else
4817  ac_cv_prog_CPP=$CPP
4818fi
4819{ echo "$as_me:$LINENO: result: $CPP" >&5
4820echo "${ECHO_T}$CPP" >&6; }
4821ac_preproc_ok=false
4822for ac_c_preproc_warn_flag in '' yes
4823do
4824  # Use a header file that comes with gcc, so configuring glibc
4825  # with a fresh cross-compiler works.
4826  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4827  # <limits.h> exists even on freestanding compilers.
4828  # On the NeXT, cc -E runs the code through the compiler's parser,
4829  # not just through cpp. "Syntax error" is here to catch this case.
4830  cat >conftest.$ac_ext <<_ACEOF
4831/* confdefs.h.  */
4832_ACEOF
4833cat confdefs.h >>conftest.$ac_ext
4834cat >>conftest.$ac_ext <<_ACEOF
4835/* end confdefs.h.  */
4836#ifdef __STDC__
4837# include <limits.h>
4838#else
4839# include <assert.h>
4840#endif
4841		     Syntax error
4842_ACEOF
4843if { (ac_try="$ac_cpp conftest.$ac_ext"
4844case "(($ac_try" in
4845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846  *) ac_try_echo=$ac_try;;
4847esac
4848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850  ac_status=$?
4851  grep -v '^ *+' conftest.er1 >conftest.err
4852  rm -f conftest.er1
4853  cat conftest.err >&5
4854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855  (exit $ac_status); } >/dev/null && {
4856	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4857	 test ! -s conftest.err
4858       }; then
4859  :
4860else
4861  echo "$as_me: failed program was:" >&5
4862sed 's/^/| /' conftest.$ac_ext >&5
4863
4864  # Broken: fails on valid input.
4865continue
4866fi
4867
4868rm -f conftest.err conftest.$ac_ext
4869
4870  # OK, works on sane cases.  Now check whether nonexistent headers
4871  # can be detected and how.
4872  cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h.  */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h.  */
4878#include <ac_nonexistent.h>
4879_ACEOF
4880if { (ac_try="$ac_cpp conftest.$ac_ext"
4881case "(($ac_try" in
4882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883  *) ac_try_echo=$ac_try;;
4884esac
4885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4887  ac_status=$?
4888  grep -v '^ *+' conftest.er1 >conftest.err
4889  rm -f conftest.er1
4890  cat conftest.err >&5
4891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892  (exit $ac_status); } >/dev/null && {
4893	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4894	 test ! -s conftest.err
4895       }; then
4896  # Broken: success on invalid input.
4897continue
4898else
4899  echo "$as_me: failed program was:" >&5
4900sed 's/^/| /' conftest.$ac_ext >&5
4901
4902  # Passes both tests.
4903ac_preproc_ok=:
4904break
4905fi
4906
4907rm -f conftest.err conftest.$ac_ext
4908
4909done
4910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4911rm -f conftest.err conftest.$ac_ext
4912if $ac_preproc_ok; then
4913  :
4914else
4915  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4916See \`config.log' for more details." >&5
4917echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4918See \`config.log' for more details." >&2;}
4919   { (exit 1); exit 1; }; }
4920fi
4921
4922ac_ext=c
4923ac_cpp='$CPP $CPPFLAGS'
4924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927
4928
4929{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4930echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4931if test "${ac_cv_header_stdc+set}" = set; then
4932  echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934  cat >conftest.$ac_ext <<_ACEOF
4935/* confdefs.h.  */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h.  */
4940#include <stdlib.h>
4941#include <stdarg.h>
4942#include <string.h>
4943#include <float.h>
4944
4945int
4946main ()
4947{
4948
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953rm -f conftest.$ac_objext
4954if { (ac_try="$ac_compile"
4955case "(($ac_try" in
4956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957  *) ac_try_echo=$ac_try;;
4958esac
4959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960  (eval "$ac_compile") 2>conftest.er1
4961  ac_status=$?
4962  grep -v '^ *+' conftest.er1 >conftest.err
4963  rm -f conftest.er1
4964  cat conftest.err >&5
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); } && {
4967	 test -z "$ac_c_werror_flag" ||
4968	 test ! -s conftest.err
4969       } && test -s conftest.$ac_objext; then
4970  ac_cv_header_stdc=yes
4971else
4972  echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975	ac_cv_header_stdc=no
4976fi
4977
4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979
4980if test $ac_cv_header_stdc = yes; then
4981  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4982  cat >conftest.$ac_ext <<_ACEOF
4983/* confdefs.h.  */
4984_ACEOF
4985cat confdefs.h >>conftest.$ac_ext
4986cat >>conftest.$ac_ext <<_ACEOF
4987/* end confdefs.h.  */
4988#include <string.h>
4989
4990_ACEOF
4991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992  $EGREP "memchr" >/dev/null 2>&1; then
4993  :
4994else
4995  ac_cv_header_stdc=no
4996fi
4997rm -f conftest*
4998
4999fi
5000
5001if test $ac_cv_header_stdc = yes; then
5002  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5003  cat >conftest.$ac_ext <<_ACEOF
5004/* confdefs.h.  */
5005_ACEOF
5006cat confdefs.h >>conftest.$ac_ext
5007cat >>conftest.$ac_ext <<_ACEOF
5008/* end confdefs.h.  */
5009#include <stdlib.h>
5010
5011_ACEOF
5012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5013  $EGREP "free" >/dev/null 2>&1; then
5014  :
5015else
5016  ac_cv_header_stdc=no
5017fi
5018rm -f conftest*
5019
5020fi
5021
5022if test $ac_cv_header_stdc = yes; then
5023  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5024  if test "$cross_compiling" = yes; then
5025  :
5026else
5027  cat >conftest.$ac_ext <<_ACEOF
5028/* confdefs.h.  */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h.  */
5033#include <ctype.h>
5034#include <stdlib.h>
5035#if ((' ' & 0x0FF) == 0x020)
5036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5038#else
5039# define ISLOWER(c) \
5040		   (('a' <= (c) && (c) <= 'i') \
5041		     || ('j' <= (c) && (c) <= 'r') \
5042		     || ('s' <= (c) && (c) <= 'z'))
5043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5044#endif
5045
5046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5047int
5048main ()
5049{
5050  int i;
5051  for (i = 0; i < 256; i++)
5052    if (XOR (islower (i), ISLOWER (i))
5053	|| toupper (i) != TOUPPER (i))
5054      return 2;
5055  return 0;
5056}
5057_ACEOF
5058rm -f conftest$ac_exeext
5059if { (ac_try="$ac_link"
5060case "(($ac_try" in
5061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062  *) ac_try_echo=$ac_try;;
5063esac
5064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065  (eval "$ac_link") 2>&5
5066  ac_status=$?
5067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5069  { (case "(($ac_try" in
5070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071  *) ac_try_echo=$ac_try;;
5072esac
5073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074  (eval "$ac_try") 2>&5
5075  ac_status=$?
5076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077  (exit $ac_status); }; }; then
5078  :
5079else
5080  echo "$as_me: program exited with status $ac_status" >&5
5081echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084( exit $ac_status )
5085ac_cv_header_stdc=no
5086fi
5087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5088fi
5089
5090
5091fi
5092fi
5093{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5094echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5095if test $ac_cv_header_stdc = yes; then
5096
5097cat >>confdefs.h <<\_ACEOF
5098#define STDC_HEADERS 1
5099_ACEOF
5100
5101fi
5102
5103# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5114		  inttypes.h stdint.h unistd.h
5115do
5116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5117{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5120  echo $ECHO_N "(cached) $ECHO_C" >&6
5121else
5122  cat >conftest.$ac_ext <<_ACEOF
5123/* confdefs.h.  */
5124_ACEOF
5125cat confdefs.h >>conftest.$ac_ext
5126cat >>conftest.$ac_ext <<_ACEOF
5127/* end confdefs.h.  */
5128$ac_includes_default
5129
5130#include <$ac_header>
5131_ACEOF
5132rm -f conftest.$ac_objext
5133if { (ac_try="$ac_compile"
5134case "(($ac_try" in
5135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136  *) ac_try_echo=$ac_try;;
5137esac
5138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139  (eval "$ac_compile") 2>conftest.er1
5140  ac_status=$?
5141  grep -v '^ *+' conftest.er1 >conftest.err
5142  rm -f conftest.er1
5143  cat conftest.err >&5
5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145  (exit $ac_status); } && {
5146	 test -z "$ac_c_werror_flag" ||
5147	 test ! -s conftest.err
5148       } && test -s conftest.$ac_objext; then
5149  eval "$as_ac_Header=yes"
5150else
5151  echo "$as_me: failed program was:" >&5
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154	eval "$as_ac_Header=no"
5155fi
5156
5157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158fi
5159ac_res=`eval echo '${'$as_ac_Header'}'`
5160	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5161echo "${ECHO_T}$ac_res" >&6; }
5162if test `eval echo '${'$as_ac_Header'}'` = yes; then
5163  cat >>confdefs.h <<_ACEOF
5164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5165_ACEOF
5166
5167fi
5168
5169done
5170
5171
5172
5173for ac_header in dlfcn.h
5174do
5175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5177  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181fi
5182ac_res=`eval echo '${'$as_ac_Header'}'`
5183	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5184echo "${ECHO_T}$ac_res" >&6; }
5185else
5186  # Is the header compilable?
5187{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5189cat >conftest.$ac_ext <<_ACEOF
5190/* confdefs.h.  */
5191_ACEOF
5192cat confdefs.h >>conftest.$ac_ext
5193cat >>conftest.$ac_ext <<_ACEOF
5194/* end confdefs.h.  */
5195$ac_includes_default
5196#include <$ac_header>
5197_ACEOF
5198rm -f conftest.$ac_objext
5199if { (ac_try="$ac_compile"
5200case "(($ac_try" in
5201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202  *) ac_try_echo=$ac_try;;
5203esac
5204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205  (eval "$ac_compile") 2>conftest.er1
5206  ac_status=$?
5207  grep -v '^ *+' conftest.er1 >conftest.err
5208  rm -f conftest.er1
5209  cat conftest.err >&5
5210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211  (exit $ac_status); } && {
5212	 test -z "$ac_c_werror_flag" ||
5213	 test ! -s conftest.err
5214       } && test -s conftest.$ac_objext; then
5215  ac_header_compiler=yes
5216else
5217  echo "$as_me: failed program was:" >&5
5218sed 's/^/| /' conftest.$ac_ext >&5
5219
5220	ac_header_compiler=no
5221fi
5222
5223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5225echo "${ECHO_T}$ac_header_compiler" >&6; }
5226
5227# Is the header present?
5228{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5230cat >conftest.$ac_ext <<_ACEOF
5231/* confdefs.h.  */
5232_ACEOF
5233cat confdefs.h >>conftest.$ac_ext
5234cat >>conftest.$ac_ext <<_ACEOF
5235/* end confdefs.h.  */
5236#include <$ac_header>
5237_ACEOF
5238if { (ac_try="$ac_cpp conftest.$ac_ext"
5239case "(($ac_try" in
5240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241  *) ac_try_echo=$ac_try;;
5242esac
5243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5245  ac_status=$?
5246  grep -v '^ *+' conftest.er1 >conftest.err
5247  rm -f conftest.er1
5248  cat conftest.err >&5
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); } >/dev/null && {
5251	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5252	 test ! -s conftest.err
5253       }; then
5254  ac_header_preproc=yes
5255else
5256  echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
5259  ac_header_preproc=no
5260fi
5261
5262rm -f conftest.err conftest.$ac_ext
5263{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5264echo "${ECHO_T}$ac_header_preproc" >&6; }
5265
5266# So?  What about this header?
5267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5268  yes:no: )
5269    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5271    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5273    ac_header_preproc=yes
5274    ;;
5275  no:yes:* )
5276    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5278    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5279echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5280    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5282    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5283echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5284    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5286    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5288    ( cat <<\_ASBOX
5289## ---------------------------------------------------------------------- ##
5290## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5291## ---------------------------------------------------------------------- ##
5292_ASBOX
5293     ) | sed "s/^/$as_me: WARNING:     /" >&2
5294    ;;
5295esac
5296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299  echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301  eval "$as_ac_Header=\$ac_header_preproc"
5302fi
5303ac_res=`eval echo '${'$as_ac_Header'}'`
5304	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5305echo "${ECHO_T}$ac_res" >&6; }
5306
5307fi
5308if test `eval echo '${'$as_ac_Header'}'` = yes; then
5309  cat >>confdefs.h <<_ACEOF
5310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5311_ACEOF
5312
5313fi
5314
5315done
5316
5317ac_ext=cpp
5318ac_cpp='$CXXCPP $CPPFLAGS'
5319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5322if test -z "$CXX"; then
5323  if test -n "$CCC"; then
5324    CXX=$CCC
5325  else
5326    if test -n "$ac_tool_prefix"; then
5327  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5328  do
5329    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5333if test "${ac_cv_prog_CXX+set}" = set; then
5334  echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336  if test -n "$CXX"; then
5337  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5338else
5339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342  IFS=$as_save_IFS
5343  test -z "$as_dir" && as_dir=.
5344  for ac_exec_ext in '' $ac_executable_extensions; do
5345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348    break 2
5349  fi
5350done
5351done
5352IFS=$as_save_IFS
5353
5354fi
5355fi
5356CXX=$ac_cv_prog_CXX
5357if test -n "$CXX"; then
5358  { echo "$as_me:$LINENO: result: $CXX" >&5
5359echo "${ECHO_T}$CXX" >&6; }
5360else
5361  { echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6; }
5363fi
5364
5365
5366    test -n "$CXX" && break
5367  done
5368fi
5369if test -z "$CXX"; then
5370  ac_ct_CXX=$CXX
5371  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5372do
5373  # Extract the first word of "$ac_prog", so it can be a program name with args.
5374set dummy $ac_prog; ac_word=$2
5375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5377if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5378  echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380  if test -n "$ac_ct_CXX"; then
5381  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5382else
5383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH
5385do
5386  IFS=$as_save_IFS
5387  test -z "$as_dir" && as_dir=.
5388  for ac_exec_ext in '' $ac_executable_extensions; do
5389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390    ac_cv_prog_ac_ct_CXX="$ac_prog"
5391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392    break 2
5393  fi
5394done
5395done
5396IFS=$as_save_IFS
5397
5398fi
5399fi
5400ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5401if test -n "$ac_ct_CXX"; then
5402  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5403echo "${ECHO_T}$ac_ct_CXX" >&6; }
5404else
5405  { echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6; }
5407fi
5408
5409
5410  test -n "$ac_ct_CXX" && break
5411done
5412
5413  if test "x$ac_ct_CXX" = x; then
5414    CXX="g++"
5415  else
5416    case $cross_compiling:$ac_tool_warned in
5417yes:)
5418{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5419whose name does not start with the host triplet.  If you think this
5420configuration is useful to you, please write to autoconf@gnu.org." >&5
5421echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5422whose name does not start with the host triplet.  If you think this
5423configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5424ac_tool_warned=yes ;;
5425esac
5426    CXX=$ac_ct_CXX
5427  fi
5428fi
5429
5430  fi
5431fi
5432# Provide some information about the compiler.
5433echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5434ac_compiler=`set X $ac_compile; echo $2`
5435{ (ac_try="$ac_compiler --version >&5"
5436case "(($ac_try" in
5437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438  *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441  (eval "$ac_compiler --version >&5") 2>&5
5442  ac_status=$?
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); }
5445{ (ac_try="$ac_compiler -v >&5"
5446case "(($ac_try" in
5447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448  *) ac_try_echo=$ac_try;;
5449esac
5450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451  (eval "$ac_compiler -v >&5") 2>&5
5452  ac_status=$?
5453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454  (exit $ac_status); }
5455{ (ac_try="$ac_compiler -V >&5"
5456case "(($ac_try" in
5457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458  *) ac_try_echo=$ac_try;;
5459esac
5460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461  (eval "$ac_compiler -V >&5") 2>&5
5462  ac_status=$?
5463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464  (exit $ac_status); }
5465
5466{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5467echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5468if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5469  echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471  cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h.  */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h.  */
5477
5478int
5479main ()
5480{
5481#ifndef __GNUC__
5482       choke me
5483#endif
5484
5485  ;
5486  return 0;
5487}
5488_ACEOF
5489rm -f conftest.$ac_objext
5490if { (ac_try="$ac_compile"
5491case "(($ac_try" in
5492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493  *) ac_try_echo=$ac_try;;
5494esac
5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496  (eval "$ac_compile") 2>conftest.er1
5497  ac_status=$?
5498  grep -v '^ *+' conftest.er1 >conftest.err
5499  rm -f conftest.er1
5500  cat conftest.err >&5
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); } && {
5503	 test -z "$ac_cxx_werror_flag" ||
5504	 test ! -s conftest.err
5505       } && test -s conftest.$ac_objext; then
5506  ac_compiler_gnu=yes
5507else
5508  echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
5511	ac_compiler_gnu=no
5512fi
5513
5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5516
5517fi
5518{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5519echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5520GXX=`test $ac_compiler_gnu = yes && echo yes`
5521ac_test_CXXFLAGS=${CXXFLAGS+set}
5522ac_save_CXXFLAGS=$CXXFLAGS
5523{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5524echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5525if test "${ac_cv_prog_cxx_g+set}" = set; then
5526  echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5529   ac_cxx_werror_flag=yes
5530   ac_cv_prog_cxx_g=no
5531   CXXFLAGS="-g"
5532   cat >conftest.$ac_ext <<_ACEOF
5533/* confdefs.h.  */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h.  */
5538
5539int
5540main ()
5541{
5542
5543  ;
5544  return 0;
5545}
5546_ACEOF
5547rm -f conftest.$ac_objext
5548if { (ac_try="$ac_compile"
5549case "(($ac_try" in
5550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551  *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554  (eval "$ac_compile") 2>conftest.er1
5555  ac_status=$?
5556  grep -v '^ *+' conftest.er1 >conftest.err
5557  rm -f conftest.er1
5558  cat conftest.err >&5
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); } && {
5561	 test -z "$ac_cxx_werror_flag" ||
5562	 test ! -s conftest.err
5563       } && test -s conftest.$ac_objext; then
5564  ac_cv_prog_cxx_g=yes
5565else
5566  echo "$as_me: failed program was:" >&5
5567sed 's/^/| /' conftest.$ac_ext >&5
5568
5569	CXXFLAGS=""
5570      cat >conftest.$ac_ext <<_ACEOF
5571/* confdefs.h.  */
5572_ACEOF
5573cat confdefs.h >>conftest.$ac_ext
5574cat >>conftest.$ac_ext <<_ACEOF
5575/* end confdefs.h.  */
5576
5577int
5578main ()
5579{
5580
5581  ;
5582  return 0;
5583}
5584_ACEOF
5585rm -f conftest.$ac_objext
5586if { (ac_try="$ac_compile"
5587case "(($ac_try" in
5588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589  *) ac_try_echo=$ac_try;;
5590esac
5591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592  (eval "$ac_compile") 2>conftest.er1
5593  ac_status=$?
5594  grep -v '^ *+' conftest.er1 >conftest.err
5595  rm -f conftest.er1
5596  cat conftest.err >&5
5597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598  (exit $ac_status); } && {
5599	 test -z "$ac_cxx_werror_flag" ||
5600	 test ! -s conftest.err
5601       } && test -s conftest.$ac_objext; then
5602  :
5603else
5604  echo "$as_me: failed program was:" >&5
5605sed 's/^/| /' conftest.$ac_ext >&5
5606
5607	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5608	 CXXFLAGS="-g"
5609	 cat >conftest.$ac_ext <<_ACEOF
5610/* confdefs.h.  */
5611_ACEOF
5612cat confdefs.h >>conftest.$ac_ext
5613cat >>conftest.$ac_ext <<_ACEOF
5614/* end confdefs.h.  */
5615
5616int
5617main ()
5618{
5619
5620  ;
5621  return 0;
5622}
5623_ACEOF
5624rm -f conftest.$ac_objext
5625if { (ac_try="$ac_compile"
5626case "(($ac_try" in
5627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628  *) ac_try_echo=$ac_try;;
5629esac
5630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631  (eval "$ac_compile") 2>conftest.er1
5632  ac_status=$?
5633  grep -v '^ *+' conftest.er1 >conftest.err
5634  rm -f conftest.er1
5635  cat conftest.err >&5
5636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637  (exit $ac_status); } && {
5638	 test -z "$ac_cxx_werror_flag" ||
5639	 test ! -s conftest.err
5640       } && test -s conftest.$ac_objext; then
5641  ac_cv_prog_cxx_g=yes
5642else
5643  echo "$as_me: failed program was:" >&5
5644sed 's/^/| /' conftest.$ac_ext >&5
5645
5646
5647fi
5648
5649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650fi
5651
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653fi
5654
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5657fi
5658{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5659echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5660if test "$ac_test_CXXFLAGS" = set; then
5661  CXXFLAGS=$ac_save_CXXFLAGS
5662elif test $ac_cv_prog_cxx_g = yes; then
5663  if test "$GXX" = yes; then
5664    CXXFLAGS="-g -O2"
5665  else
5666    CXXFLAGS="-g"
5667  fi
5668else
5669  if test "$GXX" = yes; then
5670    CXXFLAGS="-O2"
5671  else
5672    CXXFLAGS=
5673  fi
5674fi
5675ac_ext=cpp
5676ac_cpp='$CXXCPP $CPPFLAGS'
5677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5680
5681depcc="$CXX"  am_compiler_list=
5682
5683{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5684echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5685if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5686  echo $ECHO_N "(cached) $ECHO_C" >&6
5687else
5688  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5689  # We make a subdir and do the tests there.  Otherwise we can end up
5690  # making bogus files that we don't know about and never remove.  For
5691  # instance it was reported that on HP-UX the gcc test will end up
5692  # making a dummy file named `D' -- because `-MD' means `put the output
5693  # in D'.
5694  mkdir conftest.dir
5695  # Copy depcomp to subdir because otherwise we won't find it if we're
5696  # using a relative directory.
5697  cp "$am_depcomp" conftest.dir
5698  cd conftest.dir
5699  # We will build objects and dependencies in a subdirectory because
5700  # it helps to detect inapplicable dependency modes.  For instance
5701  # both Tru64's cc and ICC support -MD to output dependencies as a
5702  # side effect of compilation, but ICC will put the dependencies in
5703  # the current directory while Tru64 will put them in the object
5704  # directory.
5705  mkdir sub
5706
5707  am_cv_CXX_dependencies_compiler_type=none
5708  if test "$am_compiler_list" = ""; then
5709     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5710  fi
5711  for depmode in $am_compiler_list; do
5712    # Setup a source with many dependencies, because some compilers
5713    # like to wrap large dependency lists on column 80 (with \), and
5714    # we should not choose a depcomp mode which is confused by this.
5715    #
5716    # We need to recreate these files for each test, as the compiler may
5717    # overwrite some of them when testing with obscure command lines.
5718    # This happens at least with the AIX C compiler.
5719    : > sub/conftest.c
5720    for i in 1 2 3 4 5 6; do
5721      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5722      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5723      # Solaris 8's {/usr,}/bin/sh.
5724      touch sub/conftst$i.h
5725    done
5726    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5727
5728    case $depmode in
5729    nosideeffect)
5730      # after this tag, mechanisms are not by side-effect, so they'll
5731      # only be used when explicitly requested
5732      if test "x$enable_dependency_tracking" = xyes; then
5733	continue
5734      else
5735	break
5736      fi
5737      ;;
5738    none) break ;;
5739    esac
5740    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5741    # mode.  It turns out that the SunPro C++ compiler does not properly
5742    # handle `-M -o', and we need to detect this.
5743    if depmode=$depmode \
5744       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5745       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5746       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5747         >/dev/null 2>conftest.err &&
5748       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5749       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5750       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5751       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5752      # icc doesn't choke on unknown options, it will just issue warnings
5753      # or remarks (even with -Werror).  So we grep stderr for any message
5754      # that says an option was ignored or not supported.
5755      # When given -MP, icc 7.0 and 7.1 complain thusly:
5756      #   icc: Command line warning: ignoring option '-M'; no argument required
5757      # The diagnosis changed in icc 8.0:
5758      #   icc: Command line remark: option '-MP' not supported
5759      if (grep 'ignoring option' conftest.err ||
5760          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5761        am_cv_CXX_dependencies_compiler_type=$depmode
5762        break
5763      fi
5764    fi
5765  done
5766
5767  cd ..
5768  rm -rf conftest.dir
5769else
5770  am_cv_CXX_dependencies_compiler_type=none
5771fi
5772
5773fi
5774{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5775echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5776CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5777
5778 if
5779  test "x$enable_dependency_tracking" != xno \
5780  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5781  am__fastdepCXX_TRUE=
5782  am__fastdepCXX_FALSE='#'
5783else
5784  am__fastdepCXX_TRUE='#'
5785  am__fastdepCXX_FALSE=
5786fi
5787
5788
5789
5790
5791if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5792    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5793    (test "X$CXX" != "Xg++"))) ; then
5794  ac_ext=cpp
5795ac_cpp='$CXXCPP $CPPFLAGS'
5796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5799{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5800echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5801if test -z "$CXXCPP"; then
5802  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5803  echo $ECHO_N "(cached) $ECHO_C" >&6
5804else
5805      # Double quotes because CXXCPP needs to be expanded
5806    for CXXCPP in "$CXX -E" "/lib/cpp"
5807    do
5808      ac_preproc_ok=false
5809for ac_cxx_preproc_warn_flag in '' yes
5810do
5811  # Use a header file that comes with gcc, so configuring glibc
5812  # with a fresh cross-compiler works.
5813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814  # <limits.h> exists even on freestanding compilers.
5815  # On the NeXT, cc -E runs the code through the compiler's parser,
5816  # not just through cpp. "Syntax error" is here to catch this case.
5817  cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h.  */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h.  */
5823#ifdef __STDC__
5824# include <limits.h>
5825#else
5826# include <assert.h>
5827#endif
5828		     Syntax error
5829_ACEOF
5830if { (ac_try="$ac_cpp conftest.$ac_ext"
5831case "(($ac_try" in
5832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833  *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837  ac_status=$?
5838  grep -v '^ *+' conftest.er1 >conftest.err
5839  rm -f conftest.er1
5840  cat conftest.err >&5
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); } >/dev/null && {
5843	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5844	 test ! -s conftest.err
5845       }; then
5846  :
5847else
5848  echo "$as_me: failed program was:" >&5
5849sed 's/^/| /' conftest.$ac_ext >&5
5850
5851  # Broken: fails on valid input.
5852continue
5853fi
5854
5855rm -f conftest.err conftest.$ac_ext
5856
5857  # OK, works on sane cases.  Now check whether nonexistent headers
5858  # can be detected and how.
5859  cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h.  */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h.  */
5865#include <ac_nonexistent.h>
5866_ACEOF
5867if { (ac_try="$ac_cpp conftest.$ac_ext"
5868case "(($ac_try" in
5869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870  *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5874  ac_status=$?
5875  grep -v '^ *+' conftest.er1 >conftest.err
5876  rm -f conftest.er1
5877  cat conftest.err >&5
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); } >/dev/null && {
5880	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5881	 test ! -s conftest.err
5882       }; then
5883  # Broken: success on invalid input.
5884continue
5885else
5886  echo "$as_me: failed program was:" >&5
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
5889  # Passes both tests.
5890ac_preproc_ok=:
5891break
5892fi
5893
5894rm -f conftest.err conftest.$ac_ext
5895
5896done
5897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5898rm -f conftest.err conftest.$ac_ext
5899if $ac_preproc_ok; then
5900  break
5901fi
5902
5903    done
5904    ac_cv_prog_CXXCPP=$CXXCPP
5905
5906fi
5907  CXXCPP=$ac_cv_prog_CXXCPP
5908else
5909  ac_cv_prog_CXXCPP=$CXXCPP
5910fi
5911{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5912echo "${ECHO_T}$CXXCPP" >&6; }
5913ac_preproc_ok=false
5914for ac_cxx_preproc_warn_flag in '' yes
5915do
5916  # Use a header file that comes with gcc, so configuring glibc
5917  # with a fresh cross-compiler works.
5918  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5919  # <limits.h> exists even on freestanding compilers.
5920  # On the NeXT, cc -E runs the code through the compiler's parser,
5921  # not just through cpp. "Syntax error" is here to catch this case.
5922  cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h.  */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h.  */
5928#ifdef __STDC__
5929# include <limits.h>
5930#else
5931# include <assert.h>
5932#endif
5933		     Syntax error
5934_ACEOF
5935if { (ac_try="$ac_cpp conftest.$ac_ext"
5936case "(($ac_try" in
5937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938  *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5942  ac_status=$?
5943  grep -v '^ *+' conftest.er1 >conftest.err
5944  rm -f conftest.er1
5945  cat conftest.err >&5
5946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); } >/dev/null && {
5948	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5949	 test ! -s conftest.err
5950       }; then
5951  :
5952else
5953  echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
5956  # Broken: fails on valid input.
5957continue
5958fi
5959
5960rm -f conftest.err conftest.$ac_ext
5961
5962  # OK, works on sane cases.  Now check whether nonexistent headers
5963  # can be detected and how.
5964  cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h.  */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h.  */
5970#include <ac_nonexistent.h>
5971_ACEOF
5972if { (ac_try="$ac_cpp conftest.$ac_ext"
5973case "(($ac_try" in
5974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975  *) ac_try_echo=$ac_try;;
5976esac
5977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5979  ac_status=$?
5980  grep -v '^ *+' conftest.er1 >conftest.err
5981  rm -f conftest.er1
5982  cat conftest.err >&5
5983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984  (exit $ac_status); } >/dev/null && {
5985	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5986	 test ! -s conftest.err
5987       }; then
5988  # Broken: success on invalid input.
5989continue
5990else
5991  echo "$as_me: failed program was:" >&5
5992sed 's/^/| /' conftest.$ac_ext >&5
5993
5994  # Passes both tests.
5995ac_preproc_ok=:
5996break
5997fi
5998
5999rm -f conftest.err conftest.$ac_ext
6000
6001done
6002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6003rm -f conftest.err conftest.$ac_ext
6004if $ac_preproc_ok; then
6005  :
6006else
6007  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6008See \`config.log' for more details." >&5
6009echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6010See \`config.log' for more details." >&2;}
6011   { (exit 1); exit 1; }; }
6012fi
6013
6014ac_ext=cpp
6015ac_cpp='$CXXCPP $CPPFLAGS'
6016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6019
6020fi
6021
6022
6023ac_ext=f
6024ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6025ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6027if test -n "$ac_tool_prefix"; then
6028  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
6029  do
6030    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6031set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6034if test "${ac_cv_prog_F77+set}" = set; then
6035  echo $ECHO_N "(cached) $ECHO_C" >&6
6036else
6037  if test -n "$F77"; then
6038  ac_cv_prog_F77="$F77" # Let the user override the test.
6039else
6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043  IFS=$as_save_IFS
6044  test -z "$as_dir" && as_dir=.
6045  for ac_exec_ext in '' $ac_executable_extensions; do
6046  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049    break 2
6050  fi
6051done
6052done
6053IFS=$as_save_IFS
6054
6055fi
6056fi
6057F77=$ac_cv_prog_F77
6058if test -n "$F77"; then
6059  { echo "$as_me:$LINENO: result: $F77" >&5
6060echo "${ECHO_T}$F77" >&6; }
6061else
6062  { echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6; }
6064fi
6065
6066
6067    test -n "$F77" && break
6068  done
6069fi
6070if test -z "$F77"; then
6071  ac_ct_F77=$F77
6072  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
6073do
6074  # Extract the first word of "$ac_prog", so it can be a program name with args.
6075set dummy $ac_prog; ac_word=$2
6076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6078if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6079  echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081  if test -n "$ac_ct_F77"; then
6082  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6083else
6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085for as_dir in $PATH
6086do
6087  IFS=$as_save_IFS
6088  test -z "$as_dir" && as_dir=.
6089  for ac_exec_ext in '' $ac_executable_extensions; do
6090  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091    ac_cv_prog_ac_ct_F77="$ac_prog"
6092    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093    break 2
6094  fi
6095done
6096done
6097IFS=$as_save_IFS
6098
6099fi
6100fi
6101ac_ct_F77=$ac_cv_prog_ac_ct_F77
6102if test -n "$ac_ct_F77"; then
6103  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6104echo "${ECHO_T}$ac_ct_F77" >&6; }
6105else
6106  { echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6; }
6108fi
6109
6110
6111  test -n "$ac_ct_F77" && break
6112done
6113
6114  if test "x$ac_ct_F77" = x; then
6115    F77=""
6116  else
6117    case $cross_compiling:$ac_tool_warned in
6118yes:)
6119{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120whose name does not start with the host triplet.  If you think this
6121configuration is useful to you, please write to autoconf@gnu.org." >&5
6122echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123whose name does not start with the host triplet.  If you think this
6124configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125ac_tool_warned=yes ;;
6126esac
6127    F77=$ac_ct_F77
6128  fi
6129fi
6130
6131
6132# Provide some information about the compiler.
6133echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6134ac_compiler=`set X $ac_compile; echo $2`
6135{ (ac_try="$ac_compiler --version >&5"
6136case "(($ac_try" in
6137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138  *) ac_try_echo=$ac_try;;
6139esac
6140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141  (eval "$ac_compiler --version >&5") 2>&5
6142  ac_status=$?
6143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); }
6145{ (ac_try="$ac_compiler -v >&5"
6146case "(($ac_try" in
6147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148  *) ac_try_echo=$ac_try;;
6149esac
6150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151  (eval "$ac_compiler -v >&5") 2>&5
6152  ac_status=$?
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); }
6155{ (ac_try="$ac_compiler -V >&5"
6156case "(($ac_try" in
6157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158  *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161  (eval "$ac_compiler -V >&5") 2>&5
6162  ac_status=$?
6163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164  (exit $ac_status); }
6165rm -f a.out
6166
6167# If we don't use `.F' as extension, the preprocessor is not run on the
6168# input file.  (Note that this only needs to work for GNU compilers.)
6169ac_save_ext=$ac_ext
6170ac_ext=F
6171{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6172echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6173if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6174  echo $ECHO_N "(cached) $ECHO_C" >&6
6175else
6176  cat >conftest.$ac_ext <<_ACEOF
6177      program main
6178#ifndef __GNUC__
6179       choke me
6180#endif
6181
6182      end
6183_ACEOF
6184rm -f conftest.$ac_objext
6185if { (ac_try="$ac_compile"
6186case "(($ac_try" in
6187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188  *) ac_try_echo=$ac_try;;
6189esac
6190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191  (eval "$ac_compile") 2>conftest.er1
6192  ac_status=$?
6193  grep -v '^ *+' conftest.er1 >conftest.err
6194  rm -f conftest.er1
6195  cat conftest.err >&5
6196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); } && {
6198	 test -z "$ac_f77_werror_flag" ||
6199	 test ! -s conftest.err
6200       } && test -s conftest.$ac_objext; then
6201  ac_compiler_gnu=yes
6202else
6203  echo "$as_me: failed program was:" >&5
6204sed 's/^/| /' conftest.$ac_ext >&5
6205
6206	ac_compiler_gnu=no
6207fi
6208
6209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6211
6212fi
6213{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6214echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6215ac_ext=$ac_save_ext
6216ac_test_FFLAGS=${FFLAGS+set}
6217ac_save_FFLAGS=$FFLAGS
6218FFLAGS=
6219{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6220echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6221if test "${ac_cv_prog_f77_g+set}" = set; then
6222  echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224  FFLAGS=-g
6225cat >conftest.$ac_ext <<_ACEOF
6226      program main
6227
6228      end
6229_ACEOF
6230rm -f conftest.$ac_objext
6231if { (ac_try="$ac_compile"
6232case "(($ac_try" in
6233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234  *) ac_try_echo=$ac_try;;
6235esac
6236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237  (eval "$ac_compile") 2>conftest.er1
6238  ac_status=$?
6239  grep -v '^ *+' conftest.er1 >conftest.err
6240  rm -f conftest.er1
6241  cat conftest.err >&5
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); } && {
6244	 test -z "$ac_f77_werror_flag" ||
6245	 test ! -s conftest.err
6246       } && test -s conftest.$ac_objext; then
6247  ac_cv_prog_f77_g=yes
6248else
6249  echo "$as_me: failed program was:" >&5
6250sed 's/^/| /' conftest.$ac_ext >&5
6251
6252	ac_cv_prog_f77_g=no
6253fi
6254
6255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256
6257fi
6258{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6259echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6260if test "$ac_test_FFLAGS" = set; then
6261  FFLAGS=$ac_save_FFLAGS
6262elif test $ac_cv_prog_f77_g = yes; then
6263  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6264    FFLAGS="-g -O2"
6265  else
6266    FFLAGS="-g"
6267  fi
6268else
6269  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6270    FFLAGS="-O2"
6271  else
6272    FFLAGS=
6273  fi
6274fi
6275
6276G77=`test $ac_compiler_gnu = yes && echo yes`
6277ac_ext=c
6278ac_cpp='$CPP $CPPFLAGS'
6279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281ac_compiler_gnu=$ac_cv_c_compiler_gnu
6282
6283
6284
6285# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6286# find the maximum length of command line arguments
6287{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6288echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6289if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6290  echo $ECHO_N "(cached) $ECHO_C" >&6
6291else
6292    i=0
6293  teststring="ABCD"
6294
6295  case $build_os in
6296  msdosdjgpp*)
6297    # On DJGPP, this test can blow up pretty badly due to problems in libc
6298    # (any single argument exceeding 2000 bytes causes a buffer overrun
6299    # during glob expansion).  Even if it were fixed, the result of this
6300    # check would be larger than it should be.
6301    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6302    ;;
6303
6304  gnu*)
6305    # Under GNU Hurd, this test is not required because there is
6306    # no limit to the length of command line arguments.
6307    # Libtool will interpret -1 as no limit whatsoever
6308    lt_cv_sys_max_cmd_len=-1;
6309    ;;
6310
6311  cygwin* | mingw*)
6312    # On Win9x/ME, this test blows up -- it succeeds, but takes
6313    # about 5 minutes as the teststring grows exponentially.
6314    # Worse, since 9x/ME are not pre-emptively multitasking,
6315    # you end up with a "frozen" computer, even though with patience
6316    # the test eventually succeeds (with a max line length of 256k).
6317    # Instead, let's just punt: use the minimum linelength reported by
6318    # all of the supported platforms: 8192 (on NT/2K/XP).
6319    lt_cv_sys_max_cmd_len=8192;
6320    ;;
6321
6322  amigaos*)
6323    # On AmigaOS with pdksh, this test takes hours, literally.
6324    # So we just punt and use a minimum line length of 8192.
6325    lt_cv_sys_max_cmd_len=8192;
6326    ;;
6327
6328  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6329    # This has been around since 386BSD, at least.  Likely further.
6330    if test -x /sbin/sysctl; then
6331      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6332    elif test -x /usr/sbin/sysctl; then
6333      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6334    else
6335      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6336    fi
6337    # And add a safety zone
6338    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6339    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6340    ;;
6341
6342  interix*)
6343    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6344    lt_cv_sys_max_cmd_len=196608
6345    ;;
6346
6347  osf*)
6348    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6349    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6350    # nice to cause kernel panics so lets avoid the loop below.
6351    # First set a reasonable default.
6352    lt_cv_sys_max_cmd_len=16384
6353    #
6354    if test -x /sbin/sysconfig; then
6355      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6356        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6357      esac
6358    fi
6359    ;;
6360  sco3.2v5*)
6361    lt_cv_sys_max_cmd_len=102400
6362    ;;
6363  sysv5* | sco5v6* | sysv4.2uw2*)
6364    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6365    if test -n "$kargmax"; then
6366      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6367    else
6368      lt_cv_sys_max_cmd_len=32768
6369    fi
6370    ;;
6371  *)
6372    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6373    if test -n "$lt_cv_sys_max_cmd_len"; then
6374      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6375      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6376    else
6377      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6378      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6379	       = "XX$teststring") >/dev/null 2>&1 &&
6380	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6381	      lt_cv_sys_max_cmd_len=$new_result &&
6382	      test $i != 17 # 1/2 MB should be enough
6383      do
6384        i=`expr $i + 1`
6385        teststring=$teststring$teststring
6386      done
6387      teststring=
6388      # Add a significant safety factor because C++ compilers can tack on massive
6389      # amounts of additional arguments before passing them to the linker.
6390      # It appears as though 1/2 is a usable value.
6391      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6392    fi
6393    ;;
6394  esac
6395
6396fi
6397
6398if test -n $lt_cv_sys_max_cmd_len ; then
6399  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6400echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6401else
6402  { echo "$as_me:$LINENO: result: none" >&5
6403echo "${ECHO_T}none" >&6; }
6404fi
6405
6406
6407
6408
6409
6410# Check for command to grab the raw symbol name followed by C symbol from nm.
6411{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6412echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6413if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6414  echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
6416
6417# These are sane defaults that work on at least a few old systems.
6418# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6419
6420# Character class describing NM global symbol codes.
6421symcode='[BCDEGRST]'
6422
6423# Regexp to match symbols that can be accessed directly from C.
6424sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6425
6426# Transform an extracted symbol line into a proper C declaration
6427lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6428
6429# Transform an extracted symbol line into symbol name and symbol address
6430lt_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'"
6431
6432# Define system-specific variables.
6433case $host_os in
6434aix*)
6435  symcode='[BCDT]'
6436  ;;
6437cygwin* | mingw* | pw32*)
6438  symcode='[ABCDGISTW]'
6439  ;;
6440hpux*) # Its linker distinguishes data from code symbols
6441  if test "$host_cpu" = ia64; then
6442    symcode='[ABCDEGRST]'
6443  fi
6444  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6445  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'"
6446  ;;
6447linux* | k*bsd*-gnu)
6448  if test "$host_cpu" = ia64; then
6449    symcode='[ABCDGIRSTW]'
6450    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6451    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'"
6452  fi
6453  ;;
6454irix* | nonstopux*)
6455  symcode='[BCDEGRST]'
6456  ;;
6457osf*)
6458  symcode='[BCDEGQRST]'
6459  ;;
6460solaris*)
6461  symcode='[BDRT]'
6462  ;;
6463sco3.2v5*)
6464  symcode='[DT]'
6465  ;;
6466sysv4.2uw2*)
6467  symcode='[DT]'
6468  ;;
6469sysv5* | sco5v6* | unixware* | OpenUNIX*)
6470  symcode='[ABDT]'
6471  ;;
6472sysv4)
6473  symcode='[DFNSTU]'
6474  ;;
6475esac
6476
6477# Handle CRLF in mingw tool chain
6478opt_cr=
6479case $build_os in
6480mingw*)
6481  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6482  ;;
6483esac
6484
6485# If we're using GNU nm, then use its standard symbol codes.
6486case `$NM -V 2>&1` in
6487*GNU* | *'with BFD'*)
6488  symcode='[ABCDGIRSTW]' ;;
6489esac
6490
6491# Try without a prefix undercore, then with it.
6492for ac_symprfx in "" "_"; do
6493
6494  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6495  symxfrm="\\1 $ac_symprfx\\2 \\2"
6496
6497  # Write the raw and C identifiers.
6498  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6499
6500  # Check to see that the pipe works correctly.
6501  pipe_works=no
6502
6503  rm -f conftest*
6504  cat > conftest.$ac_ext <<EOF
6505#ifdef __cplusplus
6506extern "C" {
6507#endif
6508char nm_test_var;
6509void nm_test_func(){}
6510#ifdef __cplusplus
6511}
6512#endif
6513int main(){nm_test_var='a';nm_test_func();return(0);}
6514EOF
6515
6516  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517  (eval $ac_compile) 2>&5
6518  ac_status=$?
6519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520  (exit $ac_status); }; then
6521    # Now try to grab the symbols.
6522    nlist=conftest.nm
6523    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6524  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6525  ac_status=$?
6526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); } && test -s "$nlist"; then
6528      # Try sorting and uniquifying the output.
6529      if sort "$nlist" | uniq > "$nlist"T; then
6530	mv -f "$nlist"T "$nlist"
6531      else
6532	rm -f "$nlist"T
6533      fi
6534
6535      # Make sure that we snagged all the symbols we need.
6536      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6537	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6538	  cat <<EOF > conftest.$ac_ext
6539#ifdef __cplusplus
6540extern "C" {
6541#endif
6542
6543EOF
6544	  # Now generate the symbol file.
6545	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6546
6547	  cat <<EOF >> conftest.$ac_ext
6548#if defined (__STDC__) && __STDC__
6549# define lt_ptr_t void *
6550#else
6551# define lt_ptr_t char *
6552# define const
6553#endif
6554
6555/* The mapping between symbol names and symbols. */
6556const struct {
6557  const char *name;
6558  lt_ptr_t address;
6559}
6560lt_preloaded_symbols[] =
6561{
6562EOF
6563	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6564	  cat <<\EOF >> conftest.$ac_ext
6565  {0, (lt_ptr_t) 0}
6566};
6567
6568#ifdef __cplusplus
6569}
6570#endif
6571EOF
6572	  # Now try linking the two files.
6573	  mv conftest.$ac_objext conftstm.$ac_objext
6574	  lt_save_LIBS="$LIBS"
6575	  lt_save_CFLAGS="$CFLAGS"
6576	  LIBS="conftstm.$ac_objext"
6577	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6578	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579  (eval $ac_link) 2>&5
6580  ac_status=$?
6581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6583	    pipe_works=yes
6584	  fi
6585	  LIBS="$lt_save_LIBS"
6586	  CFLAGS="$lt_save_CFLAGS"
6587	else
6588	  echo "cannot find nm_test_func in $nlist" >&5
6589	fi
6590      else
6591	echo "cannot find nm_test_var in $nlist" >&5
6592      fi
6593    else
6594      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6595    fi
6596  else
6597    echo "$progname: failed program was:" >&5
6598    cat conftest.$ac_ext >&5
6599  fi
6600  rm -rf conftest* conftst*
6601
6602  # Do not use the global_symbol_pipe unless it works.
6603  if test "$pipe_works" = yes; then
6604    break
6605  else
6606    lt_cv_sys_global_symbol_pipe=
6607  fi
6608done
6609
6610fi
6611
6612if test -z "$lt_cv_sys_global_symbol_pipe"; then
6613  lt_cv_sys_global_symbol_to_cdecl=
6614fi
6615if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6616  { echo "$as_me:$LINENO: result: failed" >&5
6617echo "${ECHO_T}failed" >&6; }
6618else
6619  { echo "$as_me:$LINENO: result: ok" >&5
6620echo "${ECHO_T}ok" >&6; }
6621fi
6622
6623{ echo "$as_me:$LINENO: checking for objdir" >&5
6624echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6625if test "${lt_cv_objdir+set}" = set; then
6626  echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628  rm -f .libs 2>/dev/null
6629mkdir .libs 2>/dev/null
6630if test -d .libs; then
6631  lt_cv_objdir=.libs
6632else
6633  # MS-DOS does not allow filenames that begin with a dot.
6634  lt_cv_objdir=_libs
6635fi
6636rmdir .libs 2>/dev/null
6637fi
6638{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6639echo "${ECHO_T}$lt_cv_objdir" >&6; }
6640objdir=$lt_cv_objdir
6641
6642
6643
6644
6645
6646case $host_os in
6647aix3*)
6648  # AIX sometimes has problems with the GCC collect2 program.  For some
6649  # reason, if we set the COLLECT_NAMES environment variable, the problems
6650  # vanish in a puff of smoke.
6651  if test "X${COLLECT_NAMES+set}" != Xset; then
6652    COLLECT_NAMES=
6653    export COLLECT_NAMES
6654  fi
6655  ;;
6656esac
6657
6658# Sed substitution that helps us do robust quoting.  It backslashifies
6659# metacharacters that are still active within double-quoted strings.
6660Xsed='sed -e 1s/^X//'
6661sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6662
6663# Same as above, but do not quote variable references.
6664double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6665
6666# Sed substitution to delay expansion of an escaped shell variable in a
6667# double_quote_subst'ed string.
6668delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6669
6670# Sed substitution to avoid accidental globbing in evaled expressions
6671no_glob_subst='s/\*/\\\*/g'
6672
6673# Constants:
6674rm="rm -f"
6675
6676# Global variables:
6677default_ofile=libtool
6678can_build_shared=yes
6679
6680# All known linkers require a `.a' archive for static linking (except MSVC,
6681# which needs '.lib').
6682libext=a
6683ltmain="$ac_aux_dir/ltmain.sh"
6684ofile="$default_ofile"
6685with_gnu_ld="$lt_cv_prog_gnu_ld"
6686
6687if test -n "$ac_tool_prefix"; then
6688  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}ar; ac_word=$2
6690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6692if test "${ac_cv_prog_AR+set}" = set; then
6693  echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695  if test -n "$AR"; then
6696  ac_cv_prog_AR="$AR" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703  for ac_exec_ext in '' $ac_executable_extensions; do
6704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705    ac_cv_prog_AR="${ac_tool_prefix}ar"
6706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715AR=$ac_cv_prog_AR
6716if test -n "$AR"; then
6717  { echo "$as_me:$LINENO: result: $AR" >&5
6718echo "${ECHO_T}$AR" >&6; }
6719else
6720  { echo "$as_me:$LINENO: result: no" >&5
6721echo "${ECHO_T}no" >&6; }
6722fi
6723
6724
6725fi
6726if test -z "$ac_cv_prog_AR"; then
6727  ac_ct_AR=$AR
6728  # Extract the first word of "ar", so it can be a program name with args.
6729set dummy ar; ac_word=$2
6730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6733  echo $ECHO_N "(cached) $ECHO_C" >&6
6734else
6735  if test -n "$ac_ct_AR"; then
6736  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743  for ac_exec_ext in '' $ac_executable_extensions; do
6744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745    ac_cv_prog_ac_ct_AR="ar"
6746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_AR=$ac_cv_prog_ac_ct_AR
6756if test -n "$ac_ct_AR"; then
6757  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6758echo "${ECHO_T}$ac_ct_AR" >&6; }
6759else
6760  { echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6; }
6762fi
6763
6764  if test "x$ac_ct_AR" = x; then
6765    AR="false"
6766  else
6767    case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6770whose name does not start with the host triplet.  If you think this
6771configuration is useful to you, please write to autoconf@gnu.org." >&5
6772echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6773whose name does not start with the host triplet.  If you think this
6774configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777    AR=$ac_ct_AR
6778  fi
6779else
6780  AR="$ac_cv_prog_AR"
6781fi
6782
6783if test -n "$ac_tool_prefix"; then
6784  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6785set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788if test "${ac_cv_prog_RANLIB+set}" = set; then
6789  echo $ECHO_N "(cached) $ECHO_C" >&6
6790else
6791  if test -n "$RANLIB"; then
6792  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6793else
6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797  IFS=$as_save_IFS
6798  test -z "$as_dir" && as_dir=.
6799  for ac_exec_ext in '' $ac_executable_extensions; do
6800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803    break 2
6804  fi
6805done
6806done
6807IFS=$as_save_IFS
6808
6809fi
6810fi
6811RANLIB=$ac_cv_prog_RANLIB
6812if test -n "$RANLIB"; then
6813  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6814echo "${ECHO_T}$RANLIB" >&6; }
6815else
6816  { echo "$as_me:$LINENO: result: no" >&5
6817echo "${ECHO_T}no" >&6; }
6818fi
6819
6820
6821fi
6822if test -z "$ac_cv_prog_RANLIB"; then
6823  ac_ct_RANLIB=$RANLIB
6824  # Extract the first word of "ranlib", so it can be a program name with args.
6825set dummy ranlib; ac_word=$2
6826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6829  echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831  if test -n "$ac_ct_RANLIB"; then
6832  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837  IFS=$as_save_IFS
6838  test -z "$as_dir" && as_dir=.
6839  for ac_exec_ext in '' $ac_executable_extensions; do
6840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841    ac_cv_prog_ac_ct_RANLIB="ranlib"
6842    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843    break 2
6844  fi
6845done
6846done
6847IFS=$as_save_IFS
6848
6849fi
6850fi
6851ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6852if test -n "$ac_ct_RANLIB"; then
6853  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6854echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6855else
6856  { echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6; }
6858fi
6859
6860  if test "x$ac_ct_RANLIB" = x; then
6861    RANLIB=":"
6862  else
6863    case $cross_compiling:$ac_tool_warned in
6864yes:)
6865{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6866whose name does not start with the host triplet.  If you think this
6867configuration is useful to you, please write to autoconf@gnu.org." >&5
6868echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6869whose name does not start with the host triplet.  If you think this
6870configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6871ac_tool_warned=yes ;;
6872esac
6873    RANLIB=$ac_ct_RANLIB
6874  fi
6875else
6876  RANLIB="$ac_cv_prog_RANLIB"
6877fi
6878
6879if test -n "$ac_tool_prefix"; then
6880  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6881set dummy ${ac_tool_prefix}strip; ac_word=$2
6882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884if test "${ac_cv_prog_STRIP+set}" = set; then
6885  echo $ECHO_N "(cached) $ECHO_C" >&6
6886else
6887  if test -n "$STRIP"; then
6888  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893  IFS=$as_save_IFS
6894  test -z "$as_dir" && as_dir=.
6895  for ac_exec_ext in '' $ac_executable_extensions; do
6896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899    break 2
6900  fi
6901done
6902done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907STRIP=$ac_cv_prog_STRIP
6908if test -n "$STRIP"; then
6909  { echo "$as_me:$LINENO: result: $STRIP" >&5
6910echo "${ECHO_T}$STRIP" >&6; }
6911else
6912  { echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6; }
6914fi
6915
6916
6917fi
6918if test -z "$ac_cv_prog_STRIP"; then
6919  ac_ct_STRIP=$STRIP
6920  # Extract the first word of "strip", so it can be a program name with args.
6921set dummy strip; ac_word=$2
6922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6925  echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927  if test -n "$ac_ct_STRIP"; then
6928  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6929else
6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933  IFS=$as_save_IFS
6934  test -z "$as_dir" && as_dir=.
6935  for ac_exec_ext in '' $ac_executable_extensions; do
6936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937    ac_cv_prog_ac_ct_STRIP="strip"
6938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939    break 2
6940  fi
6941done
6942done
6943IFS=$as_save_IFS
6944
6945fi
6946fi
6947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6948if test -n "$ac_ct_STRIP"; then
6949  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6950echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6951else
6952  { echo "$as_me:$LINENO: result: no" >&5
6953echo "${ECHO_T}no" >&6; }
6954fi
6955
6956  if test "x$ac_ct_STRIP" = x; then
6957    STRIP=":"
6958  else
6959    case $cross_compiling:$ac_tool_warned in
6960yes:)
6961{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6962whose name does not start with the host triplet.  If you think this
6963configuration is useful to you, please write to autoconf@gnu.org." >&5
6964echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6965whose name does not start with the host triplet.  If you think this
6966configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6967ac_tool_warned=yes ;;
6968esac
6969    STRIP=$ac_ct_STRIP
6970  fi
6971else
6972  STRIP="$ac_cv_prog_STRIP"
6973fi
6974
6975
6976old_CC="$CC"
6977old_CFLAGS="$CFLAGS"
6978
6979# Set sane defaults for various variables
6980test -z "$AR" && AR=ar
6981test -z "$AR_FLAGS" && AR_FLAGS=cru
6982test -z "$AS" && AS=as
6983test -z "$CC" && CC=cc
6984test -z "$LTCC" && LTCC=$CC
6985test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6986test -z "$DLLTOOL" && DLLTOOL=dlltool
6987test -z "$LD" && LD=ld
6988test -z "$LN_S" && LN_S="ln -s"
6989test -z "$MAGIC_CMD" && MAGIC_CMD=file
6990test -z "$NM" && NM=nm
6991test -z "$SED" && SED=sed
6992test -z "$OBJDUMP" && OBJDUMP=objdump
6993test -z "$RANLIB" && RANLIB=:
6994test -z "$STRIP" && STRIP=:
6995test -z "$ac_objext" && ac_objext=o
6996
6997# Determine commands to create old-style static archives.
6998old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6999old_postinstall_cmds='chmod 644 $oldlib'
7000old_postuninstall_cmds=
7001
7002if test -n "$RANLIB"; then
7003  case $host_os in
7004  openbsd*)
7005    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7006    ;;
7007  *)
7008    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7009    ;;
7010  esac
7011  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7012fi
7013
7014for cc_temp in $compiler""; do
7015  case $cc_temp in
7016    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7017    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7018    \-*) ;;
7019    *) break;;
7020  esac
7021done
7022cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7023
7024
7025# Only perform the check for file, if the check method requires it
7026case $deplibs_check_method in
7027file_magic*)
7028  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7029    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7030echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7031if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7032  echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034  case $MAGIC_CMD in
7035[\\/*] |  ?:[\\/]*)
7036  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7037  ;;
7038*)
7039  lt_save_MAGIC_CMD="$MAGIC_CMD"
7040  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7041  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7042  for ac_dir in $ac_dummy; do
7043    IFS="$lt_save_ifs"
7044    test -z "$ac_dir" && ac_dir=.
7045    if test -f $ac_dir/${ac_tool_prefix}file; then
7046      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7047      if test -n "$file_magic_test_file"; then
7048	case $deplibs_check_method in
7049	"file_magic "*)
7050	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7051	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7053	    $EGREP "$file_magic_regex" > /dev/null; then
7054	    :
7055	  else
7056	    cat <<EOF 1>&2
7057
7058*** Warning: the command libtool uses to detect shared libraries,
7059*** $file_magic_cmd, produces output that libtool cannot recognize.
7060*** The result is that libtool may fail to recognize shared libraries
7061*** as such.  This will affect the creation of libtool libraries that
7062*** depend on shared libraries, but programs linked with such libtool
7063*** libraries will work regardless of this problem.  Nevertheless, you
7064*** may want to report the problem to your system manager and/or to
7065*** bug-libtool@gnu.org
7066
7067EOF
7068	  fi ;;
7069	esac
7070      fi
7071      break
7072    fi
7073  done
7074  IFS="$lt_save_ifs"
7075  MAGIC_CMD="$lt_save_MAGIC_CMD"
7076  ;;
7077esac
7078fi
7079
7080MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7081if test -n "$MAGIC_CMD"; then
7082  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7083echo "${ECHO_T}$MAGIC_CMD" >&6; }
7084else
7085  { echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6; }
7087fi
7088
7089if test -z "$lt_cv_path_MAGIC_CMD"; then
7090  if test -n "$ac_tool_prefix"; then
7091    { echo "$as_me:$LINENO: checking for file" >&5
7092echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7093if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7094  echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096  case $MAGIC_CMD in
7097[\\/*] |  ?:[\\/]*)
7098  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7099  ;;
7100*)
7101  lt_save_MAGIC_CMD="$MAGIC_CMD"
7102  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7103  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7104  for ac_dir in $ac_dummy; do
7105    IFS="$lt_save_ifs"
7106    test -z "$ac_dir" && ac_dir=.
7107    if test -f $ac_dir/file; then
7108      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7109      if test -n "$file_magic_test_file"; then
7110	case $deplibs_check_method in
7111	"file_magic "*)
7112	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7113	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7114	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7115	    $EGREP "$file_magic_regex" > /dev/null; then
7116	    :
7117	  else
7118	    cat <<EOF 1>&2
7119
7120*** Warning: the command libtool uses to detect shared libraries,
7121*** $file_magic_cmd, produces output that libtool cannot recognize.
7122*** The result is that libtool may fail to recognize shared libraries
7123*** as such.  This will affect the creation of libtool libraries that
7124*** depend on shared libraries, but programs linked with such libtool
7125*** libraries will work regardless of this problem.  Nevertheless, you
7126*** may want to report the problem to your system manager and/or to
7127*** bug-libtool@gnu.org
7128
7129EOF
7130	  fi ;;
7131	esac
7132      fi
7133      break
7134    fi
7135  done
7136  IFS="$lt_save_ifs"
7137  MAGIC_CMD="$lt_save_MAGIC_CMD"
7138  ;;
7139esac
7140fi
7141
7142MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7143if test -n "$MAGIC_CMD"; then
7144  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7145echo "${ECHO_T}$MAGIC_CMD" >&6; }
7146else
7147  { echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6; }
7149fi
7150
7151  else
7152    MAGIC_CMD=:
7153  fi
7154fi
7155
7156  fi
7157  ;;
7158esac
7159
7160
7161  case $host_os in
7162    rhapsody* | darwin*)
7163    if test -n "$ac_tool_prefix"; then
7164  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7165set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7169  echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
7171  if test -n "$DSYMUTIL"; then
7172  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177  IFS=$as_save_IFS
7178  test -z "$as_dir" && as_dir=.
7179  for ac_exec_ext in '' $ac_executable_extensions; do
7180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7181    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183    break 2
7184  fi
7185done
7186done
7187IFS=$as_save_IFS
7188
7189fi
7190fi
7191DSYMUTIL=$ac_cv_prog_DSYMUTIL
7192if test -n "$DSYMUTIL"; then
7193  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7194echo "${ECHO_T}$DSYMUTIL" >&6; }
7195else
7196  { echo "$as_me:$LINENO: result: no" >&5
7197echo "${ECHO_T}no" >&6; }
7198fi
7199
7200
7201fi
7202if test -z "$ac_cv_prog_DSYMUTIL"; then
7203  ac_ct_DSYMUTIL=$DSYMUTIL
7204  # Extract the first word of "dsymutil", so it can be a program name with args.
7205set dummy dsymutil; ac_word=$2
7206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7209  echo $ECHO_N "(cached) $ECHO_C" >&6
7210else
7211  if test -n "$ac_ct_DSYMUTIL"; then
7212  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7213else
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217  IFS=$as_save_IFS
7218  test -z "$as_dir" && as_dir=.
7219  for ac_exec_ext in '' $ac_executable_extensions; do
7220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7222    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223    break 2
7224  fi
7225done
7226done
7227IFS=$as_save_IFS
7228
7229fi
7230fi
7231ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7232if test -n "$ac_ct_DSYMUTIL"; then
7233  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7234echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7235else
7236  { echo "$as_me:$LINENO: result: no" >&5
7237echo "${ECHO_T}no" >&6; }
7238fi
7239
7240  if test "x$ac_ct_DSYMUTIL" = x; then
7241    DSYMUTIL=":"
7242  else
7243    case $cross_compiling:$ac_tool_warned in
7244yes:)
7245{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7246whose name does not start with the host triplet.  If you think this
7247configuration is useful to you, please write to autoconf@gnu.org." >&5
7248echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7249whose name does not start with the host triplet.  If you think this
7250configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7251ac_tool_warned=yes ;;
7252esac
7253    DSYMUTIL=$ac_ct_DSYMUTIL
7254  fi
7255else
7256  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7257fi
7258
7259    if test -n "$ac_tool_prefix"; then
7260  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7261set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_prog_NMEDIT+set}" = set; then
7265  echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267  if test -n "$NMEDIT"; then
7268  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273  IFS=$as_save_IFS
7274  test -z "$as_dir" && as_dir=.
7275  for ac_exec_ext in '' $ac_executable_extensions; do
7276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279    break 2
7280  fi
7281done
7282done
7283IFS=$as_save_IFS
7284
7285fi
7286fi
7287NMEDIT=$ac_cv_prog_NMEDIT
7288if test -n "$NMEDIT"; then
7289  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7290echo "${ECHO_T}$NMEDIT" >&6; }
7291else
7292  { echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6; }
7294fi
7295
7296
7297fi
7298if test -z "$ac_cv_prog_NMEDIT"; then
7299  ac_ct_NMEDIT=$NMEDIT
7300  # Extract the first word of "nmedit", so it can be a program name with args.
7301set dummy nmedit; ac_word=$2
7302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7305  echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307  if test -n "$ac_ct_NMEDIT"; then
7308  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313  IFS=$as_save_IFS
7314  test -z "$as_dir" && as_dir=.
7315  for ac_exec_ext in '' $ac_executable_extensions; do
7316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7318    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319    break 2
7320  fi
7321done
7322done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7328if test -n "$ac_ct_NMEDIT"; then
7329  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7330echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7331else
7332  { echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6; }
7334fi
7335
7336  if test "x$ac_ct_NMEDIT" = x; then
7337    NMEDIT=":"
7338  else
7339    case $cross_compiling:$ac_tool_warned in
7340yes:)
7341{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7342whose name does not start with the host triplet.  If you think this
7343configuration is useful to you, please write to autoconf@gnu.org." >&5
7344echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7345whose name does not start with the host triplet.  If you think this
7346configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7347ac_tool_warned=yes ;;
7348esac
7349    NMEDIT=$ac_ct_NMEDIT
7350  fi
7351else
7352  NMEDIT="$ac_cv_prog_NMEDIT"
7353fi
7354
7355
7356    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7357echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7358if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7359  echo $ECHO_N "(cached) $ECHO_C" >&6
7360else
7361  lt_cv_apple_cc_single_mod=no
7362      if test -z "${LT_MULTI_MODULE}"; then
7363   # By default we will add the -single_module flag. You can override
7364   # by either setting the environment variable LT_MULTI_MODULE
7365   # non-empty at configure time, or by adding -multi_module to the
7366   # link flags.
7367   echo "int foo(void){return 1;}" > conftest.c
7368   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7369     -dynamiclib ${wl}-single_module conftest.c
7370   if test -f libconftest.dylib; then
7371     lt_cv_apple_cc_single_mod=yes
7372     rm -rf libconftest.dylib*
7373   fi
7374   rm conftest.c
7375      fi
7376fi
7377{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7378echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7379    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7380echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7381if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7382  echo $ECHO_N "(cached) $ECHO_C" >&6
7383else
7384  lt_cv_ld_exported_symbols_list=no
7385      save_LDFLAGS=$LDFLAGS
7386      echo "_main" > conftest.sym
7387      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7388      cat >conftest.$ac_ext <<_ACEOF
7389/* confdefs.h.  */
7390_ACEOF
7391cat confdefs.h >>conftest.$ac_ext
7392cat >>conftest.$ac_ext <<_ACEOF
7393/* end confdefs.h.  */
7394
7395int
7396main ()
7397{
7398
7399  ;
7400  return 0;
7401}
7402_ACEOF
7403rm -f conftest.$ac_objext conftest$ac_exeext
7404if { (ac_try="$ac_link"
7405case "(($ac_try" in
7406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407  *) ac_try_echo=$ac_try;;
7408esac
7409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410  (eval "$ac_link") 2>conftest.er1
7411  ac_status=$?
7412  grep -v '^ *+' conftest.er1 >conftest.err
7413  rm -f conftest.er1
7414  cat conftest.err >&5
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); } && {
7417	 test -z "$ac_c_werror_flag" ||
7418	 test ! -s conftest.err
7419       } && test -s conftest$ac_exeext &&
7420       $as_test_x conftest$ac_exeext; then
7421  lt_cv_ld_exported_symbols_list=yes
7422else
7423  echo "$as_me: failed program was:" >&5
7424sed 's/^/| /' conftest.$ac_ext >&5
7425
7426	lt_cv_ld_exported_symbols_list=no
7427fi
7428
7429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7430      conftest$ac_exeext conftest.$ac_ext
7431   LDFLAGS="$save_LDFLAGS"
7432
7433fi
7434{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7435echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7436    case $host_os in
7437    rhapsody* | darwin1.[0123])
7438      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7439    darwin1.*)
7440     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7441    darwin*)
7442      # if running on 10.5 or later, the deployment target defaults
7443      # to the OS version, if on x86, and 10.4, the deployment
7444      # target defaults to 10.4. Don't you love it?
7445      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7446   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7447     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7448   10.[012]*)
7449     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7450   10.*)
7451     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7452      esac
7453    ;;
7454  esac
7455    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7456      _lt_dar_single_mod='$single_module'
7457    fi
7458    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7459      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7460    else
7461      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7462    fi
7463    if test "$DSYMUTIL" != ":"; then
7464      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7465    else
7466      _lt_dsymutil=
7467    fi
7468    ;;
7469  esac
7470
7471
7472enable_dlopen=no
7473enable_win32_dll=no
7474
7475# Check whether --enable-libtool-lock was given.
7476if test "${enable_libtool_lock+set}" = set; then
7477  enableval=$enable_libtool_lock;
7478fi
7479
7480test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7481
7482
7483# Check whether --with-pic was given.
7484if test "${with_pic+set}" = set; then
7485  withval=$with_pic; pic_mode="$withval"
7486else
7487  pic_mode=default
7488fi
7489
7490test -z "$pic_mode" && pic_mode=default
7491
7492# Use C for the default configuration in the libtool script
7493tagname=
7494lt_save_CC="$CC"
7495ac_ext=c
7496ac_cpp='$CPP $CPPFLAGS'
7497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500
7501
7502# Source file extension for C test sources.
7503ac_ext=c
7504
7505# Object file extension for compiled C test sources.
7506objext=o
7507objext=$objext
7508
7509# Code to be used in simple compile tests
7510lt_simple_compile_test_code="int some_variable = 0;"
7511
7512# Code to be used in simple link tests
7513lt_simple_link_test_code='int main(){return(0);}'
7514
7515
7516# If no C compiler was specified, use CC.
7517LTCC=${LTCC-"$CC"}
7518
7519# If no C compiler flags were specified, use CFLAGS.
7520LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7521
7522# Allow CC to be a program name with arguments.
7523compiler=$CC
7524
7525
7526# save warnings/boilerplate of simple test code
7527ac_outfile=conftest.$ac_objext
7528echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7529eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7530_lt_compiler_boilerplate=`cat conftest.err`
7531$rm conftest*
7532
7533ac_outfile=conftest.$ac_objext
7534echo "$lt_simple_link_test_code" >conftest.$ac_ext
7535eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7536_lt_linker_boilerplate=`cat conftest.err`
7537$rm -r conftest*
7538
7539
7540
7541lt_prog_compiler_no_builtin_flag=
7542
7543if test "$GCC" = yes; then
7544  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7545
7546
7547{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7548echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7549if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7550  echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552  lt_cv_prog_compiler_rtti_exceptions=no
7553  ac_outfile=conftest.$ac_objext
7554   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7555   lt_compiler_flag="-fno-rtti -fno-exceptions"
7556   # Insert the option either (1) after the last *FLAGS variable, or
7557   # (2) before a word containing "conftest.", or (3) at the end.
7558   # Note that $ac_compile itself does not contain backslashes and begins
7559   # with a dollar sign (not a hyphen), so the echo should work correctly.
7560   # The option is referenced via a variable to avoid confusing sed.
7561   lt_compile=`echo "$ac_compile" | $SED \
7562   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7563   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7564   -e 's:$: $lt_compiler_flag:'`
7565   (eval echo "\"\$as_me:7565: $lt_compile\"" >&5)
7566   (eval "$lt_compile" 2>conftest.err)
7567   ac_status=$?
7568   cat conftest.err >&5
7569   echo "$as_me:7569: \$? = $ac_status" >&5
7570   if (exit $ac_status) && test -s "$ac_outfile"; then
7571     # The compiler can only warn and ignore the option if not recognized
7572     # So say no if there are warnings other than the usual output.
7573     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7574     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7575     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7576       lt_cv_prog_compiler_rtti_exceptions=yes
7577     fi
7578   fi
7579   $rm conftest*
7580
7581fi
7582{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7583echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7584
7585if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7586    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7587else
7588    :
7589fi
7590
7591fi
7592
7593lt_prog_compiler_wl=
7594lt_prog_compiler_pic=
7595lt_prog_compiler_static=
7596
7597{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7598echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7599
7600  if test "$GCC" = yes; then
7601    lt_prog_compiler_wl='-Wl,'
7602    lt_prog_compiler_static='-static'
7603
7604    case $host_os in
7605      aix*)
7606      # All AIX code is PIC.
7607      if test "$host_cpu" = ia64; then
7608	# AIX 5 now supports IA64 processor
7609	lt_prog_compiler_static='-Bstatic'
7610      fi
7611      ;;
7612
7613    amigaos*)
7614      # FIXME: we need at least 68020 code to build shared libraries, but
7615      # adding the `-m68020' flag to GCC prevents building anything better,
7616      # like `-m68040'.
7617      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7618      ;;
7619
7620    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7621      # PIC is the default for these OSes.
7622      ;;
7623
7624    mingw* | cygwin* | pw32* | os2*)
7625      # This hack is so that the source file can tell whether it is being
7626      # built for inclusion in a dll (and should export symbols for example).
7627      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7628      # (--disable-auto-import) libraries
7629      lt_prog_compiler_pic='-DDLL_EXPORT'
7630      ;;
7631
7632    darwin* | rhapsody*)
7633      # PIC is the default on this platform
7634      # Common symbols not allowed in MH_DYLIB files
7635      lt_prog_compiler_pic='-fno-common'
7636      ;;
7637
7638    interix[3-9]*)
7639      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7640      # Instead, we relocate shared libraries at runtime.
7641      ;;
7642
7643    msdosdjgpp*)
7644      # Just because we use GCC doesn't mean we suddenly get shared libraries
7645      # on systems that don't support them.
7646      lt_prog_compiler_can_build_shared=no
7647      enable_shared=no
7648      ;;
7649
7650    sysv4*MP*)
7651      if test -d /usr/nec; then
7652	lt_prog_compiler_pic=-Kconform_pic
7653      fi
7654      ;;
7655
7656    hpux*)
7657      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7658      # not for PA HP-UX.
7659      case $host_cpu in
7660      hppa*64*|ia64*)
7661	# +Z the default
7662	;;
7663      *)
7664	lt_prog_compiler_pic='-fPIC'
7665	;;
7666      esac
7667      ;;
7668
7669    *)
7670      lt_prog_compiler_pic='-fPIC'
7671      ;;
7672    esac
7673  else
7674    # PORTME Check for flag to pass linker flags through the system compiler.
7675    case $host_os in
7676    aix*)
7677      lt_prog_compiler_wl='-Wl,'
7678      if test "$host_cpu" = ia64; then
7679	# AIX 5 now supports IA64 processor
7680	lt_prog_compiler_static='-Bstatic'
7681      else
7682	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7683      fi
7684      ;;
7685      darwin*)
7686        # PIC is the default on this platform
7687        # Common symbols not allowed in MH_DYLIB files
7688       case $cc_basename in
7689         xlc*)
7690         lt_prog_compiler_pic='-qnocommon'
7691         lt_prog_compiler_wl='-Wl,'
7692         ;;
7693       esac
7694       ;;
7695
7696    mingw* | cygwin* | pw32* | os2*)
7697      # This hack is so that the source file can tell whether it is being
7698      # built for inclusion in a dll (and should export symbols for example).
7699      lt_prog_compiler_pic='-DDLL_EXPORT'
7700      ;;
7701
7702    hpux9* | hpux10* | hpux11*)
7703      lt_prog_compiler_wl='-Wl,'
7704      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7705      # not for PA HP-UX.
7706      case $host_cpu in
7707      hppa*64*|ia64*)
7708	# +Z the default
7709	;;
7710      *)
7711	lt_prog_compiler_pic='+Z'
7712	;;
7713      esac
7714      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7715      lt_prog_compiler_static='${wl}-a ${wl}archive'
7716      ;;
7717
7718    irix5* | irix6* | nonstopux*)
7719      lt_prog_compiler_wl='-Wl,'
7720      # PIC (with -KPIC) is the default.
7721      lt_prog_compiler_static='-non_shared'
7722      ;;
7723
7724    newsos6)
7725      lt_prog_compiler_pic='-KPIC'
7726      lt_prog_compiler_static='-Bstatic'
7727      ;;
7728
7729    linux* | k*bsd*-gnu)
7730      case $cc_basename in
7731      icc* | ecc*)
7732	lt_prog_compiler_wl='-Wl,'
7733	lt_prog_compiler_pic='-KPIC'
7734	lt_prog_compiler_static='-static'
7735        ;;
7736      pgcc* | pgf77* | pgf90* | pgf95*)
7737        # Portland Group compilers (*not* the Pentium gcc compiler,
7738	# which looks to be a dead project)
7739	lt_prog_compiler_wl='-Wl,'
7740	lt_prog_compiler_pic='-fpic'
7741	lt_prog_compiler_static='-Bstatic'
7742        ;;
7743      ccc*)
7744        lt_prog_compiler_wl='-Wl,'
7745        # All Alpha code is PIC.
7746        lt_prog_compiler_static='-non_shared'
7747        ;;
7748      *)
7749        case `$CC -V 2>&1 | sed 5q` in
7750	*Sun\ C*)
7751	  # Sun C 5.9
7752	  lt_prog_compiler_pic='-KPIC'
7753	  lt_prog_compiler_static='-Bstatic'
7754	  lt_prog_compiler_wl='-Wl,'
7755	  ;;
7756	*Sun\ F*)
7757	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7758	  lt_prog_compiler_pic='-KPIC'
7759	  lt_prog_compiler_static='-Bstatic'
7760	  lt_prog_compiler_wl=''
7761	  ;;
7762	esac
7763	;;
7764      esac
7765      ;;
7766
7767    osf3* | osf4* | osf5*)
7768      lt_prog_compiler_wl='-Wl,'
7769      # All OSF/1 code is PIC.
7770      lt_prog_compiler_static='-non_shared'
7771      ;;
7772
7773    rdos*)
7774      lt_prog_compiler_static='-non_shared'
7775      ;;
7776
7777    solaris*)
7778      lt_prog_compiler_pic='-KPIC'
7779      lt_prog_compiler_static='-Bstatic'
7780      case $cc_basename in
7781      f77* | f90* | f95*)
7782	lt_prog_compiler_wl='-Qoption ld ';;
7783      *)
7784	lt_prog_compiler_wl='-Wl,';;
7785      esac
7786      ;;
7787
7788    sunos4*)
7789      lt_prog_compiler_wl='-Qoption ld '
7790      lt_prog_compiler_pic='-PIC'
7791      lt_prog_compiler_static='-Bstatic'
7792      ;;
7793
7794    sysv4 | sysv4.2uw2* | sysv4.3*)
7795      lt_prog_compiler_wl='-Wl,'
7796      lt_prog_compiler_pic='-KPIC'
7797      lt_prog_compiler_static='-Bstatic'
7798      ;;
7799
7800    sysv4*MP*)
7801      if test -d /usr/nec ;then
7802	lt_prog_compiler_pic='-Kconform_pic'
7803	lt_prog_compiler_static='-Bstatic'
7804      fi
7805      ;;
7806
7807    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7808      lt_prog_compiler_wl='-Wl,'
7809      lt_prog_compiler_pic='-KPIC'
7810      lt_prog_compiler_static='-Bstatic'
7811      ;;
7812
7813    unicos*)
7814      lt_prog_compiler_wl='-Wl,'
7815      lt_prog_compiler_can_build_shared=no
7816      ;;
7817
7818    uts4*)
7819      lt_prog_compiler_pic='-pic'
7820      lt_prog_compiler_static='-Bstatic'
7821      ;;
7822
7823    *)
7824      lt_prog_compiler_can_build_shared=no
7825      ;;
7826    esac
7827  fi
7828
7829{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7830echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7831
7832#
7833# Check to make sure the PIC flag actually works.
7834#
7835if test -n "$lt_prog_compiler_pic"; then
7836
7837{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7838echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7839if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7840  echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842  lt_cv_prog_compiler_pic_works=no
7843  ac_outfile=conftest.$ac_objext
7844   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7845   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7846   # Insert the option either (1) after the last *FLAGS variable, or
7847   # (2) before a word containing "conftest.", or (3) at the end.
7848   # Note that $ac_compile itself does not contain backslashes and begins
7849   # with a dollar sign (not a hyphen), so the echo should work correctly.
7850   # The option is referenced via a variable to avoid confusing sed.
7851   lt_compile=`echo "$ac_compile" | $SED \
7852   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7853   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7854   -e 's:$: $lt_compiler_flag:'`
7855   (eval echo "\"\$as_me:7855: $lt_compile\"" >&5)
7856   (eval "$lt_compile" 2>conftest.err)
7857   ac_status=$?
7858   cat conftest.err >&5
7859   echo "$as_me:7859: \$? = $ac_status" >&5
7860   if (exit $ac_status) && test -s "$ac_outfile"; then
7861     # The compiler can only warn and ignore the option if not recognized
7862     # So say no if there are warnings other than the usual output.
7863     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7864     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7865     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7866       lt_cv_prog_compiler_pic_works=yes
7867     fi
7868   fi
7869   $rm conftest*
7870
7871fi
7872{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7873echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7874
7875if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7876    case $lt_prog_compiler_pic in
7877     "" | " "*) ;;
7878     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7879     esac
7880else
7881    lt_prog_compiler_pic=
7882     lt_prog_compiler_can_build_shared=no
7883fi
7884
7885fi
7886case $host_os in
7887  # For platforms which do not support PIC, -DPIC is meaningless:
7888  *djgpp*)
7889    lt_prog_compiler_pic=
7890    ;;
7891  *)
7892    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7893    ;;
7894esac
7895
7896#
7897# Check to make sure the static flag actually works.
7898#
7899wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7900{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7901echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7902if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7903  echo $ECHO_N "(cached) $ECHO_C" >&6
7904else
7905  lt_cv_prog_compiler_static_works=no
7906   save_LDFLAGS="$LDFLAGS"
7907   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7908   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7909   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7910     # The linker can only warn and ignore the option if not recognized
7911     # So say no if there are warnings
7912     if test -s conftest.err; then
7913       # Append any errors to the config.log.
7914       cat conftest.err 1>&5
7915       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7916       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7917       if diff conftest.exp conftest.er2 >/dev/null; then
7918         lt_cv_prog_compiler_static_works=yes
7919       fi
7920     else
7921       lt_cv_prog_compiler_static_works=yes
7922     fi
7923   fi
7924   $rm -r conftest*
7925   LDFLAGS="$save_LDFLAGS"
7926
7927fi
7928{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7929echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7930
7931if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7932    :
7933else
7934    lt_prog_compiler_static=
7935fi
7936
7937
7938{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7939echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7940if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7941  echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943  lt_cv_prog_compiler_c_o=no
7944   $rm -r conftest 2>/dev/null
7945   mkdir conftest
7946   cd conftest
7947   mkdir out
7948   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7949
7950   lt_compiler_flag="-o out/conftest2.$ac_objext"
7951   # Insert the option either (1) after the last *FLAGS variable, or
7952   # (2) before a word containing "conftest.", or (3) at the end.
7953   # Note that $ac_compile itself does not contain backslashes and begins
7954   # with a dollar sign (not a hyphen), so the echo should work correctly.
7955   lt_compile=`echo "$ac_compile" | $SED \
7956   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7957   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7958   -e 's:$: $lt_compiler_flag:'`
7959   (eval echo "\"\$as_me:7959: $lt_compile\"" >&5)
7960   (eval "$lt_compile" 2>out/conftest.err)
7961   ac_status=$?
7962   cat out/conftest.err >&5
7963   echo "$as_me:7963: \$? = $ac_status" >&5
7964   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7965   then
7966     # The compiler can only warn and ignore the option if not recognized
7967     # So say no if there are warnings
7968     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7969     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7970     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7971       lt_cv_prog_compiler_c_o=yes
7972     fi
7973   fi
7974   chmod u+w . 2>&5
7975   $rm conftest*
7976   # SGI C++ compiler will create directory out/ii_files/ for
7977   # template instantiation
7978   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7979   $rm out/* && rmdir out
7980   cd ..
7981   rmdir conftest
7982   $rm conftest*
7983
7984fi
7985{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7986echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7987
7988
7989hard_links="nottested"
7990if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7991  # do not overwrite the value of need_locks provided by the user
7992  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7993echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7994  hard_links=yes
7995  $rm conftest*
7996  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7997  touch conftest.a
7998  ln conftest.a conftest.b 2>&5 || hard_links=no
7999  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8000  { echo "$as_me:$LINENO: result: $hard_links" >&5
8001echo "${ECHO_T}$hard_links" >&6; }
8002  if test "$hard_links" = no; then
8003    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8004echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8005    need_locks=warn
8006  fi
8007else
8008  need_locks=no
8009fi
8010
8011{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8012echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8013
8014  runpath_var=
8015  allow_undefined_flag=
8016  enable_shared_with_static_runtimes=no
8017  archive_cmds=
8018  archive_expsym_cmds=
8019  old_archive_From_new_cmds=
8020  old_archive_from_expsyms_cmds=
8021  export_dynamic_flag_spec=
8022  whole_archive_flag_spec=
8023  thread_safe_flag_spec=
8024  hardcode_libdir_flag_spec=
8025  hardcode_libdir_flag_spec_ld=
8026  hardcode_libdir_separator=
8027  hardcode_direct=no
8028  hardcode_minus_L=no
8029  hardcode_shlibpath_var=unsupported
8030  link_all_deplibs=unknown
8031  hardcode_automatic=no
8032  module_cmds=
8033  module_expsym_cmds=
8034  always_export_symbols=no
8035  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8036  # include_expsyms should be a list of space-separated symbols to be *always*
8037  # included in the symbol list
8038  include_expsyms=
8039  # exclude_expsyms can be an extended regexp of symbols to exclude
8040  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8041  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8042  # as well as any symbol that contains `d'.
8043  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8044  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8045  # platforms (ab)use it in PIC code, but their linkers get confused if
8046  # the symbol is explicitly referenced.  Since portable code cannot
8047  # rely on this symbol name, it's probably fine to never include it in
8048  # preloaded symbol tables.
8049  # Exclude shared library initialization/finalization symbols.
8050  extract_expsyms_cmds=
8051  # Just being paranoid about ensuring that cc_basename is set.
8052  for cc_temp in $compiler""; do
8053  case $cc_temp in
8054    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8055    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8056    \-*) ;;
8057    *) break;;
8058  esac
8059done
8060cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8061
8062  case $host_os in
8063  cygwin* | mingw* | pw32*)
8064    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8065    # When not using gcc, we currently assume that we are using
8066    # Microsoft Visual C++.
8067    if test "$GCC" != yes; then
8068      with_gnu_ld=no
8069    fi
8070    ;;
8071  interix*)
8072    # we just hope/assume this is gcc and not c89 (= MSVC++)
8073    with_gnu_ld=yes
8074    ;;
8075  openbsd*)
8076    with_gnu_ld=no
8077    ;;
8078  esac
8079
8080  ld_shlibs=yes
8081  if test "$with_gnu_ld" = yes; then
8082    # If archive_cmds runs LD, not CC, wlarc should be empty
8083    wlarc='${wl}'
8084
8085    # Set some defaults for GNU ld with shared library support. These
8086    # are reset later if shared libraries are not supported. Putting them
8087    # here allows them to be overridden if necessary.
8088    runpath_var=LD_RUN_PATH
8089    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8090    export_dynamic_flag_spec='${wl}--export-dynamic'
8091    # ancient GNU ld didn't support --whole-archive et. al.
8092    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8093	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8094      else
8095  	whole_archive_flag_spec=
8096    fi
8097    supports_anon_versioning=no
8098    case `$LD -v 2>/dev/null` in
8099      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8100      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8101      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8102      *\ 2.11.*) ;; # other 2.11 versions
8103      *) supports_anon_versioning=yes ;;
8104    esac
8105
8106    # See if GNU ld supports shared libraries.
8107    case $host_os in
8108    aix[3-9]*)
8109      # On AIX/PPC, the GNU linker is very broken
8110      if test "$host_cpu" != ia64; then
8111	ld_shlibs=no
8112	cat <<EOF 1>&2
8113
8114*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8115*** to be unable to reliably create shared libraries on AIX.
8116*** Therefore, libtool is disabling shared libraries support.  If you
8117*** really care for shared libraries, you may want to modify your PATH
8118*** so that a non-GNU linker is found, and then restart.
8119
8120EOF
8121      fi
8122      ;;
8123
8124    amigaos*)
8125      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)'
8126      hardcode_libdir_flag_spec='-L$libdir'
8127      hardcode_minus_L=yes
8128
8129      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8130      # that the semantics of dynamic libraries on AmigaOS, at least up
8131      # to version 4, is to share data among multiple programs linked
8132      # with the same dynamic library.  Since this doesn't match the
8133      # behavior of shared libraries on other platforms, we can't use
8134      # them.
8135      ld_shlibs=no
8136      ;;
8137
8138    beos*)
8139      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8140	allow_undefined_flag=unsupported
8141	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8142	# support --undefined.  This deserves some investigation.  FIXME
8143	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144      else
8145	ld_shlibs=no
8146      fi
8147      ;;
8148
8149    cygwin* | mingw* | pw32*)
8150      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8151      # as there is no search path for DLLs.
8152      hardcode_libdir_flag_spec='-L$libdir'
8153      allow_undefined_flag=unsupported
8154      always_export_symbols=no
8155      enable_shared_with_static_runtimes=yes
8156      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8157
8158      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8159        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8160	# If the export-symbols file already is a .def file (1st line
8161	# is EXPORTS), use it as is; otherwise, prepend...
8162	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8163	  cp $export_symbols $output_objdir/$soname.def;
8164	else
8165	  echo EXPORTS > $output_objdir/$soname.def;
8166	  cat $export_symbols >> $output_objdir/$soname.def;
8167	fi~
8168	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8169      else
8170	ld_shlibs=no
8171      fi
8172      ;;
8173
8174    interix[3-9]*)
8175      hardcode_direct=no
8176      hardcode_shlibpath_var=no
8177      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8178      export_dynamic_flag_spec='${wl}-E'
8179      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8180      # Instead, shared libraries are loaded at an image base (0x10000000 by
8181      # default) and relocated if they conflict, which is a slow very memory
8182      # consuming and fragmenting process.  To avoid this, we pick a random,
8183      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8184      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8185      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8186      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'
8187      ;;
8188
8189    gnu* | linux* | k*bsd*-gnu)
8190      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8191	tmp_addflag=
8192	case $cc_basename,$host_cpu in
8193	pgcc*)				# Portland Group C compiler
8194	  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'
8195	  tmp_addflag=' $pic_flag'
8196	  ;;
8197	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8198	  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'
8199	  tmp_addflag=' $pic_flag -Mnomain' ;;
8200	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8201	  tmp_addflag=' -i_dynamic' ;;
8202	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8203	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8204	ifc* | ifort*)			# Intel Fortran compiler
8205	  tmp_addflag=' -nofor_main' ;;
8206	esac
8207	case `$CC -V 2>&1 | sed 5q` in
8208	*Sun\ C*)			# Sun C 5.9
8209	  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'
8210	  tmp_sharedflag='-G' ;;
8211	*Sun\ F*)			# Sun Fortran 8.3
8212	  tmp_sharedflag='-G' ;;
8213	*)
8214	  tmp_sharedflag='-shared' ;;
8215	esac
8216	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8217
8218	if test $supports_anon_versioning = yes; then
8219	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8220  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8221  $echo "local: *; };" >> $output_objdir/$libname.ver~
8222	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8223	fi
8224	link_all_deplibs=no
8225      else
8226	ld_shlibs=no
8227      fi
8228      ;;
8229
8230    netbsd* | netbsdelf*-gnu)
8231      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8232	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8233	wlarc=
8234      else
8235	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8237      fi
8238      ;;
8239
8240    solaris*)
8241      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8242	ld_shlibs=no
8243	cat <<EOF 1>&2
8244
8245*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8246*** create shared libraries on Solaris systems.  Therefore, libtool
8247*** is disabling shared libraries support.  We urge you to upgrade GNU
8248*** binutils to release 2.9.1 or newer.  Another option is to modify
8249*** your PATH or compiler configuration so that the native linker is
8250*** used, and then restart.
8251
8252EOF
8253      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8254	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8256      else
8257	ld_shlibs=no
8258      fi
8259      ;;
8260
8261    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8262      case `$LD -v 2>&1` in
8263        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8264	ld_shlibs=no
8265	cat <<_LT_EOF 1>&2
8266
8267*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8268*** reliably create shared libraries on SCO systems.  Therefore, libtool
8269*** is disabling shared libraries support.  We urge you to upgrade GNU
8270*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8271*** your PATH or compiler configuration so that the native linker is
8272*** used, and then restart.
8273
8274_LT_EOF
8275	;;
8276	*)
8277	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8278	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8279	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8280	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8281	  else
8282	    ld_shlibs=no
8283	  fi
8284	;;
8285      esac
8286      ;;
8287
8288    sunos4*)
8289      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8290      wlarc=
8291      hardcode_direct=yes
8292      hardcode_shlibpath_var=no
8293      ;;
8294
8295    *)
8296      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8297	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8299      else
8300	ld_shlibs=no
8301      fi
8302      ;;
8303    esac
8304
8305    if test "$ld_shlibs" = no; then
8306      runpath_var=
8307      hardcode_libdir_flag_spec=
8308      export_dynamic_flag_spec=
8309      whole_archive_flag_spec=
8310    fi
8311  else
8312    # PORTME fill in a description of your system's linker (not GNU ld)
8313    case $host_os in
8314    aix3*)
8315      allow_undefined_flag=unsupported
8316      always_export_symbols=yes
8317      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'
8318      # Note: this linker hardcodes the directories in LIBPATH if there
8319      # are no directories specified by -L.
8320      hardcode_minus_L=yes
8321      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8322	# Neither direct hardcoding nor static linking is supported with a
8323	# broken collect2.
8324	hardcode_direct=unsupported
8325      fi
8326      ;;
8327
8328    aix[4-9]*)
8329      if test "$host_cpu" = ia64; then
8330	# On IA64, the linker does run time linking by default, so we don't
8331	# have to do anything special.
8332	aix_use_runtimelinking=no
8333	exp_sym_flag='-Bexport'
8334	no_entry_flag=""
8335      else
8336	# If we're using GNU nm, then we don't want the "-C" option.
8337	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8338	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8339	  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'
8340	else
8341	  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'
8342	fi
8343	aix_use_runtimelinking=no
8344
8345	# Test if we are trying to use run time linking or normal
8346	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8347	# need to do runtime linking.
8348	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8349	  for ld_flag in $LDFLAGS; do
8350  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8351  	    aix_use_runtimelinking=yes
8352  	    break
8353  	  fi
8354	  done
8355	  ;;
8356	esac
8357
8358	exp_sym_flag='-bexport'
8359	no_entry_flag='-bnoentry'
8360      fi
8361
8362      # When large executables or shared objects are built, AIX ld can
8363      # have problems creating the table of contents.  If linking a library
8364      # or program results in "error TOC overflow" add -mminimal-toc to
8365      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8366      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8367
8368      archive_cmds=''
8369      hardcode_direct=yes
8370      hardcode_libdir_separator=':'
8371      link_all_deplibs=yes
8372
8373      if test "$GCC" = yes; then
8374	case $host_os in aix4.[012]|aix4.[012].*)
8375	# We only want to do this on AIX 4.2 and lower, the check
8376	# below for broken collect2 doesn't work under 4.3+
8377	  collect2name=`${CC} -print-prog-name=collect2`
8378	  if test -f "$collect2name" && \
8379  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8380	  then
8381  	  # We have reworked collect2
8382  	  :
8383	  else
8384  	  # We have old collect2
8385  	  hardcode_direct=unsupported
8386  	  # It fails to find uninstalled libraries when the uninstalled
8387  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8388  	  # to unsupported forces relinking
8389  	  hardcode_minus_L=yes
8390  	  hardcode_libdir_flag_spec='-L$libdir'
8391  	  hardcode_libdir_separator=
8392	  fi
8393	  ;;
8394	esac
8395	shared_flag='-shared'
8396	if test "$aix_use_runtimelinking" = yes; then
8397	  shared_flag="$shared_flag "'${wl}-G'
8398	fi
8399      else
8400	# not using gcc
8401	if test "$host_cpu" = ia64; then
8402  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8403  	# chokes on -Wl,-G. The following line is correct:
8404	  shared_flag='-G'
8405	else
8406	  if test "$aix_use_runtimelinking" = yes; then
8407	    shared_flag='${wl}-G'
8408	  else
8409	    shared_flag='${wl}-bM:SRE'
8410	  fi
8411	fi
8412      fi
8413
8414      # It seems that -bexpall does not export symbols beginning with
8415      # underscore (_), so it is better to generate a list of symbols to export.
8416      always_export_symbols=yes
8417      if test "$aix_use_runtimelinking" = yes; then
8418	# Warning - without using the other runtime loading flags (-brtl),
8419	# -berok will link without error, but may produce a broken library.
8420	allow_undefined_flag='-berok'
8421       # Determine the default libpath from the value encoded in an empty executable.
8422       cat >conftest.$ac_ext <<_ACEOF
8423/* confdefs.h.  */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h.  */
8428
8429int
8430main ()
8431{
8432
8433  ;
8434  return 0;
8435}
8436_ACEOF
8437rm -f conftest.$ac_objext conftest$ac_exeext
8438if { (ac_try="$ac_link"
8439case "(($ac_try" in
8440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441  *) ac_try_echo=$ac_try;;
8442esac
8443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444  (eval "$ac_link") 2>conftest.er1
8445  ac_status=$?
8446  grep -v '^ *+' conftest.er1 >conftest.err
8447  rm -f conftest.er1
8448  cat conftest.err >&5
8449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450  (exit $ac_status); } && {
8451	 test -z "$ac_c_werror_flag" ||
8452	 test ! -s conftest.err
8453       } && test -s conftest$ac_exeext &&
8454       $as_test_x conftest$ac_exeext; then
8455
8456lt_aix_libpath_sed='
8457    /Import File Strings/,/^$/ {
8458	/^0/ {
8459	    s/^0  *\(.*\)$/\1/
8460	    p
8461	}
8462    }'
8463aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8464# Check for a 64-bit object if we didn't find anything.
8465if test -z "$aix_libpath"; then
8466  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8467fi
8468else
8469  echo "$as_me: failed program was:" >&5
8470sed 's/^/| /' conftest.$ac_ext >&5
8471
8472
8473fi
8474
8475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8476      conftest$ac_exeext conftest.$ac_ext
8477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8478
8479       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8480	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"
8481       else
8482	if test "$host_cpu" = ia64; then
8483	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8484	  allow_undefined_flag="-z nodefs"
8485	  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"
8486	else
8487	 # Determine the default libpath from the value encoded in an empty executable.
8488	 cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h.  */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h.  */
8494
8495int
8496main ()
8497{
8498
8499  ;
8500  return 0;
8501}
8502_ACEOF
8503rm -f conftest.$ac_objext conftest$ac_exeext
8504if { (ac_try="$ac_link"
8505case "(($ac_try" in
8506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507  *) ac_try_echo=$ac_try;;
8508esac
8509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510  (eval "$ac_link") 2>conftest.er1
8511  ac_status=$?
8512  grep -v '^ *+' conftest.er1 >conftest.err
8513  rm -f conftest.er1
8514  cat conftest.err >&5
8515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516  (exit $ac_status); } && {
8517	 test -z "$ac_c_werror_flag" ||
8518	 test ! -s conftest.err
8519       } && test -s conftest$ac_exeext &&
8520       $as_test_x conftest$ac_exeext; then
8521
8522lt_aix_libpath_sed='
8523    /Import File Strings/,/^$/ {
8524	/^0/ {
8525	    s/^0  *\(.*\)$/\1/
8526	    p
8527	}
8528    }'
8529aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8530# Check for a 64-bit object if we didn't find anything.
8531if test -z "$aix_libpath"; then
8532  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8533fi
8534else
8535  echo "$as_me: failed program was:" >&5
8536sed 's/^/| /' conftest.$ac_ext >&5
8537
8538
8539fi
8540
8541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8542      conftest$ac_exeext conftest.$ac_ext
8543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8544
8545	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8546	  # Warning - without using the other run time loading flags,
8547	  # -berok will link without error, but may produce a broken library.
8548	  no_undefined_flag=' ${wl}-bernotok'
8549	  allow_undefined_flag=' ${wl}-berok'
8550	  # Exported symbols can be pulled into shared objects from archives
8551	  whole_archive_flag_spec='$convenience'
8552	  archive_cmds_need_lc=yes
8553	  # This is similar to how AIX traditionally builds its shared libraries.
8554	  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'
8555	fi
8556      fi
8557      ;;
8558
8559    amigaos*)
8560      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)'
8561      hardcode_libdir_flag_spec='-L$libdir'
8562      hardcode_minus_L=yes
8563      # see comment about different semantics on the GNU ld section
8564      ld_shlibs=no
8565      ;;
8566
8567    bsdi[45]*)
8568      export_dynamic_flag_spec=-rdynamic
8569      ;;
8570
8571    cygwin* | mingw* | pw32*)
8572      # When not using gcc, we currently assume that we are using
8573      # Microsoft Visual C++.
8574      # hardcode_libdir_flag_spec is actually meaningless, as there is
8575      # no search path for DLLs.
8576      hardcode_libdir_flag_spec=' '
8577      allow_undefined_flag=unsupported
8578      # Tell ltmain to make .lib files, not .a files.
8579      libext=lib
8580      # Tell ltmain to make .dll files, not .so files.
8581      shrext_cmds=".dll"
8582      # FIXME: Setting linknames here is a bad hack.
8583      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8584      # The linker will automatically build a .lib file if we build a DLL.
8585      old_archive_From_new_cmds='true'
8586      # FIXME: Should let the user specify the lib program.
8587      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8588      fix_srcfile_path='`cygpath -w "$srcfile"`'
8589      enable_shared_with_static_runtimes=yes
8590      ;;
8591
8592    darwin* | rhapsody*)
8593      case $host_os in
8594        rhapsody* | darwin1.[012])
8595         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8596         ;;
8597       *) # Darwin 1.3 on
8598         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8599           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8600         else
8601           case ${MACOSX_DEPLOYMENT_TARGET} in
8602             10.[012])
8603               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8604               ;;
8605             10.*)
8606               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8607               ;;
8608           esac
8609         fi
8610         ;;
8611      esac
8612      archive_cmds_need_lc=no
8613      hardcode_direct=no
8614      hardcode_automatic=yes
8615      hardcode_shlibpath_var=unsupported
8616      whole_archive_flag_spec=''
8617      link_all_deplibs=yes
8618    if test "$GCC" = yes ; then
8619    	output_verbose_link_cmd='echo'
8620        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8621        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8622        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8623        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8624    else
8625      case $cc_basename in
8626        xlc*)
8627         output_verbose_link_cmd='echo'
8628         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8629         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8630          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8631         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}'
8632          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}'
8633          ;;
8634       *)
8635         ld_shlibs=no
8636          ;;
8637      esac
8638    fi
8639      ;;
8640
8641    dgux*)
8642      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643      hardcode_libdir_flag_spec='-L$libdir'
8644      hardcode_shlibpath_var=no
8645      ;;
8646
8647    freebsd1*)
8648      ld_shlibs=no
8649      ;;
8650
8651    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8652    # support.  Future versions do this automatically, but an explicit c++rt0.o
8653    # does not break anything, and helps significantly (at the cost of a little
8654    # extra space).
8655    freebsd2.2*)
8656      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8657      hardcode_libdir_flag_spec='-R$libdir'
8658      hardcode_direct=yes
8659      hardcode_shlibpath_var=no
8660      ;;
8661
8662    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8663    freebsd2*)
8664      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8665      hardcode_direct=yes
8666      hardcode_minus_L=yes
8667      hardcode_shlibpath_var=no
8668      ;;
8669
8670    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8671    freebsd* | dragonfly*)
8672      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8673      hardcode_libdir_flag_spec='-R$libdir'
8674      hardcode_direct=yes
8675      hardcode_shlibpath_var=no
8676      ;;
8677
8678    hpux9*)
8679      if test "$GCC" = yes; then
8680	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'
8681      else
8682	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'
8683      fi
8684      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685      hardcode_libdir_separator=:
8686      hardcode_direct=yes
8687
8688      # hardcode_minus_L: Not really in the search PATH,
8689      # but as the default location of the library.
8690      hardcode_minus_L=yes
8691      export_dynamic_flag_spec='${wl}-E'
8692      ;;
8693
8694    hpux10*)
8695      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8696	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8697      else
8698	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8699      fi
8700      if test "$with_gnu_ld" = no; then
8701	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702	hardcode_libdir_separator=:
8703
8704	hardcode_direct=yes
8705	export_dynamic_flag_spec='${wl}-E'
8706
8707	# hardcode_minus_L: Not really in the search PATH,
8708	# but as the default location of the library.
8709	hardcode_minus_L=yes
8710      fi
8711      ;;
8712
8713    hpux11*)
8714      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8715	case $host_cpu in
8716	hppa*64*)
8717	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718	  ;;
8719	ia64*)
8720	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8721	  ;;
8722	*)
8723	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8724	  ;;
8725	esac
8726      else
8727	case $host_cpu in
8728	hppa*64*)
8729	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730	  ;;
8731	ia64*)
8732	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8733	  ;;
8734	*)
8735	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8736	  ;;
8737	esac
8738      fi
8739      if test "$with_gnu_ld" = no; then
8740	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8741	hardcode_libdir_separator=:
8742
8743	case $host_cpu in
8744	hppa*64*|ia64*)
8745	  hardcode_libdir_flag_spec_ld='+b $libdir'
8746	  hardcode_direct=no
8747	  hardcode_shlibpath_var=no
8748	  ;;
8749	*)
8750	  hardcode_direct=yes
8751	  export_dynamic_flag_spec='${wl}-E'
8752
8753	  # hardcode_minus_L: Not really in the search PATH,
8754	  # but as the default location of the library.
8755	  hardcode_minus_L=yes
8756	  ;;
8757	esac
8758      fi
8759      ;;
8760
8761    irix5* | irix6* | nonstopux*)
8762      if test "$GCC" = yes; then
8763	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'
8764      else
8765	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'
8766	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8767      fi
8768      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769      hardcode_libdir_separator=:
8770      link_all_deplibs=yes
8771      ;;
8772
8773    netbsd* | netbsdelf*-gnu)
8774      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8775	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8776      else
8777	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8778      fi
8779      hardcode_libdir_flag_spec='-R$libdir'
8780      hardcode_direct=yes
8781      hardcode_shlibpath_var=no
8782      ;;
8783
8784    newsos6)
8785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786      hardcode_direct=yes
8787      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788      hardcode_libdir_separator=:
8789      hardcode_shlibpath_var=no
8790      ;;
8791
8792    openbsd*)
8793      if test -f /usr/libexec/ld.so; then
8794	hardcode_direct=yes
8795	hardcode_shlibpath_var=no
8796	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8797	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8798	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8799	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8800	  export_dynamic_flag_spec='${wl}-E'
8801	else
8802	  case $host_os in
8803	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8804	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8805	     hardcode_libdir_flag_spec='-R$libdir'
8806	     ;;
8807	   *)
8808	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8809	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8810	     ;;
8811	  esac
8812        fi
8813      else
8814	ld_shlibs=no
8815      fi
8816      ;;
8817
8818    os2*)
8819      hardcode_libdir_flag_spec='-L$libdir'
8820      hardcode_minus_L=yes
8821      allow_undefined_flag=unsupported
8822      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'
8823      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8824      ;;
8825
8826    osf3*)
8827      if test "$GCC" = yes; then
8828	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8829	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'
8830      else
8831	allow_undefined_flag=' -expect_unresolved \*'
8832	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'
8833      fi
8834      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835      hardcode_libdir_separator=:
8836      ;;
8837
8838    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8839      if test "$GCC" = yes; then
8840	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8841	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'
8842	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843      else
8844	allow_undefined_flag=' -expect_unresolved \*'
8845	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'
8846	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8847	$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'
8848
8849	# Both c and cxx compiler support -rpath directly
8850	hardcode_libdir_flag_spec='-rpath $libdir'
8851      fi
8852      hardcode_libdir_separator=:
8853      ;;
8854
8855    solaris*)
8856      no_undefined_flag=' -z text'
8857      if test "$GCC" = yes; then
8858	wlarc='${wl}'
8859	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8861	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8862      else
8863	wlarc=''
8864	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8866  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8867      fi
8868      hardcode_libdir_flag_spec='-R$libdir'
8869      hardcode_shlibpath_var=no
8870      case $host_os in
8871      solaris2.[0-5] | solaris2.[0-5].*) ;;
8872      *)
8873	# The compiler driver will combine and reorder linker options,
8874	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8875	# but is careful enough not to reorder.
8876 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8877	if test "$GCC" = yes; then
8878	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8879	else
8880	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8881	fi
8882	;;
8883      esac
8884      link_all_deplibs=yes
8885      ;;
8886
8887    sunos4*)
8888      if test "x$host_vendor" = xsequent; then
8889	# Use $CC to link under sequent, because it throws in some extra .o
8890	# files that make .init and .fini sections work.
8891	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8892      else
8893	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8894      fi
8895      hardcode_libdir_flag_spec='-L$libdir'
8896      hardcode_direct=yes
8897      hardcode_minus_L=yes
8898      hardcode_shlibpath_var=no
8899      ;;
8900
8901    sysv4)
8902      case $host_vendor in
8903	sni)
8904	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905	  hardcode_direct=yes # is this really true???
8906	;;
8907	siemens)
8908	  ## LD is ld it makes a PLAMLIB
8909	  ## CC just makes a GrossModule.
8910	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8911	  reload_cmds='$CC -r -o $output$reload_objs'
8912	  hardcode_direct=no
8913        ;;
8914	motorola)
8915	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8917	;;
8918      esac
8919      runpath_var='LD_RUN_PATH'
8920      hardcode_shlibpath_var=no
8921      ;;
8922
8923    sysv4.3*)
8924      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8925      hardcode_shlibpath_var=no
8926      export_dynamic_flag_spec='-Bexport'
8927      ;;
8928
8929    sysv4*MP*)
8930      if test -d /usr/nec; then
8931	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932	hardcode_shlibpath_var=no
8933	runpath_var=LD_RUN_PATH
8934	hardcode_runpath_var=yes
8935	ld_shlibs=yes
8936      fi
8937      ;;
8938
8939    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8940      no_undefined_flag='${wl}-z,text'
8941      archive_cmds_need_lc=no
8942      hardcode_shlibpath_var=no
8943      runpath_var='LD_RUN_PATH'
8944
8945      if test "$GCC" = yes; then
8946	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8947	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8948      else
8949	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8950	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951      fi
8952      ;;
8953
8954    sysv5* | sco3.2v5* | sco5v6*)
8955      # Note: We can NOT use -z defs as we might desire, because we do not
8956      # link with -lc, and that would cause any symbols used from libc to
8957      # always be unresolved, which means just about no library would
8958      # ever link correctly.  If we're not using GNU ld we use -z text
8959      # though, which does catch some bad symbols but isn't as heavy-handed
8960      # as -z defs.
8961      no_undefined_flag='${wl}-z,text'
8962      allow_undefined_flag='${wl}-z,nodefs'
8963      archive_cmds_need_lc=no
8964      hardcode_shlibpath_var=no
8965      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8966      hardcode_libdir_separator=':'
8967      link_all_deplibs=yes
8968      export_dynamic_flag_spec='${wl}-Bexport'
8969      runpath_var='LD_RUN_PATH'
8970
8971      if test "$GCC" = yes; then
8972	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8973	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8974      else
8975	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977      fi
8978      ;;
8979
8980    uts4*)
8981      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982      hardcode_libdir_flag_spec='-L$libdir'
8983      hardcode_shlibpath_var=no
8984      ;;
8985
8986    *)
8987      ld_shlibs=no
8988      ;;
8989    esac
8990  fi
8991
8992{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8993echo "${ECHO_T}$ld_shlibs" >&6; }
8994test "$ld_shlibs" = no && can_build_shared=no
8995
8996#
8997# Do we need to explicitly link libc?
8998#
8999case "x$archive_cmds_need_lc" in
9000x|xyes)
9001  # Assume -lc should be added
9002  archive_cmds_need_lc=yes
9003
9004  if test "$enable_shared" = yes && test "$GCC" = yes; then
9005    case $archive_cmds in
9006    *'~'*)
9007      # FIXME: we may have to deal with multi-command sequences.
9008      ;;
9009    '$CC '*)
9010      # Test whether the compiler implicitly links with -lc since on some
9011      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9012      # to ld, don't add -lc before -lgcc.
9013      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9014echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9015      $rm conftest*
9016      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9017
9018      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019  (eval $ac_compile) 2>&5
9020  ac_status=$?
9021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022  (exit $ac_status); } 2>conftest.err; then
9023        soname=conftest
9024        lib=conftest
9025        libobjs=conftest.$ac_objext
9026        deplibs=
9027        wl=$lt_prog_compiler_wl
9028	pic_flag=$lt_prog_compiler_pic
9029        compiler_flags=-v
9030        linker_flags=-v
9031        verstring=
9032        output_objdir=.
9033        libname=conftest
9034        lt_save_allow_undefined_flag=$allow_undefined_flag
9035        allow_undefined_flag=
9036        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9037  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9038  ac_status=$?
9039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040  (exit $ac_status); }
9041        then
9042	  archive_cmds_need_lc=no
9043        else
9044	  archive_cmds_need_lc=yes
9045        fi
9046        allow_undefined_flag=$lt_save_allow_undefined_flag
9047      else
9048        cat conftest.err 1>&5
9049      fi
9050      $rm conftest*
9051      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9052echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9053      ;;
9054    esac
9055  fi
9056  ;;
9057esac
9058
9059{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9060echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9061library_names_spec=
9062libname_spec='lib$name'
9063soname_spec=
9064shrext_cmds=".so"
9065postinstall_cmds=
9066postuninstall_cmds=
9067finish_cmds=
9068finish_eval=
9069shlibpath_var=
9070shlibpath_overrides_runpath=unknown
9071version_type=none
9072dynamic_linker="$host_os ld.so"
9073sys_lib_dlsearch_path_spec="/lib /usr/lib"
9074
9075if test "$GCC" = yes; then
9076  case $host_os in
9077    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9078    *) lt_awk_arg="/^libraries:/" ;;
9079  esac
9080  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9081  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9082    # if the path contains ";" then we assume it to be the separator
9083    # otherwise default to the standard path separator (i.e. ":") - it is
9084    # assumed that no part of a normal pathname contains ";" but that should
9085    # okay in the real world where ";" in dirpaths is itself problematic.
9086    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9087  else
9088    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9089  fi
9090  # Ok, now we have the path, separated by spaces, we can step through it
9091  # and add multilib dir if necessary.
9092  lt_tmp_lt_search_path_spec=
9093  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9094  for lt_sys_path in $lt_search_path_spec; do
9095    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9096      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9097    else
9098      test -d "$lt_sys_path" && \
9099	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9100    fi
9101  done
9102  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9103BEGIN {RS=" "; FS="/|\n";} {
9104  lt_foo="";
9105  lt_count=0;
9106  for (lt_i = NF; lt_i > 0; lt_i--) {
9107    if ($lt_i != "" && $lt_i != ".") {
9108      if ($lt_i == "..") {
9109        lt_count++;
9110      } else {
9111        if (lt_count == 0) {
9112          lt_foo="/" $lt_i lt_foo;
9113        } else {
9114          lt_count--;
9115        }
9116      }
9117    }
9118  }
9119  if (lt_foo != "") { lt_freq[lt_foo]++; }
9120  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9121}'`
9122  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9123else
9124  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9125fi
9126need_lib_prefix=unknown
9127hardcode_into_libs=no
9128
9129# when you set need_version to no, make sure it does not cause -set_version
9130# flags to be left without arguments
9131need_version=unknown
9132
9133case $host_os in
9134aix3*)
9135  version_type=linux
9136  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9137  shlibpath_var=LIBPATH
9138
9139  # AIX 3 has no versioning support, so we append a major version to the name.
9140  soname_spec='${libname}${release}${shared_ext}$major'
9141  ;;
9142
9143aix[4-9]*)
9144  version_type=linux
9145  need_lib_prefix=no
9146  need_version=no
9147  hardcode_into_libs=yes
9148  if test "$host_cpu" = ia64; then
9149    # AIX 5 supports IA64
9150    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9151    shlibpath_var=LD_LIBRARY_PATH
9152  else
9153    # With GCC up to 2.95.x, collect2 would create an import file
9154    # for dependence libraries.  The import file would start with
9155    # the line `#! .'.  This would cause the generated library to
9156    # depend on `.', always an invalid library.  This was fixed in
9157    # development snapshots of GCC prior to 3.0.
9158    case $host_os in
9159      aix4 | aix4.[01] | aix4.[01].*)
9160      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9161	   echo ' yes '
9162	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9163	:
9164      else
9165	can_build_shared=no
9166      fi
9167      ;;
9168    esac
9169    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9170    # soname into executable. Probably we can add versioning support to
9171    # collect2, so additional links can be useful in future.
9172    if test "$aix_use_runtimelinking" = yes; then
9173      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9174      # instead of lib<name>.a to let people know that these are not
9175      # typical AIX shared libraries.
9176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177    else
9178      # We preserve .a as extension for shared libraries through AIX4.2
9179      # and later when we are not doing run time linking.
9180      library_names_spec='${libname}${release}.a $libname.a'
9181      soname_spec='${libname}${release}${shared_ext}$major'
9182    fi
9183    shlibpath_var=LIBPATH
9184  fi
9185  ;;
9186
9187amigaos*)
9188  library_names_spec='$libname.ixlibrary $libname.a'
9189  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9190  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'
9191  ;;
9192
9193beos*)
9194  library_names_spec='${libname}${shared_ext}'
9195  dynamic_linker="$host_os ld.so"
9196  shlibpath_var=LIBRARY_PATH
9197  ;;
9198
9199bsdi[45]*)
9200  version_type=linux
9201  need_version=no
9202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203  soname_spec='${libname}${release}${shared_ext}$major'
9204  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9205  shlibpath_var=LD_LIBRARY_PATH
9206  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9207  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9208  # the default ld.so.conf also contains /usr/contrib/lib and
9209  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9210  # libtool to hard-code these into programs
9211  ;;
9212
9213cygwin* | mingw* | pw32*)
9214  version_type=windows
9215  shrext_cmds=".dll"
9216  need_version=no
9217  need_lib_prefix=no
9218
9219  case $GCC,$host_os in
9220  yes,cygwin* | yes,mingw* | yes,pw32*)
9221    library_names_spec='$libname.dll.a'
9222    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9223    postinstall_cmds='base_file=`basename \${file}`~
9224      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9225      dldir=$destdir/`dirname \$dlpath`~
9226      test -d \$dldir || mkdir -p \$dldir~
9227      $install_prog $dir/$dlname \$dldir/$dlname~
9228      chmod a+x \$dldir/$dlname'
9229    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9230      dlpath=$dir/\$dldll~
9231       $rm \$dlpath'
9232    shlibpath_overrides_runpath=yes
9233
9234    case $host_os in
9235    cygwin*)
9236      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9237      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9239      ;;
9240    mingw*)
9241      # MinGW DLLs use traditional 'lib' prefix
9242      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9243      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9244      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9245        # It is most probably a Windows format PATH printed by
9246        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9247        # path with ; separators, and with drive letters. We can handle the
9248        # drive letters (cygwin fileutils understands them), so leave them,
9249        # especially as we might pass files found there to a mingw objdump,
9250        # which wouldn't understand a cygwinified path. Ahh.
9251        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9252      else
9253        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9254      fi
9255      ;;
9256    pw32*)
9257      # pw32 DLLs use 'pw' prefix rather than 'lib'
9258      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9259      ;;
9260    esac
9261    ;;
9262
9263  *)
9264    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9265    ;;
9266  esac
9267  dynamic_linker='Win32 ld.exe'
9268  # FIXME: first we should search . and the directory the executable is in
9269  shlibpath_var=PATH
9270  ;;
9271
9272darwin* | rhapsody*)
9273  dynamic_linker="$host_os dyld"
9274  version_type=darwin
9275  need_lib_prefix=no
9276  need_version=no
9277  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9278  soname_spec='${libname}${release}${major}$shared_ext'
9279  shlibpath_overrides_runpath=yes
9280  shlibpath_var=DYLD_LIBRARY_PATH
9281  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9282
9283  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9284  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9285  ;;
9286
9287dgux*)
9288  version_type=linux
9289  need_lib_prefix=no
9290  need_version=no
9291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9292  soname_spec='${libname}${release}${shared_ext}$major'
9293  shlibpath_var=LD_LIBRARY_PATH
9294  ;;
9295
9296freebsd1*)
9297  dynamic_linker=no
9298  ;;
9299
9300freebsd* | dragonfly*)
9301  # DragonFly does not have aout.  When/if they implement a new
9302  # versioning mechanism, adjust this.
9303  if test -x /usr/bin/objformat; then
9304    objformat=`/usr/bin/objformat`
9305  else
9306    case $host_os in
9307    freebsd[123]*) objformat=aout ;;
9308    *) objformat=elf ;;
9309    esac
9310  fi
9311  version_type=freebsd-$objformat
9312  case $version_type in
9313    freebsd-elf*)
9314      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9315      need_version=no
9316      need_lib_prefix=no
9317      ;;
9318    freebsd-*)
9319      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9320      need_version=yes
9321      ;;
9322  esac
9323  shlibpath_var=LD_LIBRARY_PATH
9324  case $host_os in
9325  freebsd2*)
9326    shlibpath_overrides_runpath=yes
9327    ;;
9328  freebsd3.[01]* | freebsdelf3.[01]*)
9329    shlibpath_overrides_runpath=yes
9330    hardcode_into_libs=yes
9331    ;;
9332  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9333  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9334    shlibpath_overrides_runpath=no
9335    hardcode_into_libs=yes
9336    ;;
9337  *) # from 4.6 on, and DragonFly
9338    shlibpath_overrides_runpath=yes
9339    hardcode_into_libs=yes
9340    ;;
9341  esac
9342  ;;
9343
9344gnu*)
9345  version_type=linux
9346  need_lib_prefix=no
9347  need_version=no
9348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9349  soname_spec='${libname}${release}${shared_ext}$major'
9350  shlibpath_var=LD_LIBRARY_PATH
9351  hardcode_into_libs=yes
9352  ;;
9353
9354hpux9* | hpux10* | hpux11*)
9355  # Give a soname corresponding to the major version so that dld.sl refuses to
9356  # link against other versions.
9357  version_type=sunos
9358  need_lib_prefix=no
9359  need_version=no
9360  case $host_cpu in
9361  ia64*)
9362    shrext_cmds='.so'
9363    hardcode_into_libs=yes
9364    dynamic_linker="$host_os dld.so"
9365    shlibpath_var=LD_LIBRARY_PATH
9366    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9367    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368    soname_spec='${libname}${release}${shared_ext}$major'
9369    if test "X$HPUX_IA64_MODE" = X32; then
9370      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9371    else
9372      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9373    fi
9374    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9375    ;;
9376   hppa*64*)
9377     shrext_cmds='.sl'
9378     hardcode_into_libs=yes
9379     dynamic_linker="$host_os dld.sl"
9380     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9381     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383     soname_spec='${libname}${release}${shared_ext}$major'
9384     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9385     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9386     ;;
9387   *)
9388    shrext_cmds='.sl'
9389    dynamic_linker="$host_os dld.sl"
9390    shlibpath_var=SHLIB_PATH
9391    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9392    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393    soname_spec='${libname}${release}${shared_ext}$major'
9394    ;;
9395  esac
9396  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9397  postinstall_cmds='chmod 555 $lib'
9398  ;;
9399
9400interix[3-9]*)
9401  version_type=linux
9402  need_lib_prefix=no
9403  need_version=no
9404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9405  soname_spec='${libname}${release}${shared_ext}$major'
9406  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9407  shlibpath_var=LD_LIBRARY_PATH
9408  shlibpath_overrides_runpath=no
9409  hardcode_into_libs=yes
9410  ;;
9411
9412irix5* | irix6* | nonstopux*)
9413  case $host_os in
9414    nonstopux*) version_type=nonstopux ;;
9415    *)
9416	if test "$lt_cv_prog_gnu_ld" = yes; then
9417		version_type=linux
9418	else
9419		version_type=irix
9420	fi ;;
9421  esac
9422  need_lib_prefix=no
9423  need_version=no
9424  soname_spec='${libname}${release}${shared_ext}$major'
9425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9426  case $host_os in
9427  irix5* | nonstopux*)
9428    libsuff= shlibsuff=
9429    ;;
9430  *)
9431    case $LD in # libtool.m4 will add one of these switches to LD
9432    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9433      libsuff= shlibsuff= libmagic=32-bit;;
9434    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9435      libsuff=32 shlibsuff=N32 libmagic=N32;;
9436    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9437      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9438    *) libsuff= shlibsuff= libmagic=never-match;;
9439    esac
9440    ;;
9441  esac
9442  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9443  shlibpath_overrides_runpath=no
9444  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9445  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9446  hardcode_into_libs=yes
9447  ;;
9448
9449# No shared lib support for Linux oldld, aout, or coff.
9450linux*oldld* | linux*aout* | linux*coff*)
9451  dynamic_linker=no
9452  ;;
9453
9454# This must be Linux ELF.
9455linux* | k*bsd*-gnu)
9456  version_type=linux
9457  need_lib_prefix=no
9458  need_version=no
9459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460  soname_spec='${libname}${release}${shared_ext}$major'
9461  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9462  shlibpath_var=LD_LIBRARY_PATH
9463  shlibpath_overrides_runpath=no
9464  # This implies no fast_install, which is unacceptable.
9465  # Some rework will be needed to allow for fast_install
9466  # before this can be enabled.
9467  hardcode_into_libs=yes
9468
9469  # Append ld.so.conf contents to the search path
9470  if test -f /etc/ld.so.conf; then
9471    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' ' '`
9472    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9473  fi
9474
9475  # We used to test for /lib/ld.so.1 and disable shared libraries on
9476  # powerpc, because MkLinux only supported shared libraries with the
9477  # GNU dynamic linker.  Since this was broken with cross compilers,
9478  # most powerpc-linux boxes support dynamic linking these days and
9479  # people can always --disable-shared, the test was removed, and we
9480  # assume the GNU/Linux dynamic linker is in use.
9481  dynamic_linker='GNU/Linux ld.so'
9482  ;;
9483
9484netbsdelf*-gnu)
9485  version_type=linux
9486  need_lib_prefix=no
9487  need_version=no
9488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9489  soname_spec='${libname}${release}${shared_ext}$major'
9490  shlibpath_var=LD_LIBRARY_PATH
9491  shlibpath_overrides_runpath=no
9492  hardcode_into_libs=yes
9493  dynamic_linker='NetBSD ld.elf_so'
9494  ;;
9495
9496netbsd*)
9497  version_type=sunos
9498  need_lib_prefix=no
9499  need_version=no
9500  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9501    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9502    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9503    dynamic_linker='NetBSD (a.out) ld.so'
9504  else
9505    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9506    soname_spec='${libname}${release}${shared_ext}$major'
9507    dynamic_linker='NetBSD ld.elf_so'
9508  fi
9509  shlibpath_var=LD_LIBRARY_PATH
9510  shlibpath_overrides_runpath=yes
9511  hardcode_into_libs=yes
9512  ;;
9513
9514newsos6)
9515  version_type=linux
9516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517  shlibpath_var=LD_LIBRARY_PATH
9518  shlibpath_overrides_runpath=yes
9519  ;;
9520
9521nto-qnx*)
9522  version_type=linux
9523  need_lib_prefix=no
9524  need_version=no
9525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526  soname_spec='${libname}${release}${shared_ext}$major'
9527  shlibpath_var=LD_LIBRARY_PATH
9528  shlibpath_overrides_runpath=yes
9529  ;;
9530
9531openbsd*)
9532  version_type=sunos
9533  sys_lib_dlsearch_path_spec="/usr/lib"
9534  need_lib_prefix=no
9535  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9536  case $host_os in
9537    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9538    *)                         need_version=no  ;;
9539  esac
9540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9542  shlibpath_var=LD_LIBRARY_PATH
9543  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9544    case $host_os in
9545      openbsd2.[89] | openbsd2.[89].*)
9546	shlibpath_overrides_runpath=no
9547	;;
9548      *)
9549	shlibpath_overrides_runpath=yes
9550	;;
9551      esac
9552  else
9553    shlibpath_overrides_runpath=yes
9554  fi
9555  ;;
9556
9557os2*)
9558  libname_spec='$name'
9559  shrext_cmds=".dll"
9560  need_lib_prefix=no
9561  library_names_spec='$libname${shared_ext} $libname.a'
9562  dynamic_linker='OS/2 ld.exe'
9563  shlibpath_var=LIBPATH
9564  ;;
9565
9566osf3* | osf4* | osf5*)
9567  version_type=osf
9568  need_lib_prefix=no
9569  need_version=no
9570  soname_spec='${libname}${release}${shared_ext}$major'
9571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572  shlibpath_var=LD_LIBRARY_PATH
9573  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9574  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9575  ;;
9576
9577rdos*)
9578  dynamic_linker=no
9579  ;;
9580
9581solaris*)
9582  version_type=linux
9583  need_lib_prefix=no
9584  need_version=no
9585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586  soname_spec='${libname}${release}${shared_ext}$major'
9587  shlibpath_var=LD_LIBRARY_PATH
9588  shlibpath_overrides_runpath=yes
9589  hardcode_into_libs=yes
9590  # ldd complains unless libraries are executable
9591  postinstall_cmds='chmod +x $lib'
9592  ;;
9593
9594sunos4*)
9595  version_type=sunos
9596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9598  shlibpath_var=LD_LIBRARY_PATH
9599  shlibpath_overrides_runpath=yes
9600  if test "$with_gnu_ld" = yes; then
9601    need_lib_prefix=no
9602  fi
9603  need_version=yes
9604  ;;
9605
9606sysv4 | sysv4.3*)
9607  version_type=linux
9608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609  soname_spec='${libname}${release}${shared_ext}$major'
9610  shlibpath_var=LD_LIBRARY_PATH
9611  case $host_vendor in
9612    sni)
9613      shlibpath_overrides_runpath=no
9614      need_lib_prefix=no
9615      export_dynamic_flag_spec='${wl}-Blargedynsym'
9616      runpath_var=LD_RUN_PATH
9617      ;;
9618    siemens)
9619      need_lib_prefix=no
9620      ;;
9621    motorola)
9622      need_lib_prefix=no
9623      need_version=no
9624      shlibpath_overrides_runpath=no
9625      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9626      ;;
9627  esac
9628  ;;
9629
9630sysv4*MP*)
9631  if test -d /usr/nec ;then
9632    version_type=linux
9633    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9634    soname_spec='$libname${shared_ext}.$major'
9635    shlibpath_var=LD_LIBRARY_PATH
9636  fi
9637  ;;
9638
9639sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9640  version_type=freebsd-elf
9641  need_lib_prefix=no
9642  need_version=no
9643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9644  soname_spec='${libname}${release}${shared_ext}$major'
9645  shlibpath_var=LD_LIBRARY_PATH
9646  hardcode_into_libs=yes
9647  if test "$with_gnu_ld" = yes; then
9648    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9649    shlibpath_overrides_runpath=no
9650  else
9651    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9652    shlibpath_overrides_runpath=yes
9653    case $host_os in
9654      sco3.2v5*)
9655        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9656	;;
9657    esac
9658  fi
9659  sys_lib_dlsearch_path_spec='/usr/lib'
9660  ;;
9661
9662uts4*)
9663  version_type=linux
9664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665  soname_spec='${libname}${release}${shared_ext}$major'
9666  shlibpath_var=LD_LIBRARY_PATH
9667  ;;
9668
9669*)
9670  dynamic_linker=no
9671  ;;
9672esac
9673{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9674echo "${ECHO_T}$dynamic_linker" >&6; }
9675test "$dynamic_linker" = no && can_build_shared=no
9676
9677if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9678  echo $ECHO_N "(cached) $ECHO_C" >&6
9679else
9680  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9681fi
9682
9683sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9684if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9685  echo $ECHO_N "(cached) $ECHO_C" >&6
9686else
9687  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9688fi
9689
9690sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9691
9692variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9693if test "$GCC" = yes; then
9694  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9695fi
9696
9697{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9698echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9699hardcode_action=
9700if test -n "$hardcode_libdir_flag_spec" || \
9701   test -n "$runpath_var" || \
9702   test "X$hardcode_automatic" = "Xyes" ; then
9703
9704  # We can hardcode non-existant directories.
9705  if test "$hardcode_direct" != no &&
9706     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9707     # have to relink, otherwise we might link with an installed library
9708     # when we should be linking with a yet-to-be-installed one
9709     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9710     test "$hardcode_minus_L" != no; then
9711    # Linking always hardcodes the temporary library directory.
9712    hardcode_action=relink
9713  else
9714    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9715    hardcode_action=immediate
9716  fi
9717else
9718  # We cannot hardcode anything, or else we can only hardcode existing
9719  # directories.
9720  hardcode_action=unsupported
9721fi
9722{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9723echo "${ECHO_T}$hardcode_action" >&6; }
9724
9725if test "$hardcode_action" = relink; then
9726  # Fast installation is not supported
9727  enable_fast_install=no
9728elif test "$shlibpath_overrides_runpath" = yes ||
9729     test "$enable_shared" = no; then
9730  # Fast installation is not necessary
9731  enable_fast_install=needless
9732fi
9733
9734striplib=
9735old_striplib=
9736{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9737echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9738if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9739  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9740  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9741  { echo "$as_me:$LINENO: result: yes" >&5
9742echo "${ECHO_T}yes" >&6; }
9743else
9744# FIXME - insert some real tests, host_os isn't really good enough
9745  case $host_os in
9746   darwin*)
9747       if test -n "$STRIP" ; then
9748         striplib="$STRIP -x"
9749         old_striplib="$STRIP -S"
9750         { echo "$as_me:$LINENO: result: yes" >&5
9751echo "${ECHO_T}yes" >&6; }
9752       else
9753  { echo "$as_me:$LINENO: result: no" >&5
9754echo "${ECHO_T}no" >&6; }
9755fi
9756       ;;
9757   *)
9758  { echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6; }
9760    ;;
9761  esac
9762fi
9763
9764if test "x$enable_dlopen" != xyes; then
9765  enable_dlopen=unknown
9766  enable_dlopen_self=unknown
9767  enable_dlopen_self_static=unknown
9768else
9769  lt_cv_dlopen=no
9770  lt_cv_dlopen_libs=
9771
9772  case $host_os in
9773  beos*)
9774    lt_cv_dlopen="load_add_on"
9775    lt_cv_dlopen_libs=
9776    lt_cv_dlopen_self=yes
9777    ;;
9778
9779  mingw* | pw32*)
9780    lt_cv_dlopen="LoadLibrary"
9781    lt_cv_dlopen_libs=
9782   ;;
9783
9784  cygwin*)
9785    lt_cv_dlopen="dlopen"
9786    lt_cv_dlopen_libs=
9787   ;;
9788
9789  darwin*)
9790  # if libdl is installed we need to link against it
9791    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9792echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9793if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9794  echo $ECHO_N "(cached) $ECHO_C" >&6
9795else
9796  ac_check_lib_save_LIBS=$LIBS
9797LIBS="-ldl  $LIBS"
9798cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h.  */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h.  */
9804
9805/* Override any GCC internal prototype to avoid an error.
9806   Use char because int might match the return type of a GCC
9807   builtin and then its argument prototype would still apply.  */
9808#ifdef __cplusplus
9809extern "C"
9810#endif
9811char dlopen ();
9812int
9813main ()
9814{
9815return dlopen ();
9816  ;
9817  return 0;
9818}
9819_ACEOF
9820rm -f conftest.$ac_objext conftest$ac_exeext
9821if { (ac_try="$ac_link"
9822case "(($ac_try" in
9823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824  *) ac_try_echo=$ac_try;;
9825esac
9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827  (eval "$ac_link") 2>conftest.er1
9828  ac_status=$?
9829  grep -v '^ *+' conftest.er1 >conftest.err
9830  rm -f conftest.er1
9831  cat conftest.err >&5
9832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833  (exit $ac_status); } && {
9834	 test -z "$ac_c_werror_flag" ||
9835	 test ! -s conftest.err
9836       } && test -s conftest$ac_exeext &&
9837       $as_test_x conftest$ac_exeext; then
9838  ac_cv_lib_dl_dlopen=yes
9839else
9840  echo "$as_me: failed program was:" >&5
9841sed 's/^/| /' conftest.$ac_ext >&5
9842
9843	ac_cv_lib_dl_dlopen=no
9844fi
9845
9846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847      conftest$ac_exeext conftest.$ac_ext
9848LIBS=$ac_check_lib_save_LIBS
9849fi
9850{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9851echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9852if test $ac_cv_lib_dl_dlopen = yes; then
9853  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9854else
9855
9856    lt_cv_dlopen="dyld"
9857    lt_cv_dlopen_libs=
9858    lt_cv_dlopen_self=yes
9859
9860fi
9861
9862   ;;
9863
9864  *)
9865    { echo "$as_me:$LINENO: checking for shl_load" >&5
9866echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9867if test "${ac_cv_func_shl_load+set}" = set; then
9868  echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870  cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h.  */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h.  */
9876/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9877   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9878#define shl_load innocuous_shl_load
9879
9880/* System header to define __stub macros and hopefully few prototypes,
9881    which can conflict with char shl_load (); below.
9882    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9883    <limits.h> exists even on freestanding compilers.  */
9884
9885#ifdef __STDC__
9886# include <limits.h>
9887#else
9888# include <assert.h>
9889#endif
9890
9891#undef shl_load
9892
9893/* Override any GCC internal prototype to avoid an error.
9894   Use char because int might match the return type of a GCC
9895   builtin and then its argument prototype would still apply.  */
9896#ifdef __cplusplus
9897extern "C"
9898#endif
9899char shl_load ();
9900/* The GNU C library defines this for functions which it implements
9901    to always fail with ENOSYS.  Some functions are actually named
9902    something starting with __ and the normal name is an alias.  */
9903#if defined __stub_shl_load || defined __stub___shl_load
9904choke me
9905#endif
9906
9907int
9908main ()
9909{
9910return shl_load ();
9911  ;
9912  return 0;
9913}
9914_ACEOF
9915rm -f conftest.$ac_objext conftest$ac_exeext
9916if { (ac_try="$ac_link"
9917case "(($ac_try" in
9918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919  *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922  (eval "$ac_link") 2>conftest.er1
9923  ac_status=$?
9924  grep -v '^ *+' conftest.er1 >conftest.err
9925  rm -f conftest.er1
9926  cat conftest.err >&5
9927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928  (exit $ac_status); } && {
9929	 test -z "$ac_c_werror_flag" ||
9930	 test ! -s conftest.err
9931       } && test -s conftest$ac_exeext &&
9932       $as_test_x conftest$ac_exeext; then
9933  ac_cv_func_shl_load=yes
9934else
9935  echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
9937
9938	ac_cv_func_shl_load=no
9939fi
9940
9941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942      conftest$ac_exeext conftest.$ac_ext
9943fi
9944{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9945echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9946if test $ac_cv_func_shl_load = yes; then
9947  lt_cv_dlopen="shl_load"
9948else
9949  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9950echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9951if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9952  echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954  ac_check_lib_save_LIBS=$LIBS
9955LIBS="-ldld  $LIBS"
9956cat >conftest.$ac_ext <<_ACEOF
9957/* confdefs.h.  */
9958_ACEOF
9959cat confdefs.h >>conftest.$ac_ext
9960cat >>conftest.$ac_ext <<_ACEOF
9961/* end confdefs.h.  */
9962
9963/* Override any GCC internal prototype to avoid an error.
9964   Use char because int might match the return type of a GCC
9965   builtin and then its argument prototype would still apply.  */
9966#ifdef __cplusplus
9967extern "C"
9968#endif
9969char shl_load ();
9970int
9971main ()
9972{
9973return shl_load ();
9974  ;
9975  return 0;
9976}
9977_ACEOF
9978rm -f conftest.$ac_objext conftest$ac_exeext
9979if { (ac_try="$ac_link"
9980case "(($ac_try" in
9981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982  *) ac_try_echo=$ac_try;;
9983esac
9984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985  (eval "$ac_link") 2>conftest.er1
9986  ac_status=$?
9987  grep -v '^ *+' conftest.er1 >conftest.err
9988  rm -f conftest.er1
9989  cat conftest.err >&5
9990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991  (exit $ac_status); } && {
9992	 test -z "$ac_c_werror_flag" ||
9993	 test ! -s conftest.err
9994       } && test -s conftest$ac_exeext &&
9995       $as_test_x conftest$ac_exeext; then
9996  ac_cv_lib_dld_shl_load=yes
9997else
9998  echo "$as_me: failed program was:" >&5
9999sed 's/^/| /' conftest.$ac_ext >&5
10000
10001	ac_cv_lib_dld_shl_load=no
10002fi
10003
10004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10005      conftest$ac_exeext conftest.$ac_ext
10006LIBS=$ac_check_lib_save_LIBS
10007fi
10008{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10009echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10010if test $ac_cv_lib_dld_shl_load = yes; then
10011  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10012else
10013  { echo "$as_me:$LINENO: checking for dlopen" >&5
10014echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10015if test "${ac_cv_func_dlopen+set}" = set; then
10016  echo $ECHO_N "(cached) $ECHO_C" >&6
10017else
10018  cat >conftest.$ac_ext <<_ACEOF
10019/* confdefs.h.  */
10020_ACEOF
10021cat confdefs.h >>conftest.$ac_ext
10022cat >>conftest.$ac_ext <<_ACEOF
10023/* end confdefs.h.  */
10024/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10025   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10026#define dlopen innocuous_dlopen
10027
10028/* System header to define __stub macros and hopefully few prototypes,
10029    which can conflict with char dlopen (); below.
10030    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031    <limits.h> exists even on freestanding compilers.  */
10032
10033#ifdef __STDC__
10034# include <limits.h>
10035#else
10036# include <assert.h>
10037#endif
10038
10039#undef dlopen
10040
10041/* Override any GCC internal prototype to avoid an error.
10042   Use char because int might match the return type of a GCC
10043   builtin and then its argument prototype would still apply.  */
10044#ifdef __cplusplus
10045extern "C"
10046#endif
10047char dlopen ();
10048/* The GNU C library defines this for functions which it implements
10049    to always fail with ENOSYS.  Some functions are actually named
10050    something starting with __ and the normal name is an alias.  */
10051#if defined __stub_dlopen || defined __stub___dlopen
10052choke me
10053#endif
10054
10055int
10056main ()
10057{
10058return dlopen ();
10059  ;
10060  return 0;
10061}
10062_ACEOF
10063rm -f conftest.$ac_objext conftest$ac_exeext
10064if { (ac_try="$ac_link"
10065case "(($ac_try" in
10066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067  *) ac_try_echo=$ac_try;;
10068esac
10069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070  (eval "$ac_link") 2>conftest.er1
10071  ac_status=$?
10072  grep -v '^ *+' conftest.er1 >conftest.err
10073  rm -f conftest.er1
10074  cat conftest.err >&5
10075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076  (exit $ac_status); } && {
10077	 test -z "$ac_c_werror_flag" ||
10078	 test ! -s conftest.err
10079       } && test -s conftest$ac_exeext &&
10080       $as_test_x conftest$ac_exeext; then
10081  ac_cv_func_dlopen=yes
10082else
10083  echo "$as_me: failed program was:" >&5
10084sed 's/^/| /' conftest.$ac_ext >&5
10085
10086	ac_cv_func_dlopen=no
10087fi
10088
10089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10090      conftest$ac_exeext conftest.$ac_ext
10091fi
10092{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10093echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10094if test $ac_cv_func_dlopen = yes; then
10095  lt_cv_dlopen="dlopen"
10096else
10097  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10098echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10099if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10100  echo $ECHO_N "(cached) $ECHO_C" >&6
10101else
10102  ac_check_lib_save_LIBS=$LIBS
10103LIBS="-ldl  $LIBS"
10104cat >conftest.$ac_ext <<_ACEOF
10105/* confdefs.h.  */
10106_ACEOF
10107cat confdefs.h >>conftest.$ac_ext
10108cat >>conftest.$ac_ext <<_ACEOF
10109/* end confdefs.h.  */
10110
10111/* Override any GCC internal prototype to avoid an error.
10112   Use char because int might match the return type of a GCC
10113   builtin and then its argument prototype would still apply.  */
10114#ifdef __cplusplus
10115extern "C"
10116#endif
10117char dlopen ();
10118int
10119main ()
10120{
10121return dlopen ();
10122  ;
10123  return 0;
10124}
10125_ACEOF
10126rm -f conftest.$ac_objext conftest$ac_exeext
10127if { (ac_try="$ac_link"
10128case "(($ac_try" in
10129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130  *) ac_try_echo=$ac_try;;
10131esac
10132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133  (eval "$ac_link") 2>conftest.er1
10134  ac_status=$?
10135  grep -v '^ *+' conftest.er1 >conftest.err
10136  rm -f conftest.er1
10137  cat conftest.err >&5
10138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139  (exit $ac_status); } && {
10140	 test -z "$ac_c_werror_flag" ||
10141	 test ! -s conftest.err
10142       } && test -s conftest$ac_exeext &&
10143       $as_test_x conftest$ac_exeext; then
10144  ac_cv_lib_dl_dlopen=yes
10145else
10146  echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
10149	ac_cv_lib_dl_dlopen=no
10150fi
10151
10152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10153      conftest$ac_exeext conftest.$ac_ext
10154LIBS=$ac_check_lib_save_LIBS
10155fi
10156{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10157echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10158if test $ac_cv_lib_dl_dlopen = yes; then
10159  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10160else
10161  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10162echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10163if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10164  echo $ECHO_N "(cached) $ECHO_C" >&6
10165else
10166  ac_check_lib_save_LIBS=$LIBS
10167LIBS="-lsvld  $LIBS"
10168cat >conftest.$ac_ext <<_ACEOF
10169/* confdefs.h.  */
10170_ACEOF
10171cat confdefs.h >>conftest.$ac_ext
10172cat >>conftest.$ac_ext <<_ACEOF
10173/* end confdefs.h.  */
10174
10175/* Override any GCC internal prototype to avoid an error.
10176   Use char because int might match the return type of a GCC
10177   builtin and then its argument prototype would still apply.  */
10178#ifdef __cplusplus
10179extern "C"
10180#endif
10181char dlopen ();
10182int
10183main ()
10184{
10185return dlopen ();
10186  ;
10187  return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext conftest$ac_exeext
10191if { (ac_try="$ac_link"
10192case "(($ac_try" in
10193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194  *) ac_try_echo=$ac_try;;
10195esac
10196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197  (eval "$ac_link") 2>conftest.er1
10198  ac_status=$?
10199  grep -v '^ *+' conftest.er1 >conftest.err
10200  rm -f conftest.er1
10201  cat conftest.err >&5
10202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203  (exit $ac_status); } && {
10204	 test -z "$ac_c_werror_flag" ||
10205	 test ! -s conftest.err
10206       } && test -s conftest$ac_exeext &&
10207       $as_test_x conftest$ac_exeext; then
10208  ac_cv_lib_svld_dlopen=yes
10209else
10210  echo "$as_me: failed program was:" >&5
10211sed 's/^/| /' conftest.$ac_ext >&5
10212
10213	ac_cv_lib_svld_dlopen=no
10214fi
10215
10216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10217      conftest$ac_exeext conftest.$ac_ext
10218LIBS=$ac_check_lib_save_LIBS
10219fi
10220{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10221echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10222if test $ac_cv_lib_svld_dlopen = yes; then
10223  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10224else
10225  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10226echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10227if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10228  echo $ECHO_N "(cached) $ECHO_C" >&6
10229else
10230  ac_check_lib_save_LIBS=$LIBS
10231LIBS="-ldld  $LIBS"
10232cat >conftest.$ac_ext <<_ACEOF
10233/* confdefs.h.  */
10234_ACEOF
10235cat confdefs.h >>conftest.$ac_ext
10236cat >>conftest.$ac_ext <<_ACEOF
10237/* end confdefs.h.  */
10238
10239/* Override any GCC internal prototype to avoid an error.
10240   Use char because int might match the return type of a GCC
10241   builtin and then its argument prototype would still apply.  */
10242#ifdef __cplusplus
10243extern "C"
10244#endif
10245char dld_link ();
10246int
10247main ()
10248{
10249return dld_link ();
10250  ;
10251  return 0;
10252}
10253_ACEOF
10254rm -f conftest.$ac_objext conftest$ac_exeext
10255if { (ac_try="$ac_link"
10256case "(($ac_try" in
10257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258  *) ac_try_echo=$ac_try;;
10259esac
10260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261  (eval "$ac_link") 2>conftest.er1
10262  ac_status=$?
10263  grep -v '^ *+' conftest.er1 >conftest.err
10264  rm -f conftest.er1
10265  cat conftest.err >&5
10266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267  (exit $ac_status); } && {
10268	 test -z "$ac_c_werror_flag" ||
10269	 test ! -s conftest.err
10270       } && test -s conftest$ac_exeext &&
10271       $as_test_x conftest$ac_exeext; then
10272  ac_cv_lib_dld_dld_link=yes
10273else
10274  echo "$as_me: failed program was:" >&5
10275sed 's/^/| /' conftest.$ac_ext >&5
10276
10277	ac_cv_lib_dld_dld_link=no
10278fi
10279
10280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10281      conftest$ac_exeext conftest.$ac_ext
10282LIBS=$ac_check_lib_save_LIBS
10283fi
10284{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10285echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10286if test $ac_cv_lib_dld_dld_link = yes; then
10287  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10288fi
10289
10290
10291fi
10292
10293
10294fi
10295
10296
10297fi
10298
10299
10300fi
10301
10302
10303fi
10304
10305    ;;
10306  esac
10307
10308  if test "x$lt_cv_dlopen" != xno; then
10309    enable_dlopen=yes
10310  else
10311    enable_dlopen=no
10312  fi
10313
10314  case $lt_cv_dlopen in
10315  dlopen)
10316    save_CPPFLAGS="$CPPFLAGS"
10317    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10318
10319    save_LDFLAGS="$LDFLAGS"
10320    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10321
10322    save_LIBS="$LIBS"
10323    LIBS="$lt_cv_dlopen_libs $LIBS"
10324
10325    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10326echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10327if test "${lt_cv_dlopen_self+set}" = set; then
10328  echo $ECHO_N "(cached) $ECHO_C" >&6
10329else
10330  	  if test "$cross_compiling" = yes; then :
10331  lt_cv_dlopen_self=cross
10332else
10333  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10334  lt_status=$lt_dlunknown
10335  cat > conftest.$ac_ext <<EOF
10336#line 10336 "configure"
10337#include "confdefs.h"
10338
10339#if HAVE_DLFCN_H
10340#include <dlfcn.h>
10341#endif
10342
10343#include <stdio.h>
10344
10345#ifdef RTLD_GLOBAL
10346#  define LT_DLGLOBAL		RTLD_GLOBAL
10347#else
10348#  ifdef DL_GLOBAL
10349#    define LT_DLGLOBAL		DL_GLOBAL
10350#  else
10351#    define LT_DLGLOBAL		0
10352#  endif
10353#endif
10354
10355/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10356   find out it does not work in some platform. */
10357#ifndef LT_DLLAZY_OR_NOW
10358#  ifdef RTLD_LAZY
10359#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10360#  else
10361#    ifdef DL_LAZY
10362#      define LT_DLLAZY_OR_NOW		DL_LAZY
10363#    else
10364#      ifdef RTLD_NOW
10365#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10366#      else
10367#        ifdef DL_NOW
10368#          define LT_DLLAZY_OR_NOW	DL_NOW
10369#        else
10370#          define LT_DLLAZY_OR_NOW	0
10371#        endif
10372#      endif
10373#    endif
10374#  endif
10375#endif
10376
10377#ifdef __cplusplus
10378extern "C" void exit (int);
10379#endif
10380
10381void fnord() { int i=42;}
10382int main ()
10383{
10384  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10385  int status = $lt_dlunknown;
10386
10387  if (self)
10388    {
10389      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10390      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10391      /* dlclose (self); */
10392    }
10393  else
10394    puts (dlerror ());
10395
10396    exit (status);
10397}
10398EOF
10399  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400  (eval $ac_link) 2>&5
10401  ac_status=$?
10402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10404    (./conftest; exit; ) >&5 2>/dev/null
10405    lt_status=$?
10406    case x$lt_status in
10407      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10408      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10409      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10410    esac
10411  else :
10412    # compilation failed
10413    lt_cv_dlopen_self=no
10414  fi
10415fi
10416rm -fr conftest*
10417
10418
10419fi
10420{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10421echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10422
10423    if test "x$lt_cv_dlopen_self" = xyes; then
10424      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10425      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10426echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10427if test "${lt_cv_dlopen_self_static+set}" = set; then
10428  echo $ECHO_N "(cached) $ECHO_C" >&6
10429else
10430  	  if test "$cross_compiling" = yes; then :
10431  lt_cv_dlopen_self_static=cross
10432else
10433  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10434  lt_status=$lt_dlunknown
10435  cat > conftest.$ac_ext <<EOF
10436#line 10436 "configure"
10437#include "confdefs.h"
10438
10439#if HAVE_DLFCN_H
10440#include <dlfcn.h>
10441#endif
10442
10443#include <stdio.h>
10444
10445#ifdef RTLD_GLOBAL
10446#  define LT_DLGLOBAL		RTLD_GLOBAL
10447#else
10448#  ifdef DL_GLOBAL
10449#    define LT_DLGLOBAL		DL_GLOBAL
10450#  else
10451#    define LT_DLGLOBAL		0
10452#  endif
10453#endif
10454
10455/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10456   find out it does not work in some platform. */
10457#ifndef LT_DLLAZY_OR_NOW
10458#  ifdef RTLD_LAZY
10459#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10460#  else
10461#    ifdef DL_LAZY
10462#      define LT_DLLAZY_OR_NOW		DL_LAZY
10463#    else
10464#      ifdef RTLD_NOW
10465#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10466#      else
10467#        ifdef DL_NOW
10468#          define LT_DLLAZY_OR_NOW	DL_NOW
10469#        else
10470#          define LT_DLLAZY_OR_NOW	0
10471#        endif
10472#      endif
10473#    endif
10474#  endif
10475#endif
10476
10477#ifdef __cplusplus
10478extern "C" void exit (int);
10479#endif
10480
10481void fnord() { int i=42;}
10482int main ()
10483{
10484  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10485  int status = $lt_dlunknown;
10486
10487  if (self)
10488    {
10489      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10490      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10491      /* dlclose (self); */
10492    }
10493  else
10494    puts (dlerror ());
10495
10496    exit (status);
10497}
10498EOF
10499  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500  (eval $ac_link) 2>&5
10501  ac_status=$?
10502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10504    (./conftest; exit; ) >&5 2>/dev/null
10505    lt_status=$?
10506    case x$lt_status in
10507      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10508      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10509      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10510    esac
10511  else :
10512    # compilation failed
10513    lt_cv_dlopen_self_static=no
10514  fi
10515fi
10516rm -fr conftest*
10517
10518
10519fi
10520{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10521echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10522    fi
10523
10524    CPPFLAGS="$save_CPPFLAGS"
10525    LDFLAGS="$save_LDFLAGS"
10526    LIBS="$save_LIBS"
10527    ;;
10528  esac
10529
10530  case $lt_cv_dlopen_self in
10531  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10532  *) enable_dlopen_self=unknown ;;
10533  esac
10534
10535  case $lt_cv_dlopen_self_static in
10536  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10537  *) enable_dlopen_self_static=unknown ;;
10538  esac
10539fi
10540
10541
10542# Report which library types will actually be built
10543{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10544echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10545{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10546echo "${ECHO_T}$can_build_shared" >&6; }
10547
10548{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10549echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10550test "$can_build_shared" = "no" && enable_shared=no
10551
10552# On AIX, shared libraries and static libraries use the same namespace, and
10553# are all built from PIC.
10554case $host_os in
10555aix3*)
10556  test "$enable_shared" = yes && enable_static=no
10557  if test -n "$RANLIB"; then
10558    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10559    postinstall_cmds='$RANLIB $lib'
10560  fi
10561  ;;
10562
10563aix[4-9]*)
10564  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10565    test "$enable_shared" = yes && enable_static=no
10566  fi
10567    ;;
10568esac
10569{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10570echo "${ECHO_T}$enable_shared" >&6; }
10571
10572{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10573echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10574# Make sure either enable_shared or enable_static is yes.
10575test "$enable_shared" = yes || enable_static=yes
10576{ echo "$as_me:$LINENO: result: $enable_static" >&5
10577echo "${ECHO_T}$enable_static" >&6; }
10578
10579# The else clause should only fire when bootstrapping the
10580# libtool distribution, otherwise you forgot to ship ltmain.sh
10581# with your package, and you will get complaints that there are
10582# no rules to generate ltmain.sh.
10583if test -f "$ltmain"; then
10584  # See if we are running on zsh, and set the options which allow our commands through
10585  # without removal of \ escapes.
10586  if test -n "${ZSH_VERSION+set}" ; then
10587    setopt NO_GLOB_SUBST
10588  fi
10589  # Now quote all the things that may contain metacharacters while being
10590  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10591  # variables and quote the copies for generation of the libtool script.
10592  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10593    SED SHELL STRIP \
10594    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10595    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10596    deplibs_check_method reload_flag reload_cmds need_locks \
10597    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10598    lt_cv_sys_global_symbol_to_c_name_address \
10599    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10600    old_postinstall_cmds old_postuninstall_cmds \
10601    compiler \
10602    CC \
10603    LD \
10604    lt_prog_compiler_wl \
10605    lt_prog_compiler_pic \
10606    lt_prog_compiler_static \
10607    lt_prog_compiler_no_builtin_flag \
10608    export_dynamic_flag_spec \
10609    thread_safe_flag_spec \
10610    whole_archive_flag_spec \
10611    enable_shared_with_static_runtimes \
10612    old_archive_cmds \
10613    old_archive_from_new_cmds \
10614    predep_objects \
10615    postdep_objects \
10616    predeps \
10617    postdeps \
10618    compiler_lib_search_path \
10619    compiler_lib_search_dirs \
10620    archive_cmds \
10621    archive_expsym_cmds \
10622    postinstall_cmds \
10623    postuninstall_cmds \
10624    old_archive_from_expsyms_cmds \
10625    allow_undefined_flag \
10626    no_undefined_flag \
10627    export_symbols_cmds \
10628    hardcode_libdir_flag_spec \
10629    hardcode_libdir_flag_spec_ld \
10630    hardcode_libdir_separator \
10631    hardcode_automatic \
10632    module_cmds \
10633    module_expsym_cmds \
10634    lt_cv_prog_compiler_c_o \
10635    fix_srcfile_path \
10636    exclude_expsyms \
10637    include_expsyms; do
10638
10639    case $var in
10640    old_archive_cmds | \
10641    old_archive_from_new_cmds | \
10642    archive_cmds | \
10643    archive_expsym_cmds | \
10644    module_cmds | \
10645    module_expsym_cmds | \
10646    old_archive_from_expsyms_cmds | \
10647    export_symbols_cmds | \
10648    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10649    postinstall_cmds | postuninstall_cmds | \
10650    old_postinstall_cmds | old_postuninstall_cmds | \
10651    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10652      # Double-quote double-evaled strings.
10653      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10654      ;;
10655    *)
10656      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10657      ;;
10658    esac
10659  done
10660
10661  case $lt_echo in
10662  *'\$0 --fallback-echo"')
10663    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10664    ;;
10665  esac
10666
10667cfgfile="${ofile}T"
10668  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10669  $rm -f "$cfgfile"
10670  { echo "$as_me:$LINENO: creating $ofile" >&5
10671echo "$as_me: creating $ofile" >&6;}
10672
10673  cat <<__EOF__ >> "$cfgfile"
10674#! $SHELL
10675
10676# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10677# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10678# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10679#
10680# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10681# Free Software Foundation, Inc.
10682#
10683# This file is part of GNU Libtool:
10684# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10685#
10686# This program is free software; you can redistribute it and/or modify
10687# it under the terms of the GNU General Public License as published by
10688# the Free Software Foundation; either version 2 of the License, or
10689# (at your option) any later version.
10690#
10691# This program is distributed in the hope that it will be useful, but
10692# WITHOUT ANY WARRANTY; without even the implied warranty of
10693# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10694# General Public License for more details.
10695#
10696# You should have received a copy of the GNU General Public License
10697# along with this program; if not, write to the Free Software
10698# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10699#
10700# As a special exception to the GNU General Public License, if you
10701# distribute this file as part of a program that contains a
10702# configuration script generated by Autoconf, you may include it under
10703# the same distribution terms that you use for the rest of that program.
10704
10705# A sed program that does not truncate output.
10706SED=$lt_SED
10707
10708# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10709Xsed="$SED -e 1s/^X//"
10710
10711# The HP-UX ksh and POSIX shell print the target directory to stdout
10712# if CDPATH is set.
10713(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10714
10715# The names of the tagged configurations supported by this script.
10716available_tags=
10717
10718# ### BEGIN LIBTOOL CONFIG
10719
10720# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10721
10722# Shell to use when invoking shell scripts.
10723SHELL=$lt_SHELL
10724
10725# Whether or not to build shared libraries.
10726build_libtool_libs=$enable_shared
10727
10728# Whether or not to build static libraries.
10729build_old_libs=$enable_static
10730
10731# Whether or not to add -lc for building shared libraries.
10732build_libtool_need_lc=$archive_cmds_need_lc
10733
10734# Whether or not to disallow shared libs when runtime libs are static
10735allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10736
10737# Whether or not to optimize for fast installation.
10738fast_install=$enable_fast_install
10739
10740# The host system.
10741host_alias=$host_alias
10742host=$host
10743host_os=$host_os
10744
10745# The build system.
10746build_alias=$build_alias
10747build=$build
10748build_os=$build_os
10749
10750# An echo program that does not interpret backslashes.
10751echo=$lt_echo
10752
10753# The archiver.
10754AR=$lt_AR
10755AR_FLAGS=$lt_AR_FLAGS
10756
10757# A C compiler.
10758LTCC=$lt_LTCC
10759
10760# LTCC compiler flags.
10761LTCFLAGS=$lt_LTCFLAGS
10762
10763# A language-specific compiler.
10764CC=$lt_compiler
10765
10766# Is the compiler the GNU C compiler?
10767with_gcc=$GCC
10768
10769# An ERE matcher.
10770EGREP=$lt_EGREP
10771
10772# The linker used to build libraries.
10773LD=$lt_LD
10774
10775# Whether we need hard or soft links.
10776LN_S=$lt_LN_S
10777
10778# A BSD-compatible nm program.
10779NM=$lt_NM
10780
10781# A symbol stripping program
10782STRIP=$lt_STRIP
10783
10784# Used to examine libraries when file_magic_cmd begins "file"
10785MAGIC_CMD=$MAGIC_CMD
10786
10787# Used on cygwin: DLL creation program.
10788DLLTOOL="$DLLTOOL"
10789
10790# Used on cygwin: object dumper.
10791OBJDUMP="$OBJDUMP"
10792
10793# Used on cygwin: assembler.
10794AS="$AS"
10795
10796# The name of the directory that contains temporary libtool files.
10797objdir=$objdir
10798
10799# How to create reloadable object files.
10800reload_flag=$lt_reload_flag
10801reload_cmds=$lt_reload_cmds
10802
10803# How to pass a linker flag through the compiler.
10804wl=$lt_lt_prog_compiler_wl
10805
10806# Object file suffix (normally "o").
10807objext="$ac_objext"
10808
10809# Old archive suffix (normally "a").
10810libext="$libext"
10811
10812# Shared library suffix (normally ".so").
10813shrext_cmds='$shrext_cmds'
10814
10815# Executable file suffix (normally "").
10816exeext="$exeext"
10817
10818# Additional compiler flags for building library objects.
10819pic_flag=$lt_lt_prog_compiler_pic
10820pic_mode=$pic_mode
10821
10822# What is the maximum length of a command?
10823max_cmd_len=$lt_cv_sys_max_cmd_len
10824
10825# Does compiler simultaneously support -c and -o options?
10826compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10827
10828# Must we lock files when doing compilation?
10829need_locks=$lt_need_locks
10830
10831# Do we need the lib prefix for modules?
10832need_lib_prefix=$need_lib_prefix
10833
10834# Do we need a version for libraries?
10835need_version=$need_version
10836
10837# Whether dlopen is supported.
10838dlopen_support=$enable_dlopen
10839
10840# Whether dlopen of programs is supported.
10841dlopen_self=$enable_dlopen_self
10842
10843# Whether dlopen of statically linked programs is supported.
10844dlopen_self_static=$enable_dlopen_self_static
10845
10846# Compiler flag to prevent dynamic linking.
10847link_static_flag=$lt_lt_prog_compiler_static
10848
10849# Compiler flag to turn off builtin functions.
10850no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10851
10852# Compiler flag to allow reflexive dlopens.
10853export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10854
10855# Compiler flag to generate shared objects directly from archives.
10856whole_archive_flag_spec=$lt_whole_archive_flag_spec
10857
10858# Compiler flag to generate thread-safe objects.
10859thread_safe_flag_spec=$lt_thread_safe_flag_spec
10860
10861# Library versioning type.
10862version_type=$version_type
10863
10864# Format of library name prefix.
10865libname_spec=$lt_libname_spec
10866
10867# List of archive names.  First name is the real one, the rest are links.
10868# The last name is the one that the linker finds with -lNAME.
10869library_names_spec=$lt_library_names_spec
10870
10871# The coded name of the library, if different from the real name.
10872soname_spec=$lt_soname_spec
10873
10874# Commands used to build and install an old-style archive.
10875RANLIB=$lt_RANLIB
10876old_archive_cmds=$lt_old_archive_cmds
10877old_postinstall_cmds=$lt_old_postinstall_cmds
10878old_postuninstall_cmds=$lt_old_postuninstall_cmds
10879
10880# Create an old-style archive from a shared archive.
10881old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10882
10883# Create a temporary old-style archive to link instead of a shared archive.
10884old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10885
10886# Commands used to build and install a shared archive.
10887archive_cmds=$lt_archive_cmds
10888archive_expsym_cmds=$lt_archive_expsym_cmds
10889postinstall_cmds=$lt_postinstall_cmds
10890postuninstall_cmds=$lt_postuninstall_cmds
10891
10892# Commands used to build a loadable module (assumed same as above if empty)
10893module_cmds=$lt_module_cmds
10894module_expsym_cmds=$lt_module_expsym_cmds
10895
10896# Commands to strip libraries.
10897old_striplib=$lt_old_striplib
10898striplib=$lt_striplib
10899
10900# Dependencies to place before the objects being linked to create a
10901# shared library.
10902predep_objects=$lt_predep_objects
10903
10904# Dependencies to place after the objects being linked to create a
10905# shared library.
10906postdep_objects=$lt_postdep_objects
10907
10908# Dependencies to place before the objects being linked to create a
10909# shared library.
10910predeps=$lt_predeps
10911
10912# Dependencies to place after the objects being linked to create a
10913# shared library.
10914postdeps=$lt_postdeps
10915
10916# The directories searched by this compiler when creating a shared
10917# library
10918compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10919
10920# The library search path used internally by the compiler when linking
10921# a shared library.
10922compiler_lib_search_path=$lt_compiler_lib_search_path
10923
10924# Method to check whether dependent libraries are shared objects.
10925deplibs_check_method=$lt_deplibs_check_method
10926
10927# Command to use when deplibs_check_method == file_magic.
10928file_magic_cmd=$lt_file_magic_cmd
10929
10930# Flag that allows shared libraries with undefined symbols to be built.
10931allow_undefined_flag=$lt_allow_undefined_flag
10932
10933# Flag that forces no undefined symbols.
10934no_undefined_flag=$lt_no_undefined_flag
10935
10936# Commands used to finish a libtool library installation in a directory.
10937finish_cmds=$lt_finish_cmds
10938
10939# Same as above, but a single script fragment to be evaled but not shown.
10940finish_eval=$lt_finish_eval
10941
10942# Take the output of nm and produce a listing of raw symbols and C names.
10943global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10944
10945# Transform the output of nm in a proper C declaration
10946global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10947
10948# Transform the output of nm in a C name address pair
10949global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10950
10951# This is the shared library runtime path variable.
10952runpath_var=$runpath_var
10953
10954# This is the shared library path variable.
10955shlibpath_var=$shlibpath_var
10956
10957# Is shlibpath searched before the hard-coded library search path?
10958shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10959
10960# How to hardcode a shared library path into an executable.
10961hardcode_action=$hardcode_action
10962
10963# Whether we should hardcode library paths into libraries.
10964hardcode_into_libs=$hardcode_into_libs
10965
10966# Flag to hardcode \$libdir into a binary during linking.
10967# This must work even if \$libdir does not exist.
10968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10969
10970# If ld is used when linking, flag to hardcode \$libdir into
10971# a binary during linking. This must work even if \$libdir does
10972# not exist.
10973hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10974
10975# Whether we need a single -rpath flag with a separated argument.
10976hardcode_libdir_separator=$lt_hardcode_libdir_separator
10977
10978# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10979# resulting binary.
10980hardcode_direct=$hardcode_direct
10981
10982# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10983# resulting binary.
10984hardcode_minus_L=$hardcode_minus_L
10985
10986# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10987# the resulting binary.
10988hardcode_shlibpath_var=$hardcode_shlibpath_var
10989
10990# Set to yes if building a shared library automatically hardcodes DIR into the library
10991# and all subsequent libraries and executables linked against it.
10992hardcode_automatic=$hardcode_automatic
10993
10994# Variables whose values should be saved in libtool wrapper scripts and
10995# restored at relink time.
10996variables_saved_for_relink="$variables_saved_for_relink"
10997
10998# Whether libtool must link a program against all its dependency libraries.
10999link_all_deplibs=$link_all_deplibs
11000
11001# Compile-time system search path for libraries
11002sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11003
11004# Run-time system search path for libraries
11005sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11006
11007# Fix the shell variable \$srcfile for the compiler.
11008fix_srcfile_path=$lt_fix_srcfile_path
11009
11010# Set to yes if exported symbols are required.
11011always_export_symbols=$always_export_symbols
11012
11013# The commands to list exported symbols.
11014export_symbols_cmds=$lt_export_symbols_cmds
11015
11016# The commands to extract the exported symbol list from a shared archive.
11017extract_expsyms_cmds=$lt_extract_expsyms_cmds
11018
11019# Symbols that should not be listed in the preloaded symbols.
11020exclude_expsyms=$lt_exclude_expsyms
11021
11022# Symbols that must always be exported.
11023include_expsyms=$lt_include_expsyms
11024
11025# ### END LIBTOOL CONFIG
11026
11027__EOF__
11028
11029
11030  case $host_os in
11031  aix3*)
11032    cat <<\EOF >> "$cfgfile"
11033
11034# AIX sometimes has problems with the GCC collect2 program.  For some
11035# reason, if we set the COLLECT_NAMES environment variable, the problems
11036# vanish in a puff of smoke.
11037if test "X${COLLECT_NAMES+set}" != Xset; then
11038  COLLECT_NAMES=
11039  export COLLECT_NAMES
11040fi
11041EOF
11042    ;;
11043  esac
11044
11045  # We use sed instead of cat because bash on DJGPP gets confused if
11046  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11047  # text mode, it properly converts lines to CR/LF.  This bash problem
11048  # is reportedly fixed, but why not run on old versions too?
11049  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11050
11051  mv -f "$cfgfile" "$ofile" || \
11052    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11053  chmod +x "$ofile"
11054
11055else
11056  # If there is no Makefile yet, we rely on a make rule to execute
11057  # `config.status --recheck' to rerun these tests and create the
11058  # libtool script then.
11059  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11060  if test -f "$ltmain_in"; then
11061    test -f Makefile && make "$ltmain"
11062  fi
11063fi
11064
11065
11066ac_ext=c
11067ac_cpp='$CPP $CPPFLAGS'
11068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11070ac_compiler_gnu=$ac_cv_c_compiler_gnu
11071
11072CC="$lt_save_CC"
11073
11074
11075# Check whether --with-tags was given.
11076if test "${with_tags+set}" = set; then
11077  withval=$with_tags; tagnames="$withval"
11078fi
11079
11080
11081if test -f "$ltmain" && test -n "$tagnames"; then
11082  if test ! -f "${ofile}"; then
11083    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11084echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11085  fi
11086
11087  if test -z "$LTCC"; then
11088    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11089    if test -z "$LTCC"; then
11090      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11091echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11092    else
11093      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11094echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11095    fi
11096  fi
11097  if test -z "$LTCFLAGS"; then
11098    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11099  fi
11100
11101  # Extract list of available tagged configurations in $ofile.
11102  # Note that this assumes the entire list is on one line.
11103  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11104
11105  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11106  for tagname in $tagnames; do
11107    IFS="$lt_save_ifs"
11108    # Check whether tagname contains only valid characters
11109    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11110    "") ;;
11111    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11112echo "$as_me: error: invalid tag name: $tagname" >&2;}
11113   { (exit 1); exit 1; }; }
11114	;;
11115    esac
11116
11117    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11118    then
11119      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11120echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11121   { (exit 1); exit 1; }; }
11122    fi
11123
11124    # Update the list of available tags.
11125    if test -n "$tagname"; then
11126      echo appending configuration tag \"$tagname\" to $ofile
11127
11128      case $tagname in
11129      CXX)
11130	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11131	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11132	    (test "X$CXX" != "Xg++"))) ; then
11133	  ac_ext=cpp
11134ac_cpp='$CXXCPP $CPPFLAGS'
11135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11138
11139
11140
11141
11142archive_cmds_need_lc_CXX=no
11143allow_undefined_flag_CXX=
11144always_export_symbols_CXX=no
11145archive_expsym_cmds_CXX=
11146export_dynamic_flag_spec_CXX=
11147hardcode_direct_CXX=no
11148hardcode_libdir_flag_spec_CXX=
11149hardcode_libdir_flag_spec_ld_CXX=
11150hardcode_libdir_separator_CXX=
11151hardcode_minus_L_CXX=no
11152hardcode_shlibpath_var_CXX=unsupported
11153hardcode_automatic_CXX=no
11154module_cmds_CXX=
11155module_expsym_cmds_CXX=
11156link_all_deplibs_CXX=unknown
11157old_archive_cmds_CXX=$old_archive_cmds
11158no_undefined_flag_CXX=
11159whole_archive_flag_spec_CXX=
11160enable_shared_with_static_runtimes_CXX=no
11161
11162# Dependencies to place before and after the object being linked:
11163predep_objects_CXX=
11164postdep_objects_CXX=
11165predeps_CXX=
11166postdeps_CXX=
11167compiler_lib_search_path_CXX=
11168compiler_lib_search_dirs_CXX=
11169
11170# Source file extension for C++ test sources.
11171ac_ext=cpp
11172
11173# Object file extension for compiled C++ test sources.
11174objext=o
11175objext_CXX=$objext
11176
11177# Code to be used in simple compile tests
11178lt_simple_compile_test_code="int some_variable = 0;"
11179
11180# Code to be used in simple link tests
11181lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11182
11183# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11184
11185# If no C compiler was specified, use CC.
11186LTCC=${LTCC-"$CC"}
11187
11188# If no C compiler flags were specified, use CFLAGS.
11189LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11190
11191# Allow CC to be a program name with arguments.
11192compiler=$CC
11193
11194
11195# save warnings/boilerplate of simple test code
11196ac_outfile=conftest.$ac_objext
11197echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11198eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11199_lt_compiler_boilerplate=`cat conftest.err`
11200$rm conftest*
11201
11202ac_outfile=conftest.$ac_objext
11203echo "$lt_simple_link_test_code" >conftest.$ac_ext
11204eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11205_lt_linker_boilerplate=`cat conftest.err`
11206$rm -r conftest*
11207
11208
11209# Allow CC to be a program name with arguments.
11210lt_save_CC=$CC
11211lt_save_LD=$LD
11212lt_save_GCC=$GCC
11213GCC=$GXX
11214lt_save_with_gnu_ld=$with_gnu_ld
11215lt_save_path_LD=$lt_cv_path_LD
11216if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11217  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11218else
11219  $as_unset lt_cv_prog_gnu_ld
11220fi
11221if test -n "${lt_cv_path_LDCXX+set}"; then
11222  lt_cv_path_LD=$lt_cv_path_LDCXX
11223else
11224  $as_unset lt_cv_path_LD
11225fi
11226test -z "${LDCXX+set}" || LD=$LDCXX
11227CC=${CXX-"c++"}
11228compiler=$CC
11229compiler_CXX=$CC
11230for cc_temp in $compiler""; do
11231  case $cc_temp in
11232    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11233    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11234    \-*) ;;
11235    *) break;;
11236  esac
11237done
11238cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11239
11240
11241# We don't want -fno-exception wen compiling C++ code, so set the
11242# no_builtin_flag separately
11243if test "$GXX" = yes; then
11244  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11245else
11246  lt_prog_compiler_no_builtin_flag_CXX=
11247fi
11248
11249if test "$GXX" = yes; then
11250  # Set up default GNU C++ configuration
11251
11252
11253# Check whether --with-gnu-ld was given.
11254if test "${with_gnu_ld+set}" = set; then
11255  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11256else
11257  with_gnu_ld=no
11258fi
11259
11260ac_prog=ld
11261if test "$GCC" = yes; then
11262  # Check if gcc -print-prog-name=ld gives a path.
11263  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11264echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11265  case $host in
11266  *-*-mingw*)
11267    # gcc leaves a trailing carriage return which upsets mingw
11268    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11269  *)
11270    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11271  esac
11272  case $ac_prog in
11273    # Accept absolute paths.
11274    [\\/]* | ?:[\\/]*)
11275      re_direlt='/[^/][^/]*/\.\./'
11276      # Canonicalize the pathname of ld
11277      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11278      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11279	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11280      done
11281      test -z "$LD" && LD="$ac_prog"
11282      ;;
11283  "")
11284    # If it fails, then pretend we aren't using GCC.
11285    ac_prog=ld
11286    ;;
11287  *)
11288    # If it is relative, then search for the first ld in PATH.
11289    with_gnu_ld=unknown
11290    ;;
11291  esac
11292elif test "$with_gnu_ld" = yes; then
11293  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11294echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11295else
11296  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11297echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11298fi
11299if test "${lt_cv_path_LD+set}" = set; then
11300  echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302  if test -z "$LD"; then
11303  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11304  for ac_dir in $PATH; do
11305    IFS="$lt_save_ifs"
11306    test -z "$ac_dir" && ac_dir=.
11307    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11308      lt_cv_path_LD="$ac_dir/$ac_prog"
11309      # Check to see if the program is GNU ld.  I'd rather use --version,
11310      # but apparently some variants of GNU ld only accept -v.
11311      # Break only if it was the GNU/non-GNU ld that we prefer.
11312      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11313      *GNU* | *'with BFD'*)
11314	test "$with_gnu_ld" != no && break
11315	;;
11316      *)
11317	test "$with_gnu_ld" != yes && break
11318	;;
11319      esac
11320    fi
11321  done
11322  IFS="$lt_save_ifs"
11323else
11324  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11325fi
11326fi
11327
11328LD="$lt_cv_path_LD"
11329if test -n "$LD"; then
11330  { echo "$as_me:$LINENO: result: $LD" >&5
11331echo "${ECHO_T}$LD" >&6; }
11332else
11333  { echo "$as_me:$LINENO: result: no" >&5
11334echo "${ECHO_T}no" >&6; }
11335fi
11336test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11337echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11338   { (exit 1); exit 1; }; }
11339{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11340echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11341if test "${lt_cv_prog_gnu_ld+set}" = set; then
11342  echo $ECHO_N "(cached) $ECHO_C" >&6
11343else
11344  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11345case `$LD -v 2>&1 </dev/null` in
11346*GNU* | *'with BFD'*)
11347  lt_cv_prog_gnu_ld=yes
11348  ;;
11349*)
11350  lt_cv_prog_gnu_ld=no
11351  ;;
11352esac
11353fi
11354{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11355echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11356with_gnu_ld=$lt_cv_prog_gnu_ld
11357
11358
11359
11360  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11361  # archiving commands below assume that GNU ld is being used.
11362  if test "$with_gnu_ld" = yes; then
11363    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11364    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'
11365
11366    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11367    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11368
11369    # If archive_cmds runs LD, not CC, wlarc should be empty
11370    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11371    #     investigate it a little bit more. (MM)
11372    wlarc='${wl}'
11373
11374    # ancient GNU ld didn't support --whole-archive et. al.
11375    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11376	grep 'no-whole-archive' > /dev/null; then
11377      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11378    else
11379      whole_archive_flag_spec_CXX=
11380    fi
11381  else
11382    with_gnu_ld=no
11383    wlarc=
11384
11385    # A generic and very simple default shared library creation
11386    # command for GNU C++ for the case where it uses the native
11387    # linker, instead of GNU ld.  If possible, this setting should
11388    # overridden to take advantage of the native linker features on
11389    # the platform it is being used on.
11390    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11391  fi
11392
11393  # Commands to make compiler produce verbose output that lists
11394  # what "hidden" libraries, object files and flags are used when
11395  # linking a shared library.
11396  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11397
11398else
11399  GXX=no
11400  with_gnu_ld=no
11401  wlarc=
11402fi
11403
11404# PORTME: fill in a description of your system's C++ link characteristics
11405{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11406echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11407ld_shlibs_CXX=yes
11408case $host_os in
11409  aix3*)
11410    # FIXME: insert proper C++ library support
11411    ld_shlibs_CXX=no
11412    ;;
11413  aix[4-9]*)
11414    if test "$host_cpu" = ia64; then
11415      # On IA64, the linker does run time linking by default, so we don't
11416      # have to do anything special.
11417      aix_use_runtimelinking=no
11418      exp_sym_flag='-Bexport'
11419      no_entry_flag=""
11420    else
11421      aix_use_runtimelinking=no
11422
11423      # Test if we are trying to use run time linking or normal
11424      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11425      # need to do runtime linking.
11426      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11427	for ld_flag in $LDFLAGS; do
11428	  case $ld_flag in
11429	  *-brtl*)
11430	    aix_use_runtimelinking=yes
11431	    break
11432	    ;;
11433	  esac
11434	done
11435	;;
11436      esac
11437
11438      exp_sym_flag='-bexport'
11439      no_entry_flag='-bnoentry'
11440    fi
11441
11442    # When large executables or shared objects are built, AIX ld can
11443    # have problems creating the table of contents.  If linking a library
11444    # or program results in "error TOC overflow" add -mminimal-toc to
11445    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11446    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11447
11448    archive_cmds_CXX=''
11449    hardcode_direct_CXX=yes
11450    hardcode_libdir_separator_CXX=':'
11451    link_all_deplibs_CXX=yes
11452
11453    if test "$GXX" = yes; then
11454      case $host_os in aix4.[012]|aix4.[012].*)
11455      # We only want to do this on AIX 4.2 and lower, the check
11456      # below for broken collect2 doesn't work under 4.3+
11457	collect2name=`${CC} -print-prog-name=collect2`
11458	if test -f "$collect2name" && \
11459	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11460	then
11461	  # We have reworked collect2
11462	  :
11463	else
11464	  # We have old collect2
11465	  hardcode_direct_CXX=unsupported
11466	  # It fails to find uninstalled libraries when the uninstalled
11467	  # path is not listed in the libpath.  Setting hardcode_minus_L
11468	  # to unsupported forces relinking
11469	  hardcode_minus_L_CXX=yes
11470	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11471	  hardcode_libdir_separator_CXX=
11472	fi
11473	;;
11474      esac
11475      shared_flag='-shared'
11476      if test "$aix_use_runtimelinking" = yes; then
11477	shared_flag="$shared_flag "'${wl}-G'
11478      fi
11479    else
11480      # not using gcc
11481      if test "$host_cpu" = ia64; then
11482	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11483	# chokes on -Wl,-G. The following line is correct:
11484	shared_flag='-G'
11485      else
11486	if test "$aix_use_runtimelinking" = yes; then
11487	  shared_flag='${wl}-G'
11488	else
11489	  shared_flag='${wl}-bM:SRE'
11490	fi
11491      fi
11492    fi
11493
11494    # It seems that -bexpall does not export symbols beginning with
11495    # underscore (_), so it is better to generate a list of symbols to export.
11496    always_export_symbols_CXX=yes
11497    if test "$aix_use_runtimelinking" = yes; then
11498      # Warning - without using the other runtime loading flags (-brtl),
11499      # -berok will link without error, but may produce a broken library.
11500      allow_undefined_flag_CXX='-berok'
11501      # Determine the default libpath from the value encoded in an empty executable.
11502      cat >conftest.$ac_ext <<_ACEOF
11503/* confdefs.h.  */
11504_ACEOF
11505cat confdefs.h >>conftest.$ac_ext
11506cat >>conftest.$ac_ext <<_ACEOF
11507/* end confdefs.h.  */
11508
11509int
11510main ()
11511{
11512
11513  ;
11514  return 0;
11515}
11516_ACEOF
11517rm -f conftest.$ac_objext conftest$ac_exeext
11518if { (ac_try="$ac_link"
11519case "(($ac_try" in
11520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521  *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524  (eval "$ac_link") 2>conftest.er1
11525  ac_status=$?
11526  grep -v '^ *+' conftest.er1 >conftest.err
11527  rm -f conftest.er1
11528  cat conftest.err >&5
11529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530  (exit $ac_status); } && {
11531	 test -z "$ac_cxx_werror_flag" ||
11532	 test ! -s conftest.err
11533       } && test -s conftest$ac_exeext &&
11534       $as_test_x conftest$ac_exeext; then
11535
11536lt_aix_libpath_sed='
11537    /Import File Strings/,/^$/ {
11538	/^0/ {
11539	    s/^0  *\(.*\)$/\1/
11540	    p
11541	}
11542    }'
11543aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11544# Check for a 64-bit object if we didn't find anything.
11545if test -z "$aix_libpath"; then
11546  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11547fi
11548else
11549  echo "$as_me: failed program was:" >&5
11550sed 's/^/| /' conftest.$ac_ext >&5
11551
11552
11553fi
11554
11555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11556      conftest$ac_exeext conftest.$ac_ext
11557if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11558
11559      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11560
11561      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"
11562     else
11563      if test "$host_cpu" = ia64; then
11564	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11565	allow_undefined_flag_CXX="-z nodefs"
11566	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"
11567      else
11568	# Determine the default libpath from the value encoded in an empty executable.
11569	cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h.  */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h.  */
11575
11576int
11577main ()
11578{
11579
11580  ;
11581  return 0;
11582}
11583_ACEOF
11584rm -f conftest.$ac_objext conftest$ac_exeext
11585if { (ac_try="$ac_link"
11586case "(($ac_try" in
11587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588  *) ac_try_echo=$ac_try;;
11589esac
11590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591  (eval "$ac_link") 2>conftest.er1
11592  ac_status=$?
11593  grep -v '^ *+' conftest.er1 >conftest.err
11594  rm -f conftest.er1
11595  cat conftest.err >&5
11596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597  (exit $ac_status); } && {
11598	 test -z "$ac_cxx_werror_flag" ||
11599	 test ! -s conftest.err
11600       } && test -s conftest$ac_exeext &&
11601       $as_test_x conftest$ac_exeext; then
11602
11603lt_aix_libpath_sed='
11604    /Import File Strings/,/^$/ {
11605	/^0/ {
11606	    s/^0  *\(.*\)$/\1/
11607	    p
11608	}
11609    }'
11610aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11611# Check for a 64-bit object if we didn't find anything.
11612if test -z "$aix_libpath"; then
11613  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11614fi
11615else
11616  echo "$as_me: failed program was:" >&5
11617sed 's/^/| /' conftest.$ac_ext >&5
11618
11619
11620fi
11621
11622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11623      conftest$ac_exeext conftest.$ac_ext
11624if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11625
11626	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11627	# Warning - without using the other run time loading flags,
11628	# -berok will link without error, but may produce a broken library.
11629	no_undefined_flag_CXX=' ${wl}-bernotok'
11630	allow_undefined_flag_CXX=' ${wl}-berok'
11631	# Exported symbols can be pulled into shared objects from archives
11632	whole_archive_flag_spec_CXX='$convenience'
11633	archive_cmds_need_lc_CXX=yes
11634	# This is similar to how AIX traditionally builds its shared libraries.
11635	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'
11636      fi
11637    fi
11638    ;;
11639
11640  beos*)
11641    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11642      allow_undefined_flag_CXX=unsupported
11643      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11644      # support --undefined.  This deserves some investigation.  FIXME
11645      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11646    else
11647      ld_shlibs_CXX=no
11648    fi
11649    ;;
11650
11651  chorus*)
11652    case $cc_basename in
11653      *)
11654	# FIXME: insert proper C++ library support
11655	ld_shlibs_CXX=no
11656	;;
11657    esac
11658    ;;
11659
11660  cygwin* | mingw* | pw32*)
11661    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11662    # as there is no search path for DLLs.
11663    hardcode_libdir_flag_spec_CXX='-L$libdir'
11664    allow_undefined_flag_CXX=unsupported
11665    always_export_symbols_CXX=no
11666    enable_shared_with_static_runtimes_CXX=yes
11667
11668    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11669      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'
11670      # If the export-symbols file already is a .def file (1st line
11671      # is EXPORTS), use it as is; otherwise, prepend...
11672      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11673	cp $export_symbols $output_objdir/$soname.def;
11674      else
11675	echo EXPORTS > $output_objdir/$soname.def;
11676	cat $export_symbols >> $output_objdir/$soname.def;
11677      fi~
11678      $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'
11679    else
11680      ld_shlibs_CXX=no
11681    fi
11682  ;;
11683      darwin* | rhapsody*)
11684      archive_cmds_need_lc_CXX=no
11685      hardcode_direct_CXX=no
11686      hardcode_automatic_CXX=yes
11687      hardcode_shlibpath_var_CXX=unsupported
11688      whole_archive_flag_spec_CXX=''
11689      link_all_deplibs_CXX=yes
11690      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11691      if test "$GXX" = yes ; then
11692      output_verbose_link_cmd='echo'
11693      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11694      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11695      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11696      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11697      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11698        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11699        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11700      fi
11701      else
11702      case $cc_basename in
11703        xlc*)
11704         output_verbose_link_cmd='echo'
11705          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'
11706          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11707          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11708          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}'
11709          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}'
11710          ;;
11711       *)
11712         ld_shlibs_CXX=no
11713          ;;
11714      esac
11715      fi
11716        ;;
11717
11718  dgux*)
11719    case $cc_basename in
11720      ec++*)
11721	# FIXME: insert proper C++ library support
11722	ld_shlibs_CXX=no
11723	;;
11724      ghcx*)
11725	# Green Hills C++ Compiler
11726	# FIXME: insert proper C++ library support
11727	ld_shlibs_CXX=no
11728	;;
11729      *)
11730	# FIXME: insert proper C++ library support
11731	ld_shlibs_CXX=no
11732	;;
11733    esac
11734    ;;
11735  freebsd[12]*)
11736    # C++ shared libraries reported to be fairly broken before switch to ELF
11737    ld_shlibs_CXX=no
11738    ;;
11739  freebsd-elf*)
11740    archive_cmds_need_lc_CXX=no
11741    ;;
11742  freebsd* | dragonfly*)
11743    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11744    # conventions
11745    ld_shlibs_CXX=yes
11746    ;;
11747  gnu*)
11748    ;;
11749  hpux9*)
11750    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11751    hardcode_libdir_separator_CXX=:
11752    export_dynamic_flag_spec_CXX='${wl}-E'
11753    hardcode_direct_CXX=yes
11754    hardcode_minus_L_CXX=yes # Not in the search PATH,
11755				# but as the default
11756				# location of the library.
11757
11758    case $cc_basename in
11759    CC*)
11760      # FIXME: insert proper C++ library support
11761      ld_shlibs_CXX=no
11762      ;;
11763    aCC*)
11764      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'
11765      # Commands to make compiler produce verbose output that lists
11766      # what "hidden" libraries, object files and flags are used when
11767      # linking a shared library.
11768      #
11769      # There doesn't appear to be a way to prevent this compiler from
11770      # explicitly linking system object files so we need to strip them
11771      # from the output so that they don't get included in the library
11772      # dependencies.
11773      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'
11774      ;;
11775    *)
11776      if test "$GXX" = yes; then
11777        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'
11778      else
11779        # FIXME: insert proper C++ library support
11780        ld_shlibs_CXX=no
11781      fi
11782      ;;
11783    esac
11784    ;;
11785  hpux10*|hpux11*)
11786    if test $with_gnu_ld = no; then
11787      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11788      hardcode_libdir_separator_CXX=:
11789
11790      case $host_cpu in
11791      hppa*64*|ia64*) ;;
11792      *)
11793	export_dynamic_flag_spec_CXX='${wl}-E'
11794        ;;
11795      esac
11796    fi
11797    case $host_cpu in
11798    hppa*64*|ia64*)
11799      hardcode_direct_CXX=no
11800      hardcode_shlibpath_var_CXX=no
11801      ;;
11802    *)
11803      hardcode_direct_CXX=yes
11804      hardcode_minus_L_CXX=yes # Not in the search PATH,
11805					      # but as the default
11806					      # location of the library.
11807      ;;
11808    esac
11809
11810    case $cc_basename in
11811      CC*)
11812	# FIXME: insert proper C++ library support
11813	ld_shlibs_CXX=no
11814	;;
11815      aCC*)
11816	case $host_cpu in
11817	hppa*64*)
11818	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11819	  ;;
11820	ia64*)
11821	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11822	  ;;
11823	*)
11824	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11825	  ;;
11826	esac
11827	# Commands to make compiler produce verbose output that lists
11828	# what "hidden" libraries, object files and flags are used when
11829	# linking a shared library.
11830	#
11831	# There doesn't appear to be a way to prevent this compiler from
11832	# explicitly linking system object files so we need to strip them
11833	# from the output so that they don't get included in the library
11834	# dependencies.
11835	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'
11836	;;
11837      *)
11838	if test "$GXX" = yes; then
11839	  if test $with_gnu_ld = no; then
11840	    case $host_cpu in
11841	    hppa*64*)
11842	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11843	      ;;
11844	    ia64*)
11845	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11846	      ;;
11847	    *)
11848	      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'
11849	      ;;
11850	    esac
11851	  fi
11852	else
11853	  # FIXME: insert proper C++ library support
11854	  ld_shlibs_CXX=no
11855	fi
11856	;;
11857    esac
11858    ;;
11859  interix[3-9]*)
11860    hardcode_direct_CXX=no
11861    hardcode_shlibpath_var_CXX=no
11862    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11863    export_dynamic_flag_spec_CXX='${wl}-E'
11864    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11865    # Instead, shared libraries are loaded at an image base (0x10000000 by
11866    # default) and relocated if they conflict, which is a slow very memory
11867    # consuming and fragmenting process.  To avoid this, we pick a random,
11868    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11869    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11870    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'
11871    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'
11872    ;;
11873  irix5* | irix6*)
11874    case $cc_basename in
11875      CC*)
11876	# SGI C++
11877	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'
11878
11879	# Archives containing C++ object files must be created using
11880	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11881	# necessary to make sure instantiated templates are included
11882	# in the archive.
11883	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11884	;;
11885      *)
11886	if test "$GXX" = yes; then
11887	  if test "$with_gnu_ld" = no; then
11888	    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'
11889	  else
11890	    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'
11891	  fi
11892	fi
11893	link_all_deplibs_CXX=yes
11894	;;
11895    esac
11896    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11897    hardcode_libdir_separator_CXX=:
11898    ;;
11899  linux* | k*bsd*-gnu)
11900    case $cc_basename in
11901      KCC*)
11902	# Kuck and Associates, Inc. (KAI) C++ Compiler
11903
11904	# KCC will only create a shared library if the output file
11905	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11906	# to its proper name (with version) after linking.
11907	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'
11908	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'
11909	# Commands to make compiler produce verbose output that lists
11910	# what "hidden" libraries, object files and flags are used when
11911	# linking a shared library.
11912	#
11913	# There doesn't appear to be a way to prevent this compiler from
11914	# explicitly linking system object files so we need to strip them
11915	# from the output so that they don't get included in the library
11916	# dependencies.
11917	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'
11918
11919	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11920	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11921
11922	# Archives containing C++ object files must be created using
11923	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11924	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11925	;;
11926      icpc*)
11927	# Intel C++
11928	with_gnu_ld=yes
11929	# version 8.0 and above of icpc choke on multiply defined symbols
11930	# if we add $predep_objects and $postdep_objects, however 7.1 and
11931	# earlier do not add the objects themselves.
11932	case `$CC -V 2>&1` in
11933	*"Version 7."*)
11934  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11935  	  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'
11936	  ;;
11937	*)  # Version 8.0 or newer
11938	  tmp_idyn=
11939	  case $host_cpu in
11940	    ia64*) tmp_idyn=' -i_dynamic';;
11941	  esac
11942  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11943	  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'
11944	  ;;
11945	esac
11946	archive_cmds_need_lc_CXX=no
11947	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11948	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11949	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11950	;;
11951      pgCC* | pgcpp*)
11952        # Portland Group C++ compiler
11953	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11954  	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'
11955
11956	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11957	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11958	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'
11959        ;;
11960      cxx*)
11961	# Compaq C++
11962	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11963	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'
11964
11965	runpath_var=LD_RUN_PATH
11966	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11967	hardcode_libdir_separator_CXX=:
11968
11969	# Commands to make compiler produce verbose output that lists
11970	# what "hidden" libraries, object files and flags are used when
11971	# linking a shared library.
11972	#
11973	# There doesn't appear to be a way to prevent this compiler from
11974	# explicitly linking system object files so we need to strip them
11975	# from the output so that they don't get included in the library
11976	# dependencies.
11977	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'
11978	;;
11979      *)
11980	case `$CC -V 2>&1 | sed 5q` in
11981	*Sun\ C*)
11982	  # Sun C++ 5.9
11983	  no_undefined_flag_CXX=' -zdefs'
11984	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11985	  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'
11986	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11987	  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'
11988
11989	  # Not sure whether something based on
11990	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11991	  # would be better.
11992	  output_verbose_link_cmd='echo'
11993
11994	  # Archives containing C++ object files must be created using
11995	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11996	  # necessary to make sure instantiated templates are included
11997	  # in the archive.
11998	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11999	  ;;
12000	esac
12001	;;
12002    esac
12003    ;;
12004  lynxos*)
12005    # FIXME: insert proper C++ library support
12006    ld_shlibs_CXX=no
12007    ;;
12008  m88k*)
12009    # FIXME: insert proper C++ library support
12010    ld_shlibs_CXX=no
12011    ;;
12012  mvs*)
12013    case $cc_basename in
12014      cxx*)
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	;;
12022    esac
12023    ;;
12024  netbsd* | netbsdelf*-gnu)
12025    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12026      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12027      wlarc=
12028      hardcode_libdir_flag_spec_CXX='-R$libdir'
12029      hardcode_direct_CXX=yes
12030      hardcode_shlibpath_var_CXX=no
12031    fi
12032    # Workaround some broken pre-1.5 toolchains
12033    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12034    ;;
12035  openbsd2*)
12036    # C++ shared libraries are fairly broken
12037    ld_shlibs_CXX=no
12038    ;;
12039  openbsd*)
12040    if test -f /usr/libexec/ld.so; then
12041      hardcode_direct_CXX=yes
12042      hardcode_shlibpath_var_CXX=no
12043      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12044      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12045      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12046	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12047	export_dynamic_flag_spec_CXX='${wl}-E'
12048	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12049      fi
12050      output_verbose_link_cmd='echo'
12051    else
12052      ld_shlibs_CXX=no
12053    fi
12054    ;;
12055  osf3*)
12056    case $cc_basename in
12057      KCC*)
12058	# Kuck and Associates, Inc. (KAI) C++ Compiler
12059
12060	# KCC will only create a shared library if the output file
12061	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12062	# to its proper name (with version) after linking.
12063	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'
12064
12065	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12066	hardcode_libdir_separator_CXX=:
12067
12068	# Archives containing C++ object files must be created using
12069	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12070	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12071
12072	;;
12073      RCC*)
12074	# Rational C++ 2.4.1
12075	# FIXME: insert proper C++ library support
12076	ld_shlibs_CXX=no
12077	;;
12078      cxx*)
12079	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12080	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'
12081
12082	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12083	hardcode_libdir_separator_CXX=:
12084
12085	# Commands to make compiler produce verbose output that lists
12086	# what "hidden" libraries, object files and flags are used when
12087	# linking a shared library.
12088	#
12089	# There doesn't appear to be a way to prevent this compiler from
12090	# explicitly linking system object files so we need to strip them
12091	# from the output so that they don't get included in the library
12092	# dependencies.
12093	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'
12094	;;
12095      *)
12096	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12097	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12098	  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'
12099
12100	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12101	  hardcode_libdir_separator_CXX=:
12102
12103	  # Commands to make compiler produce verbose output that lists
12104	  # what "hidden" libraries, object files and flags are used when
12105	  # linking a shared library.
12106	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12107
12108	else
12109	  # FIXME: insert proper C++ library support
12110	  ld_shlibs_CXX=no
12111	fi
12112	;;
12113    esac
12114    ;;
12115  osf4* | osf5*)
12116    case $cc_basename in
12117      KCC*)
12118	# Kuck and Associates, Inc. (KAI) C++ Compiler
12119
12120	# KCC will only create a shared library if the output file
12121	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12122	# to its proper name (with version) after linking.
12123	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'
12124
12125	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12126	hardcode_libdir_separator_CXX=:
12127
12128	# Archives containing C++ object files must be created using
12129	# the KAI C++ compiler.
12130	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12131	;;
12132      RCC*)
12133	# Rational C++ 2.4.1
12134	# FIXME: insert proper C++ library support
12135	ld_shlibs_CXX=no
12136	;;
12137      cxx*)
12138	allow_undefined_flag_CXX=' -expect_unresolved \*'
12139	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'
12140	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12141	  echo "-hidden">> $lib.exp~
12142	  $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~
12143	  $rm $lib.exp'
12144
12145	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12146	hardcode_libdir_separator_CXX=:
12147
12148	# Commands to make compiler produce verbose output that lists
12149	# what "hidden" libraries, object files and flags are used when
12150	# linking a shared library.
12151	#
12152	# There doesn't appear to be a way to prevent this compiler from
12153	# explicitly linking system object files so we need to strip them
12154	# from the output so that they don't get included in the library
12155	# dependencies.
12156	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'
12157	;;
12158      *)
12159	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12160	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12161	 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'
12162
12163	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164	  hardcode_libdir_separator_CXX=:
12165
12166	  # Commands to make compiler produce verbose output that lists
12167	  # what "hidden" libraries, object files and flags are used when
12168	  # linking a shared library.
12169	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12170
12171	else
12172	  # FIXME: insert proper C++ library support
12173	  ld_shlibs_CXX=no
12174	fi
12175	;;
12176    esac
12177    ;;
12178  psos*)
12179    # FIXME: insert proper C++ library support
12180    ld_shlibs_CXX=no
12181    ;;
12182  sunos4*)
12183    case $cc_basename in
12184      CC*)
12185	# Sun C++ 4.x
12186	# FIXME: insert proper C++ library support
12187	ld_shlibs_CXX=no
12188	;;
12189      lcc*)
12190	# Lucid
12191	# FIXME: insert proper C++ library support
12192	ld_shlibs_CXX=no
12193	;;
12194      *)
12195	# FIXME: insert proper C++ library support
12196	ld_shlibs_CXX=no
12197	;;
12198    esac
12199    ;;
12200  solaris*)
12201    case $cc_basename in
12202      CC*)
12203	# Sun C++ 4.2, 5.x and Centerline C++
12204        archive_cmds_need_lc_CXX=yes
12205	no_undefined_flag_CXX=' -zdefs'
12206	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12207	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12208	$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'
12209
12210	hardcode_libdir_flag_spec_CXX='-R$libdir'
12211	hardcode_shlibpath_var_CXX=no
12212	case $host_os in
12213	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12214	  *)
12215	    # The compiler driver will combine and reorder linker options,
12216	    # but understands `-z linker_flag'.
12217	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12218	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12219	    ;;
12220	esac
12221	link_all_deplibs_CXX=yes
12222
12223	output_verbose_link_cmd='echo'
12224
12225	# Archives containing C++ object files must be created using
12226	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12227	# necessary to make sure instantiated templates are included
12228	# in the archive.
12229	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12230	;;
12231      gcx*)
12232	# Green Hills C++ Compiler
12233	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12234
12235	# The C++ compiler must be used to create the archive.
12236	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12237	;;
12238      *)
12239	# GNU C++ compiler with Solaris linker
12240	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12241	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12242	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12243	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12244	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12245		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12246
12247	    # Commands to make compiler produce verbose output that lists
12248	    # what "hidden" libraries, object files and flags are used when
12249	    # linking a shared library.
12250	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12251	  else
12252	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12253	    # platform.
12254	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12255	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12256		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12257
12258	    # Commands to make compiler produce verbose output that lists
12259	    # what "hidden" libraries, object files and flags are used when
12260	    # linking a shared library.
12261	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12262	  fi
12263
12264	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12265	  case $host_os in
12266	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12267	  *)
12268	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12269	    ;;
12270	  esac
12271	fi
12272	;;
12273    esac
12274    ;;
12275  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12276    no_undefined_flag_CXX='${wl}-z,text'
12277    archive_cmds_need_lc_CXX=no
12278    hardcode_shlibpath_var_CXX=no
12279    runpath_var='LD_RUN_PATH'
12280
12281    case $cc_basename in
12282      CC*)
12283	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12285	;;
12286      *)
12287	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12289	;;
12290    esac
12291    ;;
12292  sysv5* | sco3.2v5* | sco5v6*)
12293    # Note: We can NOT use -z defs as we might desire, because we do not
12294    # link with -lc, and that would cause any symbols used from libc to
12295    # always be unresolved, which means just about no library would
12296    # ever link correctly.  If we're not using GNU ld we use -z text
12297    # though, which does catch some bad symbols but isn't as heavy-handed
12298    # as -z defs.
12299    # For security reasons, it is highly recommended that you always
12300    # use absolute paths for naming shared libraries, and exclude the
12301    # DT_RUNPATH tag from executables and libraries.  But doing so
12302    # requires that you compile everything twice, which is a pain.
12303    # So that behaviour is only enabled if SCOABSPATH is set to a
12304    # non-empty value in the environment.  Most likely only useful for
12305    # creating official distributions of packages.
12306    # This is a hack until libtool officially supports absolute path
12307    # names for shared libraries.
12308    no_undefined_flag_CXX='${wl}-z,text'
12309    allow_undefined_flag_CXX='${wl}-z,nodefs'
12310    archive_cmds_need_lc_CXX=no
12311    hardcode_shlibpath_var_CXX=no
12312    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12313    hardcode_libdir_separator_CXX=':'
12314    link_all_deplibs_CXX=yes
12315    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12316    runpath_var='LD_RUN_PATH'
12317
12318    case $cc_basename in
12319      CC*)
12320	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12321	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12322	;;
12323      *)
12324	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12325	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12326	;;
12327    esac
12328    ;;
12329  tandem*)
12330    case $cc_basename in
12331      NCC*)
12332	# NonStop-UX NCC 3.20
12333	# FIXME: insert proper C++ library support
12334	ld_shlibs_CXX=no
12335	;;
12336      *)
12337	# FIXME: insert proper C++ library support
12338	ld_shlibs_CXX=no
12339	;;
12340    esac
12341    ;;
12342  vxworks*)
12343    # FIXME: insert proper C++ library support
12344    ld_shlibs_CXX=no
12345    ;;
12346  *)
12347    # FIXME: insert proper C++ library support
12348    ld_shlibs_CXX=no
12349    ;;
12350esac
12351{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12352echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12353test "$ld_shlibs_CXX" = no && can_build_shared=no
12354
12355GCC_CXX="$GXX"
12356LD_CXX="$LD"
12357
12358cat > conftest.$ac_ext <<EOF
12359class Foo
12360{
12361public:
12362  Foo (void) { a = 0; }
12363private:
12364  int a;
12365};
12366EOF
12367
12368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12369  (eval $ac_compile) 2>&5
12370  ac_status=$?
12371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372  (exit $ac_status); }; then
12373  # Parse the compiler output and extract the necessary
12374  # objects, libraries and library flags.
12375
12376  # Sentinel used to keep track of whether or not we are before
12377  # the conftest object file.
12378  pre_test_object_deps_done=no
12379
12380  # The `*' in the case matches for architectures that use `case' in
12381  # $output_verbose_cmd can trigger glob expansion during the loop
12382  # eval without this substitution.
12383  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12384
12385  for p in `eval $output_verbose_link_cmd`; do
12386    case $p in
12387
12388    -L* | -R* | -l*)
12389       # Some compilers place space between "-{L,R}" and the path.
12390       # Remove the space.
12391       if test $p = "-L" \
12392	  || test $p = "-R"; then
12393	 prev=$p
12394	 continue
12395       else
12396	 prev=
12397       fi
12398
12399       if test "$pre_test_object_deps_done" = no; then
12400	 case $p in
12401	 -L* | -R*)
12402	   # Internal compiler library paths should come after those
12403	   # provided the user.  The postdeps already come after the
12404	   # user supplied libs so there is no need to process them.
12405	   if test -z "$compiler_lib_search_path_CXX"; then
12406	     compiler_lib_search_path_CXX="${prev}${p}"
12407	   else
12408	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12409	   fi
12410	   ;;
12411	 # The "-l" case would never come before the object being
12412	 # linked, so don't bother handling this case.
12413	 esac
12414       else
12415	 if test -z "$postdeps_CXX"; then
12416	   postdeps_CXX="${prev}${p}"
12417	 else
12418	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12419	 fi
12420       fi
12421       ;;
12422
12423    *.$objext)
12424       # This assumes that the test object file only shows up
12425       # once in the compiler output.
12426       if test "$p" = "conftest.$objext"; then
12427	 pre_test_object_deps_done=yes
12428	 continue
12429       fi
12430
12431       if test "$pre_test_object_deps_done" = no; then
12432	 if test -z "$predep_objects_CXX"; then
12433	   predep_objects_CXX="$p"
12434	 else
12435	   predep_objects_CXX="$predep_objects_CXX $p"
12436	 fi
12437       else
12438	 if test -z "$postdep_objects_CXX"; then
12439	   postdep_objects_CXX="$p"
12440	 else
12441	   postdep_objects_CXX="$postdep_objects_CXX $p"
12442	 fi
12443       fi
12444       ;;
12445
12446    *) ;; # Ignore the rest.
12447
12448    esac
12449  done
12450
12451  # Clean up.
12452  rm -f a.out a.exe
12453else
12454  echo "libtool.m4: error: problem compiling CXX test program"
12455fi
12456
12457$rm -f confest.$objext
12458
12459compiler_lib_search_dirs_CXX=
12460if test -n "$compiler_lib_search_path_CXX"; then
12461  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12462fi
12463
12464# PORTME: override above test on systems where it is broken
12465case $host_os in
12466interix[3-9]*)
12467  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12468  # hack all around it, let's just trust "g++" to DTRT.
12469  predep_objects_CXX=
12470  postdep_objects_CXX=
12471  postdeps_CXX=
12472  ;;
12473
12474linux*)
12475  case `$CC -V 2>&1 | sed 5q` in
12476  *Sun\ C*)
12477    # Sun C++ 5.9
12478    #
12479    # The more standards-conforming stlport4 library is
12480    # incompatible with the Cstd library. Avoid specifying
12481    # it if it's in CXXFLAGS. Ignore libCrun as
12482    # -library=stlport4 depends on it.
12483    case " $CXX $CXXFLAGS " in
12484    *" -library=stlport4 "*)
12485      solaris_use_stlport4=yes
12486      ;;
12487    esac
12488    if test "$solaris_use_stlport4" != yes; then
12489      postdeps_CXX='-library=Cstd -library=Crun'
12490    fi
12491    ;;
12492  esac
12493  ;;
12494
12495solaris*)
12496  case $cc_basename in
12497  CC*)
12498    # The more standards-conforming stlport4 library is
12499    # incompatible with the Cstd library. Avoid specifying
12500    # it if it's in CXXFLAGS. Ignore libCrun as
12501    # -library=stlport4 depends on it.
12502    case " $CXX $CXXFLAGS " in
12503    *" -library=stlport4 "*)
12504      solaris_use_stlport4=yes
12505      ;;
12506    esac
12507
12508    # Adding this requires a known-good setup of shared libraries for
12509    # Sun compiler versions before 5.6, else PIC objects from an old
12510    # archive will be linked into the output, leading to subtle bugs.
12511    if test "$solaris_use_stlport4" != yes; then
12512      postdeps_CXX='-library=Cstd -library=Crun'
12513    fi
12514    ;;
12515  esac
12516  ;;
12517esac
12518
12519case " $postdeps_CXX " in
12520*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12521esac
12522
12523lt_prog_compiler_wl_CXX=
12524lt_prog_compiler_pic_CXX=
12525lt_prog_compiler_static_CXX=
12526
12527{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12528echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12529
12530  # C++ specific cases for pic, static, wl, etc.
12531  if test "$GXX" = yes; then
12532    lt_prog_compiler_wl_CXX='-Wl,'
12533    lt_prog_compiler_static_CXX='-static'
12534
12535    case $host_os in
12536    aix*)
12537      # All AIX code is PIC.
12538      if test "$host_cpu" = ia64; then
12539	# AIX 5 now supports IA64 processor
12540	lt_prog_compiler_static_CXX='-Bstatic'
12541      fi
12542      ;;
12543    amigaos*)
12544      # FIXME: we need at least 68020 code to build shared libraries, but
12545      # adding the `-m68020' flag to GCC prevents building anything better,
12546      # like `-m68040'.
12547      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12548      ;;
12549    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12550      # PIC is the default for these OSes.
12551      ;;
12552    mingw* | cygwin* | os2* | pw32*)
12553      # This hack is so that the source file can tell whether it is being
12554      # built for inclusion in a dll (and should export symbols for example).
12555      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12556      # (--disable-auto-import) libraries
12557      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12558      ;;
12559    darwin* | rhapsody*)
12560      # PIC is the default on this platform
12561      # Common symbols not allowed in MH_DYLIB files
12562      lt_prog_compiler_pic_CXX='-fno-common'
12563      ;;
12564    *djgpp*)
12565      # DJGPP does not support shared libraries at all
12566      lt_prog_compiler_pic_CXX=
12567      ;;
12568    interix[3-9]*)
12569      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12570      # Instead, we relocate shared libraries at runtime.
12571      ;;
12572    sysv4*MP*)
12573      if test -d /usr/nec; then
12574	lt_prog_compiler_pic_CXX=-Kconform_pic
12575      fi
12576      ;;
12577    hpux*)
12578      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12579      # not for PA HP-UX.
12580      case $host_cpu in
12581      hppa*64*|ia64*)
12582	;;
12583      *)
12584	lt_prog_compiler_pic_CXX='-fPIC'
12585	;;
12586      esac
12587      ;;
12588    *)
12589      lt_prog_compiler_pic_CXX='-fPIC'
12590      ;;
12591    esac
12592  else
12593    case $host_os in
12594      aix[4-9]*)
12595	# All AIX code is PIC.
12596	if test "$host_cpu" = ia64; then
12597	  # AIX 5 now supports IA64 processor
12598	  lt_prog_compiler_static_CXX='-Bstatic'
12599	else
12600	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12601	fi
12602	;;
12603      chorus*)
12604	case $cc_basename in
12605	cxch68*)
12606	  # Green Hills C++ Compiler
12607	  # _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"
12608	  ;;
12609	esac
12610	;;
12611       darwin*)
12612         # PIC is the default on this platform
12613         # Common symbols not allowed in MH_DYLIB files
12614         case $cc_basename in
12615           xlc*)
12616           lt_prog_compiler_pic_CXX='-qnocommon'
12617           lt_prog_compiler_wl_CXX='-Wl,'
12618           ;;
12619         esac
12620       ;;
12621      dgux*)
12622	case $cc_basename in
12623	  ec++*)
12624	    lt_prog_compiler_pic_CXX='-KPIC'
12625	    ;;
12626	  ghcx*)
12627	    # Green Hills C++ Compiler
12628	    lt_prog_compiler_pic_CXX='-pic'
12629	    ;;
12630	  *)
12631	    ;;
12632	esac
12633	;;
12634      freebsd* | dragonfly*)
12635	# FreeBSD uses GNU C++
12636	;;
12637      hpux9* | hpux10* | hpux11*)
12638	case $cc_basename in
12639	  CC*)
12640	    lt_prog_compiler_wl_CXX='-Wl,'
12641	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12642	    if test "$host_cpu" != ia64; then
12643	      lt_prog_compiler_pic_CXX='+Z'
12644	    fi
12645	    ;;
12646	  aCC*)
12647	    lt_prog_compiler_wl_CXX='-Wl,'
12648	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12649	    case $host_cpu in
12650	    hppa*64*|ia64*)
12651	      # +Z the default
12652	      ;;
12653	    *)
12654	      lt_prog_compiler_pic_CXX='+Z'
12655	      ;;
12656	    esac
12657	    ;;
12658	  *)
12659	    ;;
12660	esac
12661	;;
12662      interix*)
12663	# This is c89, which is MS Visual C++ (no shared libs)
12664	# Anyone wants to do a port?
12665	;;
12666      irix5* | irix6* | nonstopux*)
12667	case $cc_basename in
12668	  CC*)
12669	    lt_prog_compiler_wl_CXX='-Wl,'
12670	    lt_prog_compiler_static_CXX='-non_shared'
12671	    # CC pic flag -KPIC is the default.
12672	    ;;
12673	  *)
12674	    ;;
12675	esac
12676	;;
12677      linux* | k*bsd*-gnu)
12678	case $cc_basename in
12679	  KCC*)
12680	    # KAI C++ Compiler
12681	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12682	    lt_prog_compiler_pic_CXX='-fPIC'
12683	    ;;
12684	  icpc* | ecpc*)
12685	    # Intel C++
12686	    lt_prog_compiler_wl_CXX='-Wl,'
12687	    lt_prog_compiler_pic_CXX='-KPIC'
12688	    lt_prog_compiler_static_CXX='-static'
12689	    ;;
12690	  pgCC* | pgcpp*)
12691	    # Portland Group C++ compiler.
12692	    lt_prog_compiler_wl_CXX='-Wl,'
12693	    lt_prog_compiler_pic_CXX='-fpic'
12694	    lt_prog_compiler_static_CXX='-Bstatic'
12695	    ;;
12696	  cxx*)
12697	    # Compaq C++
12698	    # Make sure the PIC flag is empty.  It appears that all Alpha
12699	    # Linux and Compaq Tru64 Unix objects are PIC.
12700	    lt_prog_compiler_pic_CXX=
12701	    lt_prog_compiler_static_CXX='-non_shared'
12702	    ;;
12703	  *)
12704	    case `$CC -V 2>&1 | sed 5q` in
12705	    *Sun\ C*)
12706	      # Sun C++ 5.9
12707	      lt_prog_compiler_pic_CXX='-KPIC'
12708	      lt_prog_compiler_static_CXX='-Bstatic'
12709	      lt_prog_compiler_wl_CXX='-Qoption ld '
12710	      ;;
12711	    esac
12712	    ;;
12713	esac
12714	;;
12715      lynxos*)
12716	;;
12717      m88k*)
12718	;;
12719      mvs*)
12720	case $cc_basename in
12721	  cxx*)
12722	    lt_prog_compiler_pic_CXX='-W c,exportall'
12723	    ;;
12724	  *)
12725	    ;;
12726	esac
12727	;;
12728      netbsd* | netbsdelf*-gnu)
12729	;;
12730      osf3* | osf4* | osf5*)
12731	case $cc_basename in
12732	  KCC*)
12733	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12734	    ;;
12735	  RCC*)
12736	    # Rational C++ 2.4.1
12737	    lt_prog_compiler_pic_CXX='-pic'
12738	    ;;
12739	  cxx*)
12740	    # Digital/Compaq C++
12741	    lt_prog_compiler_wl_CXX='-Wl,'
12742	    # Make sure the PIC flag is empty.  It appears that all Alpha
12743	    # Linux and Compaq Tru64 Unix objects are PIC.
12744	    lt_prog_compiler_pic_CXX=
12745	    lt_prog_compiler_static_CXX='-non_shared'
12746	    ;;
12747	  *)
12748	    ;;
12749	esac
12750	;;
12751      psos*)
12752	;;
12753      solaris*)
12754	case $cc_basename in
12755	  CC*)
12756	    # Sun C++ 4.2, 5.x and Centerline C++
12757	    lt_prog_compiler_pic_CXX='-KPIC'
12758	    lt_prog_compiler_static_CXX='-Bstatic'
12759	    lt_prog_compiler_wl_CXX='-Qoption ld '
12760	    ;;
12761	  gcx*)
12762	    # Green Hills C++ Compiler
12763	    lt_prog_compiler_pic_CXX='-PIC'
12764	    ;;
12765	  *)
12766	    ;;
12767	esac
12768	;;
12769      sunos4*)
12770	case $cc_basename in
12771	  CC*)
12772	    # Sun C++ 4.x
12773	    lt_prog_compiler_pic_CXX='-pic'
12774	    lt_prog_compiler_static_CXX='-Bstatic'
12775	    ;;
12776	  lcc*)
12777	    # Lucid
12778	    lt_prog_compiler_pic_CXX='-pic'
12779	    ;;
12780	  *)
12781	    ;;
12782	esac
12783	;;
12784      tandem*)
12785	case $cc_basename in
12786	  NCC*)
12787	    # NonStop-UX NCC 3.20
12788	    lt_prog_compiler_pic_CXX='-KPIC'
12789	    ;;
12790	  *)
12791	    ;;
12792	esac
12793	;;
12794      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12795	case $cc_basename in
12796	  CC*)
12797	    lt_prog_compiler_wl_CXX='-Wl,'
12798	    lt_prog_compiler_pic_CXX='-KPIC'
12799	    lt_prog_compiler_static_CXX='-Bstatic'
12800	    ;;
12801	esac
12802	;;
12803      vxworks*)
12804	;;
12805      *)
12806	lt_prog_compiler_can_build_shared_CXX=no
12807	;;
12808    esac
12809  fi
12810
12811{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12812echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12813
12814#
12815# Check to make sure the PIC flag actually works.
12816#
12817if test -n "$lt_prog_compiler_pic_CXX"; then
12818
12819{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12820echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12821if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12822  echo $ECHO_N "(cached) $ECHO_C" >&6
12823else
12824  lt_cv_prog_compiler_pic_works_CXX=no
12825  ac_outfile=conftest.$ac_objext
12826   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12827   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12828   # Insert the option either (1) after the last *FLAGS variable, or
12829   # (2) before a word containing "conftest.", or (3) at the end.
12830   # Note that $ac_compile itself does not contain backslashes and begins
12831   # with a dollar sign (not a hyphen), so the echo should work correctly.
12832   # The option is referenced via a variable to avoid confusing sed.
12833   lt_compile=`echo "$ac_compile" | $SED \
12834   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12835   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12836   -e 's:$: $lt_compiler_flag:'`
12837   (eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
12838   (eval "$lt_compile" 2>conftest.err)
12839   ac_status=$?
12840   cat conftest.err >&5
12841   echo "$as_me:12841: \$? = $ac_status" >&5
12842   if (exit $ac_status) && test -s "$ac_outfile"; then
12843     # The compiler can only warn and ignore the option if not recognized
12844     # So say no if there are warnings other than the usual output.
12845     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12846     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12847     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12848       lt_cv_prog_compiler_pic_works_CXX=yes
12849     fi
12850   fi
12851   $rm conftest*
12852
12853fi
12854{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12855echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12856
12857if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12858    case $lt_prog_compiler_pic_CXX in
12859     "" | " "*) ;;
12860     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12861     esac
12862else
12863    lt_prog_compiler_pic_CXX=
12864     lt_prog_compiler_can_build_shared_CXX=no
12865fi
12866
12867fi
12868case $host_os in
12869  # For platforms which do not support PIC, -DPIC is meaningless:
12870  *djgpp*)
12871    lt_prog_compiler_pic_CXX=
12872    ;;
12873  *)
12874    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12875    ;;
12876esac
12877
12878#
12879# Check to make sure the static flag actually works.
12880#
12881wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12882{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12883echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12884if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12885  echo $ECHO_N "(cached) $ECHO_C" >&6
12886else
12887  lt_cv_prog_compiler_static_works_CXX=no
12888   save_LDFLAGS="$LDFLAGS"
12889   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12890   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12891   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12892     # The linker can only warn and ignore the option if not recognized
12893     # So say no if there are warnings
12894     if test -s conftest.err; then
12895       # Append any errors to the config.log.
12896       cat conftest.err 1>&5
12897       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12898       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12899       if diff conftest.exp conftest.er2 >/dev/null; then
12900         lt_cv_prog_compiler_static_works_CXX=yes
12901       fi
12902     else
12903       lt_cv_prog_compiler_static_works_CXX=yes
12904     fi
12905   fi
12906   $rm -r conftest*
12907   LDFLAGS="$save_LDFLAGS"
12908
12909fi
12910{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12911echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12912
12913if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12914    :
12915else
12916    lt_prog_compiler_static_CXX=
12917fi
12918
12919
12920{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12921echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12922if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12923  echo $ECHO_N "(cached) $ECHO_C" >&6
12924else
12925  lt_cv_prog_compiler_c_o_CXX=no
12926   $rm -r conftest 2>/dev/null
12927   mkdir conftest
12928   cd conftest
12929   mkdir out
12930   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12931
12932   lt_compiler_flag="-o out/conftest2.$ac_objext"
12933   # Insert the option either (1) after the last *FLAGS variable, or
12934   # (2) before a word containing "conftest.", or (3) at the end.
12935   # Note that $ac_compile itself does not contain backslashes and begins
12936   # with a dollar sign (not a hyphen), so the echo should work correctly.
12937   lt_compile=`echo "$ac_compile" | $SED \
12938   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12939   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12940   -e 's:$: $lt_compiler_flag:'`
12941   (eval echo "\"\$as_me:12941: $lt_compile\"" >&5)
12942   (eval "$lt_compile" 2>out/conftest.err)
12943   ac_status=$?
12944   cat out/conftest.err >&5
12945   echo "$as_me:12945: \$? = $ac_status" >&5
12946   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12947   then
12948     # The compiler can only warn and ignore the option if not recognized
12949     # So say no if there are warnings
12950     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12951     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12952     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12953       lt_cv_prog_compiler_c_o_CXX=yes
12954     fi
12955   fi
12956   chmod u+w . 2>&5
12957   $rm conftest*
12958   # SGI C++ compiler will create directory out/ii_files/ for
12959   # template instantiation
12960   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12961   $rm out/* && rmdir out
12962   cd ..
12963   rmdir conftest
12964   $rm conftest*
12965
12966fi
12967{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12968echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12969
12970
12971hard_links="nottested"
12972if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12973  # do not overwrite the value of need_locks provided by the user
12974  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12975echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12976  hard_links=yes
12977  $rm conftest*
12978  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12979  touch conftest.a
12980  ln conftest.a conftest.b 2>&5 || hard_links=no
12981  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12982  { echo "$as_me:$LINENO: result: $hard_links" >&5
12983echo "${ECHO_T}$hard_links" >&6; }
12984  if test "$hard_links" = no; then
12985    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12986echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12987    need_locks=warn
12988  fi
12989else
12990  need_locks=no
12991fi
12992
12993{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12994echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12995
12996  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12997  case $host_os in
12998  aix[4-9]*)
12999    # If we're using GNU nm, then we don't want the "-C" option.
13000    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13001    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13002      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'
13003    else
13004      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'
13005    fi
13006    ;;
13007  pw32*)
13008    export_symbols_cmds_CXX="$ltdll_cmds"
13009  ;;
13010  cygwin* | mingw*)
13011    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'
13012  ;;
13013  linux* | k*bsd*-gnu)
13014    link_all_deplibs_CXX=no
13015  ;;
13016  *)
13017    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13018  ;;
13019  esac
13020  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13021
13022{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13023echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13024test "$ld_shlibs_CXX" = no && can_build_shared=no
13025
13026#
13027# Do we need to explicitly link libc?
13028#
13029case "x$archive_cmds_need_lc_CXX" in
13030x|xyes)
13031  # Assume -lc should be added
13032  archive_cmds_need_lc_CXX=yes
13033
13034  if test "$enable_shared" = yes && test "$GCC" = yes; then
13035    case $archive_cmds_CXX in
13036    *'~'*)
13037      # FIXME: we may have to deal with multi-command sequences.
13038      ;;
13039    '$CC '*)
13040      # Test whether the compiler implicitly links with -lc since on some
13041      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13042      # to ld, don't add -lc before -lgcc.
13043      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13044echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13045      $rm conftest*
13046      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13047
13048      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049  (eval $ac_compile) 2>&5
13050  ac_status=$?
13051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052  (exit $ac_status); } 2>conftest.err; then
13053        soname=conftest
13054        lib=conftest
13055        libobjs=conftest.$ac_objext
13056        deplibs=
13057        wl=$lt_prog_compiler_wl_CXX
13058	pic_flag=$lt_prog_compiler_pic_CXX
13059        compiler_flags=-v
13060        linker_flags=-v
13061        verstring=
13062        output_objdir=.
13063        libname=conftest
13064        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13065        allow_undefined_flag_CXX=
13066        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13067  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13068  ac_status=$?
13069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070  (exit $ac_status); }
13071        then
13072	  archive_cmds_need_lc_CXX=no
13073        else
13074	  archive_cmds_need_lc_CXX=yes
13075        fi
13076        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13077      else
13078        cat conftest.err 1>&5
13079      fi
13080      $rm conftest*
13081      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13082echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13083      ;;
13084    esac
13085  fi
13086  ;;
13087esac
13088
13089{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13090echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13091library_names_spec=
13092libname_spec='lib$name'
13093soname_spec=
13094shrext_cmds=".so"
13095postinstall_cmds=
13096postuninstall_cmds=
13097finish_cmds=
13098finish_eval=
13099shlibpath_var=
13100shlibpath_overrides_runpath=unknown
13101version_type=none
13102dynamic_linker="$host_os ld.so"
13103sys_lib_dlsearch_path_spec="/lib /usr/lib"
13104
13105need_lib_prefix=unknown
13106hardcode_into_libs=no
13107
13108# when you set need_version to no, make sure it does not cause -set_version
13109# flags to be left without arguments
13110need_version=unknown
13111
13112case $host_os in
13113aix3*)
13114  version_type=linux
13115  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13116  shlibpath_var=LIBPATH
13117
13118  # AIX 3 has no versioning support, so we append a major version to the name.
13119  soname_spec='${libname}${release}${shared_ext}$major'
13120  ;;
13121
13122aix[4-9]*)
13123  version_type=linux
13124  need_lib_prefix=no
13125  need_version=no
13126  hardcode_into_libs=yes
13127  if test "$host_cpu" = ia64; then
13128    # AIX 5 supports IA64
13129    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13130    shlibpath_var=LD_LIBRARY_PATH
13131  else
13132    # With GCC up to 2.95.x, collect2 would create an import file
13133    # for dependence libraries.  The import file would start with
13134    # the line `#! .'.  This would cause the generated library to
13135    # depend on `.', always an invalid library.  This was fixed in
13136    # development snapshots of GCC prior to 3.0.
13137    case $host_os in
13138      aix4 | aix4.[01] | aix4.[01].*)
13139      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13140	   echo ' yes '
13141	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13142	:
13143      else
13144	can_build_shared=no
13145      fi
13146      ;;
13147    esac
13148    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13149    # soname into executable. Probably we can add versioning support to
13150    # collect2, so additional links can be useful in future.
13151    if test "$aix_use_runtimelinking" = yes; then
13152      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13153      # instead of lib<name>.a to let people know that these are not
13154      # typical AIX shared libraries.
13155      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156    else
13157      # We preserve .a as extension for shared libraries through AIX4.2
13158      # and later when we are not doing run time linking.
13159      library_names_spec='${libname}${release}.a $libname.a'
13160      soname_spec='${libname}${release}${shared_ext}$major'
13161    fi
13162    shlibpath_var=LIBPATH
13163  fi
13164  ;;
13165
13166amigaos*)
13167  library_names_spec='$libname.ixlibrary $libname.a'
13168  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13169  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'
13170  ;;
13171
13172beos*)
13173  library_names_spec='${libname}${shared_ext}'
13174  dynamic_linker="$host_os ld.so"
13175  shlibpath_var=LIBRARY_PATH
13176  ;;
13177
13178bsdi[45]*)
13179  version_type=linux
13180  need_version=no
13181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13182  soname_spec='${libname}${release}${shared_ext}$major'
13183  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13184  shlibpath_var=LD_LIBRARY_PATH
13185  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13186  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13187  # the default ld.so.conf also contains /usr/contrib/lib and
13188  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13189  # libtool to hard-code these into programs
13190  ;;
13191
13192cygwin* | mingw* | pw32*)
13193  version_type=windows
13194  shrext_cmds=".dll"
13195  need_version=no
13196  need_lib_prefix=no
13197
13198  case $GCC,$host_os in
13199  yes,cygwin* | yes,mingw* | yes,pw32*)
13200    library_names_spec='$libname.dll.a'
13201    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13202    postinstall_cmds='base_file=`basename \${file}`~
13203      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13204      dldir=$destdir/`dirname \$dlpath`~
13205      test -d \$dldir || mkdir -p \$dldir~
13206      $install_prog $dir/$dlname \$dldir/$dlname~
13207      chmod a+x \$dldir/$dlname'
13208    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13209      dlpath=$dir/\$dldll~
13210       $rm \$dlpath'
13211    shlibpath_overrides_runpath=yes
13212
13213    case $host_os in
13214    cygwin*)
13215      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13216      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13217      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13218      ;;
13219    mingw*)
13220      # MinGW DLLs use traditional 'lib' prefix
13221      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13222      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13223      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13224        # It is most probably a Windows format PATH printed by
13225        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13226        # path with ; separators, and with drive letters. We can handle the
13227        # drive letters (cygwin fileutils understands them), so leave them,
13228        # especially as we might pass files found there to a mingw objdump,
13229        # which wouldn't understand a cygwinified path. Ahh.
13230        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13231      else
13232        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13233      fi
13234      ;;
13235    pw32*)
13236      # pw32 DLLs use 'pw' prefix rather than 'lib'
13237      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13238      ;;
13239    esac
13240    ;;
13241
13242  *)
13243    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13244    ;;
13245  esac
13246  dynamic_linker='Win32 ld.exe'
13247  # FIXME: first we should search . and the directory the executable is in
13248  shlibpath_var=PATH
13249  ;;
13250
13251darwin* | rhapsody*)
13252  dynamic_linker="$host_os dyld"
13253  version_type=darwin
13254  need_lib_prefix=no
13255  need_version=no
13256  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13257  soname_spec='${libname}${release}${major}$shared_ext'
13258  shlibpath_overrides_runpath=yes
13259  shlibpath_var=DYLD_LIBRARY_PATH
13260  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13261
13262  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13263  ;;
13264
13265dgux*)
13266  version_type=linux
13267  need_lib_prefix=no
13268  need_version=no
13269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13270  soname_spec='${libname}${release}${shared_ext}$major'
13271  shlibpath_var=LD_LIBRARY_PATH
13272  ;;
13273
13274freebsd1*)
13275  dynamic_linker=no
13276  ;;
13277
13278freebsd* | dragonfly*)
13279  # DragonFly does not have aout.  When/if they implement a new
13280  # versioning mechanism, adjust this.
13281  if test -x /usr/bin/objformat; then
13282    objformat=`/usr/bin/objformat`
13283  else
13284    case $host_os in
13285    freebsd[123]*) objformat=aout ;;
13286    *) objformat=elf ;;
13287    esac
13288  fi
13289  version_type=freebsd-$objformat
13290  case $version_type in
13291    freebsd-elf*)
13292      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13293      need_version=no
13294      need_lib_prefix=no
13295      ;;
13296    freebsd-*)
13297      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13298      need_version=yes
13299      ;;
13300  esac
13301  shlibpath_var=LD_LIBRARY_PATH
13302  case $host_os in
13303  freebsd2*)
13304    shlibpath_overrides_runpath=yes
13305    ;;
13306  freebsd3.[01]* | freebsdelf3.[01]*)
13307    shlibpath_overrides_runpath=yes
13308    hardcode_into_libs=yes
13309    ;;
13310  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13311  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13312    shlibpath_overrides_runpath=no
13313    hardcode_into_libs=yes
13314    ;;
13315  *) # from 4.6 on, and DragonFly
13316    shlibpath_overrides_runpath=yes
13317    hardcode_into_libs=yes
13318    ;;
13319  esac
13320  ;;
13321
13322gnu*)
13323  version_type=linux
13324  need_lib_prefix=no
13325  need_version=no
13326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13327  soname_spec='${libname}${release}${shared_ext}$major'
13328  shlibpath_var=LD_LIBRARY_PATH
13329  hardcode_into_libs=yes
13330  ;;
13331
13332hpux9* | hpux10* | hpux11*)
13333  # Give a soname corresponding to the major version so that dld.sl refuses to
13334  # link against other versions.
13335  version_type=sunos
13336  need_lib_prefix=no
13337  need_version=no
13338  case $host_cpu in
13339  ia64*)
13340    shrext_cmds='.so'
13341    hardcode_into_libs=yes
13342    dynamic_linker="$host_os dld.so"
13343    shlibpath_var=LD_LIBRARY_PATH
13344    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13345    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13346    soname_spec='${libname}${release}${shared_ext}$major'
13347    if test "X$HPUX_IA64_MODE" = X32; then
13348      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13349    else
13350      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13351    fi
13352    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13353    ;;
13354   hppa*64*)
13355     shrext_cmds='.sl'
13356     hardcode_into_libs=yes
13357     dynamic_linker="$host_os dld.sl"
13358     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13359     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361     soname_spec='${libname}${release}${shared_ext}$major'
13362     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13363     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13364     ;;
13365   *)
13366    shrext_cmds='.sl'
13367    dynamic_linker="$host_os dld.sl"
13368    shlibpath_var=SHLIB_PATH
13369    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13370    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13371    soname_spec='${libname}${release}${shared_ext}$major'
13372    ;;
13373  esac
13374  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13375  postinstall_cmds='chmod 555 $lib'
13376  ;;
13377
13378interix[3-9]*)
13379  version_type=linux
13380  need_lib_prefix=no
13381  need_version=no
13382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13383  soname_spec='${libname}${release}${shared_ext}$major'
13384  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13385  shlibpath_var=LD_LIBRARY_PATH
13386  shlibpath_overrides_runpath=no
13387  hardcode_into_libs=yes
13388  ;;
13389
13390irix5* | irix6* | nonstopux*)
13391  case $host_os in
13392    nonstopux*) version_type=nonstopux ;;
13393    *)
13394	if test "$lt_cv_prog_gnu_ld" = yes; then
13395		version_type=linux
13396	else
13397		version_type=irix
13398	fi ;;
13399  esac
13400  need_lib_prefix=no
13401  need_version=no
13402  soname_spec='${libname}${release}${shared_ext}$major'
13403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13404  case $host_os in
13405  irix5* | nonstopux*)
13406    libsuff= shlibsuff=
13407    ;;
13408  *)
13409    case $LD in # libtool.m4 will add one of these switches to LD
13410    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13411      libsuff= shlibsuff= libmagic=32-bit;;
13412    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13413      libsuff=32 shlibsuff=N32 libmagic=N32;;
13414    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13415      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13416    *) libsuff= shlibsuff= libmagic=never-match;;
13417    esac
13418    ;;
13419  esac
13420  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13421  shlibpath_overrides_runpath=no
13422  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13423  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13424  hardcode_into_libs=yes
13425  ;;
13426
13427# No shared lib support for Linux oldld, aout, or coff.
13428linux*oldld* | linux*aout* | linux*coff*)
13429  dynamic_linker=no
13430  ;;
13431
13432# This must be Linux ELF.
13433linux* | k*bsd*-gnu)
13434  version_type=linux
13435  need_lib_prefix=no
13436  need_version=no
13437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13438  soname_spec='${libname}${release}${shared_ext}$major'
13439  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13440  shlibpath_var=LD_LIBRARY_PATH
13441  shlibpath_overrides_runpath=no
13442  # This implies no fast_install, which is unacceptable.
13443  # Some rework will be needed to allow for fast_install
13444  # before this can be enabled.
13445  hardcode_into_libs=yes
13446
13447  # Append ld.so.conf contents to the search path
13448  if test -f /etc/ld.so.conf; then
13449    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' ' '`
13450    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13451  fi
13452
13453  # We used to test for /lib/ld.so.1 and disable shared libraries on
13454  # powerpc, because MkLinux only supported shared libraries with the
13455  # GNU dynamic linker.  Since this was broken with cross compilers,
13456  # most powerpc-linux boxes support dynamic linking these days and
13457  # people can always --disable-shared, the test was removed, and we
13458  # assume the GNU/Linux dynamic linker is in use.
13459  dynamic_linker='GNU/Linux ld.so'
13460  ;;
13461
13462netbsdelf*-gnu)
13463  version_type=linux
13464  need_lib_prefix=no
13465  need_version=no
13466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13467  soname_spec='${libname}${release}${shared_ext}$major'
13468  shlibpath_var=LD_LIBRARY_PATH
13469  shlibpath_overrides_runpath=no
13470  hardcode_into_libs=yes
13471  dynamic_linker='NetBSD ld.elf_so'
13472  ;;
13473
13474netbsd*)
13475  version_type=sunos
13476  need_lib_prefix=no
13477  need_version=no
13478  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13479    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13480    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13481    dynamic_linker='NetBSD (a.out) ld.so'
13482  else
13483    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13484    soname_spec='${libname}${release}${shared_ext}$major'
13485    dynamic_linker='NetBSD ld.elf_so'
13486  fi
13487  shlibpath_var=LD_LIBRARY_PATH
13488  shlibpath_overrides_runpath=yes
13489  hardcode_into_libs=yes
13490  ;;
13491
13492newsos6)
13493  version_type=linux
13494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495  shlibpath_var=LD_LIBRARY_PATH
13496  shlibpath_overrides_runpath=yes
13497  ;;
13498
13499nto-qnx*)
13500  version_type=linux
13501  need_lib_prefix=no
13502  need_version=no
13503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504  soname_spec='${libname}${release}${shared_ext}$major'
13505  shlibpath_var=LD_LIBRARY_PATH
13506  shlibpath_overrides_runpath=yes
13507  ;;
13508
13509openbsd*)
13510  version_type=sunos
13511  sys_lib_dlsearch_path_spec="/usr/lib"
13512  need_lib_prefix=no
13513  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13514  case $host_os in
13515    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13516    *)                         need_version=no  ;;
13517  esac
13518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13519  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13520  shlibpath_var=LD_LIBRARY_PATH
13521  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13522    case $host_os in
13523      openbsd2.[89] | openbsd2.[89].*)
13524	shlibpath_overrides_runpath=no
13525	;;
13526      *)
13527	shlibpath_overrides_runpath=yes
13528	;;
13529      esac
13530  else
13531    shlibpath_overrides_runpath=yes
13532  fi
13533  ;;
13534
13535os2*)
13536  libname_spec='$name'
13537  shrext_cmds=".dll"
13538  need_lib_prefix=no
13539  library_names_spec='$libname${shared_ext} $libname.a'
13540  dynamic_linker='OS/2 ld.exe'
13541  shlibpath_var=LIBPATH
13542  ;;
13543
13544osf3* | osf4* | osf5*)
13545  version_type=osf
13546  need_lib_prefix=no
13547  need_version=no
13548  soname_spec='${libname}${release}${shared_ext}$major'
13549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550  shlibpath_var=LD_LIBRARY_PATH
13551  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13552  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13553  ;;
13554
13555rdos*)
13556  dynamic_linker=no
13557  ;;
13558
13559solaris*)
13560  version_type=linux
13561  need_lib_prefix=no
13562  need_version=no
13563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564  soname_spec='${libname}${release}${shared_ext}$major'
13565  shlibpath_var=LD_LIBRARY_PATH
13566  shlibpath_overrides_runpath=yes
13567  hardcode_into_libs=yes
13568  # ldd complains unless libraries are executable
13569  postinstall_cmds='chmod +x $lib'
13570  ;;
13571
13572sunos4*)
13573  version_type=sunos
13574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13575  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13576  shlibpath_var=LD_LIBRARY_PATH
13577  shlibpath_overrides_runpath=yes
13578  if test "$with_gnu_ld" = yes; then
13579    need_lib_prefix=no
13580  fi
13581  need_version=yes
13582  ;;
13583
13584sysv4 | sysv4.3*)
13585  version_type=linux
13586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13587  soname_spec='${libname}${release}${shared_ext}$major'
13588  shlibpath_var=LD_LIBRARY_PATH
13589  case $host_vendor in
13590    sni)
13591      shlibpath_overrides_runpath=no
13592      need_lib_prefix=no
13593      export_dynamic_flag_spec='${wl}-Blargedynsym'
13594      runpath_var=LD_RUN_PATH
13595      ;;
13596    siemens)
13597      need_lib_prefix=no
13598      ;;
13599    motorola)
13600      need_lib_prefix=no
13601      need_version=no
13602      shlibpath_overrides_runpath=no
13603      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13604      ;;
13605  esac
13606  ;;
13607
13608sysv4*MP*)
13609  if test -d /usr/nec ;then
13610    version_type=linux
13611    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13612    soname_spec='$libname${shared_ext}.$major'
13613    shlibpath_var=LD_LIBRARY_PATH
13614  fi
13615  ;;
13616
13617sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13618  version_type=freebsd-elf
13619  need_lib_prefix=no
13620  need_version=no
13621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13622  soname_spec='${libname}${release}${shared_ext}$major'
13623  shlibpath_var=LD_LIBRARY_PATH
13624  hardcode_into_libs=yes
13625  if test "$with_gnu_ld" = yes; then
13626    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13627    shlibpath_overrides_runpath=no
13628  else
13629    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13630    shlibpath_overrides_runpath=yes
13631    case $host_os in
13632      sco3.2v5*)
13633        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13634	;;
13635    esac
13636  fi
13637  sys_lib_dlsearch_path_spec='/usr/lib'
13638  ;;
13639
13640uts4*)
13641  version_type=linux
13642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13643  soname_spec='${libname}${release}${shared_ext}$major'
13644  shlibpath_var=LD_LIBRARY_PATH
13645  ;;
13646
13647*)
13648  dynamic_linker=no
13649  ;;
13650esac
13651{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13652echo "${ECHO_T}$dynamic_linker" >&6; }
13653test "$dynamic_linker" = no && can_build_shared=no
13654
13655if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13656  echo $ECHO_N "(cached) $ECHO_C" >&6
13657else
13658  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13659fi
13660
13661sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13662if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13663  echo $ECHO_N "(cached) $ECHO_C" >&6
13664else
13665  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13666fi
13667
13668sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13669
13670variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13671if test "$GCC" = yes; then
13672  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13673fi
13674
13675{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13676echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13677hardcode_action_CXX=
13678if test -n "$hardcode_libdir_flag_spec_CXX" || \
13679   test -n "$runpath_var_CXX" || \
13680   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13681
13682  # We can hardcode non-existant directories.
13683  if test "$hardcode_direct_CXX" != no &&
13684     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13685     # have to relink, otherwise we might link with an installed library
13686     # when we should be linking with a yet-to-be-installed one
13687     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13688     test "$hardcode_minus_L_CXX" != no; then
13689    # Linking always hardcodes the temporary library directory.
13690    hardcode_action_CXX=relink
13691  else
13692    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13693    hardcode_action_CXX=immediate
13694  fi
13695else
13696  # We cannot hardcode anything, or else we can only hardcode existing
13697  # directories.
13698  hardcode_action_CXX=unsupported
13699fi
13700{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13701echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13702
13703if test "$hardcode_action_CXX" = relink; then
13704  # Fast installation is not supported
13705  enable_fast_install=no
13706elif test "$shlibpath_overrides_runpath" = yes ||
13707     test "$enable_shared" = no; then
13708  # Fast installation is not necessary
13709  enable_fast_install=needless
13710fi
13711
13712
13713# The else clause should only fire when bootstrapping the
13714# libtool distribution, otherwise you forgot to ship ltmain.sh
13715# with your package, and you will get complaints that there are
13716# no rules to generate ltmain.sh.
13717if test -f "$ltmain"; then
13718  # See if we are running on zsh, and set the options which allow our commands through
13719  # without removal of \ escapes.
13720  if test -n "${ZSH_VERSION+set}" ; then
13721    setopt NO_GLOB_SUBST
13722  fi
13723  # Now quote all the things that may contain metacharacters while being
13724  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13725  # variables and quote the copies for generation of the libtool script.
13726  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13727    SED SHELL STRIP \
13728    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13729    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13730    deplibs_check_method reload_flag reload_cmds need_locks \
13731    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13732    lt_cv_sys_global_symbol_to_c_name_address \
13733    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13734    old_postinstall_cmds old_postuninstall_cmds \
13735    compiler_CXX \
13736    CC_CXX \
13737    LD_CXX \
13738    lt_prog_compiler_wl_CXX \
13739    lt_prog_compiler_pic_CXX \
13740    lt_prog_compiler_static_CXX \
13741    lt_prog_compiler_no_builtin_flag_CXX \
13742    export_dynamic_flag_spec_CXX \
13743    thread_safe_flag_spec_CXX \
13744    whole_archive_flag_spec_CXX \
13745    enable_shared_with_static_runtimes_CXX \
13746    old_archive_cmds_CXX \
13747    old_archive_from_new_cmds_CXX \
13748    predep_objects_CXX \
13749    postdep_objects_CXX \
13750    predeps_CXX \
13751    postdeps_CXX \
13752    compiler_lib_search_path_CXX \
13753    compiler_lib_search_dirs_CXX \
13754    archive_cmds_CXX \
13755    archive_expsym_cmds_CXX \
13756    postinstall_cmds_CXX \
13757    postuninstall_cmds_CXX \
13758    old_archive_from_expsyms_cmds_CXX \
13759    allow_undefined_flag_CXX \
13760    no_undefined_flag_CXX \
13761    export_symbols_cmds_CXX \
13762    hardcode_libdir_flag_spec_CXX \
13763    hardcode_libdir_flag_spec_ld_CXX \
13764    hardcode_libdir_separator_CXX \
13765    hardcode_automatic_CXX \
13766    module_cmds_CXX \
13767    module_expsym_cmds_CXX \
13768    lt_cv_prog_compiler_c_o_CXX \
13769    fix_srcfile_path_CXX \
13770    exclude_expsyms_CXX \
13771    include_expsyms_CXX; do
13772
13773    case $var in
13774    old_archive_cmds_CXX | \
13775    old_archive_from_new_cmds_CXX | \
13776    archive_cmds_CXX | \
13777    archive_expsym_cmds_CXX | \
13778    module_cmds_CXX | \
13779    module_expsym_cmds_CXX | \
13780    old_archive_from_expsyms_cmds_CXX | \
13781    export_symbols_cmds_CXX | \
13782    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13783    postinstall_cmds | postuninstall_cmds | \
13784    old_postinstall_cmds | old_postuninstall_cmds | \
13785    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13786      # Double-quote double-evaled strings.
13787      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13788      ;;
13789    *)
13790      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13791      ;;
13792    esac
13793  done
13794
13795  case $lt_echo in
13796  *'\$0 --fallback-echo"')
13797    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13798    ;;
13799  esac
13800
13801cfgfile="$ofile"
13802
13803  cat <<__EOF__ >> "$cfgfile"
13804# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13805
13806# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13807
13808# Shell to use when invoking shell scripts.
13809SHELL=$lt_SHELL
13810
13811# Whether or not to build shared libraries.
13812build_libtool_libs=$enable_shared
13813
13814# Whether or not to build static libraries.
13815build_old_libs=$enable_static
13816
13817# Whether or not to add -lc for building shared libraries.
13818build_libtool_need_lc=$archive_cmds_need_lc_CXX
13819
13820# Whether or not to disallow shared libs when runtime libs are static
13821allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13822
13823# Whether or not to optimize for fast installation.
13824fast_install=$enable_fast_install
13825
13826# The host system.
13827host_alias=$host_alias
13828host=$host
13829host_os=$host_os
13830
13831# The build system.
13832build_alias=$build_alias
13833build=$build
13834build_os=$build_os
13835
13836# An echo program that does not interpret backslashes.
13837echo=$lt_echo
13838
13839# The archiver.
13840AR=$lt_AR
13841AR_FLAGS=$lt_AR_FLAGS
13842
13843# A C compiler.
13844LTCC=$lt_LTCC
13845
13846# LTCC compiler flags.
13847LTCFLAGS=$lt_LTCFLAGS
13848
13849# A language-specific compiler.
13850CC=$lt_compiler_CXX
13851
13852# Is the compiler the GNU C compiler?
13853with_gcc=$GCC_CXX
13854
13855# An ERE matcher.
13856EGREP=$lt_EGREP
13857
13858# The linker used to build libraries.
13859LD=$lt_LD_CXX
13860
13861# Whether we need hard or soft links.
13862LN_S=$lt_LN_S
13863
13864# A BSD-compatible nm program.
13865NM=$lt_NM
13866
13867# A symbol stripping program
13868STRIP=$lt_STRIP
13869
13870# Used to examine libraries when file_magic_cmd begins "file"
13871MAGIC_CMD=$MAGIC_CMD
13872
13873# Used on cygwin: DLL creation program.
13874DLLTOOL="$DLLTOOL"
13875
13876# Used on cygwin: object dumper.
13877OBJDUMP="$OBJDUMP"
13878
13879# Used on cygwin: assembler.
13880AS="$AS"
13881
13882# The name of the directory that contains temporary libtool files.
13883objdir=$objdir
13884
13885# How to create reloadable object files.
13886reload_flag=$lt_reload_flag
13887reload_cmds=$lt_reload_cmds
13888
13889# How to pass a linker flag through the compiler.
13890wl=$lt_lt_prog_compiler_wl_CXX
13891
13892# Object file suffix (normally "o").
13893objext="$ac_objext"
13894
13895# Old archive suffix (normally "a").
13896libext="$libext"
13897
13898# Shared library suffix (normally ".so").
13899shrext_cmds='$shrext_cmds'
13900
13901# Executable file suffix (normally "").
13902exeext="$exeext"
13903
13904# Additional compiler flags for building library objects.
13905pic_flag=$lt_lt_prog_compiler_pic_CXX
13906pic_mode=$pic_mode
13907
13908# What is the maximum length of a command?
13909max_cmd_len=$lt_cv_sys_max_cmd_len
13910
13911# Does compiler simultaneously support -c and -o options?
13912compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13913
13914# Must we lock files when doing compilation?
13915need_locks=$lt_need_locks
13916
13917# Do we need the lib prefix for modules?
13918need_lib_prefix=$need_lib_prefix
13919
13920# Do we need a version for libraries?
13921need_version=$need_version
13922
13923# Whether dlopen is supported.
13924dlopen_support=$enable_dlopen
13925
13926# Whether dlopen of programs is supported.
13927dlopen_self=$enable_dlopen_self
13928
13929# Whether dlopen of statically linked programs is supported.
13930dlopen_self_static=$enable_dlopen_self_static
13931
13932# Compiler flag to prevent dynamic linking.
13933link_static_flag=$lt_lt_prog_compiler_static_CXX
13934
13935# Compiler flag to turn off builtin functions.
13936no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13937
13938# Compiler flag to allow reflexive dlopens.
13939export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13940
13941# Compiler flag to generate shared objects directly from archives.
13942whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13943
13944# Compiler flag to generate thread-safe objects.
13945thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13946
13947# Library versioning type.
13948version_type=$version_type
13949
13950# Format of library name prefix.
13951libname_spec=$lt_libname_spec
13952
13953# List of archive names.  First name is the real one, the rest are links.
13954# The last name is the one that the linker finds with -lNAME.
13955library_names_spec=$lt_library_names_spec
13956
13957# The coded name of the library, if different from the real name.
13958soname_spec=$lt_soname_spec
13959
13960# Commands used to build and install an old-style archive.
13961RANLIB=$lt_RANLIB
13962old_archive_cmds=$lt_old_archive_cmds_CXX
13963old_postinstall_cmds=$lt_old_postinstall_cmds
13964old_postuninstall_cmds=$lt_old_postuninstall_cmds
13965
13966# Create an old-style archive from a shared archive.
13967old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13968
13969# Create a temporary old-style archive to link instead of a shared archive.
13970old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13971
13972# Commands used to build and install a shared archive.
13973archive_cmds=$lt_archive_cmds_CXX
13974archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13975postinstall_cmds=$lt_postinstall_cmds
13976postuninstall_cmds=$lt_postuninstall_cmds
13977
13978# Commands used to build a loadable module (assumed same as above if empty)
13979module_cmds=$lt_module_cmds_CXX
13980module_expsym_cmds=$lt_module_expsym_cmds_CXX
13981
13982# Commands to strip libraries.
13983old_striplib=$lt_old_striplib
13984striplib=$lt_striplib
13985
13986# Dependencies to place before the objects being linked to create a
13987# shared library.
13988predep_objects=$lt_predep_objects_CXX
13989
13990# Dependencies to place after the objects being linked to create a
13991# shared library.
13992postdep_objects=$lt_postdep_objects_CXX
13993
13994# Dependencies to place before the objects being linked to create a
13995# shared library.
13996predeps=$lt_predeps_CXX
13997
13998# Dependencies to place after the objects being linked to create a
13999# shared library.
14000postdeps=$lt_postdeps_CXX
14001
14002# The directories searched by this compiler when creating a shared
14003# library
14004compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14005
14006# The library search path used internally by the compiler when linking
14007# a shared library.
14008compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14009
14010# Method to check whether dependent libraries are shared objects.
14011deplibs_check_method=$lt_deplibs_check_method
14012
14013# Command to use when deplibs_check_method == file_magic.
14014file_magic_cmd=$lt_file_magic_cmd
14015
14016# Flag that allows shared libraries with undefined symbols to be built.
14017allow_undefined_flag=$lt_allow_undefined_flag_CXX
14018
14019# Flag that forces no undefined symbols.
14020no_undefined_flag=$lt_no_undefined_flag_CXX
14021
14022# Commands used to finish a libtool library installation in a directory.
14023finish_cmds=$lt_finish_cmds
14024
14025# Same as above, but a single script fragment to be evaled but not shown.
14026finish_eval=$lt_finish_eval
14027
14028# Take the output of nm and produce a listing of raw symbols and C names.
14029global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14030
14031# Transform the output of nm in a proper C declaration
14032global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14033
14034# Transform the output of nm in a C name address pair
14035global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14036
14037# This is the shared library runtime path variable.
14038runpath_var=$runpath_var
14039
14040# This is the shared library path variable.
14041shlibpath_var=$shlibpath_var
14042
14043# Is shlibpath searched before the hard-coded library search path?
14044shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14045
14046# How to hardcode a shared library path into an executable.
14047hardcode_action=$hardcode_action_CXX
14048
14049# Whether we should hardcode library paths into libraries.
14050hardcode_into_libs=$hardcode_into_libs
14051
14052# Flag to hardcode \$libdir into a binary during linking.
14053# This must work even if \$libdir does not exist.
14054hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14055
14056# If ld is used when linking, flag to hardcode \$libdir into
14057# a binary during linking. This must work even if \$libdir does
14058# not exist.
14059hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14060
14061# Whether we need a single -rpath flag with a separated argument.
14062hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14063
14064# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14065# resulting binary.
14066hardcode_direct=$hardcode_direct_CXX
14067
14068# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14069# resulting binary.
14070hardcode_minus_L=$hardcode_minus_L_CXX
14071
14072# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14073# the resulting binary.
14074hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14075
14076# Set to yes if building a shared library automatically hardcodes DIR into the library
14077# and all subsequent libraries and executables linked against it.
14078hardcode_automatic=$hardcode_automatic_CXX
14079
14080# Variables whose values should be saved in libtool wrapper scripts and
14081# restored at relink time.
14082variables_saved_for_relink="$variables_saved_for_relink"
14083
14084# Whether libtool must link a program against all its dependency libraries.
14085link_all_deplibs=$link_all_deplibs_CXX
14086
14087# Compile-time system search path for libraries
14088sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14089
14090# Run-time system search path for libraries
14091sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14092
14093# Fix the shell variable \$srcfile for the compiler.
14094fix_srcfile_path=$lt_fix_srcfile_path
14095
14096# Set to yes if exported symbols are required.
14097always_export_symbols=$always_export_symbols_CXX
14098
14099# The commands to list exported symbols.
14100export_symbols_cmds=$lt_export_symbols_cmds_CXX
14101
14102# The commands to extract the exported symbol list from a shared archive.
14103extract_expsyms_cmds=$lt_extract_expsyms_cmds
14104
14105# Symbols that should not be listed in the preloaded symbols.
14106exclude_expsyms=$lt_exclude_expsyms_CXX
14107
14108# Symbols that must always be exported.
14109include_expsyms=$lt_include_expsyms_CXX
14110
14111# ### END LIBTOOL TAG CONFIG: $tagname
14112
14113__EOF__
14114
14115
14116else
14117  # If there is no Makefile yet, we rely on a make rule to execute
14118  # `config.status --recheck' to rerun these tests and create the
14119  # libtool script then.
14120  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14121  if test -f "$ltmain_in"; then
14122    test -f Makefile && make "$ltmain"
14123  fi
14124fi
14125
14126
14127ac_ext=c
14128ac_cpp='$CPP $CPPFLAGS'
14129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14131ac_compiler_gnu=$ac_cv_c_compiler_gnu
14132
14133CC=$lt_save_CC
14134LDCXX=$LD
14135LD=$lt_save_LD
14136GCC=$lt_save_GCC
14137with_gnu_ldcxx=$with_gnu_ld
14138with_gnu_ld=$lt_save_with_gnu_ld
14139lt_cv_path_LDCXX=$lt_cv_path_LD
14140lt_cv_path_LD=$lt_save_path_LD
14141lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14142lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14143
14144	else
14145	  tagname=""
14146	fi
14147	;;
14148
14149      F77)
14150	if test -n "$F77" && test "X$F77" != "Xno"; then
14151
14152ac_ext=f
14153ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14154ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14156
14157
14158archive_cmds_need_lc_F77=no
14159allow_undefined_flag_F77=
14160always_export_symbols_F77=no
14161archive_expsym_cmds_F77=
14162export_dynamic_flag_spec_F77=
14163hardcode_direct_F77=no
14164hardcode_libdir_flag_spec_F77=
14165hardcode_libdir_flag_spec_ld_F77=
14166hardcode_libdir_separator_F77=
14167hardcode_minus_L_F77=no
14168hardcode_automatic_F77=no
14169module_cmds_F77=
14170module_expsym_cmds_F77=
14171link_all_deplibs_F77=unknown
14172old_archive_cmds_F77=$old_archive_cmds
14173no_undefined_flag_F77=
14174whole_archive_flag_spec_F77=
14175enable_shared_with_static_runtimes_F77=no
14176
14177# Source file extension for f77 test sources.
14178ac_ext=f
14179
14180# Object file extension for compiled f77 test sources.
14181objext=o
14182objext_F77=$objext
14183
14184# Code to be used in simple compile tests
14185lt_simple_compile_test_code="\
14186      subroutine t
14187      return
14188      end
14189"
14190
14191# Code to be used in simple link tests
14192lt_simple_link_test_code="\
14193      program t
14194      end
14195"
14196
14197# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14198
14199# If no C compiler was specified, use CC.
14200LTCC=${LTCC-"$CC"}
14201
14202# If no C compiler flags were specified, use CFLAGS.
14203LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14204
14205# Allow CC to be a program name with arguments.
14206compiler=$CC
14207
14208
14209# save warnings/boilerplate of simple test code
14210ac_outfile=conftest.$ac_objext
14211echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14212eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14213_lt_compiler_boilerplate=`cat conftest.err`
14214$rm conftest*
14215
14216ac_outfile=conftest.$ac_objext
14217echo "$lt_simple_link_test_code" >conftest.$ac_ext
14218eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14219_lt_linker_boilerplate=`cat conftest.err`
14220$rm -r conftest*
14221
14222
14223# Allow CC to be a program name with arguments.
14224lt_save_CC="$CC"
14225CC=${F77-"f77"}
14226compiler=$CC
14227compiler_F77=$CC
14228for cc_temp in $compiler""; do
14229  case $cc_temp in
14230    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14231    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14232    \-*) ;;
14233    *) break;;
14234  esac
14235done
14236cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14237
14238
14239{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14240echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14241{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14242echo "${ECHO_T}$can_build_shared" >&6; }
14243
14244{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14245echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14246test "$can_build_shared" = "no" && enable_shared=no
14247
14248# On AIX, shared libraries and static libraries use the same namespace, and
14249# are all built from PIC.
14250case $host_os in
14251aix3*)
14252  test "$enable_shared" = yes && enable_static=no
14253  if test -n "$RANLIB"; then
14254    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14255    postinstall_cmds='$RANLIB $lib'
14256  fi
14257  ;;
14258aix[4-9]*)
14259  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14260    test "$enable_shared" = yes && enable_static=no
14261  fi
14262  ;;
14263esac
14264{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14265echo "${ECHO_T}$enable_shared" >&6; }
14266
14267{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14268echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14269# Make sure either enable_shared or enable_static is yes.
14270test "$enable_shared" = yes || enable_static=yes
14271{ echo "$as_me:$LINENO: result: $enable_static" >&5
14272echo "${ECHO_T}$enable_static" >&6; }
14273
14274GCC_F77="$G77"
14275LD_F77="$LD"
14276
14277lt_prog_compiler_wl_F77=
14278lt_prog_compiler_pic_F77=
14279lt_prog_compiler_static_F77=
14280
14281{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14282echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14283
14284  if test "$GCC" = yes; then
14285    lt_prog_compiler_wl_F77='-Wl,'
14286    lt_prog_compiler_static_F77='-static'
14287
14288    case $host_os in
14289      aix*)
14290      # All AIX code is PIC.
14291      if test "$host_cpu" = ia64; then
14292	# AIX 5 now supports IA64 processor
14293	lt_prog_compiler_static_F77='-Bstatic'
14294      fi
14295      ;;
14296
14297    amigaos*)
14298      # FIXME: we need at least 68020 code to build shared libraries, but
14299      # adding the `-m68020' flag to GCC prevents building anything better,
14300      # like `-m68040'.
14301      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14302      ;;
14303
14304    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14305      # PIC is the default for these OSes.
14306      ;;
14307
14308    mingw* | cygwin* | pw32* | os2*)
14309      # This hack is so that the source file can tell whether it is being
14310      # built for inclusion in a dll (and should export symbols for example).
14311      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14312      # (--disable-auto-import) libraries
14313      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14314      ;;
14315
14316    darwin* | rhapsody*)
14317      # PIC is the default on this platform
14318      # Common symbols not allowed in MH_DYLIB files
14319      lt_prog_compiler_pic_F77='-fno-common'
14320      ;;
14321
14322    interix[3-9]*)
14323      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14324      # Instead, we relocate shared libraries at runtime.
14325      ;;
14326
14327    msdosdjgpp*)
14328      # Just because we use GCC doesn't mean we suddenly get shared libraries
14329      # on systems that don't support them.
14330      lt_prog_compiler_can_build_shared_F77=no
14331      enable_shared=no
14332      ;;
14333
14334    sysv4*MP*)
14335      if test -d /usr/nec; then
14336	lt_prog_compiler_pic_F77=-Kconform_pic
14337      fi
14338      ;;
14339
14340    hpux*)
14341      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14342      # not for PA HP-UX.
14343      case $host_cpu in
14344      hppa*64*|ia64*)
14345	# +Z the default
14346	;;
14347      *)
14348	lt_prog_compiler_pic_F77='-fPIC'
14349	;;
14350      esac
14351      ;;
14352
14353    *)
14354      lt_prog_compiler_pic_F77='-fPIC'
14355      ;;
14356    esac
14357  else
14358    # PORTME Check for flag to pass linker flags through the system compiler.
14359    case $host_os in
14360    aix*)
14361      lt_prog_compiler_wl_F77='-Wl,'
14362      if test "$host_cpu" = ia64; then
14363	# AIX 5 now supports IA64 processor
14364	lt_prog_compiler_static_F77='-Bstatic'
14365      else
14366	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14367      fi
14368      ;;
14369      darwin*)
14370        # PIC is the default on this platform
14371        # Common symbols not allowed in MH_DYLIB files
14372       case $cc_basename in
14373         xlc*)
14374         lt_prog_compiler_pic_F77='-qnocommon'
14375         lt_prog_compiler_wl_F77='-Wl,'
14376         ;;
14377       esac
14378       ;;
14379
14380    mingw* | cygwin* | pw32* | os2*)
14381      # This hack is so that the source file can tell whether it is being
14382      # built for inclusion in a dll (and should export symbols for example).
14383      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14384      ;;
14385
14386    hpux9* | hpux10* | hpux11*)
14387      lt_prog_compiler_wl_F77='-Wl,'
14388      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14389      # not for PA HP-UX.
14390      case $host_cpu in
14391      hppa*64*|ia64*)
14392	# +Z the default
14393	;;
14394      *)
14395	lt_prog_compiler_pic_F77='+Z'
14396	;;
14397      esac
14398      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14399      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14400      ;;
14401
14402    irix5* | irix6* | nonstopux*)
14403      lt_prog_compiler_wl_F77='-Wl,'
14404      # PIC (with -KPIC) is the default.
14405      lt_prog_compiler_static_F77='-non_shared'
14406      ;;
14407
14408    newsos6)
14409      lt_prog_compiler_pic_F77='-KPIC'
14410      lt_prog_compiler_static_F77='-Bstatic'
14411      ;;
14412
14413    linux* | k*bsd*-gnu)
14414      case $cc_basename in
14415      icc* | ecc*)
14416	lt_prog_compiler_wl_F77='-Wl,'
14417	lt_prog_compiler_pic_F77='-KPIC'
14418	lt_prog_compiler_static_F77='-static'
14419        ;;
14420      pgcc* | pgf77* | pgf90* | pgf95*)
14421        # Portland Group compilers (*not* the Pentium gcc compiler,
14422	# which looks to be a dead project)
14423	lt_prog_compiler_wl_F77='-Wl,'
14424	lt_prog_compiler_pic_F77='-fpic'
14425	lt_prog_compiler_static_F77='-Bstatic'
14426        ;;
14427      ccc*)
14428        lt_prog_compiler_wl_F77='-Wl,'
14429        # All Alpha code is PIC.
14430        lt_prog_compiler_static_F77='-non_shared'
14431        ;;
14432      *)
14433        case `$CC -V 2>&1 | sed 5q` in
14434	*Sun\ C*)
14435	  # Sun C 5.9
14436	  lt_prog_compiler_pic_F77='-KPIC'
14437	  lt_prog_compiler_static_F77='-Bstatic'
14438	  lt_prog_compiler_wl_F77='-Wl,'
14439	  ;;
14440	*Sun\ F*)
14441	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14442	  lt_prog_compiler_pic_F77='-KPIC'
14443	  lt_prog_compiler_static_F77='-Bstatic'
14444	  lt_prog_compiler_wl_F77=''
14445	  ;;
14446	esac
14447	;;
14448      esac
14449      ;;
14450
14451    osf3* | osf4* | osf5*)
14452      lt_prog_compiler_wl_F77='-Wl,'
14453      # All OSF/1 code is PIC.
14454      lt_prog_compiler_static_F77='-non_shared'
14455      ;;
14456
14457    rdos*)
14458      lt_prog_compiler_static_F77='-non_shared'
14459      ;;
14460
14461    solaris*)
14462      lt_prog_compiler_pic_F77='-KPIC'
14463      lt_prog_compiler_static_F77='-Bstatic'
14464      case $cc_basename in
14465      f77* | f90* | f95*)
14466	lt_prog_compiler_wl_F77='-Qoption ld ';;
14467      *)
14468	lt_prog_compiler_wl_F77='-Wl,';;
14469      esac
14470      ;;
14471
14472    sunos4*)
14473      lt_prog_compiler_wl_F77='-Qoption ld '
14474      lt_prog_compiler_pic_F77='-PIC'
14475      lt_prog_compiler_static_F77='-Bstatic'
14476      ;;
14477
14478    sysv4 | sysv4.2uw2* | sysv4.3*)
14479      lt_prog_compiler_wl_F77='-Wl,'
14480      lt_prog_compiler_pic_F77='-KPIC'
14481      lt_prog_compiler_static_F77='-Bstatic'
14482      ;;
14483
14484    sysv4*MP*)
14485      if test -d /usr/nec ;then
14486	lt_prog_compiler_pic_F77='-Kconform_pic'
14487	lt_prog_compiler_static_F77='-Bstatic'
14488      fi
14489      ;;
14490
14491    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14492      lt_prog_compiler_wl_F77='-Wl,'
14493      lt_prog_compiler_pic_F77='-KPIC'
14494      lt_prog_compiler_static_F77='-Bstatic'
14495      ;;
14496
14497    unicos*)
14498      lt_prog_compiler_wl_F77='-Wl,'
14499      lt_prog_compiler_can_build_shared_F77=no
14500      ;;
14501
14502    uts4*)
14503      lt_prog_compiler_pic_F77='-pic'
14504      lt_prog_compiler_static_F77='-Bstatic'
14505      ;;
14506
14507    *)
14508      lt_prog_compiler_can_build_shared_F77=no
14509      ;;
14510    esac
14511  fi
14512
14513{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14514echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14515
14516#
14517# Check to make sure the PIC flag actually works.
14518#
14519if test -n "$lt_prog_compiler_pic_F77"; then
14520
14521{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14522echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14523if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14524  echo $ECHO_N "(cached) $ECHO_C" >&6
14525else
14526  lt_cv_prog_compiler_pic_works_F77=no
14527  ac_outfile=conftest.$ac_objext
14528   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14529   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14530   # Insert the option either (1) after the last *FLAGS variable, or
14531   # (2) before a word containing "conftest.", or (3) at the end.
14532   # Note that $ac_compile itself does not contain backslashes and begins
14533   # with a dollar sign (not a hyphen), so the echo should work correctly.
14534   # The option is referenced via a variable to avoid confusing sed.
14535   lt_compile=`echo "$ac_compile" | $SED \
14536   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14537   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14538   -e 's:$: $lt_compiler_flag:'`
14539   (eval echo "\"\$as_me:14539: $lt_compile\"" >&5)
14540   (eval "$lt_compile" 2>conftest.err)
14541   ac_status=$?
14542   cat conftest.err >&5
14543   echo "$as_me:14543: \$? = $ac_status" >&5
14544   if (exit $ac_status) && test -s "$ac_outfile"; then
14545     # The compiler can only warn and ignore the option if not recognized
14546     # So say no if there are warnings other than the usual output.
14547     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14548     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14549     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14550       lt_cv_prog_compiler_pic_works_F77=yes
14551     fi
14552   fi
14553   $rm conftest*
14554
14555fi
14556{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14557echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14558
14559if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14560    case $lt_prog_compiler_pic_F77 in
14561     "" | " "*) ;;
14562     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14563     esac
14564else
14565    lt_prog_compiler_pic_F77=
14566     lt_prog_compiler_can_build_shared_F77=no
14567fi
14568
14569fi
14570case $host_os in
14571  # For platforms which do not support PIC, -DPIC is meaningless:
14572  *djgpp*)
14573    lt_prog_compiler_pic_F77=
14574    ;;
14575  *)
14576    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14577    ;;
14578esac
14579
14580#
14581# Check to make sure the static flag actually works.
14582#
14583wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14584{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14585echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14586if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14587  echo $ECHO_N "(cached) $ECHO_C" >&6
14588else
14589  lt_cv_prog_compiler_static_works_F77=no
14590   save_LDFLAGS="$LDFLAGS"
14591   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14592   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14593   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14594     # The linker can only warn and ignore the option if not recognized
14595     # So say no if there are warnings
14596     if test -s conftest.err; then
14597       # Append any errors to the config.log.
14598       cat conftest.err 1>&5
14599       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14600       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14601       if diff conftest.exp conftest.er2 >/dev/null; then
14602         lt_cv_prog_compiler_static_works_F77=yes
14603       fi
14604     else
14605       lt_cv_prog_compiler_static_works_F77=yes
14606     fi
14607   fi
14608   $rm -r conftest*
14609   LDFLAGS="$save_LDFLAGS"
14610
14611fi
14612{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14613echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14614
14615if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14616    :
14617else
14618    lt_prog_compiler_static_F77=
14619fi
14620
14621
14622{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14623echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14624if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14625  echo $ECHO_N "(cached) $ECHO_C" >&6
14626else
14627  lt_cv_prog_compiler_c_o_F77=no
14628   $rm -r conftest 2>/dev/null
14629   mkdir conftest
14630   cd conftest
14631   mkdir out
14632   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14633
14634   lt_compiler_flag="-o out/conftest2.$ac_objext"
14635   # Insert the option either (1) after the last *FLAGS variable, or
14636   # (2) before a word containing "conftest.", or (3) at the end.
14637   # Note that $ac_compile itself does not contain backslashes and begins
14638   # with a dollar sign (not a hyphen), so the echo should work correctly.
14639   lt_compile=`echo "$ac_compile" | $SED \
14640   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14641   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14642   -e 's:$: $lt_compiler_flag:'`
14643   (eval echo "\"\$as_me:14643: $lt_compile\"" >&5)
14644   (eval "$lt_compile" 2>out/conftest.err)
14645   ac_status=$?
14646   cat out/conftest.err >&5
14647   echo "$as_me:14647: \$? = $ac_status" >&5
14648   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14649   then
14650     # The compiler can only warn and ignore the option if not recognized
14651     # So say no if there are warnings
14652     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14653     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14654     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14655       lt_cv_prog_compiler_c_o_F77=yes
14656     fi
14657   fi
14658   chmod u+w . 2>&5
14659   $rm conftest*
14660   # SGI C++ compiler will create directory out/ii_files/ for
14661   # template instantiation
14662   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14663   $rm out/* && rmdir out
14664   cd ..
14665   rmdir conftest
14666   $rm conftest*
14667
14668fi
14669{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14670echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14671
14672
14673hard_links="nottested"
14674if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14675  # do not overwrite the value of need_locks provided by the user
14676  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14677echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14678  hard_links=yes
14679  $rm conftest*
14680  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14681  touch conftest.a
14682  ln conftest.a conftest.b 2>&5 || hard_links=no
14683  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14684  { echo "$as_me:$LINENO: result: $hard_links" >&5
14685echo "${ECHO_T}$hard_links" >&6; }
14686  if test "$hard_links" = no; then
14687    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14688echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14689    need_locks=warn
14690  fi
14691else
14692  need_locks=no
14693fi
14694
14695{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14696echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14697
14698  runpath_var=
14699  allow_undefined_flag_F77=
14700  enable_shared_with_static_runtimes_F77=no
14701  archive_cmds_F77=
14702  archive_expsym_cmds_F77=
14703  old_archive_From_new_cmds_F77=
14704  old_archive_from_expsyms_cmds_F77=
14705  export_dynamic_flag_spec_F77=
14706  whole_archive_flag_spec_F77=
14707  thread_safe_flag_spec_F77=
14708  hardcode_libdir_flag_spec_F77=
14709  hardcode_libdir_flag_spec_ld_F77=
14710  hardcode_libdir_separator_F77=
14711  hardcode_direct_F77=no
14712  hardcode_minus_L_F77=no
14713  hardcode_shlibpath_var_F77=unsupported
14714  link_all_deplibs_F77=unknown
14715  hardcode_automatic_F77=no
14716  module_cmds_F77=
14717  module_expsym_cmds_F77=
14718  always_export_symbols_F77=no
14719  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14720  # include_expsyms should be a list of space-separated symbols to be *always*
14721  # included in the symbol list
14722  include_expsyms_F77=
14723  # exclude_expsyms can be an extended regexp of symbols to exclude
14724  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14725  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14726  # as well as any symbol that contains `d'.
14727  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14728  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14729  # platforms (ab)use it in PIC code, but their linkers get confused if
14730  # the symbol is explicitly referenced.  Since portable code cannot
14731  # rely on this symbol name, it's probably fine to never include it in
14732  # preloaded symbol tables.
14733  # Exclude shared library initialization/finalization symbols.
14734  extract_expsyms_cmds=
14735  # Just being paranoid about ensuring that cc_basename is set.
14736  for cc_temp in $compiler""; do
14737  case $cc_temp in
14738    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14739    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14740    \-*) ;;
14741    *) break;;
14742  esac
14743done
14744cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14745
14746  case $host_os in
14747  cygwin* | mingw* | pw32*)
14748    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14749    # When not using gcc, we currently assume that we are using
14750    # Microsoft Visual C++.
14751    if test "$GCC" != yes; then
14752      with_gnu_ld=no
14753    fi
14754    ;;
14755  interix*)
14756    # we just hope/assume this is gcc and not c89 (= MSVC++)
14757    with_gnu_ld=yes
14758    ;;
14759  openbsd*)
14760    with_gnu_ld=no
14761    ;;
14762  esac
14763
14764  ld_shlibs_F77=yes
14765  if test "$with_gnu_ld" = yes; then
14766    # If archive_cmds runs LD, not CC, wlarc should be empty
14767    wlarc='${wl}'
14768
14769    # Set some defaults for GNU ld with shared library support. These
14770    # are reset later if shared libraries are not supported. Putting them
14771    # here allows them to be overridden if necessary.
14772    runpath_var=LD_RUN_PATH
14773    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14774    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14775    # ancient GNU ld didn't support --whole-archive et. al.
14776    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14777	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14778      else
14779  	whole_archive_flag_spec_F77=
14780    fi
14781    supports_anon_versioning=no
14782    case `$LD -v 2>/dev/null` in
14783      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14784      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14785      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14786      *\ 2.11.*) ;; # other 2.11 versions
14787      *) supports_anon_versioning=yes ;;
14788    esac
14789
14790    # See if GNU ld supports shared libraries.
14791    case $host_os in
14792    aix[3-9]*)
14793      # On AIX/PPC, the GNU linker is very broken
14794      if test "$host_cpu" != ia64; then
14795	ld_shlibs_F77=no
14796	cat <<EOF 1>&2
14797
14798*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14799*** to be unable to reliably create shared libraries on AIX.
14800*** Therefore, libtool is disabling shared libraries support.  If you
14801*** really care for shared libraries, you may want to modify your PATH
14802*** so that a non-GNU linker is found, and then restart.
14803
14804EOF
14805      fi
14806      ;;
14807
14808    amigaos*)
14809      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)'
14810      hardcode_libdir_flag_spec_F77='-L$libdir'
14811      hardcode_minus_L_F77=yes
14812
14813      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14814      # that the semantics of dynamic libraries on AmigaOS, at least up
14815      # to version 4, is to share data among multiple programs linked
14816      # with the same dynamic library.  Since this doesn't match the
14817      # behavior of shared libraries on other platforms, we can't use
14818      # them.
14819      ld_shlibs_F77=no
14820      ;;
14821
14822    beos*)
14823      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14824	allow_undefined_flag_F77=unsupported
14825	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14826	# support --undefined.  This deserves some investigation.  FIXME
14827	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14828      else
14829	ld_shlibs_F77=no
14830      fi
14831      ;;
14832
14833    cygwin* | mingw* | pw32*)
14834      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14835      # as there is no search path for DLLs.
14836      hardcode_libdir_flag_spec_F77='-L$libdir'
14837      allow_undefined_flag_F77=unsupported
14838      always_export_symbols_F77=no
14839      enable_shared_with_static_runtimes_F77=yes
14840      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14841
14842      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14843        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14844	# If the export-symbols file already is a .def file (1st line
14845	# is EXPORTS), use it as is; otherwise, prepend...
14846	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14847	  cp $export_symbols $output_objdir/$soname.def;
14848	else
14849	  echo EXPORTS > $output_objdir/$soname.def;
14850	  cat $export_symbols >> $output_objdir/$soname.def;
14851	fi~
14852	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14853      else
14854	ld_shlibs_F77=no
14855      fi
14856      ;;
14857
14858    interix[3-9]*)
14859      hardcode_direct_F77=no
14860      hardcode_shlibpath_var_F77=no
14861      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14862      export_dynamic_flag_spec_F77='${wl}-E'
14863      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14864      # Instead, shared libraries are loaded at an image base (0x10000000 by
14865      # default) and relocated if they conflict, which is a slow very memory
14866      # consuming and fragmenting process.  To avoid this, we pick a random,
14867      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14868      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14869      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'
14870      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'
14871      ;;
14872
14873    gnu* | linux* | k*bsd*-gnu)
14874      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14875	tmp_addflag=
14876	case $cc_basename,$host_cpu in
14877	pgcc*)				# Portland Group C compiler
14878	  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'
14879	  tmp_addflag=' $pic_flag'
14880	  ;;
14881	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14882	  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'
14883	  tmp_addflag=' $pic_flag -Mnomain' ;;
14884	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14885	  tmp_addflag=' -i_dynamic' ;;
14886	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14887	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14888	ifc* | ifort*)			# Intel Fortran compiler
14889	  tmp_addflag=' -nofor_main' ;;
14890	esac
14891	case `$CC -V 2>&1 | sed 5q` in
14892	*Sun\ C*)			# Sun C 5.9
14893	  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'
14894	  tmp_sharedflag='-G' ;;
14895	*Sun\ F*)			# Sun Fortran 8.3
14896	  tmp_sharedflag='-G' ;;
14897	*)
14898	  tmp_sharedflag='-shared' ;;
14899	esac
14900	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14901
14902	if test $supports_anon_versioning = yes; then
14903	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14904  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14905  $echo "local: *; };" >> $output_objdir/$libname.ver~
14906	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14907	fi
14908	link_all_deplibs_F77=no
14909      else
14910	ld_shlibs_F77=no
14911      fi
14912      ;;
14913
14914    netbsd* | netbsdelf*-gnu)
14915      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14916	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14917	wlarc=
14918      else
14919	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14920	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14921      fi
14922      ;;
14923
14924    solaris*)
14925      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14926	ld_shlibs_F77=no
14927	cat <<EOF 1>&2
14928
14929*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14930*** create shared libraries on Solaris systems.  Therefore, libtool
14931*** is disabling shared libraries support.  We urge you to upgrade GNU
14932*** binutils to release 2.9.1 or newer.  Another option is to modify
14933*** your PATH or compiler configuration so that the native linker is
14934*** used, and then restart.
14935
14936EOF
14937      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14940      else
14941	ld_shlibs_F77=no
14942      fi
14943      ;;
14944
14945    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14946      case `$LD -v 2>&1` in
14947        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14948	ld_shlibs_F77=no
14949	cat <<_LT_EOF 1>&2
14950
14951*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14952*** reliably create shared libraries on SCO systems.  Therefore, libtool
14953*** is disabling shared libraries support.  We urge you to upgrade GNU
14954*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14955*** your PATH or compiler configuration so that the native linker is
14956*** used, and then restart.
14957
14958_LT_EOF
14959	;;
14960	*)
14961	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14962	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14963	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14964	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14965	  else
14966	    ld_shlibs_F77=no
14967	  fi
14968	;;
14969      esac
14970      ;;
14971
14972    sunos4*)
14973      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14974      wlarc=
14975      hardcode_direct_F77=yes
14976      hardcode_shlibpath_var_F77=no
14977      ;;
14978
14979    *)
14980      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14981	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14982	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14983      else
14984	ld_shlibs_F77=no
14985      fi
14986      ;;
14987    esac
14988
14989    if test "$ld_shlibs_F77" = no; then
14990      runpath_var=
14991      hardcode_libdir_flag_spec_F77=
14992      export_dynamic_flag_spec_F77=
14993      whole_archive_flag_spec_F77=
14994    fi
14995  else
14996    # PORTME fill in a description of your system's linker (not GNU ld)
14997    case $host_os in
14998    aix3*)
14999      allow_undefined_flag_F77=unsupported
15000      always_export_symbols_F77=yes
15001      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'
15002      # Note: this linker hardcodes the directories in LIBPATH if there
15003      # are no directories specified by -L.
15004      hardcode_minus_L_F77=yes
15005      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15006	# Neither direct hardcoding nor static linking is supported with a
15007	# broken collect2.
15008	hardcode_direct_F77=unsupported
15009      fi
15010      ;;
15011
15012    aix[4-9]*)
15013      if test "$host_cpu" = ia64; then
15014	# On IA64, the linker does run time linking by default, so we don't
15015	# have to do anything special.
15016	aix_use_runtimelinking=no
15017	exp_sym_flag='-Bexport'
15018	no_entry_flag=""
15019      else
15020	# If we're using GNU nm, then we don't want the "-C" option.
15021	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15022	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15023	  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'
15024	else
15025	  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'
15026	fi
15027	aix_use_runtimelinking=no
15028
15029	# Test if we are trying to use run time linking or normal
15030	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15031	# need to do runtime linking.
15032	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15033	  for ld_flag in $LDFLAGS; do
15034  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15035  	    aix_use_runtimelinking=yes
15036  	    break
15037  	  fi
15038	  done
15039	  ;;
15040	esac
15041
15042	exp_sym_flag='-bexport'
15043	no_entry_flag='-bnoentry'
15044      fi
15045
15046      # When large executables or shared objects are built, AIX ld can
15047      # have problems creating the table of contents.  If linking a library
15048      # or program results in "error TOC overflow" add -mminimal-toc to
15049      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15050      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15051
15052      archive_cmds_F77=''
15053      hardcode_direct_F77=yes
15054      hardcode_libdir_separator_F77=':'
15055      link_all_deplibs_F77=yes
15056
15057      if test "$GCC" = yes; then
15058	case $host_os in aix4.[012]|aix4.[012].*)
15059	# We only want to do this on AIX 4.2 and lower, the check
15060	# below for broken collect2 doesn't work under 4.3+
15061	  collect2name=`${CC} -print-prog-name=collect2`
15062	  if test -f "$collect2name" && \
15063  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15064	  then
15065  	  # We have reworked collect2
15066  	  :
15067	  else
15068  	  # We have old collect2
15069  	  hardcode_direct_F77=unsupported
15070  	  # It fails to find uninstalled libraries when the uninstalled
15071  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15072  	  # to unsupported forces relinking
15073  	  hardcode_minus_L_F77=yes
15074  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15075  	  hardcode_libdir_separator_F77=
15076	  fi
15077	  ;;
15078	esac
15079	shared_flag='-shared'
15080	if test "$aix_use_runtimelinking" = yes; then
15081	  shared_flag="$shared_flag "'${wl}-G'
15082	fi
15083      else
15084	# not using gcc
15085	if test "$host_cpu" = ia64; then
15086  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15087  	# chokes on -Wl,-G. The following line is correct:
15088	  shared_flag='-G'
15089	else
15090	  if test "$aix_use_runtimelinking" = yes; then
15091	    shared_flag='${wl}-G'
15092	  else
15093	    shared_flag='${wl}-bM:SRE'
15094	  fi
15095	fi
15096      fi
15097
15098      # It seems that -bexpall does not export symbols beginning with
15099      # underscore (_), so it is better to generate a list of symbols to export.
15100      always_export_symbols_F77=yes
15101      if test "$aix_use_runtimelinking" = yes; then
15102	# Warning - without using the other runtime loading flags (-brtl),
15103	# -berok will link without error, but may produce a broken library.
15104	allow_undefined_flag_F77='-berok'
15105       # Determine the default libpath from the value encoded in an empty executable.
15106       cat >conftest.$ac_ext <<_ACEOF
15107      program main
15108
15109      end
15110_ACEOF
15111rm -f conftest.$ac_objext conftest$ac_exeext
15112if { (ac_try="$ac_link"
15113case "(($ac_try" in
15114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115  *) ac_try_echo=$ac_try;;
15116esac
15117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118  (eval "$ac_link") 2>conftest.er1
15119  ac_status=$?
15120  grep -v '^ *+' conftest.er1 >conftest.err
15121  rm -f conftest.er1
15122  cat conftest.err >&5
15123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124  (exit $ac_status); } && {
15125	 test -z "$ac_f77_werror_flag" ||
15126	 test ! -s conftest.err
15127       } && test -s conftest$ac_exeext &&
15128       $as_test_x conftest$ac_exeext; then
15129
15130lt_aix_libpath_sed='
15131    /Import File Strings/,/^$/ {
15132	/^0/ {
15133	    s/^0  *\(.*\)$/\1/
15134	    p
15135	}
15136    }'
15137aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15138# Check for a 64-bit object if we didn't find anything.
15139if test -z "$aix_libpath"; then
15140  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15141fi
15142else
15143  echo "$as_me: failed program was:" >&5
15144sed 's/^/| /' conftest.$ac_ext >&5
15145
15146
15147fi
15148
15149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15150      conftest$ac_exeext conftest.$ac_ext
15151if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15152
15153       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15154	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"
15155       else
15156	if test "$host_cpu" = ia64; then
15157	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15158	  allow_undefined_flag_F77="-z nodefs"
15159	  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"
15160	else
15161	 # Determine the default libpath from the value encoded in an empty executable.
15162	 cat >conftest.$ac_ext <<_ACEOF
15163      program main
15164
15165      end
15166_ACEOF
15167rm -f conftest.$ac_objext conftest$ac_exeext
15168if { (ac_try="$ac_link"
15169case "(($ac_try" in
15170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171  *) ac_try_echo=$ac_try;;
15172esac
15173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174  (eval "$ac_link") 2>conftest.er1
15175  ac_status=$?
15176  grep -v '^ *+' conftest.er1 >conftest.err
15177  rm -f conftest.er1
15178  cat conftest.err >&5
15179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180  (exit $ac_status); } && {
15181	 test -z "$ac_f77_werror_flag" ||
15182	 test ! -s conftest.err
15183       } && test -s conftest$ac_exeext &&
15184       $as_test_x conftest$ac_exeext; then
15185
15186lt_aix_libpath_sed='
15187    /Import File Strings/,/^$/ {
15188	/^0/ {
15189	    s/^0  *\(.*\)$/\1/
15190	    p
15191	}
15192    }'
15193aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15194# Check for a 64-bit object if we didn't find anything.
15195if test -z "$aix_libpath"; then
15196  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15197fi
15198else
15199  echo "$as_me: failed program was:" >&5
15200sed 's/^/| /' conftest.$ac_ext >&5
15201
15202
15203fi
15204
15205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15206      conftest$ac_exeext conftest.$ac_ext
15207if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15208
15209	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15210	  # Warning - without using the other run time loading flags,
15211	  # -berok will link without error, but may produce a broken library.
15212	  no_undefined_flag_F77=' ${wl}-bernotok'
15213	  allow_undefined_flag_F77=' ${wl}-berok'
15214	  # Exported symbols can be pulled into shared objects from archives
15215	  whole_archive_flag_spec_F77='$convenience'
15216	  archive_cmds_need_lc_F77=yes
15217	  # This is similar to how AIX traditionally builds its shared libraries.
15218	  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'
15219	fi
15220      fi
15221      ;;
15222
15223    amigaos*)
15224      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)'
15225      hardcode_libdir_flag_spec_F77='-L$libdir'
15226      hardcode_minus_L_F77=yes
15227      # see comment about different semantics on the GNU ld section
15228      ld_shlibs_F77=no
15229      ;;
15230
15231    bsdi[45]*)
15232      export_dynamic_flag_spec_F77=-rdynamic
15233      ;;
15234
15235    cygwin* | mingw* | pw32*)
15236      # When not using gcc, we currently assume that we are using
15237      # Microsoft Visual C++.
15238      # hardcode_libdir_flag_spec is actually meaningless, as there is
15239      # no search path for DLLs.
15240      hardcode_libdir_flag_spec_F77=' '
15241      allow_undefined_flag_F77=unsupported
15242      # Tell ltmain to make .lib files, not .a files.
15243      libext=lib
15244      # Tell ltmain to make .dll files, not .so files.
15245      shrext_cmds=".dll"
15246      # FIXME: Setting linknames here is a bad hack.
15247      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15248      # The linker will automatically build a .lib file if we build a DLL.
15249      old_archive_From_new_cmds_F77='true'
15250      # FIXME: Should let the user specify the lib program.
15251      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15252      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15253      enable_shared_with_static_runtimes_F77=yes
15254      ;;
15255
15256    darwin* | rhapsody*)
15257      case $host_os in
15258        rhapsody* | darwin1.[012])
15259         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15260         ;;
15261       *) # Darwin 1.3 on
15262         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15263           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15264         else
15265           case ${MACOSX_DEPLOYMENT_TARGET} in
15266             10.[012])
15267               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15268               ;;
15269             10.*)
15270               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15271               ;;
15272           esac
15273         fi
15274         ;;
15275      esac
15276      archive_cmds_need_lc_F77=no
15277      hardcode_direct_F77=no
15278      hardcode_automatic_F77=yes
15279      hardcode_shlibpath_var_F77=unsupported
15280      whole_archive_flag_spec_F77=''
15281      link_all_deplibs_F77=yes
15282    if test "$GCC" = yes ; then
15283    	output_verbose_link_cmd='echo'
15284        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15285        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15286        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15287        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15288    else
15289      case $cc_basename in
15290        xlc*)
15291         output_verbose_link_cmd='echo'
15292         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15293         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15294          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15295         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}'
15296          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}'
15297          ;;
15298       *)
15299         ld_shlibs_F77=no
15300          ;;
15301      esac
15302    fi
15303      ;;
15304
15305    dgux*)
15306      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15307      hardcode_libdir_flag_spec_F77='-L$libdir'
15308      hardcode_shlibpath_var_F77=no
15309      ;;
15310
15311    freebsd1*)
15312      ld_shlibs_F77=no
15313      ;;
15314
15315    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15316    # support.  Future versions do this automatically, but an explicit c++rt0.o
15317    # does not break anything, and helps significantly (at the cost of a little
15318    # extra space).
15319    freebsd2.2*)
15320      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15321      hardcode_libdir_flag_spec_F77='-R$libdir'
15322      hardcode_direct_F77=yes
15323      hardcode_shlibpath_var_F77=no
15324      ;;
15325
15326    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15327    freebsd2*)
15328      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15329      hardcode_direct_F77=yes
15330      hardcode_minus_L_F77=yes
15331      hardcode_shlibpath_var_F77=no
15332      ;;
15333
15334    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15335    freebsd* | dragonfly*)
15336      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15337      hardcode_libdir_flag_spec_F77='-R$libdir'
15338      hardcode_direct_F77=yes
15339      hardcode_shlibpath_var_F77=no
15340      ;;
15341
15342    hpux9*)
15343      if test "$GCC" = yes; then
15344	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'
15345      else
15346	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'
15347      fi
15348      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15349      hardcode_libdir_separator_F77=:
15350      hardcode_direct_F77=yes
15351
15352      # hardcode_minus_L: Not really in the search PATH,
15353      # but as the default location of the library.
15354      hardcode_minus_L_F77=yes
15355      export_dynamic_flag_spec_F77='${wl}-E'
15356      ;;
15357
15358    hpux10*)
15359      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15360	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15361      else
15362	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15363      fi
15364      if test "$with_gnu_ld" = no; then
15365	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15366	hardcode_libdir_separator_F77=:
15367
15368	hardcode_direct_F77=yes
15369	export_dynamic_flag_spec_F77='${wl}-E'
15370
15371	# hardcode_minus_L: Not really in the search PATH,
15372	# but as the default location of the library.
15373	hardcode_minus_L_F77=yes
15374      fi
15375      ;;
15376
15377    hpux11*)
15378      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15379	case $host_cpu in
15380	hppa*64*)
15381	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15382	  ;;
15383	ia64*)
15384	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15385	  ;;
15386	*)
15387	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15388	  ;;
15389	esac
15390      else
15391	case $host_cpu in
15392	hppa*64*)
15393	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15394	  ;;
15395	ia64*)
15396	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15397	  ;;
15398	*)
15399	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15400	  ;;
15401	esac
15402      fi
15403      if test "$with_gnu_ld" = no; then
15404	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15405	hardcode_libdir_separator_F77=:
15406
15407	case $host_cpu in
15408	hppa*64*|ia64*)
15409	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15410	  hardcode_direct_F77=no
15411	  hardcode_shlibpath_var_F77=no
15412	  ;;
15413	*)
15414	  hardcode_direct_F77=yes
15415	  export_dynamic_flag_spec_F77='${wl}-E'
15416
15417	  # hardcode_minus_L: Not really in the search PATH,
15418	  # but as the default location of the library.
15419	  hardcode_minus_L_F77=yes
15420	  ;;
15421	esac
15422      fi
15423      ;;
15424
15425    irix5* | irix6* | nonstopux*)
15426      if test "$GCC" = yes; then
15427	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'
15428      else
15429	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'
15430	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15431      fi
15432      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15433      hardcode_libdir_separator_F77=:
15434      link_all_deplibs_F77=yes
15435      ;;
15436
15437    netbsd* | netbsdelf*-gnu)
15438      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15439	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15440      else
15441	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15442      fi
15443      hardcode_libdir_flag_spec_F77='-R$libdir'
15444      hardcode_direct_F77=yes
15445      hardcode_shlibpath_var_F77=no
15446      ;;
15447
15448    newsos6)
15449      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15450      hardcode_direct_F77=yes
15451      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15452      hardcode_libdir_separator_F77=:
15453      hardcode_shlibpath_var_F77=no
15454      ;;
15455
15456    openbsd*)
15457      if test -f /usr/libexec/ld.so; then
15458	hardcode_direct_F77=yes
15459	hardcode_shlibpath_var_F77=no
15460	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15461	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15462	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15463	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15464	  export_dynamic_flag_spec_F77='${wl}-E'
15465	else
15466	  case $host_os in
15467	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15468	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15469	     hardcode_libdir_flag_spec_F77='-R$libdir'
15470	     ;;
15471	   *)
15472	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15473	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15474	     ;;
15475	  esac
15476        fi
15477      else
15478	ld_shlibs_F77=no
15479      fi
15480      ;;
15481
15482    os2*)
15483      hardcode_libdir_flag_spec_F77='-L$libdir'
15484      hardcode_minus_L_F77=yes
15485      allow_undefined_flag_F77=unsupported
15486      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'
15487      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15488      ;;
15489
15490    osf3*)
15491      if test "$GCC" = yes; then
15492	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15493	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'
15494      else
15495	allow_undefined_flag_F77=' -expect_unresolved \*'
15496	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'
15497      fi
15498      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15499      hardcode_libdir_separator_F77=:
15500      ;;
15501
15502    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15503      if test "$GCC" = yes; then
15504	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15505	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'
15506	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15507      else
15508	allow_undefined_flag_F77=' -expect_unresolved \*'
15509	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'
15510	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~
15511	$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'
15512
15513	# Both c and cxx compiler support -rpath directly
15514	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15515      fi
15516      hardcode_libdir_separator_F77=:
15517      ;;
15518
15519    solaris*)
15520      no_undefined_flag_F77=' -z text'
15521      if test "$GCC" = yes; then
15522	wlarc='${wl}'
15523	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15524	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15525	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15526      else
15527	wlarc=''
15528	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15529	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15530  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15531      fi
15532      hardcode_libdir_flag_spec_F77='-R$libdir'
15533      hardcode_shlibpath_var_F77=no
15534      case $host_os in
15535      solaris2.[0-5] | solaris2.[0-5].*) ;;
15536      *)
15537	# The compiler driver will combine and reorder linker options,
15538	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15539	# but is careful enough not to reorder.
15540 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15541	if test "$GCC" = yes; then
15542	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15543	else
15544	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15545	fi
15546	;;
15547      esac
15548      link_all_deplibs_F77=yes
15549      ;;
15550
15551    sunos4*)
15552      if test "x$host_vendor" = xsequent; then
15553	# Use $CC to link under sequent, because it throws in some extra .o
15554	# files that make .init and .fini sections work.
15555	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15556      else
15557	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15558      fi
15559      hardcode_libdir_flag_spec_F77='-L$libdir'
15560      hardcode_direct_F77=yes
15561      hardcode_minus_L_F77=yes
15562      hardcode_shlibpath_var_F77=no
15563      ;;
15564
15565    sysv4)
15566      case $host_vendor in
15567	sni)
15568	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569	  hardcode_direct_F77=yes # is this really true???
15570	;;
15571	siemens)
15572	  ## LD is ld it makes a PLAMLIB
15573	  ## CC just makes a GrossModule.
15574	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15575	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15576	  hardcode_direct_F77=no
15577        ;;
15578	motorola)
15579	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15580	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15581	;;
15582      esac
15583      runpath_var='LD_RUN_PATH'
15584      hardcode_shlibpath_var_F77=no
15585      ;;
15586
15587    sysv4.3*)
15588      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589      hardcode_shlibpath_var_F77=no
15590      export_dynamic_flag_spec_F77='-Bexport'
15591      ;;
15592
15593    sysv4*MP*)
15594      if test -d /usr/nec; then
15595	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15596	hardcode_shlibpath_var_F77=no
15597	runpath_var=LD_RUN_PATH
15598	hardcode_runpath_var=yes
15599	ld_shlibs_F77=yes
15600      fi
15601      ;;
15602
15603    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15604      no_undefined_flag_F77='${wl}-z,text'
15605      archive_cmds_need_lc_F77=no
15606      hardcode_shlibpath_var_F77=no
15607      runpath_var='LD_RUN_PATH'
15608
15609      if test "$GCC" = yes; then
15610	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15611	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15612      else
15613	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15614	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15615      fi
15616      ;;
15617
15618    sysv5* | sco3.2v5* | sco5v6*)
15619      # Note: We can NOT use -z defs as we might desire, because we do not
15620      # link with -lc, and that would cause any symbols used from libc to
15621      # always be unresolved, which means just about no library would
15622      # ever link correctly.  If we're not using GNU ld we use -z text
15623      # though, which does catch some bad symbols but isn't as heavy-handed
15624      # as -z defs.
15625      no_undefined_flag_F77='${wl}-z,text'
15626      allow_undefined_flag_F77='${wl}-z,nodefs'
15627      archive_cmds_need_lc_F77=no
15628      hardcode_shlibpath_var_F77=no
15629      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15630      hardcode_libdir_separator_F77=':'
15631      link_all_deplibs_F77=yes
15632      export_dynamic_flag_spec_F77='${wl}-Bexport'
15633      runpath_var='LD_RUN_PATH'
15634
15635      if test "$GCC" = yes; then
15636	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15638      else
15639	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15640	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15641      fi
15642      ;;
15643
15644    uts4*)
15645      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646      hardcode_libdir_flag_spec_F77='-L$libdir'
15647      hardcode_shlibpath_var_F77=no
15648      ;;
15649
15650    *)
15651      ld_shlibs_F77=no
15652      ;;
15653    esac
15654  fi
15655
15656{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15657echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15658test "$ld_shlibs_F77" = no && can_build_shared=no
15659
15660#
15661# Do we need to explicitly link libc?
15662#
15663case "x$archive_cmds_need_lc_F77" in
15664x|xyes)
15665  # Assume -lc should be added
15666  archive_cmds_need_lc_F77=yes
15667
15668  if test "$enable_shared" = yes && test "$GCC" = yes; then
15669    case $archive_cmds_F77 in
15670    *'~'*)
15671      # FIXME: we may have to deal with multi-command sequences.
15672      ;;
15673    '$CC '*)
15674      # Test whether the compiler implicitly links with -lc since on some
15675      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15676      # to ld, don't add -lc before -lgcc.
15677      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15678echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15679      $rm conftest*
15680      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15681
15682      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15683  (eval $ac_compile) 2>&5
15684  ac_status=$?
15685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686  (exit $ac_status); } 2>conftest.err; then
15687        soname=conftest
15688        lib=conftest
15689        libobjs=conftest.$ac_objext
15690        deplibs=
15691        wl=$lt_prog_compiler_wl_F77
15692	pic_flag=$lt_prog_compiler_pic_F77
15693        compiler_flags=-v
15694        linker_flags=-v
15695        verstring=
15696        output_objdir=.
15697        libname=conftest
15698        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15699        allow_undefined_flag_F77=
15700        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15701  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15702  ac_status=$?
15703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704  (exit $ac_status); }
15705        then
15706	  archive_cmds_need_lc_F77=no
15707        else
15708	  archive_cmds_need_lc_F77=yes
15709        fi
15710        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15711      else
15712        cat conftest.err 1>&5
15713      fi
15714      $rm conftest*
15715      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15716echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15717      ;;
15718    esac
15719  fi
15720  ;;
15721esac
15722
15723{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15724echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15725library_names_spec=
15726libname_spec='lib$name'
15727soname_spec=
15728shrext_cmds=".so"
15729postinstall_cmds=
15730postuninstall_cmds=
15731finish_cmds=
15732finish_eval=
15733shlibpath_var=
15734shlibpath_overrides_runpath=unknown
15735version_type=none
15736dynamic_linker="$host_os ld.so"
15737sys_lib_dlsearch_path_spec="/lib /usr/lib"
15738
15739need_lib_prefix=unknown
15740hardcode_into_libs=no
15741
15742# when you set need_version to no, make sure it does not cause -set_version
15743# flags to be left without arguments
15744need_version=unknown
15745
15746case $host_os in
15747aix3*)
15748  version_type=linux
15749  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15750  shlibpath_var=LIBPATH
15751
15752  # AIX 3 has no versioning support, so we append a major version to the name.
15753  soname_spec='${libname}${release}${shared_ext}$major'
15754  ;;
15755
15756aix[4-9]*)
15757  version_type=linux
15758  need_lib_prefix=no
15759  need_version=no
15760  hardcode_into_libs=yes
15761  if test "$host_cpu" = ia64; then
15762    # AIX 5 supports IA64
15763    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15764    shlibpath_var=LD_LIBRARY_PATH
15765  else
15766    # With GCC up to 2.95.x, collect2 would create an import file
15767    # for dependence libraries.  The import file would start with
15768    # the line `#! .'.  This would cause the generated library to
15769    # depend on `.', always an invalid library.  This was fixed in
15770    # development snapshots of GCC prior to 3.0.
15771    case $host_os in
15772      aix4 | aix4.[01] | aix4.[01].*)
15773      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15774	   echo ' yes '
15775	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15776	:
15777      else
15778	can_build_shared=no
15779      fi
15780      ;;
15781    esac
15782    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15783    # soname into executable. Probably we can add versioning support to
15784    # collect2, so additional links can be useful in future.
15785    if test "$aix_use_runtimelinking" = yes; then
15786      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15787      # instead of lib<name>.a to let people know that these are not
15788      # typical AIX shared libraries.
15789      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790    else
15791      # We preserve .a as extension for shared libraries through AIX4.2
15792      # and later when we are not doing run time linking.
15793      library_names_spec='${libname}${release}.a $libname.a'
15794      soname_spec='${libname}${release}${shared_ext}$major'
15795    fi
15796    shlibpath_var=LIBPATH
15797  fi
15798  ;;
15799
15800amigaos*)
15801  library_names_spec='$libname.ixlibrary $libname.a'
15802  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15803  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'
15804  ;;
15805
15806beos*)
15807  library_names_spec='${libname}${shared_ext}'
15808  dynamic_linker="$host_os ld.so"
15809  shlibpath_var=LIBRARY_PATH
15810  ;;
15811
15812bsdi[45]*)
15813  version_type=linux
15814  need_version=no
15815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816  soname_spec='${libname}${release}${shared_ext}$major'
15817  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15818  shlibpath_var=LD_LIBRARY_PATH
15819  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15820  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15821  # the default ld.so.conf also contains /usr/contrib/lib and
15822  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15823  # libtool to hard-code these into programs
15824  ;;
15825
15826cygwin* | mingw* | pw32*)
15827  version_type=windows
15828  shrext_cmds=".dll"
15829  need_version=no
15830  need_lib_prefix=no
15831
15832  case $GCC,$host_os in
15833  yes,cygwin* | yes,mingw* | yes,pw32*)
15834    library_names_spec='$libname.dll.a'
15835    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15836    postinstall_cmds='base_file=`basename \${file}`~
15837      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15838      dldir=$destdir/`dirname \$dlpath`~
15839      test -d \$dldir || mkdir -p \$dldir~
15840      $install_prog $dir/$dlname \$dldir/$dlname~
15841      chmod a+x \$dldir/$dlname'
15842    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15843      dlpath=$dir/\$dldll~
15844       $rm \$dlpath'
15845    shlibpath_overrides_runpath=yes
15846
15847    case $host_os in
15848    cygwin*)
15849      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15850      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15851      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15852      ;;
15853    mingw*)
15854      # MinGW DLLs use traditional 'lib' prefix
15855      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15856      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15857      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15858        # It is most probably a Windows format PATH printed by
15859        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15860        # path with ; separators, and with drive letters. We can handle the
15861        # drive letters (cygwin fileutils understands them), so leave them,
15862        # especially as we might pass files found there to a mingw objdump,
15863        # which wouldn't understand a cygwinified path. Ahh.
15864        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15865      else
15866        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15867      fi
15868      ;;
15869    pw32*)
15870      # pw32 DLLs use 'pw' prefix rather than 'lib'
15871      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15872      ;;
15873    esac
15874    ;;
15875
15876  *)
15877    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15878    ;;
15879  esac
15880  dynamic_linker='Win32 ld.exe'
15881  # FIXME: first we should search . and the directory the executable is in
15882  shlibpath_var=PATH
15883  ;;
15884
15885darwin* | rhapsody*)
15886  dynamic_linker="$host_os dyld"
15887  version_type=darwin
15888  need_lib_prefix=no
15889  need_version=no
15890  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15891  soname_spec='${libname}${release}${major}$shared_ext'
15892  shlibpath_overrides_runpath=yes
15893  shlibpath_var=DYLD_LIBRARY_PATH
15894  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15895
15896  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15897  ;;
15898
15899dgux*)
15900  version_type=linux
15901  need_lib_prefix=no
15902  need_version=no
15903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15904  soname_spec='${libname}${release}${shared_ext}$major'
15905  shlibpath_var=LD_LIBRARY_PATH
15906  ;;
15907
15908freebsd1*)
15909  dynamic_linker=no
15910  ;;
15911
15912freebsd* | dragonfly*)
15913  # DragonFly does not have aout.  When/if they implement a new
15914  # versioning mechanism, adjust this.
15915  if test -x /usr/bin/objformat; then
15916    objformat=`/usr/bin/objformat`
15917  else
15918    case $host_os in
15919    freebsd[123]*) objformat=aout ;;
15920    *) objformat=elf ;;
15921    esac
15922  fi
15923  version_type=freebsd-$objformat
15924  case $version_type in
15925    freebsd-elf*)
15926      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15927      need_version=no
15928      need_lib_prefix=no
15929      ;;
15930    freebsd-*)
15931      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15932      need_version=yes
15933      ;;
15934  esac
15935  shlibpath_var=LD_LIBRARY_PATH
15936  case $host_os in
15937  freebsd2*)
15938    shlibpath_overrides_runpath=yes
15939    ;;
15940  freebsd3.[01]* | freebsdelf3.[01]*)
15941    shlibpath_overrides_runpath=yes
15942    hardcode_into_libs=yes
15943    ;;
15944  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15945  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15946    shlibpath_overrides_runpath=no
15947    hardcode_into_libs=yes
15948    ;;
15949  *) # from 4.6 on, and DragonFly
15950    shlibpath_overrides_runpath=yes
15951    hardcode_into_libs=yes
15952    ;;
15953  esac
15954  ;;
15955
15956gnu*)
15957  version_type=linux
15958  need_lib_prefix=no
15959  need_version=no
15960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15961  soname_spec='${libname}${release}${shared_ext}$major'
15962  shlibpath_var=LD_LIBRARY_PATH
15963  hardcode_into_libs=yes
15964  ;;
15965
15966hpux9* | hpux10* | hpux11*)
15967  # Give a soname corresponding to the major version so that dld.sl refuses to
15968  # link against other versions.
15969  version_type=sunos
15970  need_lib_prefix=no
15971  need_version=no
15972  case $host_cpu in
15973  ia64*)
15974    shrext_cmds='.so'
15975    hardcode_into_libs=yes
15976    dynamic_linker="$host_os dld.so"
15977    shlibpath_var=LD_LIBRARY_PATH
15978    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15979    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980    soname_spec='${libname}${release}${shared_ext}$major'
15981    if test "X$HPUX_IA64_MODE" = X32; then
15982      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15983    else
15984      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15985    fi
15986    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15987    ;;
15988   hppa*64*)
15989     shrext_cmds='.sl'
15990     hardcode_into_libs=yes
15991     dynamic_linker="$host_os dld.sl"
15992     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15993     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995     soname_spec='${libname}${release}${shared_ext}$major'
15996     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15997     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15998     ;;
15999   *)
16000    shrext_cmds='.sl'
16001    dynamic_linker="$host_os dld.sl"
16002    shlibpath_var=SHLIB_PATH
16003    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16004    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005    soname_spec='${libname}${release}${shared_ext}$major'
16006    ;;
16007  esac
16008  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16009  postinstall_cmds='chmod 555 $lib'
16010  ;;
16011
16012interix[3-9]*)
16013  version_type=linux
16014  need_lib_prefix=no
16015  need_version=no
16016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16017  soname_spec='${libname}${release}${shared_ext}$major'
16018  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16019  shlibpath_var=LD_LIBRARY_PATH
16020  shlibpath_overrides_runpath=no
16021  hardcode_into_libs=yes
16022  ;;
16023
16024irix5* | irix6* | nonstopux*)
16025  case $host_os in
16026    nonstopux*) version_type=nonstopux ;;
16027    *)
16028	if test "$lt_cv_prog_gnu_ld" = yes; then
16029		version_type=linux
16030	else
16031		version_type=irix
16032	fi ;;
16033  esac
16034  need_lib_prefix=no
16035  need_version=no
16036  soname_spec='${libname}${release}${shared_ext}$major'
16037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16038  case $host_os in
16039  irix5* | nonstopux*)
16040    libsuff= shlibsuff=
16041    ;;
16042  *)
16043    case $LD in # libtool.m4 will add one of these switches to LD
16044    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16045      libsuff= shlibsuff= libmagic=32-bit;;
16046    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16047      libsuff=32 shlibsuff=N32 libmagic=N32;;
16048    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16049      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16050    *) libsuff= shlibsuff= libmagic=never-match;;
16051    esac
16052    ;;
16053  esac
16054  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16055  shlibpath_overrides_runpath=no
16056  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16057  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16058  hardcode_into_libs=yes
16059  ;;
16060
16061# No shared lib support for Linux oldld, aout, or coff.
16062linux*oldld* | linux*aout* | linux*coff*)
16063  dynamic_linker=no
16064  ;;
16065
16066# This must be Linux ELF.
16067linux* | k*bsd*-gnu)
16068  version_type=linux
16069  need_lib_prefix=no
16070  need_version=no
16071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072  soname_spec='${libname}${release}${shared_ext}$major'
16073  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16074  shlibpath_var=LD_LIBRARY_PATH
16075  shlibpath_overrides_runpath=no
16076  # This implies no fast_install, which is unacceptable.
16077  # Some rework will be needed to allow for fast_install
16078  # before this can be enabled.
16079  hardcode_into_libs=yes
16080
16081  # Append ld.so.conf contents to the search path
16082  if test -f /etc/ld.so.conf; then
16083    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' ' '`
16084    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16085  fi
16086
16087  # We used to test for /lib/ld.so.1 and disable shared libraries on
16088  # powerpc, because MkLinux only supported shared libraries with the
16089  # GNU dynamic linker.  Since this was broken with cross compilers,
16090  # most powerpc-linux boxes support dynamic linking these days and
16091  # people can always --disable-shared, the test was removed, and we
16092  # assume the GNU/Linux dynamic linker is in use.
16093  dynamic_linker='GNU/Linux ld.so'
16094  ;;
16095
16096netbsdelf*-gnu)
16097  version_type=linux
16098  need_lib_prefix=no
16099  need_version=no
16100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16101  soname_spec='${libname}${release}${shared_ext}$major'
16102  shlibpath_var=LD_LIBRARY_PATH
16103  shlibpath_overrides_runpath=no
16104  hardcode_into_libs=yes
16105  dynamic_linker='NetBSD ld.elf_so'
16106  ;;
16107
16108netbsd*)
16109  version_type=sunos
16110  need_lib_prefix=no
16111  need_version=no
16112  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16114    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16115    dynamic_linker='NetBSD (a.out) ld.so'
16116  else
16117    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16118    soname_spec='${libname}${release}${shared_ext}$major'
16119    dynamic_linker='NetBSD ld.elf_so'
16120  fi
16121  shlibpath_var=LD_LIBRARY_PATH
16122  shlibpath_overrides_runpath=yes
16123  hardcode_into_libs=yes
16124  ;;
16125
16126newsos6)
16127  version_type=linux
16128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129  shlibpath_var=LD_LIBRARY_PATH
16130  shlibpath_overrides_runpath=yes
16131  ;;
16132
16133nto-qnx*)
16134  version_type=linux
16135  need_lib_prefix=no
16136  need_version=no
16137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138  soname_spec='${libname}${release}${shared_ext}$major'
16139  shlibpath_var=LD_LIBRARY_PATH
16140  shlibpath_overrides_runpath=yes
16141  ;;
16142
16143openbsd*)
16144  version_type=sunos
16145  sys_lib_dlsearch_path_spec="/usr/lib"
16146  need_lib_prefix=no
16147  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16148  case $host_os in
16149    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16150    *)                         need_version=no  ;;
16151  esac
16152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16153  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16154  shlibpath_var=LD_LIBRARY_PATH
16155  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16156    case $host_os in
16157      openbsd2.[89] | openbsd2.[89].*)
16158	shlibpath_overrides_runpath=no
16159	;;
16160      *)
16161	shlibpath_overrides_runpath=yes
16162	;;
16163      esac
16164  else
16165    shlibpath_overrides_runpath=yes
16166  fi
16167  ;;
16168
16169os2*)
16170  libname_spec='$name'
16171  shrext_cmds=".dll"
16172  need_lib_prefix=no
16173  library_names_spec='$libname${shared_ext} $libname.a'
16174  dynamic_linker='OS/2 ld.exe'
16175  shlibpath_var=LIBPATH
16176  ;;
16177
16178osf3* | osf4* | osf5*)
16179  version_type=osf
16180  need_lib_prefix=no
16181  need_version=no
16182  soname_spec='${libname}${release}${shared_ext}$major'
16183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184  shlibpath_var=LD_LIBRARY_PATH
16185  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16186  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16187  ;;
16188
16189rdos*)
16190  dynamic_linker=no
16191  ;;
16192
16193solaris*)
16194  version_type=linux
16195  need_lib_prefix=no
16196  need_version=no
16197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198  soname_spec='${libname}${release}${shared_ext}$major'
16199  shlibpath_var=LD_LIBRARY_PATH
16200  shlibpath_overrides_runpath=yes
16201  hardcode_into_libs=yes
16202  # ldd complains unless libraries are executable
16203  postinstall_cmds='chmod +x $lib'
16204  ;;
16205
16206sunos4*)
16207  version_type=sunos
16208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16209  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16210  shlibpath_var=LD_LIBRARY_PATH
16211  shlibpath_overrides_runpath=yes
16212  if test "$with_gnu_ld" = yes; then
16213    need_lib_prefix=no
16214  fi
16215  need_version=yes
16216  ;;
16217
16218sysv4 | sysv4.3*)
16219  version_type=linux
16220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221  soname_spec='${libname}${release}${shared_ext}$major'
16222  shlibpath_var=LD_LIBRARY_PATH
16223  case $host_vendor in
16224    sni)
16225      shlibpath_overrides_runpath=no
16226      need_lib_prefix=no
16227      export_dynamic_flag_spec='${wl}-Blargedynsym'
16228      runpath_var=LD_RUN_PATH
16229      ;;
16230    siemens)
16231      need_lib_prefix=no
16232      ;;
16233    motorola)
16234      need_lib_prefix=no
16235      need_version=no
16236      shlibpath_overrides_runpath=no
16237      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16238      ;;
16239  esac
16240  ;;
16241
16242sysv4*MP*)
16243  if test -d /usr/nec ;then
16244    version_type=linux
16245    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16246    soname_spec='$libname${shared_ext}.$major'
16247    shlibpath_var=LD_LIBRARY_PATH
16248  fi
16249  ;;
16250
16251sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16252  version_type=freebsd-elf
16253  need_lib_prefix=no
16254  need_version=no
16255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16256  soname_spec='${libname}${release}${shared_ext}$major'
16257  shlibpath_var=LD_LIBRARY_PATH
16258  hardcode_into_libs=yes
16259  if test "$with_gnu_ld" = yes; then
16260    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16261    shlibpath_overrides_runpath=no
16262  else
16263    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16264    shlibpath_overrides_runpath=yes
16265    case $host_os in
16266      sco3.2v5*)
16267        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16268	;;
16269    esac
16270  fi
16271  sys_lib_dlsearch_path_spec='/usr/lib'
16272  ;;
16273
16274uts4*)
16275  version_type=linux
16276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277  soname_spec='${libname}${release}${shared_ext}$major'
16278  shlibpath_var=LD_LIBRARY_PATH
16279  ;;
16280
16281*)
16282  dynamic_linker=no
16283  ;;
16284esac
16285{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16286echo "${ECHO_T}$dynamic_linker" >&6; }
16287test "$dynamic_linker" = no && can_build_shared=no
16288
16289if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16290  echo $ECHO_N "(cached) $ECHO_C" >&6
16291else
16292  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16293fi
16294
16295sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16296if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16297  echo $ECHO_N "(cached) $ECHO_C" >&6
16298else
16299  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16300fi
16301
16302sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16303
16304variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16305if test "$GCC" = yes; then
16306  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16307fi
16308
16309{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16310echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16311hardcode_action_F77=
16312if test -n "$hardcode_libdir_flag_spec_F77" || \
16313   test -n "$runpath_var_F77" || \
16314   test "X$hardcode_automatic_F77" = "Xyes" ; then
16315
16316  # We can hardcode non-existant directories.
16317  if test "$hardcode_direct_F77" != no &&
16318     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16319     # have to relink, otherwise we might link with an installed library
16320     # when we should be linking with a yet-to-be-installed one
16321     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16322     test "$hardcode_minus_L_F77" != no; then
16323    # Linking always hardcodes the temporary library directory.
16324    hardcode_action_F77=relink
16325  else
16326    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16327    hardcode_action_F77=immediate
16328  fi
16329else
16330  # We cannot hardcode anything, or else we can only hardcode existing
16331  # directories.
16332  hardcode_action_F77=unsupported
16333fi
16334{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16335echo "${ECHO_T}$hardcode_action_F77" >&6; }
16336
16337if test "$hardcode_action_F77" = relink; then
16338  # Fast installation is not supported
16339  enable_fast_install=no
16340elif test "$shlibpath_overrides_runpath" = yes ||
16341     test "$enable_shared" = no; then
16342  # Fast installation is not necessary
16343  enable_fast_install=needless
16344fi
16345
16346
16347# The else clause should only fire when bootstrapping the
16348# libtool distribution, otherwise you forgot to ship ltmain.sh
16349# with your package, and you will get complaints that there are
16350# no rules to generate ltmain.sh.
16351if test -f "$ltmain"; then
16352  # See if we are running on zsh, and set the options which allow our commands through
16353  # without removal of \ escapes.
16354  if test -n "${ZSH_VERSION+set}" ; then
16355    setopt NO_GLOB_SUBST
16356  fi
16357  # Now quote all the things that may contain metacharacters while being
16358  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16359  # variables and quote the copies for generation of the libtool script.
16360  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16361    SED SHELL STRIP \
16362    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16363    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16364    deplibs_check_method reload_flag reload_cmds need_locks \
16365    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16366    lt_cv_sys_global_symbol_to_c_name_address \
16367    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16368    old_postinstall_cmds old_postuninstall_cmds \
16369    compiler_F77 \
16370    CC_F77 \
16371    LD_F77 \
16372    lt_prog_compiler_wl_F77 \
16373    lt_prog_compiler_pic_F77 \
16374    lt_prog_compiler_static_F77 \
16375    lt_prog_compiler_no_builtin_flag_F77 \
16376    export_dynamic_flag_spec_F77 \
16377    thread_safe_flag_spec_F77 \
16378    whole_archive_flag_spec_F77 \
16379    enable_shared_with_static_runtimes_F77 \
16380    old_archive_cmds_F77 \
16381    old_archive_from_new_cmds_F77 \
16382    predep_objects_F77 \
16383    postdep_objects_F77 \
16384    predeps_F77 \
16385    postdeps_F77 \
16386    compiler_lib_search_path_F77 \
16387    compiler_lib_search_dirs_F77 \
16388    archive_cmds_F77 \
16389    archive_expsym_cmds_F77 \
16390    postinstall_cmds_F77 \
16391    postuninstall_cmds_F77 \
16392    old_archive_from_expsyms_cmds_F77 \
16393    allow_undefined_flag_F77 \
16394    no_undefined_flag_F77 \
16395    export_symbols_cmds_F77 \
16396    hardcode_libdir_flag_spec_F77 \
16397    hardcode_libdir_flag_spec_ld_F77 \
16398    hardcode_libdir_separator_F77 \
16399    hardcode_automatic_F77 \
16400    module_cmds_F77 \
16401    module_expsym_cmds_F77 \
16402    lt_cv_prog_compiler_c_o_F77 \
16403    fix_srcfile_path_F77 \
16404    exclude_expsyms_F77 \
16405    include_expsyms_F77; do
16406
16407    case $var in
16408    old_archive_cmds_F77 | \
16409    old_archive_from_new_cmds_F77 | \
16410    archive_cmds_F77 | \
16411    archive_expsym_cmds_F77 | \
16412    module_cmds_F77 | \
16413    module_expsym_cmds_F77 | \
16414    old_archive_from_expsyms_cmds_F77 | \
16415    export_symbols_cmds_F77 | \
16416    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16417    postinstall_cmds | postuninstall_cmds | \
16418    old_postinstall_cmds | old_postuninstall_cmds | \
16419    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16420      # Double-quote double-evaled strings.
16421      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16422      ;;
16423    *)
16424      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16425      ;;
16426    esac
16427  done
16428
16429  case $lt_echo in
16430  *'\$0 --fallback-echo"')
16431    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16432    ;;
16433  esac
16434
16435cfgfile="$ofile"
16436
16437  cat <<__EOF__ >> "$cfgfile"
16438# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16439
16440# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16441
16442# Shell to use when invoking shell scripts.
16443SHELL=$lt_SHELL
16444
16445# Whether or not to build shared libraries.
16446build_libtool_libs=$enable_shared
16447
16448# Whether or not to build static libraries.
16449build_old_libs=$enable_static
16450
16451# Whether or not to add -lc for building shared libraries.
16452build_libtool_need_lc=$archive_cmds_need_lc_F77
16453
16454# Whether or not to disallow shared libs when runtime libs are static
16455allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16456
16457# Whether or not to optimize for fast installation.
16458fast_install=$enable_fast_install
16459
16460# The host system.
16461host_alias=$host_alias
16462host=$host
16463host_os=$host_os
16464
16465# The build system.
16466build_alias=$build_alias
16467build=$build
16468build_os=$build_os
16469
16470# An echo program that does not interpret backslashes.
16471echo=$lt_echo
16472
16473# The archiver.
16474AR=$lt_AR
16475AR_FLAGS=$lt_AR_FLAGS
16476
16477# A C compiler.
16478LTCC=$lt_LTCC
16479
16480# LTCC compiler flags.
16481LTCFLAGS=$lt_LTCFLAGS
16482
16483# A language-specific compiler.
16484CC=$lt_compiler_F77
16485
16486# Is the compiler the GNU C compiler?
16487with_gcc=$GCC_F77
16488
16489# An ERE matcher.
16490EGREP=$lt_EGREP
16491
16492# The linker used to build libraries.
16493LD=$lt_LD_F77
16494
16495# Whether we need hard or soft links.
16496LN_S=$lt_LN_S
16497
16498# A BSD-compatible nm program.
16499NM=$lt_NM
16500
16501# A symbol stripping program
16502STRIP=$lt_STRIP
16503
16504# Used to examine libraries when file_magic_cmd begins "file"
16505MAGIC_CMD=$MAGIC_CMD
16506
16507# Used on cygwin: DLL creation program.
16508DLLTOOL="$DLLTOOL"
16509
16510# Used on cygwin: object dumper.
16511OBJDUMP="$OBJDUMP"
16512
16513# Used on cygwin: assembler.
16514AS="$AS"
16515
16516# The name of the directory that contains temporary libtool files.
16517objdir=$objdir
16518
16519# How to create reloadable object files.
16520reload_flag=$lt_reload_flag
16521reload_cmds=$lt_reload_cmds
16522
16523# How to pass a linker flag through the compiler.
16524wl=$lt_lt_prog_compiler_wl_F77
16525
16526# Object file suffix (normally "o").
16527objext="$ac_objext"
16528
16529# Old archive suffix (normally "a").
16530libext="$libext"
16531
16532# Shared library suffix (normally ".so").
16533shrext_cmds='$shrext_cmds'
16534
16535# Executable file suffix (normally "").
16536exeext="$exeext"
16537
16538# Additional compiler flags for building library objects.
16539pic_flag=$lt_lt_prog_compiler_pic_F77
16540pic_mode=$pic_mode
16541
16542# What is the maximum length of a command?
16543max_cmd_len=$lt_cv_sys_max_cmd_len
16544
16545# Does compiler simultaneously support -c and -o options?
16546compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16547
16548# Must we lock files when doing compilation?
16549need_locks=$lt_need_locks
16550
16551# Do we need the lib prefix for modules?
16552need_lib_prefix=$need_lib_prefix
16553
16554# Do we need a version for libraries?
16555need_version=$need_version
16556
16557# Whether dlopen is supported.
16558dlopen_support=$enable_dlopen
16559
16560# Whether dlopen of programs is supported.
16561dlopen_self=$enable_dlopen_self
16562
16563# Whether dlopen of statically linked programs is supported.
16564dlopen_self_static=$enable_dlopen_self_static
16565
16566# Compiler flag to prevent dynamic linking.
16567link_static_flag=$lt_lt_prog_compiler_static_F77
16568
16569# Compiler flag to turn off builtin functions.
16570no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16571
16572# Compiler flag to allow reflexive dlopens.
16573export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16574
16575# Compiler flag to generate shared objects directly from archives.
16576whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16577
16578# Compiler flag to generate thread-safe objects.
16579thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16580
16581# Library versioning type.
16582version_type=$version_type
16583
16584# Format of library name prefix.
16585libname_spec=$lt_libname_spec
16586
16587# List of archive names.  First name is the real one, the rest are links.
16588# The last name is the one that the linker finds with -lNAME.
16589library_names_spec=$lt_library_names_spec
16590
16591# The coded name of the library, if different from the real name.
16592soname_spec=$lt_soname_spec
16593
16594# Commands used to build and install an old-style archive.
16595RANLIB=$lt_RANLIB
16596old_archive_cmds=$lt_old_archive_cmds_F77
16597old_postinstall_cmds=$lt_old_postinstall_cmds
16598old_postuninstall_cmds=$lt_old_postuninstall_cmds
16599
16600# Create an old-style archive from a shared archive.
16601old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16602
16603# Create a temporary old-style archive to link instead of a shared archive.
16604old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16605
16606# Commands used to build and install a shared archive.
16607archive_cmds=$lt_archive_cmds_F77
16608archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16609postinstall_cmds=$lt_postinstall_cmds
16610postuninstall_cmds=$lt_postuninstall_cmds
16611
16612# Commands used to build a loadable module (assumed same as above if empty)
16613module_cmds=$lt_module_cmds_F77
16614module_expsym_cmds=$lt_module_expsym_cmds_F77
16615
16616# Commands to strip libraries.
16617old_striplib=$lt_old_striplib
16618striplib=$lt_striplib
16619
16620# Dependencies to place before the objects being linked to create a
16621# shared library.
16622predep_objects=$lt_predep_objects_F77
16623
16624# Dependencies to place after the objects being linked to create a
16625# shared library.
16626postdep_objects=$lt_postdep_objects_F77
16627
16628# Dependencies to place before the objects being linked to create a
16629# shared library.
16630predeps=$lt_predeps_F77
16631
16632# Dependencies to place after the objects being linked to create a
16633# shared library.
16634postdeps=$lt_postdeps_F77
16635
16636# The directories searched by this compiler when creating a shared
16637# library
16638compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16639
16640# The library search path used internally by the compiler when linking
16641# a shared library.
16642compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16643
16644# Method to check whether dependent libraries are shared objects.
16645deplibs_check_method=$lt_deplibs_check_method
16646
16647# Command to use when deplibs_check_method == file_magic.
16648file_magic_cmd=$lt_file_magic_cmd
16649
16650# Flag that allows shared libraries with undefined symbols to be built.
16651allow_undefined_flag=$lt_allow_undefined_flag_F77
16652
16653# Flag that forces no undefined symbols.
16654no_undefined_flag=$lt_no_undefined_flag_F77
16655
16656# Commands used to finish a libtool library installation in a directory.
16657finish_cmds=$lt_finish_cmds
16658
16659# Same as above, but a single script fragment to be evaled but not shown.
16660finish_eval=$lt_finish_eval
16661
16662# Take the output of nm and produce a listing of raw symbols and C names.
16663global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16664
16665# Transform the output of nm in a proper C declaration
16666global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16667
16668# Transform the output of nm in a C name address pair
16669global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16670
16671# This is the shared library runtime path variable.
16672runpath_var=$runpath_var
16673
16674# This is the shared library path variable.
16675shlibpath_var=$shlibpath_var
16676
16677# Is shlibpath searched before the hard-coded library search path?
16678shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16679
16680# How to hardcode a shared library path into an executable.
16681hardcode_action=$hardcode_action_F77
16682
16683# Whether we should hardcode library paths into libraries.
16684hardcode_into_libs=$hardcode_into_libs
16685
16686# Flag to hardcode \$libdir into a binary during linking.
16687# This must work even if \$libdir does not exist.
16688hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16689
16690# If ld is used when linking, flag to hardcode \$libdir into
16691# a binary during linking. This must work even if \$libdir does
16692# not exist.
16693hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16694
16695# Whether we need a single -rpath flag with a separated argument.
16696hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16697
16698# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16699# resulting binary.
16700hardcode_direct=$hardcode_direct_F77
16701
16702# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16703# resulting binary.
16704hardcode_minus_L=$hardcode_minus_L_F77
16705
16706# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16707# the resulting binary.
16708hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16709
16710# Set to yes if building a shared library automatically hardcodes DIR into the library
16711# and all subsequent libraries and executables linked against it.
16712hardcode_automatic=$hardcode_automatic_F77
16713
16714# Variables whose values should be saved in libtool wrapper scripts and
16715# restored at relink time.
16716variables_saved_for_relink="$variables_saved_for_relink"
16717
16718# Whether libtool must link a program against all its dependency libraries.
16719link_all_deplibs=$link_all_deplibs_F77
16720
16721# Compile-time system search path for libraries
16722sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16723
16724# Run-time system search path for libraries
16725sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16726
16727# Fix the shell variable \$srcfile for the compiler.
16728fix_srcfile_path=$lt_fix_srcfile_path
16729
16730# Set to yes if exported symbols are required.
16731always_export_symbols=$always_export_symbols_F77
16732
16733# The commands to list exported symbols.
16734export_symbols_cmds=$lt_export_symbols_cmds_F77
16735
16736# The commands to extract the exported symbol list from a shared archive.
16737extract_expsyms_cmds=$lt_extract_expsyms_cmds
16738
16739# Symbols that should not be listed in the preloaded symbols.
16740exclude_expsyms=$lt_exclude_expsyms_F77
16741
16742# Symbols that must always be exported.
16743include_expsyms=$lt_include_expsyms_F77
16744
16745# ### END LIBTOOL TAG CONFIG: $tagname
16746
16747__EOF__
16748
16749
16750else
16751  # If there is no Makefile yet, we rely on a make rule to execute
16752  # `config.status --recheck' to rerun these tests and create the
16753  # libtool script then.
16754  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16755  if test -f "$ltmain_in"; then
16756    test -f Makefile && make "$ltmain"
16757  fi
16758fi
16759
16760
16761ac_ext=c
16762ac_cpp='$CPP $CPPFLAGS'
16763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16765ac_compiler_gnu=$ac_cv_c_compiler_gnu
16766
16767CC="$lt_save_CC"
16768
16769	else
16770	  tagname=""
16771	fi
16772	;;
16773
16774      GCJ)
16775	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16776
16777
16778# Source file extension for Java test sources.
16779ac_ext=java
16780
16781# Object file extension for compiled Java test sources.
16782objext=o
16783objext_GCJ=$objext
16784
16785# Code to be used in simple compile tests
16786lt_simple_compile_test_code="class foo {}"
16787
16788# Code to be used in simple link tests
16789lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16790
16791# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16792
16793# If no C compiler was specified, use CC.
16794LTCC=${LTCC-"$CC"}
16795
16796# If no C compiler flags were specified, use CFLAGS.
16797LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16798
16799# Allow CC to be a program name with arguments.
16800compiler=$CC
16801
16802
16803# save warnings/boilerplate of simple test code
16804ac_outfile=conftest.$ac_objext
16805echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16806eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16807_lt_compiler_boilerplate=`cat conftest.err`
16808$rm conftest*
16809
16810ac_outfile=conftest.$ac_objext
16811echo "$lt_simple_link_test_code" >conftest.$ac_ext
16812eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16813_lt_linker_boilerplate=`cat conftest.err`
16814$rm -r conftest*
16815
16816
16817# Allow CC to be a program name with arguments.
16818lt_save_CC="$CC"
16819CC=${GCJ-"gcj"}
16820compiler=$CC
16821compiler_GCJ=$CC
16822for cc_temp in $compiler""; do
16823  case $cc_temp in
16824    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16825    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16826    \-*) ;;
16827    *) break;;
16828  esac
16829done
16830cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16831
16832
16833# GCJ did not exist at the time GCC didn't implicitly link libc in.
16834archive_cmds_need_lc_GCJ=no
16835
16836old_archive_cmds_GCJ=$old_archive_cmds
16837
16838
16839lt_prog_compiler_no_builtin_flag_GCJ=
16840
16841if test "$GCC" = yes; then
16842  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16843
16844
16845{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16846echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16847if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16848  echo $ECHO_N "(cached) $ECHO_C" >&6
16849else
16850  lt_cv_prog_compiler_rtti_exceptions=no
16851  ac_outfile=conftest.$ac_objext
16852   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16853   lt_compiler_flag="-fno-rtti -fno-exceptions"
16854   # Insert the option either (1) after the last *FLAGS variable, or
16855   # (2) before a word containing "conftest.", or (3) at the end.
16856   # Note that $ac_compile itself does not contain backslashes and begins
16857   # with a dollar sign (not a hyphen), so the echo should work correctly.
16858   # The option is referenced via a variable to avoid confusing sed.
16859   lt_compile=`echo "$ac_compile" | $SED \
16860   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16861   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16862   -e 's:$: $lt_compiler_flag:'`
16863   (eval echo "\"\$as_me:16863: $lt_compile\"" >&5)
16864   (eval "$lt_compile" 2>conftest.err)
16865   ac_status=$?
16866   cat conftest.err >&5
16867   echo "$as_me:16867: \$? = $ac_status" >&5
16868   if (exit $ac_status) && test -s "$ac_outfile"; then
16869     # The compiler can only warn and ignore the option if not recognized
16870     # So say no if there are warnings other than the usual output.
16871     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16872     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16873     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16874       lt_cv_prog_compiler_rtti_exceptions=yes
16875     fi
16876   fi
16877   $rm conftest*
16878
16879fi
16880{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16881echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16882
16883if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16884    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16885else
16886    :
16887fi
16888
16889fi
16890
16891lt_prog_compiler_wl_GCJ=
16892lt_prog_compiler_pic_GCJ=
16893lt_prog_compiler_static_GCJ=
16894
16895{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16896echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16897
16898  if test "$GCC" = yes; then
16899    lt_prog_compiler_wl_GCJ='-Wl,'
16900    lt_prog_compiler_static_GCJ='-static'
16901
16902    case $host_os in
16903      aix*)
16904      # All AIX code is PIC.
16905      if test "$host_cpu" = ia64; then
16906	# AIX 5 now supports IA64 processor
16907	lt_prog_compiler_static_GCJ='-Bstatic'
16908      fi
16909      ;;
16910
16911    amigaos*)
16912      # FIXME: we need at least 68020 code to build shared libraries, but
16913      # adding the `-m68020' flag to GCC prevents building anything better,
16914      # like `-m68040'.
16915      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16916      ;;
16917
16918    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16919      # PIC is the default for these OSes.
16920      ;;
16921
16922    mingw* | cygwin* | pw32* | os2*)
16923      # This hack is so that the source file can tell whether it is being
16924      # built for inclusion in a dll (and should export symbols for example).
16925      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16926      # (--disable-auto-import) libraries
16927
16928      ;;
16929
16930    darwin* | rhapsody*)
16931      # PIC is the default on this platform
16932      # Common symbols not allowed in MH_DYLIB files
16933      lt_prog_compiler_pic_GCJ='-fno-common'
16934      ;;
16935
16936    interix[3-9]*)
16937      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16938      # Instead, we relocate shared libraries at runtime.
16939      ;;
16940
16941    msdosdjgpp*)
16942      # Just because we use GCC doesn't mean we suddenly get shared libraries
16943      # on systems that don't support them.
16944      lt_prog_compiler_can_build_shared_GCJ=no
16945      enable_shared=no
16946      ;;
16947
16948    sysv4*MP*)
16949      if test -d /usr/nec; then
16950	lt_prog_compiler_pic_GCJ=-Kconform_pic
16951      fi
16952      ;;
16953
16954    hpux*)
16955      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16956      # not for PA HP-UX.
16957      case $host_cpu in
16958      hppa*64*|ia64*)
16959	# +Z the default
16960	;;
16961      *)
16962	lt_prog_compiler_pic_GCJ='-fPIC'
16963	;;
16964      esac
16965      ;;
16966
16967    *)
16968      lt_prog_compiler_pic_GCJ='-fPIC'
16969      ;;
16970    esac
16971  else
16972    # PORTME Check for flag to pass linker flags through the system compiler.
16973    case $host_os in
16974    aix*)
16975      lt_prog_compiler_wl_GCJ='-Wl,'
16976      if test "$host_cpu" = ia64; then
16977	# AIX 5 now supports IA64 processor
16978	lt_prog_compiler_static_GCJ='-Bstatic'
16979      else
16980	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16981      fi
16982      ;;
16983      darwin*)
16984        # PIC is the default on this platform
16985        # Common symbols not allowed in MH_DYLIB files
16986       case $cc_basename in
16987         xlc*)
16988         lt_prog_compiler_pic_GCJ='-qnocommon'
16989         lt_prog_compiler_wl_GCJ='-Wl,'
16990         ;;
16991       esac
16992       ;;
16993
16994    mingw* | cygwin* | pw32* | os2*)
16995      # This hack is so that the source file can tell whether it is being
16996      # built for inclusion in a dll (and should export symbols for example).
16997
16998      ;;
16999
17000    hpux9* | hpux10* | hpux11*)
17001      lt_prog_compiler_wl_GCJ='-Wl,'
17002      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17003      # not for PA HP-UX.
17004      case $host_cpu in
17005      hppa*64*|ia64*)
17006	# +Z the default
17007	;;
17008      *)
17009	lt_prog_compiler_pic_GCJ='+Z'
17010	;;
17011      esac
17012      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17013      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17014      ;;
17015
17016    irix5* | irix6* | nonstopux*)
17017      lt_prog_compiler_wl_GCJ='-Wl,'
17018      # PIC (with -KPIC) is the default.
17019      lt_prog_compiler_static_GCJ='-non_shared'
17020      ;;
17021
17022    newsos6)
17023      lt_prog_compiler_pic_GCJ='-KPIC'
17024      lt_prog_compiler_static_GCJ='-Bstatic'
17025      ;;
17026
17027    linux* | k*bsd*-gnu)
17028      case $cc_basename in
17029      icc* | ecc*)
17030	lt_prog_compiler_wl_GCJ='-Wl,'
17031	lt_prog_compiler_pic_GCJ='-KPIC'
17032	lt_prog_compiler_static_GCJ='-static'
17033        ;;
17034      pgcc* | pgf77* | pgf90* | pgf95*)
17035        # Portland Group compilers (*not* the Pentium gcc compiler,
17036	# which looks to be a dead project)
17037	lt_prog_compiler_wl_GCJ='-Wl,'
17038	lt_prog_compiler_pic_GCJ='-fpic'
17039	lt_prog_compiler_static_GCJ='-Bstatic'
17040        ;;
17041      ccc*)
17042        lt_prog_compiler_wl_GCJ='-Wl,'
17043        # All Alpha code is PIC.
17044        lt_prog_compiler_static_GCJ='-non_shared'
17045        ;;
17046      *)
17047        case `$CC -V 2>&1 | sed 5q` in
17048	*Sun\ C*)
17049	  # Sun C 5.9
17050	  lt_prog_compiler_pic_GCJ='-KPIC'
17051	  lt_prog_compiler_static_GCJ='-Bstatic'
17052	  lt_prog_compiler_wl_GCJ='-Wl,'
17053	  ;;
17054	*Sun\ F*)
17055	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17056	  lt_prog_compiler_pic_GCJ='-KPIC'
17057	  lt_prog_compiler_static_GCJ='-Bstatic'
17058	  lt_prog_compiler_wl_GCJ=''
17059	  ;;
17060	esac
17061	;;
17062      esac
17063      ;;
17064
17065    osf3* | osf4* | osf5*)
17066      lt_prog_compiler_wl_GCJ='-Wl,'
17067      # All OSF/1 code is PIC.
17068      lt_prog_compiler_static_GCJ='-non_shared'
17069      ;;
17070
17071    rdos*)
17072      lt_prog_compiler_static_GCJ='-non_shared'
17073      ;;
17074
17075    solaris*)
17076      lt_prog_compiler_pic_GCJ='-KPIC'
17077      lt_prog_compiler_static_GCJ='-Bstatic'
17078      case $cc_basename in
17079      f77* | f90* | f95*)
17080	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17081      *)
17082	lt_prog_compiler_wl_GCJ='-Wl,';;
17083      esac
17084      ;;
17085
17086    sunos4*)
17087      lt_prog_compiler_wl_GCJ='-Qoption ld '
17088      lt_prog_compiler_pic_GCJ='-PIC'
17089      lt_prog_compiler_static_GCJ='-Bstatic'
17090      ;;
17091
17092    sysv4 | sysv4.2uw2* | sysv4.3*)
17093      lt_prog_compiler_wl_GCJ='-Wl,'
17094      lt_prog_compiler_pic_GCJ='-KPIC'
17095      lt_prog_compiler_static_GCJ='-Bstatic'
17096      ;;
17097
17098    sysv4*MP*)
17099      if test -d /usr/nec ;then
17100	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17101	lt_prog_compiler_static_GCJ='-Bstatic'
17102      fi
17103      ;;
17104
17105    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17106      lt_prog_compiler_wl_GCJ='-Wl,'
17107      lt_prog_compiler_pic_GCJ='-KPIC'
17108      lt_prog_compiler_static_GCJ='-Bstatic'
17109      ;;
17110
17111    unicos*)
17112      lt_prog_compiler_wl_GCJ='-Wl,'
17113      lt_prog_compiler_can_build_shared_GCJ=no
17114      ;;
17115
17116    uts4*)
17117      lt_prog_compiler_pic_GCJ='-pic'
17118      lt_prog_compiler_static_GCJ='-Bstatic'
17119      ;;
17120
17121    *)
17122      lt_prog_compiler_can_build_shared_GCJ=no
17123      ;;
17124    esac
17125  fi
17126
17127{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17128echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17129
17130#
17131# Check to make sure the PIC flag actually works.
17132#
17133if test -n "$lt_prog_compiler_pic_GCJ"; then
17134
17135{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17136echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17137if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17138  echo $ECHO_N "(cached) $ECHO_C" >&6
17139else
17140  lt_cv_prog_compiler_pic_works_GCJ=no
17141  ac_outfile=conftest.$ac_objext
17142   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17143   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17144   # Insert the option either (1) after the last *FLAGS variable, or
17145   # (2) before a word containing "conftest.", or (3) at the end.
17146   # Note that $ac_compile itself does not contain backslashes and begins
17147   # with a dollar sign (not a hyphen), so the echo should work correctly.
17148   # The option is referenced via a variable to avoid confusing sed.
17149   lt_compile=`echo "$ac_compile" | $SED \
17150   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17151   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17152   -e 's:$: $lt_compiler_flag:'`
17153   (eval echo "\"\$as_me:17153: $lt_compile\"" >&5)
17154   (eval "$lt_compile" 2>conftest.err)
17155   ac_status=$?
17156   cat conftest.err >&5
17157   echo "$as_me:17157: \$? = $ac_status" >&5
17158   if (exit $ac_status) && test -s "$ac_outfile"; then
17159     # The compiler can only warn and ignore the option if not recognized
17160     # So say no if there are warnings other than the usual output.
17161     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17162     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17163     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17164       lt_cv_prog_compiler_pic_works_GCJ=yes
17165     fi
17166   fi
17167   $rm conftest*
17168
17169fi
17170{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17171echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17172
17173if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17174    case $lt_prog_compiler_pic_GCJ in
17175     "" | " "*) ;;
17176     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17177     esac
17178else
17179    lt_prog_compiler_pic_GCJ=
17180     lt_prog_compiler_can_build_shared_GCJ=no
17181fi
17182
17183fi
17184case $host_os in
17185  # For platforms which do not support PIC, -DPIC is meaningless:
17186  *djgpp*)
17187    lt_prog_compiler_pic_GCJ=
17188    ;;
17189  *)
17190    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17191    ;;
17192esac
17193
17194#
17195# Check to make sure the static flag actually works.
17196#
17197wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17198{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17199echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17200if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17201  echo $ECHO_N "(cached) $ECHO_C" >&6
17202else
17203  lt_cv_prog_compiler_static_works_GCJ=no
17204   save_LDFLAGS="$LDFLAGS"
17205   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17206   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17207   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17208     # The linker can only warn and ignore the option if not recognized
17209     # So say no if there are warnings
17210     if test -s conftest.err; then
17211       # Append any errors to the config.log.
17212       cat conftest.err 1>&5
17213       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17214       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17215       if diff conftest.exp conftest.er2 >/dev/null; then
17216         lt_cv_prog_compiler_static_works_GCJ=yes
17217       fi
17218     else
17219       lt_cv_prog_compiler_static_works_GCJ=yes
17220     fi
17221   fi
17222   $rm -r conftest*
17223   LDFLAGS="$save_LDFLAGS"
17224
17225fi
17226{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17227echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17228
17229if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17230    :
17231else
17232    lt_prog_compiler_static_GCJ=
17233fi
17234
17235
17236{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17237echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17238if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17239  echo $ECHO_N "(cached) $ECHO_C" >&6
17240else
17241  lt_cv_prog_compiler_c_o_GCJ=no
17242   $rm -r conftest 2>/dev/null
17243   mkdir conftest
17244   cd conftest
17245   mkdir out
17246   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17247
17248   lt_compiler_flag="-o out/conftest2.$ac_objext"
17249   # Insert the option either (1) after the last *FLAGS variable, or
17250   # (2) before a word containing "conftest.", or (3) at the end.
17251   # Note that $ac_compile itself does not contain backslashes and begins
17252   # with a dollar sign (not a hyphen), so the echo should work correctly.
17253   lt_compile=`echo "$ac_compile" | $SED \
17254   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17255   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17256   -e 's:$: $lt_compiler_flag:'`
17257   (eval echo "\"\$as_me:17257: $lt_compile\"" >&5)
17258   (eval "$lt_compile" 2>out/conftest.err)
17259   ac_status=$?
17260   cat out/conftest.err >&5
17261   echo "$as_me:17261: \$? = $ac_status" >&5
17262   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17263   then
17264     # The compiler can only warn and ignore the option if not recognized
17265     # So say no if there are warnings
17266     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17267     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17268     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17269       lt_cv_prog_compiler_c_o_GCJ=yes
17270     fi
17271   fi
17272   chmod u+w . 2>&5
17273   $rm conftest*
17274   # SGI C++ compiler will create directory out/ii_files/ for
17275   # template instantiation
17276   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17277   $rm out/* && rmdir out
17278   cd ..
17279   rmdir conftest
17280   $rm conftest*
17281
17282fi
17283{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17284echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17285
17286
17287hard_links="nottested"
17288if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17289  # do not overwrite the value of need_locks provided by the user
17290  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17291echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17292  hard_links=yes
17293  $rm conftest*
17294  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17295  touch conftest.a
17296  ln conftest.a conftest.b 2>&5 || hard_links=no
17297  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17298  { echo "$as_me:$LINENO: result: $hard_links" >&5
17299echo "${ECHO_T}$hard_links" >&6; }
17300  if test "$hard_links" = no; then
17301    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17302echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17303    need_locks=warn
17304  fi
17305else
17306  need_locks=no
17307fi
17308
17309{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17310echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17311
17312  runpath_var=
17313  allow_undefined_flag_GCJ=
17314  enable_shared_with_static_runtimes_GCJ=no
17315  archive_cmds_GCJ=
17316  archive_expsym_cmds_GCJ=
17317  old_archive_From_new_cmds_GCJ=
17318  old_archive_from_expsyms_cmds_GCJ=
17319  export_dynamic_flag_spec_GCJ=
17320  whole_archive_flag_spec_GCJ=
17321  thread_safe_flag_spec_GCJ=
17322  hardcode_libdir_flag_spec_GCJ=
17323  hardcode_libdir_flag_spec_ld_GCJ=
17324  hardcode_libdir_separator_GCJ=
17325  hardcode_direct_GCJ=no
17326  hardcode_minus_L_GCJ=no
17327  hardcode_shlibpath_var_GCJ=unsupported
17328  link_all_deplibs_GCJ=unknown
17329  hardcode_automatic_GCJ=no
17330  module_cmds_GCJ=
17331  module_expsym_cmds_GCJ=
17332  always_export_symbols_GCJ=no
17333  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17334  # include_expsyms should be a list of space-separated symbols to be *always*
17335  # included in the symbol list
17336  include_expsyms_GCJ=
17337  # exclude_expsyms can be an extended regexp of symbols to exclude
17338  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17339  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17340  # as well as any symbol that contains `d'.
17341  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17342  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17343  # platforms (ab)use it in PIC code, but their linkers get confused if
17344  # the symbol is explicitly referenced.  Since portable code cannot
17345  # rely on this symbol name, it's probably fine to never include it in
17346  # preloaded symbol tables.
17347  # Exclude shared library initialization/finalization symbols.
17348  extract_expsyms_cmds=
17349  # Just being paranoid about ensuring that cc_basename is set.
17350  for cc_temp in $compiler""; do
17351  case $cc_temp in
17352    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17353    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17354    \-*) ;;
17355    *) break;;
17356  esac
17357done
17358cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17359
17360  case $host_os in
17361  cygwin* | mingw* | pw32*)
17362    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17363    # When not using gcc, we currently assume that we are using
17364    # Microsoft Visual C++.
17365    if test "$GCC" != yes; then
17366      with_gnu_ld=no
17367    fi
17368    ;;
17369  interix*)
17370    # we just hope/assume this is gcc and not c89 (= MSVC++)
17371    with_gnu_ld=yes
17372    ;;
17373  openbsd*)
17374    with_gnu_ld=no
17375    ;;
17376  esac
17377
17378  ld_shlibs_GCJ=yes
17379  if test "$with_gnu_ld" = yes; then
17380    # If archive_cmds runs LD, not CC, wlarc should be empty
17381    wlarc='${wl}'
17382
17383    # Set some defaults for GNU ld with shared library support. These
17384    # are reset later if shared libraries are not supported. Putting them
17385    # here allows them to be overridden if necessary.
17386    runpath_var=LD_RUN_PATH
17387    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17388    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17389    # ancient GNU ld didn't support --whole-archive et. al.
17390    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17391	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17392      else
17393  	whole_archive_flag_spec_GCJ=
17394    fi
17395    supports_anon_versioning=no
17396    case `$LD -v 2>/dev/null` in
17397      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17398      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17399      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17400      *\ 2.11.*) ;; # other 2.11 versions
17401      *) supports_anon_versioning=yes ;;
17402    esac
17403
17404    # See if GNU ld supports shared libraries.
17405    case $host_os in
17406    aix[3-9]*)
17407      # On AIX/PPC, the GNU linker is very broken
17408      if test "$host_cpu" != ia64; then
17409	ld_shlibs_GCJ=no
17410	cat <<EOF 1>&2
17411
17412*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17413*** to be unable to reliably create shared libraries on AIX.
17414*** Therefore, libtool is disabling shared libraries support.  If you
17415*** really care for shared libraries, you may want to modify your PATH
17416*** so that a non-GNU linker is found, and then restart.
17417
17418EOF
17419      fi
17420      ;;
17421
17422    amigaos*)
17423      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)'
17424      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17425      hardcode_minus_L_GCJ=yes
17426
17427      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17428      # that the semantics of dynamic libraries on AmigaOS, at least up
17429      # to version 4, is to share data among multiple programs linked
17430      # with the same dynamic library.  Since this doesn't match the
17431      # behavior of shared libraries on other platforms, we can't use
17432      # them.
17433      ld_shlibs_GCJ=no
17434      ;;
17435
17436    beos*)
17437      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17438	allow_undefined_flag_GCJ=unsupported
17439	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17440	# support --undefined.  This deserves some investigation.  FIXME
17441	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17442      else
17443	ld_shlibs_GCJ=no
17444      fi
17445      ;;
17446
17447    cygwin* | mingw* | pw32*)
17448      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17449      # as there is no search path for DLLs.
17450      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17451      allow_undefined_flag_GCJ=unsupported
17452      always_export_symbols_GCJ=no
17453      enable_shared_with_static_runtimes_GCJ=yes
17454      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17455
17456      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17457        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17458	# If the export-symbols file already is a .def file (1st line
17459	# is EXPORTS), use it as is; otherwise, prepend...
17460	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17461	  cp $export_symbols $output_objdir/$soname.def;
17462	else
17463	  echo EXPORTS > $output_objdir/$soname.def;
17464	  cat $export_symbols >> $output_objdir/$soname.def;
17465	fi~
17466	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17467      else
17468	ld_shlibs_GCJ=no
17469      fi
17470      ;;
17471
17472    interix[3-9]*)
17473      hardcode_direct_GCJ=no
17474      hardcode_shlibpath_var_GCJ=no
17475      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17476      export_dynamic_flag_spec_GCJ='${wl}-E'
17477      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17478      # Instead, shared libraries are loaded at an image base (0x10000000 by
17479      # default) and relocated if they conflict, which is a slow very memory
17480      # consuming and fragmenting process.  To avoid this, we pick a random,
17481      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17482      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17483      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'
17484      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'
17485      ;;
17486
17487    gnu* | linux* | k*bsd*-gnu)
17488      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17489	tmp_addflag=
17490	case $cc_basename,$host_cpu in
17491	pgcc*)				# Portland Group C compiler
17492	  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'
17493	  tmp_addflag=' $pic_flag'
17494	  ;;
17495	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17496	  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'
17497	  tmp_addflag=' $pic_flag -Mnomain' ;;
17498	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17499	  tmp_addflag=' -i_dynamic' ;;
17500	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17501	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17502	ifc* | ifort*)			# Intel Fortran compiler
17503	  tmp_addflag=' -nofor_main' ;;
17504	esac
17505	case `$CC -V 2>&1 | sed 5q` in
17506	*Sun\ C*)			# Sun C 5.9
17507	  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'
17508	  tmp_sharedflag='-G' ;;
17509	*Sun\ F*)			# Sun Fortran 8.3
17510	  tmp_sharedflag='-G' ;;
17511	*)
17512	  tmp_sharedflag='-shared' ;;
17513	esac
17514	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17515
17516	if test $supports_anon_versioning = yes; then
17517	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17518  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17519  $echo "local: *; };" >> $output_objdir/$libname.ver~
17520	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17521	fi
17522	link_all_deplibs_GCJ=no
17523      else
17524	ld_shlibs_GCJ=no
17525      fi
17526      ;;
17527
17528    netbsd* | netbsdelf*-gnu)
17529      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17530	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17531	wlarc=
17532      else
17533	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17535      fi
17536      ;;
17537
17538    solaris*)
17539      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17540	ld_shlibs_GCJ=no
17541	cat <<EOF 1>&2
17542
17543*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17544*** create shared libraries on Solaris systems.  Therefore, libtool
17545*** is disabling shared libraries support.  We urge you to upgrade GNU
17546*** binutils to release 2.9.1 or newer.  Another option is to modify
17547*** your PATH or compiler configuration so that the native linker is
17548*** used, and then restart.
17549
17550EOF
17551      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17552	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17554      else
17555	ld_shlibs_GCJ=no
17556      fi
17557      ;;
17558
17559    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17560      case `$LD -v 2>&1` in
17561        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17562	ld_shlibs_GCJ=no
17563	cat <<_LT_EOF 1>&2
17564
17565*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17566*** reliably create shared libraries on SCO systems.  Therefore, libtool
17567*** is disabling shared libraries support.  We urge you to upgrade GNU
17568*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17569*** your PATH or compiler configuration so that the native linker is
17570*** used, and then restart.
17571
17572_LT_EOF
17573	;;
17574	*)
17575	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17576	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17577	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17578	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17579	  else
17580	    ld_shlibs_GCJ=no
17581	  fi
17582	;;
17583      esac
17584      ;;
17585
17586    sunos4*)
17587      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17588      wlarc=
17589      hardcode_direct_GCJ=yes
17590      hardcode_shlibpath_var_GCJ=no
17591      ;;
17592
17593    *)
17594      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17595	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17596	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17597      else
17598	ld_shlibs_GCJ=no
17599      fi
17600      ;;
17601    esac
17602
17603    if test "$ld_shlibs_GCJ" = no; then
17604      runpath_var=
17605      hardcode_libdir_flag_spec_GCJ=
17606      export_dynamic_flag_spec_GCJ=
17607      whole_archive_flag_spec_GCJ=
17608    fi
17609  else
17610    # PORTME fill in a description of your system's linker (not GNU ld)
17611    case $host_os in
17612    aix3*)
17613      allow_undefined_flag_GCJ=unsupported
17614      always_export_symbols_GCJ=yes
17615      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'
17616      # Note: this linker hardcodes the directories in LIBPATH if there
17617      # are no directories specified by -L.
17618      hardcode_minus_L_GCJ=yes
17619      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17620	# Neither direct hardcoding nor static linking is supported with a
17621	# broken collect2.
17622	hardcode_direct_GCJ=unsupported
17623      fi
17624      ;;
17625
17626    aix[4-9]*)
17627      if test "$host_cpu" = ia64; then
17628	# On IA64, the linker does run time linking by default, so we don't
17629	# have to do anything special.
17630	aix_use_runtimelinking=no
17631	exp_sym_flag='-Bexport'
17632	no_entry_flag=""
17633      else
17634	# If we're using GNU nm, then we don't want the "-C" option.
17635	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17636	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17637	  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'
17638	else
17639	  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'
17640	fi
17641	aix_use_runtimelinking=no
17642
17643	# Test if we are trying to use run time linking or normal
17644	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17645	# need to do runtime linking.
17646	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17647	  for ld_flag in $LDFLAGS; do
17648  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17649  	    aix_use_runtimelinking=yes
17650  	    break
17651  	  fi
17652	  done
17653	  ;;
17654	esac
17655
17656	exp_sym_flag='-bexport'
17657	no_entry_flag='-bnoentry'
17658      fi
17659
17660      # When large executables or shared objects are built, AIX ld can
17661      # have problems creating the table of contents.  If linking a library
17662      # or program results in "error TOC overflow" add -mminimal-toc to
17663      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17664      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17665
17666      archive_cmds_GCJ=''
17667      hardcode_direct_GCJ=yes
17668      hardcode_libdir_separator_GCJ=':'
17669      link_all_deplibs_GCJ=yes
17670
17671      if test "$GCC" = yes; then
17672	case $host_os in aix4.[012]|aix4.[012].*)
17673	# We only want to do this on AIX 4.2 and lower, the check
17674	# below for broken collect2 doesn't work under 4.3+
17675	  collect2name=`${CC} -print-prog-name=collect2`
17676	  if test -f "$collect2name" && \
17677  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17678	  then
17679  	  # We have reworked collect2
17680  	  :
17681	  else
17682  	  # We have old collect2
17683  	  hardcode_direct_GCJ=unsupported
17684  	  # It fails to find uninstalled libraries when the uninstalled
17685  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17686  	  # to unsupported forces relinking
17687  	  hardcode_minus_L_GCJ=yes
17688  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17689  	  hardcode_libdir_separator_GCJ=
17690	  fi
17691	  ;;
17692	esac
17693	shared_flag='-shared'
17694	if test "$aix_use_runtimelinking" = yes; then
17695	  shared_flag="$shared_flag "'${wl}-G'
17696	fi
17697      else
17698	# not using gcc
17699	if test "$host_cpu" = ia64; then
17700  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17701  	# chokes on -Wl,-G. The following line is correct:
17702	  shared_flag='-G'
17703	else
17704	  if test "$aix_use_runtimelinking" = yes; then
17705	    shared_flag='${wl}-G'
17706	  else
17707	    shared_flag='${wl}-bM:SRE'
17708	  fi
17709	fi
17710      fi
17711
17712      # It seems that -bexpall does not export symbols beginning with
17713      # underscore (_), so it is better to generate a list of symbols to export.
17714      always_export_symbols_GCJ=yes
17715      if test "$aix_use_runtimelinking" = yes; then
17716	# Warning - without using the other runtime loading flags (-brtl),
17717	# -berok will link without error, but may produce a broken library.
17718	allow_undefined_flag_GCJ='-berok'
17719       # Determine the default libpath from the value encoded in an empty executable.
17720       cat >conftest.$ac_ext <<_ACEOF
17721/* confdefs.h.  */
17722_ACEOF
17723cat confdefs.h >>conftest.$ac_ext
17724cat >>conftest.$ac_ext <<_ACEOF
17725/* end confdefs.h.  */
17726
17727int
17728main ()
17729{
17730
17731  ;
17732  return 0;
17733}
17734_ACEOF
17735rm -f conftest.$ac_objext conftest$ac_exeext
17736if { (ac_try="$ac_link"
17737case "(($ac_try" in
17738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739  *) ac_try_echo=$ac_try;;
17740esac
17741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742  (eval "$ac_link") 2>conftest.er1
17743  ac_status=$?
17744  grep -v '^ *+' conftest.er1 >conftest.err
17745  rm -f conftest.er1
17746  cat conftest.err >&5
17747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748  (exit $ac_status); } && {
17749	 test -z "$ac_c_werror_flag" ||
17750	 test ! -s conftest.err
17751       } && test -s conftest$ac_exeext &&
17752       $as_test_x conftest$ac_exeext; then
17753
17754lt_aix_libpath_sed='
17755    /Import File Strings/,/^$/ {
17756	/^0/ {
17757	    s/^0  *\(.*\)$/\1/
17758	    p
17759	}
17760    }'
17761aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17762# Check for a 64-bit object if we didn't find anything.
17763if test -z "$aix_libpath"; then
17764  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17765fi
17766else
17767  echo "$as_me: failed program was:" >&5
17768sed 's/^/| /' conftest.$ac_ext >&5
17769
17770
17771fi
17772
17773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17774      conftest$ac_exeext conftest.$ac_ext
17775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17776
17777       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17778	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"
17779       else
17780	if test "$host_cpu" = ia64; then
17781	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17782	  allow_undefined_flag_GCJ="-z nodefs"
17783	  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"
17784	else
17785	 # Determine the default libpath from the value encoded in an empty executable.
17786	 cat >conftest.$ac_ext <<_ACEOF
17787/* confdefs.h.  */
17788_ACEOF
17789cat confdefs.h >>conftest.$ac_ext
17790cat >>conftest.$ac_ext <<_ACEOF
17791/* end confdefs.h.  */
17792
17793int
17794main ()
17795{
17796
17797  ;
17798  return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext conftest$ac_exeext
17802if { (ac_try="$ac_link"
17803case "(($ac_try" in
17804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805  *) ac_try_echo=$ac_try;;
17806esac
17807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808  (eval "$ac_link") 2>conftest.er1
17809  ac_status=$?
17810  grep -v '^ *+' conftest.er1 >conftest.err
17811  rm -f conftest.er1
17812  cat conftest.err >&5
17813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814  (exit $ac_status); } && {
17815	 test -z "$ac_c_werror_flag" ||
17816	 test ! -s conftest.err
17817       } && test -s conftest$ac_exeext &&
17818       $as_test_x conftest$ac_exeext; then
17819
17820lt_aix_libpath_sed='
17821    /Import File Strings/,/^$/ {
17822	/^0/ {
17823	    s/^0  *\(.*\)$/\1/
17824	    p
17825	}
17826    }'
17827aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17828# Check for a 64-bit object if we didn't find anything.
17829if test -z "$aix_libpath"; then
17830  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17831fi
17832else
17833  echo "$as_me: failed program was:" >&5
17834sed 's/^/| /' conftest.$ac_ext >&5
17835
17836
17837fi
17838
17839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17840      conftest$ac_exeext conftest.$ac_ext
17841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17842
17843	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17844	  # Warning - without using the other run time loading flags,
17845	  # -berok will link without error, but may produce a broken library.
17846	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17847	  allow_undefined_flag_GCJ=' ${wl}-berok'
17848	  # Exported symbols can be pulled into shared objects from archives
17849	  whole_archive_flag_spec_GCJ='$convenience'
17850	  archive_cmds_need_lc_GCJ=yes
17851	  # This is similar to how AIX traditionally builds its shared libraries.
17852	  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'
17853	fi
17854      fi
17855      ;;
17856
17857    amigaos*)
17858      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)'
17859      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17860      hardcode_minus_L_GCJ=yes
17861      # see comment about different semantics on the GNU ld section
17862      ld_shlibs_GCJ=no
17863      ;;
17864
17865    bsdi[45]*)
17866      export_dynamic_flag_spec_GCJ=-rdynamic
17867      ;;
17868
17869    cygwin* | mingw* | pw32*)
17870      # When not using gcc, we currently assume that we are using
17871      # Microsoft Visual C++.
17872      # hardcode_libdir_flag_spec is actually meaningless, as there is
17873      # no search path for DLLs.
17874      hardcode_libdir_flag_spec_GCJ=' '
17875      allow_undefined_flag_GCJ=unsupported
17876      # Tell ltmain to make .lib files, not .a files.
17877      libext=lib
17878      # Tell ltmain to make .dll files, not .so files.
17879      shrext_cmds=".dll"
17880      # FIXME: Setting linknames here is a bad hack.
17881      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17882      # The linker will automatically build a .lib file if we build a DLL.
17883      old_archive_From_new_cmds_GCJ='true'
17884      # FIXME: Should let the user specify the lib program.
17885      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17886      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17887      enable_shared_with_static_runtimes_GCJ=yes
17888      ;;
17889
17890    darwin* | rhapsody*)
17891      case $host_os in
17892        rhapsody* | darwin1.[012])
17893         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17894         ;;
17895       *) # Darwin 1.3 on
17896         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17897           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17898         else
17899           case ${MACOSX_DEPLOYMENT_TARGET} in
17900             10.[012])
17901               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17902               ;;
17903             10.*)
17904               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17905               ;;
17906           esac
17907         fi
17908         ;;
17909      esac
17910      archive_cmds_need_lc_GCJ=no
17911      hardcode_direct_GCJ=no
17912      hardcode_automatic_GCJ=yes
17913      hardcode_shlibpath_var_GCJ=unsupported
17914      whole_archive_flag_spec_GCJ=''
17915      link_all_deplibs_GCJ=yes
17916    if test "$GCC" = yes ; then
17917    	output_verbose_link_cmd='echo'
17918        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17919        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17920        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17921        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17922    else
17923      case $cc_basename in
17924        xlc*)
17925         output_verbose_link_cmd='echo'
17926         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17927         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17928          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17929         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}'
17930          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}'
17931          ;;
17932       *)
17933         ld_shlibs_GCJ=no
17934          ;;
17935      esac
17936    fi
17937      ;;
17938
17939    dgux*)
17940      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17942      hardcode_shlibpath_var_GCJ=no
17943      ;;
17944
17945    freebsd1*)
17946      ld_shlibs_GCJ=no
17947      ;;
17948
17949    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17950    # support.  Future versions do this automatically, but an explicit c++rt0.o
17951    # does not break anything, and helps significantly (at the cost of a little
17952    # extra space).
17953    freebsd2.2*)
17954      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17955      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17956      hardcode_direct_GCJ=yes
17957      hardcode_shlibpath_var_GCJ=no
17958      ;;
17959
17960    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17961    freebsd2*)
17962      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17963      hardcode_direct_GCJ=yes
17964      hardcode_minus_L_GCJ=yes
17965      hardcode_shlibpath_var_GCJ=no
17966      ;;
17967
17968    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17969    freebsd* | dragonfly*)
17970      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17971      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17972      hardcode_direct_GCJ=yes
17973      hardcode_shlibpath_var_GCJ=no
17974      ;;
17975
17976    hpux9*)
17977      if test "$GCC" = yes; then
17978	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'
17979      else
17980	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'
17981      fi
17982      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17983      hardcode_libdir_separator_GCJ=:
17984      hardcode_direct_GCJ=yes
17985
17986      # hardcode_minus_L: Not really in the search PATH,
17987      # but as the default location of the library.
17988      hardcode_minus_L_GCJ=yes
17989      export_dynamic_flag_spec_GCJ='${wl}-E'
17990      ;;
17991
17992    hpux10*)
17993      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17994	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17995      else
17996	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17997      fi
17998      if test "$with_gnu_ld" = no; then
17999	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18000	hardcode_libdir_separator_GCJ=:
18001
18002	hardcode_direct_GCJ=yes
18003	export_dynamic_flag_spec_GCJ='${wl}-E'
18004
18005	# hardcode_minus_L: Not really in the search PATH,
18006	# but as the default location of the library.
18007	hardcode_minus_L_GCJ=yes
18008      fi
18009      ;;
18010
18011    hpux11*)
18012      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18013	case $host_cpu in
18014	hppa*64*)
18015	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18016	  ;;
18017	ia64*)
18018	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18019	  ;;
18020	*)
18021	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18022	  ;;
18023	esac
18024      else
18025	case $host_cpu in
18026	hppa*64*)
18027	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18028	  ;;
18029	ia64*)
18030	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18031	  ;;
18032	*)
18033	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18034	  ;;
18035	esac
18036      fi
18037      if test "$with_gnu_ld" = no; then
18038	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18039	hardcode_libdir_separator_GCJ=:
18040
18041	case $host_cpu in
18042	hppa*64*|ia64*)
18043	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18044	  hardcode_direct_GCJ=no
18045	  hardcode_shlibpath_var_GCJ=no
18046	  ;;
18047	*)
18048	  hardcode_direct_GCJ=yes
18049	  export_dynamic_flag_spec_GCJ='${wl}-E'
18050
18051	  # hardcode_minus_L: Not really in the search PATH,
18052	  # but as the default location of the library.
18053	  hardcode_minus_L_GCJ=yes
18054	  ;;
18055	esac
18056      fi
18057      ;;
18058
18059    irix5* | irix6* | nonstopux*)
18060      if test "$GCC" = yes; then
18061	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'
18062      else
18063	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'
18064	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18065      fi
18066      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18067      hardcode_libdir_separator_GCJ=:
18068      link_all_deplibs_GCJ=yes
18069      ;;
18070
18071    netbsd* | netbsdelf*-gnu)
18072      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18073	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18074      else
18075	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18076      fi
18077      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18078      hardcode_direct_GCJ=yes
18079      hardcode_shlibpath_var_GCJ=no
18080      ;;
18081
18082    newsos6)
18083      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18084      hardcode_direct_GCJ=yes
18085      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18086      hardcode_libdir_separator_GCJ=:
18087      hardcode_shlibpath_var_GCJ=no
18088      ;;
18089
18090    openbsd*)
18091      if test -f /usr/libexec/ld.so; then
18092	hardcode_direct_GCJ=yes
18093	hardcode_shlibpath_var_GCJ=no
18094	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18095	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18096	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18097	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18098	  export_dynamic_flag_spec_GCJ='${wl}-E'
18099	else
18100	  case $host_os in
18101	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18102	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18103	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18104	     ;;
18105	   *)
18106	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18107	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18108	     ;;
18109	  esac
18110        fi
18111      else
18112	ld_shlibs_GCJ=no
18113      fi
18114      ;;
18115
18116    os2*)
18117      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18118      hardcode_minus_L_GCJ=yes
18119      allow_undefined_flag_GCJ=unsupported
18120      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'
18121      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18122      ;;
18123
18124    osf3*)
18125      if test "$GCC" = yes; then
18126	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18127	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'
18128      else
18129	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18130	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'
18131      fi
18132      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18133      hardcode_libdir_separator_GCJ=:
18134      ;;
18135
18136    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18137      if test "$GCC" = yes; then
18138	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18139	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'
18140	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18141      else
18142	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18143	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'
18144	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~
18145	$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'
18146
18147	# Both c and cxx compiler support -rpath directly
18148	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18149      fi
18150      hardcode_libdir_separator_GCJ=:
18151      ;;
18152
18153    solaris*)
18154      no_undefined_flag_GCJ=' -z text'
18155      if test "$GCC" = yes; then
18156	wlarc='${wl}'
18157	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18158	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18159	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18160      else
18161	wlarc=''
18162	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18163	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18164  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18165      fi
18166      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18167      hardcode_shlibpath_var_GCJ=no
18168      case $host_os in
18169      solaris2.[0-5] | solaris2.[0-5].*) ;;
18170      *)
18171	# The compiler driver will combine and reorder linker options,
18172	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18173	# but is careful enough not to reorder.
18174 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18175	if test "$GCC" = yes; then
18176	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18177	else
18178	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18179	fi
18180	;;
18181      esac
18182      link_all_deplibs_GCJ=yes
18183      ;;
18184
18185    sunos4*)
18186      if test "x$host_vendor" = xsequent; then
18187	# Use $CC to link under sequent, because it throws in some extra .o
18188	# files that make .init and .fini sections work.
18189	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18190      else
18191	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18192      fi
18193      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18194      hardcode_direct_GCJ=yes
18195      hardcode_minus_L_GCJ=yes
18196      hardcode_shlibpath_var_GCJ=no
18197      ;;
18198
18199    sysv4)
18200      case $host_vendor in
18201	sni)
18202	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18203	  hardcode_direct_GCJ=yes # is this really true???
18204	;;
18205	siemens)
18206	  ## LD is ld it makes a PLAMLIB
18207	  ## CC just makes a GrossModule.
18208	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18209	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18210	  hardcode_direct_GCJ=no
18211        ;;
18212	motorola)
18213	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18214	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18215	;;
18216      esac
18217      runpath_var='LD_RUN_PATH'
18218      hardcode_shlibpath_var_GCJ=no
18219      ;;
18220
18221    sysv4.3*)
18222      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18223      hardcode_shlibpath_var_GCJ=no
18224      export_dynamic_flag_spec_GCJ='-Bexport'
18225      ;;
18226
18227    sysv4*MP*)
18228      if test -d /usr/nec; then
18229	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18230	hardcode_shlibpath_var_GCJ=no
18231	runpath_var=LD_RUN_PATH
18232	hardcode_runpath_var=yes
18233	ld_shlibs_GCJ=yes
18234      fi
18235      ;;
18236
18237    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18238      no_undefined_flag_GCJ='${wl}-z,text'
18239      archive_cmds_need_lc_GCJ=no
18240      hardcode_shlibpath_var_GCJ=no
18241      runpath_var='LD_RUN_PATH'
18242
18243      if test "$GCC" = yes; then
18244	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18245	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18246      else
18247	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18248	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18249      fi
18250      ;;
18251
18252    sysv5* | sco3.2v5* | sco5v6*)
18253      # Note: We can NOT use -z defs as we might desire, because we do not
18254      # link with -lc, and that would cause any symbols used from libc to
18255      # always be unresolved, which means just about no library would
18256      # ever link correctly.  If we're not using GNU ld we use -z text
18257      # though, which does catch some bad symbols but isn't as heavy-handed
18258      # as -z defs.
18259      no_undefined_flag_GCJ='${wl}-z,text'
18260      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18261      archive_cmds_need_lc_GCJ=no
18262      hardcode_shlibpath_var_GCJ=no
18263      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18264      hardcode_libdir_separator_GCJ=':'
18265      link_all_deplibs_GCJ=yes
18266      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18267      runpath_var='LD_RUN_PATH'
18268
18269      if test "$GCC" = yes; then
18270	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18271	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18272      else
18273	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18274	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18275      fi
18276      ;;
18277
18278    uts4*)
18279      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18280      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18281      hardcode_shlibpath_var_GCJ=no
18282      ;;
18283
18284    *)
18285      ld_shlibs_GCJ=no
18286      ;;
18287    esac
18288  fi
18289
18290{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18291echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18292test "$ld_shlibs_GCJ" = no && can_build_shared=no
18293
18294#
18295# Do we need to explicitly link libc?
18296#
18297case "x$archive_cmds_need_lc_GCJ" in
18298x|xyes)
18299  # Assume -lc should be added
18300  archive_cmds_need_lc_GCJ=yes
18301
18302  if test "$enable_shared" = yes && test "$GCC" = yes; then
18303    case $archive_cmds_GCJ in
18304    *'~'*)
18305      # FIXME: we may have to deal with multi-command sequences.
18306      ;;
18307    '$CC '*)
18308      # Test whether the compiler implicitly links with -lc since on some
18309      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18310      # to ld, don't add -lc before -lgcc.
18311      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18312echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18313      $rm conftest*
18314      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18315
18316      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18317  (eval $ac_compile) 2>&5
18318  ac_status=$?
18319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320  (exit $ac_status); } 2>conftest.err; then
18321        soname=conftest
18322        lib=conftest
18323        libobjs=conftest.$ac_objext
18324        deplibs=
18325        wl=$lt_prog_compiler_wl_GCJ
18326	pic_flag=$lt_prog_compiler_pic_GCJ
18327        compiler_flags=-v
18328        linker_flags=-v
18329        verstring=
18330        output_objdir=.
18331        libname=conftest
18332        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18333        allow_undefined_flag_GCJ=
18334        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18335  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18336  ac_status=$?
18337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338  (exit $ac_status); }
18339        then
18340	  archive_cmds_need_lc_GCJ=no
18341        else
18342	  archive_cmds_need_lc_GCJ=yes
18343        fi
18344        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18345      else
18346        cat conftest.err 1>&5
18347      fi
18348      $rm conftest*
18349      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18350echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18351      ;;
18352    esac
18353  fi
18354  ;;
18355esac
18356
18357{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18358echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18359library_names_spec=
18360libname_spec='lib$name'
18361soname_spec=
18362shrext_cmds=".so"
18363postinstall_cmds=
18364postuninstall_cmds=
18365finish_cmds=
18366finish_eval=
18367shlibpath_var=
18368shlibpath_overrides_runpath=unknown
18369version_type=none
18370dynamic_linker="$host_os ld.so"
18371sys_lib_dlsearch_path_spec="/lib /usr/lib"
18372
18373need_lib_prefix=unknown
18374hardcode_into_libs=no
18375
18376# when you set need_version to no, make sure it does not cause -set_version
18377# flags to be left without arguments
18378need_version=unknown
18379
18380case $host_os in
18381aix3*)
18382  version_type=linux
18383  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18384  shlibpath_var=LIBPATH
18385
18386  # AIX 3 has no versioning support, so we append a major version to the name.
18387  soname_spec='${libname}${release}${shared_ext}$major'
18388  ;;
18389
18390aix[4-9]*)
18391  version_type=linux
18392  need_lib_prefix=no
18393  need_version=no
18394  hardcode_into_libs=yes
18395  if test "$host_cpu" = ia64; then
18396    # AIX 5 supports IA64
18397    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18398    shlibpath_var=LD_LIBRARY_PATH
18399  else
18400    # With GCC up to 2.95.x, collect2 would create an import file
18401    # for dependence libraries.  The import file would start with
18402    # the line `#! .'.  This would cause the generated library to
18403    # depend on `.', always an invalid library.  This was fixed in
18404    # development snapshots of GCC prior to 3.0.
18405    case $host_os in
18406      aix4 | aix4.[01] | aix4.[01].*)
18407      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18408	   echo ' yes '
18409	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18410	:
18411      else
18412	can_build_shared=no
18413      fi
18414      ;;
18415    esac
18416    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18417    # soname into executable. Probably we can add versioning support to
18418    # collect2, so additional links can be useful in future.
18419    if test "$aix_use_runtimelinking" = yes; then
18420      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18421      # instead of lib<name>.a to let people know that these are not
18422      # typical AIX shared libraries.
18423      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18424    else
18425      # We preserve .a as extension for shared libraries through AIX4.2
18426      # and later when we are not doing run time linking.
18427      library_names_spec='${libname}${release}.a $libname.a'
18428      soname_spec='${libname}${release}${shared_ext}$major'
18429    fi
18430    shlibpath_var=LIBPATH
18431  fi
18432  ;;
18433
18434amigaos*)
18435  library_names_spec='$libname.ixlibrary $libname.a'
18436  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18437  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'
18438  ;;
18439
18440beos*)
18441  library_names_spec='${libname}${shared_ext}'
18442  dynamic_linker="$host_os ld.so"
18443  shlibpath_var=LIBRARY_PATH
18444  ;;
18445
18446bsdi[45]*)
18447  version_type=linux
18448  need_version=no
18449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450  soname_spec='${libname}${release}${shared_ext}$major'
18451  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18452  shlibpath_var=LD_LIBRARY_PATH
18453  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18454  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18455  # the default ld.so.conf also contains /usr/contrib/lib and
18456  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18457  # libtool to hard-code these into programs
18458  ;;
18459
18460cygwin* | mingw* | pw32*)
18461  version_type=windows
18462  shrext_cmds=".dll"
18463  need_version=no
18464  need_lib_prefix=no
18465
18466  case $GCC,$host_os in
18467  yes,cygwin* | yes,mingw* | yes,pw32*)
18468    library_names_spec='$libname.dll.a'
18469    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18470    postinstall_cmds='base_file=`basename \${file}`~
18471      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18472      dldir=$destdir/`dirname \$dlpath`~
18473      test -d \$dldir || mkdir -p \$dldir~
18474      $install_prog $dir/$dlname \$dldir/$dlname~
18475      chmod a+x \$dldir/$dlname'
18476    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18477      dlpath=$dir/\$dldll~
18478       $rm \$dlpath'
18479    shlibpath_overrides_runpath=yes
18480
18481    case $host_os in
18482    cygwin*)
18483      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18484      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18485      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18486      ;;
18487    mingw*)
18488      # MinGW DLLs use traditional 'lib' prefix
18489      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18490      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18491      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18492        # It is most probably a Windows format PATH printed by
18493        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18494        # path with ; separators, and with drive letters. We can handle the
18495        # drive letters (cygwin fileutils understands them), so leave them,
18496        # especially as we might pass files found there to a mingw objdump,
18497        # which wouldn't understand a cygwinified path. Ahh.
18498        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18499      else
18500        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18501      fi
18502      ;;
18503    pw32*)
18504      # pw32 DLLs use 'pw' prefix rather than 'lib'
18505      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18506      ;;
18507    esac
18508    ;;
18509
18510  *)
18511    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18512    ;;
18513  esac
18514  dynamic_linker='Win32 ld.exe'
18515  # FIXME: first we should search . and the directory the executable is in
18516  shlibpath_var=PATH
18517  ;;
18518
18519darwin* | rhapsody*)
18520  dynamic_linker="$host_os dyld"
18521  version_type=darwin
18522  need_lib_prefix=no
18523  need_version=no
18524  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18525  soname_spec='${libname}${release}${major}$shared_ext'
18526  shlibpath_overrides_runpath=yes
18527  shlibpath_var=DYLD_LIBRARY_PATH
18528  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18529
18530  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18531  ;;
18532
18533dgux*)
18534  version_type=linux
18535  need_lib_prefix=no
18536  need_version=no
18537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18538  soname_spec='${libname}${release}${shared_ext}$major'
18539  shlibpath_var=LD_LIBRARY_PATH
18540  ;;
18541
18542freebsd1*)
18543  dynamic_linker=no
18544  ;;
18545
18546freebsd* | dragonfly*)
18547  # DragonFly does not have aout.  When/if they implement a new
18548  # versioning mechanism, adjust this.
18549  if test -x /usr/bin/objformat; then
18550    objformat=`/usr/bin/objformat`
18551  else
18552    case $host_os in
18553    freebsd[123]*) objformat=aout ;;
18554    *) objformat=elf ;;
18555    esac
18556  fi
18557  version_type=freebsd-$objformat
18558  case $version_type in
18559    freebsd-elf*)
18560      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18561      need_version=no
18562      need_lib_prefix=no
18563      ;;
18564    freebsd-*)
18565      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18566      need_version=yes
18567      ;;
18568  esac
18569  shlibpath_var=LD_LIBRARY_PATH
18570  case $host_os in
18571  freebsd2*)
18572    shlibpath_overrides_runpath=yes
18573    ;;
18574  freebsd3.[01]* | freebsdelf3.[01]*)
18575    shlibpath_overrides_runpath=yes
18576    hardcode_into_libs=yes
18577    ;;
18578  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18579  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18580    shlibpath_overrides_runpath=no
18581    hardcode_into_libs=yes
18582    ;;
18583  *) # from 4.6 on, and DragonFly
18584    shlibpath_overrides_runpath=yes
18585    hardcode_into_libs=yes
18586    ;;
18587  esac
18588  ;;
18589
18590gnu*)
18591  version_type=linux
18592  need_lib_prefix=no
18593  need_version=no
18594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18595  soname_spec='${libname}${release}${shared_ext}$major'
18596  shlibpath_var=LD_LIBRARY_PATH
18597  hardcode_into_libs=yes
18598  ;;
18599
18600hpux9* | hpux10* | hpux11*)
18601  # Give a soname corresponding to the major version so that dld.sl refuses to
18602  # link against other versions.
18603  version_type=sunos
18604  need_lib_prefix=no
18605  need_version=no
18606  case $host_cpu in
18607  ia64*)
18608    shrext_cmds='.so'
18609    hardcode_into_libs=yes
18610    dynamic_linker="$host_os dld.so"
18611    shlibpath_var=LD_LIBRARY_PATH
18612    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18613    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18614    soname_spec='${libname}${release}${shared_ext}$major'
18615    if test "X$HPUX_IA64_MODE" = X32; then
18616      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18617    else
18618      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18619    fi
18620    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18621    ;;
18622   hppa*64*)
18623     shrext_cmds='.sl'
18624     hardcode_into_libs=yes
18625     dynamic_linker="$host_os dld.sl"
18626     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18627     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629     soname_spec='${libname}${release}${shared_ext}$major'
18630     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18631     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18632     ;;
18633   *)
18634    shrext_cmds='.sl'
18635    dynamic_linker="$host_os dld.sl"
18636    shlibpath_var=SHLIB_PATH
18637    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18638    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18639    soname_spec='${libname}${release}${shared_ext}$major'
18640    ;;
18641  esac
18642  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18643  postinstall_cmds='chmod 555 $lib'
18644  ;;
18645
18646interix[3-9]*)
18647  version_type=linux
18648  need_lib_prefix=no
18649  need_version=no
18650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18651  soname_spec='${libname}${release}${shared_ext}$major'
18652  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18653  shlibpath_var=LD_LIBRARY_PATH
18654  shlibpath_overrides_runpath=no
18655  hardcode_into_libs=yes
18656  ;;
18657
18658irix5* | irix6* | nonstopux*)
18659  case $host_os in
18660    nonstopux*) version_type=nonstopux ;;
18661    *)
18662	if test "$lt_cv_prog_gnu_ld" = yes; then
18663		version_type=linux
18664	else
18665		version_type=irix
18666	fi ;;
18667  esac
18668  need_lib_prefix=no
18669  need_version=no
18670  soname_spec='${libname}${release}${shared_ext}$major'
18671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18672  case $host_os in
18673  irix5* | nonstopux*)
18674    libsuff= shlibsuff=
18675    ;;
18676  *)
18677    case $LD in # libtool.m4 will add one of these switches to LD
18678    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18679      libsuff= shlibsuff= libmagic=32-bit;;
18680    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18681      libsuff=32 shlibsuff=N32 libmagic=N32;;
18682    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18683      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18684    *) libsuff= shlibsuff= libmagic=never-match;;
18685    esac
18686    ;;
18687  esac
18688  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18689  shlibpath_overrides_runpath=no
18690  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18691  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18692  hardcode_into_libs=yes
18693  ;;
18694
18695# No shared lib support for Linux oldld, aout, or coff.
18696linux*oldld* | linux*aout* | linux*coff*)
18697  dynamic_linker=no
18698  ;;
18699
18700# This must be Linux ELF.
18701linux* | k*bsd*-gnu)
18702  version_type=linux
18703  need_lib_prefix=no
18704  need_version=no
18705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18706  soname_spec='${libname}${release}${shared_ext}$major'
18707  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18708  shlibpath_var=LD_LIBRARY_PATH
18709  shlibpath_overrides_runpath=no
18710  # This implies no fast_install, which is unacceptable.
18711  # Some rework will be needed to allow for fast_install
18712  # before this can be enabled.
18713  hardcode_into_libs=yes
18714
18715  # Append ld.so.conf contents to the search path
18716  if test -f /etc/ld.so.conf; then
18717    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' ' '`
18718    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18719  fi
18720
18721  # We used to test for /lib/ld.so.1 and disable shared libraries on
18722  # powerpc, because MkLinux only supported shared libraries with the
18723  # GNU dynamic linker.  Since this was broken with cross compilers,
18724  # most powerpc-linux boxes support dynamic linking these days and
18725  # people can always --disable-shared, the test was removed, and we
18726  # assume the GNU/Linux dynamic linker is in use.
18727  dynamic_linker='GNU/Linux ld.so'
18728  ;;
18729
18730netbsdelf*-gnu)
18731  version_type=linux
18732  need_lib_prefix=no
18733  need_version=no
18734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18735  soname_spec='${libname}${release}${shared_ext}$major'
18736  shlibpath_var=LD_LIBRARY_PATH
18737  shlibpath_overrides_runpath=no
18738  hardcode_into_libs=yes
18739  dynamic_linker='NetBSD ld.elf_so'
18740  ;;
18741
18742netbsd*)
18743  version_type=sunos
18744  need_lib_prefix=no
18745  need_version=no
18746  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18747    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18748    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18749    dynamic_linker='NetBSD (a.out) ld.so'
18750  else
18751    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18752    soname_spec='${libname}${release}${shared_ext}$major'
18753    dynamic_linker='NetBSD ld.elf_so'
18754  fi
18755  shlibpath_var=LD_LIBRARY_PATH
18756  shlibpath_overrides_runpath=yes
18757  hardcode_into_libs=yes
18758  ;;
18759
18760newsos6)
18761  version_type=linux
18762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18763  shlibpath_var=LD_LIBRARY_PATH
18764  shlibpath_overrides_runpath=yes
18765  ;;
18766
18767nto-qnx*)
18768  version_type=linux
18769  need_lib_prefix=no
18770  need_version=no
18771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18772  soname_spec='${libname}${release}${shared_ext}$major'
18773  shlibpath_var=LD_LIBRARY_PATH
18774  shlibpath_overrides_runpath=yes
18775  ;;
18776
18777openbsd*)
18778  version_type=sunos
18779  sys_lib_dlsearch_path_spec="/usr/lib"
18780  need_lib_prefix=no
18781  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18782  case $host_os in
18783    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18784    *)                         need_version=no  ;;
18785  esac
18786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18787  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18788  shlibpath_var=LD_LIBRARY_PATH
18789  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18790    case $host_os in
18791      openbsd2.[89] | openbsd2.[89].*)
18792	shlibpath_overrides_runpath=no
18793	;;
18794      *)
18795	shlibpath_overrides_runpath=yes
18796	;;
18797      esac
18798  else
18799    shlibpath_overrides_runpath=yes
18800  fi
18801  ;;
18802
18803os2*)
18804  libname_spec='$name'
18805  shrext_cmds=".dll"
18806  need_lib_prefix=no
18807  library_names_spec='$libname${shared_ext} $libname.a'
18808  dynamic_linker='OS/2 ld.exe'
18809  shlibpath_var=LIBPATH
18810  ;;
18811
18812osf3* | osf4* | osf5*)
18813  version_type=osf
18814  need_lib_prefix=no
18815  need_version=no
18816  soname_spec='${libname}${release}${shared_ext}$major'
18817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18818  shlibpath_var=LD_LIBRARY_PATH
18819  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18820  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18821  ;;
18822
18823rdos*)
18824  dynamic_linker=no
18825  ;;
18826
18827solaris*)
18828  version_type=linux
18829  need_lib_prefix=no
18830  need_version=no
18831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18832  soname_spec='${libname}${release}${shared_ext}$major'
18833  shlibpath_var=LD_LIBRARY_PATH
18834  shlibpath_overrides_runpath=yes
18835  hardcode_into_libs=yes
18836  # ldd complains unless libraries are executable
18837  postinstall_cmds='chmod +x $lib'
18838  ;;
18839
18840sunos4*)
18841  version_type=sunos
18842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18843  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18844  shlibpath_var=LD_LIBRARY_PATH
18845  shlibpath_overrides_runpath=yes
18846  if test "$with_gnu_ld" = yes; then
18847    need_lib_prefix=no
18848  fi
18849  need_version=yes
18850  ;;
18851
18852sysv4 | sysv4.3*)
18853  version_type=linux
18854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18855  soname_spec='${libname}${release}${shared_ext}$major'
18856  shlibpath_var=LD_LIBRARY_PATH
18857  case $host_vendor in
18858    sni)
18859      shlibpath_overrides_runpath=no
18860      need_lib_prefix=no
18861      export_dynamic_flag_spec='${wl}-Blargedynsym'
18862      runpath_var=LD_RUN_PATH
18863      ;;
18864    siemens)
18865      need_lib_prefix=no
18866      ;;
18867    motorola)
18868      need_lib_prefix=no
18869      need_version=no
18870      shlibpath_overrides_runpath=no
18871      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18872      ;;
18873  esac
18874  ;;
18875
18876sysv4*MP*)
18877  if test -d /usr/nec ;then
18878    version_type=linux
18879    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18880    soname_spec='$libname${shared_ext}.$major'
18881    shlibpath_var=LD_LIBRARY_PATH
18882  fi
18883  ;;
18884
18885sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18886  version_type=freebsd-elf
18887  need_lib_prefix=no
18888  need_version=no
18889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18890  soname_spec='${libname}${release}${shared_ext}$major'
18891  shlibpath_var=LD_LIBRARY_PATH
18892  hardcode_into_libs=yes
18893  if test "$with_gnu_ld" = yes; then
18894    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18895    shlibpath_overrides_runpath=no
18896  else
18897    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18898    shlibpath_overrides_runpath=yes
18899    case $host_os in
18900      sco3.2v5*)
18901        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18902	;;
18903    esac
18904  fi
18905  sys_lib_dlsearch_path_spec='/usr/lib'
18906  ;;
18907
18908uts4*)
18909  version_type=linux
18910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911  soname_spec='${libname}${release}${shared_ext}$major'
18912  shlibpath_var=LD_LIBRARY_PATH
18913  ;;
18914
18915*)
18916  dynamic_linker=no
18917  ;;
18918esac
18919{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18920echo "${ECHO_T}$dynamic_linker" >&6; }
18921test "$dynamic_linker" = no && can_build_shared=no
18922
18923if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18924  echo $ECHO_N "(cached) $ECHO_C" >&6
18925else
18926  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18927fi
18928
18929sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18930if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18931  echo $ECHO_N "(cached) $ECHO_C" >&6
18932else
18933  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18934fi
18935
18936sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18937
18938variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18939if test "$GCC" = yes; then
18940  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18941fi
18942
18943{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18944echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18945hardcode_action_GCJ=
18946if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18947   test -n "$runpath_var_GCJ" || \
18948   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18949
18950  # We can hardcode non-existant directories.
18951  if test "$hardcode_direct_GCJ" != no &&
18952     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18953     # have to relink, otherwise we might link with an installed library
18954     # when we should be linking with a yet-to-be-installed one
18955     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18956     test "$hardcode_minus_L_GCJ" != no; then
18957    # Linking always hardcodes the temporary library directory.
18958    hardcode_action_GCJ=relink
18959  else
18960    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18961    hardcode_action_GCJ=immediate
18962  fi
18963else
18964  # We cannot hardcode anything, or else we can only hardcode existing
18965  # directories.
18966  hardcode_action_GCJ=unsupported
18967fi
18968{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18969echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18970
18971if test "$hardcode_action_GCJ" = relink; then
18972  # Fast installation is not supported
18973  enable_fast_install=no
18974elif test "$shlibpath_overrides_runpath" = yes ||
18975     test "$enable_shared" = no; then
18976  # Fast installation is not necessary
18977  enable_fast_install=needless
18978fi
18979
18980
18981# The else clause should only fire when bootstrapping the
18982# libtool distribution, otherwise you forgot to ship ltmain.sh
18983# with your package, and you will get complaints that there are
18984# no rules to generate ltmain.sh.
18985if test -f "$ltmain"; then
18986  # See if we are running on zsh, and set the options which allow our commands through
18987  # without removal of \ escapes.
18988  if test -n "${ZSH_VERSION+set}" ; then
18989    setopt NO_GLOB_SUBST
18990  fi
18991  # Now quote all the things that may contain metacharacters while being
18992  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18993  # variables and quote the copies for generation of the libtool script.
18994  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18995    SED SHELL STRIP \
18996    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18997    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18998    deplibs_check_method reload_flag reload_cmds need_locks \
18999    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19000    lt_cv_sys_global_symbol_to_c_name_address \
19001    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19002    old_postinstall_cmds old_postuninstall_cmds \
19003    compiler_GCJ \
19004    CC_GCJ \
19005    LD_GCJ \
19006    lt_prog_compiler_wl_GCJ \
19007    lt_prog_compiler_pic_GCJ \
19008    lt_prog_compiler_static_GCJ \
19009    lt_prog_compiler_no_builtin_flag_GCJ \
19010    export_dynamic_flag_spec_GCJ \
19011    thread_safe_flag_spec_GCJ \
19012    whole_archive_flag_spec_GCJ \
19013    enable_shared_with_static_runtimes_GCJ \
19014    old_archive_cmds_GCJ \
19015    old_archive_from_new_cmds_GCJ \
19016    predep_objects_GCJ \
19017    postdep_objects_GCJ \
19018    predeps_GCJ \
19019    postdeps_GCJ \
19020    compiler_lib_search_path_GCJ \
19021    compiler_lib_search_dirs_GCJ \
19022    archive_cmds_GCJ \
19023    archive_expsym_cmds_GCJ \
19024    postinstall_cmds_GCJ \
19025    postuninstall_cmds_GCJ \
19026    old_archive_from_expsyms_cmds_GCJ \
19027    allow_undefined_flag_GCJ \
19028    no_undefined_flag_GCJ \
19029    export_symbols_cmds_GCJ \
19030    hardcode_libdir_flag_spec_GCJ \
19031    hardcode_libdir_flag_spec_ld_GCJ \
19032    hardcode_libdir_separator_GCJ \
19033    hardcode_automatic_GCJ \
19034    module_cmds_GCJ \
19035    module_expsym_cmds_GCJ \
19036    lt_cv_prog_compiler_c_o_GCJ \
19037    fix_srcfile_path_GCJ \
19038    exclude_expsyms_GCJ \
19039    include_expsyms_GCJ; do
19040
19041    case $var in
19042    old_archive_cmds_GCJ | \
19043    old_archive_from_new_cmds_GCJ | \
19044    archive_cmds_GCJ | \
19045    archive_expsym_cmds_GCJ | \
19046    module_cmds_GCJ | \
19047    module_expsym_cmds_GCJ | \
19048    old_archive_from_expsyms_cmds_GCJ | \
19049    export_symbols_cmds_GCJ | \
19050    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19051    postinstall_cmds | postuninstall_cmds | \
19052    old_postinstall_cmds | old_postuninstall_cmds | \
19053    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19054      # Double-quote double-evaled strings.
19055      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19056      ;;
19057    *)
19058      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19059      ;;
19060    esac
19061  done
19062
19063  case $lt_echo in
19064  *'\$0 --fallback-echo"')
19065    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19066    ;;
19067  esac
19068
19069cfgfile="$ofile"
19070
19071  cat <<__EOF__ >> "$cfgfile"
19072# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19073
19074# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19075
19076# Shell to use when invoking shell scripts.
19077SHELL=$lt_SHELL
19078
19079# Whether or not to build shared libraries.
19080build_libtool_libs=$enable_shared
19081
19082# Whether or not to build static libraries.
19083build_old_libs=$enable_static
19084
19085# Whether or not to add -lc for building shared libraries.
19086build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19087
19088# Whether or not to disallow shared libs when runtime libs are static
19089allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19090
19091# Whether or not to optimize for fast installation.
19092fast_install=$enable_fast_install
19093
19094# The host system.
19095host_alias=$host_alias
19096host=$host
19097host_os=$host_os
19098
19099# The build system.
19100build_alias=$build_alias
19101build=$build
19102build_os=$build_os
19103
19104# An echo program that does not interpret backslashes.
19105echo=$lt_echo
19106
19107# The archiver.
19108AR=$lt_AR
19109AR_FLAGS=$lt_AR_FLAGS
19110
19111# A C compiler.
19112LTCC=$lt_LTCC
19113
19114# LTCC compiler flags.
19115LTCFLAGS=$lt_LTCFLAGS
19116
19117# A language-specific compiler.
19118CC=$lt_compiler_GCJ
19119
19120# Is the compiler the GNU C compiler?
19121with_gcc=$GCC_GCJ
19122
19123# An ERE matcher.
19124EGREP=$lt_EGREP
19125
19126# The linker used to build libraries.
19127LD=$lt_LD_GCJ
19128
19129# Whether we need hard or soft links.
19130LN_S=$lt_LN_S
19131
19132# A BSD-compatible nm program.
19133NM=$lt_NM
19134
19135# A symbol stripping program
19136STRIP=$lt_STRIP
19137
19138# Used to examine libraries when file_magic_cmd begins "file"
19139MAGIC_CMD=$MAGIC_CMD
19140
19141# Used on cygwin: DLL creation program.
19142DLLTOOL="$DLLTOOL"
19143
19144# Used on cygwin: object dumper.
19145OBJDUMP="$OBJDUMP"
19146
19147# Used on cygwin: assembler.
19148AS="$AS"
19149
19150# The name of the directory that contains temporary libtool files.
19151objdir=$objdir
19152
19153# How to create reloadable object files.
19154reload_flag=$lt_reload_flag
19155reload_cmds=$lt_reload_cmds
19156
19157# How to pass a linker flag through the compiler.
19158wl=$lt_lt_prog_compiler_wl_GCJ
19159
19160# Object file suffix (normally "o").
19161objext="$ac_objext"
19162
19163# Old archive suffix (normally "a").
19164libext="$libext"
19165
19166# Shared library suffix (normally ".so").
19167shrext_cmds='$shrext_cmds'
19168
19169# Executable file suffix (normally "").
19170exeext="$exeext"
19171
19172# Additional compiler flags for building library objects.
19173pic_flag=$lt_lt_prog_compiler_pic_GCJ
19174pic_mode=$pic_mode
19175
19176# What is the maximum length of a command?
19177max_cmd_len=$lt_cv_sys_max_cmd_len
19178
19179# Does compiler simultaneously support -c and -o options?
19180compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19181
19182# Must we lock files when doing compilation?
19183need_locks=$lt_need_locks
19184
19185# Do we need the lib prefix for modules?
19186need_lib_prefix=$need_lib_prefix
19187
19188# Do we need a version for libraries?
19189need_version=$need_version
19190
19191# Whether dlopen is supported.
19192dlopen_support=$enable_dlopen
19193
19194# Whether dlopen of programs is supported.
19195dlopen_self=$enable_dlopen_self
19196
19197# Whether dlopen of statically linked programs is supported.
19198dlopen_self_static=$enable_dlopen_self_static
19199
19200# Compiler flag to prevent dynamic linking.
19201link_static_flag=$lt_lt_prog_compiler_static_GCJ
19202
19203# Compiler flag to turn off builtin functions.
19204no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19205
19206# Compiler flag to allow reflexive dlopens.
19207export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19208
19209# Compiler flag to generate shared objects directly from archives.
19210whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19211
19212# Compiler flag to generate thread-safe objects.
19213thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19214
19215# Library versioning type.
19216version_type=$version_type
19217
19218# Format of library name prefix.
19219libname_spec=$lt_libname_spec
19220
19221# List of archive names.  First name is the real one, the rest are links.
19222# The last name is the one that the linker finds with -lNAME.
19223library_names_spec=$lt_library_names_spec
19224
19225# The coded name of the library, if different from the real name.
19226soname_spec=$lt_soname_spec
19227
19228# Commands used to build and install an old-style archive.
19229RANLIB=$lt_RANLIB
19230old_archive_cmds=$lt_old_archive_cmds_GCJ
19231old_postinstall_cmds=$lt_old_postinstall_cmds
19232old_postuninstall_cmds=$lt_old_postuninstall_cmds
19233
19234# Create an old-style archive from a shared archive.
19235old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19236
19237# Create a temporary old-style archive to link instead of a shared archive.
19238old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19239
19240# Commands used to build and install a shared archive.
19241archive_cmds=$lt_archive_cmds_GCJ
19242archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19243postinstall_cmds=$lt_postinstall_cmds
19244postuninstall_cmds=$lt_postuninstall_cmds
19245
19246# Commands used to build a loadable module (assumed same as above if empty)
19247module_cmds=$lt_module_cmds_GCJ
19248module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19249
19250# Commands to strip libraries.
19251old_striplib=$lt_old_striplib
19252striplib=$lt_striplib
19253
19254# Dependencies to place before the objects being linked to create a
19255# shared library.
19256predep_objects=$lt_predep_objects_GCJ
19257
19258# Dependencies to place after the objects being linked to create a
19259# shared library.
19260postdep_objects=$lt_postdep_objects_GCJ
19261
19262# Dependencies to place before the objects being linked to create a
19263# shared library.
19264predeps=$lt_predeps_GCJ
19265
19266# Dependencies to place after the objects being linked to create a
19267# shared library.
19268postdeps=$lt_postdeps_GCJ
19269
19270# The directories searched by this compiler when creating a shared
19271# library
19272compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19273
19274# The library search path used internally by the compiler when linking
19275# a shared library.
19276compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19277
19278# Method to check whether dependent libraries are shared objects.
19279deplibs_check_method=$lt_deplibs_check_method
19280
19281# Command to use when deplibs_check_method == file_magic.
19282file_magic_cmd=$lt_file_magic_cmd
19283
19284# Flag that allows shared libraries with undefined symbols to be built.
19285allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19286
19287# Flag that forces no undefined symbols.
19288no_undefined_flag=$lt_no_undefined_flag_GCJ
19289
19290# Commands used to finish a libtool library installation in a directory.
19291finish_cmds=$lt_finish_cmds
19292
19293# Same as above, but a single script fragment to be evaled but not shown.
19294finish_eval=$lt_finish_eval
19295
19296# Take the output of nm and produce a listing of raw symbols and C names.
19297global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19298
19299# Transform the output of nm in a proper C declaration
19300global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19301
19302# Transform the output of nm in a C name address pair
19303global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19304
19305# This is the shared library runtime path variable.
19306runpath_var=$runpath_var
19307
19308# This is the shared library path variable.
19309shlibpath_var=$shlibpath_var
19310
19311# Is shlibpath searched before the hard-coded library search path?
19312shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19313
19314# How to hardcode a shared library path into an executable.
19315hardcode_action=$hardcode_action_GCJ
19316
19317# Whether we should hardcode library paths into libraries.
19318hardcode_into_libs=$hardcode_into_libs
19319
19320# Flag to hardcode \$libdir into a binary during linking.
19321# This must work even if \$libdir does not exist.
19322hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19323
19324# If ld is used when linking, flag to hardcode \$libdir into
19325# a binary during linking. This must work even if \$libdir does
19326# not exist.
19327hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19328
19329# Whether we need a single -rpath flag with a separated argument.
19330hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19331
19332# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19333# resulting binary.
19334hardcode_direct=$hardcode_direct_GCJ
19335
19336# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19337# resulting binary.
19338hardcode_minus_L=$hardcode_minus_L_GCJ
19339
19340# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19341# the resulting binary.
19342hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19343
19344# Set to yes if building a shared library automatically hardcodes DIR into the library
19345# and all subsequent libraries and executables linked against it.
19346hardcode_automatic=$hardcode_automatic_GCJ
19347
19348# Variables whose values should be saved in libtool wrapper scripts and
19349# restored at relink time.
19350variables_saved_for_relink="$variables_saved_for_relink"
19351
19352# Whether libtool must link a program against all its dependency libraries.
19353link_all_deplibs=$link_all_deplibs_GCJ
19354
19355# Compile-time system search path for libraries
19356sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19357
19358# Run-time system search path for libraries
19359sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19360
19361# Fix the shell variable \$srcfile for the compiler.
19362fix_srcfile_path=$lt_fix_srcfile_path
19363
19364# Set to yes if exported symbols are required.
19365always_export_symbols=$always_export_symbols_GCJ
19366
19367# The commands to list exported symbols.
19368export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19369
19370# The commands to extract the exported symbol list from a shared archive.
19371extract_expsyms_cmds=$lt_extract_expsyms_cmds
19372
19373# Symbols that should not be listed in the preloaded symbols.
19374exclude_expsyms=$lt_exclude_expsyms_GCJ
19375
19376# Symbols that must always be exported.
19377include_expsyms=$lt_include_expsyms_GCJ
19378
19379# ### END LIBTOOL TAG CONFIG: $tagname
19380
19381__EOF__
19382
19383
19384else
19385  # If there is no Makefile yet, we rely on a make rule to execute
19386  # `config.status --recheck' to rerun these tests and create the
19387  # libtool script then.
19388  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19389  if test -f "$ltmain_in"; then
19390    test -f Makefile && make "$ltmain"
19391  fi
19392fi
19393
19394
19395ac_ext=c
19396ac_cpp='$CPP $CPPFLAGS'
19397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399ac_compiler_gnu=$ac_cv_c_compiler_gnu
19400
19401CC="$lt_save_CC"
19402
19403	else
19404	  tagname=""
19405	fi
19406	;;
19407
19408      RC)
19409
19410
19411# Source file extension for RC test sources.
19412ac_ext=rc
19413
19414# Object file extension for compiled RC test sources.
19415objext=o
19416objext_RC=$objext
19417
19418# Code to be used in simple compile tests
19419lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19420
19421# Code to be used in simple link tests
19422lt_simple_link_test_code="$lt_simple_compile_test_code"
19423
19424# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19425
19426# If no C compiler was specified, use CC.
19427LTCC=${LTCC-"$CC"}
19428
19429# If no C compiler flags were specified, use CFLAGS.
19430LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19431
19432# Allow CC to be a program name with arguments.
19433compiler=$CC
19434
19435
19436# save warnings/boilerplate of simple test code
19437ac_outfile=conftest.$ac_objext
19438echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19439eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19440_lt_compiler_boilerplate=`cat conftest.err`
19441$rm conftest*
19442
19443ac_outfile=conftest.$ac_objext
19444echo "$lt_simple_link_test_code" >conftest.$ac_ext
19445eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19446_lt_linker_boilerplate=`cat conftest.err`
19447$rm -r conftest*
19448
19449
19450# Allow CC to be a program name with arguments.
19451lt_save_CC="$CC"
19452CC=${RC-"windres"}
19453compiler=$CC
19454compiler_RC=$CC
19455for cc_temp in $compiler""; do
19456  case $cc_temp in
19457    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19458    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19459    \-*) ;;
19460    *) break;;
19461  esac
19462done
19463cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19464
19465lt_cv_prog_compiler_c_o_RC=yes
19466
19467# The else clause should only fire when bootstrapping the
19468# libtool distribution, otherwise you forgot to ship ltmain.sh
19469# with your package, and you will get complaints that there are
19470# no rules to generate ltmain.sh.
19471if test -f "$ltmain"; then
19472  # See if we are running on zsh, and set the options which allow our commands through
19473  # without removal of \ escapes.
19474  if test -n "${ZSH_VERSION+set}" ; then
19475    setopt NO_GLOB_SUBST
19476  fi
19477  # Now quote all the things that may contain metacharacters while being
19478  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19479  # variables and quote the copies for generation of the libtool script.
19480  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19481    SED SHELL STRIP \
19482    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19483    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19484    deplibs_check_method reload_flag reload_cmds need_locks \
19485    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19486    lt_cv_sys_global_symbol_to_c_name_address \
19487    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19488    old_postinstall_cmds old_postuninstall_cmds \
19489    compiler_RC \
19490    CC_RC \
19491    LD_RC \
19492    lt_prog_compiler_wl_RC \
19493    lt_prog_compiler_pic_RC \
19494    lt_prog_compiler_static_RC \
19495    lt_prog_compiler_no_builtin_flag_RC \
19496    export_dynamic_flag_spec_RC \
19497    thread_safe_flag_spec_RC \
19498    whole_archive_flag_spec_RC \
19499    enable_shared_with_static_runtimes_RC \
19500    old_archive_cmds_RC \
19501    old_archive_from_new_cmds_RC \
19502    predep_objects_RC \
19503    postdep_objects_RC \
19504    predeps_RC \
19505    postdeps_RC \
19506    compiler_lib_search_path_RC \
19507    compiler_lib_search_dirs_RC \
19508    archive_cmds_RC \
19509    archive_expsym_cmds_RC \
19510    postinstall_cmds_RC \
19511    postuninstall_cmds_RC \
19512    old_archive_from_expsyms_cmds_RC \
19513    allow_undefined_flag_RC \
19514    no_undefined_flag_RC \
19515    export_symbols_cmds_RC \
19516    hardcode_libdir_flag_spec_RC \
19517    hardcode_libdir_flag_spec_ld_RC \
19518    hardcode_libdir_separator_RC \
19519    hardcode_automatic_RC \
19520    module_cmds_RC \
19521    module_expsym_cmds_RC \
19522    lt_cv_prog_compiler_c_o_RC \
19523    fix_srcfile_path_RC \
19524    exclude_expsyms_RC \
19525    include_expsyms_RC; do
19526
19527    case $var in
19528    old_archive_cmds_RC | \
19529    old_archive_from_new_cmds_RC | \
19530    archive_cmds_RC | \
19531    archive_expsym_cmds_RC | \
19532    module_cmds_RC | \
19533    module_expsym_cmds_RC | \
19534    old_archive_from_expsyms_cmds_RC | \
19535    export_symbols_cmds_RC | \
19536    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19537    postinstall_cmds | postuninstall_cmds | \
19538    old_postinstall_cmds | old_postuninstall_cmds | \
19539    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19540      # Double-quote double-evaled strings.
19541      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19542      ;;
19543    *)
19544      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19545      ;;
19546    esac
19547  done
19548
19549  case $lt_echo in
19550  *'\$0 --fallback-echo"')
19551    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19552    ;;
19553  esac
19554
19555cfgfile="$ofile"
19556
19557  cat <<__EOF__ >> "$cfgfile"
19558# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19559
19560# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19561
19562# Shell to use when invoking shell scripts.
19563SHELL=$lt_SHELL
19564
19565# Whether or not to build shared libraries.
19566build_libtool_libs=$enable_shared
19567
19568# Whether or not to build static libraries.
19569build_old_libs=$enable_static
19570
19571# Whether or not to add -lc for building shared libraries.
19572build_libtool_need_lc=$archive_cmds_need_lc_RC
19573
19574# Whether or not to disallow shared libs when runtime libs are static
19575allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19576
19577# Whether or not to optimize for fast installation.
19578fast_install=$enable_fast_install
19579
19580# The host system.
19581host_alias=$host_alias
19582host=$host
19583host_os=$host_os
19584
19585# The build system.
19586build_alias=$build_alias
19587build=$build
19588build_os=$build_os
19589
19590# An echo program that does not interpret backslashes.
19591echo=$lt_echo
19592
19593# The archiver.
19594AR=$lt_AR
19595AR_FLAGS=$lt_AR_FLAGS
19596
19597# A C compiler.
19598LTCC=$lt_LTCC
19599
19600# LTCC compiler flags.
19601LTCFLAGS=$lt_LTCFLAGS
19602
19603# A language-specific compiler.
19604CC=$lt_compiler_RC
19605
19606# Is the compiler the GNU C compiler?
19607with_gcc=$GCC_RC
19608
19609# An ERE matcher.
19610EGREP=$lt_EGREP
19611
19612# The linker used to build libraries.
19613LD=$lt_LD_RC
19614
19615# Whether we need hard or soft links.
19616LN_S=$lt_LN_S
19617
19618# A BSD-compatible nm program.
19619NM=$lt_NM
19620
19621# A symbol stripping program
19622STRIP=$lt_STRIP
19623
19624# Used to examine libraries when file_magic_cmd begins "file"
19625MAGIC_CMD=$MAGIC_CMD
19626
19627# Used on cygwin: DLL creation program.
19628DLLTOOL="$DLLTOOL"
19629
19630# Used on cygwin: object dumper.
19631OBJDUMP="$OBJDUMP"
19632
19633# Used on cygwin: assembler.
19634AS="$AS"
19635
19636# The name of the directory that contains temporary libtool files.
19637objdir=$objdir
19638
19639# How to create reloadable object files.
19640reload_flag=$lt_reload_flag
19641reload_cmds=$lt_reload_cmds
19642
19643# How to pass a linker flag through the compiler.
19644wl=$lt_lt_prog_compiler_wl_RC
19645
19646# Object file suffix (normally "o").
19647objext="$ac_objext"
19648
19649# Old archive suffix (normally "a").
19650libext="$libext"
19651
19652# Shared library suffix (normally ".so").
19653shrext_cmds='$shrext_cmds'
19654
19655# Executable file suffix (normally "").
19656exeext="$exeext"
19657
19658# Additional compiler flags for building library objects.
19659pic_flag=$lt_lt_prog_compiler_pic_RC
19660pic_mode=$pic_mode
19661
19662# What is the maximum length of a command?
19663max_cmd_len=$lt_cv_sys_max_cmd_len
19664
19665# Does compiler simultaneously support -c and -o options?
19666compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19667
19668# Must we lock files when doing compilation?
19669need_locks=$lt_need_locks
19670
19671# Do we need the lib prefix for modules?
19672need_lib_prefix=$need_lib_prefix
19673
19674# Do we need a version for libraries?
19675need_version=$need_version
19676
19677# Whether dlopen is supported.
19678dlopen_support=$enable_dlopen
19679
19680# Whether dlopen of programs is supported.
19681dlopen_self=$enable_dlopen_self
19682
19683# Whether dlopen of statically linked programs is supported.
19684dlopen_self_static=$enable_dlopen_self_static
19685
19686# Compiler flag to prevent dynamic linking.
19687link_static_flag=$lt_lt_prog_compiler_static_RC
19688
19689# Compiler flag to turn off builtin functions.
19690no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19691
19692# Compiler flag to allow reflexive dlopens.
19693export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19694
19695# Compiler flag to generate shared objects directly from archives.
19696whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19697
19698# Compiler flag to generate thread-safe objects.
19699thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19700
19701# Library versioning type.
19702version_type=$version_type
19703
19704# Format of library name prefix.
19705libname_spec=$lt_libname_spec
19706
19707# List of archive names.  First name is the real one, the rest are links.
19708# The last name is the one that the linker finds with -lNAME.
19709library_names_spec=$lt_library_names_spec
19710
19711# The coded name of the library, if different from the real name.
19712soname_spec=$lt_soname_spec
19713
19714# Commands used to build and install an old-style archive.
19715RANLIB=$lt_RANLIB
19716old_archive_cmds=$lt_old_archive_cmds_RC
19717old_postinstall_cmds=$lt_old_postinstall_cmds
19718old_postuninstall_cmds=$lt_old_postuninstall_cmds
19719
19720# Create an old-style archive from a shared archive.
19721old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19722
19723# Create a temporary old-style archive to link instead of a shared archive.
19724old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19725
19726# Commands used to build and install a shared archive.
19727archive_cmds=$lt_archive_cmds_RC
19728archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19729postinstall_cmds=$lt_postinstall_cmds
19730postuninstall_cmds=$lt_postuninstall_cmds
19731
19732# Commands used to build a loadable module (assumed same as above if empty)
19733module_cmds=$lt_module_cmds_RC
19734module_expsym_cmds=$lt_module_expsym_cmds_RC
19735
19736# Commands to strip libraries.
19737old_striplib=$lt_old_striplib
19738striplib=$lt_striplib
19739
19740# Dependencies to place before the objects being linked to create a
19741# shared library.
19742predep_objects=$lt_predep_objects_RC
19743
19744# Dependencies to place after the objects being linked to create a
19745# shared library.
19746postdep_objects=$lt_postdep_objects_RC
19747
19748# Dependencies to place before the objects being linked to create a
19749# shared library.
19750predeps=$lt_predeps_RC
19751
19752# Dependencies to place after the objects being linked to create a
19753# shared library.
19754postdeps=$lt_postdeps_RC
19755
19756# The directories searched by this compiler when creating a shared
19757# library
19758compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19759
19760# The library search path used internally by the compiler when linking
19761# a shared library.
19762compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19763
19764# Method to check whether dependent libraries are shared objects.
19765deplibs_check_method=$lt_deplibs_check_method
19766
19767# Command to use when deplibs_check_method == file_magic.
19768file_magic_cmd=$lt_file_magic_cmd
19769
19770# Flag that allows shared libraries with undefined symbols to be built.
19771allow_undefined_flag=$lt_allow_undefined_flag_RC
19772
19773# Flag that forces no undefined symbols.
19774no_undefined_flag=$lt_no_undefined_flag_RC
19775
19776# Commands used to finish a libtool library installation in a directory.
19777finish_cmds=$lt_finish_cmds
19778
19779# Same as above, but a single script fragment to be evaled but not shown.
19780finish_eval=$lt_finish_eval
19781
19782# Take the output of nm and produce a listing of raw symbols and C names.
19783global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19784
19785# Transform the output of nm in a proper C declaration
19786global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19787
19788# Transform the output of nm in a C name address pair
19789global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19790
19791# This is the shared library runtime path variable.
19792runpath_var=$runpath_var
19793
19794# This is the shared library path variable.
19795shlibpath_var=$shlibpath_var
19796
19797# Is shlibpath searched before the hard-coded library search path?
19798shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19799
19800# How to hardcode a shared library path into an executable.
19801hardcode_action=$hardcode_action_RC
19802
19803# Whether we should hardcode library paths into libraries.
19804hardcode_into_libs=$hardcode_into_libs
19805
19806# Flag to hardcode \$libdir into a binary during linking.
19807# This must work even if \$libdir does not exist.
19808hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19809
19810# If ld is used when linking, flag to hardcode \$libdir into
19811# a binary during linking. This must work even if \$libdir does
19812# not exist.
19813hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19814
19815# Whether we need a single -rpath flag with a separated argument.
19816hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19817
19818# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19819# resulting binary.
19820hardcode_direct=$hardcode_direct_RC
19821
19822# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19823# resulting binary.
19824hardcode_minus_L=$hardcode_minus_L_RC
19825
19826# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19827# the resulting binary.
19828hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19829
19830# Set to yes if building a shared library automatically hardcodes DIR into the library
19831# and all subsequent libraries and executables linked against it.
19832hardcode_automatic=$hardcode_automatic_RC
19833
19834# Variables whose values should be saved in libtool wrapper scripts and
19835# restored at relink time.
19836variables_saved_for_relink="$variables_saved_for_relink"
19837
19838# Whether libtool must link a program against all its dependency libraries.
19839link_all_deplibs=$link_all_deplibs_RC
19840
19841# Compile-time system search path for libraries
19842sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19843
19844# Run-time system search path for libraries
19845sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19846
19847# Fix the shell variable \$srcfile for the compiler.
19848fix_srcfile_path=$lt_fix_srcfile_path
19849
19850# Set to yes if exported symbols are required.
19851always_export_symbols=$always_export_symbols_RC
19852
19853# The commands to list exported symbols.
19854export_symbols_cmds=$lt_export_symbols_cmds_RC
19855
19856# The commands to extract the exported symbol list from a shared archive.
19857extract_expsyms_cmds=$lt_extract_expsyms_cmds
19858
19859# Symbols that should not be listed in the preloaded symbols.
19860exclude_expsyms=$lt_exclude_expsyms_RC
19861
19862# Symbols that must always be exported.
19863include_expsyms=$lt_include_expsyms_RC
19864
19865# ### END LIBTOOL TAG CONFIG: $tagname
19866
19867__EOF__
19868
19869
19870else
19871  # If there is no Makefile yet, we rely on a make rule to execute
19872  # `config.status --recheck' to rerun these tests and create the
19873  # libtool script then.
19874  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19875  if test -f "$ltmain_in"; then
19876    test -f Makefile && make "$ltmain"
19877  fi
19878fi
19879
19880
19881ac_ext=c
19882ac_cpp='$CPP $CPPFLAGS'
19883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19885ac_compiler_gnu=$ac_cv_c_compiler_gnu
19886
19887CC="$lt_save_CC"
19888
19889	;;
19890
19891      *)
19892	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19893echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19894   { (exit 1); exit 1; }; }
19895	;;
19896      esac
19897
19898      # Append the new tag name to the list of available tags.
19899      if test -n "$tagname" ; then
19900      available_tags="$available_tags $tagname"
19901    fi
19902    fi
19903  done
19904  IFS="$lt_save_ifs"
19905
19906  # Now substitute the updated list of available tags.
19907  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19908    mv "${ofile}T" "$ofile"
19909    chmod +x "$ofile"
19910  else
19911    rm -f "${ofile}T"
19912    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19913echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19914   { (exit 1); exit 1; }; }
19915  fi
19916fi
19917
19918
19919
19920# This can be used to rebuild libtool when needed
19921LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19922
19923# Always use our own libtool.
19924LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19925
19926# Prevent multiple expansion
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949# dolt, a replacement for libtool
19950# Josh Triplett <josh@freedesktop.org>
19951# Extract the first word of "bash", so it can be a program name with args.
19952set dummy bash; ac_word=$2
19953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19955if test "${ac_cv_path_DOLT_BASH+set}" = set; then
19956  echo $ECHO_N "(cached) $ECHO_C" >&6
19957else
19958  case $DOLT_BASH in
19959  [\\/]* | ?:[\\/]*)
19960  ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
19961  ;;
19962  *)
19963  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19964for as_dir in $PATH
19965do
19966  IFS=$as_save_IFS
19967  test -z "$as_dir" && as_dir=.
19968  for ac_exec_ext in '' $ac_executable_extensions; do
19969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19970    ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
19971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19972    break 2
19973  fi
19974done
19975done
19976IFS=$as_save_IFS
19977
19978  ;;
19979esac
19980fi
19981DOLT_BASH=$ac_cv_path_DOLT_BASH
19982if test -n "$DOLT_BASH"; then
19983  { echo "$as_me:$LINENO: result: $DOLT_BASH" >&5
19984echo "${ECHO_T}$DOLT_BASH" >&6; }
19985else
19986  { echo "$as_me:$LINENO: result: no" >&5
19987echo "${ECHO_T}no" >&6; }
19988fi
19989
19990
19991{ echo "$as_me:$LINENO: checking if dolt supports this host" >&5
19992echo $ECHO_N "checking if dolt supports this host... $ECHO_C" >&6; }
19993dolt_supported=yes
19994if test x$DOLT_BASH = x; then
19995    dolt_supported=no
19996fi
19997if test x$GCC != xyes; then
19998    dolt_supported=no
19999fi
20000case $host in
20001i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
20002|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
20003    pic_options='-fPIC'
20004    ;;
20005i?86-apple-darwin*)
20006    pic_options='-fno-common'
20007    ;;
20008*)
20009    dolt_supported=no
20010    ;;
20011esac
20012if test x$dolt_supported = xno ; then
20013    { echo "$as_me:$LINENO: result: no, falling back to libtool" >&5
20014echo "${ECHO_T}no, falling back to libtool" >&6; }
20015    LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
20016    LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
20017else
20018    { echo "$as_me:$LINENO: result: yes, replacing libtool" >&5
20019echo "${ECHO_T}yes, replacing libtool" >&6; }
20020
20021    cat <<__DOLTCOMPILE__EOF__ >doltcompile
20022#!$DOLT_BASH
20023__DOLTCOMPILE__EOF__
20024    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20025args=("$@")
20026for ((arg=0; arg<${#args[@]}; arg++)) ; do
20027    if test x"${args[$arg]}" = x-o ; then
20028        objarg=$((arg+1))
20029        break
20030    fi
20031done
20032if test x$objarg = x ; then
20033    echo 'Error: no -o on compiler command line' 1>&2
20034    exit 1
20035fi
20036lo="${args[$objarg]}"
20037obj="${lo%.lo}"
20038if test x"$lo" = x"$obj" ; then
20039    echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
20040    exit 1
20041fi
20042objbase="${obj##*/}"
20043__DOLTCOMPILE__EOF__
20044
20045    if test x$enable_shared = xyes; then
20046        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20047libobjdir="${obj%$objbase}.libs"
20048if test ! -d "$libobjdir" ; then
20049    mkdir_out="$(mkdir "$libobjdir" 2>&1)"
20050    mkdir_ret=$?
20051    if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
20052	echo "$mkdir_out" 1>&2
20053        exit $mkdir_ret
20054    fi
20055fi
20056pic_object="$libobjdir/$objbase.o"
20057args[$objarg]="$pic_object"
20058__DOLTCOMPILE__EOF__
20059    cat <<__DOLTCOMPILE__EOF__ >>doltcompile
20060"\${args[@]}" $pic_options -DPIC || exit \$?
20061__DOLTCOMPILE__EOF__
20062    fi
20063
20064    if test x$enable_static = xyes; then
20065        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20066non_pic_object="$obj.o"
20067args[$objarg]="$non_pic_object"
20068__DOLTCOMPILE__EOF__
20069        if test x$enable_shared = xyes; then
20070            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20071"${args[@]}" >/dev/null 2>&1 || exit $?
20072__DOLTCOMPILE__EOF__
20073        else
20074            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20075"${args[@]}" || exit $?
20076__DOLTCOMPILE__EOF__
20077        fi
20078    fi
20079
20080    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20081{
20082echo "# $lo - a libtool object file"
20083echo "# Generated by doltcompile, not libtool"
20084__DOLTCOMPILE__EOF__
20085
20086    if test x$enable_shared = xyes; then
20087        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20088echo "pic_object='.libs/${objbase}.o'"
20089__DOLTCOMPILE__EOF__
20090    else
20091        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20092echo pic_object=none
20093__DOLTCOMPILE__EOF__
20094    fi
20095
20096    if test x$enable_static = xyes; then
20097        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20098echo "non_pic_object='${objbase}.o'"
20099__DOLTCOMPILE__EOF__
20100    else
20101        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20102echo non_pic_object=none
20103__DOLTCOMPILE__EOF__
20104    fi
20105
20106    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20107} > "$lo"
20108__DOLTCOMPILE__EOF__
20109
20110    chmod +x doltcompile
20111    LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
20112    LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
20113
20114    cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
20115#!$DOLT_BASH
20116__DOLTLIBTOOL__EOF__
20117    cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
20118top_builddir_slash="${0%%doltlibtool}"
20119: ${top_builddir_slash:=./}
20120args=()
20121modeok=false
20122tagok=false
20123for arg in "$@"; do
20124    case "$arg" in
20125        --mode=compile) modeok=true ;;
20126        --tag=CC|--tag=CXX) tagok=true ;;
20127        *) args[${#args[@]}]="$arg" ;;
20128    esac
20129done
20130if $modeok && $tagok ; then
20131    . ${top_builddir_slash}doltcompile "${args[@]}"
20132else
20133    exec ${top_builddir_slash}libtool "$@"
20134fi
20135__DOLTLIBTOOL__EOF__
20136
20137    chmod +x doltlibtool
20138    LIBTOOL='$(top_builddir)/doltlibtool'
20139fi
20140
20141
20142# end dolt
20143
20144ac_ext=c
20145ac_cpp='$CPP $CPPFLAGS'
20146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20148ac_compiler_gnu=$ac_cv_c_compiler_gnu
20149if test -n "$ac_tool_prefix"; then
20150  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20151set dummy ${ac_tool_prefix}gcc; ac_word=$2
20152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20154if test "${ac_cv_prog_CC+set}" = set; then
20155  echo $ECHO_N "(cached) $ECHO_C" >&6
20156else
20157  if test -n "$CC"; then
20158  ac_cv_prog_CC="$CC" # Let the user override the test.
20159else
20160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20161for as_dir in $PATH
20162do
20163  IFS=$as_save_IFS
20164  test -z "$as_dir" && as_dir=.
20165  for ac_exec_ext in '' $ac_executable_extensions; do
20166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20167    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20169    break 2
20170  fi
20171done
20172done
20173IFS=$as_save_IFS
20174
20175fi
20176fi
20177CC=$ac_cv_prog_CC
20178if test -n "$CC"; then
20179  { echo "$as_me:$LINENO: result: $CC" >&5
20180echo "${ECHO_T}$CC" >&6; }
20181else
20182  { echo "$as_me:$LINENO: result: no" >&5
20183echo "${ECHO_T}no" >&6; }
20184fi
20185
20186
20187fi
20188if test -z "$ac_cv_prog_CC"; then
20189  ac_ct_CC=$CC
20190  # Extract the first word of "gcc", so it can be a program name with args.
20191set dummy gcc; ac_word=$2
20192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20194if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20195  echo $ECHO_N "(cached) $ECHO_C" >&6
20196else
20197  if test -n "$ac_ct_CC"; then
20198  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20199else
20200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20201for as_dir in $PATH
20202do
20203  IFS=$as_save_IFS
20204  test -z "$as_dir" && as_dir=.
20205  for ac_exec_ext in '' $ac_executable_extensions; do
20206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20207    ac_cv_prog_ac_ct_CC="gcc"
20208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20209    break 2
20210  fi
20211done
20212done
20213IFS=$as_save_IFS
20214
20215fi
20216fi
20217ac_ct_CC=$ac_cv_prog_ac_ct_CC
20218if test -n "$ac_ct_CC"; then
20219  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20220echo "${ECHO_T}$ac_ct_CC" >&6; }
20221else
20222  { echo "$as_me:$LINENO: result: no" >&5
20223echo "${ECHO_T}no" >&6; }
20224fi
20225
20226  if test "x$ac_ct_CC" = x; then
20227    CC=""
20228  else
20229    case $cross_compiling:$ac_tool_warned in
20230yes:)
20231{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20232whose name does not start with the host triplet.  If you think this
20233configuration is useful to you, please write to autoconf@gnu.org." >&5
20234echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20235whose name does not start with the host triplet.  If you think this
20236configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20237ac_tool_warned=yes ;;
20238esac
20239    CC=$ac_ct_CC
20240  fi
20241else
20242  CC="$ac_cv_prog_CC"
20243fi
20244
20245if test -z "$CC"; then
20246          if test -n "$ac_tool_prefix"; then
20247    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20248set dummy ${ac_tool_prefix}cc; ac_word=$2
20249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20251if test "${ac_cv_prog_CC+set}" = set; then
20252  echo $ECHO_N "(cached) $ECHO_C" >&6
20253else
20254  if test -n "$CC"; then
20255  ac_cv_prog_CC="$CC" # Let the user override the test.
20256else
20257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20258for as_dir in $PATH
20259do
20260  IFS=$as_save_IFS
20261  test -z "$as_dir" && as_dir=.
20262  for ac_exec_ext in '' $ac_executable_extensions; do
20263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20264    ac_cv_prog_CC="${ac_tool_prefix}cc"
20265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20266    break 2
20267  fi
20268done
20269done
20270IFS=$as_save_IFS
20271
20272fi
20273fi
20274CC=$ac_cv_prog_CC
20275if test -n "$CC"; then
20276  { echo "$as_me:$LINENO: result: $CC" >&5
20277echo "${ECHO_T}$CC" >&6; }
20278else
20279  { echo "$as_me:$LINENO: result: no" >&5
20280echo "${ECHO_T}no" >&6; }
20281fi
20282
20283
20284  fi
20285fi
20286if test -z "$CC"; then
20287  # Extract the first word of "cc", so it can be a program name with args.
20288set dummy cc; ac_word=$2
20289{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20291if test "${ac_cv_prog_CC+set}" = set; then
20292  echo $ECHO_N "(cached) $ECHO_C" >&6
20293else
20294  if test -n "$CC"; then
20295  ac_cv_prog_CC="$CC" # Let the user override the test.
20296else
20297  ac_prog_rejected=no
20298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20299for as_dir in $PATH
20300do
20301  IFS=$as_save_IFS
20302  test -z "$as_dir" && as_dir=.
20303  for ac_exec_ext in '' $ac_executable_extensions; do
20304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20305    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20306       ac_prog_rejected=yes
20307       continue
20308     fi
20309    ac_cv_prog_CC="cc"
20310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20311    break 2
20312  fi
20313done
20314done
20315IFS=$as_save_IFS
20316
20317if test $ac_prog_rejected = yes; then
20318  # We found a bogon in the path, so make sure we never use it.
20319  set dummy $ac_cv_prog_CC
20320  shift
20321  if test $# != 0; then
20322    # We chose a different compiler from the bogus one.
20323    # However, it has the same basename, so the bogon will be chosen
20324    # first if we set CC to just the basename; use the full file name.
20325    shift
20326    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20327  fi
20328fi
20329fi
20330fi
20331CC=$ac_cv_prog_CC
20332if test -n "$CC"; then
20333  { echo "$as_me:$LINENO: result: $CC" >&5
20334echo "${ECHO_T}$CC" >&6; }
20335else
20336  { echo "$as_me:$LINENO: result: no" >&5
20337echo "${ECHO_T}no" >&6; }
20338fi
20339
20340
20341fi
20342if test -z "$CC"; then
20343  if test -n "$ac_tool_prefix"; then
20344  for ac_prog in cl.exe
20345  do
20346    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20350if test "${ac_cv_prog_CC+set}" = set; then
20351  echo $ECHO_N "(cached) $ECHO_C" >&6
20352else
20353  if test -n "$CC"; then
20354  ac_cv_prog_CC="$CC" # Let the user override the test.
20355else
20356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20357for as_dir in $PATH
20358do
20359  IFS=$as_save_IFS
20360  test -z "$as_dir" && as_dir=.
20361  for ac_exec_ext in '' $ac_executable_extensions; do
20362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20363    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20365    break 2
20366  fi
20367done
20368done
20369IFS=$as_save_IFS
20370
20371fi
20372fi
20373CC=$ac_cv_prog_CC
20374if test -n "$CC"; then
20375  { echo "$as_me:$LINENO: result: $CC" >&5
20376echo "${ECHO_T}$CC" >&6; }
20377else
20378  { echo "$as_me:$LINENO: result: no" >&5
20379echo "${ECHO_T}no" >&6; }
20380fi
20381
20382
20383    test -n "$CC" && break
20384  done
20385fi
20386if test -z "$CC"; then
20387  ac_ct_CC=$CC
20388  for ac_prog in cl.exe
20389do
20390  # Extract the first word of "$ac_prog", so it can be a program name with args.
20391set dummy $ac_prog; ac_word=$2
20392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20394if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20395  echo $ECHO_N "(cached) $ECHO_C" >&6
20396else
20397  if test -n "$ac_ct_CC"; then
20398  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20399else
20400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20401for as_dir in $PATH
20402do
20403  IFS=$as_save_IFS
20404  test -z "$as_dir" && as_dir=.
20405  for ac_exec_ext in '' $ac_executable_extensions; do
20406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20407    ac_cv_prog_ac_ct_CC="$ac_prog"
20408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20409    break 2
20410  fi
20411done
20412done
20413IFS=$as_save_IFS
20414
20415fi
20416fi
20417ac_ct_CC=$ac_cv_prog_ac_ct_CC
20418if test -n "$ac_ct_CC"; then
20419  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20420echo "${ECHO_T}$ac_ct_CC" >&6; }
20421else
20422  { echo "$as_me:$LINENO: result: no" >&5
20423echo "${ECHO_T}no" >&6; }
20424fi
20425
20426
20427  test -n "$ac_ct_CC" && break
20428done
20429
20430  if test "x$ac_ct_CC" = x; then
20431    CC=""
20432  else
20433    case $cross_compiling:$ac_tool_warned in
20434yes:)
20435{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20436whose name does not start with the host triplet.  If you think this
20437configuration is useful to you, please write to autoconf@gnu.org." >&5
20438echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20439whose name does not start with the host triplet.  If you think this
20440configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20441ac_tool_warned=yes ;;
20442esac
20443    CC=$ac_ct_CC
20444  fi
20445fi
20446
20447fi
20448
20449
20450test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20451See \`config.log' for more details." >&5
20452echo "$as_me: error: no acceptable C compiler found in \$PATH
20453See \`config.log' for more details." >&2;}
20454   { (exit 1); exit 1; }; }
20455
20456# Provide some information about the compiler.
20457echo "$as_me:$LINENO: checking for C compiler version" >&5
20458ac_compiler=`set X $ac_compile; echo $2`
20459{ (ac_try="$ac_compiler --version >&5"
20460case "(($ac_try" in
20461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462  *) ac_try_echo=$ac_try;;
20463esac
20464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465  (eval "$ac_compiler --version >&5") 2>&5
20466  ac_status=$?
20467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468  (exit $ac_status); }
20469{ (ac_try="$ac_compiler -v >&5"
20470case "(($ac_try" in
20471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472  *) ac_try_echo=$ac_try;;
20473esac
20474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475  (eval "$ac_compiler -v >&5") 2>&5
20476  ac_status=$?
20477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478  (exit $ac_status); }
20479{ (ac_try="$ac_compiler -V >&5"
20480case "(($ac_try" in
20481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482  *) ac_try_echo=$ac_try;;
20483esac
20484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485  (eval "$ac_compiler -V >&5") 2>&5
20486  ac_status=$?
20487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488  (exit $ac_status); }
20489
20490{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20491echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20492if test "${ac_cv_c_compiler_gnu+set}" = set; then
20493  echo $ECHO_N "(cached) $ECHO_C" >&6
20494else
20495  cat >conftest.$ac_ext <<_ACEOF
20496/* confdefs.h.  */
20497_ACEOF
20498cat confdefs.h >>conftest.$ac_ext
20499cat >>conftest.$ac_ext <<_ACEOF
20500/* end confdefs.h.  */
20501
20502int
20503main ()
20504{
20505#ifndef __GNUC__
20506       choke me
20507#endif
20508
20509  ;
20510  return 0;
20511}
20512_ACEOF
20513rm -f conftest.$ac_objext
20514if { (ac_try="$ac_compile"
20515case "(($ac_try" in
20516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517  *) ac_try_echo=$ac_try;;
20518esac
20519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520  (eval "$ac_compile") 2>conftest.er1
20521  ac_status=$?
20522  grep -v '^ *+' conftest.er1 >conftest.err
20523  rm -f conftest.er1
20524  cat conftest.err >&5
20525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526  (exit $ac_status); } && {
20527	 test -z "$ac_c_werror_flag" ||
20528	 test ! -s conftest.err
20529       } && test -s conftest.$ac_objext; then
20530  ac_compiler_gnu=yes
20531else
20532  echo "$as_me: failed program was:" >&5
20533sed 's/^/| /' conftest.$ac_ext >&5
20534
20535	ac_compiler_gnu=no
20536fi
20537
20538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20539ac_cv_c_compiler_gnu=$ac_compiler_gnu
20540
20541fi
20542{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20543echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20544GCC=`test $ac_compiler_gnu = yes && echo yes`
20545ac_test_CFLAGS=${CFLAGS+set}
20546ac_save_CFLAGS=$CFLAGS
20547{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20548echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20549if test "${ac_cv_prog_cc_g+set}" = set; then
20550  echo $ECHO_N "(cached) $ECHO_C" >&6
20551else
20552  ac_save_c_werror_flag=$ac_c_werror_flag
20553   ac_c_werror_flag=yes
20554   ac_cv_prog_cc_g=no
20555   CFLAGS="-g"
20556   cat >conftest.$ac_ext <<_ACEOF
20557/* confdefs.h.  */
20558_ACEOF
20559cat confdefs.h >>conftest.$ac_ext
20560cat >>conftest.$ac_ext <<_ACEOF
20561/* end confdefs.h.  */
20562
20563int
20564main ()
20565{
20566
20567  ;
20568  return 0;
20569}
20570_ACEOF
20571rm -f conftest.$ac_objext
20572if { (ac_try="$ac_compile"
20573case "(($ac_try" in
20574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575  *) ac_try_echo=$ac_try;;
20576esac
20577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20578  (eval "$ac_compile") 2>conftest.er1
20579  ac_status=$?
20580  grep -v '^ *+' conftest.er1 >conftest.err
20581  rm -f conftest.er1
20582  cat conftest.err >&5
20583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584  (exit $ac_status); } && {
20585	 test -z "$ac_c_werror_flag" ||
20586	 test ! -s conftest.err
20587       } && test -s conftest.$ac_objext; then
20588  ac_cv_prog_cc_g=yes
20589else
20590  echo "$as_me: failed program was:" >&5
20591sed 's/^/| /' conftest.$ac_ext >&5
20592
20593	CFLAGS=""
20594      cat >conftest.$ac_ext <<_ACEOF
20595/* confdefs.h.  */
20596_ACEOF
20597cat confdefs.h >>conftest.$ac_ext
20598cat >>conftest.$ac_ext <<_ACEOF
20599/* end confdefs.h.  */
20600
20601int
20602main ()
20603{
20604
20605  ;
20606  return 0;
20607}
20608_ACEOF
20609rm -f conftest.$ac_objext
20610if { (ac_try="$ac_compile"
20611case "(($ac_try" in
20612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613  *) ac_try_echo=$ac_try;;
20614esac
20615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616  (eval "$ac_compile") 2>conftest.er1
20617  ac_status=$?
20618  grep -v '^ *+' conftest.er1 >conftest.err
20619  rm -f conftest.er1
20620  cat conftest.err >&5
20621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622  (exit $ac_status); } && {
20623	 test -z "$ac_c_werror_flag" ||
20624	 test ! -s conftest.err
20625       } && test -s conftest.$ac_objext; then
20626  :
20627else
20628  echo "$as_me: failed program was:" >&5
20629sed 's/^/| /' conftest.$ac_ext >&5
20630
20631	ac_c_werror_flag=$ac_save_c_werror_flag
20632	 CFLAGS="-g"
20633	 cat >conftest.$ac_ext <<_ACEOF
20634/* confdefs.h.  */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
20638/* end confdefs.h.  */
20639
20640int
20641main ()
20642{
20643
20644  ;
20645  return 0;
20646}
20647_ACEOF
20648rm -f conftest.$ac_objext
20649if { (ac_try="$ac_compile"
20650case "(($ac_try" in
20651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652  *) ac_try_echo=$ac_try;;
20653esac
20654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655  (eval "$ac_compile") 2>conftest.er1
20656  ac_status=$?
20657  grep -v '^ *+' conftest.er1 >conftest.err
20658  rm -f conftest.er1
20659  cat conftest.err >&5
20660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661  (exit $ac_status); } && {
20662	 test -z "$ac_c_werror_flag" ||
20663	 test ! -s conftest.err
20664       } && test -s conftest.$ac_objext; then
20665  ac_cv_prog_cc_g=yes
20666else
20667  echo "$as_me: failed program was:" >&5
20668sed 's/^/| /' conftest.$ac_ext >&5
20669
20670
20671fi
20672
20673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20674fi
20675
20676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20677fi
20678
20679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680   ac_c_werror_flag=$ac_save_c_werror_flag
20681fi
20682{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20683echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20684if test "$ac_test_CFLAGS" = set; then
20685  CFLAGS=$ac_save_CFLAGS
20686elif test $ac_cv_prog_cc_g = yes; then
20687  if test "$GCC" = yes; then
20688    CFLAGS="-g -O2"
20689  else
20690    CFLAGS="-g"
20691  fi
20692else
20693  if test "$GCC" = yes; then
20694    CFLAGS="-O2"
20695  else
20696    CFLAGS=
20697  fi
20698fi
20699{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20700echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20701if test "${ac_cv_prog_cc_c89+set}" = set; then
20702  echo $ECHO_N "(cached) $ECHO_C" >&6
20703else
20704  ac_cv_prog_cc_c89=no
20705ac_save_CC=$CC
20706cat >conftest.$ac_ext <<_ACEOF
20707/* confdefs.h.  */
20708_ACEOF
20709cat confdefs.h >>conftest.$ac_ext
20710cat >>conftest.$ac_ext <<_ACEOF
20711/* end confdefs.h.  */
20712#include <stdarg.h>
20713#include <stdio.h>
20714#include <sys/types.h>
20715#include <sys/stat.h>
20716/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20717struct buf { int x; };
20718FILE * (*rcsopen) (struct buf *, struct stat *, int);
20719static char *e (p, i)
20720     char **p;
20721     int i;
20722{
20723  return p[i];
20724}
20725static char *f (char * (*g) (char **, int), char **p, ...)
20726{
20727  char *s;
20728  va_list v;
20729  va_start (v,p);
20730  s = g (p, va_arg (v,int));
20731  va_end (v);
20732  return s;
20733}
20734
20735/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20736   function prototypes and stuff, but not '\xHH' hex character constants.
20737   These don't provoke an error unfortunately, instead are silently treated
20738   as 'x'.  The following induces an error, until -std is added to get
20739   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20740   array size at least.  It's necessary to write '\x00'==0 to get something
20741   that's true only with -std.  */
20742int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20743
20744/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20745   inside strings and character constants.  */
20746#define FOO(x) 'x'
20747int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20748
20749int test (int i, double x);
20750struct s1 {int (*f) (int a);};
20751struct s2 {int (*f) (double a);};
20752int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20753int argc;
20754char **argv;
20755int
20756main ()
20757{
20758return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20759  ;
20760  return 0;
20761}
20762_ACEOF
20763for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20764	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20765do
20766  CC="$ac_save_CC $ac_arg"
20767  rm -f conftest.$ac_objext
20768if { (ac_try="$ac_compile"
20769case "(($ac_try" in
20770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771  *) ac_try_echo=$ac_try;;
20772esac
20773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774  (eval "$ac_compile") 2>conftest.er1
20775  ac_status=$?
20776  grep -v '^ *+' conftest.er1 >conftest.err
20777  rm -f conftest.er1
20778  cat conftest.err >&5
20779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780  (exit $ac_status); } && {
20781	 test -z "$ac_c_werror_flag" ||
20782	 test ! -s conftest.err
20783       } && test -s conftest.$ac_objext; then
20784  ac_cv_prog_cc_c89=$ac_arg
20785else
20786  echo "$as_me: failed program was:" >&5
20787sed 's/^/| /' conftest.$ac_ext >&5
20788
20789
20790fi
20791
20792rm -f core conftest.err conftest.$ac_objext
20793  test "x$ac_cv_prog_cc_c89" != "xno" && break
20794done
20795rm -f conftest.$ac_ext
20796CC=$ac_save_CC
20797
20798fi
20799# AC_CACHE_VAL
20800case "x$ac_cv_prog_cc_c89" in
20801  x)
20802    { echo "$as_me:$LINENO: result: none needed" >&5
20803echo "${ECHO_T}none needed" >&6; } ;;
20804  xno)
20805    { echo "$as_me:$LINENO: result: unsupported" >&5
20806echo "${ECHO_T}unsupported" >&6; } ;;
20807  *)
20808    CC="$CC $ac_cv_prog_cc_c89"
20809    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20810echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20811esac
20812
20813
20814ac_ext=c
20815ac_cpp='$CPP $CPPFLAGS'
20816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20818ac_compiler_gnu=$ac_cv_c_compiler_gnu
20819
20820depcc="$CC"   am_compiler_list=
20821
20822{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20823echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20824if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20825  echo $ECHO_N "(cached) $ECHO_C" >&6
20826else
20827  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20828  # We make a subdir and do the tests there.  Otherwise we can end up
20829  # making bogus files that we don't know about and never remove.  For
20830  # instance it was reported that on HP-UX the gcc test will end up
20831  # making a dummy file named `D' -- because `-MD' means `put the output
20832  # in D'.
20833  mkdir conftest.dir
20834  # Copy depcomp to subdir because otherwise we won't find it if we're
20835  # using a relative directory.
20836  cp "$am_depcomp" conftest.dir
20837  cd conftest.dir
20838  # We will build objects and dependencies in a subdirectory because
20839  # it helps to detect inapplicable dependency modes.  For instance
20840  # both Tru64's cc and ICC support -MD to output dependencies as a
20841  # side effect of compilation, but ICC will put the dependencies in
20842  # the current directory while Tru64 will put them in the object
20843  # directory.
20844  mkdir sub
20845
20846  am_cv_CC_dependencies_compiler_type=none
20847  if test "$am_compiler_list" = ""; then
20848     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20849  fi
20850  for depmode in $am_compiler_list; do
20851    # Setup a source with many dependencies, because some compilers
20852    # like to wrap large dependency lists on column 80 (with \), and
20853    # we should not choose a depcomp mode which is confused by this.
20854    #
20855    # We need to recreate these files for each test, as the compiler may
20856    # overwrite some of them when testing with obscure command lines.
20857    # This happens at least with the AIX C compiler.
20858    : > sub/conftest.c
20859    for i in 1 2 3 4 5 6; do
20860      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20861      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20862      # Solaris 8's {/usr,}/bin/sh.
20863      touch sub/conftst$i.h
20864    done
20865    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20866
20867    case $depmode in
20868    nosideeffect)
20869      # after this tag, mechanisms are not by side-effect, so they'll
20870      # only be used when explicitly requested
20871      if test "x$enable_dependency_tracking" = xyes; then
20872	continue
20873      else
20874	break
20875      fi
20876      ;;
20877    none) break ;;
20878    esac
20879    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20880    # mode.  It turns out that the SunPro C++ compiler does not properly
20881    # handle `-M -o', and we need to detect this.
20882    if depmode=$depmode \
20883       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20884       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20885       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20886         >/dev/null 2>conftest.err &&
20887       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20888       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20889       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20890       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20891      # icc doesn't choke on unknown options, it will just issue warnings
20892      # or remarks (even with -Werror).  So we grep stderr for any message
20893      # that says an option was ignored or not supported.
20894      # When given -MP, icc 7.0 and 7.1 complain thusly:
20895      #   icc: Command line warning: ignoring option '-M'; no argument required
20896      # The diagnosis changed in icc 8.0:
20897      #   icc: Command line remark: option '-MP' not supported
20898      if (grep 'ignoring option' conftest.err ||
20899          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20900        am_cv_CC_dependencies_compiler_type=$depmode
20901        break
20902      fi
20903    fi
20904  done
20905
20906  cd ..
20907  rm -rf conftest.dir
20908else
20909  am_cv_CC_dependencies_compiler_type=none
20910fi
20911
20912fi
20913{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20914echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20915CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20916
20917 if
20918  test "x$enable_dependency_tracking" != xno \
20919  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20920  am__fastdepCC_TRUE=
20921  am__fastdepCC_FALSE='#'
20922else
20923  am__fastdepCC_TRUE='#'
20924  am__fastdepCC_FALSE=
20925fi
20926
20927
20928
20929
20930if  test "x$GCC" = xyes ; then
20931    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
20932-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
20933-Wbad-function-cast"
20934    case `gcc -dumpversion` in
20935    3.4.* | 4.*)
20936	CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
20937	;;
20938    esac
20939else
20940    { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20941echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
20942if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20943  echo $ECHO_N "(cached) $ECHO_C" >&6
20944else
20945  cat >conftest.$ac_ext <<_ACEOF
20946/* confdefs.h.  */
20947_ACEOF
20948cat confdefs.h >>conftest.$ac_ext
20949cat >>conftest.$ac_ext <<_ACEOF
20950/* end confdefs.h.  */
20951$ac_includes_default
20952int
20953main ()
20954{
20955#ifndef __SUNPRO_C
20956  (void) __SUNPRO_C;
20957#endif
20958
20959  ;
20960  return 0;
20961}
20962_ACEOF
20963rm -f conftest.$ac_objext
20964if { (ac_try="$ac_compile"
20965case "(($ac_try" in
20966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967  *) ac_try_echo=$ac_try;;
20968esac
20969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970  (eval "$ac_compile") 2>conftest.er1
20971  ac_status=$?
20972  grep -v '^ *+' conftest.er1 >conftest.err
20973  rm -f conftest.er1
20974  cat conftest.err >&5
20975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976  (exit $ac_status); } && {
20977	 test -z "$ac_c_werror_flag" ||
20978	 test ! -s conftest.err
20979       } && test -s conftest.$ac_objext; then
20980  ac_cv_have_decl___SUNPRO_C=yes
20981else
20982  echo "$as_me: failed program was:" >&5
20983sed 's/^/| /' conftest.$ac_ext >&5
20984
20985	ac_cv_have_decl___SUNPRO_C=no
20986fi
20987
20988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989fi
20990{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20991echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
20992if test $ac_cv_have_decl___SUNPRO_C = yes; then
20993  SUNCC="yes"
20994else
20995  SUNCC="no"
20996fi
20997
20998    if test "x$SUNCC" = "xyes"; then
20999	CWARNFLAGS="-v"
21000    fi
21001fi
21002
21003
21004
21005if test x"$CC_FOR_BUILD" = x; then
21006	if test x"$cross_compiling" = xyes; then
21007	       for ac_prog in gcc cc
21008do
21009  # Extract the first word of "$ac_prog", so it can be a program name with args.
21010set dummy $ac_prog; ac_word=$2
21011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21013if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
21014  echo $ECHO_N "(cached) $ECHO_C" >&6
21015else
21016  if test -n "$CC_FOR_BUILD"; then
21017  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
21018else
21019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21020for as_dir in $PATH
21021do
21022  IFS=$as_save_IFS
21023  test -z "$as_dir" && as_dir=.
21024  for ac_exec_ext in '' $ac_executable_extensions; do
21025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21026    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
21027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21028    break 2
21029  fi
21030done
21031done
21032IFS=$as_save_IFS
21033
21034fi
21035fi
21036CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
21037if test -n "$CC_FOR_BUILD"; then
21038  { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
21039echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
21040else
21041  { echo "$as_me:$LINENO: result: no" >&5
21042echo "${ECHO_T}no" >&6; }
21043fi
21044
21045
21046  test -n "$CC_FOR_BUILD" && break
21047done
21048
21049	else
21050	       CC_FOR_BUILD="$CC"
21051	fi
21052fi
21053
21054
21055
21056
21057for ac_prog in cpp
21058do
21059  # Extract the first word of "$ac_prog", so it can be a program name with args.
21060set dummy $ac_prog; ac_word=$2
21061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21063if test "${ac_cv_path_RAWCPP+set}" = set; then
21064  echo $ECHO_N "(cached) $ECHO_C" >&6
21065else
21066  case $RAWCPP in
21067  [\\/]* | ?:[\\/]*)
21068  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
21069  ;;
21070  *)
21071  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21072as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21073for as_dir in $as_dummy
21074do
21075  IFS=$as_save_IFS
21076  test -z "$as_dir" && as_dir=.
21077  for ac_exec_ext in '' $ac_executable_extensions; do
21078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21079    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
21080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21081    break 2
21082  fi
21083done
21084done
21085IFS=$as_save_IFS
21086
21087  ;;
21088esac
21089fi
21090RAWCPP=$ac_cv_path_RAWCPP
21091if test -n "$RAWCPP"; then
21092  { echo "$as_me:$LINENO: result: $RAWCPP" >&5
21093echo "${ECHO_T}$RAWCPP" >&6; }
21094else
21095  { echo "$as_me:$LINENO: result: no" >&5
21096echo "${ECHO_T}no" >&6; }
21097fi
21098
21099
21100  test -n "$RAWCPP" && break
21101done
21102test -n "$RAWCPP" || RAWCPP="${CPP}"
21103
21104
21105# Check for flag to avoid builtin definitions - assumes unix is predefined,
21106# which is not the best choice for supporting other OS'es, but covers most
21107# of the ones we need for now.
21108{ echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
21109echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
21110cat >conftest.$ac_ext <<_ACEOF
21111Does cpp redefine unix ?
21112_ACEOF
21113if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21114	{ echo "$as_me:$LINENO: result: no" >&5
21115echo "${ECHO_T}no" >&6; }
21116else
21117	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21118		RAWCPPFLAGS=-undef
21119		{ echo "$as_me:$LINENO: result: yes" >&5
21120echo "${ECHO_T}yes" >&6; }
21121	# under Cygwin unix is still defined even with -undef
21122	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21123		RAWCPPFLAGS="-undef -ansi"
21124		{ echo "$as_me:$LINENO: result: yes, with -ansi" >&5
21125echo "${ECHO_T}yes, with -ansi" >&6; }
21126	else
21127		{ { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&5
21128echo "$as_me: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&2;}
21129   { (exit 1); exit 1; }; }
21130	fi
21131fi
21132rm -f conftest.$ac_ext
21133
21134{ echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
21135echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
21136cat >conftest.$ac_ext <<_ACEOF
21137Does cpp preserve   "whitespace"?
21138_ACEOF
21139if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21140	{ echo "$as_me:$LINENO: result: no" >&5
21141echo "${ECHO_T}no" >&6; }
21142else
21143	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21144		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
21145		{ echo "$as_me:$LINENO: result: yes" >&5
21146echo "${ECHO_T}yes" >&6; }
21147	else
21148		{ { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&5
21149echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&2;}
21150   { (exit 1); exit 1; }; }
21151	fi
21152fi
21153rm -f conftest.$ac_ext
21154
21155
21156
21157# Build with XCB support?
21158
21159# Check whether --with-xcb was given.
21160if test "${with_xcb+set}" = set; then
21161  withval=$with_xcb; ac_cv_use_xcb=$withval
21162else
21163  ac_cv_use_xcb=yes
21164fi
21165
21166{ echo "$as_me:$LINENO: checking whether to use XCB" >&5
21167echo $ECHO_N "checking whether to use XCB... $ECHO_C" >&6; }
21168if test "${ac_cv_use_xcb+set}" = set; then
21169  echo $ECHO_N "(cached) $ECHO_C" >&6
21170else
21171  ac_cv_use_xcb=yes
21172fi
21173{ echo "$as_me:$LINENO: result: $ac_cv_use_xcb" >&5
21174echo "${ECHO_T}$ac_cv_use_xcb" >&6; }
21175 if test x$ac_cv_use_xcb != xno; then
21176  XCB_TRUE=
21177  XCB_FALSE='#'
21178else
21179  XCB_TRUE='#'
21180  XCB_FALSE=
21181fi
21182
21183
21184# Checks for pkg-config packages
21185
21186
21187if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21188	if test -n "$ac_tool_prefix"; then
21189  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21190set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21193if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21194  echo $ECHO_N "(cached) $ECHO_C" >&6
21195else
21196  case $PKG_CONFIG in
21197  [\\/]* | ?:[\\/]*)
21198  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21199  ;;
21200  *)
21201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21202for as_dir in $PATH
21203do
21204  IFS=$as_save_IFS
21205  test -z "$as_dir" && as_dir=.
21206  for ac_exec_ext in '' $ac_executable_extensions; do
21207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21208    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21210    break 2
21211  fi
21212done
21213done
21214IFS=$as_save_IFS
21215
21216  ;;
21217esac
21218fi
21219PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21220if test -n "$PKG_CONFIG"; then
21221  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21222echo "${ECHO_T}$PKG_CONFIG" >&6; }
21223else
21224  { echo "$as_me:$LINENO: result: no" >&5
21225echo "${ECHO_T}no" >&6; }
21226fi
21227
21228
21229fi
21230if test -z "$ac_cv_path_PKG_CONFIG"; then
21231  ac_pt_PKG_CONFIG=$PKG_CONFIG
21232  # Extract the first word of "pkg-config", so it can be a program name with args.
21233set dummy pkg-config; ac_word=$2
21234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21236if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21237  echo $ECHO_N "(cached) $ECHO_C" >&6
21238else
21239  case $ac_pt_PKG_CONFIG in
21240  [\\/]* | ?:[\\/]*)
21241  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21242  ;;
21243  *)
21244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21245for as_dir in $PATH
21246do
21247  IFS=$as_save_IFS
21248  test -z "$as_dir" && as_dir=.
21249  for ac_exec_ext in '' $ac_executable_extensions; do
21250  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21251    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21253    break 2
21254  fi
21255done
21256done
21257IFS=$as_save_IFS
21258
21259  ;;
21260esac
21261fi
21262ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21263if test -n "$ac_pt_PKG_CONFIG"; then
21264  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21265echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21266else
21267  { echo "$as_me:$LINENO: result: no" >&5
21268echo "${ECHO_T}no" >&6; }
21269fi
21270
21271  if test "x$ac_pt_PKG_CONFIG" = x; then
21272    PKG_CONFIG=""
21273  else
21274    case $cross_compiling:$ac_tool_warned in
21275yes:)
21276{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21277whose name does not start with the host triplet.  If you think this
21278configuration is useful to you, please write to autoconf@gnu.org." >&5
21279echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21280whose name does not start with the host triplet.  If you think this
21281configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21282ac_tool_warned=yes ;;
21283esac
21284    PKG_CONFIG=$ac_pt_PKG_CONFIG
21285  fi
21286else
21287  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21288fi
21289
21290fi
21291if test -n "$PKG_CONFIG"; then
21292	_pkg_min_version=0.9.0
21293	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21294echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21295	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21296		{ echo "$as_me:$LINENO: result: yes" >&5
21297echo "${ECHO_T}yes" >&6; }
21298	else
21299		{ echo "$as_me:$LINENO: result: no" >&5
21300echo "${ECHO_T}no" >&6; }
21301		PKG_CONFIG=""
21302	fi
21303
21304fi
21305
21306pkg_failed=no
21307{ echo "$as_me:$LINENO: checking for XPROTO" >&5
21308echo $ECHO_N "checking for XPROTO... $ECHO_C" >&6; }
21309
21310if test -n "$PKG_CONFIG"; then
21311    if test -n "$XPROTO_CFLAGS"; then
21312        pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
21313    else
21314        if test -n "$PKG_CONFIG" && \
21315    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13\"") >&5
21316  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13") 2>&5
21317  ac_status=$?
21318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319  (exit $ac_status); }; then
21320  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13" 2>/dev/null`
21321else
21322  pkg_failed=yes
21323fi
21324    fi
21325else
21326	pkg_failed=untried
21327fi
21328if test -n "$PKG_CONFIG"; then
21329    if test -n "$XPROTO_LIBS"; then
21330        pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
21331    else
21332        if test -n "$PKG_CONFIG" && \
21333    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13\"") >&5
21334  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13") 2>&5
21335  ac_status=$?
21336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337  (exit $ac_status); }; then
21338  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13" 2>/dev/null`
21339else
21340  pkg_failed=yes
21341fi
21342    fi
21343else
21344	pkg_failed=untried
21345fi
21346
21347
21348
21349if test $pkg_failed = yes; then
21350
21351if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21352        _pkg_short_errors_supported=yes
21353else
21354        _pkg_short_errors_supported=no
21355fi
21356        if test $_pkg_short_errors_supported = yes; then
21357	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto >= 7.0.13"`
21358        else
21359	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto >= 7.0.13"`
21360        fi
21361	# Put the nasty error message in config.log where it belongs
21362	echo "$XPROTO_PKG_ERRORS" >&5
21363
21364	{ { echo "$as_me:$LINENO: error: Package requirements (xproto >= 7.0.13) were not met:
21365
21366$XPROTO_PKG_ERRORS
21367
21368Consider adjusting the PKG_CONFIG_PATH environment variable if you
21369installed software in a non-standard prefix.
21370
21371Alternatively, you may set the environment variables XPROTO_CFLAGS
21372and XPROTO_LIBS to avoid the need to call pkg-config.
21373See the pkg-config man page for more details.
21374" >&5
21375echo "$as_me: error: Package requirements (xproto >= 7.0.13) were not met:
21376
21377$XPROTO_PKG_ERRORS
21378
21379Consider adjusting the PKG_CONFIG_PATH environment variable if you
21380installed software in a non-standard prefix.
21381
21382Alternatively, you may set the environment variables XPROTO_CFLAGS
21383and XPROTO_LIBS to avoid the need to call pkg-config.
21384See the pkg-config man page for more details.
21385" >&2;}
21386   { (exit 1); exit 1; }; }
21387elif test $pkg_failed = untried; then
21388	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21389is in your PATH or set the PKG_CONFIG environment variable to the full
21390path to pkg-config.
21391
21392Alternatively, you may set the environment variables XPROTO_CFLAGS
21393and XPROTO_LIBS to avoid the need to call pkg-config.
21394See the pkg-config man page for more details.
21395
21396To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21397See \`config.log' for more details." >&5
21398echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21399is in your PATH or set the PKG_CONFIG environment variable to the full
21400path to pkg-config.
21401
21402Alternatively, you may set the environment variables XPROTO_CFLAGS
21403and XPROTO_LIBS to avoid the need to call pkg-config.
21404See the pkg-config man page for more details.
21405
21406To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21407See \`config.log' for more details." >&2;}
21408   { (exit 1); exit 1; }; }
21409else
21410	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
21411	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
21412        { echo "$as_me:$LINENO: result: yes" >&5
21413echo "${ECHO_T}yes" >&6; }
21414	:
21415fi
21416
21417
21418case "$ac_cv_use_xcb" in
21419no)
21420	X11_REQUIRES="xau xcmiscproto bigreqsproto"
21421
21422pkg_failed=no
21423{ echo "$as_me:$LINENO: checking for XDMCP" >&5
21424echo $ECHO_N "checking for XDMCP... $ECHO_C" >&6; }
21425
21426if test -n "$PKG_CONFIG"; then
21427    if test -n "$XDMCP_CFLAGS"; then
21428        pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
21429    else
21430        if test -n "$PKG_CONFIG" && \
21431    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
21432  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
21433  ac_status=$?
21434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435  (exit $ac_status); }; then
21436  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
21437else
21438  pkg_failed=yes
21439fi
21440    fi
21441else
21442	pkg_failed=untried
21443fi
21444if test -n "$PKG_CONFIG"; then
21445    if test -n "$XDMCP_LIBS"; then
21446        pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
21447    else
21448        if test -n "$PKG_CONFIG" && \
21449    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
21450  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
21451  ac_status=$?
21452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453  (exit $ac_status); }; then
21454  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
21455else
21456  pkg_failed=yes
21457fi
21458    fi
21459else
21460	pkg_failed=untried
21461fi
21462
21463
21464
21465if test $pkg_failed = yes; then
21466
21467if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21468        _pkg_short_errors_supported=yes
21469else
21470        _pkg_short_errors_supported=no
21471fi
21472        if test $_pkg_short_errors_supported = yes; then
21473	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdmcp"`
21474        else
21475	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"`
21476        fi
21477	# Put the nasty error message in config.log where it belongs
21478	echo "$XDMCP_PKG_ERRORS" >&5
21479
21480	{ { echo "$as_me:$LINENO: error: Package requirements (xdmcp) were not met:
21481
21482$XDMCP_PKG_ERRORS
21483
21484Consider adjusting the PKG_CONFIG_PATH environment variable if you
21485installed software in a non-standard prefix.
21486
21487Alternatively, you may set the environment variables XDMCP_CFLAGS
21488and XDMCP_LIBS to avoid the need to call pkg-config.
21489See the pkg-config man page for more details.
21490" >&5
21491echo "$as_me: error: Package requirements (xdmcp) were not met:
21492
21493$XDMCP_PKG_ERRORS
21494
21495Consider adjusting the PKG_CONFIG_PATH environment variable if you
21496installed software in a non-standard prefix.
21497
21498Alternatively, you may set the environment variables XDMCP_CFLAGS
21499and XDMCP_LIBS to avoid the need to call pkg-config.
21500See the pkg-config man page for more details.
21501" >&2;}
21502   { (exit 1); exit 1; }; }
21503elif test $pkg_failed = untried; then
21504	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21505is in your PATH or set the PKG_CONFIG environment variable to the full
21506path to pkg-config.
21507
21508Alternatively, you may set the environment variables XDMCP_CFLAGS
21509and XDMCP_LIBS to avoid the need to call pkg-config.
21510See the pkg-config man page for more details.
21511
21512To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21513See \`config.log' for more details." >&5
21514echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21515is in your PATH or set the PKG_CONFIG environment variable to the full
21516path to pkg-config.
21517
21518Alternatively, you may set the environment variables XDMCP_CFLAGS
21519and XDMCP_LIBS to avoid the need to call pkg-config.
21520See the pkg-config man page for more details.
21521
21522To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21523See \`config.log' for more details." >&2;}
21524   { (exit 1); exit 1; }; }
21525else
21526	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
21527	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
21528        { echo "$as_me:$LINENO: result: yes" >&5
21529echo "${ECHO_T}yes" >&6; }
21530	:
21531fi
21532	{ echo "$as_me:$LINENO: checking for XdmcpWrap in -lXdmcp" >&5
21533echo $ECHO_N "checking for XdmcpWrap in -lXdmcp... $ECHO_C" >&6; }
21534if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then
21535  echo $ECHO_N "(cached) $ECHO_C" >&6
21536else
21537  ac_check_lib_save_LIBS=$LIBS
21538LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
21539cat >conftest.$ac_ext <<_ACEOF
21540/* confdefs.h.  */
21541_ACEOF
21542cat confdefs.h >>conftest.$ac_ext
21543cat >>conftest.$ac_ext <<_ACEOF
21544/* end confdefs.h.  */
21545
21546/* Override any GCC internal prototype to avoid an error.
21547   Use char because int might match the return type of a GCC
21548   builtin and then its argument prototype would still apply.  */
21549#ifdef __cplusplus
21550extern "C"
21551#endif
21552char XdmcpWrap ();
21553int
21554main ()
21555{
21556return XdmcpWrap ();
21557  ;
21558  return 0;
21559}
21560_ACEOF
21561rm -f conftest.$ac_objext conftest$ac_exeext
21562if { (ac_try="$ac_link"
21563case "(($ac_try" in
21564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565  *) ac_try_echo=$ac_try;;
21566esac
21567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21568  (eval "$ac_link") 2>conftest.er1
21569  ac_status=$?
21570  grep -v '^ *+' conftest.er1 >conftest.err
21571  rm -f conftest.er1
21572  cat conftest.err >&5
21573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574  (exit $ac_status); } && {
21575	 test -z "$ac_c_werror_flag" ||
21576	 test ! -s conftest.err
21577       } && test -s conftest$ac_exeext &&
21578       $as_test_x conftest$ac_exeext; then
21579  ac_cv_lib_Xdmcp_XdmcpWrap=yes
21580else
21581  echo "$as_me: failed program was:" >&5
21582sed 's/^/| /' conftest.$ac_ext >&5
21583
21584	ac_cv_lib_Xdmcp_XdmcpWrap=no
21585fi
21586
21587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21588      conftest$ac_exeext conftest.$ac_ext
21589LIBS=$ac_check_lib_save_LIBS
21590fi
21591{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
21592echo "${ECHO_T}$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
21593if test $ac_cv_lib_Xdmcp_XdmcpWrap = yes; then
21594  xdmauth="yes"
21595else
21596  xdmauth="no"
21597fi
21598
21599
21600cat >>confdefs.h <<\_ACEOF
21601#define USE_XCB 0
21602_ACEOF
21603
21604	;;
21605*)
21606	X11_REQUIRES="xcb >= 1.1.92"
21607	X11_EXTRA_DEPS="xcb >= 1.1.92"
21608	xdmauth="no" # XCB handles all auth
21609
21610cat >>confdefs.h <<\_ACEOF
21611#define USE_XCB 1
21612_ACEOF
21613
21614	;;
21615esac
21616
21617
21618pkg_failed=no
21619{ echo "$as_me:$LINENO: checking for X11" >&5
21620echo $ECHO_N "checking for X11... $ECHO_C" >&6; }
21621
21622if test -n "$PKG_CONFIG"; then
21623    if test -n "$X11_CFLAGS"; then
21624        pkg_cv_X11_CFLAGS="$X11_CFLAGS"
21625    else
21626        if test -n "$PKG_CONFIG" && \
21627    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto xtrans \$X11_REQUIRES\"") >&5
21628  ($PKG_CONFIG --exists --print-errors "xextproto xtrans $X11_REQUIRES") 2>&5
21629  ac_status=$?
21630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631  (exit $ac_status); }; then
21632  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xextproto xtrans $X11_REQUIRES" 2>/dev/null`
21633else
21634  pkg_failed=yes
21635fi
21636    fi
21637else
21638	pkg_failed=untried
21639fi
21640if test -n "$PKG_CONFIG"; then
21641    if test -n "$X11_LIBS"; then
21642        pkg_cv_X11_LIBS="$X11_LIBS"
21643    else
21644        if test -n "$PKG_CONFIG" && \
21645    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto xtrans \$X11_REQUIRES\"") >&5
21646  ($PKG_CONFIG --exists --print-errors "xextproto xtrans $X11_REQUIRES") 2>&5
21647  ac_status=$?
21648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649  (exit $ac_status); }; then
21650  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xextproto xtrans $X11_REQUIRES" 2>/dev/null`
21651else
21652  pkg_failed=yes
21653fi
21654    fi
21655else
21656	pkg_failed=untried
21657fi
21658
21659
21660
21661if test $pkg_failed = yes; then
21662
21663if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21664        _pkg_short_errors_supported=yes
21665else
21666        _pkg_short_errors_supported=no
21667fi
21668        if test $_pkg_short_errors_supported = yes; then
21669	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xextproto xtrans $X11_REQUIRES"`
21670        else
21671	        X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xextproto xtrans $X11_REQUIRES"`
21672        fi
21673	# Put the nasty error message in config.log where it belongs
21674	echo "$X11_PKG_ERRORS" >&5
21675
21676	{ { echo "$as_me:$LINENO: error: Package requirements (xextproto xtrans $X11_REQUIRES) were not met:
21677
21678$X11_PKG_ERRORS
21679
21680Consider adjusting the PKG_CONFIG_PATH environment variable if you
21681installed software in a non-standard prefix.
21682
21683Alternatively, you may set the environment variables X11_CFLAGS
21684and X11_LIBS to avoid the need to call pkg-config.
21685See the pkg-config man page for more details.
21686" >&5
21687echo "$as_me: error: Package requirements (xextproto xtrans $X11_REQUIRES) were not met:
21688
21689$X11_PKG_ERRORS
21690
21691Consider adjusting the PKG_CONFIG_PATH environment variable if you
21692installed software in a non-standard prefix.
21693
21694Alternatively, you may set the environment variables X11_CFLAGS
21695and X11_LIBS to avoid the need to call pkg-config.
21696See the pkg-config man page for more details.
21697" >&2;}
21698   { (exit 1); exit 1; }; }
21699elif test $pkg_failed = untried; then
21700	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21701is in your PATH or set the PKG_CONFIG environment variable to the full
21702path to pkg-config.
21703
21704Alternatively, you may set the environment variables X11_CFLAGS
21705and X11_LIBS to avoid the need to call pkg-config.
21706See the pkg-config man page for more details.
21707
21708To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21709See \`config.log' for more details." >&5
21710echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21711is in your PATH or set the PKG_CONFIG environment variable to the full
21712path to pkg-config.
21713
21714Alternatively, you may set the environment variables X11_CFLAGS
21715and X11_LIBS to avoid the need to call pkg-config.
21716See the pkg-config man page for more details.
21717
21718To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21719See \`config.log' for more details." >&2;}
21720   { (exit 1); exit 1; }; }
21721else
21722	X11_CFLAGS=$pkg_cv_X11_CFLAGS
21723	X11_LIBS=$pkg_cv_X11_LIBS
21724        { echo "$as_me:$LINENO: result: yes" >&5
21725echo "${ECHO_T}yes" >&6; }
21726	:
21727fi
21728
21729
21730
21731# Transport selection macro from xtrans.m4
21732
21733
21734
21735 case $host_os in
21736	mingw*)	unixdef="no"   ;;
21737	*)	unixdef="yes"  ;;
21738 esac
21739 # Check whether --enable-unix-transport was given.
21740if test "${enable_unix_transport+set}" = set; then
21741  enableval=$enable_unix_transport; UNIXCONN=$enableval
21742else
21743  UNIXCONN=$unixdef
21744fi
21745
21746 { echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
21747echo $ECHO_N "checking if Xtrans should support UNIX socket connections... $ECHO_C" >&6; }
21748 if test "$UNIXCONN" = "yes"; then
21749
21750cat >>confdefs.h <<\_ACEOF
21751#define UNIXCONN 1
21752_ACEOF
21753
21754 fi
21755 { echo "$as_me:$LINENO: result: $UNIXCONN" >&5
21756echo "${ECHO_T}$UNIXCONN" >&6; }
21757 # Check whether --enable-tcp-transport was given.
21758if test "${enable_tcp_transport+set}" = set; then
21759  enableval=$enable_tcp_transport; TCPCONN=$enableval
21760else
21761  TCPCONN=yes
21762fi
21763
21764 { echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
21765echo $ECHO_N "checking if Xtrans should support TCP socket connections... $ECHO_C" >&6; }
21766 { echo "$as_me:$LINENO: result: $TCPCONN" >&5
21767echo "${ECHO_T}$TCPCONN" >&6; }
21768 if test "$TCPCONN" = "yes"; then
21769
21770cat >>confdefs.h <<\_ACEOF
21771#define TCPCONN 1
21772_ACEOF
21773
21774
21775 # SVR4 hides these in libraries other than libc
21776 { echo "$as_me:$LINENO: checking for library containing socket" >&5
21777echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
21778if test "${ac_cv_search_socket+set}" = set; then
21779  echo $ECHO_N "(cached) $ECHO_C" >&6
21780else
21781  ac_func_search_save_LIBS=$LIBS
21782cat >conftest.$ac_ext <<_ACEOF
21783/* confdefs.h.  */
21784_ACEOF
21785cat confdefs.h >>conftest.$ac_ext
21786cat >>conftest.$ac_ext <<_ACEOF
21787/* end confdefs.h.  */
21788
21789/* Override any GCC internal prototype to avoid an error.
21790   Use char because int might match the return type of a GCC
21791   builtin and then its argument prototype would still apply.  */
21792#ifdef __cplusplus
21793extern "C"
21794#endif
21795char socket ();
21796int
21797main ()
21798{
21799return socket ();
21800  ;
21801  return 0;
21802}
21803_ACEOF
21804for ac_lib in '' socket; do
21805  if test -z "$ac_lib"; then
21806    ac_res="none required"
21807  else
21808    ac_res=-l$ac_lib
21809    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21810  fi
21811  rm -f conftest.$ac_objext conftest$ac_exeext
21812if { (ac_try="$ac_link"
21813case "(($ac_try" in
21814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815  *) ac_try_echo=$ac_try;;
21816esac
21817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818  (eval "$ac_link") 2>conftest.er1
21819  ac_status=$?
21820  grep -v '^ *+' conftest.er1 >conftest.err
21821  rm -f conftest.er1
21822  cat conftest.err >&5
21823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824  (exit $ac_status); } && {
21825	 test -z "$ac_c_werror_flag" ||
21826	 test ! -s conftest.err
21827       } && test -s conftest$ac_exeext &&
21828       $as_test_x conftest$ac_exeext; then
21829  ac_cv_search_socket=$ac_res
21830else
21831  echo "$as_me: failed program was:" >&5
21832sed 's/^/| /' conftest.$ac_ext >&5
21833
21834
21835fi
21836
21837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21838      conftest$ac_exeext
21839  if test "${ac_cv_search_socket+set}" = set; then
21840  break
21841fi
21842done
21843if test "${ac_cv_search_socket+set}" = set; then
21844  :
21845else
21846  ac_cv_search_socket=no
21847fi
21848rm conftest.$ac_ext
21849LIBS=$ac_func_search_save_LIBS
21850fi
21851{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
21852echo "${ECHO_T}$ac_cv_search_socket" >&6; }
21853ac_res=$ac_cv_search_socket
21854if test "$ac_res" != no; then
21855  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21856
21857fi
21858
21859 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
21860echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
21861if test "${ac_cv_search_gethostbyname+set}" = set; then
21862  echo $ECHO_N "(cached) $ECHO_C" >&6
21863else
21864  ac_func_search_save_LIBS=$LIBS
21865cat >conftest.$ac_ext <<_ACEOF
21866/* confdefs.h.  */
21867_ACEOF
21868cat confdefs.h >>conftest.$ac_ext
21869cat >>conftest.$ac_ext <<_ACEOF
21870/* end confdefs.h.  */
21871
21872/* Override any GCC internal prototype to avoid an error.
21873   Use char because int might match the return type of a GCC
21874   builtin and then its argument prototype would still apply.  */
21875#ifdef __cplusplus
21876extern "C"
21877#endif
21878char gethostbyname ();
21879int
21880main ()
21881{
21882return gethostbyname ();
21883  ;
21884  return 0;
21885}
21886_ACEOF
21887for ac_lib in '' nsl; do
21888  if test -z "$ac_lib"; then
21889    ac_res="none required"
21890  else
21891    ac_res=-l$ac_lib
21892    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21893  fi
21894  rm -f conftest.$ac_objext conftest$ac_exeext
21895if { (ac_try="$ac_link"
21896case "(($ac_try" in
21897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898  *) ac_try_echo=$ac_try;;
21899esac
21900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901  (eval "$ac_link") 2>conftest.er1
21902  ac_status=$?
21903  grep -v '^ *+' conftest.er1 >conftest.err
21904  rm -f conftest.er1
21905  cat conftest.err >&5
21906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907  (exit $ac_status); } && {
21908	 test -z "$ac_c_werror_flag" ||
21909	 test ! -s conftest.err
21910       } && test -s conftest$ac_exeext &&
21911       $as_test_x conftest$ac_exeext; then
21912  ac_cv_search_gethostbyname=$ac_res
21913else
21914  echo "$as_me: failed program was:" >&5
21915sed 's/^/| /' conftest.$ac_ext >&5
21916
21917
21918fi
21919
21920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21921      conftest$ac_exeext
21922  if test "${ac_cv_search_gethostbyname+set}" = set; then
21923  break
21924fi
21925done
21926if test "${ac_cv_search_gethostbyname+set}" = set; then
21927  :
21928else
21929  ac_cv_search_gethostbyname=no
21930fi
21931rm conftest.$ac_ext
21932LIBS=$ac_func_search_save_LIBS
21933fi
21934{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
21935echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
21936ac_res=$ac_cv_search_gethostbyname
21937if test "$ac_res" != no; then
21938  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21939
21940fi
21941
21942
21943{ echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
21944echo $ECHO_N "checking for main in -lws2_32... $ECHO_C" >&6; }
21945if test "${ac_cv_lib_ws2_32_main+set}" = set; then
21946  echo $ECHO_N "(cached) $ECHO_C" >&6
21947else
21948  ac_check_lib_save_LIBS=$LIBS
21949LIBS="-lws2_32  $LIBS"
21950cat >conftest.$ac_ext <<_ACEOF
21951/* confdefs.h.  */
21952_ACEOF
21953cat confdefs.h >>conftest.$ac_ext
21954cat >>conftest.$ac_ext <<_ACEOF
21955/* end confdefs.h.  */
21956
21957
21958int
21959main ()
21960{
21961return main ();
21962  ;
21963  return 0;
21964}
21965_ACEOF
21966rm -f conftest.$ac_objext conftest$ac_exeext
21967if { (ac_try="$ac_link"
21968case "(($ac_try" in
21969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970  *) ac_try_echo=$ac_try;;
21971esac
21972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973  (eval "$ac_link") 2>conftest.er1
21974  ac_status=$?
21975  grep -v '^ *+' conftest.er1 >conftest.err
21976  rm -f conftest.er1
21977  cat conftest.err >&5
21978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979  (exit $ac_status); } && {
21980	 test -z "$ac_c_werror_flag" ||
21981	 test ! -s conftest.err
21982       } && test -s conftest$ac_exeext &&
21983       $as_test_x conftest$ac_exeext; then
21984  ac_cv_lib_ws2_32_main=yes
21985else
21986  echo "$as_me: failed program was:" >&5
21987sed 's/^/| /' conftest.$ac_ext >&5
21988
21989	ac_cv_lib_ws2_32_main=no
21990fi
21991
21992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21993      conftest$ac_exeext conftest.$ac_ext
21994LIBS=$ac_check_lib_save_LIBS
21995fi
21996{ echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
21997echo "${ECHO_T}$ac_cv_lib_ws2_32_main" >&6; }
21998if test $ac_cv_lib_ws2_32_main = yes; then
21999  cat >>confdefs.h <<_ACEOF
22000#define HAVE_LIBWS2_32 1
22001_ACEOF
22002
22003  LIBS="-lws2_32 $LIBS"
22004
22005fi
22006ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
22007
22008
22009 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
22010 # Check whether --enable-ipv6 was given.
22011if test "${enable_ipv6+set}" = set; then
22012  enableval=$enable_ipv6; IPV6CONN=$enableval
22013else
22014  { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
22015echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
22016if test "${ac_cv_func_getaddrinfo+set}" = set; then
22017  echo $ECHO_N "(cached) $ECHO_C" >&6
22018else
22019  cat >conftest.$ac_ext <<_ACEOF
22020/* confdefs.h.  */
22021_ACEOF
22022cat confdefs.h >>conftest.$ac_ext
22023cat >>conftest.$ac_ext <<_ACEOF
22024/* end confdefs.h.  */
22025/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
22026   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22027#define getaddrinfo innocuous_getaddrinfo
22028
22029/* System header to define __stub macros and hopefully few prototypes,
22030    which can conflict with char getaddrinfo (); below.
22031    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22032    <limits.h> exists even on freestanding compilers.  */
22033
22034#ifdef __STDC__
22035# include <limits.h>
22036#else
22037# include <assert.h>
22038#endif
22039
22040#undef getaddrinfo
22041
22042/* Override any GCC internal prototype to avoid an error.
22043   Use char because int might match the return type of a GCC
22044   builtin and then its argument prototype would still apply.  */
22045#ifdef __cplusplus
22046extern "C"
22047#endif
22048char getaddrinfo ();
22049/* The GNU C library defines this for functions which it implements
22050    to always fail with ENOSYS.  Some functions are actually named
22051    something starting with __ and the normal name is an alias.  */
22052#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
22053choke me
22054#endif
22055
22056int
22057main ()
22058{
22059return getaddrinfo ();
22060  ;
22061  return 0;
22062}
22063_ACEOF
22064rm -f conftest.$ac_objext conftest$ac_exeext
22065if { (ac_try="$ac_link"
22066case "(($ac_try" in
22067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068  *) ac_try_echo=$ac_try;;
22069esac
22070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071  (eval "$ac_link") 2>conftest.er1
22072  ac_status=$?
22073  grep -v '^ *+' conftest.er1 >conftest.err
22074  rm -f conftest.er1
22075  cat conftest.err >&5
22076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077  (exit $ac_status); } && {
22078	 test -z "$ac_c_werror_flag" ||
22079	 test ! -s conftest.err
22080       } && test -s conftest$ac_exeext &&
22081       $as_test_x conftest$ac_exeext; then
22082  ac_cv_func_getaddrinfo=yes
22083else
22084  echo "$as_me: failed program was:" >&5
22085sed 's/^/| /' conftest.$ac_ext >&5
22086
22087	ac_cv_func_getaddrinfo=no
22088fi
22089
22090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22091      conftest$ac_exeext conftest.$ac_ext
22092fi
22093{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
22094echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
22095if test $ac_cv_func_getaddrinfo = yes; then
22096  IPV6CONN=yes
22097else
22098  IPV6CONN=no
22099fi
22100
22101fi
22102
22103 { echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
22104echo $ECHO_N "checking if IPv6 support should be built... $ECHO_C" >&6; }
22105 if test "$IPV6CONN" = "yes"; then
22106
22107cat >>confdefs.h <<\_ACEOF
22108#define IPv6 1
22109_ACEOF
22110
22111 fi
22112 { echo "$as_me:$LINENO: result: $IPV6CONN" >&5
22113echo "${ECHO_T}$IPV6CONN" >&6; }
22114
22115 # 4.3BSD-Reno added a new member to struct sockaddr_in
22116 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
22117echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
22118if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
22119  echo $ECHO_N "(cached) $ECHO_C" >&6
22120else
22121  cat >conftest.$ac_ext <<_ACEOF
22122/* confdefs.h.  */
22123_ACEOF
22124cat confdefs.h >>conftest.$ac_ext
22125cat >>conftest.$ac_ext <<_ACEOF
22126/* end confdefs.h.  */
22127
22128#include <sys/types.h>
22129#include <sys/socket.h>
22130#include <netinet/in.h>
22131
22132
22133int
22134main ()
22135{
22136static struct sockaddr_in ac_aggr;
22137if (ac_aggr.sin_len)
22138return 0;
22139  ;
22140  return 0;
22141}
22142_ACEOF
22143rm -f conftest.$ac_objext
22144if { (ac_try="$ac_compile"
22145case "(($ac_try" in
22146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147  *) ac_try_echo=$ac_try;;
22148esac
22149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150  (eval "$ac_compile") 2>conftest.er1
22151  ac_status=$?
22152  grep -v '^ *+' conftest.er1 >conftest.err
22153  rm -f conftest.er1
22154  cat conftest.err >&5
22155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156  (exit $ac_status); } && {
22157	 test -z "$ac_c_werror_flag" ||
22158	 test ! -s conftest.err
22159       } && test -s conftest.$ac_objext; then
22160  ac_cv_member_struct_sockaddr_in_sin_len=yes
22161else
22162  echo "$as_me: failed program was:" >&5
22163sed 's/^/| /' conftest.$ac_ext >&5
22164
22165	cat >conftest.$ac_ext <<_ACEOF
22166/* confdefs.h.  */
22167_ACEOF
22168cat confdefs.h >>conftest.$ac_ext
22169cat >>conftest.$ac_ext <<_ACEOF
22170/* end confdefs.h.  */
22171
22172#include <sys/types.h>
22173#include <sys/socket.h>
22174#include <netinet/in.h>
22175
22176
22177int
22178main ()
22179{
22180static struct sockaddr_in ac_aggr;
22181if (sizeof ac_aggr.sin_len)
22182return 0;
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_member_struct_sockaddr_in_sin_len=yes
22205else
22206  echo "$as_me: failed program was:" >&5
22207sed 's/^/| /' conftest.$ac_ext >&5
22208
22209	ac_cv_member_struct_sockaddr_in_sin_len=no
22210fi
22211
22212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213fi
22214
22215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22216fi
22217{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
22218echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
22219if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
22220
22221cat >>confdefs.h <<\_ACEOF
22222#define BSD44SOCKETS 1
22223_ACEOF
22224
22225fi
22226
22227
22228 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
22229 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22230echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22231if test "${ac_cv_type_socklen_t+set}" = set; then
22232  echo $ECHO_N "(cached) $ECHO_C" >&6
22233else
22234  cat >conftest.$ac_ext <<_ACEOF
22235/* confdefs.h.  */
22236_ACEOF
22237cat confdefs.h >>conftest.$ac_ext
22238cat >>conftest.$ac_ext <<_ACEOF
22239/* end confdefs.h.  */
22240
22241$ac_includes_default
22242#include <sys/socket.h>
22243
22244typedef socklen_t ac__type_new_;
22245int
22246main ()
22247{
22248if ((ac__type_new_ *) 0)
22249  return 0;
22250if (sizeof (ac__type_new_))
22251  return 0;
22252  ;
22253  return 0;
22254}
22255_ACEOF
22256rm -f conftest.$ac_objext
22257if { (ac_try="$ac_compile"
22258case "(($ac_try" in
22259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260  *) ac_try_echo=$ac_try;;
22261esac
22262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263  (eval "$ac_compile") 2>conftest.er1
22264  ac_status=$?
22265  grep -v '^ *+' conftest.er1 >conftest.err
22266  rm -f conftest.er1
22267  cat conftest.err >&5
22268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269  (exit $ac_status); } && {
22270	 test -z "$ac_c_werror_flag" ||
22271	 test ! -s conftest.err
22272       } && test -s conftest.$ac_objext; then
22273  ac_cv_type_socklen_t=yes
22274else
22275  echo "$as_me: failed program was:" >&5
22276sed 's/^/| /' conftest.$ac_ext >&5
22277
22278	ac_cv_type_socklen_t=no
22279fi
22280
22281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22282fi
22283{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22284echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22285if test $ac_cv_type_socklen_t = yes; then
22286
22287cat >>confdefs.h <<_ACEOF
22288#define HAVE_SOCKLEN_T 1
22289_ACEOF
22290
22291
22292fi
22293
22294
22295
22296 fi
22297 case $host_os in
22298	solaris*|sco*|sysv4*)	localdef="yes" ;;
22299	*)			localdef="no"  ;;
22300 esac
22301 # Check whether --enable-local-transport was given.
22302if test "${enable_local_transport+set}" = set; then
22303  enableval=$enable_local_transport; LOCALCONN=$enableval
22304else
22305  LOCALCONN=$localdef
22306fi
22307
22308 { echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
22309echo $ECHO_N "checking if Xtrans should support os-specific local connections... $ECHO_C" >&6; }
22310 { echo "$as_me:$LINENO: result: $LOCALCONN" >&5
22311echo "${ECHO_T}$LOCALCONN" >&6; }
22312 if test "$LOCALCONN" = "yes"; then
22313
22314cat >>confdefs.h <<\_ACEOF
22315#define LOCALCONN 1
22316_ACEOF
22317
22318 fi
22319
22320
22321
22322# Secure RPC detection macro from xtrans.m4
22323
22324 # Check whether --enable-secure-rpc was given.
22325if test "${enable_secure_rpc+set}" = set; then
22326  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
22327else
22328  SECURE_RPC="try"
22329fi
22330
22331
22332 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
22333	FOUND_SECURE_RPC="no"
22334
22335
22336for ac_func in authdes_seccreate authdes_create
22337do
22338as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22339{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22340echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22341if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22342  echo $ECHO_N "(cached) $ECHO_C" >&6
22343else
22344  cat >conftest.$ac_ext <<_ACEOF
22345/* confdefs.h.  */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h.  */
22350/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22351   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22352#define $ac_func innocuous_$ac_func
22353
22354/* System header to define __stub macros and hopefully few prototypes,
22355    which can conflict with char $ac_func (); below.
22356    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22357    <limits.h> exists even on freestanding compilers.  */
22358
22359#ifdef __STDC__
22360# include <limits.h>
22361#else
22362# include <assert.h>
22363#endif
22364
22365#undef $ac_func
22366
22367/* Override any GCC internal prototype to avoid an error.
22368   Use char because int might match the return type of a GCC
22369   builtin and then its argument prototype would still apply.  */
22370#ifdef __cplusplus
22371extern "C"
22372#endif
22373char $ac_func ();
22374/* The GNU C library defines this for functions which it implements
22375    to always fail with ENOSYS.  Some functions are actually named
22376    something starting with __ and the normal name is an alias.  */
22377#if defined __stub_$ac_func || defined __stub___$ac_func
22378choke me
22379#endif
22380
22381int
22382main ()
22383{
22384return $ac_func ();
22385  ;
22386  return 0;
22387}
22388_ACEOF
22389rm -f conftest.$ac_objext conftest$ac_exeext
22390if { (ac_try="$ac_link"
22391case "(($ac_try" in
22392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393  *) ac_try_echo=$ac_try;;
22394esac
22395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396  (eval "$ac_link") 2>conftest.er1
22397  ac_status=$?
22398  grep -v '^ *+' conftest.er1 >conftest.err
22399  rm -f conftest.er1
22400  cat conftest.err >&5
22401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402  (exit $ac_status); } && {
22403	 test -z "$ac_c_werror_flag" ||
22404	 test ! -s conftest.err
22405       } && test -s conftest$ac_exeext &&
22406       $as_test_x conftest$ac_exeext; then
22407  eval "$as_ac_var=yes"
22408else
22409  echo "$as_me: failed program was:" >&5
22410sed 's/^/| /' conftest.$ac_ext >&5
22411
22412	eval "$as_ac_var=no"
22413fi
22414
22415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416      conftest$ac_exeext conftest.$ac_ext
22417fi
22418ac_res=`eval echo '${'$as_ac_var'}'`
22419	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22420echo "${ECHO_T}$ac_res" >&6; }
22421if test `eval echo '${'$as_ac_var'}'` = yes; then
22422  cat >>confdefs.h <<_ACEOF
22423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22424_ACEOF
22425 FOUND_SECURE_RPC="yes"
22426fi
22427done
22428
22429	if test "x$FOUND_SECURE_RPC" = "xno" ; then
22430		if test "x$SECURE_RPC" = "xyes" ; then
22431	{ { echo "$as_me:$LINENO: error: Secure RPC requested, but required functions not found" >&5
22432echo "$as_me: error: Secure RPC requested, but required functions not found" >&2;}
22433   { (exit 1); exit 1; }; }
22434		fi
22435		SECURE_RPC="no"
22436	else
22437				{ echo "$as_me:$LINENO: checking for library containing getsecretkey" >&5
22438echo $ECHO_N "checking for library containing getsecretkey... $ECHO_C" >&6; }
22439if test "${ac_cv_search_getsecretkey+set}" = set; then
22440  echo $ECHO_N "(cached) $ECHO_C" >&6
22441else
22442  ac_func_search_save_LIBS=$LIBS
22443cat >conftest.$ac_ext <<_ACEOF
22444/* confdefs.h.  */
22445_ACEOF
22446cat confdefs.h >>conftest.$ac_ext
22447cat >>conftest.$ac_ext <<_ACEOF
22448/* end confdefs.h.  */
22449
22450/* Override any GCC internal prototype to avoid an error.
22451   Use char because int might match the return type of a GCC
22452   builtin and then its argument prototype would still apply.  */
22453#ifdef __cplusplus
22454extern "C"
22455#endif
22456char getsecretkey ();
22457int
22458main ()
22459{
22460return getsecretkey ();
22461  ;
22462  return 0;
22463}
22464_ACEOF
22465for ac_lib in '' rpcsvc; do
22466  if test -z "$ac_lib"; then
22467    ac_res="none required"
22468  else
22469    ac_res=-l$ac_lib
22470    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22471  fi
22472  rm -f conftest.$ac_objext conftest$ac_exeext
22473if { (ac_try="$ac_link"
22474case "(($ac_try" in
22475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476  *) ac_try_echo=$ac_try;;
22477esac
22478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479  (eval "$ac_link") 2>conftest.er1
22480  ac_status=$?
22481  grep -v '^ *+' conftest.er1 >conftest.err
22482  rm -f conftest.er1
22483  cat conftest.err >&5
22484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485  (exit $ac_status); } && {
22486	 test -z "$ac_c_werror_flag" ||
22487	 test ! -s conftest.err
22488       } && test -s conftest$ac_exeext &&
22489       $as_test_x conftest$ac_exeext; then
22490  ac_cv_search_getsecretkey=$ac_res
22491else
22492  echo "$as_me: failed program was:" >&5
22493sed 's/^/| /' conftest.$ac_ext >&5
22494
22495
22496fi
22497
22498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22499      conftest$ac_exeext
22500  if test "${ac_cv_search_getsecretkey+set}" = set; then
22501  break
22502fi
22503done
22504if test "${ac_cv_search_getsecretkey+set}" = set; then
22505  :
22506else
22507  ac_cv_search_getsecretkey=no
22508fi
22509rm conftest.$ac_ext
22510LIBS=$ac_func_search_save_LIBS
22511fi
22512{ echo "$as_me:$LINENO: result: $ac_cv_search_getsecretkey" >&5
22513echo "${ECHO_T}$ac_cv_search_getsecretkey" >&6; }
22514ac_res=$ac_cv_search_getsecretkey
22515if test "$ac_res" != no; then
22516  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22517
22518fi
22519
22520		SECURE_RPC="yes"
22521	fi
22522 fi
22523 { echo "$as_me:$LINENO: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
22524echo $ECHO_N "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... $ECHO_C" >&6; }
22525 if test "x$SECURE_RPC" = "xyes" ; then
22526
22527cat >>confdefs.h <<\_ACEOF
22528#define SECURE_RPC 1
22529_ACEOF
22530
22531 fi
22532 { echo "$as_me:$LINENO: result: $SECURE_RPC" >&5
22533echo "${ECHO_T}$SECURE_RPC" >&6; }
22534
22535
22536# Preferred order to try transports for local connections
22537{ echo "$as_me:$LINENO: checking what order to try transports in for local connections" >&5
22538echo $ECHO_N "checking what order to try transports in for local connections... $ECHO_C" >&6; }
22539case $host_os in
22540	solaris*)
22541		# On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were
22542		# faster than Unix domain sockets, but on Solaris 10 & later,
22543		# Unix domain sockets are faster now.
22544		DEFAULT_LOCAL_TRANS="UNIX_TRANS,LOCAL_TRANS,TCP_TRANS"
22545		;;
22546	*)
22547		if test "$LOCALCONN" = "yes"; then
22548			DEFAULT_LOCAL_TRANS="LOCAL_TRANS,UNIX_TRANS,TCP_TRANS"
22549		else
22550			DEFAULT_LOCAL_TRANS="UNIX_TRANS,TCP_TRANS"
22551		fi
22552		;;
22553esac
22554
22555
22556# Check whether --with-local-transport-order was given.
22557if test "${with_local_transport_order+set}" = set; then
22558  withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval
22559else
22560  LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS
22561fi
22562
22563
22564cat >>confdefs.h <<_ACEOF
22565#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST
22566_ACEOF
22567
22568{ echo "$as_me:$LINENO: result: $LOCAL_TRANSPORT_LIST" >&5
22569echo "${ECHO_T}$LOCAL_TRANSPORT_LIST" >&6; }
22570
22571# Check for dlopen
22572{ echo "$as_me:$LINENO: checking if run-time linking is supported" >&5
22573echo $ECHO_N "checking if run-time linking is supported... $ECHO_C" >&6; }
22574{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
22575echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
22576if test "${ac_cv_search_dlopen+set}" = set; then
22577  echo $ECHO_N "(cached) $ECHO_C" >&6
22578else
22579  ac_func_search_save_LIBS=$LIBS
22580cat >conftest.$ac_ext <<_ACEOF
22581/* confdefs.h.  */
22582_ACEOF
22583cat confdefs.h >>conftest.$ac_ext
22584cat >>conftest.$ac_ext <<_ACEOF
22585/* end confdefs.h.  */
22586
22587/* Override any GCC internal prototype to avoid an error.
22588   Use char because int might match the return type of a GCC
22589   builtin and then its argument prototype would still apply.  */
22590#ifdef __cplusplus
22591extern "C"
22592#endif
22593char dlopen ();
22594int
22595main ()
22596{
22597return dlopen ();
22598  ;
22599  return 0;
22600}
22601_ACEOF
22602for ac_lib in '' dl svld; do
22603  if test -z "$ac_lib"; then
22604    ac_res="none required"
22605  else
22606    ac_res=-l$ac_lib
22607    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22608  fi
22609  rm -f conftest.$ac_objext conftest$ac_exeext
22610if { (ac_try="$ac_link"
22611case "(($ac_try" in
22612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22613  *) ac_try_echo=$ac_try;;
22614esac
22615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22616  (eval "$ac_link") 2>conftest.er1
22617  ac_status=$?
22618  grep -v '^ *+' conftest.er1 >conftest.err
22619  rm -f conftest.er1
22620  cat conftest.err >&5
22621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622  (exit $ac_status); } && {
22623	 test -z "$ac_c_werror_flag" ||
22624	 test ! -s conftest.err
22625       } && test -s conftest$ac_exeext &&
22626       $as_test_x conftest$ac_exeext; then
22627  ac_cv_search_dlopen=$ac_res
22628else
22629  echo "$as_me: failed program was:" >&5
22630sed 's/^/| /' conftest.$ac_ext >&5
22631
22632
22633fi
22634
22635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22636      conftest$ac_exeext
22637  if test "${ac_cv_search_dlopen+set}" = set; then
22638  break
22639fi
22640done
22641if test "${ac_cv_search_dlopen+set}" = set; then
22642  :
22643else
22644  ac_cv_search_dlopen=no
22645fi
22646rm conftest.$ac_ext
22647LIBS=$ac_func_search_save_LIBS
22648fi
22649{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
22650echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
22651ac_res=$ac_cv_search_dlopen
22652if test "$ac_res" != no; then
22653  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22654
22655fi
22656
22657if test "x$ac_cv_search_dlopen" = xno; then
22658	{ echo "$as_me:$LINENO: checking for library containing shl_load" >&5
22659echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
22660if test "${ac_cv_search_shl_load+set}" = set; then
22661  echo $ECHO_N "(cached) $ECHO_C" >&6
22662else
22663  ac_func_search_save_LIBS=$LIBS
22664cat >conftest.$ac_ext <<_ACEOF
22665/* confdefs.h.  */
22666_ACEOF
22667cat confdefs.h >>conftest.$ac_ext
22668cat >>conftest.$ac_ext <<_ACEOF
22669/* end confdefs.h.  */
22670
22671/* Override any GCC internal prototype to avoid an error.
22672   Use char because int might match the return type of a GCC
22673   builtin and then its argument prototype would still apply.  */
22674#ifdef __cplusplus
22675extern "C"
22676#endif
22677char shl_load ();
22678int
22679main ()
22680{
22681return shl_load ();
22682  ;
22683  return 0;
22684}
22685_ACEOF
22686for ac_lib in '' dld; do
22687  if test -z "$ac_lib"; then
22688    ac_res="none required"
22689  else
22690    ac_res=-l$ac_lib
22691    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22692  fi
22693  rm -f conftest.$ac_objext conftest$ac_exeext
22694if { (ac_try="$ac_link"
22695case "(($ac_try" in
22696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22697  *) ac_try_echo=$ac_try;;
22698esac
22699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22700  (eval "$ac_link") 2>conftest.er1
22701  ac_status=$?
22702  grep -v '^ *+' conftest.er1 >conftest.err
22703  rm -f conftest.er1
22704  cat conftest.err >&5
22705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706  (exit $ac_status); } && {
22707	 test -z "$ac_c_werror_flag" ||
22708	 test ! -s conftest.err
22709       } && test -s conftest$ac_exeext &&
22710       $as_test_x conftest$ac_exeext; then
22711  ac_cv_search_shl_load=$ac_res
22712else
22713  echo "$as_me: failed program was:" >&5
22714sed 's/^/| /' conftest.$ac_ext >&5
22715
22716
22717fi
22718
22719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22720      conftest$ac_exeext
22721  if test "${ac_cv_search_shl_load+set}" = set; then
22722  break
22723fi
22724done
22725if test "${ac_cv_search_shl_load+set}" = set; then
22726  :
22727else
22728  ac_cv_search_shl_load=no
22729fi
22730rm conftest.$ac_ext
22731LIBS=$ac_func_search_save_LIBS
22732fi
22733{ echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
22734echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
22735ac_res=$ac_cv_search_shl_load
22736if test "$ac_res" != no; then
22737  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22738
22739fi
22740
22741	if test "x$ac_cv_search_shl_load" != xno; then
22742
22743cat >>confdefs.h <<\_ACEOF
22744#define HAVE_SHL_LOAD 1
22745_ACEOF
22746
22747
22748for ac_header in dl.h
22749do
22750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22752  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22755  echo $ECHO_N "(cached) $ECHO_C" >&6
22756fi
22757ac_res=`eval echo '${'$as_ac_Header'}'`
22758	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22759echo "${ECHO_T}$ac_res" >&6; }
22760else
22761  # Is the header compilable?
22762{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22764cat >conftest.$ac_ext <<_ACEOF
22765/* confdefs.h.  */
22766_ACEOF
22767cat confdefs.h >>conftest.$ac_ext
22768cat >>conftest.$ac_ext <<_ACEOF
22769/* end confdefs.h.  */
22770$ac_includes_default
22771#include <$ac_header>
22772_ACEOF
22773rm -f conftest.$ac_objext
22774if { (ac_try="$ac_compile"
22775case "(($ac_try" in
22776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777  *) ac_try_echo=$ac_try;;
22778esac
22779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780  (eval "$ac_compile") 2>conftest.er1
22781  ac_status=$?
22782  grep -v '^ *+' conftest.er1 >conftest.err
22783  rm -f conftest.er1
22784  cat conftest.err >&5
22785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786  (exit $ac_status); } && {
22787	 test -z "$ac_c_werror_flag" ||
22788	 test ! -s conftest.err
22789       } && test -s conftest.$ac_objext; then
22790  ac_header_compiler=yes
22791else
22792  echo "$as_me: failed program was:" >&5
22793sed 's/^/| /' conftest.$ac_ext >&5
22794
22795	ac_header_compiler=no
22796fi
22797
22798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22800echo "${ECHO_T}$ac_header_compiler" >&6; }
22801
22802# Is the header present?
22803{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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#include <$ac_header>
22812_ACEOF
22813if { (ac_try="$ac_cpp conftest.$ac_ext"
22814case "(($ac_try" in
22815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816  *) ac_try_echo=$ac_try;;
22817esac
22818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22820  ac_status=$?
22821  grep -v '^ *+' conftest.er1 >conftest.err
22822  rm -f conftest.er1
22823  cat conftest.err >&5
22824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825  (exit $ac_status); } >/dev/null && {
22826	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22827	 test ! -s conftest.err
22828       }; then
22829  ac_header_preproc=yes
22830else
22831  echo "$as_me: failed program was:" >&5
22832sed 's/^/| /' conftest.$ac_ext >&5
22833
22834  ac_header_preproc=no
22835fi
22836
22837rm -f conftest.err conftest.$ac_ext
22838{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22839echo "${ECHO_T}$ac_header_preproc" >&6; }
22840
22841# So?  What about this header?
22842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22843  yes:no: )
22844    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22848    ac_header_preproc=yes
22849    ;;
22850  no:yes:* )
22851    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22853    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22854echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22855    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22857    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22858echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22861    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22863    ( cat <<\_ASBOX
22864## ---------------------------------------------------------------------- ##
22865## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22866## ---------------------------------------------------------------------- ##
22867_ASBOX
22868     ) | sed "s/^/$as_me: WARNING:     /" >&2
22869    ;;
22870esac
22871{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22874  echo $ECHO_N "(cached) $ECHO_C" >&6
22875else
22876  eval "$as_ac_Header=\$ac_header_preproc"
22877fi
22878ac_res=`eval echo '${'$as_ac_Header'}'`
22879	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22880echo "${ECHO_T}$ac_res" >&6; }
22881
22882fi
22883if test `eval echo '${'$as_ac_Header'}'` = yes; then
22884  cat >>confdefs.h <<_ACEOF
22885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22886_ACEOF
22887
22888fi
22889
22890done
22891
22892	fi
22893else
22894
22895cat >>confdefs.h <<\_ACEOF
22896#define HAVE_DLOPEN 1
22897_ACEOF
22898
22899
22900for ac_header in dlfcn.h
22901do
22902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22904  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22907  echo $ECHO_N "(cached) $ECHO_C" >&6
22908fi
22909ac_res=`eval echo '${'$as_ac_Header'}'`
22910	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22911echo "${ECHO_T}$ac_res" >&6; }
22912else
22913  # Is the header compilable?
22914{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22916cat >conftest.$ac_ext <<_ACEOF
22917/* confdefs.h.  */
22918_ACEOF
22919cat confdefs.h >>conftest.$ac_ext
22920cat >>conftest.$ac_ext <<_ACEOF
22921/* end confdefs.h.  */
22922$ac_includes_default
22923#include <$ac_header>
22924_ACEOF
22925rm -f conftest.$ac_objext
22926if { (ac_try="$ac_compile"
22927case "(($ac_try" in
22928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929  *) ac_try_echo=$ac_try;;
22930esac
22931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932  (eval "$ac_compile") 2>conftest.er1
22933  ac_status=$?
22934  grep -v '^ *+' conftest.er1 >conftest.err
22935  rm -f conftest.er1
22936  cat conftest.err >&5
22937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938  (exit $ac_status); } && {
22939	 test -z "$ac_c_werror_flag" ||
22940	 test ! -s conftest.err
22941       } && test -s conftest.$ac_objext; then
22942  ac_header_compiler=yes
22943else
22944  echo "$as_me: failed program was:" >&5
22945sed 's/^/| /' conftest.$ac_ext >&5
22946
22947	ac_header_compiler=no
22948fi
22949
22950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22952echo "${ECHO_T}$ac_header_compiler" >&6; }
22953
22954# Is the header present?
22955{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22956echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22957cat >conftest.$ac_ext <<_ACEOF
22958/* confdefs.h.  */
22959_ACEOF
22960cat confdefs.h >>conftest.$ac_ext
22961cat >>conftest.$ac_ext <<_ACEOF
22962/* end confdefs.h.  */
22963#include <$ac_header>
22964_ACEOF
22965if { (ac_try="$ac_cpp conftest.$ac_ext"
22966case "(($ac_try" in
22967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968  *) ac_try_echo=$ac_try;;
22969esac
22970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22972  ac_status=$?
22973  grep -v '^ *+' conftest.er1 >conftest.err
22974  rm -f conftest.er1
22975  cat conftest.err >&5
22976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977  (exit $ac_status); } >/dev/null && {
22978	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22979	 test ! -s conftest.err
22980       }; then
22981  ac_header_preproc=yes
22982else
22983  echo "$as_me: failed program was:" >&5
22984sed 's/^/| /' conftest.$ac_ext >&5
22985
22986  ac_header_preproc=no
22987fi
22988
22989rm -f conftest.err conftest.$ac_ext
22990{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22991echo "${ECHO_T}$ac_header_preproc" >&6; }
22992
22993# So?  What about this header?
22994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22995  yes:no: )
22996    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22998    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23000    ac_header_preproc=yes
23001    ;;
23002  no:yes:* )
23003    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23005    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23006echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23007    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23009    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23010echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23011    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23013    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23015    ( cat <<\_ASBOX
23016## ---------------------------------------------------------------------- ##
23017## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
23018## ---------------------------------------------------------------------- ##
23019_ASBOX
23020     ) | sed "s/^/$as_me: WARNING:     /" >&2
23021    ;;
23022esac
23023{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23026  echo $ECHO_N "(cached) $ECHO_C" >&6
23027else
23028  eval "$as_ac_Header=\$ac_header_preproc"
23029fi
23030ac_res=`eval echo '${'$as_ac_Header'}'`
23031	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23032echo "${ECHO_T}$ac_res" >&6; }
23033
23034fi
23035if test `eval echo '${'$as_ac_Header'}'` = yes; then
23036  cat >>confdefs.h <<_ACEOF
23037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23038_ACEOF
23039
23040fi
23041
23042done
23043
23044fi
23045if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then
23046	HAVE_LOADABLE_MODULES=yes
23047else
23048	HAVE_LOADABLE_MODULES=no
23049fi
23050{ echo "$as_me:$LINENO: result: $HAVE_LOADABLE_MODULES" >&5
23051echo "${ECHO_T}$HAVE_LOADABLE_MODULES" >&6; }
23052
23053{ echo "$as_me:$LINENO: checking if loadable i18n module support should be enabled" >&5
23054echo $ECHO_N "checking if loadable i18n module support should be enabled... $ECHO_C" >&6; }
23055# Check whether --enable-loadable-i18n was given.
23056if test "${enable_loadable_i18n+set}" = set; then
23057  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
23058else
23059  XLIB_LOADABLE_I18N="no"
23060fi
23061
23062if test x$XLIB_LOADABLE_I18N = xyes; then
23063	if test x$HAVE_LOADABLE_MODULES = xno; then
23064		{ { echo "$as_me:$LINENO: error: Loadable module support is required to enable loadable i18n module support" >&5
23065echo "$as_me: error: Loadable module support is required to enable loadable i18n module support" >&2;}
23066   { (exit 1); exit 1; }; }
23067	fi
23068
23069cat >>confdefs.h <<\_ACEOF
23070#define USE_DYNAMIC_LC 1
23071_ACEOF
23072
23073	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
23074
23075fi
23076{ echo "$as_me:$LINENO: result: $XLIB_LOADABLE_I18N" >&5
23077echo "${ECHO_T}$XLIB_LOADABLE_I18N" >&6; }
23078
23079 if test x$XLIB_LOADABLE_I18N = xyes; then
23080  XLIB_LOADABLE_I18N_TRUE=
23081  XLIB_LOADABLE_I18N_FALSE='#'
23082else
23083  XLIB_LOADABLE_I18N_TRUE='#'
23084  XLIB_LOADABLE_I18N_FALSE=
23085fi
23086
23087
23088{ echo "$as_me:$LINENO: checking if loadable Xcursor library support should be enabled" >&5
23089echo $ECHO_N "checking if loadable Xcursor library support should be enabled... $ECHO_C" >&6; }
23090# Check whether --enable-loadable-xcursor was given.
23091if test "${enable_loadable_xcursor+set}" = set; then
23092  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
23093else
23094  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
23095fi
23096
23097if test x$XLIB_LOADABLE_XCURSOR = xyes; then
23098
23099cat >>confdefs.h <<\_ACEOF
23100#define USE_DYNAMIC_XCURSOR 1
23101_ACEOF
23102
23103fi
23104{ echo "$as_me:$LINENO: result: $XLIB_LOADABLE_XCURSOR" >&5
23105echo "${ECHO_T}$XLIB_LOADABLE_XCURSOR" >&6; }
23106
23107# Checks for header files.
23108{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23109echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23110if test "${ac_cv_header_stdc+set}" = set; then
23111  echo $ECHO_N "(cached) $ECHO_C" >&6
23112else
23113  cat >conftest.$ac_ext <<_ACEOF
23114/* confdefs.h.  */
23115_ACEOF
23116cat confdefs.h >>conftest.$ac_ext
23117cat >>conftest.$ac_ext <<_ACEOF
23118/* end confdefs.h.  */
23119#include <stdlib.h>
23120#include <stdarg.h>
23121#include <string.h>
23122#include <float.h>
23123
23124int
23125main ()
23126{
23127
23128  ;
23129  return 0;
23130}
23131_ACEOF
23132rm -f conftest.$ac_objext
23133if { (ac_try="$ac_compile"
23134case "(($ac_try" in
23135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136  *) ac_try_echo=$ac_try;;
23137esac
23138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139  (eval "$ac_compile") 2>conftest.er1
23140  ac_status=$?
23141  grep -v '^ *+' conftest.er1 >conftest.err
23142  rm -f conftest.er1
23143  cat conftest.err >&5
23144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145  (exit $ac_status); } && {
23146	 test -z "$ac_c_werror_flag" ||
23147	 test ! -s conftest.err
23148       } && test -s conftest.$ac_objext; then
23149  ac_cv_header_stdc=yes
23150else
23151  echo "$as_me: failed program was:" >&5
23152sed 's/^/| /' conftest.$ac_ext >&5
23153
23154	ac_cv_header_stdc=no
23155fi
23156
23157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23158
23159if test $ac_cv_header_stdc = yes; then
23160  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23161  cat >conftest.$ac_ext <<_ACEOF
23162/* confdefs.h.  */
23163_ACEOF
23164cat confdefs.h >>conftest.$ac_ext
23165cat >>conftest.$ac_ext <<_ACEOF
23166/* end confdefs.h.  */
23167#include <string.h>
23168
23169_ACEOF
23170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23171  $EGREP "memchr" >/dev/null 2>&1; then
23172  :
23173else
23174  ac_cv_header_stdc=no
23175fi
23176rm -f conftest*
23177
23178fi
23179
23180if test $ac_cv_header_stdc = yes; then
23181  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23182  cat >conftest.$ac_ext <<_ACEOF
23183/* confdefs.h.  */
23184_ACEOF
23185cat confdefs.h >>conftest.$ac_ext
23186cat >>conftest.$ac_ext <<_ACEOF
23187/* end confdefs.h.  */
23188#include <stdlib.h>
23189
23190_ACEOF
23191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23192  $EGREP "free" >/dev/null 2>&1; then
23193  :
23194else
23195  ac_cv_header_stdc=no
23196fi
23197rm -f conftest*
23198
23199fi
23200
23201if test $ac_cv_header_stdc = yes; then
23202  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23203  if test "$cross_compiling" = yes; then
23204  :
23205else
23206  cat >conftest.$ac_ext <<_ACEOF
23207/* confdefs.h.  */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h.  */
23212#include <ctype.h>
23213#include <stdlib.h>
23214#if ((' ' & 0x0FF) == 0x020)
23215# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23216# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23217#else
23218# define ISLOWER(c) \
23219		   (('a' <= (c) && (c) <= 'i') \
23220		     || ('j' <= (c) && (c) <= 'r') \
23221		     || ('s' <= (c) && (c) <= 'z'))
23222# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23223#endif
23224
23225#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23226int
23227main ()
23228{
23229  int i;
23230  for (i = 0; i < 256; i++)
23231    if (XOR (islower (i), ISLOWER (i))
23232	|| toupper (i) != TOUPPER (i))
23233      return 2;
23234  return 0;
23235}
23236_ACEOF
23237rm -f conftest$ac_exeext
23238if { (ac_try="$ac_link"
23239case "(($ac_try" in
23240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241  *) ac_try_echo=$ac_try;;
23242esac
23243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23244  (eval "$ac_link") 2>&5
23245  ac_status=$?
23246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23248  { (case "(($ac_try" in
23249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23250  *) ac_try_echo=$ac_try;;
23251esac
23252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23253  (eval "$ac_try") 2>&5
23254  ac_status=$?
23255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256  (exit $ac_status); }; }; then
23257  :
23258else
23259  echo "$as_me: program exited with status $ac_status" >&5
23260echo "$as_me: failed program was:" >&5
23261sed 's/^/| /' conftest.$ac_ext >&5
23262
23263( exit $ac_status )
23264ac_cv_header_stdc=no
23265fi
23266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23267fi
23268
23269
23270fi
23271fi
23272{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23273echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23274if test $ac_cv_header_stdc = yes; then
23275
23276cat >>confdefs.h <<\_ACEOF
23277#define STDC_HEADERS 1
23278_ACEOF
23279
23280fi
23281
23282
23283# Checks for typedefs, structures, and compiler characteristics.
23284
23285# Checks for library functions.
23286
23287for ac_func in strtol
23288do
23289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23290{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23292if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23293  echo $ECHO_N "(cached) $ECHO_C" >&6
23294else
23295  cat >conftest.$ac_ext <<_ACEOF
23296/* confdefs.h.  */
23297_ACEOF
23298cat confdefs.h >>conftest.$ac_ext
23299cat >>conftest.$ac_ext <<_ACEOF
23300/* end confdefs.h.  */
23301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23302   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23303#define $ac_func innocuous_$ac_func
23304
23305/* System header to define __stub macros and hopefully few prototypes,
23306    which can conflict with char $ac_func (); below.
23307    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23308    <limits.h> exists even on freestanding compilers.  */
23309
23310#ifdef __STDC__
23311# include <limits.h>
23312#else
23313# include <assert.h>
23314#endif
23315
23316#undef $ac_func
23317
23318/* Override any GCC internal prototype to avoid an error.
23319   Use char because int might match the return type of a GCC
23320   builtin and then its argument prototype would still apply.  */
23321#ifdef __cplusplus
23322extern "C"
23323#endif
23324char $ac_func ();
23325/* The GNU C library defines this for functions which it implements
23326    to always fail with ENOSYS.  Some functions are actually named
23327    something starting with __ and the normal name is an alias.  */
23328#if defined __stub_$ac_func || defined __stub___$ac_func
23329choke me
23330#endif
23331
23332int
23333main ()
23334{
23335return $ac_func ();
23336  ;
23337  return 0;
23338}
23339_ACEOF
23340rm -f conftest.$ac_objext conftest$ac_exeext
23341if { (ac_try="$ac_link"
23342case "(($ac_try" in
23343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344  *) ac_try_echo=$ac_try;;
23345esac
23346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347  (eval "$ac_link") 2>conftest.er1
23348  ac_status=$?
23349  grep -v '^ *+' conftest.er1 >conftest.err
23350  rm -f conftest.er1
23351  cat conftest.err >&5
23352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353  (exit $ac_status); } && {
23354	 test -z "$ac_c_werror_flag" ||
23355	 test ! -s conftest.err
23356       } && test -s conftest$ac_exeext &&
23357       $as_test_x conftest$ac_exeext; then
23358  eval "$as_ac_var=yes"
23359else
23360  echo "$as_me: failed program was:" >&5
23361sed 's/^/| /' conftest.$ac_ext >&5
23362
23363	eval "$as_ac_var=no"
23364fi
23365
23366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23367      conftest$ac_exeext conftest.$ac_ext
23368fi
23369ac_res=`eval echo '${'$as_ac_var'}'`
23370	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23371echo "${ECHO_T}$ac_res" >&6; }
23372if test `eval echo '${'$as_ac_var'}'` = yes; then
23373  cat >>confdefs.h <<_ACEOF
23374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23375_ACEOF
23376
23377fi
23378done
23379
23380# Used in lcFile.c (see also --enable-xlocaledir settings below)
23381XLOCALEDIR_IS_SAFE="no"
23382{ echo "$as_me:$LINENO: checking for issetugid" >&5
23383echo $ECHO_N "checking for issetugid... $ECHO_C" >&6; }
23384if test "${ac_cv_func_issetugid+set}" = set; then
23385  echo $ECHO_N "(cached) $ECHO_C" >&6
23386else
23387  cat >conftest.$ac_ext <<_ACEOF
23388/* confdefs.h.  */
23389_ACEOF
23390cat confdefs.h >>conftest.$ac_ext
23391cat >>conftest.$ac_ext <<_ACEOF
23392/* end confdefs.h.  */
23393/* Define issetugid to an innocuous variant, in case <limits.h> declares issetugid.
23394   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23395#define issetugid innocuous_issetugid
23396
23397/* System header to define __stub macros and hopefully few prototypes,
23398    which can conflict with char issetugid (); below.
23399    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23400    <limits.h> exists even on freestanding compilers.  */
23401
23402#ifdef __STDC__
23403# include <limits.h>
23404#else
23405# include <assert.h>
23406#endif
23407
23408#undef issetugid
23409
23410/* Override any GCC internal prototype to avoid an error.
23411   Use char because int might match the return type of a GCC
23412   builtin and then its argument prototype would still apply.  */
23413#ifdef __cplusplus
23414extern "C"
23415#endif
23416char issetugid ();
23417/* The GNU C library defines this for functions which it implements
23418    to always fail with ENOSYS.  Some functions are actually named
23419    something starting with __ and the normal name is an alias.  */
23420#if defined __stub_issetugid || defined __stub___issetugid
23421choke me
23422#endif
23423
23424int
23425main ()
23426{
23427return issetugid ();
23428  ;
23429  return 0;
23430}
23431_ACEOF
23432rm -f conftest.$ac_objext conftest$ac_exeext
23433if { (ac_try="$ac_link"
23434case "(($ac_try" in
23435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436  *) ac_try_echo=$ac_try;;
23437esac
23438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439  (eval "$ac_link") 2>conftest.er1
23440  ac_status=$?
23441  grep -v '^ *+' conftest.er1 >conftest.err
23442  rm -f conftest.er1
23443  cat conftest.err >&5
23444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445  (exit $ac_status); } && {
23446	 test -z "$ac_c_werror_flag" ||
23447	 test ! -s conftest.err
23448       } && test -s conftest$ac_exeext &&
23449       $as_test_x conftest$ac_exeext; then
23450  ac_cv_func_issetugid=yes
23451else
23452  echo "$as_me: failed program was:" >&5
23453sed 's/^/| /' conftest.$ac_ext >&5
23454
23455	ac_cv_func_issetugid=no
23456fi
23457
23458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23459      conftest$ac_exeext conftest.$ac_ext
23460fi
23461{ echo "$as_me:$LINENO: result: $ac_cv_func_issetugid" >&5
23462echo "${ECHO_T}$ac_cv_func_issetugid" >&6; }
23463if test $ac_cv_func_issetugid = yes; then
23464  XLOCALEDIR_IS_SAFE="yes"
23465
23466cat >>confdefs.h <<\_ACEOF
23467#define HASSETUGID 1
23468_ACEOF
23469
23470fi
23471
23472{ echo "$as_me:$LINENO: checking for getresuid" >&5
23473echo $ECHO_N "checking for getresuid... $ECHO_C" >&6; }
23474if test "${ac_cv_func_getresuid+set}" = set; then
23475  echo $ECHO_N "(cached) $ECHO_C" >&6
23476else
23477  cat >conftest.$ac_ext <<_ACEOF
23478/* confdefs.h.  */
23479_ACEOF
23480cat confdefs.h >>conftest.$ac_ext
23481cat >>conftest.$ac_ext <<_ACEOF
23482/* end confdefs.h.  */
23483/* Define getresuid to an innocuous variant, in case <limits.h> declares getresuid.
23484   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23485#define getresuid innocuous_getresuid
23486
23487/* System header to define __stub macros and hopefully few prototypes,
23488    which can conflict with char getresuid (); below.
23489    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23490    <limits.h> exists even on freestanding compilers.  */
23491
23492#ifdef __STDC__
23493# include <limits.h>
23494#else
23495# include <assert.h>
23496#endif
23497
23498#undef getresuid
23499
23500/* Override any GCC internal prototype to avoid an error.
23501   Use char because int might match the return type of a GCC
23502   builtin and then its argument prototype would still apply.  */
23503#ifdef __cplusplus
23504extern "C"
23505#endif
23506char getresuid ();
23507/* The GNU C library defines this for functions which it implements
23508    to always fail with ENOSYS.  Some functions are actually named
23509    something starting with __ and the normal name is an alias.  */
23510#if defined __stub_getresuid || defined __stub___getresuid
23511choke me
23512#endif
23513
23514int
23515main ()
23516{
23517return getresuid ();
23518  ;
23519  return 0;
23520}
23521_ACEOF
23522rm -f conftest.$ac_objext conftest$ac_exeext
23523if { (ac_try="$ac_link"
23524case "(($ac_try" in
23525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526  *) ac_try_echo=$ac_try;;
23527esac
23528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529  (eval "$ac_link") 2>conftest.er1
23530  ac_status=$?
23531  grep -v '^ *+' conftest.er1 >conftest.err
23532  rm -f conftest.er1
23533  cat conftest.err >&5
23534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535  (exit $ac_status); } && {
23536	 test -z "$ac_c_werror_flag" ||
23537	 test ! -s conftest.err
23538       } && test -s conftest$ac_exeext &&
23539       $as_test_x conftest$ac_exeext; then
23540  ac_cv_func_getresuid=yes
23541else
23542  echo "$as_me: failed program was:" >&5
23543sed 's/^/| /' conftest.$ac_ext >&5
23544
23545	ac_cv_func_getresuid=no
23546fi
23547
23548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23549      conftest$ac_exeext conftest.$ac_ext
23550fi
23551{ echo "$as_me:$LINENO: result: $ac_cv_func_getresuid" >&5
23552echo "${ECHO_T}$ac_cv_func_getresuid" >&6; }
23553if test $ac_cv_func_getresuid = yes; then
23554  XLOCALEDIR_IS_SAFE="yes"
23555
23556cat >>confdefs.h <<\_ACEOF
23557#define HASGETRESUID 1
23558_ACEOF
23559
23560fi
23561
23562# Used in Font.c
23563{ echo "$as_me:$LINENO: checking for shmat" >&5
23564echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23565if test "${ac_cv_func_shmat+set}" = set; then
23566  echo $ECHO_N "(cached) $ECHO_C" >&6
23567else
23568  cat >conftest.$ac_ext <<_ACEOF
23569/* confdefs.h.  */
23570_ACEOF
23571cat confdefs.h >>conftest.$ac_ext
23572cat >>conftest.$ac_ext <<_ACEOF
23573/* end confdefs.h.  */
23574/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23575   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23576#define shmat innocuous_shmat
23577
23578/* System header to define __stub macros and hopefully few prototypes,
23579    which can conflict with char shmat (); below.
23580    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23581    <limits.h> exists even on freestanding compilers.  */
23582
23583#ifdef __STDC__
23584# include <limits.h>
23585#else
23586# include <assert.h>
23587#endif
23588
23589#undef shmat
23590
23591/* Override any GCC internal prototype to avoid an error.
23592   Use char because int might match the return type of a GCC
23593   builtin and then its argument prototype would still apply.  */
23594#ifdef __cplusplus
23595extern "C"
23596#endif
23597char shmat ();
23598/* The GNU C library defines this for functions which it implements
23599    to always fail with ENOSYS.  Some functions are actually named
23600    something starting with __ and the normal name is an alias.  */
23601#if defined __stub_shmat || defined __stub___shmat
23602choke me
23603#endif
23604
23605int
23606main ()
23607{
23608return shmat ();
23609  ;
23610  return 0;
23611}
23612_ACEOF
23613rm -f conftest.$ac_objext conftest$ac_exeext
23614if { (ac_try="$ac_link"
23615case "(($ac_try" in
23616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617  *) ac_try_echo=$ac_try;;
23618esac
23619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620  (eval "$ac_link") 2>conftest.er1
23621  ac_status=$?
23622  grep -v '^ *+' conftest.er1 >conftest.err
23623  rm -f conftest.er1
23624  cat conftest.err >&5
23625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626  (exit $ac_status); } && {
23627	 test -z "$ac_c_werror_flag" ||
23628	 test ! -s conftest.err
23629       } && test -s conftest$ac_exeext &&
23630       $as_test_x conftest$ac_exeext; then
23631  ac_cv_func_shmat=yes
23632else
23633  echo "$as_me: failed program was:" >&5
23634sed 's/^/| /' conftest.$ac_ext >&5
23635
23636	ac_cv_func_shmat=no
23637fi
23638
23639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23640      conftest$ac_exeext conftest.$ac_ext
23641fi
23642{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23643echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
23644if test $ac_cv_func_shmat = yes; then
23645
23646cat >>confdefs.h <<\_ACEOF
23647#define HAS_SHM 1
23648_ACEOF
23649
23650fi
23651
23652
23653# Checks for system services
23654
23655# arch specific things
23656WCHAR32="1"
23657case $target_alias in
23658  *os2*) os2="true" ; WCHAR32="0" ;;
23659  *) ;;
23660esac
23661
23662
23663 if test x$os2 = xtrue; then
23664  OS2_TRUE=
23665  OS2_FALSE='#'
23666else
23667  OS2_TRUE='#'
23668  OS2_FALSE=
23669fi
23670
23671
23672
23673# Check whether --with-launchd was given.
23674if test "${with_launchd+set}" = set; then
23675  withval=$with_launchd; LAUNCHD=$withval
23676else
23677  LAUNCHD=auto
23678fi
23679
23680if test "x$LAUNCHD" = xauto; then
23681	unset LAUNCHD
23682	# Extract the first word of "launchd", so it can be a program name with args.
23683set dummy launchd; ac_word=$2
23684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23686if test "${ac_cv_prog_LAUNCHD+set}" = set; then
23687  echo $ECHO_N "(cached) $ECHO_C" >&6
23688else
23689  if test -n "$LAUNCHD"; then
23690  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
23691else
23692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23693for as_dir in $PATH
23694do
23695  IFS=$as_save_IFS
23696  test -z "$as_dir" && as_dir=.
23697  for ac_exec_ext in '' $ac_executable_extensions; do
23698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23699    ac_cv_prog_LAUNCHD="yes"
23700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23701    break 2
23702  fi
23703done
23704done
23705IFS=$as_save_IFS
23706
23707  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
23708fi
23709fi
23710LAUNCHD=$ac_cv_prog_LAUNCHD
23711if test -n "$LAUNCHD"; then
23712  { echo "$as_me:$LINENO: result: $LAUNCHD" >&5
23713echo "${ECHO_T}$LAUNCHD" >&6; }
23714else
23715  { echo "$as_me:$LINENO: result: no" >&5
23716echo "${ECHO_T}no" >&6; }
23717fi
23718
23719
23720fi
23721
23722if test "x$LAUNCHD" = xyes ; then
23723
23724cat >>confdefs.h <<\_ACEOF
23725#define HAVE_LAUNCHD 1
23726_ACEOF
23727
23728
23729cat >>confdefs.h <<\_ACEOF
23730#define TRANS_REOPEN 1
23731_ACEOF
23732
23733fi
23734
23735# Check whether --enable-xthreads was given.
23736if test "${enable_xthreads+set}" = set; then
23737  enableval=$enable_xthreads; xthreads=$enableval
23738else
23739  xthreads=yes
23740fi
23741
23742
23743{ echo "$as_me:$LINENO: checking for getpwuid_r in -lc" >&5
23744echo $ECHO_N "checking for getpwuid_r in -lc... $ECHO_C" >&6; }
23745if test "${ac_cv_lib_c_getpwuid_r+set}" = set; then
23746  echo $ECHO_N "(cached) $ECHO_C" >&6
23747else
23748  ac_check_lib_save_LIBS=$LIBS
23749LIBS="-lc  $LIBS"
23750cat >conftest.$ac_ext <<_ACEOF
23751/* confdefs.h.  */
23752_ACEOF
23753cat confdefs.h >>conftest.$ac_ext
23754cat >>conftest.$ac_ext <<_ACEOF
23755/* end confdefs.h.  */
23756
23757/* Override any GCC internal prototype to avoid an error.
23758   Use char because int might match the return type of a GCC
23759   builtin and then its argument prototype would still apply.  */
23760#ifdef __cplusplus
23761extern "C"
23762#endif
23763char getpwuid_r ();
23764int
23765main ()
23766{
23767return getpwuid_r ();
23768  ;
23769  return 0;
23770}
23771_ACEOF
23772rm -f conftest.$ac_objext conftest$ac_exeext
23773if { (ac_try="$ac_link"
23774case "(($ac_try" in
23775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776  *) ac_try_echo=$ac_try;;
23777esac
23778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23779  (eval "$ac_link") 2>conftest.er1
23780  ac_status=$?
23781  grep -v '^ *+' conftest.er1 >conftest.err
23782  rm -f conftest.er1
23783  cat conftest.err >&5
23784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785  (exit $ac_status); } && {
23786	 test -z "$ac_c_werror_flag" ||
23787	 test ! -s conftest.err
23788       } && test -s conftest$ac_exeext &&
23789       $as_test_x conftest$ac_exeext; then
23790  ac_cv_lib_c_getpwuid_r=yes
23791else
23792  echo "$as_me: failed program was:" >&5
23793sed 's/^/| /' conftest.$ac_ext >&5
23794
23795	ac_cv_lib_c_getpwuid_r=no
23796fi
23797
23798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23799      conftest$ac_exeext conftest.$ac_ext
23800LIBS=$ac_check_lib_save_LIBS
23801fi
23802{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpwuid_r" >&5
23803echo "${ECHO_T}$ac_cv_lib_c_getpwuid_r" >&6; }
23804if test $ac_cv_lib_c_getpwuid_r = yes; then
23805  mtsafeapi="yes"
23806else
23807  mtsafeapi="no"
23808fi
23809
23810
23811case x$xthreads in
23812xyes)
23813
23814cat >>confdefs.h <<\_ACEOF
23815#define XTHREADS 1
23816_ACEOF
23817
23818	if test x$mtsafeapi = xyes
23819	then
23820
23821cat >>confdefs.h <<\_ACEOF
23822#define XUSE_MTSAFE_API 1
23823_ACEOF
23824
23825	fi
23826	;;
23827*)
23828	;;
23829esac
23830
23831{ echo "$as_me:$LINENO: checking for pthread_self in -lc" >&5
23832echo $ECHO_N "checking for pthread_self in -lc... $ECHO_C" >&6; }
23833if test "${ac_cv_lib_c_pthread_self+set}" = set; then
23834  echo $ECHO_N "(cached) $ECHO_C" >&6
23835else
23836  ac_check_lib_save_LIBS=$LIBS
23837LIBS="-lc  $LIBS"
23838cat >conftest.$ac_ext <<_ACEOF
23839/* confdefs.h.  */
23840_ACEOF
23841cat confdefs.h >>conftest.$ac_ext
23842cat >>conftest.$ac_ext <<_ACEOF
23843/* end confdefs.h.  */
23844
23845/* Override any GCC internal prototype to avoid an error.
23846   Use char because int might match the return type of a GCC
23847   builtin and then its argument prototype would still apply.  */
23848#ifdef __cplusplus
23849extern "C"
23850#endif
23851char pthread_self ();
23852int
23853main ()
23854{
23855return pthread_self ();
23856  ;
23857  return 0;
23858}
23859_ACEOF
23860rm -f conftest.$ac_objext conftest$ac_exeext
23861if { (ac_try="$ac_link"
23862case "(($ac_try" in
23863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864  *) ac_try_echo=$ac_try;;
23865esac
23866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867  (eval "$ac_link") 2>conftest.er1
23868  ac_status=$?
23869  grep -v '^ *+' conftest.er1 >conftest.err
23870  rm -f conftest.er1
23871  cat conftest.err >&5
23872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873  (exit $ac_status); } && {
23874	 test -z "$ac_c_werror_flag" ||
23875	 test ! -s conftest.err
23876       } && test -s conftest$ac_exeext &&
23877       $as_test_x conftest$ac_exeext; then
23878  ac_cv_lib_c_pthread_self=yes
23879else
23880  echo "$as_me: failed program was:" >&5
23881sed 's/^/| /' conftest.$ac_ext >&5
23882
23883	ac_cv_lib_c_pthread_self=no
23884fi
23885
23886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23887      conftest$ac_exeext conftest.$ac_ext
23888LIBS=$ac_check_lib_save_LIBS
23889fi
23890{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_self" >&5
23891echo "${ECHO_T}$ac_cv_lib_c_pthread_self" >&6; }
23892if test $ac_cv_lib_c_pthread_self = yes; then
23893  thrstubs="no"
23894else
23895  thrstubs="yes"
23896fi
23897
23898 if test x$thrstubs = xyes; then
23899  THRSTUBS_TRUE=
23900  THRSTUBS_FALSE='#'
23901else
23902  THRSTUBS_TRUE='#'
23903  THRSTUBS_FALSE=
23904fi
23905
23906
23907if test x$xthreads = xyes ; then
23908    case $host_os in
23909    linux*|openbsd*|gnu*|k*bsd*-gnu)
23910        XTHREADLIB=-lpthread ;;
23911    netbsd*)
23912	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
23913	XTHREADLIB="-lpthread" ;;
23914    freebsd*)
23915        XTHREAD_CFLAGS="-D_THREAD_SAFE"
23916        XTHREADLIB="-pthread" ;;
23917    dragonfly*)
23918        XTHREADLIB="-pthread" ;;
23919    solaris*)
23920	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
23921    esac
23922fi
23923
23924
23925X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
23926
23927case x$xdmauth in
23928xyes)
23929	XDMCP_CFLAGS="$XDMCP_CFLAGS -DHASXDMAUTH"
23930	;;
23931xno)
23932	XDMCP_LIBS=""
23933	;;
23934esac
23935
23936
23937
23938{ echo "$as_me:$LINENO: checking for poll" >&5
23939echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
23940if test "${ac_cv_func_poll+set}" = set; then
23941  echo $ECHO_N "(cached) $ECHO_C" >&6
23942else
23943  cat >conftest.$ac_ext <<_ACEOF
23944/* confdefs.h.  */
23945_ACEOF
23946cat confdefs.h >>conftest.$ac_ext
23947cat >>conftest.$ac_ext <<_ACEOF
23948/* end confdefs.h.  */
23949/* Define poll to an innocuous variant, in case <limits.h> declares poll.
23950   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23951#define poll innocuous_poll
23952
23953/* System header to define __stub macros and hopefully few prototypes,
23954    which can conflict with char poll (); below.
23955    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23956    <limits.h> exists even on freestanding compilers.  */
23957
23958#ifdef __STDC__
23959# include <limits.h>
23960#else
23961# include <assert.h>
23962#endif
23963
23964#undef poll
23965
23966/* Override any GCC internal prototype to avoid an error.
23967   Use char because int might match the return type of a GCC
23968   builtin and then its argument prototype would still apply.  */
23969#ifdef __cplusplus
23970extern "C"
23971#endif
23972char poll ();
23973/* The GNU C library defines this for functions which it implements
23974    to always fail with ENOSYS.  Some functions are actually named
23975    something starting with __ and the normal name is an alias.  */
23976#if defined __stub_poll || defined __stub___poll
23977choke me
23978#endif
23979
23980int
23981main ()
23982{
23983return poll ();
23984  ;
23985  return 0;
23986}
23987_ACEOF
23988rm -f conftest.$ac_objext conftest$ac_exeext
23989if { (ac_try="$ac_link"
23990case "(($ac_try" in
23991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992  *) ac_try_echo=$ac_try;;
23993esac
23994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995  (eval "$ac_link") 2>conftest.er1
23996  ac_status=$?
23997  grep -v '^ *+' conftest.er1 >conftest.err
23998  rm -f conftest.er1
23999  cat conftest.err >&5
24000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001  (exit $ac_status); } && {
24002	 test -z "$ac_c_werror_flag" ||
24003	 test ! -s conftest.err
24004       } && test -s conftest$ac_exeext &&
24005       $as_test_x conftest$ac_exeext; then
24006  ac_cv_func_poll=yes
24007else
24008  echo "$as_me: failed program was:" >&5
24009sed 's/^/| /' conftest.$ac_ext >&5
24010
24011	ac_cv_func_poll=no
24012fi
24013
24014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24015      conftest$ac_exeext conftest.$ac_ext
24016fi
24017{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
24018echo "${ECHO_T}$ac_cv_func_poll" >&6; }
24019if test $ac_cv_func_poll = yes; then
24020
24021cat >>confdefs.h <<\_ACEOF
24022#define USE_POLL 1
24023_ACEOF
24024
24025fi
24026
24027
24028#
24029# Find keysymdef.h
24030#
24031{ echo "$as_me:$LINENO: checking keysymdef.h" >&5
24032echo $ECHO_N "checking keysymdef.h... $ECHO_C" >&6; }
24033dir=`pkg-config --variable=includedir xproto`
24034KEYSYMDEF="$dir/X11/keysymdef.h"
24035if test -f "$KEYSYMDEF"; then
24036        { echo "$as_me:$LINENO: result: $KEYSYMDEF" >&5
24037echo "${ECHO_T}$KEYSYMDEF" >&6; }
24038else
24039	{ { echo "$as_me:$LINENO: error: Cannot find keysymdef.h" >&5
24040echo "$as_me: error: Cannot find keysymdef.h" >&2;}
24041   { (exit 1); exit 1; }; }
24042fi
24043
24044
24045 if test xfalse = xtrue; then
24046  UDC_TRUE=
24047  UDC_FALSE='#'
24048else
24049  UDC_TRUE='#'
24050  UDC_FALSE=
24051fi
24052
24053
24054# Check whether --enable-xcms was given.
24055if test "${enable_xcms+set}" = set; then
24056  enableval=$enable_xcms; XCMS=$enableval
24057else
24058  XCMS=yes
24059fi
24060
24061 if test x$XCMS = xyes ; then
24062  XCMS_TRUE=
24063  XCMS_FALSE='#'
24064else
24065  XCMS_TRUE='#'
24066  XCMS_FALSE=
24067fi
24068
24069if test x"$XCMS" = "xyes"; then
24070
24071cat >>confdefs.h <<\_ACEOF
24072#define XCMS 1
24073_ACEOF
24074
24075fi
24076
24077# Check whether --enable-xlocale was given.
24078if test "${enable_xlocale+set}" = set; then
24079  enableval=$enable_xlocale; XLOCALE=$enableval
24080else
24081  XLOCALE=yes
24082fi
24083
24084
24085 if  test x$XLOCALE = xyes ; then
24086  XLOCALE_TRUE=
24087  XLOCALE_FALSE='#'
24088else
24089  XLOCALE_TRUE='#'
24090  XLOCALE_FALSE=
24091fi
24092
24093if test x"$XLOCALE" = "xyes"; then
24094
24095cat >>confdefs.h <<\_ACEOF
24096#define XLOCALE 1
24097_ACEOF
24098
24099fi
24100
24101# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
24102# don't have either issetugid() or getresuid(), and you need to protect
24103# clients that are setgid or setuid to an id other than 0.
24104{ echo "$as_me:$LINENO: checking if XLOCALEDIR support should be enabled" >&5
24105echo $ECHO_N "checking if XLOCALEDIR support should be enabled... $ECHO_C" >&6; }
24106# Check whether --enable-xlocaledir was given.
24107if test "${enable_xlocaledir+set}" = set; then
24108  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
24109else
24110  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
24111fi
24112
24113if test "x$ENABLE_XLOCALEDIR" = "xno"; then
24114
24115cat >>confdefs.h <<\_ACEOF
24116#define NO_XLOCALEDIR 1
24117_ACEOF
24118
24119fi
24120{ echo "$as_me:$LINENO: result: $ENABLE_XLOCALEDIR" >&5
24121echo "${ECHO_T}$ENABLE_XLOCALEDIR" >&6; }
24122
24123# Check whether --enable-xf86bigfont was given.
24124if test "${enable_xf86bigfont+set}" = set; then
24125  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
24126else
24127  XF86BIGFONT="yes"
24128fi
24129
24130if test "x$XF86BIGFONT" = "xyes"; then
24131
24132pkg_failed=no
24133{ echo "$as_me:$LINENO: checking for BIGFONT" >&5
24134echo $ECHO_N "checking for BIGFONT... $ECHO_C" >&6; }
24135
24136if test -n "$PKG_CONFIG"; then
24137    if test -n "$BIGFONT_CFLAGS"; then
24138        pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
24139    else
24140        if test -n "$PKG_CONFIG" && \
24141    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\"") >&5
24142  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5
24143  ac_status=$?
24144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145  (exit $ac_status); }; then
24146  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto" 2>/dev/null`
24147else
24148  pkg_failed=yes
24149fi
24150    fi
24151else
24152	pkg_failed=untried
24153fi
24154if test -n "$PKG_CONFIG"; then
24155    if test -n "$BIGFONT_LIBS"; then
24156        pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
24157    else
24158        if test -n "$PKG_CONFIG" && \
24159    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\"") >&5
24160  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5
24161  ac_status=$?
24162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163  (exit $ac_status); }; then
24164  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto" 2>/dev/null`
24165else
24166  pkg_failed=yes
24167fi
24168    fi
24169else
24170	pkg_failed=untried
24171fi
24172
24173
24174
24175if test $pkg_failed = yes; then
24176
24177if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24178        _pkg_short_errors_supported=yes
24179else
24180        _pkg_short_errors_supported=no
24181fi
24182        if test $_pkg_short_errors_supported = yes; then
24183	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86bigfontproto"`
24184        else
24185	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86bigfontproto"`
24186        fi
24187	# Put the nasty error message in config.log where it belongs
24188	echo "$BIGFONT_PKG_ERRORS" >&5
24189
24190	{ echo "$as_me:$LINENO: result: no" >&5
24191echo "${ECHO_T}no" >&6; }
24192                XF86BIGFONT="no"
24193elif test $pkg_failed = untried; then
24194	XF86BIGFONT="no"
24195else
24196	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
24197	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
24198        { echo "$as_me:$LINENO: result: yes" >&5
24199echo "${ECHO_T}yes" >&6; }
24200
24201cat >>confdefs.h <<\_ACEOF
24202#define XF86BIGFONT 1
24203_ACEOF
24204
24205fi
24206
24207
24208fi
24209
24210# Check whether --enable-xkb was given.
24211if test "${enable_xkb+set}" = set; then
24212  enableval=$enable_xkb; XKB=$enableval
24213else
24214  XKB=yes
24215fi
24216
24217
24218
24219
24220
24221if test x$APP_MAN_SUFFIX = x    ; then
24222    APP_MAN_SUFFIX=1
24223fi
24224if test x$APP_MAN_DIR = x    ; then
24225    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
24226fi
24227
24228if test x$LIB_MAN_SUFFIX = x    ; then
24229    LIB_MAN_SUFFIX=3
24230fi
24231if test x$LIB_MAN_DIR = x    ; then
24232    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
24233fi
24234
24235if test x$FILE_MAN_SUFFIX = x    ; then
24236    case $host_os in
24237	solaris*)	FILE_MAN_SUFFIX=4  ;;
24238	*)		FILE_MAN_SUFFIX=5  ;;
24239    esac
24240fi
24241if test x$FILE_MAN_DIR = x    ; then
24242    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
24243fi
24244
24245if test x$MISC_MAN_SUFFIX = x    ; then
24246    case $host_os in
24247	solaris*)	MISC_MAN_SUFFIX=5  ;;
24248	*)		MISC_MAN_SUFFIX=7  ;;
24249    esac
24250fi
24251if test x$MISC_MAN_DIR = x    ; then
24252    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
24253fi
24254
24255if test x$DRIVER_MAN_SUFFIX = x    ; then
24256    case $host_os in
24257	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
24258	*)		DRIVER_MAN_SUFFIX=4  ;;
24259    esac
24260fi
24261if test x$DRIVER_MAN_DIR = x    ; then
24262    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
24263fi
24264
24265if test x$ADMIN_MAN_SUFFIX = x    ; then
24266    case $host_os in
24267	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
24268	*)		ADMIN_MAN_SUFFIX=8  ;;
24269    esac
24270fi
24271if test x$ADMIN_MAN_DIR = x    ; then
24272    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
24273fi
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290# Check whether --enable-man-pages was given.
24291if test "${enable_man_pages+set}" = set; then
24292  enableval=$enable_man_pages; LIBMAN=$enableval
24293else
24294  LIBMAN=yes
24295fi
24296
24297
24298if test "x$LIBMAN" != "xyes"; then
24299	LIB_MAN_SUFFIX=$LIBMAN
24300fi
24301
24302 if  test x$LIBMAN '!=' xno ; then
24303  MANPAGES_TRUE=
24304  MANPAGES_FALSE='#'
24305else
24306  MANPAGES_TRUE='#'
24307  MANPAGES_FALSE=
24308fi
24309
24310
24311 if  test x$XKB = xyes ; then
24312  XKB_TRUE=
24313  XKB_FALSE='#'
24314else
24315  XKB_TRUE='#'
24316  XKB_FALSE=
24317fi
24318
24319if test x"$XKB" = "xyes"; then
24320   XKBPROTO_REQUIRES="kbproto"
24321
24322pkg_failed=no
24323{ echo "$as_me:$LINENO: checking for XKBPROTO" >&5
24324echo $ECHO_N "checking for XKBPROTO... $ECHO_C" >&6; }
24325
24326if test -n "$PKG_CONFIG"; then
24327    if test -n "$XKBPROTO_CFLAGS"; then
24328        pkg_cv_XKBPROTO_CFLAGS="$XKBPROTO_CFLAGS"
24329    else
24330        if test -n "$PKG_CONFIG" && \
24331    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"kbproto inputproto\"") >&5
24332  ($PKG_CONFIG --exists --print-errors "kbproto inputproto") 2>&5
24333  ac_status=$?
24334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335  (exit $ac_status); }; then
24336  pkg_cv_XKBPROTO_CFLAGS=`$PKG_CONFIG --cflags "kbproto inputproto" 2>/dev/null`
24337else
24338  pkg_failed=yes
24339fi
24340    fi
24341else
24342	pkg_failed=untried
24343fi
24344if test -n "$PKG_CONFIG"; then
24345    if test -n "$XKBPROTO_LIBS"; then
24346        pkg_cv_XKBPROTO_LIBS="$XKBPROTO_LIBS"
24347    else
24348        if test -n "$PKG_CONFIG" && \
24349    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"kbproto inputproto\"") >&5
24350  ($PKG_CONFIG --exists --print-errors "kbproto inputproto") 2>&5
24351  ac_status=$?
24352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353  (exit $ac_status); }; then
24354  pkg_cv_XKBPROTO_LIBS=`$PKG_CONFIG --libs "kbproto inputproto" 2>/dev/null`
24355else
24356  pkg_failed=yes
24357fi
24358    fi
24359else
24360	pkg_failed=untried
24361fi
24362
24363
24364
24365if test $pkg_failed = yes; then
24366
24367if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24368        _pkg_short_errors_supported=yes
24369else
24370        _pkg_short_errors_supported=no
24371fi
24372        if test $_pkg_short_errors_supported = yes; then
24373	        XKBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "kbproto inputproto"`
24374        else
24375	        XKBPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "kbproto inputproto"`
24376        fi
24377	# Put the nasty error message in config.log where it belongs
24378	echo "$XKBPROTO_PKG_ERRORS" >&5
24379
24380	{ { echo "$as_me:$LINENO: error: Package requirements (kbproto inputproto) were not met:
24381
24382$XKBPROTO_PKG_ERRORS
24383
24384Consider adjusting the PKG_CONFIG_PATH environment variable if you
24385installed software in a non-standard prefix.
24386
24387Alternatively, you may set the environment variables XKBPROTO_CFLAGS
24388and XKBPROTO_LIBS to avoid the need to call pkg-config.
24389See the pkg-config man page for more details.
24390" >&5
24391echo "$as_me: error: Package requirements (kbproto inputproto) were not met:
24392
24393$XKBPROTO_PKG_ERRORS
24394
24395Consider adjusting the PKG_CONFIG_PATH environment variable if you
24396installed software in a non-standard prefix.
24397
24398Alternatively, you may set the environment variables XKBPROTO_CFLAGS
24399and XKBPROTO_LIBS to avoid the need to call pkg-config.
24400See the pkg-config man page for more details.
24401" >&2;}
24402   { (exit 1); exit 1; }; }
24403elif test $pkg_failed = untried; then
24404	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24405is in your PATH or set the PKG_CONFIG environment variable to the full
24406path to pkg-config.
24407
24408Alternatively, you may set the environment variables XKBPROTO_CFLAGS
24409and XKBPROTO_LIBS to avoid the need to call pkg-config.
24410See the pkg-config man page for more details.
24411
24412To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24413See \`config.log' for more details." >&5
24414echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24415is in your PATH or set the PKG_CONFIG environment variable to the full
24416path to pkg-config.
24417
24418Alternatively, you may set the environment variables XKBPROTO_CFLAGS
24419and XKBPROTO_LIBS to avoid the need to call pkg-config.
24420See the pkg-config man page for more details.
24421
24422To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24423See \`config.log' for more details." >&2;}
24424   { (exit 1); exit 1; }; }
24425else
24426	XKBPROTO_CFLAGS=$pkg_cv_XKBPROTO_CFLAGS
24427	XKBPROTO_LIBS=$pkg_cv_XKBPROTO_LIBS
24428        { echo "$as_me:$LINENO: result: yes" >&5
24429echo "${ECHO_T}yes" >&6; }
24430	:
24431fi
24432
24433cat >>confdefs.h <<\_ACEOF
24434#define XKB 1
24435_ACEOF
24436
24437   X11_CFLAGS="$X11_CFLAGS $XKBPROTO_CFLAGS"
24438   X11_LIBS="$X11_LIBS $XKBPROTO_LIBS"
24439else
24440   XKBPROTO_REQUIRES=""
24441fi
24442
24443
24444
24445
24446for ac_header in stdlib.h unistd.h
24447do
24448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24450  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24453  echo $ECHO_N "(cached) $ECHO_C" >&6
24454fi
24455ac_res=`eval echo '${'$as_ac_Header'}'`
24456	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24457echo "${ECHO_T}$ac_res" >&6; }
24458else
24459  # Is the header compilable?
24460{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24462cat >conftest.$ac_ext <<_ACEOF
24463/* confdefs.h.  */
24464_ACEOF
24465cat confdefs.h >>conftest.$ac_ext
24466cat >>conftest.$ac_ext <<_ACEOF
24467/* end confdefs.h.  */
24468$ac_includes_default
24469#include <$ac_header>
24470_ACEOF
24471rm -f conftest.$ac_objext
24472if { (ac_try="$ac_compile"
24473case "(($ac_try" in
24474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475  *) ac_try_echo=$ac_try;;
24476esac
24477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478  (eval "$ac_compile") 2>conftest.er1
24479  ac_status=$?
24480  grep -v '^ *+' conftest.er1 >conftest.err
24481  rm -f conftest.er1
24482  cat conftest.err >&5
24483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484  (exit $ac_status); } && {
24485	 test -z "$ac_c_werror_flag" ||
24486	 test ! -s conftest.err
24487       } && test -s conftest.$ac_objext; then
24488  ac_header_compiler=yes
24489else
24490  echo "$as_me: failed program was:" >&5
24491sed 's/^/| /' conftest.$ac_ext >&5
24492
24493	ac_header_compiler=no
24494fi
24495
24496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24497{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24498echo "${ECHO_T}$ac_header_compiler" >&6; }
24499
24500# Is the header present?
24501{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24502echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24503cat >conftest.$ac_ext <<_ACEOF
24504/* confdefs.h.  */
24505_ACEOF
24506cat confdefs.h >>conftest.$ac_ext
24507cat >>conftest.$ac_ext <<_ACEOF
24508/* end confdefs.h.  */
24509#include <$ac_header>
24510_ACEOF
24511if { (ac_try="$ac_cpp conftest.$ac_ext"
24512case "(($ac_try" in
24513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24514  *) ac_try_echo=$ac_try;;
24515esac
24516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24518  ac_status=$?
24519  grep -v '^ *+' conftest.er1 >conftest.err
24520  rm -f conftest.er1
24521  cat conftest.err >&5
24522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523  (exit $ac_status); } >/dev/null && {
24524	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24525	 test ! -s conftest.err
24526       }; then
24527  ac_header_preproc=yes
24528else
24529  echo "$as_me: failed program was:" >&5
24530sed 's/^/| /' conftest.$ac_ext >&5
24531
24532  ac_header_preproc=no
24533fi
24534
24535rm -f conftest.err conftest.$ac_ext
24536{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24537echo "${ECHO_T}$ac_header_preproc" >&6; }
24538
24539# So?  What about this header?
24540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24541  yes:no: )
24542    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24544    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24546    ac_header_preproc=yes
24547    ;;
24548  no:yes:* )
24549    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24551    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24552echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24553    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24555    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24556echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24557    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24559    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24561    ( cat <<\_ASBOX
24562## ---------------------------------------------------------------------- ##
24563## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
24564## ---------------------------------------------------------------------- ##
24565_ASBOX
24566     ) | sed "s/^/$as_me: WARNING:     /" >&2
24567    ;;
24568esac
24569{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24572  echo $ECHO_N "(cached) $ECHO_C" >&6
24573else
24574  eval "$as_ac_Header=\$ac_header_preproc"
24575fi
24576ac_res=`eval echo '${'$as_ac_Header'}'`
24577	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24578echo "${ECHO_T}$ac_res" >&6; }
24579
24580fi
24581if test `eval echo '${'$as_ac_Header'}'` = yes; then
24582  cat >>confdefs.h <<_ACEOF
24583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24584_ACEOF
24585
24586fi
24587
24588done
24589
24590
24591for ac_func in getpagesize
24592do
24593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24594{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24596if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24597  echo $ECHO_N "(cached) $ECHO_C" >&6
24598else
24599  cat >conftest.$ac_ext <<_ACEOF
24600/* confdefs.h.  */
24601_ACEOF
24602cat confdefs.h >>conftest.$ac_ext
24603cat >>conftest.$ac_ext <<_ACEOF
24604/* end confdefs.h.  */
24605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24606   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24607#define $ac_func innocuous_$ac_func
24608
24609/* System header to define __stub macros and hopefully few prototypes,
24610    which can conflict with char $ac_func (); below.
24611    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24612    <limits.h> exists even on freestanding compilers.  */
24613
24614#ifdef __STDC__
24615# include <limits.h>
24616#else
24617# include <assert.h>
24618#endif
24619
24620#undef $ac_func
24621
24622/* Override any GCC internal prototype to avoid an error.
24623   Use char because int might match the return type of a GCC
24624   builtin and then its argument prototype would still apply.  */
24625#ifdef __cplusplus
24626extern "C"
24627#endif
24628char $ac_func ();
24629/* The GNU C library defines this for functions which it implements
24630    to always fail with ENOSYS.  Some functions are actually named
24631    something starting with __ and the normal name is an alias.  */
24632#if defined __stub_$ac_func || defined __stub___$ac_func
24633choke me
24634#endif
24635
24636int
24637main ()
24638{
24639return $ac_func ();
24640  ;
24641  return 0;
24642}
24643_ACEOF
24644rm -f conftest.$ac_objext conftest$ac_exeext
24645if { (ac_try="$ac_link"
24646case "(($ac_try" in
24647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648  *) ac_try_echo=$ac_try;;
24649esac
24650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651  (eval "$ac_link") 2>conftest.er1
24652  ac_status=$?
24653  grep -v '^ *+' conftest.er1 >conftest.err
24654  rm -f conftest.er1
24655  cat conftest.err >&5
24656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657  (exit $ac_status); } && {
24658	 test -z "$ac_c_werror_flag" ||
24659	 test ! -s conftest.err
24660       } && test -s conftest$ac_exeext &&
24661       $as_test_x conftest$ac_exeext; then
24662  eval "$as_ac_var=yes"
24663else
24664  echo "$as_me: failed program was:" >&5
24665sed 's/^/| /' conftest.$ac_ext >&5
24666
24667	eval "$as_ac_var=no"
24668fi
24669
24670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24671      conftest$ac_exeext conftest.$ac_ext
24672fi
24673ac_res=`eval echo '${'$as_ac_var'}'`
24674	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24675echo "${ECHO_T}$ac_res" >&6; }
24676if test `eval echo '${'$as_ac_var'}'` = yes; then
24677  cat >>confdefs.h <<_ACEOF
24678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24679_ACEOF
24680
24681fi
24682done
24683
24684{ echo "$as_me:$LINENO: checking for working mmap" >&5
24685echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
24686if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24687  echo $ECHO_N "(cached) $ECHO_C" >&6
24688else
24689  if test "$cross_compiling" = yes; then
24690  ac_cv_func_mmap_fixed_mapped=no
24691else
24692  cat >conftest.$ac_ext <<_ACEOF
24693/* confdefs.h.  */
24694_ACEOF
24695cat confdefs.h >>conftest.$ac_ext
24696cat >>conftest.$ac_ext <<_ACEOF
24697/* end confdefs.h.  */
24698$ac_includes_default
24699/* malloc might have been renamed as rpl_malloc. */
24700#undef malloc
24701
24702/* Thanks to Mike Haertel and Jim Avera for this test.
24703   Here is a matrix of mmap possibilities:
24704	mmap private not fixed
24705	mmap private fixed at somewhere currently unmapped
24706	mmap private fixed at somewhere already mapped
24707	mmap shared not fixed
24708	mmap shared fixed at somewhere currently unmapped
24709	mmap shared fixed at somewhere already mapped
24710   For private mappings, we should verify that changes cannot be read()
24711   back from the file, nor mmap's back from the file at a different
24712   address.  (There have been systems where private was not correctly
24713   implemented like the infamous i386 svr4.0, and systems where the
24714   VM page cache was not coherent with the file system buffer cache
24715   like early versions of FreeBSD and possibly contemporary NetBSD.)
24716   For shared mappings, we should conversely verify that changes get
24717   propagated back to all the places they're supposed to be.
24718
24719   Grep wants private fixed already mapped.
24720   The main things grep needs to know about mmap are:
24721   * does it exist and is it safe to write into the mmap'd area
24722   * how to use it (BSD variants)  */
24723
24724#include <fcntl.h>
24725#include <sys/mman.h>
24726
24727#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24728char *malloc ();
24729#endif
24730
24731/* This mess was copied from the GNU getpagesize.h.  */
24732#ifndef HAVE_GETPAGESIZE
24733/* Assume that all systems that can run configure have sys/param.h.  */
24734# ifndef HAVE_SYS_PARAM_H
24735#  define HAVE_SYS_PARAM_H 1
24736# endif
24737
24738# ifdef _SC_PAGESIZE
24739#  define getpagesize() sysconf(_SC_PAGESIZE)
24740# else /* no _SC_PAGESIZE */
24741#  ifdef HAVE_SYS_PARAM_H
24742#   include <sys/param.h>
24743#   ifdef EXEC_PAGESIZE
24744#    define getpagesize() EXEC_PAGESIZE
24745#   else /* no EXEC_PAGESIZE */
24746#    ifdef NBPG
24747#     define getpagesize() NBPG * CLSIZE
24748#     ifndef CLSIZE
24749#      define CLSIZE 1
24750#     endif /* no CLSIZE */
24751#    else /* no NBPG */
24752#     ifdef NBPC
24753#      define getpagesize() NBPC
24754#     else /* no NBPC */
24755#      ifdef PAGESIZE
24756#       define getpagesize() PAGESIZE
24757#      endif /* PAGESIZE */
24758#     endif /* no NBPC */
24759#    endif /* no NBPG */
24760#   endif /* no EXEC_PAGESIZE */
24761#  else /* no HAVE_SYS_PARAM_H */
24762#   define getpagesize() 8192	/* punt totally */
24763#  endif /* no HAVE_SYS_PARAM_H */
24764# endif /* no _SC_PAGESIZE */
24765
24766#endif /* no HAVE_GETPAGESIZE */
24767
24768int
24769main ()
24770{
24771  char *data, *data2, *data3;
24772  int i, pagesize;
24773  int fd;
24774
24775  pagesize = getpagesize ();
24776
24777  /* First, make a file with some known garbage in it. */
24778  data = (char *) malloc (pagesize);
24779  if (!data)
24780    return 1;
24781  for (i = 0; i < pagesize; ++i)
24782    *(data + i) = rand ();
24783  umask (0);
24784  fd = creat ("conftest.mmap", 0600);
24785  if (fd < 0)
24786    return 1;
24787  if (write (fd, data, pagesize) != pagesize)
24788    return 1;
24789  close (fd);
24790
24791  /* Next, try to mmap the file at a fixed address which already has
24792     something else allocated at it.  If we can, also make sure that
24793     we see the same garbage.  */
24794  fd = open ("conftest.mmap", O_RDWR);
24795  if (fd < 0)
24796    return 1;
24797  data2 = (char *) malloc (2 * pagesize);
24798  if (!data2)
24799    return 1;
24800  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24801  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24802		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24803    return 1;
24804  for (i = 0; i < pagesize; ++i)
24805    if (*(data + i) != *(data2 + i))
24806      return 1;
24807
24808  /* Finally, make sure that changes to the mapped area do not
24809     percolate back to the file as seen by read().  (This is a bug on
24810     some variants of i386 svr4.0.)  */
24811  for (i = 0; i < pagesize; ++i)
24812    *(data2 + i) = *(data2 + i) + 1;
24813  data3 = (char *) malloc (pagesize);
24814  if (!data3)
24815    return 1;
24816  if (read (fd, data3, pagesize) != pagesize)
24817    return 1;
24818  for (i = 0; i < pagesize; ++i)
24819    if (*(data + i) != *(data3 + i))
24820      return 1;
24821  close (fd);
24822  return 0;
24823}
24824_ACEOF
24825rm -f conftest$ac_exeext
24826if { (ac_try="$ac_link"
24827case "(($ac_try" in
24828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829  *) ac_try_echo=$ac_try;;
24830esac
24831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24832  (eval "$ac_link") 2>&5
24833  ac_status=$?
24834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24836  { (case "(($ac_try" in
24837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838  *) ac_try_echo=$ac_try;;
24839esac
24840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24841  (eval "$ac_try") 2>&5
24842  ac_status=$?
24843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844  (exit $ac_status); }; }; then
24845  ac_cv_func_mmap_fixed_mapped=yes
24846else
24847  echo "$as_me: program exited with status $ac_status" >&5
24848echo "$as_me: failed program was:" >&5
24849sed 's/^/| /' conftest.$ac_ext >&5
24850
24851( exit $ac_status )
24852ac_cv_func_mmap_fixed_mapped=no
24853fi
24854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24855fi
24856
24857
24858fi
24859{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24860echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
24861if test $ac_cv_func_mmap_fixed_mapped = yes; then
24862
24863cat >>confdefs.h <<\_ACEOF
24864#define HAVE_MMAP 1
24865_ACEOF
24866
24867fi
24868rm -f conftest.mmap
24869
24870composecache_default=$ac_cv_func_mmap_fixed_mapped
24871{ echo "$as_me:$LINENO: checking for nl_langinfo" >&5
24872echo $ECHO_N "checking for nl_langinfo... $ECHO_C" >&6; }
24873if test "${ac_cv_func_nl_langinfo+set}" = set; then
24874  echo $ECHO_N "(cached) $ECHO_C" >&6
24875else
24876  cat >conftest.$ac_ext <<_ACEOF
24877/* confdefs.h.  */
24878_ACEOF
24879cat confdefs.h >>conftest.$ac_ext
24880cat >>conftest.$ac_ext <<_ACEOF
24881/* end confdefs.h.  */
24882/* Define nl_langinfo to an innocuous variant, in case <limits.h> declares nl_langinfo.
24883   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24884#define nl_langinfo innocuous_nl_langinfo
24885
24886/* System header to define __stub macros and hopefully few prototypes,
24887    which can conflict with char nl_langinfo (); below.
24888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24889    <limits.h> exists even on freestanding compilers.  */
24890
24891#ifdef __STDC__
24892# include <limits.h>
24893#else
24894# include <assert.h>
24895#endif
24896
24897#undef nl_langinfo
24898
24899/* Override any GCC internal prototype to avoid an error.
24900   Use char because int might match the return type of a GCC
24901   builtin and then its argument prototype would still apply.  */
24902#ifdef __cplusplus
24903extern "C"
24904#endif
24905char nl_langinfo ();
24906/* The GNU C library defines this for functions which it implements
24907    to always fail with ENOSYS.  Some functions are actually named
24908    something starting with __ and the normal name is an alias.  */
24909#if defined __stub_nl_langinfo || defined __stub___nl_langinfo
24910choke me
24911#endif
24912
24913int
24914main ()
24915{
24916return nl_langinfo ();
24917  ;
24918  return 0;
24919}
24920_ACEOF
24921rm -f conftest.$ac_objext conftest$ac_exeext
24922if { (ac_try="$ac_link"
24923case "(($ac_try" in
24924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925  *) ac_try_echo=$ac_try;;
24926esac
24927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928  (eval "$ac_link") 2>conftest.er1
24929  ac_status=$?
24930  grep -v '^ *+' conftest.er1 >conftest.err
24931  rm -f conftest.er1
24932  cat conftest.err >&5
24933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934  (exit $ac_status); } && {
24935	 test -z "$ac_c_werror_flag" ||
24936	 test ! -s conftest.err
24937       } && test -s conftest$ac_exeext &&
24938       $as_test_x conftest$ac_exeext; then
24939  ac_cv_func_nl_langinfo=yes
24940else
24941  echo "$as_me: failed program was:" >&5
24942sed 's/^/| /' conftest.$ac_ext >&5
24943
24944	ac_cv_func_nl_langinfo=no
24945fi
24946
24947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24948      conftest$ac_exeext conftest.$ac_ext
24949fi
24950{ echo "$as_me:$LINENO: result: $ac_cv_func_nl_langinfo" >&5
24951echo "${ECHO_T}$ac_cv_func_nl_langinfo" >&6; }
24952if test $ac_cv_func_nl_langinfo = yes; then
24953  :
24954else
24955  composecache_default=no
24956fi
24957
24958# Check whether --enable-composecache was given.
24959if test "${enable_composecache+set}" = set; then
24960  enableval=$enable_composecache; COMPOSECACHE=$enableval
24961else
24962  COMPOSECACHE=$composecache_default
24963fi
24964
24965if test x"$COMPOSECACHE" = "xyes"; then
24966
24967cat >>confdefs.h <<\_ACEOF
24968#define COMPOSECACHE 1
24969_ACEOF
24970
24971fi
24972
24973
24974
24975# Allow checking code with lint, sparse, etc.
24976
24977# Check whether --with-lint was given.
24978if test "${with_lint+set}" = set; then
24979  withval=$with_lint; use_lint=$withval
24980else
24981  use_lint=no
24982fi
24983
24984if test "x$use_lint" = "xyes" ; then
24985	LINT="lint"
24986else
24987	LINT="$use_lint"
24988fi
24989if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
24990    case $LINT in
24991	lint|*/lint)
24992	    case $host_os in
24993		solaris*)
24994			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
24995			;;
24996	    esac
24997	    ;;
24998    esac
24999fi
25000
25001
25002
25003 if test x$LINT != xno; then
25004  LINT_TRUE=
25005  LINT_FALSE='#'
25006else
25007  LINT_TRUE='#'
25008  LINT_FALSE=
25009fi
25010
25011
25012
25013
25014
25015# Build lint "library" for more indepth checks of programs calling this library
25016# Check whether --enable-lint-library was given.
25017if test "${enable_lint_library+set}" = set; then
25018  enableval=$enable_lint_library; make_lint_lib=$enableval
25019else
25020  make_lint_lib=no
25021fi
25022
25023if test "x$make_lint_lib" != "xno" ; then
25024	if test "x$LINT" = "xno" ; then
25025		{ { echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
25026echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
25027   { (exit 1); exit 1; }; }
25028	fi
25029	if test "x$make_lint_lib" = "xyes" ; then
25030		LINTLIB=llib-lX11.ln
25031	else
25032		LINTLIB=$make_lint_lib
25033	fi
25034fi
25035
25036 if test x$make_lint_lib != xno; then
25037  MAKE_LINT_LIB_TRUE=
25038  MAKE_LINT_LIB_FALSE='#'
25039else
25040  MAKE_LINT_LIB_TRUE='#'
25041  MAKE_LINT_LIB_FALSE=
25042fi
25043
25044
25045
25046LINT_FLAGS="${LINT_FLAGS} ${X11_CFLAGS} ${XPROTO_CFLAGS}"
25047
25048if test "x$GCC" = "xyes"; then
25049	GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \
25050	-Wmissing-prototypes -Wmissing-declarations \
25051	-Wnested-externs -fno-strict-aliasing"
25052	X11_CFLAGS="$GCC_WARNINGS $X11_CFLAGS"
25053fi
25054
25055cat >conftest.$ac_ext <<_ACEOF
25056/* confdefs.h.  */
25057_ACEOF
25058cat confdefs.h >>conftest.$ac_ext
25059cat >>conftest.$ac_ext <<_ACEOF
25060/* end confdefs.h.  */
25061
25062#include <features.h>
25063#ifndef __GLIBC__
25064#error not glibc
25065#endif
25066
25067int
25068main ()
25069{
25070
25071  ;
25072  return 0;
25073}
25074_ACEOF
25075rm -f conftest.$ac_objext
25076if { (ac_try="$ac_compile"
25077case "(($ac_try" in
25078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079  *) ac_try_echo=$ac_try;;
25080esac
25081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25082  (eval "$ac_compile") 2>conftest.er1
25083  ac_status=$?
25084  grep -v '^ *+' conftest.er1 >conftest.err
25085  rm -f conftest.er1
25086  cat conftest.err >&5
25087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088  (exit $ac_status); } && {
25089	 test -z "$ac_c_werror_flag" ||
25090	 test ! -s conftest.err
25091       } && test -s conftest.$ac_objext; then
25092
25093cat >>confdefs.h <<\_ACEOF
25094#define _GNU_SOURCE 1
25095_ACEOF
25096
25097else
25098  echo "$as_me: failed program was:" >&5
25099sed 's/^/| /' conftest.$ac_ext >&5
25100
25101
25102fi
25103
25104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25105
25106X11_DATADIR="${datadir}/X11"
25107
25108  prefix_NONE=
25109  exec_prefix_NONE=
25110  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25111  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25112  eval ac_define_dir="\"$X11_DATADIR\""
25113  eval ac_define_dir="\"$ac_define_dir\""
25114  X11_DATADIR="$ac_define_dir"
25115
25116
25117cat >>confdefs.h <<_ACEOF
25118#define X11_DATADIR "$ac_define_dir"
25119_ACEOF
25120
25121  test "$prefix_NONE" && prefix=NONE
25122  test "$exec_prefix_NONE" && exec_prefix=NONE
25123
25124
25125
25126X11_LIBDIR="${libdir}/X11"
25127
25128  prefix_NONE=
25129  exec_prefix_NONE=
25130  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25131  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25132  eval ac_define_dir="\"$X11_LIBDIR\""
25133  eval ac_define_dir="\"$ac_define_dir\""
25134  X11_LIBDIR="$ac_define_dir"
25135
25136
25137cat >>confdefs.h <<_ACEOF
25138#define X11_LIBDIR "$ac_define_dir"
25139_ACEOF
25140
25141  test "$prefix_NONE" && prefix=NONE
25142  test "$exec_prefix_NONE" && exec_prefix=NONE
25143
25144
25145
25146X11_CFLAGS="$CWARNFLAGS $X11_CFLAGS $XPROTO_CFLAGS"
25147
25148
25149
25150#
25151# Yes, it would be nice to put the locale data in
25152# /usr/share, but the locale stuff includes loadable
25153# libraries which must be located in the same directory
25154# as the other locale data, so for now, everything lives
25155# in ${libdir}
25156#
25157
25158X11_LOCALEDATADIR="${X11_DATADIR}/locale"
25159
25160  prefix_NONE=
25161  exec_prefix_NONE=
25162  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25163  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25164  eval ac_define_dir="\"$X11_LOCALEDATADIR\""
25165  eval ac_define_dir="\"$ac_define_dir\""
25166  XLOCALEDATADIR="$ac_define_dir"
25167
25168
25169cat >>confdefs.h <<_ACEOF
25170#define XLOCALEDATADIR "$ac_define_dir"
25171_ACEOF
25172
25173  test "$prefix_NONE" && prefix=NONE
25174  test "$exec_prefix_NONE" && exec_prefix=NONE
25175
25176
25177
25178X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
25179
25180  prefix_NONE=
25181  exec_prefix_NONE=
25182  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25183  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25184  eval ac_define_dir="\"$X11_LOCALELIBDIR\""
25185  eval ac_define_dir="\"$ac_define_dir\""
25186  XLOCALELIBDIR="$ac_define_dir"
25187
25188
25189cat >>confdefs.h <<_ACEOF
25190#define XLOCALELIBDIR "$ac_define_dir"
25191_ACEOF
25192
25193  test "$prefix_NONE" && prefix=NONE
25194  test "$exec_prefix_NONE" && exec_prefix=NONE
25195
25196
25197
25198X11_LOCALEDIR="${X11_LOCALEDATADIR}"
25199
25200  prefix_NONE=
25201  exec_prefix_NONE=
25202  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25203  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25204  eval ac_define_dir="\"$X11_LOCALEDIR\""
25205  eval ac_define_dir="\"$ac_define_dir\""
25206  XLOCALEDIR="$ac_define_dir"
25207
25208
25209cat >>confdefs.h <<_ACEOF
25210#define XLOCALEDIR "$ac_define_dir"
25211_ACEOF
25212
25213  test "$prefix_NONE" && prefix=NONE
25214  test "$exec_prefix_NONE" && exec_prefix=NONE
25215
25216
25217
25218XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
25219
25220  prefix_NONE=
25221  exec_prefix_NONE=
25222  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25223  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25224  eval ac_define_dir="\"$XKEYSYMDB\""
25225  eval ac_define_dir="\"$ac_define_dir\""
25226  XKEYSYMDB="$ac_define_dir"
25227
25228
25229cat >>confdefs.h <<_ACEOF
25230#define XKEYSYMDB "$ac_define_dir"
25231_ACEOF
25232
25233  test "$prefix_NONE" && prefix=NONE
25234  test "$exec_prefix_NONE" && exec_prefix=NONE
25235
25236
25237XERRORDB="${X11_DATADIR}/XErrorDB"
25238
25239  prefix_NONE=
25240  exec_prefix_NONE=
25241  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25242  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25243  eval ac_define_dir="\"$XERRORDB\""
25244  eval ac_define_dir="\"$ac_define_dir\""
25245  XERRORDB="$ac_define_dir"
25246
25247
25248cat >>confdefs.h <<_ACEOF
25249#define XERRORDB "$ac_define_dir"
25250_ACEOF
25251
25252  test "$prefix_NONE" && prefix=NONE
25253  test "$exec_prefix_NONE" && exec_prefix=NONE
25254
25255
25256
25257
25258# Check whether --enable-malloc0returnsnull was given.
25259if test "${enable_malloc0returnsnull+set}" = set; then
25260  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
25261else
25262  MALLOC_ZERO_RETURNS_NULL=auto
25263fi
25264
25265
25266{ echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
25267echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; }
25268if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
25269	if test "$cross_compiling" = yes; then
25270  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25271See \`config.log' for more details." >&5
25272echo "$as_me: error: cannot run test program while cross compiling
25273See \`config.log' for more details." >&2;}
25274   { (exit 1); exit 1; }; }
25275else
25276  cat >conftest.$ac_ext <<_ACEOF
25277
25278char *malloc();
25279char *realloc();
25280char *calloc();
25281main() {
25282    char *m0, *r0, *c0, *p;
25283    m0 = malloc(0);
25284    p = malloc(10);
25285    r0 = realloc(p,0);
25286    c0 = calloc(0);
25287    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
25288}
25289_ACEOF
25290rm -f conftest$ac_exeext
25291if { (ac_try="$ac_link"
25292case "(($ac_try" in
25293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25294  *) ac_try_echo=$ac_try;;
25295esac
25296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25297  (eval "$ac_link") 2>&5
25298  ac_status=$?
25299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25301  { (case "(($ac_try" in
25302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303  *) ac_try_echo=$ac_try;;
25304esac
25305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25306  (eval "$ac_try") 2>&5
25307  ac_status=$?
25308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309  (exit $ac_status); }; }; then
25310  MALLOC_ZERO_RETURNS_NULL=yes
25311else
25312  echo "$as_me: program exited with status $ac_status" >&5
25313echo "$as_me: failed program was:" >&5
25314sed 's/^/| /' conftest.$ac_ext >&5
25315
25316( exit $ac_status )
25317MALLOC_ZERO_RETURNS_NULL=no
25318fi
25319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25320fi
25321
25322
25323fi
25324{ echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
25325echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; }
25326
25327if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
25328	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
25329	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
25330	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
25331else
25332	MALLOC_ZERO_CFLAGS=""
25333	XMALLOC_ZERO_CFLAGS=""
25334	XTMALLOC_ZERO_CFLAGS=""
25335fi
25336
25337
25338
25339
25340
25341
25342
25343# Check whether --with-release-version was given.
25344if test "${with_release_version+set}" = set; then
25345  withval=$with_release_version; RELEASE_VERSION="$withval"
25346else
25347  RELEASE_VERSION=""
25348fi
25349
25350	if test "x$RELEASE_VERSION" != "x"; then
25351		PACKAGE="$PACKAGE-$RELEASE_VERSION"
25352		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
25353		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
25354echo "$as_me: Building with package name set to $PACKAGE" >&6;}
25355	fi
25356
25357cat >>confdefs.h <<_ACEOF
25358#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
25359_ACEOF
25360
25361	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
25362	if test "x$PVM" = "x"; then
25363		PVM="0"
25364	fi
25365
25366cat >>confdefs.h <<_ACEOF
25367#define PACKAGE_VERSION_MINOR $PVM
25368_ACEOF
25369
25370	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
25371	if test "x$PVP" = "x"; then
25372		PVP="0"
25373	fi
25374
25375cat >>confdefs.h <<_ACEOF
25376#define PACKAGE_VERSION_PATCHLEVEL $PVP
25377_ACEOF
25378
25379
25380
25381CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
25382mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
25383echo 'git directory not found: installing possibly empty changelog.' >&2)"
25384
25385distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
25386
25387
25388
25389ac_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"
25390
25391cat >confcache <<\_ACEOF
25392# This file is a shell script that caches the results of configure
25393# tests run on this system so they can be shared between configure
25394# scripts and configure runs, see configure's option --config-cache.
25395# It is not useful on other systems.  If it contains results you don't
25396# want to keep, you may remove or edit it.
25397#
25398# config.status only pays attention to the cache file if you give it
25399# the --recheck option to rerun configure.
25400#
25401# `ac_cv_env_foo' variables (set or unset) will be overridden when
25402# loading this file, other *unset* `ac_cv_foo' will be assigned the
25403# following values.
25404
25405_ACEOF
25406
25407# The following way of writing the cache mishandles newlines in values,
25408# but we know of no workaround that is simple, portable, and efficient.
25409# So, we kill variables containing newlines.
25410# Ultrix sh set writes to stderr and can't be redirected directly,
25411# and sets the high bit in the cache file unless we assign to the vars.
25412(
25413  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25414    eval ac_val=\$$ac_var
25415    case $ac_val in #(
25416    *${as_nl}*)
25417      case $ac_var in #(
25418      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25419echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25420      esac
25421      case $ac_var in #(
25422      _ | IFS | as_nl) ;; #(
25423      *) $as_unset $ac_var ;;
25424      esac ;;
25425    esac
25426  done
25427
25428  (set) 2>&1 |
25429    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25430    *${as_nl}ac_space=\ *)
25431      # `set' does not quote correctly, so add quotes (double-quote
25432      # substitution turns \\\\ into \\, and sed turns \\ into \).
25433      sed -n \
25434	"s/'/'\\\\''/g;
25435	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25436      ;; #(
25437    *)
25438      # `set' quotes correctly as required by POSIX, so do not add quotes.
25439      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25440      ;;
25441    esac |
25442    sort
25443) |
25444  sed '
25445     /^ac_cv_env_/b end
25446     t clear
25447     :clear
25448     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25449     t end
25450     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25451     :end' >>confcache
25452if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25453  if test -w "$cache_file"; then
25454    test "x$cache_file" != "x/dev/null" &&
25455      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25456echo "$as_me: updating cache $cache_file" >&6;}
25457    cat confcache >$cache_file
25458  else
25459    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25460echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25461  fi
25462fi
25463rm -f confcache
25464
25465test "x$prefix" = xNONE && prefix=$ac_default_prefix
25466# Let make expand exec_prefix.
25467test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25468
25469DEFS=-DHAVE_CONFIG_H
25470
25471ac_libobjs=
25472ac_ltlibobjs=
25473for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25474  # 1. Remove the extension, and $U if already installed.
25475  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25476  ac_i=`echo "$ac_i" | sed "$ac_script"`
25477  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25478  #    will be set to the directory where LIBOBJS objects are built.
25479  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25480  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25481done
25482LIBOBJS=$ac_libobjs
25483
25484LTLIBOBJS=$ac_ltlibobjs
25485
25486
25487if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25488  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25489Usually this means the macro was only invoked conditionally." >&5
25490echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25491Usually this means the macro was only invoked conditionally." >&2;}
25492   { (exit 1); exit 1; }; }
25493fi
25494if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25495  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25496Usually this means the macro was only invoked conditionally." >&5
25497echo "$as_me: error: conditional \"AMDEP\" was never defined.
25498Usually this means the macro was only invoked conditionally." >&2;}
25499   { (exit 1); exit 1; }; }
25500fi
25501if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25502  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25503Usually this means the macro was only invoked conditionally." >&5
25504echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25505Usually this means the macro was only invoked conditionally." >&2;}
25506   { (exit 1); exit 1; }; }
25507fi
25508if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25509  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25510Usually this means the macro was only invoked conditionally." >&5
25511echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25512Usually this means the macro was only invoked conditionally." >&2;}
25513   { (exit 1); exit 1; }; }
25514fi
25515if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25516  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25517Usually this means the macro was only invoked conditionally." >&5
25518echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25519Usually this means the macro was only invoked conditionally." >&2;}
25520   { (exit 1); exit 1; }; }
25521fi
25522if test -z "${XCB_TRUE}" && test -z "${XCB_FALSE}"; then
25523  { { echo "$as_me:$LINENO: error: conditional \"XCB\" was never defined.
25524Usually this means the macro was only invoked conditionally." >&5
25525echo "$as_me: error: conditional \"XCB\" was never defined.
25526Usually this means the macro was only invoked conditionally." >&2;}
25527   { (exit 1); exit 1; }; }
25528fi
25529if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
25530  { { echo "$as_me:$LINENO: error: conditional \"XLIB_LOADABLE_I18N\" was never defined.
25531Usually this means the macro was only invoked conditionally." >&5
25532echo "$as_me: error: conditional \"XLIB_LOADABLE_I18N\" was never defined.
25533Usually this means the macro was only invoked conditionally." >&2;}
25534   { (exit 1); exit 1; }; }
25535fi
25536if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
25537  { { echo "$as_me:$LINENO: error: conditional \"OS2\" was never defined.
25538Usually this means the macro was only invoked conditionally." >&5
25539echo "$as_me: error: conditional \"OS2\" was never defined.
25540Usually this means the macro was only invoked conditionally." >&2;}
25541   { (exit 1); exit 1; }; }
25542fi
25543if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
25544  { { echo "$as_me:$LINENO: error: conditional \"THRSTUBS\" was never defined.
25545Usually this means the macro was only invoked conditionally." >&5
25546echo "$as_me: error: conditional \"THRSTUBS\" was never defined.
25547Usually this means the macro was only invoked conditionally." >&2;}
25548   { (exit 1); exit 1; }; }
25549fi
25550if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then
25551  { { echo "$as_me:$LINENO: error: conditional \"UDC\" was never defined.
25552Usually this means the macro was only invoked conditionally." >&5
25553echo "$as_me: error: conditional \"UDC\" was never defined.
25554Usually this means the macro was only invoked conditionally." >&2;}
25555   { (exit 1); exit 1; }; }
25556fi
25557if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
25558  { { echo "$as_me:$LINENO: error: conditional \"XCMS\" was never defined.
25559Usually this means the macro was only invoked conditionally." >&5
25560echo "$as_me: error: conditional \"XCMS\" was never defined.
25561Usually this means the macro was only invoked conditionally." >&2;}
25562   { (exit 1); exit 1; }; }
25563fi
25564if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
25565  { { echo "$as_me:$LINENO: error: conditional \"XLOCALE\" was never defined.
25566Usually this means the macro was only invoked conditionally." >&5
25567echo "$as_me: error: conditional \"XLOCALE\" was never defined.
25568Usually this means the macro was only invoked conditionally." >&2;}
25569   { (exit 1); exit 1; }; }
25570fi
25571if test -z "${MANPAGES_TRUE}" && test -z "${MANPAGES_FALSE}"; then
25572  { { echo "$as_me:$LINENO: error: conditional \"MANPAGES\" was never defined.
25573Usually this means the macro was only invoked conditionally." >&5
25574echo "$as_me: error: conditional \"MANPAGES\" was never defined.
25575Usually this means the macro was only invoked conditionally." >&2;}
25576   { (exit 1); exit 1; }; }
25577fi
25578if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
25579  { { echo "$as_me:$LINENO: error: conditional \"XKB\" was never defined.
25580Usually this means the macro was only invoked conditionally." >&5
25581echo "$as_me: error: conditional \"XKB\" was never defined.
25582Usually this means the macro was only invoked conditionally." >&2;}
25583   { (exit 1); exit 1; }; }
25584fi
25585if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
25586  { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
25587Usually this means the macro was only invoked conditionally." >&5
25588echo "$as_me: error: conditional \"LINT\" was never defined.
25589Usually this means the macro was only invoked conditionally." >&2;}
25590   { (exit 1); exit 1; }; }
25591fi
25592if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
25593  { { echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
25594Usually this means the macro was only invoked conditionally." >&5
25595echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
25596Usually this means the macro was only invoked conditionally." >&2;}
25597   { (exit 1); exit 1; }; }
25598fi
25599
25600: ${CONFIG_STATUS=./config.status}
25601ac_clean_files_save=$ac_clean_files
25602ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25603{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25604echo "$as_me: creating $CONFIG_STATUS" >&6;}
25605cat >$CONFIG_STATUS <<_ACEOF
25606#! $SHELL
25607# Generated by $as_me.
25608# Run this file to recreate the current configuration.
25609# Compiler output produced by configure, useful for debugging
25610# configure, is in config.log if it exists.
25611
25612debug=false
25613ac_cs_recheck=false
25614ac_cs_silent=false
25615SHELL=\${CONFIG_SHELL-$SHELL}
25616_ACEOF
25617
25618cat >>$CONFIG_STATUS <<\_ACEOF
25619## --------------------- ##
25620## M4sh Initialization.  ##
25621## --------------------- ##
25622
25623# Be more Bourne compatible
25624DUALCASE=1; export DUALCASE # for MKS sh
25625if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25626  emulate sh
25627  NULLCMD=:
25628  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25629  # is contrary to our usage.  Disable this feature.
25630  alias -g '${1+"$@"}'='"$@"'
25631  setopt NO_GLOB_SUBST
25632else
25633  case `(set -o) 2>/dev/null` in
25634  *posix*) set -o posix ;;
25635esac
25636
25637fi
25638
25639
25640
25641
25642# PATH needs CR
25643# Avoid depending upon Character Ranges.
25644as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25645as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25646as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25647as_cr_digits='0123456789'
25648as_cr_alnum=$as_cr_Letters$as_cr_digits
25649
25650# The user is always right.
25651if test "${PATH_SEPARATOR+set}" != set; then
25652  echo "#! /bin/sh" >conf$$.sh
25653  echo  "exit 0"   >>conf$$.sh
25654  chmod +x conf$$.sh
25655  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25656    PATH_SEPARATOR=';'
25657  else
25658    PATH_SEPARATOR=:
25659  fi
25660  rm -f conf$$.sh
25661fi
25662
25663# Support unset when possible.
25664if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25665  as_unset=unset
25666else
25667  as_unset=false
25668fi
25669
25670
25671# IFS
25672# We need space, tab and new line, in precisely that order.  Quoting is
25673# there to prevent editors from complaining about space-tab.
25674# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25675# splitting by setting IFS to empty value.)
25676as_nl='
25677'
25678IFS=" ""	$as_nl"
25679
25680# Find who we are.  Look in the path if we contain no directory separator.
25681case $0 in
25682  *[\\/]* ) as_myself=$0 ;;
25683  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25684for as_dir in $PATH
25685do
25686  IFS=$as_save_IFS
25687  test -z "$as_dir" && as_dir=.
25688  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25689done
25690IFS=$as_save_IFS
25691
25692     ;;
25693esac
25694# We did not find ourselves, most probably we were run as `sh COMMAND'
25695# in which case we are not to be found in the path.
25696if test "x$as_myself" = x; then
25697  as_myself=$0
25698fi
25699if test ! -f "$as_myself"; then
25700  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25701  { (exit 1); exit 1; }
25702fi
25703
25704# Work around bugs in pre-3.0 UWIN ksh.
25705for as_var in ENV MAIL MAILPATH
25706do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25707done
25708PS1='$ '
25709PS2='> '
25710PS4='+ '
25711
25712# NLS nuisances.
25713for as_var in \
25714  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25715  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25716  LC_TELEPHONE LC_TIME
25717do
25718  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25719    eval $as_var=C; export $as_var
25720  else
25721    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25722  fi
25723done
25724
25725# Required to use basename.
25726if expr a : '\(a\)' >/dev/null 2>&1 &&
25727   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25728  as_expr=expr
25729else
25730  as_expr=false
25731fi
25732
25733if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25734  as_basename=basename
25735else
25736  as_basename=false
25737fi
25738
25739
25740# Name of the executable.
25741as_me=`$as_basename -- "$0" ||
25742$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25743	 X"$0" : 'X\(//\)$' \| \
25744	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25745echo X/"$0" |
25746    sed '/^.*\/\([^/][^/]*\)\/*$/{
25747	    s//\1/
25748	    q
25749	  }
25750	  /^X\/\(\/\/\)$/{
25751	    s//\1/
25752	    q
25753	  }
25754	  /^X\/\(\/\).*/{
25755	    s//\1/
25756	    q
25757	  }
25758	  s/.*/./; q'`
25759
25760# CDPATH.
25761$as_unset CDPATH
25762
25763
25764
25765  as_lineno_1=$LINENO
25766  as_lineno_2=$LINENO
25767  test "x$as_lineno_1" != "x$as_lineno_2" &&
25768  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25769
25770  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25771  # uniformly replaced by the line number.  The first 'sed' inserts a
25772  # line-number line after each line using $LINENO; the second 'sed'
25773  # does the real work.  The second script uses 'N' to pair each
25774  # line-number line with the line containing $LINENO, and appends
25775  # trailing '-' during substitution so that $LINENO is not a special
25776  # case at line end.
25777  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25778  # scripts with optimization help from Paolo Bonzini.  Blame Lee
25779  # E. McMahon (1931-1989) for sed's syntax.  :-)
25780  sed -n '
25781    p
25782    /[$]LINENO/=
25783  ' <$as_myself |
25784    sed '
25785      s/[$]LINENO.*/&-/
25786      t lineno
25787      b
25788      :lineno
25789      N
25790      :loop
25791      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25792      t loop
25793      s/-\n.*//
25794    ' >$as_me.lineno &&
25795  chmod +x "$as_me.lineno" ||
25796    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25797   { (exit 1); exit 1; }; }
25798
25799  # Don't try to exec as it changes $[0], causing all sort of problems
25800  # (the dirname of $[0] is not the place where we might find the
25801  # original and so on.  Autoconf is especially sensitive to this).
25802  . "./$as_me.lineno"
25803  # Exit status is that of the last command.
25804  exit
25805}
25806
25807
25808if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25809  as_dirname=dirname
25810else
25811  as_dirname=false
25812fi
25813
25814ECHO_C= ECHO_N= ECHO_T=
25815case `echo -n x` in
25816-n*)
25817  case `echo 'x\c'` in
25818  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25819  *)   ECHO_C='\c';;
25820  esac;;
25821*)
25822  ECHO_N='-n';;
25823esac
25824
25825if expr a : '\(a\)' >/dev/null 2>&1 &&
25826   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25827  as_expr=expr
25828else
25829  as_expr=false
25830fi
25831
25832rm -f conf$$ conf$$.exe conf$$.file
25833if test -d conf$$.dir; then
25834  rm -f conf$$.dir/conf$$.file
25835else
25836  rm -f conf$$.dir
25837  mkdir conf$$.dir
25838fi
25839echo >conf$$.file
25840if ln -s conf$$.file conf$$ 2>/dev/null; then
25841  as_ln_s='ln -s'
25842  # ... but there are two gotchas:
25843  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25844  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25845  # In both cases, we have to default to `cp -p'.
25846  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25847    as_ln_s='cp -p'
25848elif ln conf$$.file conf$$ 2>/dev/null; then
25849  as_ln_s=ln
25850else
25851  as_ln_s='cp -p'
25852fi
25853rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25854rmdir conf$$.dir 2>/dev/null
25855
25856if mkdir -p . 2>/dev/null; then
25857  as_mkdir_p=:
25858else
25859  test -d ./-p && rmdir ./-p
25860  as_mkdir_p=false
25861fi
25862
25863if test -x / >/dev/null 2>&1; then
25864  as_test_x='test -x'
25865else
25866  if ls -dL / >/dev/null 2>&1; then
25867    as_ls_L_option=L
25868  else
25869    as_ls_L_option=
25870  fi
25871  as_test_x='
25872    eval sh -c '\''
25873      if test -d "$1"; then
25874        test -d "$1/.";
25875      else
25876	case $1 in
25877        -*)set "./$1";;
25878	esac;
25879	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25880	???[sx]*):;;*)false;;esac;fi
25881    '\'' sh
25882  '
25883fi
25884as_executable_p=$as_test_x
25885
25886# Sed expression to map a string onto a valid CPP name.
25887as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25888
25889# Sed expression to map a string onto a valid variable name.
25890as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25891
25892
25893exec 6>&1
25894
25895# Save the log message, to keep $[0] and so on meaningful, and to
25896# report actual input values of CONFIG_FILES etc. instead of their
25897# values after options handling.
25898ac_log="
25899This file was extended by libX11 $as_me 1.2, which was
25900generated by GNU Autoconf 2.61.  Invocation command line was
25901
25902  CONFIG_FILES    = $CONFIG_FILES
25903  CONFIG_HEADERS  = $CONFIG_HEADERS
25904  CONFIG_LINKS    = $CONFIG_LINKS
25905  CONFIG_COMMANDS = $CONFIG_COMMANDS
25906  $ $0 $@
25907
25908on `(hostname || uname -n) 2>/dev/null | sed 1q`
25909"
25910
25911_ACEOF
25912
25913cat >>$CONFIG_STATUS <<_ACEOF
25914# Files that config.status was made for.
25915config_files="$ac_config_files"
25916config_headers="$ac_config_headers"
25917config_commands="$ac_config_commands"
25918
25919_ACEOF
25920
25921cat >>$CONFIG_STATUS <<\_ACEOF
25922ac_cs_usage="\
25923\`$as_me' instantiates files from templates according to the
25924current configuration.
25925
25926Usage: $0 [OPTIONS] [FILE]...
25927
25928  -h, --help       print this help, then exit
25929  -V, --version    print version number and configuration settings, then exit
25930  -q, --quiet      do not print progress messages
25931  -d, --debug      don't remove temporary files
25932      --recheck    update $as_me by reconfiguring in the same conditions
25933  --file=FILE[:TEMPLATE]
25934		   instantiate the configuration file FILE
25935  --header=FILE[:TEMPLATE]
25936		   instantiate the configuration header FILE
25937
25938Configuration files:
25939$config_files
25940
25941Configuration headers:
25942$config_headers
25943
25944Configuration commands:
25945$config_commands
25946
25947Report bugs to <bug-autoconf@gnu.org>."
25948
25949_ACEOF
25950cat >>$CONFIG_STATUS <<_ACEOF
25951ac_cs_version="\\
25952libX11 config.status 1.2
25953configured by $0, generated by GNU Autoconf 2.61,
25954  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25955
25956Copyright (C) 2006 Free Software Foundation, Inc.
25957This config.status script is free software; the Free Software Foundation
25958gives unlimited permission to copy, distribute and modify it."
25959
25960ac_pwd='$ac_pwd'
25961srcdir='$srcdir'
25962INSTALL='$INSTALL'
25963MKDIR_P='$MKDIR_P'
25964_ACEOF
25965
25966cat >>$CONFIG_STATUS <<\_ACEOF
25967# If no file are specified by the user, then we need to provide default
25968# value.  By we need to know if files were specified by the user.
25969ac_need_defaults=:
25970while test $# != 0
25971do
25972  case $1 in
25973  --*=*)
25974    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25975    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25976    ac_shift=:
25977    ;;
25978  *)
25979    ac_option=$1
25980    ac_optarg=$2
25981    ac_shift=shift
25982    ;;
25983  esac
25984
25985  case $ac_option in
25986  # Handling of the options.
25987  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25988    ac_cs_recheck=: ;;
25989  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25990    echo "$ac_cs_version"; exit ;;
25991  --debug | --debu | --deb | --de | --d | -d )
25992    debug=: ;;
25993  --file | --fil | --fi | --f )
25994    $ac_shift
25995    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25996    ac_need_defaults=false;;
25997  --header | --heade | --head | --hea )
25998    $ac_shift
25999    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26000    ac_need_defaults=false;;
26001  --he | --h)
26002    # Conflict between --help and --header
26003    { echo "$as_me: error: ambiguous option: $1
26004Try \`$0 --help' for more information." >&2
26005   { (exit 1); exit 1; }; };;
26006  --help | --hel | -h )
26007    echo "$ac_cs_usage"; exit ;;
26008  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26009  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26010    ac_cs_silent=: ;;
26011
26012  # This is an error.
26013  -*) { echo "$as_me: error: unrecognized option: $1
26014Try \`$0 --help' for more information." >&2
26015   { (exit 1); exit 1; }; } ;;
26016
26017  *) ac_config_targets="$ac_config_targets $1"
26018     ac_need_defaults=false ;;
26019
26020  esac
26021  shift
26022done
26023
26024ac_configure_extra_args=
26025
26026if $ac_cs_silent; then
26027  exec 6>/dev/null
26028  ac_configure_extra_args="$ac_configure_extra_args --silent"
26029fi
26030
26031_ACEOF
26032cat >>$CONFIG_STATUS <<_ACEOF
26033if \$ac_cs_recheck; then
26034  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26035  CONFIG_SHELL=$SHELL
26036  export CONFIG_SHELL
26037  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26038fi
26039
26040_ACEOF
26041cat >>$CONFIG_STATUS <<\_ACEOF
26042exec 5>>config.log
26043{
26044  echo
26045  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26046## Running $as_me. ##
26047_ASBOX
26048  echo "$ac_log"
26049} >&5
26050
26051_ACEOF
26052cat >>$CONFIG_STATUS <<_ACEOF
26053#
26054# INIT-COMMANDS
26055#
26056AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26057
26058_ACEOF
26059
26060cat >>$CONFIG_STATUS <<\_ACEOF
26061
26062# Handling of arguments.
26063for ac_config_target in $ac_config_targets
26064do
26065  case $ac_config_target in
26066    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
26067    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
26068    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26069    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26070    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26071    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26072    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
26073    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26074    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
26075    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
26076    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
26077    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
26078    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
26079    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
26080    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
26081    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
26082    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
26083    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
26084    "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;;
26085    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
26086    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
26087    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
26088    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
26089    "nls/am_ET.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/am_ET.UTF-8/Makefile" ;;
26090    "nls/armscii-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/armscii-8/Makefile" ;;
26091    "nls/C/Makefile") CONFIG_FILES="$CONFIG_FILES nls/C/Makefile" ;;
26092    "nls/el_GR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/el_GR.UTF-8/Makefile" ;;
26093    "nls/en_US.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/en_US.UTF-8/Makefile" ;;
26094    "nls/georgian-academy/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-academy/Makefile" ;;
26095    "nls/georgian-ps/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-ps/Makefile" ;;
26096    "nls/ibm-cp1133/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ibm-cp1133/Makefile" ;;
26097    "nls/iscii-dev/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iscii-dev/Makefile" ;;
26098    "nls/isiri-3342/Makefile") CONFIG_FILES="$CONFIG_FILES nls/isiri-3342/Makefile" ;;
26099    "nls/iso8859-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-1/Makefile" ;;
26100    "nls/iso8859-10/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-10/Makefile" ;;
26101    "nls/iso8859-11/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-11/Makefile" ;;
26102    "nls/iso8859-13/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-13/Makefile" ;;
26103    "nls/iso8859-14/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-14/Makefile" ;;
26104    "nls/iso8859-15/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-15/Makefile" ;;
26105    "nls/iso8859-2/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-2/Makefile" ;;
26106    "nls/iso8859-3/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-3/Makefile" ;;
26107    "nls/iso8859-4/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-4/Makefile" ;;
26108    "nls/iso8859-5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-5/Makefile" ;;
26109    "nls/iso8859-6/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-6/Makefile" ;;
26110    "nls/iso8859-7/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-7/Makefile" ;;
26111    "nls/iso8859-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-8/Makefile" ;;
26112    "nls/iso8859-9/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9/Makefile" ;;
26113    "nls/iso8859-9e/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9e/Makefile" ;;
26114    "nls/ja/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja/Makefile" ;;
26115    "nls/ja.JIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.JIS/Makefile" ;;
26116    "nls/ja_JP.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja_JP.UTF-8/Makefile" ;;
26117    "nls/ja.S90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.S90/Makefile" ;;
26118    "nls/ja.SJIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.SJIS/Makefile" ;;
26119    "nls/ja.U90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.U90/Makefile" ;;
26120    "nls/ko/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko/Makefile" ;;
26121    "nls/koi8-c/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-c/Makefile" ;;
26122    "nls/koi8-r/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-r/Makefile" ;;
26123    "nls/koi8-u/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-u/Makefile" ;;
26124    "nls/ko_KR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko_KR.UTF-8/Makefile" ;;
26125    "nls/microsoft-cp1251/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1251/Makefile" ;;
26126    "nls/microsoft-cp1255/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1255/Makefile" ;;
26127    "nls/microsoft-cp1256/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1256/Makefile" ;;
26128    "nls/mulelao-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/mulelao-1/Makefile" ;;
26129    "nls/nokhchi-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/nokhchi-1/Makefile" ;;
26130    "nls/pt_BR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/pt_BR.UTF-8/Makefile" ;;
26131    "nls/tatar-cyr/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tatar-cyr/Makefile" ;;
26132    "nls/th_TH/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH/Makefile" ;;
26133    "nls/th_TH.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH.UTF-8/Makefile" ;;
26134    "nls/tscii-0/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tscii-0/Makefile" ;;
26135    "nls/vi_VN.tcvn/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.tcvn/Makefile" ;;
26136    "nls/vi_VN.viscii/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.viscii/Makefile" ;;
26137    "nls/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN/Makefile" ;;
26138    "nls/zh_CN.gb18030/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gb18030/Makefile" ;;
26139    "nls/zh_CN.gbk/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gbk/Makefile" ;;
26140    "nls/zh_CN.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.UTF-8/Makefile" ;;
26141    "nls/zh_HK.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5/Makefile" ;;
26142    "nls/zh_HK.big5hkscs/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5hkscs/Makefile" ;;
26143    "nls/zh_HK.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.UTF-8/Makefile" ;;
26144    "nls/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW/Makefile" ;;
26145    "nls/zh_TW.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.big5/Makefile" ;;
26146    "nls/zh_TW.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.UTF-8/Makefile" ;;
26147    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
26148    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
26149
26150  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26151echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26152   { (exit 1); exit 1; }; };;
26153  esac
26154done
26155
26156
26157# If the user did not use the arguments to specify the items to instantiate,
26158# then the envvar interface is used.  Set only those that are not.
26159# We use the long form for the default assignment because of an extremely
26160# bizarre bug on SunOS 4.1.3.
26161if $ac_need_defaults; then
26162  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26163  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26164  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26165fi
26166
26167# Have a temporary directory for convenience.  Make it in the build tree
26168# simply because there is no reason against having it here, and in addition,
26169# creating and moving files from /tmp can sometimes cause problems.
26170# Hook for its removal unless debugging.
26171# Note that there is a small window in which the directory will not be cleaned:
26172# after its creation but before its name has been assigned to `$tmp'.
26173$debug ||
26174{
26175  tmp=
26176  trap 'exit_status=$?
26177  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26178' 0
26179  trap '{ (exit 1); exit 1; }' 1 2 13 15
26180}
26181# Create a (secure) tmp directory for tmp files.
26182
26183{
26184  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26185  test -n "$tmp" && test -d "$tmp"
26186}  ||
26187{
26188  tmp=./conf$$-$RANDOM
26189  (umask 077 && mkdir "$tmp")
26190} ||
26191{
26192   echo "$me: cannot create a temporary directory in ." >&2
26193   { (exit 1); exit 1; }
26194}
26195
26196#
26197# Set up the sed scripts for CONFIG_FILES section.
26198#
26199
26200# No need to generate the scripts if there are no CONFIG_FILES.
26201# This happens for instance when ./config.status config.h
26202if test -n "$CONFIG_FILES"; then
26203
26204_ACEOF
26205
26206
26207
26208ac_delim='%!_!# '
26209for ac_last_try in false false false false false :; do
26210  cat >conf$$subs.sed <<_ACEOF
26211SHELL!$SHELL$ac_delim
26212PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26213PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26214PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26215PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26216PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26217PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26218exec_prefix!$exec_prefix$ac_delim
26219prefix!$prefix$ac_delim
26220program_transform_name!$program_transform_name$ac_delim
26221bindir!$bindir$ac_delim
26222sbindir!$sbindir$ac_delim
26223libexecdir!$libexecdir$ac_delim
26224datarootdir!$datarootdir$ac_delim
26225datadir!$datadir$ac_delim
26226sysconfdir!$sysconfdir$ac_delim
26227sharedstatedir!$sharedstatedir$ac_delim
26228localstatedir!$localstatedir$ac_delim
26229includedir!$includedir$ac_delim
26230oldincludedir!$oldincludedir$ac_delim
26231docdir!$docdir$ac_delim
26232infodir!$infodir$ac_delim
26233htmldir!$htmldir$ac_delim
26234dvidir!$dvidir$ac_delim
26235pdfdir!$pdfdir$ac_delim
26236psdir!$psdir$ac_delim
26237libdir!$libdir$ac_delim
26238localedir!$localedir$ac_delim
26239mandir!$mandir$ac_delim
26240DEFS!$DEFS$ac_delim
26241ECHO_C!$ECHO_C$ac_delim
26242ECHO_N!$ECHO_N$ac_delim
26243ECHO_T!$ECHO_T$ac_delim
26244LIBS!$LIBS$ac_delim
26245build_alias!$build_alias$ac_delim
26246host_alias!$host_alias$ac_delim
26247target_alias!$target_alias$ac_delim
26248INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26249INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26250INSTALL_DATA!$INSTALL_DATA$ac_delim
26251am__isrc!$am__isrc$ac_delim
26252CYGPATH_W!$CYGPATH_W$ac_delim
26253PACKAGE!$PACKAGE$ac_delim
26254VERSION!$VERSION$ac_delim
26255ACLOCAL!$ACLOCAL$ac_delim
26256AUTOCONF!$AUTOCONF$ac_delim
26257AUTOMAKE!$AUTOMAKE$ac_delim
26258AUTOHEADER!$AUTOHEADER$ac_delim
26259MAKEINFO!$MAKEINFO$ac_delim
26260install_sh!$install_sh$ac_delim
26261STRIP!$STRIP$ac_delim
26262INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26263mkdir_p!$mkdir_p$ac_delim
26264AWK!$AWK$ac_delim
26265SET_MAKE!$SET_MAKE$ac_delim
26266am__leading_dot!$am__leading_dot$ac_delim
26267AMTAR!$AMTAR$ac_delim
26268am__tar!$am__tar$ac_delim
26269am__untar!$am__untar$ac_delim
26270MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26271MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26272MAINT!$MAINT$ac_delim
26273build!$build$ac_delim
26274build_cpu!$build_cpu$ac_delim
26275build_vendor!$build_vendor$ac_delim
26276build_os!$build_os$ac_delim
26277host!$host$ac_delim
26278host_cpu!$host_cpu$ac_delim
26279host_vendor!$host_vendor$ac_delim
26280host_os!$host_os$ac_delim
26281CC!$CC$ac_delim
26282CFLAGS!$CFLAGS$ac_delim
26283LDFLAGS!$LDFLAGS$ac_delim
26284CPPFLAGS!$CPPFLAGS$ac_delim
26285ac_ct_CC!$ac_ct_CC$ac_delim
26286EXEEXT!$EXEEXT$ac_delim
26287OBJEXT!$OBJEXT$ac_delim
26288DEPDIR!$DEPDIR$ac_delim
26289am__include!$am__include$ac_delim
26290am__quote!$am__quote$ac_delim
26291AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26292AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26293AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26294CCDEPMODE!$CCDEPMODE$ac_delim
26295am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26296am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26297SED!$SED$ac_delim
26298GREP!$GREP$ac_delim
26299EGREP!$EGREP$ac_delim
26300LN_S!$LN_S$ac_delim
26301ECHO!$ECHO$ac_delim
26302AR!$AR$ac_delim
26303RANLIB!$RANLIB$ac_delim
26304DSYMUTIL!$DSYMUTIL$ac_delim
26305NMEDIT!$NMEDIT$ac_delim
26306CPP!$CPP$ac_delim
26307CXX!$CXX$ac_delim
26308_ACEOF
26309
26310  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26311    break
26312  elif $ac_last_try; then
26313    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26314echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26315   { (exit 1); exit 1; }; }
26316  else
26317    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26318  fi
26319done
26320
26321ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26322if test -n "$ac_eof"; then
26323  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26324  ac_eof=`expr $ac_eof + 1`
26325fi
26326
26327cat >>$CONFIG_STATUS <<_ACEOF
26328cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26329/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26330_ACEOF
26331sed '
26332s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26333s/^/s,@/; s/!/@,|#_!!_#|/
26334:n
26335t n
26336s/'"$ac_delim"'$/,g/; t
26337s/$/\\/; p
26338N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26339' >>$CONFIG_STATUS <conf$$subs.sed
26340rm -f conf$$subs.sed
26341cat >>$CONFIG_STATUS <<_ACEOF
26342CEOF$ac_eof
26343_ACEOF
26344
26345
26346ac_delim='%!_!# '
26347for ac_last_try in false false false false false :; do
26348  cat >conf$$subs.sed <<_ACEOF
26349CXXFLAGS!$CXXFLAGS$ac_delim
26350ac_ct_CXX!$ac_ct_CXX$ac_delim
26351CXXDEPMODE!$CXXDEPMODE$ac_delim
26352am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26353am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26354CXXCPP!$CXXCPP$ac_delim
26355F77!$F77$ac_delim
26356FFLAGS!$FFLAGS$ac_delim
26357ac_ct_F77!$ac_ct_F77$ac_delim
26358LIBTOOL!$LIBTOOL$ac_delim
26359DOLT_BASH!$DOLT_BASH$ac_delim
26360LTCOMPILE!$LTCOMPILE$ac_delim
26361LTCXXCOMPILE!$LTCXXCOMPILE$ac_delim
26362CWARNFLAGS!$CWARNFLAGS$ac_delim
26363CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
26364RAWCPP!$RAWCPP$ac_delim
26365RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
26366XCB_TRUE!$XCB_TRUE$ac_delim
26367XCB_FALSE!$XCB_FALSE$ac_delim
26368PKG_CONFIG!$PKG_CONFIG$ac_delim
26369XPROTO_CFLAGS!$XPROTO_CFLAGS$ac_delim
26370XPROTO_LIBS!$XPROTO_LIBS$ac_delim
26371XDMCP_CFLAGS!$XDMCP_CFLAGS$ac_delim
26372XDMCP_LIBS!$XDMCP_LIBS$ac_delim
26373X11_EXTRA_DEPS!$X11_EXTRA_DEPS$ac_delim
26374X11_CFLAGS!$X11_CFLAGS$ac_delim
26375X11_LIBS!$X11_LIBS$ac_delim
26376I18N_MODULE_LIBS!$I18N_MODULE_LIBS$ac_delim
26377XLIB_LOADABLE_I18N_TRUE!$XLIB_LOADABLE_I18N_TRUE$ac_delim
26378XLIB_LOADABLE_I18N_FALSE!$XLIB_LOADABLE_I18N_FALSE$ac_delim
26379WCHAR32!$WCHAR32$ac_delim
26380OS2_TRUE!$OS2_TRUE$ac_delim
26381OS2_FALSE!$OS2_FALSE$ac_delim
26382LAUNCHD!$LAUNCHD$ac_delim
26383THRSTUBS_TRUE!$THRSTUBS_TRUE$ac_delim
26384THRSTUBS_FALSE!$THRSTUBS_FALSE$ac_delim
26385XTHREADLIB!$XTHREADLIB$ac_delim
26386XTHREAD_CFLAGS!$XTHREAD_CFLAGS$ac_delim
26387KEYSYMDEF!$KEYSYMDEF$ac_delim
26388UDC_TRUE!$UDC_TRUE$ac_delim
26389UDC_FALSE!$UDC_FALSE$ac_delim
26390XCMS_TRUE!$XCMS_TRUE$ac_delim
26391XCMS_FALSE!$XCMS_FALSE$ac_delim
26392XLOCALE_TRUE!$XLOCALE_TRUE$ac_delim
26393XLOCALE_FALSE!$XLOCALE_FALSE$ac_delim
26394BIGFONT_CFLAGS!$BIGFONT_CFLAGS$ac_delim
26395BIGFONT_LIBS!$BIGFONT_LIBS$ac_delim
26396APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
26397LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
26398FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
26399MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
26400DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
26401ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
26402APP_MAN_DIR!$APP_MAN_DIR$ac_delim
26403LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
26404FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
26405MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
26406DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
26407ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
26408MANPAGES_TRUE!$MANPAGES_TRUE$ac_delim
26409MANPAGES_FALSE!$MANPAGES_FALSE$ac_delim
26410XKB_TRUE!$XKB_TRUE$ac_delim
26411XKB_FALSE!$XKB_FALSE$ac_delim
26412XKBPROTO_CFLAGS!$XKBPROTO_CFLAGS$ac_delim
26413XKBPROTO_LIBS!$XKBPROTO_LIBS$ac_delim
26414XKBPROTO_REQUIRES!$XKBPROTO_REQUIRES$ac_delim
26415LINT!$LINT$ac_delim
26416LINT_FLAGS!$LINT_FLAGS$ac_delim
26417LINT_TRUE!$LINT_TRUE$ac_delim
26418LINT_FALSE!$LINT_FALSE$ac_delim
26419LINTLIB!$LINTLIB$ac_delim
26420MAKE_LINT_LIB_TRUE!$MAKE_LINT_LIB_TRUE$ac_delim
26421MAKE_LINT_LIB_FALSE!$MAKE_LINT_LIB_FALSE$ac_delim
26422X11_DATADIR!$X11_DATADIR$ac_delim
26423X11_LIBDIR!$X11_LIBDIR$ac_delim
26424XLOCALEDATADIR!$XLOCALEDATADIR$ac_delim
26425X11_LOCALEDATADIR!$X11_LOCALEDATADIR$ac_delim
26426XLOCALELIBDIR!$XLOCALELIBDIR$ac_delim
26427X11_LOCALELIBDIR!$X11_LOCALELIBDIR$ac_delim
26428XLOCALEDIR!$XLOCALEDIR$ac_delim
26429X11_LOCALEDIR!$X11_LOCALEDIR$ac_delim
26430XKEYSYMDB!$XKEYSYMDB$ac_delim
26431XERRORDB!$XERRORDB$ac_delim
26432MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim
26433XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim
26434XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim
26435CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
26436distcleancheck_listfiles!$distcleancheck_listfiles$ac_delim
26437LIBOBJS!$LIBOBJS$ac_delim
26438LTLIBOBJS!$LTLIBOBJS$ac_delim
26439_ACEOF
26440
26441  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
26442    break
26443  elif $ac_last_try; then
26444    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26445echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26446   { (exit 1); exit 1; }; }
26447  else
26448    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26449  fi
26450done
26451
26452ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26453if test -n "$ac_eof"; then
26454  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26455  ac_eof=`expr $ac_eof + 1`
26456fi
26457
26458cat >>$CONFIG_STATUS <<_ACEOF
26459cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26460/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26461_ACEOF
26462sed '
26463s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26464s/^/s,@/; s/!/@,|#_!!_#|/
26465:n
26466t n
26467s/'"$ac_delim"'$/,g/; t
26468s/$/\\/; p
26469N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26470' >>$CONFIG_STATUS <conf$$subs.sed
26471rm -f conf$$subs.sed
26472cat >>$CONFIG_STATUS <<_ACEOF
26473:end
26474s/|#_!!_#|//g
26475CEOF$ac_eof
26476_ACEOF
26477
26478
26479# VPATH may cause trouble with some makes, so we remove $(srcdir),
26480# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26481# trailing colons and then remove the whole line if VPATH becomes empty
26482# (actually we leave an empty line to preserve line numbers).
26483if test "x$srcdir" = x.; then
26484  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
26485s/:*\$(srcdir):*/:/
26486s/:*\${srcdir}:*/:/
26487s/:*@srcdir@:*/:/
26488s/^\([^=]*=[	 ]*\):*/\1/
26489s/:*$//
26490s/^[^=]*=[	 ]*$//
26491}'
26492fi
26493
26494cat >>$CONFIG_STATUS <<\_ACEOF
26495fi # test -n "$CONFIG_FILES"
26496
26497
26498for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26499do
26500  case $ac_tag in
26501  :[FHLC]) ac_mode=$ac_tag; continue;;
26502  esac
26503  case $ac_mode$ac_tag in
26504  :[FHL]*:*);;
26505  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26506echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26507   { (exit 1); exit 1; }; };;
26508  :[FH]-) ac_tag=-:-;;
26509  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26510  esac
26511  ac_save_IFS=$IFS
26512  IFS=:
26513  set x $ac_tag
26514  IFS=$ac_save_IFS
26515  shift
26516  ac_file=$1
26517  shift
26518
26519  case $ac_mode in
26520  :L) ac_source=$1;;
26521  :[FH])
26522    ac_file_inputs=
26523    for ac_f
26524    do
26525      case $ac_f in
26526      -) ac_f="$tmp/stdin";;
26527      *) # Look for the file first in the build tree, then in the source tree
26528	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26529	 # because $ac_f cannot contain `:'.
26530	 test -f "$ac_f" ||
26531	   case $ac_f in
26532	   [\\/$]*) false;;
26533	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26534	   esac ||
26535	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26536echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26537   { (exit 1); exit 1; }; };;
26538      esac
26539      ac_file_inputs="$ac_file_inputs $ac_f"
26540    done
26541
26542    # Let's still pretend it is `configure' which instantiates (i.e., don't
26543    # use $as_me), people would be surprised to read:
26544    #    /* config.h.  Generated by config.status.  */
26545    configure_input="Generated from "`IFS=:
26546	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26547    if test x"$ac_file" != x-; then
26548      configure_input="$ac_file.  $configure_input"
26549      { echo "$as_me:$LINENO: creating $ac_file" >&5
26550echo "$as_me: creating $ac_file" >&6;}
26551    fi
26552
26553    case $ac_tag in
26554    *:-:* | *:-) cat >"$tmp/stdin";;
26555    esac
26556    ;;
26557  esac
26558
26559  ac_dir=`$as_dirname -- "$ac_file" ||
26560$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26561	 X"$ac_file" : 'X\(//\)[^/]' \| \
26562	 X"$ac_file" : 'X\(//\)$' \| \
26563	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26564echo X"$ac_file" |
26565    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26566	    s//\1/
26567	    q
26568	  }
26569	  /^X\(\/\/\)[^/].*/{
26570	    s//\1/
26571	    q
26572	  }
26573	  /^X\(\/\/\)$/{
26574	    s//\1/
26575	    q
26576	  }
26577	  /^X\(\/\).*/{
26578	    s//\1/
26579	    q
26580	  }
26581	  s/.*/./; q'`
26582  { as_dir="$ac_dir"
26583  case $as_dir in #(
26584  -*) as_dir=./$as_dir;;
26585  esac
26586  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26587    as_dirs=
26588    while :; do
26589      case $as_dir in #(
26590      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26591      *) as_qdir=$as_dir;;
26592      esac
26593      as_dirs="'$as_qdir' $as_dirs"
26594      as_dir=`$as_dirname -- "$as_dir" ||
26595$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26596	 X"$as_dir" : 'X\(//\)[^/]' \| \
26597	 X"$as_dir" : 'X\(//\)$' \| \
26598	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26599echo X"$as_dir" |
26600    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26601	    s//\1/
26602	    q
26603	  }
26604	  /^X\(\/\/\)[^/].*/{
26605	    s//\1/
26606	    q
26607	  }
26608	  /^X\(\/\/\)$/{
26609	    s//\1/
26610	    q
26611	  }
26612	  /^X\(\/\).*/{
26613	    s//\1/
26614	    q
26615	  }
26616	  s/.*/./; q'`
26617      test -d "$as_dir" && break
26618    done
26619    test -z "$as_dirs" || eval "mkdir $as_dirs"
26620  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26621echo "$as_me: error: cannot create directory $as_dir" >&2;}
26622   { (exit 1); exit 1; }; }; }
26623  ac_builddir=.
26624
26625case "$ac_dir" in
26626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26627*)
26628  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26629  # A ".." for each directory in $ac_dir_suffix.
26630  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26631  case $ac_top_builddir_sub in
26632  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26633  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26634  esac ;;
26635esac
26636ac_abs_top_builddir=$ac_pwd
26637ac_abs_builddir=$ac_pwd$ac_dir_suffix
26638# for backward compatibility:
26639ac_top_builddir=$ac_top_build_prefix
26640
26641case $srcdir in
26642  .)  # We are building in place.
26643    ac_srcdir=.
26644    ac_top_srcdir=$ac_top_builddir_sub
26645    ac_abs_top_srcdir=$ac_pwd ;;
26646  [\\/]* | ?:[\\/]* )  # Absolute name.
26647    ac_srcdir=$srcdir$ac_dir_suffix;
26648    ac_top_srcdir=$srcdir
26649    ac_abs_top_srcdir=$srcdir ;;
26650  *) # Relative name.
26651    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26652    ac_top_srcdir=$ac_top_build_prefix$srcdir
26653    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26654esac
26655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26656
26657
26658  case $ac_mode in
26659  :F)
26660  #
26661  # CONFIG_FILE
26662  #
26663
26664  case $INSTALL in
26665  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26666  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26667  esac
26668  ac_MKDIR_P=$MKDIR_P
26669  case $MKDIR_P in
26670  [\\/$]* | ?:[\\/]* ) ;;
26671  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26672  esac
26673_ACEOF
26674
26675cat >>$CONFIG_STATUS <<\_ACEOF
26676# If the template does not know about datarootdir, expand it.
26677# FIXME: This hack should be removed a few years after 2.60.
26678ac_datarootdir_hack=; ac_datarootdir_seen=
26679
26680case `sed -n '/datarootdir/ {
26681  p
26682  q
26683}
26684/@datadir@/p
26685/@docdir@/p
26686/@infodir@/p
26687/@localedir@/p
26688/@mandir@/p
26689' $ac_file_inputs` in
26690*datarootdir*) ac_datarootdir_seen=yes;;
26691*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26692  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26693echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26694_ACEOF
26695cat >>$CONFIG_STATUS <<_ACEOF
26696  ac_datarootdir_hack='
26697  s&@datadir@&$datadir&g
26698  s&@docdir@&$docdir&g
26699  s&@infodir@&$infodir&g
26700  s&@localedir@&$localedir&g
26701  s&@mandir@&$mandir&g
26702    s&\\\${datarootdir}&$datarootdir&g' ;;
26703esac
26704_ACEOF
26705
26706# Neutralize VPATH when `$srcdir' = `.'.
26707# Shell code in configure.ac might set extrasub.
26708# FIXME: do we really want to maintain this feature?
26709cat >>$CONFIG_STATUS <<_ACEOF
26710  sed "$ac_vpsub
26711$extrasub
26712_ACEOF
26713cat >>$CONFIG_STATUS <<\_ACEOF
26714:t
26715/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26716s&@configure_input@&$configure_input&;t t
26717s&@top_builddir@&$ac_top_builddir_sub&;t t
26718s&@srcdir@&$ac_srcdir&;t t
26719s&@abs_srcdir@&$ac_abs_srcdir&;t t
26720s&@top_srcdir@&$ac_top_srcdir&;t t
26721s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26722s&@builddir@&$ac_builddir&;t t
26723s&@abs_builddir@&$ac_abs_builddir&;t t
26724s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26725s&@INSTALL@&$ac_INSTALL&;t t
26726s&@MKDIR_P@&$ac_MKDIR_P&;t t
26727$ac_datarootdir_hack
26728" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26729
26730test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26731  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26732  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26733  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26734which seems to be undefined.  Please make sure it is defined." >&5
26735echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26736which seems to be undefined.  Please make sure it is defined." >&2;}
26737
26738  rm -f "$tmp/stdin"
26739  case $ac_file in
26740  -) cat "$tmp/out"; rm -f "$tmp/out";;
26741  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26742  esac
26743 ;;
26744  :H)
26745  #
26746  # CONFIG_HEADER
26747  #
26748_ACEOF
26749
26750# Transform confdefs.h into a sed script `conftest.defines', that
26751# substitutes the proper values into config.h.in to produce config.h.
26752rm -f conftest.defines conftest.tail
26753# First, append a space to every undef/define line, to ease matching.
26754echo 's/$/ /' >conftest.defines
26755# Then, protect against being on the right side of a sed subst, or in
26756# an unquoted here document, in config.status.  If some macros were
26757# called several times there might be several #defines for the same
26758# symbol, which is useless.  But do not sort them, since the last
26759# AC_DEFINE must be honored.
26760ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26761# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26762# NAME is the cpp macro being defined, VALUE is the value it is being given.
26763# PARAMS is the parameter list in the macro definition--in most cases, it's
26764# just an empty string.
26765ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
26766ac_dB='\\)[	 (].*,\\1define\\2'
26767ac_dC=' '
26768ac_dD=' ,'
26769
26770uniq confdefs.h |
26771  sed -n '
26772	t rset
26773	:rset
26774	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
26775	t ok
26776	d
26777	:ok
26778	s/[\\&,]/\\&/g
26779	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26780	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26781  ' >>conftest.defines
26782
26783# Remove the space that was appended to ease matching.
26784# Then replace #undef with comments.  This is necessary, for
26785# example, in the case of _POSIX_SOURCE, which is predefined and required
26786# on some systems where configure will not decide to define it.
26787# (The regexp can be short, since the line contains either #define or #undef.)
26788echo 's/ $//
26789s,^[	 #]*u.*,/* & */,' >>conftest.defines
26790
26791# Break up conftest.defines:
26792ac_max_sed_lines=50
26793
26794# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26795# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26796# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26797# et cetera.
26798ac_in='$ac_file_inputs'
26799ac_out='"$tmp/out1"'
26800ac_nxt='"$tmp/out2"'
26801
26802while :
26803do
26804  # Write a here document:
26805    cat >>$CONFIG_STATUS <<_ACEOF
26806    # First, check the format of the line:
26807    cat >"\$tmp/defines.sed" <<\\CEOF
26808/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
26809/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
26810b
26811:def
26812_ACEOF
26813  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26814  echo 'CEOF
26815    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26816  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26817  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26818  grep . conftest.tail >/dev/null || break
26819  rm -f conftest.defines
26820  mv conftest.tail conftest.defines
26821done
26822rm -f conftest.defines conftest.tail
26823
26824echo "ac_result=$ac_in" >>$CONFIG_STATUS
26825cat >>$CONFIG_STATUS <<\_ACEOF
26826  if test x"$ac_file" != x-; then
26827    echo "/* $configure_input  */" >"$tmp/config.h"
26828    cat "$ac_result" >>"$tmp/config.h"
26829    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26830      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26831echo "$as_me: $ac_file is unchanged" >&6;}
26832    else
26833      rm -f $ac_file
26834      mv "$tmp/config.h" $ac_file
26835    fi
26836  else
26837    echo "/* $configure_input  */"
26838    cat "$ac_result"
26839  fi
26840  rm -f "$tmp/out12"
26841# Compute $ac_file's index in $config_headers.
26842_am_arg=$ac_file
26843_am_stamp_count=1
26844for _am_header in $config_headers :; do
26845  case $_am_header in
26846    $_am_arg | $_am_arg:* )
26847      break ;;
26848    * )
26849      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26850  esac
26851done
26852echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26853$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26854	 X"$_am_arg" : 'X\(//\)[^/]' \| \
26855	 X"$_am_arg" : 'X\(//\)$' \| \
26856	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26857echo X"$_am_arg" |
26858    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26859	    s//\1/
26860	    q
26861	  }
26862	  /^X\(\/\/\)[^/].*/{
26863	    s//\1/
26864	    q
26865	  }
26866	  /^X\(\/\/\)$/{
26867	    s//\1/
26868	    q
26869	  }
26870	  /^X\(\/\).*/{
26871	    s//\1/
26872	    q
26873	  }
26874	  s/.*/./; q'`/stamp-h$_am_stamp_count
26875 ;;
26876
26877  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26878echo "$as_me: executing $ac_file commands" >&6;}
26879 ;;
26880  esac
26881
26882
26883  case $ac_file$ac_mode in
26884    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26885  # Strip MF so we end up with the name of the file.
26886  mf=`echo "$mf" | sed -e 's/:.*$//'`
26887  # Check whether this is an Automake generated Makefile or not.
26888  # We used to match only the files named `Makefile.in', but
26889  # some people rename them; so instead we look at the file content.
26890  # Grep'ing the first line is not enough: some people post-process
26891  # each Makefile.in and add a new line on top of each file to say so.
26892  # Grep'ing the whole file is not good either: AIX grep has a line
26893  # limit of 2048, but all sed's we know have understand at least 4000.
26894  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26895    dirpart=`$as_dirname -- "$mf" ||
26896$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26897	 X"$mf" : 'X\(//\)[^/]' \| \
26898	 X"$mf" : 'X\(//\)$' \| \
26899	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26900echo X"$mf" |
26901    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26902	    s//\1/
26903	    q
26904	  }
26905	  /^X\(\/\/\)[^/].*/{
26906	    s//\1/
26907	    q
26908	  }
26909	  /^X\(\/\/\)$/{
26910	    s//\1/
26911	    q
26912	  }
26913	  /^X\(\/\).*/{
26914	    s//\1/
26915	    q
26916	  }
26917	  s/.*/./; q'`
26918  else
26919    continue
26920  fi
26921  # Extract the definition of DEPDIR, am__include, and am__quote
26922  # from the Makefile without running `make'.
26923  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26924  test -z "$DEPDIR" && continue
26925  am__include=`sed -n 's/^am__include = //p' < "$mf"`
26926  test -z "am__include" && continue
26927  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26928  # When using ansi2knr, U may be empty or an underscore; expand it
26929  U=`sed -n 's/^U = //p' < "$mf"`
26930  # Find all dependency output files, they are included files with
26931  # $(DEPDIR) in their names.  We invoke sed twice because it is the
26932  # simplest approach to changing $(DEPDIR) to its actual value in the
26933  # expansion.
26934  for file in `sed -n "
26935    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26936       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26937    # Make sure the directory exists.
26938    test -f "$dirpart/$file" && continue
26939    fdir=`$as_dirname -- "$file" ||
26940$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26941	 X"$file" : 'X\(//\)[^/]' \| \
26942	 X"$file" : 'X\(//\)$' \| \
26943	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26944echo X"$file" |
26945    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26946	    s//\1/
26947	    q
26948	  }
26949	  /^X\(\/\/\)[^/].*/{
26950	    s//\1/
26951	    q
26952	  }
26953	  /^X\(\/\/\)$/{
26954	    s//\1/
26955	    q
26956	  }
26957	  /^X\(\/\).*/{
26958	    s//\1/
26959	    q
26960	  }
26961	  s/.*/./; q'`
26962    { as_dir=$dirpart/$fdir
26963  case $as_dir in #(
26964  -*) as_dir=./$as_dir;;
26965  esac
26966  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26967    as_dirs=
26968    while :; do
26969      case $as_dir in #(
26970      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26971      *) as_qdir=$as_dir;;
26972      esac
26973      as_dirs="'$as_qdir' $as_dirs"
26974      as_dir=`$as_dirname -- "$as_dir" ||
26975$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26976	 X"$as_dir" : 'X\(//\)[^/]' \| \
26977	 X"$as_dir" : 'X\(//\)$' \| \
26978	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26979echo X"$as_dir" |
26980    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26981	    s//\1/
26982	    q
26983	  }
26984	  /^X\(\/\/\)[^/].*/{
26985	    s//\1/
26986	    q
26987	  }
26988	  /^X\(\/\/\)$/{
26989	    s//\1/
26990	    q
26991	  }
26992	  /^X\(\/\).*/{
26993	    s//\1/
26994	    q
26995	  }
26996	  s/.*/./; q'`
26997      test -d "$as_dir" && break
26998    done
26999    test -z "$as_dirs" || eval "mkdir $as_dirs"
27000  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27001echo "$as_me: error: cannot create directory $as_dir" >&2;}
27002   { (exit 1); exit 1; }; }; }
27003    # echo "creating $dirpart/$file"
27004    echo '# dummy' > "$dirpart/$file"
27005  done
27006done
27007 ;;
27008
27009  esac
27010done # for ac_tag
27011
27012
27013{ (exit 0); exit 0; }
27014_ACEOF
27015chmod +x $CONFIG_STATUS
27016ac_clean_files=$ac_clean_files_save
27017
27018
27019# configure is writing to config.log, and then calls config.status.
27020# config.status does its own redirection, appending to config.log.
27021# Unfortunately, on DOS this fails, as config.log is still kept open
27022# by configure, so config.status won't be able to write to it; its
27023# output is simply discarded.  So we exec the FD to /dev/null,
27024# effectively closing config.log, so it can be properly (re)opened and
27025# appended to by config.status.  When coming back to configure, we
27026# need to make the FD available again.
27027if test "$no_create" != yes; then
27028  ac_cs_success=:
27029  ac_config_status_args=
27030  test "$silent" = yes &&
27031    ac_config_status_args="$ac_config_status_args --quiet"
27032  exec 5>/dev/null
27033  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27034  exec 5>>config.log
27035  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27036  # would make configure fail if this is the last instruction.
27037  $ac_cs_success || { (exit 1); exit 1; }
27038fi
27039
27040
27041man_pages_suffix=$LIBMAN_SUFFIX
27042if test -z "$man_pages_suffix"; then
27043    man_pages_suffix=none
27044fi
27045
27046echo ""
27047echo "X11 will be built with the following settings:"
27048echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
27049echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
27050echo " Use XCB:                                 "$ac_cv_use_xcb
27051echo " Threading support:                       "$xthreads
27052echo " Use Threads safe API:                    "$mtsafeapi
27053echo " Threads stubs in libX11:                 "$thrstubs
27054echo " XCMS:                                    "$XCMS
27055echo " Internationalization support:            "$XLOCALE
27056echo " XF86BigFont support:                     "$XF86BIGFONT
27057echo " XKB support:                             "$XKB
27058echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
27059echo " Manual pages suffix:                     "$man_pages_suffix
27060echo " Compose table cache enabled:             "$COMPOSECACHE
27061echo ""
27062