configure revision 7a84e134
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for libXaw 1.0.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='libXaw'
730PACKAGE_TARNAME='libXaw'
731PACKAGE_VERSION='1.0.4'
732PACKAGE_STRING='libXaw 1.0.4'
733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735# Factoring default headers for most tests.
736ac_includes_default="\
737#include <stdio.h>
738#ifdef HAVE_SYS_TYPES_H
739# include <sys/types.h>
740#endif
741#ifdef HAVE_SYS_STAT_H
742# include <sys/stat.h>
743#endif
744#ifdef STDC_HEADERS
745# include <stdlib.h>
746# include <stddef.h>
747#else
748# ifdef HAVE_STDLIB_H
749#  include <stdlib.h>
750# endif
751#endif
752#ifdef HAVE_STRING_H
753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754#  include <memory.h>
755# endif
756# include <string.h>
757#endif
758#ifdef HAVE_STRINGS_H
759# include <strings.h>
760#endif
761#ifdef HAVE_INTTYPES_H
762# include <inttypes.h>
763#endif
764#ifdef HAVE_STDINT_H
765# include <stdint.h>
766#endif
767#ifdef HAVE_UNISTD_H
768# include <unistd.h>
769#endif"
770
771ac_subst_vars='SHELL
772PATH_SEPARATOR
773PACKAGE_NAME
774PACKAGE_TARNAME
775PACKAGE_VERSION
776PACKAGE_STRING
777PACKAGE_BUGREPORT
778exec_prefix
779prefix
780program_transform_name
781bindir
782sbindir
783libexecdir
784datarootdir
785datadir
786sysconfdir
787sharedstatedir
788localstatedir
789includedir
790oldincludedir
791docdir
792infodir
793htmldir
794dvidir
795pdfdir
796psdir
797libdir
798localedir
799mandir
800DEFS
801ECHO_C
802ECHO_N
803ECHO_T
804LIBS
805build_alias
806host_alias
807target_alias
808INSTALL_PROGRAM
809INSTALL_SCRIPT
810INSTALL_DATA
811am__isrc
812CYGPATH_W
813PACKAGE
814VERSION
815ACLOCAL
816AUTOCONF
817AUTOMAKE
818AUTOHEADER
819MAKEINFO
820install_sh
821STRIP
822INSTALL_STRIP_PROGRAM
823mkdir_p
824AWK
825SET_MAKE
826am__leading_dot
827AMTAR
828am__tar
829am__untar
830CC
831CFLAGS
832LDFLAGS
833CPPFLAGS
834ac_ct_CC
835EXEEXT
836OBJEXT
837DEPDIR
838am__include
839am__quote
840AMDEP_TRUE
841AMDEP_FALSE
842AMDEPBACKSLASH
843CCDEPMODE
844am__fastdepCC_TRUE
845am__fastdepCC_FALSE
846build
847build_cpu
848build_vendor
849build_os
850host
851host_cpu
852host_vendor
853host_os
854GREP
855EGREP
856LN_S
857ECHO
858AR
859RANLIB
860CPP
861CXX
862CXXFLAGS
863ac_ct_CXX
864CXXDEPMODE
865am__fastdepCXX_TRUE
866am__fastdepCXX_FALSE
867CXXCPP
868F77
869FFLAGS
870ac_ct_F77
871LIBTOOL
872PKG_CONFIG
873PLATFORM_WIN32_TRUE
874PLATFORM_WIN32_FALSE
875XAW6_CFLAGS
876XAW6_LIBS
877XAW7_CFLAGS
878XAW7_LIBS
879XPRINT_CFLAGS
880XPRINT_LIBS
881XAW8_CFLAGS
882XAW8_LIBS
883BUILD_XAW6_TRUE
884BUILD_XAW6_FALSE
885BUILD_XAW7_TRUE
886BUILD_XAW7_FALSE
887BUILD_XAW8_TRUE
888BUILD_XAW8_FALSE
889APP_MAN_SUFFIX
890LIB_MAN_SUFFIX
891FILE_MAN_SUFFIX
892MISC_MAN_SUFFIX
893DRIVER_MAN_SUFFIX
894ADMIN_MAN_SUFFIX
895APP_MAN_DIR
896LIB_MAN_DIR
897FILE_MAN_DIR
898MISC_MAN_DIR
899DRIVER_MAN_DIR
900ADMIN_MAN_DIR
901LIBOBJS
902LTLIBOBJS'
903ac_subst_files=''
904      ac_precious_vars='build_alias
905host_alias
906target_alias
907CC
908CFLAGS
909LDFLAGS
910LIBS
911CPPFLAGS
912CPP
913CXX
914CXXFLAGS
915CCC
916CXXCPP
917F77
918FFLAGS
919PKG_CONFIG
920XAW6_CFLAGS
921XAW6_LIBS
922XAW7_CFLAGS
923XAW7_LIBS
924XPRINT_CFLAGS
925XPRINT_LIBS
926XAW8_CFLAGS
927XAW8_LIBS'
928
929
930# Initialize some variables set by options.
931ac_init_help=
932ac_init_version=false
933# The variables have the same names as the options, with
934# dashes changed to underlines.
935cache_file=/dev/null
936exec_prefix=NONE
937no_create=
938no_recursion=
939prefix=NONE
940program_prefix=NONE
941program_suffix=NONE
942program_transform_name=s,x,x,
943silent=
944site=
945srcdir=
946verbose=
947x_includes=NONE
948x_libraries=NONE
949
950# Installation directory options.
951# These are left unexpanded so users can "make install exec_prefix=/foo"
952# and all the variables that are supposed to be based on exec_prefix
953# by default will actually change.
954# Use braces instead of parens because sh, perl, etc. also accept them.
955# (The list follows the same order as the GNU Coding Standards.)
956bindir='${exec_prefix}/bin'
957sbindir='${exec_prefix}/sbin'
958libexecdir='${exec_prefix}/libexec'
959datarootdir='${prefix}/share'
960datadir='${datarootdir}'
961sysconfdir='${prefix}/etc'
962sharedstatedir='${prefix}/com'
963localstatedir='${prefix}/var'
964includedir='${prefix}/include'
965oldincludedir='/usr/include'
966docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967infodir='${datarootdir}/info'
968htmldir='${docdir}'
969dvidir='${docdir}'
970pdfdir='${docdir}'
971psdir='${docdir}'
972libdir='${exec_prefix}/lib'
973localedir='${datarootdir}/locale'
974mandir='${datarootdir}/man'
975
976ac_prev=
977ac_dashdash=
978for ac_option
979do
980  # If the previous option needs an argument, assign it.
981  if test -n "$ac_prev"; then
982    eval $ac_prev=\$ac_option
983    ac_prev=
984    continue
985  fi
986
987  case $ac_option in
988  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989  *)	ac_optarg=yes ;;
990  esac
991
992  # Accept the important Cygnus configure options, so we can diagnose typos.
993
994  case $ac_dashdash$ac_option in
995  --)
996    ac_dashdash=yes ;;
997
998  -bindir | --bindir | --bindi | --bind | --bin | --bi)
999    ac_prev=bindir ;;
1000  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001    bindir=$ac_optarg ;;
1002
1003  -build | --build | --buil | --bui | --bu)
1004    ac_prev=build_alias ;;
1005  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006    build_alias=$ac_optarg ;;
1007
1008  -cache-file | --cache-file | --cache-fil | --cache-fi \
1009  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010    ac_prev=cache_file ;;
1011  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013    cache_file=$ac_optarg ;;
1014
1015  --config-cache | -C)
1016    cache_file=config.cache ;;
1017
1018  -datadir | --datadir | --datadi | --datad)
1019    ac_prev=datadir ;;
1020  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021    datadir=$ac_optarg ;;
1022
1023  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024  | --dataroo | --dataro | --datar)
1025    ac_prev=datarootdir ;;
1026  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028    datarootdir=$ac_optarg ;;
1029
1030  -disable-* | --disable-*)
1031    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032    # Reject names that are not valid shell variable names.
1033    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035   { (exit 1); exit 1; }; }
1036    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037    eval enable_$ac_feature=no ;;
1038
1039  -docdir | --docdir | --docdi | --doc | --do)
1040    ac_prev=docdir ;;
1041  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042    docdir=$ac_optarg ;;
1043
1044  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045    ac_prev=dvidir ;;
1046  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047    dvidir=$ac_optarg ;;
1048
1049  -enable-* | --enable-*)
1050    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051    # Reject names that are not valid shell variable names.
1052    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054   { (exit 1); exit 1; }; }
1055    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1056    eval enable_$ac_feature=\$ac_optarg ;;
1057
1058  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1060  | --exec | --exe | --ex)
1061    ac_prev=exec_prefix ;;
1062  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1063  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1064  | --exec=* | --exe=* | --ex=*)
1065    exec_prefix=$ac_optarg ;;
1066
1067  -gas | --gas | --ga | --g)
1068    # Obsolete; use --with-gas.
1069    with_gas=yes ;;
1070
1071  -help | --help | --hel | --he | -h)
1072    ac_init_help=long ;;
1073  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1074    ac_init_help=recursive ;;
1075  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1076    ac_init_help=short ;;
1077
1078  -host | --host | --hos | --ho)
1079    ac_prev=host_alias ;;
1080  -host=* | --host=* | --hos=* | --ho=*)
1081    host_alias=$ac_optarg ;;
1082
1083  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084    ac_prev=htmldir ;;
1085  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086  | --ht=*)
1087    htmldir=$ac_optarg ;;
1088
1089  -includedir | --includedir | --includedi | --included | --include \
1090  | --includ | --inclu | --incl | --inc)
1091    ac_prev=includedir ;;
1092  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1093  | --includ=* | --inclu=* | --incl=* | --inc=*)
1094    includedir=$ac_optarg ;;
1095
1096  -infodir | --infodir | --infodi | --infod | --info | --inf)
1097    ac_prev=infodir ;;
1098  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1099    infodir=$ac_optarg ;;
1100
1101  -libdir | --libdir | --libdi | --libd)
1102    ac_prev=libdir ;;
1103  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1104    libdir=$ac_optarg ;;
1105
1106  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1107  | --libexe | --libex | --libe)
1108    ac_prev=libexecdir ;;
1109  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1110  | --libexe=* | --libex=* | --libe=*)
1111    libexecdir=$ac_optarg ;;
1112
1113  -localedir | --localedir | --localedi | --localed | --locale)
1114    ac_prev=localedir ;;
1115  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1116    localedir=$ac_optarg ;;
1117
1118  -localstatedir | --localstatedir | --localstatedi | --localstated \
1119  | --localstate | --localstat | --localsta | --localst | --locals)
1120    ac_prev=localstatedir ;;
1121  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1122  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1123    localstatedir=$ac_optarg ;;
1124
1125  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126    ac_prev=mandir ;;
1127  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1128    mandir=$ac_optarg ;;
1129
1130  -nfp | --nfp | --nf)
1131    # Obsolete; use --without-fp.
1132    with_fp=no ;;
1133
1134  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1135  | --no-cr | --no-c | -n)
1136    no_create=yes ;;
1137
1138  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1139  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140    no_recursion=yes ;;
1141
1142  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1143  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1144  | --oldin | --oldi | --old | --ol | --o)
1145    ac_prev=oldincludedir ;;
1146  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1147  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1148  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1149    oldincludedir=$ac_optarg ;;
1150
1151  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152    ac_prev=prefix ;;
1153  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1154    prefix=$ac_optarg ;;
1155
1156  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1157  | --program-pre | --program-pr | --program-p)
1158    ac_prev=program_prefix ;;
1159  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1160  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1161    program_prefix=$ac_optarg ;;
1162
1163  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1164  | --program-suf | --program-su | --program-s)
1165    ac_prev=program_suffix ;;
1166  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1167  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1168    program_suffix=$ac_optarg ;;
1169
1170  -program-transform-name | --program-transform-name \
1171  | --program-transform-nam | --program-transform-na \
1172  | --program-transform-n | --program-transform- \
1173  | --program-transform | --program-transfor \
1174  | --program-transfo | --program-transf \
1175  | --program-trans | --program-tran \
1176  | --progr-tra | --program-tr | --program-t)
1177    ac_prev=program_transform_name ;;
1178  -program-transform-name=* | --program-transform-name=* \
1179  | --program-transform-nam=* | --program-transform-na=* \
1180  | --program-transform-n=* | --program-transform-=* \
1181  | --program-transform=* | --program-transfor=* \
1182  | --program-transfo=* | --program-transf=* \
1183  | --program-trans=* | --program-tran=* \
1184  | --progr-tra=* | --program-tr=* | --program-t=*)
1185    program_transform_name=$ac_optarg ;;
1186
1187  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188    ac_prev=pdfdir ;;
1189  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1190    pdfdir=$ac_optarg ;;
1191
1192  -psdir | --psdir | --psdi | --psd | --ps)
1193    ac_prev=psdir ;;
1194  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195    psdir=$ac_optarg ;;
1196
1197  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1198  | -silent | --silent | --silen | --sile | --sil)
1199    silent=yes ;;
1200
1201  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1202    ac_prev=sbindir ;;
1203  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1204  | --sbi=* | --sb=*)
1205    sbindir=$ac_optarg ;;
1206
1207  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1208  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1209  | --sharedst | --shareds | --shared | --share | --shar \
1210  | --sha | --sh)
1211    ac_prev=sharedstatedir ;;
1212  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1213  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1214  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1215  | --sha=* | --sh=*)
1216    sharedstatedir=$ac_optarg ;;
1217
1218  -site | --site | --sit)
1219    ac_prev=site ;;
1220  -site=* | --site=* | --sit=*)
1221    site=$ac_optarg ;;
1222
1223  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1224    ac_prev=srcdir ;;
1225  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1226    srcdir=$ac_optarg ;;
1227
1228  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1229  | --syscon | --sysco | --sysc | --sys | --sy)
1230    ac_prev=sysconfdir ;;
1231  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1232  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1233    sysconfdir=$ac_optarg ;;
1234
1235  -target | --target | --targe | --targ | --tar | --ta | --t)
1236    ac_prev=target_alias ;;
1237  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1238    target_alias=$ac_optarg ;;
1239
1240  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1241    verbose=yes ;;
1242
1243  -version | --version | --versio | --versi | --vers | -V)
1244    ac_init_version=: ;;
1245
1246  -with-* | --with-*)
1247    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1248    # Reject names that are not valid shell variable names.
1249    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250      { echo "$as_me: error: invalid package name: $ac_package" >&2
1251   { (exit 1); exit 1; }; }
1252    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253    eval with_$ac_package=\$ac_optarg ;;
1254
1255  -without-* | --without-*)
1256    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257    # Reject names that are not valid shell variable names.
1258    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259      { echo "$as_me: error: invalid package name: $ac_package" >&2
1260   { (exit 1); exit 1; }; }
1261    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262    eval with_$ac_package=no ;;
1263
1264  --x)
1265    # Obsolete; use --with-x.
1266    with_x=yes ;;
1267
1268  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269  | --x-incl | --x-inc | --x-in | --x-i)
1270    ac_prev=x_includes ;;
1271  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273    x_includes=$ac_optarg ;;
1274
1275  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277    ac_prev=x_libraries ;;
1278  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280    x_libraries=$ac_optarg ;;
1281
1282  -*) { echo "$as_me: error: unrecognized option: $ac_option
1283Try \`$0 --help' for more information." >&2
1284   { (exit 1); exit 1; }; }
1285    ;;
1286
1287  *=*)
1288    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289    # Reject names that are not valid shell variable names.
1290    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1291      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1292   { (exit 1); exit 1; }; }
1293    eval $ac_envvar=\$ac_optarg
1294    export $ac_envvar ;;
1295
1296  *)
1297    # FIXME: should be removed in autoconf 3.0.
1298    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302    ;;
1303
1304  esac
1305done
1306
1307if test -n "$ac_prev"; then
1308  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309  { echo "$as_me: error: missing argument to $ac_option" >&2
1310   { (exit 1); exit 1; }; }
1311fi
1312
1313# Be sure to have absolute directory names.
1314for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315		datadir sysconfdir sharedstatedir localstatedir includedir \
1316		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317		libdir localedir mandir
1318do
1319  eval ac_val=\$$ac_var
1320  case $ac_val in
1321    [\\/$]* | ?:[\\/]* )  continue;;
1322    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323  esac
1324  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325   { (exit 1); exit 1; }; }
1326done
1327
1328# There might be people who depend on the old broken behavior: `$host'
1329# used to hold the argument of --host etc.
1330# FIXME: To remove some day.
1331build=$build_alias
1332host=$host_alias
1333target=$target_alias
1334
1335# FIXME: To remove some day.
1336if test "x$host_alias" != x; then
1337  if test "x$build_alias" = x; then
1338    cross_compiling=maybe
1339    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340    If a cross compiler is detected then cross compile mode will be used." >&2
1341  elif test "x$build_alias" != "x$host_alias"; then
1342    cross_compiling=yes
1343  fi
1344fi
1345
1346ac_tool_prefix=
1347test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349test "$silent" = yes && exec 6>/dev/null
1350
1351
1352ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353ac_ls_di=`ls -di .` &&
1354ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355  { echo "$as_me: error: Working directory cannot be determined" >&2
1356   { (exit 1); exit 1; }; }
1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358  { echo "$as_me: error: pwd does not report name of working directory" >&2
1359   { (exit 1); exit 1; }; }
1360
1361
1362# Find the source files, if location was not specified.
1363if test -z "$srcdir"; then
1364  ac_srcdir_defaulted=yes
1365  # Try the directory containing this script, then the parent directory.
1366  ac_confdir=`$as_dirname -- "$0" ||
1367$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368	 X"$0" : 'X\(//\)[^/]' \| \
1369	 X"$0" : 'X\(//\)$' \| \
1370	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1371echo X"$0" |
1372    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373	    s//\1/
1374	    q
1375	  }
1376	  /^X\(\/\/\)[^/].*/{
1377	    s//\1/
1378	    q
1379	  }
1380	  /^X\(\/\/\)$/{
1381	    s//\1/
1382	    q
1383	  }
1384	  /^X\(\/\).*/{
1385	    s//\1/
1386	    q
1387	  }
1388	  s/.*/./; q'`
1389  srcdir=$ac_confdir
1390  if test ! -r "$srcdir/$ac_unique_file"; then
1391    srcdir=..
1392  fi
1393else
1394  ac_srcdir_defaulted=no
1395fi
1396if test ! -r "$srcdir/$ac_unique_file"; then
1397  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399   { (exit 1); exit 1; }; }
1400fi
1401ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402ac_abs_confdir=`(
1403	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1404   { (exit 1); exit 1; }; }
1405	pwd)`
1406# When building in place, set srcdir=.
1407if test "$ac_abs_confdir" = "$ac_pwd"; then
1408  srcdir=.
1409fi
1410# Remove unnecessary trailing slashes from srcdir.
1411# Double slashes in file names in object file debugging info
1412# mess up M-x gdb in Emacs.
1413case $srcdir in
1414*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415esac
1416for ac_var in $ac_precious_vars; do
1417  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418  eval ac_env_${ac_var}_value=\$${ac_var}
1419  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421done
1422
1423#
1424# Report the --help message.
1425#
1426if test "$ac_init_help" = "long"; then
1427  # Omit some internal or obsolete options to make the list less imposing.
1428  # This message is too long to be a string in the A/UX 3.1 sh.
1429  cat <<_ACEOF
1430\`configure' configures libXaw 1.0.4 to adapt to many kinds of systems.
1431
1432Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435VAR=VALUE.  See below for descriptions of some of the useful variables.
1436
1437Defaults for the options are specified in brackets.
1438
1439Configuration:
1440  -h, --help              display this help and exit
1441      --help=short        display options specific to this package
1442      --help=recursive    display the short help of all the included packages
1443  -V, --version           display version information and exit
1444  -q, --quiet, --silent   do not print \`checking...' messages
1445      --cache-file=FILE   cache test results in FILE [disabled]
1446  -C, --config-cache      alias for \`--cache-file=config.cache'
1447  -n, --no-create         do not create output files
1448      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1449
1450Installation directories:
1451  --prefix=PREFIX         install architecture-independent files in PREFIX
1452			  [$ac_default_prefix]
1453  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1454			  [PREFIX]
1455
1456By default, \`make install' will install all the files in
1457\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1458an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459for instance \`--prefix=\$HOME'.
1460
1461For better control, use the options below.
1462
1463Fine tuning of the installation directories:
1464  --bindir=DIR           user executables [EPREFIX/bin]
1465  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1466  --libexecdir=DIR       program executables [EPREFIX/libexec]
1467  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1468  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1469  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1470  --libdir=DIR           object code libraries [EPREFIX/lib]
1471  --includedir=DIR       C header files [PREFIX/include]
1472  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1473  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1474  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1475  --infodir=DIR          info documentation [DATAROOTDIR/info]
1476  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1477  --mandir=DIR           man documentation [DATAROOTDIR/man]
1478  --docdir=DIR           documentation root [DATAROOTDIR/doc/libXaw]
1479  --htmldir=DIR          html documentation [DOCDIR]
1480  --dvidir=DIR           dvi documentation [DOCDIR]
1481  --pdfdir=DIR           pdf documentation [DOCDIR]
1482  --psdir=DIR            ps documentation [DOCDIR]
1483_ACEOF
1484
1485  cat <<\_ACEOF
1486
1487Program names:
1488  --program-prefix=PREFIX            prepend PREFIX to installed program names
1489  --program-suffix=SUFFIX            append SUFFIX to installed program names
1490  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1491
1492System types:
1493  --build=BUILD     configure for building on BUILD [guessed]
1494  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1495_ACEOF
1496fi
1497
1498if test -n "$ac_init_help"; then
1499  case $ac_init_help in
1500     short | recursive ) echo "Configuration of libXaw 1.0.4:";;
1501   esac
1502  cat <<\_ACEOF
1503
1504Optional Features:
1505  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1506  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1507  --disable-dependency-tracking  speeds up one-time build
1508  --enable-dependency-tracking   do not reject slow dependency extractors
1509  --enable-shared[=PKGS]  build shared libraries [default=yes]
1510  --enable-static[=PKGS]  build static libraries [default=yes]
1511  --enable-fast-install[=PKGS]
1512                          optimize for fast installation [default=yes]
1513  --disable-libtool-lock  avoid locking (might break parallel builds)
1514  --disable-xaw6          Disable building of libXaw.so.6
1515  --disable-xaw7          Disable building of libXaw.so.7
1516  --disable-xaw8          Disable building of libXaw.so.8
1517
1518Optional Packages:
1519  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522  --with-pic              try to use only PIC/non-PIC objects [default=use
1523                          both]
1524  --with-tags[=TAGS]      include additional configurations [automatic]
1525  --with-release-version=STRING
1526                          Use release version string in package name
1527
1528Some influential environment variables:
1529  CC          C compiler command
1530  CFLAGS      C compiler flags
1531  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1532              nonstandard directory <lib dir>
1533  LIBS        libraries to pass to the linker, e.g. -l<library>
1534  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1535              you have headers in a nonstandard directory <include dir>
1536  CPP         C preprocessor
1537  CXX         C++ compiler command
1538  CXXFLAGS    C++ compiler flags
1539  CXXCPP      C++ preprocessor
1540  F77         Fortran 77 compiler command
1541  FFLAGS      Fortran 77 compiler flags
1542  PKG_CONFIG  path to pkg-config utility
1543  XAW6_CFLAGS C compiler flags for XAW6, overriding pkg-config
1544  XAW6_LIBS   linker flags for XAW6, overriding pkg-config
1545  XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config
1546  XAW7_LIBS   linker flags for XAW7, overriding pkg-config
1547  XPRINT_CFLAGS
1548              C compiler flags for XPRINT, overriding pkg-config
1549  XPRINT_LIBS linker flags for XPRINT, overriding pkg-config
1550  XAW8_CFLAGS C compiler flags for XAW8, overriding pkg-config
1551  XAW8_LIBS   linker flags for XAW8, overriding pkg-config
1552
1553Use these variables to override the choices made by `configure' or to help
1554it to find libraries and programs with nonstandard names/locations.
1555
1556Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1557_ACEOF
1558ac_status=$?
1559fi
1560
1561if test "$ac_init_help" = "recursive"; then
1562  # If there are subdirs, report their specific --help.
1563  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564    test -d "$ac_dir" || continue
1565    ac_builddir=.
1566
1567case "$ac_dir" in
1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569*)
1570  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1571  # A ".." for each directory in $ac_dir_suffix.
1572  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1573  case $ac_top_builddir_sub in
1574  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576  esac ;;
1577esac
1578ac_abs_top_builddir=$ac_pwd
1579ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580# for backward compatibility:
1581ac_top_builddir=$ac_top_build_prefix
1582
1583case $srcdir in
1584  .)  # We are building in place.
1585    ac_srcdir=.
1586    ac_top_srcdir=$ac_top_builddir_sub
1587    ac_abs_top_srcdir=$ac_pwd ;;
1588  [\\/]* | ?:[\\/]* )  # Absolute name.
1589    ac_srcdir=$srcdir$ac_dir_suffix;
1590    ac_top_srcdir=$srcdir
1591    ac_abs_top_srcdir=$srcdir ;;
1592  *) # Relative name.
1593    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594    ac_top_srcdir=$ac_top_build_prefix$srcdir
1595    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596esac
1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599    cd "$ac_dir" || { ac_status=$?; continue; }
1600    # Check for guested configure.
1601    if test -f "$ac_srcdir/configure.gnu"; then
1602      echo &&
1603      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604    elif test -f "$ac_srcdir/configure"; then
1605      echo &&
1606      $SHELL "$ac_srcdir/configure" --help=recursive
1607    else
1608      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609    fi || ac_status=$?
1610    cd "$ac_pwd" || { ac_status=$?; break; }
1611  done
1612fi
1613
1614test -n "$ac_init_help" && exit $ac_status
1615if $ac_init_version; then
1616  cat <<\_ACEOF
1617libXaw configure 1.0.4
1618generated by GNU Autoconf 2.61
1619
1620Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16212002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1622This configure script is free software; the Free Software Foundation
1623gives unlimited permission to copy, distribute and modify it.
1624_ACEOF
1625  exit
1626fi
1627cat >config.log <<_ACEOF
1628This file contains any messages produced by compilers while
1629running configure, to aid debugging if configure makes a mistake.
1630
1631It was created by libXaw $as_me 1.0.4, which was
1632generated by GNU Autoconf 2.61.  Invocation command line was
1633
1634  $ $0 $@
1635
1636_ACEOF
1637exec 5>>config.log
1638{
1639cat <<_ASUNAME
1640## --------- ##
1641## Platform. ##
1642## --------- ##
1643
1644hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1645uname -m = `(uname -m) 2>/dev/null || echo unknown`
1646uname -r = `(uname -r) 2>/dev/null || echo unknown`
1647uname -s = `(uname -s) 2>/dev/null || echo unknown`
1648uname -v = `(uname -v) 2>/dev/null || echo unknown`
1649
1650/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1651/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1652
1653/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1654/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1655/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1656/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1657/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1658/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1659/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1660
1661_ASUNAME
1662
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666  IFS=$as_save_IFS
1667  test -z "$as_dir" && as_dir=.
1668  echo "PATH: $as_dir"
1669done
1670IFS=$as_save_IFS
1671
1672} >&5
1673
1674cat >&5 <<_ACEOF
1675
1676
1677## ----------- ##
1678## Core tests. ##
1679## ----------- ##
1680
1681_ACEOF
1682
1683
1684# Keep a trace of the command line.
1685# Strip out --no-create and --no-recursion so they do not pile up.
1686# Strip out --silent because we don't want to record it for future runs.
1687# Also quote any args containing shell meta-characters.
1688# Make two passes to allow for proper duplicate-argument suppression.
1689ac_configure_args=
1690ac_configure_args0=
1691ac_configure_args1=
1692ac_must_keep_next=false
1693for ac_pass in 1 2
1694do
1695  for ac_arg
1696  do
1697    case $ac_arg in
1698    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1699    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1700    | -silent | --silent | --silen | --sile | --sil)
1701      continue ;;
1702    *\'*)
1703      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1704    esac
1705    case $ac_pass in
1706    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1707    2)
1708      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1709      if test $ac_must_keep_next = true; then
1710	ac_must_keep_next=false # Got value, back to normal.
1711      else
1712	case $ac_arg in
1713	  *=* | --config-cache | -C | -disable-* | --disable-* \
1714	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1715	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1716	  | -with-* | --with-* | -without-* | --without-* | --x)
1717	    case "$ac_configure_args0 " in
1718	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1719	    esac
1720	    ;;
1721	  -* ) ac_must_keep_next=true ;;
1722	esac
1723      fi
1724      ac_configure_args="$ac_configure_args '$ac_arg'"
1725      ;;
1726    esac
1727  done
1728done
1729$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1730$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1731
1732# When interrupted or exit'd, cleanup temporary files, and complete
1733# config.log.  We remove comments because anyway the quotes in there
1734# would cause problems or look ugly.
1735# WARNING: Use '\'' to represent an apostrophe within the trap.
1736# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1737trap 'exit_status=$?
1738  # Save into config.log some information that might help in debugging.
1739  {
1740    echo
1741
1742    cat <<\_ASBOX
1743## ---------------- ##
1744## Cache variables. ##
1745## ---------------- ##
1746_ASBOX
1747    echo
1748    # The following way of writing the cache mishandles newlines in values,
1749(
1750  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1751    eval ac_val=\$$ac_var
1752    case $ac_val in #(
1753    *${as_nl}*)
1754      case $ac_var in #(
1755      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1756echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1757      esac
1758      case $ac_var in #(
1759      _ | IFS | as_nl) ;; #(
1760      *) $as_unset $ac_var ;;
1761      esac ;;
1762    esac
1763  done
1764  (set) 2>&1 |
1765    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1766    *${as_nl}ac_space=\ *)
1767      sed -n \
1768	"s/'\''/'\''\\\\'\'''\''/g;
1769	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1770      ;; #(
1771    *)
1772      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1773      ;;
1774    esac |
1775    sort
1776)
1777    echo
1778
1779    cat <<\_ASBOX
1780## ----------------- ##
1781## Output variables. ##
1782## ----------------- ##
1783_ASBOX
1784    echo
1785    for ac_var in $ac_subst_vars
1786    do
1787      eval ac_val=\$$ac_var
1788      case $ac_val in
1789      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790      esac
1791      echo "$ac_var='\''$ac_val'\''"
1792    done | sort
1793    echo
1794
1795    if test -n "$ac_subst_files"; then
1796      cat <<\_ASBOX
1797## ------------------- ##
1798## File substitutions. ##
1799## ------------------- ##
1800_ASBOX
1801      echo
1802      for ac_var in $ac_subst_files
1803      do
1804	eval ac_val=\$$ac_var
1805	case $ac_val in
1806	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807	esac
1808	echo "$ac_var='\''$ac_val'\''"
1809      done | sort
1810      echo
1811    fi
1812
1813    if test -s confdefs.h; then
1814      cat <<\_ASBOX
1815## ----------- ##
1816## confdefs.h. ##
1817## ----------- ##
1818_ASBOX
1819      echo
1820      cat confdefs.h
1821      echo
1822    fi
1823    test "$ac_signal" != 0 &&
1824      echo "$as_me: caught signal $ac_signal"
1825    echo "$as_me: exit $exit_status"
1826  } >&5
1827  rm -f core *.core core.conftest.* &&
1828    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1829    exit $exit_status
1830' 0
1831for ac_signal in 1 2 13 15; do
1832  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1833done
1834ac_signal=0
1835
1836# confdefs.h avoids OS command line length limits that DEFS can exceed.
1837rm -f -r conftest* confdefs.h
1838
1839# Predefined preprocessor variables.
1840
1841cat >>confdefs.h <<_ACEOF
1842#define PACKAGE_NAME "$PACKAGE_NAME"
1843_ACEOF
1844
1845
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1848_ACEOF
1849
1850
1851cat >>confdefs.h <<_ACEOF
1852#define PACKAGE_VERSION "$PACKAGE_VERSION"
1853_ACEOF
1854
1855
1856cat >>confdefs.h <<_ACEOF
1857#define PACKAGE_STRING "$PACKAGE_STRING"
1858_ACEOF
1859
1860
1861cat >>confdefs.h <<_ACEOF
1862#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1863_ACEOF
1864
1865
1866# Let the site file select an alternate cache file if it wants to.
1867# Prefer explicitly selected file to automatically selected ones.
1868if test -n "$CONFIG_SITE"; then
1869  set x "$CONFIG_SITE"
1870elif test "x$prefix" != xNONE; then
1871  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1872else
1873  set x "$ac_default_prefix/share/config.site" \
1874	"$ac_default_prefix/etc/config.site"
1875fi
1876shift
1877for ac_site_file
1878do
1879  if test -r "$ac_site_file"; then
1880    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1881echo "$as_me: loading site script $ac_site_file" >&6;}
1882    sed 's/^/| /' "$ac_site_file" >&5
1883    . "$ac_site_file"
1884  fi
1885done
1886
1887if test -r "$cache_file"; then
1888  # Some versions of bash will fail to source /dev/null (special
1889  # files actually), so we avoid doing that.
1890  if test -f "$cache_file"; then
1891    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1892echo "$as_me: loading cache $cache_file" >&6;}
1893    case $cache_file in
1894      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1895      *)                      . "./$cache_file";;
1896    esac
1897  fi
1898else
1899  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1900echo "$as_me: creating cache $cache_file" >&6;}
1901  >$cache_file
1902fi
1903
1904# Check that the precious variables saved in the cache have kept the same
1905# value.
1906ac_cache_corrupted=false
1907for ac_var in $ac_precious_vars; do
1908  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1909  eval ac_new_set=\$ac_env_${ac_var}_set
1910  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1911  eval ac_new_val=\$ac_env_${ac_var}_value
1912  case $ac_old_set,$ac_new_set in
1913    set,)
1914      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1915echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1916      ac_cache_corrupted=: ;;
1917    ,set)
1918      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1919echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1920      ac_cache_corrupted=: ;;
1921    ,);;
1922    *)
1923      if test "x$ac_old_val" != "x$ac_new_val"; then
1924	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1925echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1926	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1927echo "$as_me:   former value:  $ac_old_val" >&2;}
1928	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1929echo "$as_me:   current value: $ac_new_val" >&2;}
1930	ac_cache_corrupted=:
1931      fi;;
1932  esac
1933  # Pass precious variables to config.status.
1934  if test "$ac_new_set" = set; then
1935    case $ac_new_val in
1936    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1937    *) ac_arg=$ac_var=$ac_new_val ;;
1938    esac
1939    case " $ac_configure_args " in
1940      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1941      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1942    esac
1943  fi
1944done
1945if $ac_cache_corrupted; then
1946  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1947echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1948  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1949echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1950   { (exit 1); exit 1; }; }
1951fi
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977ac_ext=c
1978ac_cpp='$CPP $CPPFLAGS'
1979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1981ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982
1983
1984
1985am__api_version='1.10'
1986
1987ac_aux_dir=
1988for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1989  if test -f "$ac_dir/install-sh"; then
1990    ac_aux_dir=$ac_dir
1991    ac_install_sh="$ac_aux_dir/install-sh -c"
1992    break
1993  elif test -f "$ac_dir/install.sh"; then
1994    ac_aux_dir=$ac_dir
1995    ac_install_sh="$ac_aux_dir/install.sh -c"
1996    break
1997  elif test -f "$ac_dir/shtool"; then
1998    ac_aux_dir=$ac_dir
1999    ac_install_sh="$ac_aux_dir/shtool install -c"
2000    break
2001  fi
2002done
2003if test -z "$ac_aux_dir"; then
2004  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2005echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2006   { (exit 1); exit 1; }; }
2007fi
2008
2009# These three variables are undocumented and unsupported,
2010# and are intended to be withdrawn in a future Autoconf release.
2011# They can cause serious problems if a builder's source tree is in a directory
2012# whose full name contains unusual characters.
2013ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2014ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2015ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2016
2017
2018# Find a good install program.  We prefer a C program (faster),
2019# so one script is as good as another.  But avoid the broken or
2020# incompatible versions:
2021# SysV /etc/install, /usr/sbin/install
2022# SunOS /usr/etc/install
2023# IRIX /sbin/install
2024# AIX /bin/install
2025# AmigaOS /C/install, which installs bootblocks on floppy discs
2026# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2027# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2028# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2029# OS/2's system install, which has a completely different semantic
2030# ./install, which can be erroneously created by make from ./install.sh.
2031{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2032echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2033if test -z "$INSTALL"; then
2034if test "${ac_cv_path_install+set}" = set; then
2035  echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040  IFS=$as_save_IFS
2041  test -z "$as_dir" && as_dir=.
2042  # Account for people who put trailing slashes in PATH elements.
2043case $as_dir/ in
2044  ./ | .// | /cC/* | \
2045  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2046  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2047  /usr/ucb/* ) ;;
2048  *)
2049    # OSF1 and SCO ODT 3.0 have their own names for install.
2050    # Don't use installbsd from OSF since it installs stuff as root
2051    # by default.
2052    for ac_prog in ginstall scoinst install; do
2053      for ac_exec_ext in '' $ac_executable_extensions; do
2054	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2055	  if test $ac_prog = install &&
2056	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2057	    # AIX install.  It has an incompatible calling convention.
2058	    :
2059	  elif test $ac_prog = install &&
2060	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2061	    # program-specific install script used by HP pwplus--don't use.
2062	    :
2063	  else
2064	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2065	    break 3
2066	  fi
2067	fi
2068      done
2069    done
2070    ;;
2071esac
2072done
2073IFS=$as_save_IFS
2074
2075
2076fi
2077  if test "${ac_cv_path_install+set}" = set; then
2078    INSTALL=$ac_cv_path_install
2079  else
2080    # As a last resort, use the slow shell script.  Don't cache a
2081    # value for INSTALL within a source directory, because that will
2082    # break other packages using the cache if that directory is
2083    # removed, or if the value is a relative name.
2084    INSTALL=$ac_install_sh
2085  fi
2086fi
2087{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2088echo "${ECHO_T}$INSTALL" >&6; }
2089
2090# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2091# It thinks the first close brace ends the variable substitution.
2092test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2093
2094test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2095
2096test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2097
2098{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2099echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2100# Just in case
2101sleep 1
2102echo timestamp > conftest.file
2103# Do `set' in a subshell so we don't clobber the current shell's
2104# arguments.  Must try -L first in case configure is actually a
2105# symlink; some systems play weird games with the mod time of symlinks
2106# (eg FreeBSD returns the mod time of the symlink's containing
2107# directory).
2108if (
2109   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2110   if test "$*" = "X"; then
2111      # -L didn't work.
2112      set X `ls -t $srcdir/configure conftest.file`
2113   fi
2114   rm -f conftest.file
2115   if test "$*" != "X $srcdir/configure conftest.file" \
2116      && test "$*" != "X conftest.file $srcdir/configure"; then
2117
2118      # If neither matched, then we have a broken ls.  This can happen
2119      # if, for instance, CONFIG_SHELL is bash and it inherits a
2120      # broken ls alias from the environment.  This has actually
2121      # happened.  Such a system could not be considered "sane".
2122      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2123alias in your environment" >&5
2124echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2125alias in your environment" >&2;}
2126   { (exit 1); exit 1; }; }
2127   fi
2128
2129   test "$2" = conftest.file
2130   )
2131then
2132   # Ok.
2133   :
2134else
2135   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2136Check your system clock" >&5
2137echo "$as_me: error: newly created file is older than distributed files!
2138Check your system clock" >&2;}
2139   { (exit 1); exit 1; }; }
2140fi
2141{ echo "$as_me:$LINENO: result: yes" >&5
2142echo "${ECHO_T}yes" >&6; }
2143test "$program_prefix" != NONE &&
2144  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2145# Use a double $ so make ignores it.
2146test "$program_suffix" != NONE &&
2147  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2148# Double any \ or $.  echo might interpret backslashes.
2149# By default was `s,x,x', remove it if useless.
2150cat <<\_ACEOF >conftest.sed
2151s/[\\$]/&&/g;s/;s,x,x,$//
2152_ACEOF
2153program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2154rm -f conftest.sed
2155
2156# expand $ac_aux_dir to an absolute path
2157am_aux_dir=`cd $ac_aux_dir && pwd`
2158
2159test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2160# Use eval to expand $SHELL
2161if eval "$MISSING --run true"; then
2162  am_missing_run="$MISSING --run "
2163else
2164  am_missing_run=
2165  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2166echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2167fi
2168
2169{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2170echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2171if test -z "$MKDIR_P"; then
2172  if test "${ac_cv_path_mkdir+set}" = set; then
2173  echo $ECHO_N "(cached) $ECHO_C" >&6
2174else
2175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2177do
2178  IFS=$as_save_IFS
2179  test -z "$as_dir" && as_dir=.
2180  for ac_prog in mkdir gmkdir; do
2181	 for ac_exec_ext in '' $ac_executable_extensions; do
2182	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2183	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2184	     'mkdir (GNU coreutils) '* | \
2185	     'mkdir (coreutils) '* | \
2186	     'mkdir (fileutils) '4.1*)
2187	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2188	       break 3;;
2189	   esac
2190	 done
2191       done
2192done
2193IFS=$as_save_IFS
2194
2195fi
2196
2197  if test "${ac_cv_path_mkdir+set}" = set; then
2198    MKDIR_P="$ac_cv_path_mkdir -p"
2199  else
2200    # As a last resort, use the slow shell script.  Don't cache a
2201    # value for MKDIR_P within a source directory, because that will
2202    # break other packages using the cache if that directory is
2203    # removed, or if the value is a relative name.
2204    test -d ./--version && rmdir ./--version
2205    MKDIR_P="$ac_install_sh -d"
2206  fi
2207fi
2208{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2209echo "${ECHO_T}$MKDIR_P" >&6; }
2210
2211mkdir_p="$MKDIR_P"
2212case $mkdir_p in
2213  [\\/$]* | ?:[\\/]*) ;;
2214  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2215esac
2216
2217for ac_prog in gawk mawk nawk awk
2218do
2219  # Extract the first word of "$ac_prog", so it can be a program name with args.
2220set dummy $ac_prog; ac_word=$2
2221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2223if test "${ac_cv_prog_AWK+set}" = set; then
2224  echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
2226  if test -n "$AWK"; then
2227  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2228else
2229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230for as_dir in $PATH
2231do
2232  IFS=$as_save_IFS
2233  test -z "$as_dir" && as_dir=.
2234  for ac_exec_ext in '' $ac_executable_extensions; do
2235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2236    ac_cv_prog_AWK="$ac_prog"
2237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238    break 2
2239  fi
2240done
2241done
2242IFS=$as_save_IFS
2243
2244fi
2245fi
2246AWK=$ac_cv_prog_AWK
2247if test -n "$AWK"; then
2248  { echo "$as_me:$LINENO: result: $AWK" >&5
2249echo "${ECHO_T}$AWK" >&6; }
2250else
2251  { echo "$as_me:$LINENO: result: no" >&5
2252echo "${ECHO_T}no" >&6; }
2253fi
2254
2255
2256  test -n "$AWK" && break
2257done
2258
2259{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2260echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2261set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2262if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2263  echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265  cat >conftest.make <<\_ACEOF
2266SHELL = /bin/sh
2267all:
2268	@echo '@@@%%%=$(MAKE)=@@@%%%'
2269_ACEOF
2270# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2271case `${MAKE-make} -f conftest.make 2>/dev/null` in
2272  *@@@%%%=?*=@@@%%%*)
2273    eval ac_cv_prog_make_${ac_make}_set=yes;;
2274  *)
2275    eval ac_cv_prog_make_${ac_make}_set=no;;
2276esac
2277rm -f conftest.make
2278fi
2279if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2280  { echo "$as_me:$LINENO: result: yes" >&5
2281echo "${ECHO_T}yes" >&6; }
2282  SET_MAKE=
2283else
2284  { echo "$as_me:$LINENO: result: no" >&5
2285echo "${ECHO_T}no" >&6; }
2286  SET_MAKE="MAKE=${MAKE-make}"
2287fi
2288
2289rm -rf .tst 2>/dev/null
2290mkdir .tst 2>/dev/null
2291if test -d .tst; then
2292  am__leading_dot=.
2293else
2294  am__leading_dot=_
2295fi
2296rmdir .tst 2>/dev/null
2297
2298if test "`cd $srcdir && pwd`" != "`pwd`"; then
2299  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2300  # is not polluted with repeated "-I."
2301  am__isrc=' -I$(srcdir)'
2302  # test to see if srcdir already configured
2303  if test -f $srcdir/config.status; then
2304    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2305echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2306   { (exit 1); exit 1; }; }
2307  fi
2308fi
2309
2310# test whether we have cygpath
2311if test -z "$CYGPATH_W"; then
2312  if (cygpath --version) >/dev/null 2>/dev/null; then
2313    CYGPATH_W='cygpath -w'
2314  else
2315    CYGPATH_W=echo
2316  fi
2317fi
2318
2319
2320# Define the identity of the package.
2321 PACKAGE='libXaw'
2322 VERSION='1.0.4'
2323
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE "$PACKAGE"
2327_ACEOF
2328
2329
2330cat >>confdefs.h <<_ACEOF
2331#define VERSION "$VERSION"
2332_ACEOF
2333
2334# Some tools Automake needs.
2335
2336ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2337
2338
2339AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2340
2341
2342AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2343
2344
2345AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2346
2347
2348MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2349
2350install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2351
2352# Installed binaries are usually stripped using `strip' when the user
2353# run `make install-strip'.  However `strip' might not be the right
2354# tool to use in cross-compilation environments, therefore Automake
2355# will honor the `STRIP' environment variable to overrule this program.
2356if test "$cross_compiling" != no; then
2357  if test -n "$ac_tool_prefix"; then
2358  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2359set dummy ${ac_tool_prefix}strip; ac_word=$2
2360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362if test "${ac_cv_prog_STRIP+set}" = set; then
2363  echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365  if test -n "$STRIP"; then
2366  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2367else
2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371  IFS=$as_save_IFS
2372  test -z "$as_dir" && as_dir=.
2373  for ac_exec_ext in '' $ac_executable_extensions; do
2374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377    break 2
2378  fi
2379done
2380done
2381IFS=$as_save_IFS
2382
2383fi
2384fi
2385STRIP=$ac_cv_prog_STRIP
2386if test -n "$STRIP"; then
2387  { echo "$as_me:$LINENO: result: $STRIP" >&5
2388echo "${ECHO_T}$STRIP" >&6; }
2389else
2390  { echo "$as_me:$LINENO: result: no" >&5
2391echo "${ECHO_T}no" >&6; }
2392fi
2393
2394
2395fi
2396if test -z "$ac_cv_prog_STRIP"; then
2397  ac_ct_STRIP=$STRIP
2398  # Extract the first word of "strip", so it can be a program name with args.
2399set dummy strip; ac_word=$2
2400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  if test -n "$ac_ct_STRIP"; then
2406  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411  IFS=$as_save_IFS
2412  test -z "$as_dir" && as_dir=.
2413  for ac_exec_ext in '' $ac_executable_extensions; do
2414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415    ac_cv_prog_ac_ct_STRIP="strip"
2416    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417    break 2
2418  fi
2419done
2420done
2421IFS=$as_save_IFS
2422
2423fi
2424fi
2425ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2426if test -n "$ac_ct_STRIP"; then
2427  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2428echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2429else
2430  { echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6; }
2432fi
2433
2434  if test "x$ac_ct_STRIP" = x; then
2435    STRIP=":"
2436  else
2437    case $cross_compiling:$ac_tool_warned in
2438yes:)
2439{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2440whose name does not start with the host triplet.  If you think this
2441configuration is useful to you, please write to autoconf@gnu.org." >&5
2442echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2443whose name does not start with the host triplet.  If you think this
2444configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2445ac_tool_warned=yes ;;
2446esac
2447    STRIP=$ac_ct_STRIP
2448  fi
2449else
2450  STRIP="$ac_cv_prog_STRIP"
2451fi
2452
2453fi
2454INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2455
2456# We need awk for the "check" target.  The system "awk" is bad on
2457# some platforms.
2458# Always define AMTAR for backward compatibility.
2459
2460AMTAR=${AMTAR-"${am_missing_run}tar"}
2461
2462am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2463
2464
2465
2466
2467
2468
2469ac_config_headers="$ac_config_headers config.h"
2470
2471
2472# Check for progs
2473ac_ext=c
2474ac_cpp='$CPP $CPPFLAGS'
2475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2477ac_compiler_gnu=$ac_cv_c_compiler_gnu
2478if test -n "$ac_tool_prefix"; then
2479  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2480set dummy ${ac_tool_prefix}gcc; ac_word=$2
2481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483if test "${ac_cv_prog_CC+set}" = set; then
2484  echo $ECHO_N "(cached) $ECHO_C" >&6
2485else
2486  if test -n "$CC"; then
2487  ac_cv_prog_CC="$CC" # Let the user override the test.
2488else
2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490for as_dir in $PATH
2491do
2492  IFS=$as_save_IFS
2493  test -z "$as_dir" && as_dir=.
2494  for ac_exec_ext in '' $ac_executable_extensions; do
2495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2497    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498    break 2
2499  fi
2500done
2501done
2502IFS=$as_save_IFS
2503
2504fi
2505fi
2506CC=$ac_cv_prog_CC
2507if test -n "$CC"; then
2508  { echo "$as_me:$LINENO: result: $CC" >&5
2509echo "${ECHO_T}$CC" >&6; }
2510else
2511  { echo "$as_me:$LINENO: result: no" >&5
2512echo "${ECHO_T}no" >&6; }
2513fi
2514
2515
2516fi
2517if test -z "$ac_cv_prog_CC"; then
2518  ac_ct_CC=$CC
2519  # Extract the first word of "gcc", so it can be a program name with args.
2520set dummy gcc; ac_word=$2
2521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2524  echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526  if test -n "$ac_ct_CC"; then
2527  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528else
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532  IFS=$as_save_IFS
2533  test -z "$as_dir" && as_dir=.
2534  for ac_exec_ext in '' $ac_executable_extensions; do
2535  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536    ac_cv_prog_ac_ct_CC="gcc"
2537    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538    break 2
2539  fi
2540done
2541done
2542IFS=$as_save_IFS
2543
2544fi
2545fi
2546ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547if test -n "$ac_ct_CC"; then
2548  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2549echo "${ECHO_T}$ac_ct_CC" >&6; }
2550else
2551  { echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6; }
2553fi
2554
2555  if test "x$ac_ct_CC" = x; then
2556    CC=""
2557  else
2558    case $cross_compiling:$ac_tool_warned in
2559yes:)
2560{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2561whose name does not start with the host triplet.  If you think this
2562configuration is useful to you, please write to autoconf@gnu.org." >&5
2563echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2564whose name does not start with the host triplet.  If you think this
2565configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2566ac_tool_warned=yes ;;
2567esac
2568    CC=$ac_ct_CC
2569  fi
2570else
2571  CC="$ac_cv_prog_CC"
2572fi
2573
2574if test -z "$CC"; then
2575          if test -n "$ac_tool_prefix"; then
2576    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2577set dummy ${ac_tool_prefix}cc; ac_word=$2
2578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580if test "${ac_cv_prog_CC+set}" = set; then
2581  echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583  if test -n "$CC"; then
2584  ac_cv_prog_CC="$CC" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589  IFS=$as_save_IFS
2590  test -z "$as_dir" && as_dir=.
2591  for ac_exec_ext in '' $ac_executable_extensions; do
2592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593    ac_cv_prog_CC="${ac_tool_prefix}cc"
2594    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595    break 2
2596  fi
2597done
2598done
2599IFS=$as_save_IFS
2600
2601fi
2602fi
2603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
2605  { echo "$as_me:$LINENO: result: $CC" >&5
2606echo "${ECHO_T}$CC" >&6; }
2607else
2608  { echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6; }
2610fi
2611
2612
2613  fi
2614fi
2615if test -z "$CC"; then
2616  # Extract the first word of "cc", so it can be a program name with args.
2617set dummy cc; ac_word=$2
2618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620if test "${ac_cv_prog_CC+set}" = set; then
2621  echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
2623  if test -n "$CC"; then
2624  ac_cv_prog_CC="$CC" # Let the user override the test.
2625else
2626  ac_prog_rejected=no
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630  IFS=$as_save_IFS
2631  test -z "$as_dir" && as_dir=.
2632  for ac_exec_ext in '' $ac_executable_extensions; do
2633  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2635       ac_prog_rejected=yes
2636       continue
2637     fi
2638    ac_cv_prog_CC="cc"
2639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640    break 2
2641  fi
2642done
2643done
2644IFS=$as_save_IFS
2645
2646if test $ac_prog_rejected = yes; then
2647  # We found a bogon in the path, so make sure we never use it.
2648  set dummy $ac_cv_prog_CC
2649  shift
2650  if test $# != 0; then
2651    # We chose a different compiler from the bogus one.
2652    # However, it has the same basename, so the bogon will be chosen
2653    # first if we set CC to just the basename; use the full file name.
2654    shift
2655    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2656  fi
2657fi
2658fi
2659fi
2660CC=$ac_cv_prog_CC
2661if test -n "$CC"; then
2662  { echo "$as_me:$LINENO: result: $CC" >&5
2663echo "${ECHO_T}$CC" >&6; }
2664else
2665  { echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6; }
2667fi
2668
2669
2670fi
2671if test -z "$CC"; then
2672  if test -n "$ac_tool_prefix"; then
2673  for ac_prog in cl.exe
2674  do
2675    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2676set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679if test "${ac_cv_prog_CC+set}" = set; then
2680  echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
2682  if test -n "$CC"; then
2683  ac_cv_prog_CC="$CC" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688  IFS=$as_save_IFS
2689  test -z "$as_dir" && as_dir=.
2690  for ac_exec_ext in '' $ac_executable_extensions; do
2691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694    break 2
2695  fi
2696done
2697done
2698IFS=$as_save_IFS
2699
2700fi
2701fi
2702CC=$ac_cv_prog_CC
2703if test -n "$CC"; then
2704  { echo "$as_me:$LINENO: result: $CC" >&5
2705echo "${ECHO_T}$CC" >&6; }
2706else
2707  { echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6; }
2709fi
2710
2711
2712    test -n "$CC" && break
2713  done
2714fi
2715if test -z "$CC"; then
2716  ac_ct_CC=$CC
2717  for ac_prog in cl.exe
2718do
2719  # Extract the first word of "$ac_prog", so it can be a program name with args.
2720set dummy $ac_prog; ac_word=$2
2721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2723if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2724  echo $ECHO_N "(cached) $ECHO_C" >&6
2725else
2726  if test -n "$ac_ct_CC"; then
2727  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2728else
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  test -z "$as_dir" && as_dir=.
2734  for ac_exec_ext in '' $ac_executable_extensions; do
2735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736    ac_cv_prog_ac_ct_CC="$ac_prog"
2737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738    break 2
2739  fi
2740done
2741done
2742IFS=$as_save_IFS
2743
2744fi
2745fi
2746ac_ct_CC=$ac_cv_prog_ac_ct_CC
2747if test -n "$ac_ct_CC"; then
2748  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2749echo "${ECHO_T}$ac_ct_CC" >&6; }
2750else
2751  { echo "$as_me:$LINENO: result: no" >&5
2752echo "${ECHO_T}no" >&6; }
2753fi
2754
2755
2756  test -n "$ac_ct_CC" && break
2757done
2758
2759  if test "x$ac_ct_CC" = x; then
2760    CC=""
2761  else
2762    case $cross_compiling:$ac_tool_warned in
2763yes:)
2764{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2765whose name does not start with the host triplet.  If you think this
2766configuration is useful to you, please write to autoconf@gnu.org." >&5
2767echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2768whose name does not start with the host triplet.  If you think this
2769configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2770ac_tool_warned=yes ;;
2771esac
2772    CC=$ac_ct_CC
2773  fi
2774fi
2775
2776fi
2777
2778
2779test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2780See \`config.log' for more details." >&5
2781echo "$as_me: error: no acceptable C compiler found in \$PATH
2782See \`config.log' for more details." >&2;}
2783   { (exit 1); exit 1; }; }
2784
2785# Provide some information about the compiler.
2786echo "$as_me:$LINENO: checking for C compiler version" >&5
2787ac_compiler=`set X $ac_compile; echo $2`
2788{ (ac_try="$ac_compiler --version >&5"
2789case "(($ac_try" in
2790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791  *) ac_try_echo=$ac_try;;
2792esac
2793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794  (eval "$ac_compiler --version >&5") 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); }
2798{ (ac_try="$ac_compiler -v >&5"
2799case "(($ac_try" in
2800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801  *) ac_try_echo=$ac_try;;
2802esac
2803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804  (eval "$ac_compiler -v >&5") 2>&5
2805  ac_status=$?
2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); }
2808{ (ac_try="$ac_compiler -V >&5"
2809case "(($ac_try" in
2810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811  *) ac_try_echo=$ac_try;;
2812esac
2813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814  (eval "$ac_compiler -V >&5") 2>&5
2815  ac_status=$?
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); }
2818
2819cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h.  */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h.  */
2825
2826int
2827main ()
2828{
2829
2830  ;
2831  return 0;
2832}
2833_ACEOF
2834ac_clean_files_save=$ac_clean_files
2835ac_clean_files="$ac_clean_files a.out a.exe b.out"
2836# Try to create an executable without -o first, disregard a.out.
2837# It will help us diagnose broken compilers, and finding out an intuition
2838# of exeext.
2839{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2840echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2841ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2842#
2843# List of possible output files, starting from the most likely.
2844# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2845# only as a last resort.  b.out is created by i960 compilers.
2846ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2847#
2848# The IRIX 6 linker writes into existing files which may not be
2849# executable, retaining their permissions.  Remove them first so a
2850# subsequent execution test works.
2851ac_rmfiles=
2852for ac_file in $ac_files
2853do
2854  case $ac_file in
2855    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2856    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2857  esac
2858done
2859rm -f $ac_rmfiles
2860
2861if { (ac_try="$ac_link_default"
2862case "(($ac_try" in
2863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864  *) ac_try_echo=$ac_try;;
2865esac
2866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867  (eval "$ac_link_default") 2>&5
2868  ac_status=$?
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); }; then
2871  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2872# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2873# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2874# so that the user can short-circuit this test for compilers unknown to
2875# Autoconf.
2876for ac_file in $ac_files ''
2877do
2878  test -f "$ac_file" || continue
2879  case $ac_file in
2880    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2881	;;
2882    [ab].out )
2883	# We found the default executable, but exeext='' is most
2884	# certainly right.
2885	break;;
2886    *.* )
2887        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2888	then :; else
2889	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890	fi
2891	# We set ac_cv_exeext here because the later test for it is not
2892	# safe: cross compilers may not add the suffix if given an `-o'
2893	# argument, so we may need to know it at that point already.
2894	# Even if this section looks crufty: it has the advantage of
2895	# actually working.
2896	break;;
2897    * )
2898	break;;
2899  esac
2900done
2901test "$ac_cv_exeext" = no && ac_cv_exeext=
2902
2903else
2904  ac_file=''
2905fi
2906
2907{ echo "$as_me:$LINENO: result: $ac_file" >&5
2908echo "${ECHO_T}$ac_file" >&6; }
2909if test -z "$ac_file"; then
2910  echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2914See \`config.log' for more details." >&5
2915echo "$as_me: error: C compiler cannot create executables
2916See \`config.log' for more details." >&2;}
2917   { (exit 77); exit 77; }; }
2918fi
2919
2920ac_exeext=$ac_cv_exeext
2921
2922# Check that the compiler produces executables we can run.  If not, either
2923# the compiler is broken, or we cross compile.
2924{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2925echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2926# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2927# If not cross compiling, check that we can run a simple program.
2928if test "$cross_compiling" != yes; then
2929  if { ac_try='./$ac_file'
2930  { (case "(($ac_try" in
2931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932  *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935  (eval "$ac_try") 2>&5
2936  ac_status=$?
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); }; }; then
2939    cross_compiling=no
2940  else
2941    if test "$cross_compiling" = maybe; then
2942	cross_compiling=yes
2943    else
2944	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2945If you meant to cross compile, use \`--host'.
2946See \`config.log' for more details." >&5
2947echo "$as_me: error: cannot run C compiled programs.
2948If you meant to cross compile, use \`--host'.
2949See \`config.log' for more details." >&2;}
2950   { (exit 1); exit 1; }; }
2951    fi
2952  fi
2953fi
2954{ echo "$as_me:$LINENO: result: yes" >&5
2955echo "${ECHO_T}yes" >&6; }
2956
2957rm -f a.out a.exe conftest$ac_cv_exeext b.out
2958ac_clean_files=$ac_clean_files_save
2959# Check that the compiler produces executables we can run.  If not, either
2960# the compiler is broken, or we cross compile.
2961{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2962echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2963{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2964echo "${ECHO_T}$cross_compiling" >&6; }
2965
2966{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2967echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2968if { (ac_try="$ac_link"
2969case "(($ac_try" in
2970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971  *) ac_try_echo=$ac_try;;
2972esac
2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974  (eval "$ac_link") 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }; then
2978  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2979# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2980# work properly (i.e., refer to `conftest.exe'), while it won't with
2981# `rm'.
2982for ac_file in conftest.exe conftest conftest.*; do
2983  test -f "$ac_file" || continue
2984  case $ac_file in
2985    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2986    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2987	  break;;
2988    * ) break;;
2989  esac
2990done
2991else
2992  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2993See \`config.log' for more details." >&5
2994echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2995See \`config.log' for more details." >&2;}
2996   { (exit 1); exit 1; }; }
2997fi
2998
2999rm -f conftest$ac_cv_exeext
3000{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3001echo "${ECHO_T}$ac_cv_exeext" >&6; }
3002
3003rm -f conftest.$ac_ext
3004EXEEXT=$ac_cv_exeext
3005ac_exeext=$EXEEXT
3006{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3007echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3008if test "${ac_cv_objext+set}" = set; then
3009  echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011  cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h.  */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h.  */
3017
3018int
3019main ()
3020{
3021
3022  ;
3023  return 0;
3024}
3025_ACEOF
3026rm -f conftest.o conftest.obj
3027if { (ac_try="$ac_compile"
3028case "(($ac_try" in
3029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030  *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033  (eval "$ac_compile") 2>&5
3034  ac_status=$?
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); }; then
3037  for ac_file in conftest.o conftest.obj conftest.*; do
3038  test -f "$ac_file" || continue;
3039  case $ac_file in
3040    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3041    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3042       break;;
3043  esac
3044done
3045else
3046  echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3050See \`config.log' for more details." >&5
3051echo "$as_me: error: cannot compute suffix of object files: cannot compile
3052See \`config.log' for more details." >&2;}
3053   { (exit 1); exit 1; }; }
3054fi
3055
3056rm -f conftest.$ac_cv_objext conftest.$ac_ext
3057fi
3058{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3059echo "${ECHO_T}$ac_cv_objext" >&6; }
3060OBJEXT=$ac_cv_objext
3061ac_objext=$OBJEXT
3062{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3063echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3064if test "${ac_cv_c_compiler_gnu+set}" = set; then
3065  echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
3067  cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h.  */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h.  */
3073
3074int
3075main ()
3076{
3077#ifndef __GNUC__
3078       choke me
3079#endif
3080
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext
3086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092  (eval "$ac_compile") 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } && {
3099	 test -z "$ac_c_werror_flag" ||
3100	 test ! -s conftest.err
3101       } && test -s conftest.$ac_objext; then
3102  ac_compiler_gnu=yes
3103else
3104  echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107	ac_compiler_gnu=no
3108fi
3109
3110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111ac_cv_c_compiler_gnu=$ac_compiler_gnu
3112
3113fi
3114{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3115echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3116GCC=`test $ac_compiler_gnu = yes && echo yes`
3117ac_test_CFLAGS=${CFLAGS+set}
3118ac_save_CFLAGS=$CFLAGS
3119{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3120echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3121if test "${ac_cv_prog_cc_g+set}" = set; then
3122  echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124  ac_save_c_werror_flag=$ac_c_werror_flag
3125   ac_c_werror_flag=yes
3126   ac_cv_prog_cc_g=no
3127   CFLAGS="-g"
3128   cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h.  */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h.  */
3134
3135int
3136main ()
3137{
3138
3139  ;
3140  return 0;
3141}
3142_ACEOF
3143rm -f conftest.$ac_objext
3144if { (ac_try="$ac_compile"
3145case "(($ac_try" in
3146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147  *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150  (eval "$ac_compile") 2>conftest.er1
3151  ac_status=$?
3152  grep -v '^ *+' conftest.er1 >conftest.err
3153  rm -f conftest.er1
3154  cat conftest.err >&5
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); } && {
3157	 test -z "$ac_c_werror_flag" ||
3158	 test ! -s conftest.err
3159       } && test -s conftest.$ac_objext; then
3160  ac_cv_prog_cc_g=yes
3161else
3162  echo "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165	CFLAGS=""
3166      cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h.  */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h.  */
3172
3173int
3174main ()
3175{
3176
3177  ;
3178  return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($ac_try" in
3184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185  *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188  (eval "$ac_compile") 2>conftest.er1
3189  ac_status=$?
3190  grep -v '^ *+' conftest.er1 >conftest.err
3191  rm -f conftest.er1
3192  cat conftest.err >&5
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); } && {
3195	 test -z "$ac_c_werror_flag" ||
3196	 test ! -s conftest.err
3197       } && test -s conftest.$ac_objext; then
3198  :
3199else
3200  echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203	ac_c_werror_flag=$ac_save_c_werror_flag
3204	 CFLAGS="-g"
3205	 cat >conftest.$ac_ext <<_ACEOF
3206/* confdefs.h.  */
3207_ACEOF
3208cat confdefs.h >>conftest.$ac_ext
3209cat >>conftest.$ac_ext <<_ACEOF
3210/* end confdefs.h.  */
3211
3212int
3213main ()
3214{
3215
3216  ;
3217  return 0;
3218}
3219_ACEOF
3220rm -f conftest.$ac_objext
3221if { (ac_try="$ac_compile"
3222case "(($ac_try" in
3223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224  *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227  (eval "$ac_compile") 2>conftest.er1
3228  ac_status=$?
3229  grep -v '^ *+' conftest.er1 >conftest.err
3230  rm -f conftest.er1
3231  cat conftest.err >&5
3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233  (exit $ac_status); } && {
3234	 test -z "$ac_c_werror_flag" ||
3235	 test ! -s conftest.err
3236       } && test -s conftest.$ac_objext; then
3237  ac_cv_prog_cc_g=yes
3238else
3239  echo "$as_me: failed program was:" >&5
3240sed 's/^/| /' conftest.$ac_ext >&5
3241
3242
3243fi
3244
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246fi
3247
3248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249fi
3250
3251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252   ac_c_werror_flag=$ac_save_c_werror_flag
3253fi
3254{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3255echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3256if test "$ac_test_CFLAGS" = set; then
3257  CFLAGS=$ac_save_CFLAGS
3258elif test $ac_cv_prog_cc_g = yes; then
3259  if test "$GCC" = yes; then
3260    CFLAGS="-g -O2"
3261  else
3262    CFLAGS="-g"
3263  fi
3264else
3265  if test "$GCC" = yes; then
3266    CFLAGS="-O2"
3267  else
3268    CFLAGS=
3269  fi
3270fi
3271{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3272echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3273if test "${ac_cv_prog_cc_c89+set}" = set; then
3274  echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276  ac_cv_prog_cc_c89=no
3277ac_save_CC=$CC
3278cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h.  */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h.  */
3284#include <stdarg.h>
3285#include <stdio.h>
3286#include <sys/types.h>
3287#include <sys/stat.h>
3288/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3289struct buf { int x; };
3290FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291static char *e (p, i)
3292     char **p;
3293     int i;
3294{
3295  return p[i];
3296}
3297static char *f (char * (*g) (char **, int), char **p, ...)
3298{
3299  char *s;
3300  va_list v;
3301  va_start (v,p);
3302  s = g (p, va_arg (v,int));
3303  va_end (v);
3304  return s;
3305}
3306
3307/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3308   function prototypes and stuff, but not '\xHH' hex character constants.
3309   These don't provoke an error unfortunately, instead are silently treated
3310   as 'x'.  The following induces an error, until -std is added to get
3311   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3312   array size at least.  It's necessary to write '\x00'==0 to get something
3313   that's true only with -std.  */
3314int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315
3316/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3317   inside strings and character constants.  */
3318#define FOO(x) 'x'
3319int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3320
3321int test (int i, double x);
3322struct s1 {int (*f) (int a);};
3323struct s2 {int (*f) (double a);};
3324int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3325int argc;
3326char **argv;
3327int
3328main ()
3329{
3330return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3331  ;
3332  return 0;
3333}
3334_ACEOF
3335for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3336	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3337do
3338  CC="$ac_save_CC $ac_arg"
3339  rm -f conftest.$ac_objext
3340if { (ac_try="$ac_compile"
3341case "(($ac_try" in
3342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343  *) ac_try_echo=$ac_try;;
3344esac
3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346  (eval "$ac_compile") 2>conftest.er1
3347  ac_status=$?
3348  grep -v '^ *+' conftest.er1 >conftest.err
3349  rm -f conftest.er1
3350  cat conftest.err >&5
3351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352  (exit $ac_status); } && {
3353	 test -z "$ac_c_werror_flag" ||
3354	 test ! -s conftest.err
3355       } && test -s conftest.$ac_objext; then
3356  ac_cv_prog_cc_c89=$ac_arg
3357else
3358  echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
3361
3362fi
3363
3364rm -f core conftest.err conftest.$ac_objext
3365  test "x$ac_cv_prog_cc_c89" != "xno" && break
3366done
3367rm -f conftest.$ac_ext
3368CC=$ac_save_CC
3369
3370fi
3371# AC_CACHE_VAL
3372case "x$ac_cv_prog_cc_c89" in
3373  x)
3374    { echo "$as_me:$LINENO: result: none needed" >&5
3375echo "${ECHO_T}none needed" >&6; } ;;
3376  xno)
3377    { echo "$as_me:$LINENO: result: unsupported" >&5
3378echo "${ECHO_T}unsupported" >&6; } ;;
3379  *)
3380    CC="$CC $ac_cv_prog_cc_c89"
3381    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3383esac
3384
3385
3386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391DEPDIR="${am__leading_dot}deps"
3392
3393ac_config_commands="$ac_config_commands depfiles"
3394
3395
3396am_make=${MAKE-make}
3397cat > confinc << 'END'
3398am__doit:
3399	@echo done
3400.PHONY: am__doit
3401END
3402# If we don't find an include directive, just comment out the code.
3403{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3404echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3405am__include="#"
3406am__quote=
3407_am_result=none
3408# First try GNU make style include.
3409echo "include confinc" > confmf
3410# We grep out `Entering directory' and `Leaving directory'
3411# messages which can occur if `w' ends up in MAKEFLAGS.
3412# In particular we don't look at `^make:' because GNU make might
3413# be invoked under some other name (usually "gmake"), in which
3414# case it prints its new name instead of `make'.
3415if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3416   am__include=include
3417   am__quote=
3418   _am_result=GNU
3419fi
3420# Now try BSD make style include.
3421if test "$am__include" = "#"; then
3422   echo '.include "confinc"' > confmf
3423   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3424      am__include=.include
3425      am__quote="\""
3426      _am_result=BSD
3427   fi
3428fi
3429
3430
3431{ echo "$as_me:$LINENO: result: $_am_result" >&5
3432echo "${ECHO_T}$_am_result" >&6; }
3433rm -f confinc confmf
3434
3435# Check whether --enable-dependency-tracking was given.
3436if test "${enable_dependency_tracking+set}" = set; then
3437  enableval=$enable_dependency_tracking;
3438fi
3439
3440if test "x$enable_dependency_tracking" != xno; then
3441  am_depcomp="$ac_aux_dir/depcomp"
3442  AMDEPBACKSLASH='\'
3443fi
3444 if test "x$enable_dependency_tracking" != xno; then
3445  AMDEP_TRUE=
3446  AMDEP_FALSE='#'
3447else
3448  AMDEP_TRUE='#'
3449  AMDEP_FALSE=
3450fi
3451
3452
3453
3454depcc="$CC"   am_compiler_list=
3455
3456{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3457echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3458if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3459  echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3462  # We make a subdir and do the tests there.  Otherwise we can end up
3463  # making bogus files that we don't know about and never remove.  For
3464  # instance it was reported that on HP-UX the gcc test will end up
3465  # making a dummy file named `D' -- because `-MD' means `put the output
3466  # in D'.
3467  mkdir conftest.dir
3468  # Copy depcomp to subdir because otherwise we won't find it if we're
3469  # using a relative directory.
3470  cp "$am_depcomp" conftest.dir
3471  cd conftest.dir
3472  # We will build objects and dependencies in a subdirectory because
3473  # it helps to detect inapplicable dependency modes.  For instance
3474  # both Tru64's cc and ICC support -MD to output dependencies as a
3475  # side effect of compilation, but ICC will put the dependencies in
3476  # the current directory while Tru64 will put them in the object
3477  # directory.
3478  mkdir sub
3479
3480  am_cv_CC_dependencies_compiler_type=none
3481  if test "$am_compiler_list" = ""; then
3482     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3483  fi
3484  for depmode in $am_compiler_list; do
3485    # Setup a source with many dependencies, because some compilers
3486    # like to wrap large dependency lists on column 80 (with \), and
3487    # we should not choose a depcomp mode which is confused by this.
3488    #
3489    # We need to recreate these files for each test, as the compiler may
3490    # overwrite some of them when testing with obscure command lines.
3491    # This happens at least with the AIX C compiler.
3492    : > sub/conftest.c
3493    for i in 1 2 3 4 5 6; do
3494      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3495      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3496      # Solaris 8's {/usr,}/bin/sh.
3497      touch sub/conftst$i.h
3498    done
3499    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3500
3501    case $depmode in
3502    nosideeffect)
3503      # after this tag, mechanisms are not by side-effect, so they'll
3504      # only be used when explicitly requested
3505      if test "x$enable_dependency_tracking" = xyes; then
3506	continue
3507      else
3508	break
3509      fi
3510      ;;
3511    none) break ;;
3512    esac
3513    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3514    # mode.  It turns out that the SunPro C++ compiler does not properly
3515    # handle `-M -o', and we need to detect this.
3516    if depmode=$depmode \
3517       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3518       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3519       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3520         >/dev/null 2>conftest.err &&
3521       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3522       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3523       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3524       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3525      # icc doesn't choke on unknown options, it will just issue warnings
3526      # or remarks (even with -Werror).  So we grep stderr for any message
3527      # that says an option was ignored or not supported.
3528      # When given -MP, icc 7.0 and 7.1 complain thusly:
3529      #   icc: Command line warning: ignoring option '-M'; no argument required
3530      # The diagnosis changed in icc 8.0:
3531      #   icc: Command line remark: option '-MP' not supported
3532      if (grep 'ignoring option' conftest.err ||
3533          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3534        am_cv_CC_dependencies_compiler_type=$depmode
3535        break
3536      fi
3537    fi
3538  done
3539
3540  cd ..
3541  rm -rf conftest.dir
3542else
3543  am_cv_CC_dependencies_compiler_type=none
3544fi
3545
3546fi
3547{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3548echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3549CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3550
3551 if
3552  test "x$enable_dependency_tracking" != xno \
3553  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3554  am__fastdepCC_TRUE=
3555  am__fastdepCC_FALSE='#'
3556else
3557  am__fastdepCC_TRUE='#'
3558  am__fastdepCC_FALSE=
3559fi
3560
3561
3562# Check whether --enable-shared was given.
3563if test "${enable_shared+set}" = set; then
3564  enableval=$enable_shared; p=${PACKAGE-default}
3565    case $enableval in
3566    yes) enable_shared=yes ;;
3567    no) enable_shared=no ;;
3568    *)
3569      enable_shared=no
3570      # Look at the argument we got.  We use all the common list separators.
3571      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3572      for pkg in $enableval; do
3573	IFS="$lt_save_ifs"
3574	if test "X$pkg" = "X$p"; then
3575	  enable_shared=yes
3576	fi
3577      done
3578      IFS="$lt_save_ifs"
3579      ;;
3580    esac
3581else
3582  enable_shared=yes
3583fi
3584
3585
3586# Check whether --enable-static was given.
3587if test "${enable_static+set}" = set; then
3588  enableval=$enable_static; p=${PACKAGE-default}
3589    case $enableval in
3590    yes) enable_static=yes ;;
3591    no) enable_static=no ;;
3592    *)
3593     enable_static=no
3594      # Look at the argument we got.  We use all the common list separators.
3595      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3596      for pkg in $enableval; do
3597	IFS="$lt_save_ifs"
3598	if test "X$pkg" = "X$p"; then
3599	  enable_static=yes
3600	fi
3601      done
3602      IFS="$lt_save_ifs"
3603      ;;
3604    esac
3605else
3606  enable_static=yes
3607fi
3608
3609
3610# Check whether --enable-fast-install was given.
3611if test "${enable_fast_install+set}" = set; then
3612  enableval=$enable_fast_install; p=${PACKAGE-default}
3613    case $enableval in
3614    yes) enable_fast_install=yes ;;
3615    no) enable_fast_install=no ;;
3616    *)
3617      enable_fast_install=no
3618      # Look at the argument we got.  We use all the common list separators.
3619      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3620      for pkg in $enableval; do
3621	IFS="$lt_save_ifs"
3622	if test "X$pkg" = "X$p"; then
3623	  enable_fast_install=yes
3624	fi
3625      done
3626      IFS="$lt_save_ifs"
3627      ;;
3628    esac
3629else
3630  enable_fast_install=yes
3631fi
3632
3633
3634# Make sure we can run config.sub.
3635$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3636  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3637echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3638   { (exit 1); exit 1; }; }
3639
3640{ echo "$as_me:$LINENO: checking build system type" >&5
3641echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3642if test "${ac_cv_build+set}" = set; then
3643  echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645  ac_build_alias=$build_alias
3646test "x$ac_build_alias" = x &&
3647  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3648test "x$ac_build_alias" = x &&
3649  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3650echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3651   { (exit 1); exit 1; }; }
3652ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3653  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3654echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3655   { (exit 1); exit 1; }; }
3656
3657fi
3658{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3659echo "${ECHO_T}$ac_cv_build" >&6; }
3660case $ac_cv_build in
3661*-*-*) ;;
3662*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3663echo "$as_me: error: invalid value of canonical build" >&2;}
3664   { (exit 1); exit 1; }; };;
3665esac
3666build=$ac_cv_build
3667ac_save_IFS=$IFS; IFS='-'
3668set x $ac_cv_build
3669shift
3670build_cpu=$1
3671build_vendor=$2
3672shift; shift
3673# Remember, the first character of IFS is used to create $*,
3674# except with old shells:
3675build_os=$*
3676IFS=$ac_save_IFS
3677case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3678
3679
3680{ echo "$as_me:$LINENO: checking host system type" >&5
3681echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3682if test "${ac_cv_host+set}" = set; then
3683  echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685  if test "x$host_alias" = x; then
3686  ac_cv_host=$ac_cv_build
3687else
3688  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3689    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3690echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3691   { (exit 1); exit 1; }; }
3692fi
3693
3694fi
3695{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3696echo "${ECHO_T}$ac_cv_host" >&6; }
3697case $ac_cv_host in
3698*-*-*) ;;
3699*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3700echo "$as_me: error: invalid value of canonical host" >&2;}
3701   { (exit 1); exit 1; }; };;
3702esac
3703host=$ac_cv_host
3704ac_save_IFS=$IFS; IFS='-'
3705set x $ac_cv_host
3706shift
3707host_cpu=$1
3708host_vendor=$2
3709shift; shift
3710# Remember, the first character of IFS is used to create $*,
3711# except with old shells:
3712host_os=$*
3713IFS=$ac_save_IFS
3714case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3715
3716
3717{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3718echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3719if test "${lt_cv_path_SED+set}" = set; then
3720  echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722  # Loop through the user's path and test for sed and gsed.
3723# Then use that list of sed's as ones to test for truncation.
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH
3726do
3727  IFS=$as_save_IFS
3728  test -z "$as_dir" && as_dir=.
3729  for lt_ac_prog in sed gsed; do
3730    for ac_exec_ext in '' $ac_executable_extensions; do
3731      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3732        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3733      fi
3734    done
3735  done
3736done
3737lt_ac_max=0
3738lt_ac_count=0
3739# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3740# along with /bin/sed that truncates output.
3741for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3742  test ! -f $lt_ac_sed && continue
3743  cat /dev/null > conftest.in
3744  lt_ac_count=0
3745  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3746  # Check for GNU sed and select it if it is found.
3747  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3748    lt_cv_path_SED=$lt_ac_sed
3749    break
3750  fi
3751  while true; do
3752    cat conftest.in conftest.in >conftest.tmp
3753    mv conftest.tmp conftest.in
3754    cp conftest.in conftest.nl
3755    echo >>conftest.nl
3756    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3757    cmp -s conftest.out conftest.nl || break
3758    # 10000 chars as input seems more than enough
3759    test $lt_ac_count -gt 10 && break
3760    lt_ac_count=`expr $lt_ac_count + 1`
3761    if test $lt_ac_count -gt $lt_ac_max; then
3762      lt_ac_max=$lt_ac_count
3763      lt_cv_path_SED=$lt_ac_sed
3764    fi
3765  done
3766done
3767
3768fi
3769
3770SED=$lt_cv_path_SED
3771{ echo "$as_me:$LINENO: result: $SED" >&5
3772echo "${ECHO_T}$SED" >&6; }
3773
3774{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3775echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3776if test "${ac_cv_path_GREP+set}" = set; then
3777  echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779  # Extract the first word of "grep ggrep" to use in msg output
3780if test -z "$GREP"; then
3781set dummy grep ggrep; ac_prog_name=$2
3782if test "${ac_cv_path_GREP+set}" = set; then
3783  echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785  ac_path_GREP_found=false
3786# Loop through the user's path and test for each of PROGNAME-LIST
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789do
3790  IFS=$as_save_IFS
3791  test -z "$as_dir" && as_dir=.
3792  for ac_prog in grep ggrep; do
3793  for ac_exec_ext in '' $ac_executable_extensions; do
3794    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3795    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3796    # Check for GNU ac_path_GREP and select it if it is found.
3797  # Check for GNU $ac_path_GREP
3798case `"$ac_path_GREP" --version 2>&1` in
3799*GNU*)
3800  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3801*)
3802  ac_count=0
3803  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804  while :
3805  do
3806    cat "conftest.in" "conftest.in" >"conftest.tmp"
3807    mv "conftest.tmp" "conftest.in"
3808    cp "conftest.in" "conftest.nl"
3809    echo 'GREP' >> "conftest.nl"
3810    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3811    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3812    ac_count=`expr $ac_count + 1`
3813    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3814      # Best one so far, save it but keep looking for a better one
3815      ac_cv_path_GREP="$ac_path_GREP"
3816      ac_path_GREP_max=$ac_count
3817    fi
3818    # 10*(2^10) chars as input seems more than enough
3819    test $ac_count -gt 10 && break
3820  done
3821  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822esac
3823
3824
3825    $ac_path_GREP_found && break 3
3826  done
3827done
3828
3829done
3830IFS=$as_save_IFS
3831
3832
3833fi
3834
3835GREP="$ac_cv_path_GREP"
3836if test -z "$GREP"; then
3837  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3838echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3839   { (exit 1); exit 1; }; }
3840fi
3841
3842else
3843  ac_cv_path_GREP=$GREP
3844fi
3845
3846
3847fi
3848{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3849echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3850 GREP="$ac_cv_path_GREP"
3851
3852
3853{ echo "$as_me:$LINENO: checking for egrep" >&5
3854echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3855if test "${ac_cv_path_EGREP+set}" = set; then
3856  echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3859   then ac_cv_path_EGREP="$GREP -E"
3860   else
3861     # Extract the first word of "egrep" to use in msg output
3862if test -z "$EGREP"; then
3863set dummy egrep; ac_prog_name=$2
3864if test "${ac_cv_path_EGREP+set}" = set; then
3865  echo $ECHO_N "(cached) $ECHO_C" >&6
3866else
3867  ac_path_EGREP_found=false
3868# Loop through the user's path and test for each of PROGNAME-LIST
3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3871do
3872  IFS=$as_save_IFS
3873  test -z "$as_dir" && as_dir=.
3874  for ac_prog in egrep; do
3875  for ac_exec_ext in '' $ac_executable_extensions; do
3876    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3877    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3878    # Check for GNU ac_path_EGREP and select it if it is found.
3879  # Check for GNU $ac_path_EGREP
3880case `"$ac_path_EGREP" --version 2>&1` in
3881*GNU*)
3882  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3883*)
3884  ac_count=0
3885  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3886  while :
3887  do
3888    cat "conftest.in" "conftest.in" >"conftest.tmp"
3889    mv "conftest.tmp" "conftest.in"
3890    cp "conftest.in" "conftest.nl"
3891    echo 'EGREP' >> "conftest.nl"
3892    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3893    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3894    ac_count=`expr $ac_count + 1`
3895    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3896      # Best one so far, save it but keep looking for a better one
3897      ac_cv_path_EGREP="$ac_path_EGREP"
3898      ac_path_EGREP_max=$ac_count
3899    fi
3900    # 10*(2^10) chars as input seems more than enough
3901    test $ac_count -gt 10 && break
3902  done
3903  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3904esac
3905
3906
3907    $ac_path_EGREP_found && break 3
3908  done
3909done
3910
3911done
3912IFS=$as_save_IFS
3913
3914
3915fi
3916
3917EGREP="$ac_cv_path_EGREP"
3918if test -z "$EGREP"; then
3919  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3920echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3921   { (exit 1); exit 1; }; }
3922fi
3923
3924else
3925  ac_cv_path_EGREP=$EGREP
3926fi
3927
3928
3929   fi
3930fi
3931{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3932echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3933 EGREP="$ac_cv_path_EGREP"
3934
3935
3936
3937# Check whether --with-gnu-ld was given.
3938if test "${with_gnu_ld+set}" = set; then
3939  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3940else
3941  with_gnu_ld=no
3942fi
3943
3944ac_prog=ld
3945if test "$GCC" = yes; then
3946  # Check if gcc -print-prog-name=ld gives a path.
3947  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3948echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3949  case $host in
3950  *-*-mingw*)
3951    # gcc leaves a trailing carriage return which upsets mingw
3952    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3953  *)
3954    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3955  esac
3956  case $ac_prog in
3957    # Accept absolute paths.
3958    [\\/]* | ?:[\\/]*)
3959      re_direlt='/[^/][^/]*/\.\./'
3960      # Canonicalize the pathname of ld
3961      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3962      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3963	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3964      done
3965      test -z "$LD" && LD="$ac_prog"
3966      ;;
3967  "")
3968    # If it fails, then pretend we aren't using GCC.
3969    ac_prog=ld
3970    ;;
3971  *)
3972    # If it is relative, then search for the first ld in PATH.
3973    with_gnu_ld=unknown
3974    ;;
3975  esac
3976elif test "$with_gnu_ld" = yes; then
3977  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3978echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3979else
3980  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3981echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3982fi
3983if test "${lt_cv_path_LD+set}" = set; then
3984  echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986  if test -z "$LD"; then
3987  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3988  for ac_dir in $PATH; do
3989    IFS="$lt_save_ifs"
3990    test -z "$ac_dir" && ac_dir=.
3991    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3992      lt_cv_path_LD="$ac_dir/$ac_prog"
3993      # Check to see if the program is GNU ld.  I'd rather use --version,
3994      # but apparently some variants of GNU ld only accept -v.
3995      # Break only if it was the GNU/non-GNU ld that we prefer.
3996      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3997      *GNU* | *'with BFD'*)
3998	test "$with_gnu_ld" != no && break
3999	;;
4000      *)
4001	test "$with_gnu_ld" != yes && break
4002	;;
4003      esac
4004    fi
4005  done
4006  IFS="$lt_save_ifs"
4007else
4008  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4009fi
4010fi
4011
4012LD="$lt_cv_path_LD"
4013if test -n "$LD"; then
4014  { echo "$as_me:$LINENO: result: $LD" >&5
4015echo "${ECHO_T}$LD" >&6; }
4016else
4017  { echo "$as_me:$LINENO: result: no" >&5
4018echo "${ECHO_T}no" >&6; }
4019fi
4020test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4021echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4022   { (exit 1); exit 1; }; }
4023{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4024echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4025if test "${lt_cv_prog_gnu_ld+set}" = set; then
4026  echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4029case `$LD -v 2>&1 </dev/null` in
4030*GNU* | *'with BFD'*)
4031  lt_cv_prog_gnu_ld=yes
4032  ;;
4033*)
4034  lt_cv_prog_gnu_ld=no
4035  ;;
4036esac
4037fi
4038{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4039echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4040with_gnu_ld=$lt_cv_prog_gnu_ld
4041
4042
4043{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4044echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4045if test "${lt_cv_ld_reload_flag+set}" = set; then
4046  echo $ECHO_N "(cached) $ECHO_C" >&6
4047else
4048  lt_cv_ld_reload_flag='-r'
4049fi
4050{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4051echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4052reload_flag=$lt_cv_ld_reload_flag
4053case $reload_flag in
4054"" | " "*) ;;
4055*) reload_flag=" $reload_flag" ;;
4056esac
4057reload_cmds='$LD$reload_flag -o $output$reload_objs'
4058case $host_os in
4059  darwin*)
4060    if test "$GCC" = yes; then
4061      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4062    else
4063      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4064    fi
4065    ;;
4066esac
4067
4068{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4069echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4070if test "${lt_cv_path_NM+set}" = set; then
4071  echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073  if test -n "$NM"; then
4074  # Let the user override the test.
4075  lt_cv_path_NM="$NM"
4076else
4077  lt_nm_to_check="${ac_tool_prefix}nm"
4078  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4079    lt_nm_to_check="$lt_nm_to_check nm"
4080  fi
4081  for lt_tmp_nm in $lt_nm_to_check; do
4082    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4083    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4084      IFS="$lt_save_ifs"
4085      test -z "$ac_dir" && ac_dir=.
4086      tmp_nm="$ac_dir/$lt_tmp_nm"
4087      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4088	# Check to see if the nm accepts a BSD-compat flag.
4089	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4090	#   nm: unknown option "B" ignored
4091	# Tru64's nm complains that /dev/null is an invalid object file
4092	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4093	*/dev/null* | *'Invalid file or object type'*)
4094	  lt_cv_path_NM="$tmp_nm -B"
4095	  break
4096	  ;;
4097	*)
4098	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4099	  */dev/null*)
4100	    lt_cv_path_NM="$tmp_nm -p"
4101	    break
4102	    ;;
4103	  *)
4104	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4105	    continue # so that we can try to find one that supports BSD flags
4106	    ;;
4107	  esac
4108	  ;;
4109	esac
4110      fi
4111    done
4112    IFS="$lt_save_ifs"
4113  done
4114  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4115fi
4116fi
4117{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4118echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4119NM="$lt_cv_path_NM"
4120
4121{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4122echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4123LN_S=$as_ln_s
4124if test "$LN_S" = "ln -s"; then
4125  { echo "$as_me:$LINENO: result: yes" >&5
4126echo "${ECHO_T}yes" >&6; }
4127else
4128  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4129echo "${ECHO_T}no, using $LN_S" >&6; }
4130fi
4131
4132{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4133echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4134if test "${lt_cv_deplibs_check_method+set}" = set; then
4135  echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137  lt_cv_file_magic_cmd='$MAGIC_CMD'
4138lt_cv_file_magic_test_file=
4139lt_cv_deplibs_check_method='unknown'
4140# Need to set the preceding variable on all platforms that support
4141# interlibrary dependencies.
4142# 'none' -- dependencies not supported.
4143# `unknown' -- same as none, but documents that we really don't know.
4144# 'pass_all' -- all dependencies passed with no checks.
4145# 'test_compile' -- check by making test program.
4146# 'file_magic [[regex]]' -- check by looking for files in library path
4147# which responds to the $file_magic_cmd with a given extended regex.
4148# If you have `file' or equivalent on your system and you're not sure
4149# whether `pass_all' will *always* work, you probably want this one.
4150
4151case $host_os in
4152aix4* | aix5*)
4153  lt_cv_deplibs_check_method=pass_all
4154  ;;
4155
4156beos*)
4157  lt_cv_deplibs_check_method=pass_all
4158  ;;
4159
4160bsdi[45]*)
4161  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4162  lt_cv_file_magic_cmd='/usr/bin/file -L'
4163  lt_cv_file_magic_test_file=/shlib/libc.so
4164  ;;
4165
4166cygwin*)
4167  # func_win32_libid is a shell function defined in ltmain.sh
4168  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4169  lt_cv_file_magic_cmd='func_win32_libid'
4170  ;;
4171
4172mingw* | pw32*)
4173  # Base MSYS/MinGW do not provide the 'file' command needed by
4174  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4175  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4176  lt_cv_file_magic_cmd='$OBJDUMP -f'
4177  ;;
4178
4179darwin* | rhapsody*)
4180  lt_cv_deplibs_check_method=pass_all
4181  ;;
4182
4183freebsd* | kfreebsd*-gnu | dragonfly*)
4184  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4185    case $host_cpu in
4186    i*86 )
4187      # Not sure whether the presence of OpenBSD here was a mistake.
4188      # Let's accept both of them until this is cleared up.
4189      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4190      lt_cv_file_magic_cmd=/usr/bin/file
4191      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4192      ;;
4193    esac
4194  else
4195    lt_cv_deplibs_check_method=pass_all
4196  fi
4197  ;;
4198
4199gnu*)
4200  lt_cv_deplibs_check_method=pass_all
4201  ;;
4202
4203hpux10.20* | hpux11*)
4204  lt_cv_file_magic_cmd=/usr/bin/file
4205  case $host_cpu in
4206  ia64*)
4207    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4208    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4209    ;;
4210  hppa*64*)
4211    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]'
4212    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4213    ;;
4214  *)
4215    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4216    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4217    ;;
4218  esac
4219  ;;
4220
4221interix3*)
4222  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4223  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4224  ;;
4225
4226irix5* | irix6* | nonstopux*)
4227  case $LD in
4228  *-32|*"-32 ") libmagic=32-bit;;
4229  *-n32|*"-n32 ") libmagic=N32;;
4230  *-64|*"-64 ") libmagic=64-bit;;
4231  *) libmagic=never-match;;
4232  esac
4233  lt_cv_deplibs_check_method=pass_all
4234  ;;
4235
4236# This must be Linux ELF.
4237linux*)
4238  lt_cv_deplibs_check_method=pass_all
4239  ;;
4240
4241netbsd*)
4242  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4243    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4244  else
4245    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4246  fi
4247  ;;
4248
4249newos6*)
4250  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4251  lt_cv_file_magic_cmd=/usr/bin/file
4252  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4253  ;;
4254
4255nto-qnx*)
4256  lt_cv_deplibs_check_method=unknown
4257  ;;
4258
4259openbsd*)
4260  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4261    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4262  else
4263    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4264  fi
4265  ;;
4266
4267osf3* | osf4* | osf5*)
4268  lt_cv_deplibs_check_method=pass_all
4269  ;;
4270
4271solaris*)
4272  lt_cv_deplibs_check_method=pass_all
4273  ;;
4274
4275sysv4 | sysv4.3*)
4276  case $host_vendor in
4277  motorola)
4278    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]'
4279    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4280    ;;
4281  ncr)
4282    lt_cv_deplibs_check_method=pass_all
4283    ;;
4284  sequent)
4285    lt_cv_file_magic_cmd='/bin/file'
4286    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4287    ;;
4288  sni)
4289    lt_cv_file_magic_cmd='/bin/file'
4290    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4291    lt_cv_file_magic_test_file=/lib/libc.so
4292    ;;
4293  siemens)
4294    lt_cv_deplibs_check_method=pass_all
4295    ;;
4296  pc)
4297    lt_cv_deplibs_check_method=pass_all
4298    ;;
4299  esac
4300  ;;
4301
4302sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4303  lt_cv_deplibs_check_method=pass_all
4304  ;;
4305esac
4306
4307fi
4308{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4309echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4310file_magic_cmd=$lt_cv_file_magic_cmd
4311deplibs_check_method=$lt_cv_deplibs_check_method
4312test -z "$deplibs_check_method" && deplibs_check_method=unknown
4313
4314
4315
4316
4317# If no C compiler was specified, use CC.
4318LTCC=${LTCC-"$CC"}
4319
4320# If no C compiler flags were specified, use CFLAGS.
4321LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4322
4323# Allow CC to be a program name with arguments.
4324compiler=$CC
4325
4326
4327# Check whether --enable-libtool-lock was given.
4328if test "${enable_libtool_lock+set}" = set; then
4329  enableval=$enable_libtool_lock;
4330fi
4331
4332test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4333
4334# Some flags need to be propagated to the compiler or linker for good
4335# libtool support.
4336case $host in
4337ia64-*-hpux*)
4338  # Find out which ABI we are using.
4339  echo 'int i;' > conftest.$ac_ext
4340  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341  (eval $ac_compile) 2>&5
4342  ac_status=$?
4343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); }; then
4345    case `/usr/bin/file conftest.$ac_objext` in
4346    *ELF-32*)
4347      HPUX_IA64_MODE="32"
4348      ;;
4349    *ELF-64*)
4350      HPUX_IA64_MODE="64"
4351      ;;
4352    esac
4353  fi
4354  rm -rf conftest*
4355  ;;
4356*-*-irix6*)
4357  # Find out which ABI we are using.
4358  echo '#line 4358 "configure"' > conftest.$ac_ext
4359  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360  (eval $ac_compile) 2>&5
4361  ac_status=$?
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); }; then
4364   if test "$lt_cv_prog_gnu_ld" = yes; then
4365    case `/usr/bin/file conftest.$ac_objext` in
4366    *32-bit*)
4367      LD="${LD-ld} -melf32bsmip"
4368      ;;
4369    *N32*)
4370      LD="${LD-ld} -melf32bmipn32"
4371      ;;
4372    *64-bit*)
4373      LD="${LD-ld} -melf64bmip"
4374      ;;
4375    esac
4376   else
4377    case `/usr/bin/file conftest.$ac_objext` in
4378    *32-bit*)
4379      LD="${LD-ld} -32"
4380      ;;
4381    *N32*)
4382      LD="${LD-ld} -n32"
4383      ;;
4384    *64-bit*)
4385      LD="${LD-ld} -64"
4386      ;;
4387    esac
4388   fi
4389  fi
4390  rm -rf conftest*
4391  ;;
4392
4393x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4394  # Find out which ABI we are using.
4395  echo 'int i;' > conftest.$ac_ext
4396  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397  (eval $ac_compile) 2>&5
4398  ac_status=$?
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); }; then
4401    case `/usr/bin/file conftest.o` in
4402    *32-bit*)
4403      case $host in
4404        x86_64-*linux*)
4405          LD="${LD-ld} -m elf_i386"
4406          ;;
4407        ppc64-*linux*|powerpc64-*linux*)
4408          LD="${LD-ld} -m elf32ppclinux"
4409          ;;
4410        s390x-*linux*)
4411          LD="${LD-ld} -m elf_s390"
4412          ;;
4413        sparc64-*linux*)
4414          LD="${LD-ld} -m elf32_sparc"
4415          ;;
4416      esac
4417      ;;
4418    *64-bit*)
4419      case $host in
4420        x86_64-*linux*)
4421          LD="${LD-ld} -m elf_x86_64"
4422          ;;
4423        ppc*-*linux*|powerpc*-*linux*)
4424          LD="${LD-ld} -m elf64ppc"
4425          ;;
4426        s390*-*linux*)
4427          LD="${LD-ld} -m elf64_s390"
4428          ;;
4429        sparc*-*linux*)
4430          LD="${LD-ld} -m elf64_sparc"
4431          ;;
4432      esac
4433      ;;
4434    esac
4435  fi
4436  rm -rf conftest*
4437  ;;
4438
4439*-*-sco3.2v5*)
4440  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4441  SAVE_CFLAGS="$CFLAGS"
4442  CFLAGS="$CFLAGS -belf"
4443  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4444echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4445if test "${lt_cv_cc_needs_belf+set}" = set; then
4446  echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448  ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454     cat >conftest.$ac_ext <<_ACEOF
4455/* confdefs.h.  */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
4459/* end confdefs.h.  */
4460
4461int
4462main ()
4463{
4464
4465  ;
4466  return 0;
4467}
4468_ACEOF
4469rm -f conftest.$ac_objext conftest$ac_exeext
4470if { (ac_try="$ac_link"
4471case "(($ac_try" in
4472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473  *) ac_try_echo=$ac_try;;
4474esac
4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476  (eval "$ac_link") 2>conftest.er1
4477  ac_status=$?
4478  grep -v '^ *+' conftest.er1 >conftest.err
4479  rm -f conftest.er1
4480  cat conftest.err >&5
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); } && {
4483	 test -z "$ac_c_werror_flag" ||
4484	 test ! -s conftest.err
4485       } && test -s conftest$ac_exeext &&
4486       $as_test_x conftest$ac_exeext; then
4487  lt_cv_cc_needs_belf=yes
4488else
4489  echo "$as_me: failed program was:" >&5
4490sed 's/^/| /' conftest.$ac_ext >&5
4491
4492	lt_cv_cc_needs_belf=no
4493fi
4494
4495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4496      conftest$ac_exeext conftest.$ac_ext
4497     ac_ext=c
4498ac_cpp='$CPP $CPPFLAGS'
4499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502
4503fi
4504{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4505echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4506  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4507    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4508    CFLAGS="$SAVE_CFLAGS"
4509  fi
4510  ;;
4511sparc*-*solaris*)
4512  # Find out which ABI we are using.
4513  echo 'int i;' > conftest.$ac_ext
4514  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515  (eval $ac_compile) 2>&5
4516  ac_status=$?
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); }; then
4519    case `/usr/bin/file conftest.o` in
4520    *64-bit*)
4521      case $lt_cv_prog_gnu_ld in
4522      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4523      *)    LD="${LD-ld} -64" ;;
4524      esac
4525      ;;
4526    esac
4527  fi
4528  rm -rf conftest*
4529  ;;
4530
4531
4532esac
4533
4534need_locks="$enable_libtool_lock"
4535
4536
4537ac_ext=c
4538ac_cpp='$CPP $CPPFLAGS'
4539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4543echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4544# On Suns, sometimes $CPP names a directory.
4545if test -n "$CPP" && test -d "$CPP"; then
4546  CPP=
4547fi
4548if test -z "$CPP"; then
4549  if test "${ac_cv_prog_CPP+set}" = set; then
4550  echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552      # Double quotes because CPP needs to be expanded
4553    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4554    do
4555      ac_preproc_ok=false
4556for ac_c_preproc_warn_flag in '' yes
4557do
4558  # Use a header file that comes with gcc, so configuring glibc
4559  # with a fresh cross-compiler works.
4560  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4561  # <limits.h> exists even on freestanding compilers.
4562  # On the NeXT, cc -E runs the code through the compiler's parser,
4563  # not just through cpp. "Syntax error" is here to catch this case.
4564  cat >conftest.$ac_ext <<_ACEOF
4565/* confdefs.h.  */
4566_ACEOF
4567cat confdefs.h >>conftest.$ac_ext
4568cat >>conftest.$ac_ext <<_ACEOF
4569/* end confdefs.h.  */
4570#ifdef __STDC__
4571# include <limits.h>
4572#else
4573# include <assert.h>
4574#endif
4575		     Syntax error
4576_ACEOF
4577if { (ac_try="$ac_cpp conftest.$ac_ext"
4578case "(($ac_try" in
4579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580  *) ac_try_echo=$ac_try;;
4581esac
4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4584  ac_status=$?
4585  grep -v '^ *+' conftest.er1 >conftest.err
4586  rm -f conftest.er1
4587  cat conftest.err >&5
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); } >/dev/null && {
4590	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4591	 test ! -s conftest.err
4592       }; then
4593  :
4594else
4595  echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598  # Broken: fails on valid input.
4599continue
4600fi
4601
4602rm -f conftest.err conftest.$ac_ext
4603
4604  # OK, works on sane cases.  Now check whether nonexistent headers
4605  # can be detected and how.
4606  cat >conftest.$ac_ext <<_ACEOF
4607/* confdefs.h.  */
4608_ACEOF
4609cat confdefs.h >>conftest.$ac_ext
4610cat >>conftest.$ac_ext <<_ACEOF
4611/* end confdefs.h.  */
4612#include <ac_nonexistent.h>
4613_ACEOF
4614if { (ac_try="$ac_cpp conftest.$ac_ext"
4615case "(($ac_try" in
4616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617  *) ac_try_echo=$ac_try;;
4618esac
4619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4621  ac_status=$?
4622  grep -v '^ *+' conftest.er1 >conftest.err
4623  rm -f conftest.er1
4624  cat conftest.err >&5
4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626  (exit $ac_status); } >/dev/null && {
4627	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4628	 test ! -s conftest.err
4629       }; then
4630  # Broken: success on invalid input.
4631continue
4632else
4633  echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
4636  # Passes both tests.
4637ac_preproc_ok=:
4638break
4639fi
4640
4641rm -f conftest.err conftest.$ac_ext
4642
4643done
4644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4645rm -f conftest.err conftest.$ac_ext
4646if $ac_preproc_ok; then
4647  break
4648fi
4649
4650    done
4651    ac_cv_prog_CPP=$CPP
4652
4653fi
4654  CPP=$ac_cv_prog_CPP
4655else
4656  ac_cv_prog_CPP=$CPP
4657fi
4658{ echo "$as_me:$LINENO: result: $CPP" >&5
4659echo "${ECHO_T}$CPP" >&6; }
4660ac_preproc_ok=false
4661for ac_c_preproc_warn_flag in '' yes
4662do
4663  # Use a header file that comes with gcc, so configuring glibc
4664  # with a fresh cross-compiler works.
4665  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4666  # <limits.h> exists even on freestanding compilers.
4667  # On the NeXT, cc -E runs the code through the compiler's parser,
4668  # not just through cpp. "Syntax error" is here to catch this case.
4669  cat >conftest.$ac_ext <<_ACEOF
4670/* confdefs.h.  */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h.  */
4675#ifdef __STDC__
4676# include <limits.h>
4677#else
4678# include <assert.h>
4679#endif
4680		     Syntax error
4681_ACEOF
4682if { (ac_try="$ac_cpp conftest.$ac_ext"
4683case "(($ac_try" in
4684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685  *) ac_try_echo=$ac_try;;
4686esac
4687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4689  ac_status=$?
4690  grep -v '^ *+' conftest.er1 >conftest.err
4691  rm -f conftest.er1
4692  cat conftest.err >&5
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); } >/dev/null && {
4695	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4696	 test ! -s conftest.err
4697       }; then
4698  :
4699else
4700  echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703  # Broken: fails on valid input.
4704continue
4705fi
4706
4707rm -f conftest.err conftest.$ac_ext
4708
4709  # OK, works on sane cases.  Now check whether nonexistent headers
4710  # can be detected and how.
4711  cat >conftest.$ac_ext <<_ACEOF
4712/* confdefs.h.  */
4713_ACEOF
4714cat confdefs.h >>conftest.$ac_ext
4715cat >>conftest.$ac_ext <<_ACEOF
4716/* end confdefs.h.  */
4717#include <ac_nonexistent.h>
4718_ACEOF
4719if { (ac_try="$ac_cpp conftest.$ac_ext"
4720case "(($ac_try" in
4721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722  *) ac_try_echo=$ac_try;;
4723esac
4724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726  ac_status=$?
4727  grep -v '^ *+' conftest.er1 >conftest.err
4728  rm -f conftest.er1
4729  cat conftest.err >&5
4730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731  (exit $ac_status); } >/dev/null && {
4732	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733	 test ! -s conftest.err
4734       }; then
4735  # Broken: success on invalid input.
4736continue
4737else
4738  echo "$as_me: failed program was:" >&5
4739sed 's/^/| /' conftest.$ac_ext >&5
4740
4741  # Passes both tests.
4742ac_preproc_ok=:
4743break
4744fi
4745
4746rm -f conftest.err conftest.$ac_ext
4747
4748done
4749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750rm -f conftest.err conftest.$ac_ext
4751if $ac_preproc_ok; then
4752  :
4753else
4754  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4755See \`config.log' for more details." >&5
4756echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4757See \`config.log' for more details." >&2;}
4758   { (exit 1); exit 1; }; }
4759fi
4760
4761ac_ext=c
4762ac_cpp='$CPP $CPPFLAGS'
4763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766
4767
4768{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4769echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4770if test "${ac_cv_header_stdc+set}" = set; then
4771  echo $ECHO_N "(cached) $ECHO_C" >&6
4772else
4773  cat >conftest.$ac_ext <<_ACEOF
4774/* confdefs.h.  */
4775_ACEOF
4776cat confdefs.h >>conftest.$ac_ext
4777cat >>conftest.$ac_ext <<_ACEOF
4778/* end confdefs.h.  */
4779#include <stdlib.h>
4780#include <stdarg.h>
4781#include <string.h>
4782#include <float.h>
4783
4784int
4785main ()
4786{
4787
4788  ;
4789  return 0;
4790}
4791_ACEOF
4792rm -f conftest.$ac_objext
4793if { (ac_try="$ac_compile"
4794case "(($ac_try" in
4795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796  *) ac_try_echo=$ac_try;;
4797esac
4798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799  (eval "$ac_compile") 2>conftest.er1
4800  ac_status=$?
4801  grep -v '^ *+' conftest.er1 >conftest.err
4802  rm -f conftest.er1
4803  cat conftest.err >&5
4804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805  (exit $ac_status); } && {
4806	 test -z "$ac_c_werror_flag" ||
4807	 test ! -s conftest.err
4808       } && test -s conftest.$ac_objext; then
4809  ac_cv_header_stdc=yes
4810else
4811  echo "$as_me: failed program was:" >&5
4812sed 's/^/| /' conftest.$ac_ext >&5
4813
4814	ac_cv_header_stdc=no
4815fi
4816
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818
4819if test $ac_cv_header_stdc = yes; then
4820  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4821  cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h.  */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h.  */
4827#include <string.h>
4828
4829_ACEOF
4830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4831  $EGREP "memchr" >/dev/null 2>&1; then
4832  :
4833else
4834  ac_cv_header_stdc=no
4835fi
4836rm -f conftest*
4837
4838fi
4839
4840if test $ac_cv_header_stdc = yes; then
4841  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4842  cat >conftest.$ac_ext <<_ACEOF
4843/* confdefs.h.  */
4844_ACEOF
4845cat confdefs.h >>conftest.$ac_ext
4846cat >>conftest.$ac_ext <<_ACEOF
4847/* end confdefs.h.  */
4848#include <stdlib.h>
4849
4850_ACEOF
4851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4852  $EGREP "free" >/dev/null 2>&1; then
4853  :
4854else
4855  ac_cv_header_stdc=no
4856fi
4857rm -f conftest*
4858
4859fi
4860
4861if test $ac_cv_header_stdc = yes; then
4862  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4863  if test "$cross_compiling" = yes; then
4864  :
4865else
4866  cat >conftest.$ac_ext <<_ACEOF
4867/* confdefs.h.  */
4868_ACEOF
4869cat confdefs.h >>conftest.$ac_ext
4870cat >>conftest.$ac_ext <<_ACEOF
4871/* end confdefs.h.  */
4872#include <ctype.h>
4873#include <stdlib.h>
4874#if ((' ' & 0x0FF) == 0x020)
4875# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4876# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4877#else
4878# define ISLOWER(c) \
4879		   (('a' <= (c) && (c) <= 'i') \
4880		     || ('j' <= (c) && (c) <= 'r') \
4881		     || ('s' <= (c) && (c) <= 'z'))
4882# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4883#endif
4884
4885#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4886int
4887main ()
4888{
4889  int i;
4890  for (i = 0; i < 256; i++)
4891    if (XOR (islower (i), ISLOWER (i))
4892	|| toupper (i) != TOUPPER (i))
4893      return 2;
4894  return 0;
4895}
4896_ACEOF
4897rm -f conftest$ac_exeext
4898if { (ac_try="$ac_link"
4899case "(($ac_try" in
4900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901  *) ac_try_echo=$ac_try;;
4902esac
4903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904  (eval "$ac_link") 2>&5
4905  ac_status=$?
4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4908  { (case "(($ac_try" in
4909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910  *) ac_try_echo=$ac_try;;
4911esac
4912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913  (eval "$ac_try") 2>&5
4914  ac_status=$?
4915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916  (exit $ac_status); }; }; then
4917  :
4918else
4919  echo "$as_me: program exited with status $ac_status" >&5
4920echo "$as_me: failed program was:" >&5
4921sed 's/^/| /' conftest.$ac_ext >&5
4922
4923( exit $ac_status )
4924ac_cv_header_stdc=no
4925fi
4926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4927fi
4928
4929
4930fi
4931fi
4932{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4933echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4934if test $ac_cv_header_stdc = yes; then
4935
4936cat >>confdefs.h <<\_ACEOF
4937#define STDC_HEADERS 1
4938_ACEOF
4939
4940fi
4941
4942# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4953		  inttypes.h stdint.h unistd.h
4954do
4955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4956{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4959  echo $ECHO_N "(cached) $ECHO_C" >&6
4960else
4961  cat >conftest.$ac_ext <<_ACEOF
4962/* confdefs.h.  */
4963_ACEOF
4964cat confdefs.h >>conftest.$ac_ext
4965cat >>conftest.$ac_ext <<_ACEOF
4966/* end confdefs.h.  */
4967$ac_includes_default
4968
4969#include <$ac_header>
4970_ACEOF
4971rm -f conftest.$ac_objext
4972if { (ac_try="$ac_compile"
4973case "(($ac_try" in
4974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975  *) ac_try_echo=$ac_try;;
4976esac
4977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978  (eval "$ac_compile") 2>conftest.er1
4979  ac_status=$?
4980  grep -v '^ *+' conftest.er1 >conftest.err
4981  rm -f conftest.er1
4982  cat conftest.err >&5
4983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984  (exit $ac_status); } && {
4985	 test -z "$ac_c_werror_flag" ||
4986	 test ! -s conftest.err
4987       } && test -s conftest.$ac_objext; then
4988  eval "$as_ac_Header=yes"
4989else
4990  echo "$as_me: failed program was:" >&5
4991sed 's/^/| /' conftest.$ac_ext >&5
4992
4993	eval "$as_ac_Header=no"
4994fi
4995
4996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997fi
4998ac_res=`eval echo '${'$as_ac_Header'}'`
4999	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5000echo "${ECHO_T}$ac_res" >&6; }
5001if test `eval echo '${'$as_ac_Header'}'` = yes; then
5002  cat >>confdefs.h <<_ACEOF
5003#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5004_ACEOF
5005
5006fi
5007
5008done
5009
5010
5011
5012for ac_header in dlfcn.h
5013do
5014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5016  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5019  echo $ECHO_N "(cached) $ECHO_C" >&6
5020fi
5021ac_res=`eval echo '${'$as_ac_Header'}'`
5022	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5023echo "${ECHO_T}$ac_res" >&6; }
5024else
5025  # Is the header compilable?
5026{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5028cat >conftest.$ac_ext <<_ACEOF
5029/* confdefs.h.  */
5030_ACEOF
5031cat confdefs.h >>conftest.$ac_ext
5032cat >>conftest.$ac_ext <<_ACEOF
5033/* end confdefs.h.  */
5034$ac_includes_default
5035#include <$ac_header>
5036_ACEOF
5037rm -f conftest.$ac_objext
5038if { (ac_try="$ac_compile"
5039case "(($ac_try" in
5040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041  *) ac_try_echo=$ac_try;;
5042esac
5043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044  (eval "$ac_compile") 2>conftest.er1
5045  ac_status=$?
5046  grep -v '^ *+' conftest.er1 >conftest.err
5047  rm -f conftest.er1
5048  cat conftest.err >&5
5049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050  (exit $ac_status); } && {
5051	 test -z "$ac_c_werror_flag" ||
5052	 test ! -s conftest.err
5053       } && test -s conftest.$ac_objext; then
5054  ac_header_compiler=yes
5055else
5056  echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059	ac_header_compiler=no
5060fi
5061
5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5064echo "${ECHO_T}$ac_header_compiler" >&6; }
5065
5066# Is the header present?
5067{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5068echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5069cat >conftest.$ac_ext <<_ACEOF
5070/* confdefs.h.  */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h.  */
5075#include <$ac_header>
5076_ACEOF
5077if { (ac_try="$ac_cpp conftest.$ac_ext"
5078case "(($ac_try" in
5079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080  *) ac_try_echo=$ac_try;;
5081esac
5082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084  ac_status=$?
5085  grep -v '^ *+' conftest.er1 >conftest.err
5086  rm -f conftest.er1
5087  cat conftest.err >&5
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); } >/dev/null && {
5090	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5091	 test ! -s conftest.err
5092       }; then
5093  ac_header_preproc=yes
5094else
5095  echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098  ac_header_preproc=no
5099fi
5100
5101rm -f conftest.err conftest.$ac_ext
5102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103echo "${ECHO_T}$ac_header_preproc" >&6; }
5104
5105# So?  What about this header?
5106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5107  yes:no: )
5108    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5112    ac_header_preproc=yes
5113    ;;
5114  no:yes:* )
5115    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5117    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5118echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5119    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5121    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5122echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5123    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5125    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5127    ( cat <<\_ASBOX
5128## ---------------------------------------------------------------------- ##
5129## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5130## ---------------------------------------------------------------------- ##
5131_ASBOX
5132     ) | sed "s/^/$as_me: WARNING:     /" >&2
5133    ;;
5134esac
5135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5138  echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140  eval "$as_ac_Header=\$ac_header_preproc"
5141fi
5142ac_res=`eval echo '${'$as_ac_Header'}'`
5143	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5144echo "${ECHO_T}$ac_res" >&6; }
5145
5146fi
5147if test `eval echo '${'$as_ac_Header'}'` = yes; then
5148  cat >>confdefs.h <<_ACEOF
5149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5150_ACEOF
5151
5152fi
5153
5154done
5155
5156ac_ext=cpp
5157ac_cpp='$CXXCPP $CPPFLAGS'
5158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161if test -z "$CXX"; then
5162  if test -n "$CCC"; then
5163    CXX=$CCC
5164  else
5165    if test -n "$ac_tool_prefix"; then
5166  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5167  do
5168    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5169set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5172if test "${ac_cv_prog_CXX+set}" = set; then
5173  echo $ECHO_N "(cached) $ECHO_C" >&6
5174else
5175  if test -n "$CXX"; then
5176  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181  IFS=$as_save_IFS
5182  test -z "$as_dir" && as_dir=.
5183  for ac_exec_ext in '' $ac_executable_extensions; do
5184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5186    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187    break 2
5188  fi
5189done
5190done
5191IFS=$as_save_IFS
5192
5193fi
5194fi
5195CXX=$ac_cv_prog_CXX
5196if test -n "$CXX"; then
5197  { echo "$as_me:$LINENO: result: $CXX" >&5
5198echo "${ECHO_T}$CXX" >&6; }
5199else
5200  { echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6; }
5202fi
5203
5204
5205    test -n "$CXX" && break
5206  done
5207fi
5208if test -z "$CXX"; then
5209  ac_ct_CXX=$CXX
5210  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5211do
5212  # Extract the first word of "$ac_prog", so it can be a program name with args.
5213set dummy $ac_prog; ac_word=$2
5214{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5216if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5217  echo $ECHO_N "(cached) $ECHO_C" >&6
5218else
5219  if test -n "$ac_ct_CXX"; then
5220  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225  IFS=$as_save_IFS
5226  test -z "$as_dir" && as_dir=.
5227  for ac_exec_ext in '' $ac_executable_extensions; do
5228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229    ac_cv_prog_ac_ct_CXX="$ac_prog"
5230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231    break 2
5232  fi
5233done
5234done
5235IFS=$as_save_IFS
5236
5237fi
5238fi
5239ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5240if test -n "$ac_ct_CXX"; then
5241  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5242echo "${ECHO_T}$ac_ct_CXX" >&6; }
5243else
5244  { echo "$as_me:$LINENO: result: no" >&5
5245echo "${ECHO_T}no" >&6; }
5246fi
5247
5248
5249  test -n "$ac_ct_CXX" && break
5250done
5251
5252  if test "x$ac_ct_CXX" = x; then
5253    CXX="g++"
5254  else
5255    case $cross_compiling:$ac_tool_warned in
5256yes:)
5257{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5258whose name does not start with the host triplet.  If you think this
5259configuration is useful to you, please write to autoconf@gnu.org." >&5
5260echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5261whose name does not start with the host triplet.  If you think this
5262configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5263ac_tool_warned=yes ;;
5264esac
5265    CXX=$ac_ct_CXX
5266  fi
5267fi
5268
5269  fi
5270fi
5271# Provide some information about the compiler.
5272echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5273ac_compiler=`set X $ac_compile; echo $2`
5274{ (ac_try="$ac_compiler --version >&5"
5275case "(($ac_try" in
5276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277  *) ac_try_echo=$ac_try;;
5278esac
5279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280  (eval "$ac_compiler --version >&5") 2>&5
5281  ac_status=$?
5282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283  (exit $ac_status); }
5284{ (ac_try="$ac_compiler -v >&5"
5285case "(($ac_try" in
5286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287  *) ac_try_echo=$ac_try;;
5288esac
5289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290  (eval "$ac_compiler -v >&5") 2>&5
5291  ac_status=$?
5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293  (exit $ac_status); }
5294{ (ac_try="$ac_compiler -V >&5"
5295case "(($ac_try" in
5296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297  *) ac_try_echo=$ac_try;;
5298esac
5299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300  (eval "$ac_compiler -V >&5") 2>&5
5301  ac_status=$?
5302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303  (exit $ac_status); }
5304
5305{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5306echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5307if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5308  echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310  cat >conftest.$ac_ext <<_ACEOF
5311/* confdefs.h.  */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h.  */
5316
5317int
5318main ()
5319{
5320#ifndef __GNUC__
5321       choke me
5322#endif
5323
5324  ;
5325  return 0;
5326}
5327_ACEOF
5328rm -f conftest.$ac_objext
5329if { (ac_try="$ac_compile"
5330case "(($ac_try" in
5331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332  *) ac_try_echo=$ac_try;;
5333esac
5334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335  (eval "$ac_compile") 2>conftest.er1
5336  ac_status=$?
5337  grep -v '^ *+' conftest.er1 >conftest.err
5338  rm -f conftest.er1
5339  cat conftest.err >&5
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); } && {
5342	 test -z "$ac_cxx_werror_flag" ||
5343	 test ! -s conftest.err
5344       } && test -s conftest.$ac_objext; then
5345  ac_compiler_gnu=yes
5346else
5347  echo "$as_me: failed program was:" >&5
5348sed 's/^/| /' conftest.$ac_ext >&5
5349
5350	ac_compiler_gnu=no
5351fi
5352
5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5355
5356fi
5357{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5358echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5359GXX=`test $ac_compiler_gnu = yes && echo yes`
5360ac_test_CXXFLAGS=${CXXFLAGS+set}
5361ac_save_CXXFLAGS=$CXXFLAGS
5362{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5363echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5364if test "${ac_cv_prog_cxx_g+set}" = set; then
5365  echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5368   ac_cxx_werror_flag=yes
5369   ac_cv_prog_cxx_g=no
5370   CXXFLAGS="-g"
5371   cat >conftest.$ac_ext <<_ACEOF
5372/* confdefs.h.  */
5373_ACEOF
5374cat confdefs.h >>conftest.$ac_ext
5375cat >>conftest.$ac_ext <<_ACEOF
5376/* end confdefs.h.  */
5377
5378int
5379main ()
5380{
5381
5382  ;
5383  return 0;
5384}
5385_ACEOF
5386rm -f conftest.$ac_objext
5387if { (ac_try="$ac_compile"
5388case "(($ac_try" in
5389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390  *) ac_try_echo=$ac_try;;
5391esac
5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393  (eval "$ac_compile") 2>conftest.er1
5394  ac_status=$?
5395  grep -v '^ *+' conftest.er1 >conftest.err
5396  rm -f conftest.er1
5397  cat conftest.err >&5
5398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399  (exit $ac_status); } && {
5400	 test -z "$ac_cxx_werror_flag" ||
5401	 test ! -s conftest.err
5402       } && test -s conftest.$ac_objext; then
5403  ac_cv_prog_cxx_g=yes
5404else
5405  echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5
5407
5408	CXXFLAGS=""
5409      cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h.  */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h.  */
5415
5416int
5417main ()
5418{
5419
5420  ;
5421  return 0;
5422}
5423_ACEOF
5424rm -f conftest.$ac_objext
5425if { (ac_try="$ac_compile"
5426case "(($ac_try" in
5427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428  *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431  (eval "$ac_compile") 2>conftest.er1
5432  ac_status=$?
5433  grep -v '^ *+' conftest.er1 >conftest.err
5434  rm -f conftest.er1
5435  cat conftest.err >&5
5436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437  (exit $ac_status); } && {
5438	 test -z "$ac_cxx_werror_flag" ||
5439	 test ! -s conftest.err
5440       } && test -s conftest.$ac_objext; then
5441  :
5442else
5443  echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
5445
5446	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5447	 CXXFLAGS="-g"
5448	 cat >conftest.$ac_ext <<_ACEOF
5449/* confdefs.h.  */
5450_ACEOF
5451cat confdefs.h >>conftest.$ac_ext
5452cat >>conftest.$ac_ext <<_ACEOF
5453/* end confdefs.h.  */
5454
5455int
5456main ()
5457{
5458
5459  ;
5460  return 0;
5461}
5462_ACEOF
5463rm -f conftest.$ac_objext
5464if { (ac_try="$ac_compile"
5465case "(($ac_try" in
5466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467  *) ac_try_echo=$ac_try;;
5468esac
5469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470  (eval "$ac_compile") 2>conftest.er1
5471  ac_status=$?
5472  grep -v '^ *+' conftest.er1 >conftest.err
5473  rm -f conftest.er1
5474  cat conftest.err >&5
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); } && {
5477	 test -z "$ac_cxx_werror_flag" ||
5478	 test ! -s conftest.err
5479       } && test -s conftest.$ac_objext; then
5480  ac_cv_prog_cxx_g=yes
5481else
5482  echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485
5486fi
5487
5488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489fi
5490
5491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492fi
5493
5494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5496fi
5497{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5498echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5499if test "$ac_test_CXXFLAGS" = set; then
5500  CXXFLAGS=$ac_save_CXXFLAGS
5501elif test $ac_cv_prog_cxx_g = yes; then
5502  if test "$GXX" = yes; then
5503    CXXFLAGS="-g -O2"
5504  else
5505    CXXFLAGS="-g"
5506  fi
5507else
5508  if test "$GXX" = yes; then
5509    CXXFLAGS="-O2"
5510  else
5511    CXXFLAGS=
5512  fi
5513fi
5514ac_ext=cpp
5515ac_cpp='$CXXCPP $CPPFLAGS'
5516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5519
5520depcc="$CXX"  am_compiler_list=
5521
5522{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5523echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5524if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5525  echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5528  # We make a subdir and do the tests there.  Otherwise we can end up
5529  # making bogus files that we don't know about and never remove.  For
5530  # instance it was reported that on HP-UX the gcc test will end up
5531  # making a dummy file named `D' -- because `-MD' means `put the output
5532  # in D'.
5533  mkdir conftest.dir
5534  # Copy depcomp to subdir because otherwise we won't find it if we're
5535  # using a relative directory.
5536  cp "$am_depcomp" conftest.dir
5537  cd conftest.dir
5538  # We will build objects and dependencies in a subdirectory because
5539  # it helps to detect inapplicable dependency modes.  For instance
5540  # both Tru64's cc and ICC support -MD to output dependencies as a
5541  # side effect of compilation, but ICC will put the dependencies in
5542  # the current directory while Tru64 will put them in the object
5543  # directory.
5544  mkdir sub
5545
5546  am_cv_CXX_dependencies_compiler_type=none
5547  if test "$am_compiler_list" = ""; then
5548     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5549  fi
5550  for depmode in $am_compiler_list; do
5551    # Setup a source with many dependencies, because some compilers
5552    # like to wrap large dependency lists on column 80 (with \), and
5553    # we should not choose a depcomp mode which is confused by this.
5554    #
5555    # We need to recreate these files for each test, as the compiler may
5556    # overwrite some of them when testing with obscure command lines.
5557    # This happens at least with the AIX C compiler.
5558    : > sub/conftest.c
5559    for i in 1 2 3 4 5 6; do
5560      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5561      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5562      # Solaris 8's {/usr,}/bin/sh.
5563      touch sub/conftst$i.h
5564    done
5565    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5566
5567    case $depmode in
5568    nosideeffect)
5569      # after this tag, mechanisms are not by side-effect, so they'll
5570      # only be used when explicitly requested
5571      if test "x$enable_dependency_tracking" = xyes; then
5572	continue
5573      else
5574	break
5575      fi
5576      ;;
5577    none) break ;;
5578    esac
5579    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5580    # mode.  It turns out that the SunPro C++ compiler does not properly
5581    # handle `-M -o', and we need to detect this.
5582    if depmode=$depmode \
5583       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5584       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5585       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5586         >/dev/null 2>conftest.err &&
5587       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5588       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5589       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5590       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5591      # icc doesn't choke on unknown options, it will just issue warnings
5592      # or remarks (even with -Werror).  So we grep stderr for any message
5593      # that says an option was ignored or not supported.
5594      # When given -MP, icc 7.0 and 7.1 complain thusly:
5595      #   icc: Command line warning: ignoring option '-M'; no argument required
5596      # The diagnosis changed in icc 8.0:
5597      #   icc: Command line remark: option '-MP' not supported
5598      if (grep 'ignoring option' conftest.err ||
5599          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5600        am_cv_CXX_dependencies_compiler_type=$depmode
5601        break
5602      fi
5603    fi
5604  done
5605
5606  cd ..
5607  rm -rf conftest.dir
5608else
5609  am_cv_CXX_dependencies_compiler_type=none
5610fi
5611
5612fi
5613{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5614echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5615CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5616
5617 if
5618  test "x$enable_dependency_tracking" != xno \
5619  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5620  am__fastdepCXX_TRUE=
5621  am__fastdepCXX_FALSE='#'
5622else
5623  am__fastdepCXX_TRUE='#'
5624  am__fastdepCXX_FALSE=
5625fi
5626
5627
5628
5629
5630if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5631    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5632    (test "X$CXX" != "Xg++"))) ; then
5633  ac_ext=cpp
5634ac_cpp='$CXXCPP $CPPFLAGS'
5635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5638{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5639echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5640if test -z "$CXXCPP"; then
5641  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5642  echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644      # Double quotes because CXXCPP needs to be expanded
5645    for CXXCPP in "$CXX -E" "/lib/cpp"
5646    do
5647      ac_preproc_ok=false
5648for ac_cxx_preproc_warn_flag in '' yes
5649do
5650  # Use a header file that comes with gcc, so configuring glibc
5651  # with a fresh cross-compiler works.
5652  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5653  # <limits.h> exists even on freestanding compilers.
5654  # On the NeXT, cc -E runs the code through the compiler's parser,
5655  # not just through cpp. "Syntax error" is here to catch this case.
5656  cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h.  */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h.  */
5662#ifdef __STDC__
5663# include <limits.h>
5664#else
5665# include <assert.h>
5666#endif
5667		     Syntax error
5668_ACEOF
5669if { (ac_try="$ac_cpp conftest.$ac_ext"
5670case "(($ac_try" in
5671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672  *) ac_try_echo=$ac_try;;
5673esac
5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5676  ac_status=$?
5677  grep -v '^ *+' conftest.er1 >conftest.err
5678  rm -f conftest.er1
5679  cat conftest.err >&5
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); } >/dev/null && {
5682	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5683	 test ! -s conftest.err
5684       }; then
5685  :
5686else
5687  echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
5689
5690  # Broken: fails on valid input.
5691continue
5692fi
5693
5694rm -f conftest.err conftest.$ac_ext
5695
5696  # OK, works on sane cases.  Now check whether nonexistent headers
5697  # can be detected and how.
5698  cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h.  */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h.  */
5704#include <ac_nonexistent.h>
5705_ACEOF
5706if { (ac_try="$ac_cpp conftest.$ac_ext"
5707case "(($ac_try" in
5708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709  *) ac_try_echo=$ac_try;;
5710esac
5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713  ac_status=$?
5714  grep -v '^ *+' conftest.er1 >conftest.err
5715  rm -f conftest.er1
5716  cat conftest.err >&5
5717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718  (exit $ac_status); } >/dev/null && {
5719	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5720	 test ! -s conftest.err
5721       }; then
5722  # Broken: success on invalid input.
5723continue
5724else
5725  echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728  # Passes both tests.
5729ac_preproc_ok=:
5730break
5731fi
5732
5733rm -f conftest.err conftest.$ac_ext
5734
5735done
5736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5737rm -f conftest.err conftest.$ac_ext
5738if $ac_preproc_ok; then
5739  break
5740fi
5741
5742    done
5743    ac_cv_prog_CXXCPP=$CXXCPP
5744
5745fi
5746  CXXCPP=$ac_cv_prog_CXXCPP
5747else
5748  ac_cv_prog_CXXCPP=$CXXCPP
5749fi
5750{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5751echo "${ECHO_T}$CXXCPP" >&6; }
5752ac_preproc_ok=false
5753for ac_cxx_preproc_warn_flag in '' yes
5754do
5755  # Use a header file that comes with gcc, so configuring glibc
5756  # with a fresh cross-compiler works.
5757  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758  # <limits.h> exists even on freestanding compilers.
5759  # On the NeXT, cc -E runs the code through the compiler's parser,
5760  # not just through cpp. "Syntax error" is here to catch this case.
5761  cat >conftest.$ac_ext <<_ACEOF
5762/* confdefs.h.  */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h.  */
5767#ifdef __STDC__
5768# include <limits.h>
5769#else
5770# include <assert.h>
5771#endif
5772		     Syntax error
5773_ACEOF
5774if { (ac_try="$ac_cpp conftest.$ac_ext"
5775case "(($ac_try" in
5776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777  *) ac_try_echo=$ac_try;;
5778esac
5779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5781  ac_status=$?
5782  grep -v '^ *+' conftest.er1 >conftest.err
5783  rm -f conftest.er1
5784  cat conftest.err >&5
5785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786  (exit $ac_status); } >/dev/null && {
5787	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5788	 test ! -s conftest.err
5789       }; then
5790  :
5791else
5792  echo "$as_me: failed program was:" >&5
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5795  # Broken: fails on valid input.
5796continue
5797fi
5798
5799rm -f conftest.err conftest.$ac_ext
5800
5801  # OK, works on sane cases.  Now check whether nonexistent headers
5802  # can be detected and how.
5803  cat >conftest.$ac_ext <<_ACEOF
5804/* confdefs.h.  */
5805_ACEOF
5806cat confdefs.h >>conftest.$ac_ext
5807cat >>conftest.$ac_ext <<_ACEOF
5808/* end confdefs.h.  */
5809#include <ac_nonexistent.h>
5810_ACEOF
5811if { (ac_try="$ac_cpp conftest.$ac_ext"
5812case "(($ac_try" in
5813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814  *) ac_try_echo=$ac_try;;
5815esac
5816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5818  ac_status=$?
5819  grep -v '^ *+' conftest.er1 >conftest.err
5820  rm -f conftest.er1
5821  cat conftest.err >&5
5822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823  (exit $ac_status); } >/dev/null && {
5824	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5825	 test ! -s conftest.err
5826       }; then
5827  # Broken: success on invalid input.
5828continue
5829else
5830  echo "$as_me: failed program was:" >&5
5831sed 's/^/| /' conftest.$ac_ext >&5
5832
5833  # Passes both tests.
5834ac_preproc_ok=:
5835break
5836fi
5837
5838rm -f conftest.err conftest.$ac_ext
5839
5840done
5841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5842rm -f conftest.err conftest.$ac_ext
5843if $ac_preproc_ok; then
5844  :
5845else
5846  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5847See \`config.log' for more details." >&5
5848echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5849See \`config.log' for more details." >&2;}
5850   { (exit 1); exit 1; }; }
5851fi
5852
5853ac_ext=cpp
5854ac_cpp='$CXXCPP $CPPFLAGS'
5855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5858
5859fi
5860
5861
5862ac_ext=f
5863ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5864ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5866if test -n "$ac_tool_prefix"; then
5867  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
5868  do
5869    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873if test "${ac_cv_prog_F77+set}" = set; then
5874  echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876  if test -n "$F77"; then
5877  ac_cv_prog_F77="$F77" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882  IFS=$as_save_IFS
5883  test -z "$as_dir" && as_dir=.
5884  for ac_exec_ext in '' $ac_executable_extensions; do
5885  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5887    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888    break 2
5889  fi
5890done
5891done
5892IFS=$as_save_IFS
5893
5894fi
5895fi
5896F77=$ac_cv_prog_F77
5897if test -n "$F77"; then
5898  { echo "$as_me:$LINENO: result: $F77" >&5
5899echo "${ECHO_T}$F77" >&6; }
5900else
5901  { echo "$as_me:$LINENO: result: no" >&5
5902echo "${ECHO_T}no" >&6; }
5903fi
5904
5905
5906    test -n "$F77" && break
5907  done
5908fi
5909if test -z "$F77"; then
5910  ac_ct_F77=$F77
5911  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
5912do
5913  # Extract the first word of "$ac_prog", so it can be a program name with args.
5914set dummy $ac_prog; ac_word=$2
5915{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5918  echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920  if test -n "$ac_ct_F77"; then
5921  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926  IFS=$as_save_IFS
5927  test -z "$as_dir" && as_dir=.
5928  for ac_exec_ext in '' $ac_executable_extensions; do
5929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930    ac_cv_prog_ac_ct_F77="$ac_prog"
5931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932    break 2
5933  fi
5934done
5935done
5936IFS=$as_save_IFS
5937
5938fi
5939fi
5940ac_ct_F77=$ac_cv_prog_ac_ct_F77
5941if test -n "$ac_ct_F77"; then
5942  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5943echo "${ECHO_T}$ac_ct_F77" >&6; }
5944else
5945  { echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6; }
5947fi
5948
5949
5950  test -n "$ac_ct_F77" && break
5951done
5952
5953  if test "x$ac_ct_F77" = x; then
5954    F77=""
5955  else
5956    case $cross_compiling:$ac_tool_warned in
5957yes:)
5958{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5959whose name does not start with the host triplet.  If you think this
5960configuration is useful to you, please write to autoconf@gnu.org." >&5
5961echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5962whose name does not start with the host triplet.  If you think this
5963configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5964ac_tool_warned=yes ;;
5965esac
5966    F77=$ac_ct_F77
5967  fi
5968fi
5969
5970
5971# Provide some information about the compiler.
5972echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5973ac_compiler=`set X $ac_compile; echo $2`
5974{ (ac_try="$ac_compiler --version >&5"
5975case "(($ac_try" in
5976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977  *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980  (eval "$ac_compiler --version >&5") 2>&5
5981  ac_status=$?
5982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983  (exit $ac_status); }
5984{ (ac_try="$ac_compiler -v >&5"
5985case "(($ac_try" in
5986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987  *) ac_try_echo=$ac_try;;
5988esac
5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990  (eval "$ac_compiler -v >&5") 2>&5
5991  ac_status=$?
5992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993  (exit $ac_status); }
5994{ (ac_try="$ac_compiler -V >&5"
5995case "(($ac_try" in
5996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997  *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000  (eval "$ac_compiler -V >&5") 2>&5
6001  ac_status=$?
6002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003  (exit $ac_status); }
6004rm -f a.out
6005
6006# If we don't use `.F' as extension, the preprocessor is not run on the
6007# input file.  (Note that this only needs to work for GNU compilers.)
6008ac_save_ext=$ac_ext
6009ac_ext=F
6010{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6011echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6012if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6013  echo $ECHO_N "(cached) $ECHO_C" >&6
6014else
6015  cat >conftest.$ac_ext <<_ACEOF
6016      program main
6017#ifndef __GNUC__
6018       choke me
6019#endif
6020
6021      end
6022_ACEOF
6023rm -f conftest.$ac_objext
6024if { (ac_try="$ac_compile"
6025case "(($ac_try" in
6026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027  *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030  (eval "$ac_compile") 2>conftest.er1
6031  ac_status=$?
6032  grep -v '^ *+' conftest.er1 >conftest.err
6033  rm -f conftest.er1
6034  cat conftest.err >&5
6035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); } && {
6037	 test -z "$ac_f77_werror_flag" ||
6038	 test ! -s conftest.err
6039       } && test -s conftest.$ac_objext; then
6040  ac_compiler_gnu=yes
6041else
6042  echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045	ac_compiler_gnu=no
6046fi
6047
6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6050
6051fi
6052{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6053echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6054ac_ext=$ac_save_ext
6055ac_test_FFLAGS=${FFLAGS+set}
6056ac_save_FFLAGS=$FFLAGS
6057FFLAGS=
6058{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6059echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6060if test "${ac_cv_prog_f77_g+set}" = set; then
6061  echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063  FFLAGS=-g
6064cat >conftest.$ac_ext <<_ACEOF
6065      program main
6066
6067      end
6068_ACEOF
6069rm -f conftest.$ac_objext
6070if { (ac_try="$ac_compile"
6071case "(($ac_try" in
6072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073  *) ac_try_echo=$ac_try;;
6074esac
6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076  (eval "$ac_compile") 2>conftest.er1
6077  ac_status=$?
6078  grep -v '^ *+' conftest.er1 >conftest.err
6079  rm -f conftest.er1
6080  cat conftest.err >&5
6081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); } && {
6083	 test -z "$ac_f77_werror_flag" ||
6084	 test ! -s conftest.err
6085       } && test -s conftest.$ac_objext; then
6086  ac_cv_prog_f77_g=yes
6087else
6088  echo "$as_me: failed program was:" >&5
6089sed 's/^/| /' conftest.$ac_ext >&5
6090
6091	ac_cv_prog_f77_g=no
6092fi
6093
6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095
6096fi
6097{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6098echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6099if test "$ac_test_FFLAGS" = set; then
6100  FFLAGS=$ac_save_FFLAGS
6101elif test $ac_cv_prog_f77_g = yes; then
6102  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6103    FFLAGS="-g -O2"
6104  else
6105    FFLAGS="-g"
6106  fi
6107else
6108  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6109    FFLAGS="-O2"
6110  else
6111    FFLAGS=
6112  fi
6113fi
6114
6115G77=`test $ac_compiler_gnu = yes && echo yes`
6116ac_ext=c
6117ac_cpp='$CPP $CPPFLAGS'
6118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6120ac_compiler_gnu=$ac_cv_c_compiler_gnu
6121
6122
6123
6124# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6125
6126# find the maximum length of command line arguments
6127{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6128echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6129if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6130  echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132    i=0
6133  teststring="ABCD"
6134
6135  case $build_os in
6136  msdosdjgpp*)
6137    # On DJGPP, this test can blow up pretty badly due to problems in libc
6138    # (any single argument exceeding 2000 bytes causes a buffer overrun
6139    # during glob expansion).  Even if it were fixed, the result of this
6140    # check would be larger than it should be.
6141    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6142    ;;
6143
6144  gnu*)
6145    # Under GNU Hurd, this test is not required because there is
6146    # no limit to the length of command line arguments.
6147    # Libtool will interpret -1 as no limit whatsoever
6148    lt_cv_sys_max_cmd_len=-1;
6149    ;;
6150
6151  cygwin* | mingw*)
6152    # On Win9x/ME, this test blows up -- it succeeds, but takes
6153    # about 5 minutes as the teststring grows exponentially.
6154    # Worse, since 9x/ME are not pre-emptively multitasking,
6155    # you end up with a "frozen" computer, even though with patience
6156    # the test eventually succeeds (with a max line length of 256k).
6157    # Instead, let's just punt: use the minimum linelength reported by
6158    # all of the supported platforms: 8192 (on NT/2K/XP).
6159    lt_cv_sys_max_cmd_len=8192;
6160    ;;
6161
6162  amigaos*)
6163    # On AmigaOS with pdksh, this test takes hours, literally.
6164    # So we just punt and use a minimum line length of 8192.
6165    lt_cv_sys_max_cmd_len=8192;
6166    ;;
6167
6168  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6169    # This has been around since 386BSD, at least.  Likely further.
6170    if test -x /sbin/sysctl; then
6171      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6172    elif test -x /usr/sbin/sysctl; then
6173      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6174    else
6175      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6176    fi
6177    # And add a safety zone
6178    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6179    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6180    ;;
6181
6182  interix*)
6183    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6184    lt_cv_sys_max_cmd_len=196608
6185    ;;
6186
6187  osf*)
6188    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6189    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6190    # nice to cause kernel panics so lets avoid the loop below.
6191    # First set a reasonable default.
6192    lt_cv_sys_max_cmd_len=16384
6193    #
6194    if test -x /sbin/sysconfig; then
6195      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6196        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6197      esac
6198    fi
6199    ;;
6200  sco3.2v5*)
6201    lt_cv_sys_max_cmd_len=102400
6202    ;;
6203  sysv5* | sco5v6* | sysv4.2uw2*)
6204    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6205    if test -n "$kargmax"; then
6206      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6207    else
6208      lt_cv_sys_max_cmd_len=32768
6209    fi
6210    ;;
6211  *)
6212    # If test is not a shell built-in, we'll probably end up computing a
6213    # maximum length that is only half of the actual maximum length, but
6214    # we can't tell.
6215    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6216    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6217	       = "XX$teststring") >/dev/null 2>&1 &&
6218	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6219	    lt_cv_sys_max_cmd_len=$new_result &&
6220	    test $i != 17 # 1/2 MB should be enough
6221    do
6222      i=`expr $i + 1`
6223      teststring=$teststring$teststring
6224    done
6225    teststring=
6226    # Add a significant safety factor because C++ compilers can tack on massive
6227    # amounts of additional arguments before passing them to the linker.
6228    # It appears as though 1/2 is a usable value.
6229    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6230    ;;
6231  esac
6232
6233fi
6234
6235if test -n $lt_cv_sys_max_cmd_len ; then
6236  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6237echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6238else
6239  { echo "$as_me:$LINENO: result: none" >&5
6240echo "${ECHO_T}none" >&6; }
6241fi
6242
6243
6244
6245
6246# Check for command to grab the raw symbol name followed by C symbol from nm.
6247{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6248echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6249if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6250  echo $ECHO_N "(cached) $ECHO_C" >&6
6251else
6252
6253# These are sane defaults that work on at least a few old systems.
6254# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6255
6256# Character class describing NM global symbol codes.
6257symcode='[BCDEGRST]'
6258
6259# Regexp to match symbols that can be accessed directly from C.
6260sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6261
6262# Transform an extracted symbol line into a proper C declaration
6263lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6264
6265# Transform an extracted symbol line into symbol name and symbol address
6266lt_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'"
6267
6268# Define system-specific variables.
6269case $host_os in
6270aix*)
6271  symcode='[BCDT]'
6272  ;;
6273cygwin* | mingw* | pw32*)
6274  symcode='[ABCDGISTW]'
6275  ;;
6276hpux*) # Its linker distinguishes data from code symbols
6277  if test "$host_cpu" = ia64; then
6278    symcode='[ABCDEGRST]'
6279  fi
6280  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6281  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'"
6282  ;;
6283linux*)
6284  if test "$host_cpu" = ia64; then
6285    symcode='[ABCDGIRSTW]'
6286    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6287    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'"
6288  fi
6289  ;;
6290irix* | nonstopux*)
6291  symcode='[BCDEGRST]'
6292  ;;
6293osf*)
6294  symcode='[BCDEGQRST]'
6295  ;;
6296solaris*)
6297  symcode='[BDRT]'
6298  ;;
6299sco3.2v5*)
6300  symcode='[DT]'
6301  ;;
6302sysv4.2uw2*)
6303  symcode='[DT]'
6304  ;;
6305sysv5* | sco5v6* | unixware* | OpenUNIX*)
6306  symcode='[ABDT]'
6307  ;;
6308sysv4)
6309  symcode='[DFNSTU]'
6310  ;;
6311esac
6312
6313# Handle CRLF in mingw tool chain
6314opt_cr=
6315case $build_os in
6316mingw*)
6317  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6318  ;;
6319esac
6320
6321# If we're using GNU nm, then use its standard symbol codes.
6322case `$NM -V 2>&1` in
6323*GNU* | *'with BFD'*)
6324  symcode='[ABCDGIRSTW]' ;;
6325esac
6326
6327# Try without a prefix undercore, then with it.
6328for ac_symprfx in "" "_"; do
6329
6330  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6331  symxfrm="\\1 $ac_symprfx\\2 \\2"
6332
6333  # Write the raw and C identifiers.
6334  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6335
6336  # Check to see that the pipe works correctly.
6337  pipe_works=no
6338
6339  rm -f conftest*
6340  cat > conftest.$ac_ext <<EOF
6341#ifdef __cplusplus
6342extern "C" {
6343#endif
6344char nm_test_var;
6345void nm_test_func(){}
6346#ifdef __cplusplus
6347}
6348#endif
6349int main(){nm_test_var='a';nm_test_func();return(0);}
6350EOF
6351
6352  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353  (eval $ac_compile) 2>&5
6354  ac_status=$?
6355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356  (exit $ac_status); }; then
6357    # Now try to grab the symbols.
6358    nlist=conftest.nm
6359    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6360  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6361  ac_status=$?
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); } && test -s "$nlist"; then
6364      # Try sorting and uniquifying the output.
6365      if sort "$nlist" | uniq > "$nlist"T; then
6366	mv -f "$nlist"T "$nlist"
6367      else
6368	rm -f "$nlist"T
6369      fi
6370
6371      # Make sure that we snagged all the symbols we need.
6372      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6373	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6374	  cat <<EOF > conftest.$ac_ext
6375#ifdef __cplusplus
6376extern "C" {
6377#endif
6378
6379EOF
6380	  # Now generate the symbol file.
6381	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6382
6383	  cat <<EOF >> conftest.$ac_ext
6384#if defined (__STDC__) && __STDC__
6385# define lt_ptr_t void *
6386#else
6387# define lt_ptr_t char *
6388# define const
6389#endif
6390
6391/* The mapping between symbol names and symbols. */
6392const struct {
6393  const char *name;
6394  lt_ptr_t address;
6395}
6396lt_preloaded_symbols[] =
6397{
6398EOF
6399	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6400	  cat <<\EOF >> conftest.$ac_ext
6401  {0, (lt_ptr_t) 0}
6402};
6403
6404#ifdef __cplusplus
6405}
6406#endif
6407EOF
6408	  # Now try linking the two files.
6409	  mv conftest.$ac_objext conftstm.$ac_objext
6410	  lt_save_LIBS="$LIBS"
6411	  lt_save_CFLAGS="$CFLAGS"
6412	  LIBS="conftstm.$ac_objext"
6413	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6414	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415  (eval $ac_link) 2>&5
6416  ac_status=$?
6417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6419	    pipe_works=yes
6420	  fi
6421	  LIBS="$lt_save_LIBS"
6422	  CFLAGS="$lt_save_CFLAGS"
6423	else
6424	  echo "cannot find nm_test_func in $nlist" >&5
6425	fi
6426      else
6427	echo "cannot find nm_test_var in $nlist" >&5
6428      fi
6429    else
6430      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6431    fi
6432  else
6433    echo "$progname: failed program was:" >&5
6434    cat conftest.$ac_ext >&5
6435  fi
6436  rm -f conftest* conftst*
6437
6438  # Do not use the global_symbol_pipe unless it works.
6439  if test "$pipe_works" = yes; then
6440    break
6441  else
6442    lt_cv_sys_global_symbol_pipe=
6443  fi
6444done
6445
6446fi
6447
6448if test -z "$lt_cv_sys_global_symbol_pipe"; then
6449  lt_cv_sys_global_symbol_to_cdecl=
6450fi
6451if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6452  { echo "$as_me:$LINENO: result: failed" >&5
6453echo "${ECHO_T}failed" >&6; }
6454else
6455  { echo "$as_me:$LINENO: result: ok" >&5
6456echo "${ECHO_T}ok" >&6; }
6457fi
6458
6459{ echo "$as_me:$LINENO: checking for objdir" >&5
6460echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6461if test "${lt_cv_objdir+set}" = set; then
6462  echo $ECHO_N "(cached) $ECHO_C" >&6
6463else
6464  rm -f .libs 2>/dev/null
6465mkdir .libs 2>/dev/null
6466if test -d .libs; then
6467  lt_cv_objdir=.libs
6468else
6469  # MS-DOS does not allow filenames that begin with a dot.
6470  lt_cv_objdir=_libs
6471fi
6472rmdir .libs 2>/dev/null
6473fi
6474{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6475echo "${ECHO_T}$lt_cv_objdir" >&6; }
6476objdir=$lt_cv_objdir
6477
6478
6479
6480
6481
6482case $host_os in
6483aix3*)
6484  # AIX sometimes has problems with the GCC collect2 program.  For some
6485  # reason, if we set the COLLECT_NAMES environment variable, the problems
6486  # vanish in a puff of smoke.
6487  if test "X${COLLECT_NAMES+set}" != Xset; then
6488    COLLECT_NAMES=
6489    export COLLECT_NAMES
6490  fi
6491  ;;
6492esac
6493
6494# Sed substitution that helps us do robust quoting.  It backslashifies
6495# metacharacters that are still active within double-quoted strings.
6496Xsed='sed -e 1s/^X//'
6497sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6498
6499# Same as above, but do not quote variable references.
6500double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6501
6502# Sed substitution to delay expansion of an escaped shell variable in a
6503# double_quote_subst'ed string.
6504delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6505
6506# Sed substitution to avoid accidental globbing in evaled expressions
6507no_glob_subst='s/\*/\\\*/g'
6508
6509# Constants:
6510rm="rm -f"
6511
6512# Global variables:
6513default_ofile=libtool
6514can_build_shared=yes
6515
6516# All known linkers require a `.a' archive for static linking (except MSVC,
6517# which needs '.lib').
6518libext=a
6519ltmain="$ac_aux_dir/ltmain.sh"
6520ofile="$default_ofile"
6521with_gnu_ld="$lt_cv_prog_gnu_ld"
6522
6523if test -n "$ac_tool_prefix"; then
6524  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6525set dummy ${ac_tool_prefix}ar; ac_word=$2
6526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528if test "${ac_cv_prog_AR+set}" = set; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531  if test -n "$AR"; then
6532  ac_cv_prog_AR="$AR" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537  IFS=$as_save_IFS
6538  test -z "$as_dir" && as_dir=.
6539  for ac_exec_ext in '' $ac_executable_extensions; do
6540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541    ac_cv_prog_AR="${ac_tool_prefix}ar"
6542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543    break 2
6544  fi
6545done
6546done
6547IFS=$as_save_IFS
6548
6549fi
6550fi
6551AR=$ac_cv_prog_AR
6552if test -n "$AR"; then
6553  { echo "$as_me:$LINENO: result: $AR" >&5
6554echo "${ECHO_T}$AR" >&6; }
6555else
6556  { echo "$as_me:$LINENO: result: no" >&5
6557echo "${ECHO_T}no" >&6; }
6558fi
6559
6560
6561fi
6562if test -z "$ac_cv_prog_AR"; then
6563  ac_ct_AR=$AR
6564  # Extract the first word of "ar", so it can be a program name with args.
6565set dummy ar; ac_word=$2
6566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6569  echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571  if test -n "$ac_ct_AR"; then
6572  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577  IFS=$as_save_IFS
6578  test -z "$as_dir" && as_dir=.
6579  for ac_exec_ext in '' $ac_executable_extensions; do
6580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581    ac_cv_prog_ac_ct_AR="ar"
6582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583    break 2
6584  fi
6585done
6586done
6587IFS=$as_save_IFS
6588
6589fi
6590fi
6591ac_ct_AR=$ac_cv_prog_ac_ct_AR
6592if test -n "$ac_ct_AR"; then
6593  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6594echo "${ECHO_T}$ac_ct_AR" >&6; }
6595else
6596  { echo "$as_me:$LINENO: result: no" >&5
6597echo "${ECHO_T}no" >&6; }
6598fi
6599
6600  if test "x$ac_ct_AR" = x; then
6601    AR="false"
6602  else
6603    case $cross_compiling:$ac_tool_warned in
6604yes:)
6605{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6606whose name does not start with the host triplet.  If you think this
6607configuration is useful to you, please write to autoconf@gnu.org." >&5
6608echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6609whose name does not start with the host triplet.  If you think this
6610configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6611ac_tool_warned=yes ;;
6612esac
6613    AR=$ac_ct_AR
6614  fi
6615else
6616  AR="$ac_cv_prog_AR"
6617fi
6618
6619if test -n "$ac_tool_prefix"; then
6620  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6621set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624if test "${ac_cv_prog_RANLIB+set}" = set; then
6625  echo $ECHO_N "(cached) $ECHO_C" >&6
6626else
6627  if test -n "$RANLIB"; then
6628  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633  IFS=$as_save_IFS
6634  test -z "$as_dir" && as_dir=.
6635  for ac_exec_ext in '' $ac_executable_extensions; do
6636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639    break 2
6640  fi
6641done
6642done
6643IFS=$as_save_IFS
6644
6645fi
6646fi
6647RANLIB=$ac_cv_prog_RANLIB
6648if test -n "$RANLIB"; then
6649  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6650echo "${ECHO_T}$RANLIB" >&6; }
6651else
6652  { echo "$as_me:$LINENO: result: no" >&5
6653echo "${ECHO_T}no" >&6; }
6654fi
6655
6656
6657fi
6658if test -z "$ac_cv_prog_RANLIB"; then
6659  ac_ct_RANLIB=$RANLIB
6660  # Extract the first word of "ranlib", so it can be a program name with args.
6661set dummy ranlib; ac_word=$2
6662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6665  echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667  if test -n "$ac_ct_RANLIB"; then
6668  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6669else
6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673  IFS=$as_save_IFS
6674  test -z "$as_dir" && as_dir=.
6675  for ac_exec_ext in '' $ac_executable_extensions; do
6676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677    ac_cv_prog_ac_ct_RANLIB="ranlib"
6678    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679    break 2
6680  fi
6681done
6682done
6683IFS=$as_save_IFS
6684
6685fi
6686fi
6687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6688if test -n "$ac_ct_RANLIB"; then
6689  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6690echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6691else
6692  { echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6; }
6694fi
6695
6696  if test "x$ac_ct_RANLIB" = x; then
6697    RANLIB=":"
6698  else
6699    case $cross_compiling:$ac_tool_warned in
6700yes:)
6701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702whose name does not start with the host triplet.  If you think this
6703configuration is useful to you, please write to autoconf@gnu.org." >&5
6704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705whose name does not start with the host triplet.  If you think this
6706configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707ac_tool_warned=yes ;;
6708esac
6709    RANLIB=$ac_ct_RANLIB
6710  fi
6711else
6712  RANLIB="$ac_cv_prog_RANLIB"
6713fi
6714
6715if test -n "$ac_tool_prefix"; then
6716  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6717set dummy ${ac_tool_prefix}strip; ac_word=$2
6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720if test "${ac_cv_prog_STRIP+set}" = set; then
6721  echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723  if test -n "$STRIP"; then
6724  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731  for ac_exec_ext in '' $ac_executable_extensions; do
6732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743STRIP=$ac_cv_prog_STRIP
6744if test -n "$STRIP"; then
6745  { echo "$as_me:$LINENO: result: $STRIP" >&5
6746echo "${ECHO_T}$STRIP" >&6; }
6747else
6748  { echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6; }
6750fi
6751
6752
6753fi
6754if test -z "$ac_cv_prog_STRIP"; then
6755  ac_ct_STRIP=$STRIP
6756  # Extract the first word of "strip", so it can be a program name with args.
6757set dummy strip; ac_word=$2
6758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6761  echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763  if test -n "$ac_ct_STRIP"; then
6764  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771  for ac_exec_ext in '' $ac_executable_extensions; do
6772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773    ac_cv_prog_ac_ct_STRIP="strip"
6774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775    break 2
6776  fi
6777done
6778done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6784if test -n "$ac_ct_STRIP"; then
6785  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6786echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6787else
6788  { echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6; }
6790fi
6791
6792  if test "x$ac_ct_STRIP" = x; then
6793    STRIP=":"
6794  else
6795    case $cross_compiling:$ac_tool_warned in
6796yes:)
6797{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6798whose name does not start with the host triplet.  If you think this
6799configuration is useful to you, please write to autoconf@gnu.org." >&5
6800echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6801whose name does not start with the host triplet.  If you think this
6802configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6803ac_tool_warned=yes ;;
6804esac
6805    STRIP=$ac_ct_STRIP
6806  fi
6807else
6808  STRIP="$ac_cv_prog_STRIP"
6809fi
6810
6811
6812old_CC="$CC"
6813old_CFLAGS="$CFLAGS"
6814
6815# Set sane defaults for various variables
6816test -z "$AR" && AR=ar
6817test -z "$AR_FLAGS" && AR_FLAGS=cru
6818test -z "$AS" && AS=as
6819test -z "$CC" && CC=cc
6820test -z "$LTCC" && LTCC=$CC
6821test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6822test -z "$DLLTOOL" && DLLTOOL=dlltool
6823test -z "$LD" && LD=ld
6824test -z "$LN_S" && LN_S="ln -s"
6825test -z "$MAGIC_CMD" && MAGIC_CMD=file
6826test -z "$NM" && NM=nm
6827test -z "$SED" && SED=sed
6828test -z "$OBJDUMP" && OBJDUMP=objdump
6829test -z "$RANLIB" && RANLIB=:
6830test -z "$STRIP" && STRIP=:
6831test -z "$ac_objext" && ac_objext=o
6832
6833# Determine commands to create old-style static archives.
6834old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6835old_postinstall_cmds='chmod 644 $oldlib'
6836old_postuninstall_cmds=
6837
6838if test -n "$RANLIB"; then
6839  case $host_os in
6840  openbsd*)
6841    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6842    ;;
6843  *)
6844    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6845    ;;
6846  esac
6847  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6848fi
6849
6850for cc_temp in $compiler""; do
6851  case $cc_temp in
6852    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6853    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6854    \-*) ;;
6855    *) break;;
6856  esac
6857done
6858cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6859
6860
6861# Only perform the check for file, if the check method requires it
6862case $deplibs_check_method in
6863file_magic*)
6864  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6865    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6866echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6867if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6868  echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870  case $MAGIC_CMD in
6871[\\/*] |  ?:[\\/]*)
6872  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6873  ;;
6874*)
6875  lt_save_MAGIC_CMD="$MAGIC_CMD"
6876  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6877  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6878  for ac_dir in $ac_dummy; do
6879    IFS="$lt_save_ifs"
6880    test -z "$ac_dir" && ac_dir=.
6881    if test -f $ac_dir/${ac_tool_prefix}file; then
6882      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6883      if test -n "$file_magic_test_file"; then
6884	case $deplibs_check_method in
6885	"file_magic "*)
6886	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6887	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6888	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6889	    $EGREP "$file_magic_regex" > /dev/null; then
6890	    :
6891	  else
6892	    cat <<EOF 1>&2
6893
6894*** Warning: the command libtool uses to detect shared libraries,
6895*** $file_magic_cmd, produces output that libtool cannot recognize.
6896*** The result is that libtool may fail to recognize shared libraries
6897*** as such.  This will affect the creation of libtool libraries that
6898*** depend on shared libraries, but programs linked with such libtool
6899*** libraries will work regardless of this problem.  Nevertheless, you
6900*** may want to report the problem to your system manager and/or to
6901*** bug-libtool@gnu.org
6902
6903EOF
6904	  fi ;;
6905	esac
6906      fi
6907      break
6908    fi
6909  done
6910  IFS="$lt_save_ifs"
6911  MAGIC_CMD="$lt_save_MAGIC_CMD"
6912  ;;
6913esac
6914fi
6915
6916MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6917if test -n "$MAGIC_CMD"; then
6918  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6919echo "${ECHO_T}$MAGIC_CMD" >&6; }
6920else
6921  { echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6; }
6923fi
6924
6925if test -z "$lt_cv_path_MAGIC_CMD"; then
6926  if test -n "$ac_tool_prefix"; then
6927    { echo "$as_me:$LINENO: checking for file" >&5
6928echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6929if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6930  echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932  case $MAGIC_CMD in
6933[\\/*] |  ?:[\\/]*)
6934  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6935  ;;
6936*)
6937  lt_save_MAGIC_CMD="$MAGIC_CMD"
6938  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6939  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6940  for ac_dir in $ac_dummy; do
6941    IFS="$lt_save_ifs"
6942    test -z "$ac_dir" && ac_dir=.
6943    if test -f $ac_dir/file; then
6944      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6945      if test -n "$file_magic_test_file"; then
6946	case $deplibs_check_method in
6947	"file_magic "*)
6948	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6949	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6950	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6951	    $EGREP "$file_magic_regex" > /dev/null; then
6952	    :
6953	  else
6954	    cat <<EOF 1>&2
6955
6956*** Warning: the command libtool uses to detect shared libraries,
6957*** $file_magic_cmd, produces output that libtool cannot recognize.
6958*** The result is that libtool may fail to recognize shared libraries
6959*** as such.  This will affect the creation of libtool libraries that
6960*** depend on shared libraries, but programs linked with such libtool
6961*** libraries will work regardless of this problem.  Nevertheless, you
6962*** may want to report the problem to your system manager and/or to
6963*** bug-libtool@gnu.org
6964
6965EOF
6966	  fi ;;
6967	esac
6968      fi
6969      break
6970    fi
6971  done
6972  IFS="$lt_save_ifs"
6973  MAGIC_CMD="$lt_save_MAGIC_CMD"
6974  ;;
6975esac
6976fi
6977
6978MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6979if test -n "$MAGIC_CMD"; then
6980  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6981echo "${ECHO_T}$MAGIC_CMD" >&6; }
6982else
6983  { echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6; }
6985fi
6986
6987  else
6988    MAGIC_CMD=:
6989  fi
6990fi
6991
6992  fi
6993  ;;
6994esac
6995
6996enable_dlopen=no
6997enable_win32_dll=no
6998
6999# Check whether --enable-libtool-lock was given.
7000if test "${enable_libtool_lock+set}" = set; then
7001  enableval=$enable_libtool_lock;
7002fi
7003
7004test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7005
7006
7007# Check whether --with-pic was given.
7008if test "${with_pic+set}" = set; then
7009  withval=$with_pic; pic_mode="$withval"
7010else
7011  pic_mode=default
7012fi
7013
7014test -z "$pic_mode" && pic_mode=default
7015
7016# Use C for the default configuration in the libtool script
7017tagname=
7018lt_save_CC="$CC"
7019ac_ext=c
7020ac_cpp='$CPP $CPPFLAGS'
7021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024
7025
7026# Source file extension for C test sources.
7027ac_ext=c
7028
7029# Object file extension for compiled C test sources.
7030objext=o
7031objext=$objext
7032
7033# Code to be used in simple compile tests
7034lt_simple_compile_test_code="int some_variable = 0;\n"
7035
7036# Code to be used in simple link tests
7037lt_simple_link_test_code='int main(){return(0);}\n'
7038
7039
7040# If no C compiler was specified, use CC.
7041LTCC=${LTCC-"$CC"}
7042
7043# If no C compiler flags were specified, use CFLAGS.
7044LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7045
7046# Allow CC to be a program name with arguments.
7047compiler=$CC
7048
7049
7050# save warnings/boilerplate of simple test code
7051ac_outfile=conftest.$ac_objext
7052printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7053eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7054_lt_compiler_boilerplate=`cat conftest.err`
7055$rm conftest*
7056
7057ac_outfile=conftest.$ac_objext
7058printf "$lt_simple_link_test_code" >conftest.$ac_ext
7059eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7060_lt_linker_boilerplate=`cat conftest.err`
7061$rm conftest*
7062
7063
7064
7065lt_prog_compiler_no_builtin_flag=
7066
7067if test "$GCC" = yes; then
7068  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7069
7070
7071{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7072echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7073if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7074  echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076  lt_cv_prog_compiler_rtti_exceptions=no
7077  ac_outfile=conftest.$ac_objext
7078   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7079   lt_compiler_flag="-fno-rtti -fno-exceptions"
7080   # Insert the option either (1) after the last *FLAGS variable, or
7081   # (2) before a word containing "conftest.", or (3) at the end.
7082   # Note that $ac_compile itself does not contain backslashes and begins
7083   # with a dollar sign (not a hyphen), so the echo should work correctly.
7084   # The option is referenced via a variable to avoid confusing sed.
7085   lt_compile=`echo "$ac_compile" | $SED \
7086   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7087   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7088   -e 's:$: $lt_compiler_flag:'`
7089   (eval echo "\"\$as_me:7089: $lt_compile\"" >&5)
7090   (eval "$lt_compile" 2>conftest.err)
7091   ac_status=$?
7092   cat conftest.err >&5
7093   echo "$as_me:7093: \$? = $ac_status" >&5
7094   if (exit $ac_status) && test -s "$ac_outfile"; then
7095     # The compiler can only warn and ignore the option if not recognized
7096     # So say no if there are warnings other than the usual output.
7097     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7098     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7099     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7100       lt_cv_prog_compiler_rtti_exceptions=yes
7101     fi
7102   fi
7103   $rm conftest*
7104
7105fi
7106{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7107echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7108
7109if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7110    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7111else
7112    :
7113fi
7114
7115fi
7116
7117lt_prog_compiler_wl=
7118lt_prog_compiler_pic=
7119lt_prog_compiler_static=
7120
7121{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7122echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7123
7124  if test "$GCC" = yes; then
7125    lt_prog_compiler_wl='-Wl,'
7126    lt_prog_compiler_static='-static'
7127
7128    case $host_os in
7129      aix*)
7130      # All AIX code is PIC.
7131      if test "$host_cpu" = ia64; then
7132	# AIX 5 now supports IA64 processor
7133	lt_prog_compiler_static='-Bstatic'
7134      fi
7135      ;;
7136
7137    amigaos*)
7138      # FIXME: we need at least 68020 code to build shared libraries, but
7139      # adding the `-m68020' flag to GCC prevents building anything better,
7140      # like `-m68040'.
7141      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7142      ;;
7143
7144    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7145      # PIC is the default for these OSes.
7146      ;;
7147
7148    mingw* | pw32* | os2*)
7149      # This hack is so that the source file can tell whether it is being
7150      # built for inclusion in a dll (and should export symbols for example).
7151      lt_prog_compiler_pic='-DDLL_EXPORT'
7152      ;;
7153
7154    darwin* | rhapsody*)
7155      # PIC is the default on this platform
7156      # Common symbols not allowed in MH_DYLIB files
7157      lt_prog_compiler_pic='-fno-common'
7158      ;;
7159
7160    interix3*)
7161      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7162      # Instead, we relocate shared libraries at runtime.
7163      ;;
7164
7165    msdosdjgpp*)
7166      # Just because we use GCC doesn't mean we suddenly get shared libraries
7167      # on systems that don't support them.
7168      lt_prog_compiler_can_build_shared=no
7169      enable_shared=no
7170      ;;
7171
7172    sysv4*MP*)
7173      if test -d /usr/nec; then
7174	lt_prog_compiler_pic=-Kconform_pic
7175      fi
7176      ;;
7177
7178    hpux*)
7179      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7180      # not for PA HP-UX.
7181      case $host_cpu in
7182      hppa*64*|ia64*)
7183	# +Z the default
7184	;;
7185      *)
7186	lt_prog_compiler_pic='-fPIC'
7187	;;
7188      esac
7189      ;;
7190
7191    *)
7192      lt_prog_compiler_pic='-fPIC'
7193      ;;
7194    esac
7195  else
7196    # PORTME Check for flag to pass linker flags through the system compiler.
7197    case $host_os in
7198    aix*)
7199      lt_prog_compiler_wl='-Wl,'
7200      if test "$host_cpu" = ia64; then
7201	# AIX 5 now supports IA64 processor
7202	lt_prog_compiler_static='-Bstatic'
7203      else
7204	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7205      fi
7206      ;;
7207      darwin*)
7208        # PIC is the default on this platform
7209        # Common symbols not allowed in MH_DYLIB files
7210       case $cc_basename in
7211         xlc*)
7212         lt_prog_compiler_pic='-qnocommon'
7213         lt_prog_compiler_wl='-Wl,'
7214         ;;
7215       esac
7216       ;;
7217
7218    mingw* | pw32* | os2*)
7219      # This hack is so that the source file can tell whether it is being
7220      # built for inclusion in a dll (and should export symbols for example).
7221      lt_prog_compiler_pic='-DDLL_EXPORT'
7222      ;;
7223
7224    hpux9* | hpux10* | hpux11*)
7225      lt_prog_compiler_wl='-Wl,'
7226      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7227      # not for PA HP-UX.
7228      case $host_cpu in
7229      hppa*64*|ia64*)
7230	# +Z the default
7231	;;
7232      *)
7233	lt_prog_compiler_pic='+Z'
7234	;;
7235      esac
7236      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7237      lt_prog_compiler_static='${wl}-a ${wl}archive'
7238      ;;
7239
7240    irix5* | irix6* | nonstopux*)
7241      lt_prog_compiler_wl='-Wl,'
7242      # PIC (with -KPIC) is the default.
7243      lt_prog_compiler_static='-non_shared'
7244      ;;
7245
7246    newsos6)
7247      lt_prog_compiler_pic='-KPIC'
7248      lt_prog_compiler_static='-Bstatic'
7249      ;;
7250
7251    linux*)
7252      case $cc_basename in
7253      icc* | ecc*)
7254	lt_prog_compiler_wl='-Wl,'
7255	lt_prog_compiler_pic='-KPIC'
7256	lt_prog_compiler_static='-static'
7257        ;;
7258      pgcc* | pgf77* | pgf90* | pgf95*)
7259        # Portland Group compilers (*not* the Pentium gcc compiler,
7260	# which looks to be a dead project)
7261	lt_prog_compiler_wl='-Wl,'
7262	lt_prog_compiler_pic='-fpic'
7263	lt_prog_compiler_static='-Bstatic'
7264        ;;
7265      ccc*)
7266        lt_prog_compiler_wl='-Wl,'
7267        # All Alpha code is PIC.
7268        lt_prog_compiler_static='-non_shared'
7269        ;;
7270      esac
7271      ;;
7272
7273    osf3* | osf4* | osf5*)
7274      lt_prog_compiler_wl='-Wl,'
7275      # All OSF/1 code is PIC.
7276      lt_prog_compiler_static='-non_shared'
7277      ;;
7278
7279    solaris*)
7280      lt_prog_compiler_pic='-KPIC'
7281      lt_prog_compiler_static='-Bstatic'
7282      case $cc_basename in
7283      f77* | f90* | f95*)
7284	lt_prog_compiler_wl='-Qoption ld ';;
7285      *)
7286	lt_prog_compiler_wl='-Wl,';;
7287      esac
7288      ;;
7289
7290    sunos4*)
7291      lt_prog_compiler_wl='-Qoption ld '
7292      lt_prog_compiler_pic='-PIC'
7293      lt_prog_compiler_static='-Bstatic'
7294      ;;
7295
7296    sysv4 | sysv4.2uw2* | sysv4.3*)
7297      lt_prog_compiler_wl='-Wl,'
7298      lt_prog_compiler_pic='-KPIC'
7299      lt_prog_compiler_static='-Bstatic'
7300      ;;
7301
7302    sysv4*MP*)
7303      if test -d /usr/nec ;then
7304	lt_prog_compiler_pic='-Kconform_pic'
7305	lt_prog_compiler_static='-Bstatic'
7306      fi
7307      ;;
7308
7309    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7310      lt_prog_compiler_wl='-Wl,'
7311      lt_prog_compiler_pic='-KPIC'
7312      lt_prog_compiler_static='-Bstatic'
7313      ;;
7314
7315    unicos*)
7316      lt_prog_compiler_wl='-Wl,'
7317      lt_prog_compiler_can_build_shared=no
7318      ;;
7319
7320    uts4*)
7321      lt_prog_compiler_pic='-pic'
7322      lt_prog_compiler_static='-Bstatic'
7323      ;;
7324
7325    *)
7326      lt_prog_compiler_can_build_shared=no
7327      ;;
7328    esac
7329  fi
7330
7331{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7332echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7333
7334#
7335# Check to make sure the PIC flag actually works.
7336#
7337if test -n "$lt_prog_compiler_pic"; then
7338
7339{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7340echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7341if test "${lt_prog_compiler_pic_works+set}" = set; then
7342  echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344  lt_prog_compiler_pic_works=no
7345  ac_outfile=conftest.$ac_objext
7346   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7347   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7348   # Insert the option either (1) after the last *FLAGS variable, or
7349   # (2) before a word containing "conftest.", or (3) at the end.
7350   # Note that $ac_compile itself does not contain backslashes and begins
7351   # with a dollar sign (not a hyphen), so the echo should work correctly.
7352   # The option is referenced via a variable to avoid confusing sed.
7353   lt_compile=`echo "$ac_compile" | $SED \
7354   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7355   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7356   -e 's:$: $lt_compiler_flag:'`
7357   (eval echo "\"\$as_me:7357: $lt_compile\"" >&5)
7358   (eval "$lt_compile" 2>conftest.err)
7359   ac_status=$?
7360   cat conftest.err >&5
7361   echo "$as_me:7361: \$? = $ac_status" >&5
7362   if (exit $ac_status) && test -s "$ac_outfile"; then
7363     # The compiler can only warn and ignore the option if not recognized
7364     # So say no if there are warnings other than the usual output.
7365     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7366     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7367     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7368       lt_prog_compiler_pic_works=yes
7369     fi
7370   fi
7371   $rm conftest*
7372
7373fi
7374{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7375echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7376
7377if test x"$lt_prog_compiler_pic_works" = xyes; then
7378    case $lt_prog_compiler_pic in
7379     "" | " "*) ;;
7380     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7381     esac
7382else
7383    lt_prog_compiler_pic=
7384     lt_prog_compiler_can_build_shared=no
7385fi
7386
7387fi
7388case $host_os in
7389  # For platforms which do not support PIC, -DPIC is meaningless:
7390  *djgpp*)
7391    lt_prog_compiler_pic=
7392    ;;
7393  *)
7394    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7395    ;;
7396esac
7397
7398#
7399# Check to make sure the static flag actually works.
7400#
7401wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7402{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7403echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7404if test "${lt_prog_compiler_static_works+set}" = set; then
7405  echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407  lt_prog_compiler_static_works=no
7408   save_LDFLAGS="$LDFLAGS"
7409   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7410   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7411   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7412     # The linker can only warn and ignore the option if not recognized
7413     # So say no if there are warnings
7414     if test -s conftest.err; then
7415       # Append any errors to the config.log.
7416       cat conftest.err 1>&5
7417       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7418       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7419       if diff conftest.exp conftest.er2 >/dev/null; then
7420         lt_prog_compiler_static_works=yes
7421       fi
7422     else
7423       lt_prog_compiler_static_works=yes
7424     fi
7425   fi
7426   $rm conftest*
7427   LDFLAGS="$save_LDFLAGS"
7428
7429fi
7430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7431echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7432
7433if test x"$lt_prog_compiler_static_works" = xyes; then
7434    :
7435else
7436    lt_prog_compiler_static=
7437fi
7438
7439
7440{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7441echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7442if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7443  echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445  lt_cv_prog_compiler_c_o=no
7446   $rm -r conftest 2>/dev/null
7447   mkdir conftest
7448   cd conftest
7449   mkdir out
7450   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7451
7452   lt_compiler_flag="-o out/conftest2.$ac_objext"
7453   # Insert the option either (1) after the last *FLAGS variable, or
7454   # (2) before a word containing "conftest.", or (3) at the end.
7455   # Note that $ac_compile itself does not contain backslashes and begins
7456   # with a dollar sign (not a hyphen), so the echo should work correctly.
7457   lt_compile=`echo "$ac_compile" | $SED \
7458   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7459   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7460   -e 's:$: $lt_compiler_flag:'`
7461   (eval echo "\"\$as_me:7461: $lt_compile\"" >&5)
7462   (eval "$lt_compile" 2>out/conftest.err)
7463   ac_status=$?
7464   cat out/conftest.err >&5
7465   echo "$as_me:7465: \$? = $ac_status" >&5
7466   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7467   then
7468     # The compiler can only warn and ignore the option if not recognized
7469     # So say no if there are warnings
7470     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7471     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7472     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7473       lt_cv_prog_compiler_c_o=yes
7474     fi
7475   fi
7476   chmod u+w . 2>&5
7477   $rm conftest*
7478   # SGI C++ compiler will create directory out/ii_files/ for
7479   # template instantiation
7480   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7481   $rm out/* && rmdir out
7482   cd ..
7483   rmdir conftest
7484   $rm conftest*
7485
7486fi
7487{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7488echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7489
7490
7491hard_links="nottested"
7492if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7493  # do not overwrite the value of need_locks provided by the user
7494  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7495echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7496  hard_links=yes
7497  $rm conftest*
7498  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7499  touch conftest.a
7500  ln conftest.a conftest.b 2>&5 || hard_links=no
7501  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7502  { echo "$as_me:$LINENO: result: $hard_links" >&5
7503echo "${ECHO_T}$hard_links" >&6; }
7504  if test "$hard_links" = no; then
7505    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7506echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7507    need_locks=warn
7508  fi
7509else
7510  need_locks=no
7511fi
7512
7513{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7514echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7515
7516  runpath_var=
7517  allow_undefined_flag=
7518  enable_shared_with_static_runtimes=no
7519  archive_cmds=
7520  archive_expsym_cmds=
7521  old_archive_From_new_cmds=
7522  old_archive_from_expsyms_cmds=
7523  export_dynamic_flag_spec=
7524  whole_archive_flag_spec=
7525  thread_safe_flag_spec=
7526  hardcode_libdir_flag_spec=
7527  hardcode_libdir_flag_spec_ld=
7528  hardcode_libdir_separator=
7529  hardcode_direct=no
7530  hardcode_minus_L=no
7531  hardcode_shlibpath_var=unsupported
7532  link_all_deplibs=unknown
7533  hardcode_automatic=no
7534  module_cmds=
7535  module_expsym_cmds=
7536  always_export_symbols=no
7537  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7538  # include_expsyms should be a list of space-separated symbols to be *always*
7539  # included in the symbol list
7540  include_expsyms=
7541  # exclude_expsyms can be an extended regexp of symbols to exclude
7542  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7543  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7544  # as well as any symbol that contains `d'.
7545  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7546  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7547  # platforms (ab)use it in PIC code, but their linkers get confused if
7548  # the symbol is explicitly referenced.  Since portable code cannot
7549  # rely on this symbol name, it's probably fine to never include it in
7550  # preloaded symbol tables.
7551  extract_expsyms_cmds=
7552  # Just being paranoid about ensuring that cc_basename is set.
7553  for cc_temp in $compiler""; do
7554  case $cc_temp in
7555    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7556    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7557    \-*) ;;
7558    *) break;;
7559  esac
7560done
7561cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7562
7563  case $host_os in
7564  cygwin* | mingw* | pw32*)
7565    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7566    # When not using gcc, we currently assume that we are using
7567    # Microsoft Visual C++.
7568    if test "$GCC" != yes; then
7569      with_gnu_ld=no
7570    fi
7571    ;;
7572  interix*)
7573    # we just hope/assume this is gcc and not c89 (= MSVC++)
7574    with_gnu_ld=yes
7575    ;;
7576  openbsd*)
7577    with_gnu_ld=no
7578    ;;
7579  esac
7580
7581  ld_shlibs=yes
7582  if test "$with_gnu_ld" = yes; then
7583    # If archive_cmds runs LD, not CC, wlarc should be empty
7584    wlarc='${wl}'
7585
7586    # Set some defaults for GNU ld with shared library support. These
7587    # are reset later if shared libraries are not supported. Putting them
7588    # here allows them to be overridden if necessary.
7589    runpath_var=LD_RUN_PATH
7590    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7591    export_dynamic_flag_spec='${wl}--export-dynamic'
7592    # ancient GNU ld didn't support --whole-archive et. al.
7593    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7594	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7595      else
7596  	whole_archive_flag_spec=
7597    fi
7598    supports_anon_versioning=no
7599    case `$LD -v 2>/dev/null` in
7600      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7601      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7602      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7603      *\ 2.11.*) ;; # other 2.11 versions
7604      *) supports_anon_versioning=yes ;;
7605    esac
7606
7607    # See if GNU ld supports shared libraries.
7608    case $host_os in
7609    aix3* | aix4* | aix5*)
7610      # On AIX/PPC, the GNU linker is very broken
7611      if test "$host_cpu" != ia64; then
7612	ld_shlibs=no
7613	cat <<EOF 1>&2
7614
7615*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7616*** to be unable to reliably create shared libraries on AIX.
7617*** Therefore, libtool is disabling shared libraries support.  If you
7618*** really care for shared libraries, you may want to modify your PATH
7619*** so that a non-GNU linker is found, and then restart.
7620
7621EOF
7622      fi
7623      ;;
7624
7625    amigaos*)
7626      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)'
7627      hardcode_libdir_flag_spec='-L$libdir'
7628      hardcode_minus_L=yes
7629
7630      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7631      # that the semantics of dynamic libraries on AmigaOS, at least up
7632      # to version 4, is to share data among multiple programs linked
7633      # with the same dynamic library.  Since this doesn't match the
7634      # behavior of shared libraries on other platforms, we can't use
7635      # them.
7636      ld_shlibs=no
7637      ;;
7638
7639    beos*)
7640      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7641	allow_undefined_flag=unsupported
7642	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7643	# support --undefined.  This deserves some investigation.  FIXME
7644	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7645      else
7646	ld_shlibs=no
7647      fi
7648      ;;
7649
7650    cygwin* | mingw* | pw32*)
7651      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7652      # as there is no search path for DLLs.
7653      hardcode_libdir_flag_spec='-L$libdir'
7654      allow_undefined_flag=unsupported
7655      always_export_symbols=no
7656      enable_shared_with_static_runtimes=yes
7657      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7658
7659      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7660        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7661	# If the export-symbols file already is a .def file (1st line
7662	# is EXPORTS), use it as is; otherwise, prepend...
7663	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7664	  cp $export_symbols $output_objdir/$soname.def;
7665	else
7666	  echo EXPORTS > $output_objdir/$soname.def;
7667	  cat $export_symbols >> $output_objdir/$soname.def;
7668	fi~
7669	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7670      else
7671	ld_shlibs=no
7672      fi
7673      ;;
7674
7675    interix3*)
7676      hardcode_direct=no
7677      hardcode_shlibpath_var=no
7678      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7679      export_dynamic_flag_spec='${wl}-E'
7680      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7681      # Instead, shared libraries are loaded at an image base (0x10000000 by
7682      # default) and relocated if they conflict, which is a slow very memory
7683      # consuming and fragmenting process.  To avoid this, we pick a random,
7684      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7685      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7686      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7687      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'
7688      ;;
7689
7690    linux*)
7691      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7692	tmp_addflag=
7693	case $cc_basename,$host_cpu in
7694	pgcc*)				# Portland Group C compiler
7695	  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'
7696	  tmp_addflag=' $pic_flag'
7697	  ;;
7698	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7699	  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'
7700	  tmp_addflag=' $pic_flag -Mnomain' ;;
7701	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7702	  tmp_addflag=' -i_dynamic' ;;
7703	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7704	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7705	ifc* | ifort*)			# Intel Fortran compiler
7706	  tmp_addflag=' -nofor_main' ;;
7707	esac
7708	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7709
7710	if test $supports_anon_versioning = yes; then
7711	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7712  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7713  $echo "local: *; };" >> $output_objdir/$libname.ver~
7714	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7715	fi
7716      else
7717	ld_shlibs=no
7718      fi
7719      ;;
7720
7721    netbsd*)
7722      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7723	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7724	wlarc=
7725      else
7726	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7727	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7728      fi
7729      ;;
7730
7731    solaris*)
7732      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7733	ld_shlibs=no
7734	cat <<EOF 1>&2
7735
7736*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7737*** create shared libraries on Solaris systems.  Therefore, libtool
7738*** is disabling shared libraries support.  We urge you to upgrade GNU
7739*** binutils to release 2.9.1 or newer.  Another option is to modify
7740*** your PATH or compiler configuration so that the native linker is
7741*** used, and then restart.
7742
7743EOF
7744      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7745	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7746	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7747      else
7748	ld_shlibs=no
7749      fi
7750      ;;
7751
7752    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7753      case `$LD -v 2>&1` in
7754        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7755	ld_shlibs=no
7756	cat <<_LT_EOF 1>&2
7757
7758*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7759*** reliably create shared libraries on SCO systems.  Therefore, libtool
7760*** is disabling shared libraries support.  We urge you to upgrade GNU
7761*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7762*** your PATH or compiler configuration so that the native linker is
7763*** used, and then restart.
7764
7765_LT_EOF
7766	;;
7767	*)
7768	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7769	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7770	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7771	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7772	  else
7773	    ld_shlibs=no
7774	  fi
7775	;;
7776      esac
7777      ;;
7778
7779    sunos4*)
7780      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7781      wlarc=
7782      hardcode_direct=yes
7783      hardcode_shlibpath_var=no
7784      ;;
7785
7786    *)
7787      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7788	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7789	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7790      else
7791	ld_shlibs=no
7792      fi
7793      ;;
7794    esac
7795
7796    if test "$ld_shlibs" = no; then
7797      runpath_var=
7798      hardcode_libdir_flag_spec=
7799      export_dynamic_flag_spec=
7800      whole_archive_flag_spec=
7801    fi
7802  else
7803    # PORTME fill in a description of your system's linker (not GNU ld)
7804    case $host_os in
7805    aix3*)
7806      allow_undefined_flag=unsupported
7807      always_export_symbols=yes
7808      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'
7809      # Note: this linker hardcodes the directories in LIBPATH if there
7810      # are no directories specified by -L.
7811      hardcode_minus_L=yes
7812      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7813	# Neither direct hardcoding nor static linking is supported with a
7814	# broken collect2.
7815	hardcode_direct=unsupported
7816      fi
7817      ;;
7818
7819    aix4* | aix5*)
7820      if test "$host_cpu" = ia64; then
7821	# On IA64, the linker does run time linking by default, so we don't
7822	# have to do anything special.
7823	aix_use_runtimelinking=no
7824	exp_sym_flag='-Bexport'
7825	no_entry_flag=""
7826      else
7827	# If we're using GNU nm, then we don't want the "-C" option.
7828	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7829	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7830	  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'
7831	else
7832	  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'
7833	fi
7834	aix_use_runtimelinking=no
7835
7836	# Test if we are trying to use run time linking or normal
7837	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7838	# need to do runtime linking.
7839	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7840	  for ld_flag in $LDFLAGS; do
7841  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7842  	    aix_use_runtimelinking=yes
7843  	    break
7844  	  fi
7845	  done
7846	  ;;
7847	esac
7848
7849	exp_sym_flag='-bexport'
7850	no_entry_flag='-bnoentry'
7851      fi
7852
7853      # When large executables or shared objects are built, AIX ld can
7854      # have problems creating the table of contents.  If linking a library
7855      # or program results in "error TOC overflow" add -mminimal-toc to
7856      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7857      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7858
7859      archive_cmds=''
7860      hardcode_direct=yes
7861      hardcode_libdir_separator=':'
7862      link_all_deplibs=yes
7863
7864      if test "$GCC" = yes; then
7865	case $host_os in aix4.[012]|aix4.[012].*)
7866	# We only want to do this on AIX 4.2 and lower, the check
7867	# below for broken collect2 doesn't work under 4.3+
7868	  collect2name=`${CC} -print-prog-name=collect2`
7869	  if test -f "$collect2name" && \
7870  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7871	  then
7872  	  # We have reworked collect2
7873  	  hardcode_direct=yes
7874	  else
7875  	  # We have old collect2
7876  	  hardcode_direct=unsupported
7877  	  # It fails to find uninstalled libraries when the uninstalled
7878  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7879  	  # to unsupported forces relinking
7880  	  hardcode_minus_L=yes
7881  	  hardcode_libdir_flag_spec='-L$libdir'
7882  	  hardcode_libdir_separator=
7883	  fi
7884	  ;;
7885	esac
7886	shared_flag='-shared'
7887	if test "$aix_use_runtimelinking" = yes; then
7888	  shared_flag="$shared_flag "'${wl}-G'
7889	fi
7890      else
7891	# not using gcc
7892	if test "$host_cpu" = ia64; then
7893  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7894  	# chokes on -Wl,-G. The following line is correct:
7895	  shared_flag='-G'
7896	else
7897	  if test "$aix_use_runtimelinking" = yes; then
7898	    shared_flag='${wl}-G'
7899	  else
7900	    shared_flag='${wl}-bM:SRE'
7901	  fi
7902	fi
7903      fi
7904
7905      # It seems that -bexpall does not export symbols beginning with
7906      # underscore (_), so it is better to generate a list of symbols to export.
7907      always_export_symbols=yes
7908      if test "$aix_use_runtimelinking" = yes; then
7909	# Warning - without using the other runtime loading flags (-brtl),
7910	# -berok will link without error, but may produce a broken library.
7911	allow_undefined_flag='-berok'
7912       # Determine the default libpath from the value encoded in an empty executable.
7913       cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h.  */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h.  */
7919
7920int
7921main ()
7922{
7923
7924  ;
7925  return 0;
7926}
7927_ACEOF
7928rm -f conftest.$ac_objext conftest$ac_exeext
7929if { (ac_try="$ac_link"
7930case "(($ac_try" in
7931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932  *) ac_try_echo=$ac_try;;
7933esac
7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935  (eval "$ac_link") 2>conftest.er1
7936  ac_status=$?
7937  grep -v '^ *+' conftest.er1 >conftest.err
7938  rm -f conftest.er1
7939  cat conftest.err >&5
7940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941  (exit $ac_status); } && {
7942	 test -z "$ac_c_werror_flag" ||
7943	 test ! -s conftest.err
7944       } && test -s conftest$ac_exeext &&
7945       $as_test_x conftest$ac_exeext; then
7946
7947aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7948}'`
7949# Check for a 64-bit object if we didn't find anything.
7950if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7951}'`; fi
7952else
7953  echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956
7957fi
7958
7959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7960      conftest$ac_exeext conftest.$ac_ext
7961if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7962
7963       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7964	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"
7965       else
7966	if test "$host_cpu" = ia64; then
7967	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7968	  allow_undefined_flag="-z nodefs"
7969	  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"
7970	else
7971	 # Determine the default libpath from the value encoded in an empty executable.
7972	 cat >conftest.$ac_ext <<_ACEOF
7973/* confdefs.h.  */
7974_ACEOF
7975cat confdefs.h >>conftest.$ac_ext
7976cat >>conftest.$ac_ext <<_ACEOF
7977/* end confdefs.h.  */
7978
7979int
7980main ()
7981{
7982
7983  ;
7984  return 0;
7985}
7986_ACEOF
7987rm -f conftest.$ac_objext conftest$ac_exeext
7988if { (ac_try="$ac_link"
7989case "(($ac_try" in
7990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991  *) ac_try_echo=$ac_try;;
7992esac
7993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994  (eval "$ac_link") 2>conftest.er1
7995  ac_status=$?
7996  grep -v '^ *+' conftest.er1 >conftest.err
7997  rm -f conftest.er1
7998  cat conftest.err >&5
7999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000  (exit $ac_status); } && {
8001	 test -z "$ac_c_werror_flag" ||
8002	 test ! -s conftest.err
8003       } && test -s conftest$ac_exeext &&
8004       $as_test_x conftest$ac_exeext; then
8005
8006aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8007}'`
8008# Check for a 64-bit object if we didn't find anything.
8009if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8010}'`; fi
8011else
8012  echo "$as_me: failed program was:" >&5
8013sed 's/^/| /' conftest.$ac_ext >&5
8014
8015
8016fi
8017
8018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8019      conftest$ac_exeext conftest.$ac_ext
8020if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8021
8022	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8023	  # Warning - without using the other run time loading flags,
8024	  # -berok will link without error, but may produce a broken library.
8025	  no_undefined_flag=' ${wl}-bernotok'
8026	  allow_undefined_flag=' ${wl}-berok'
8027	  # Exported symbols can be pulled into shared objects from archives
8028	  whole_archive_flag_spec='$convenience'
8029	  archive_cmds_need_lc=yes
8030	  # This is similar to how AIX traditionally builds its shared libraries.
8031	  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'
8032	fi
8033      fi
8034      ;;
8035
8036    amigaos*)
8037      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)'
8038      hardcode_libdir_flag_spec='-L$libdir'
8039      hardcode_minus_L=yes
8040      # see comment about different semantics on the GNU ld section
8041      ld_shlibs=no
8042      ;;
8043
8044    bsdi[45]*)
8045      export_dynamic_flag_spec=-rdynamic
8046      ;;
8047
8048    cygwin* | mingw* | pw32*)
8049      # When not using gcc, we currently assume that we are using
8050      # Microsoft Visual C++.
8051      # hardcode_libdir_flag_spec is actually meaningless, as there is
8052      # no search path for DLLs.
8053      hardcode_libdir_flag_spec=' '
8054      allow_undefined_flag=unsupported
8055      # Tell ltmain to make .lib files, not .a files.
8056      libext=lib
8057      # Tell ltmain to make .dll files, not .so files.
8058      shrext_cmds=".dll"
8059      # FIXME: Setting linknames here is a bad hack.
8060      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8061      # The linker will automatically build a .lib file if we build a DLL.
8062      old_archive_From_new_cmds='true'
8063      # FIXME: Should let the user specify the lib program.
8064      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8065      fix_srcfile_path='`cygpath -w "$srcfile"`'
8066      enable_shared_with_static_runtimes=yes
8067      ;;
8068
8069    darwin* | rhapsody*)
8070      case $host_os in
8071        rhapsody* | darwin1.[012])
8072         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8073         ;;
8074       *) # Darwin 1.3 on
8075         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8076           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8077         else
8078           case ${MACOSX_DEPLOYMENT_TARGET} in
8079             10.[012])
8080               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8081               ;;
8082             10.*)
8083               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8084               ;;
8085           esac
8086         fi
8087         ;;
8088      esac
8089      archive_cmds_need_lc=no
8090      hardcode_direct=no
8091      hardcode_automatic=yes
8092      hardcode_shlibpath_var=unsupported
8093      whole_archive_flag_spec=''
8094      link_all_deplibs=yes
8095    if test "$GCC" = yes ; then
8096    	output_verbose_link_cmd='echo'
8097        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8098      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8099      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8100      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8101      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}'
8102    else
8103      case $cc_basename in
8104        xlc*)
8105         output_verbose_link_cmd='echo'
8106         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8107         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8108          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8109         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8110          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}'
8111          ;;
8112       *)
8113         ld_shlibs=no
8114          ;;
8115      esac
8116    fi
8117      ;;
8118
8119    dgux*)
8120      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8121      hardcode_libdir_flag_spec='-L$libdir'
8122      hardcode_shlibpath_var=no
8123      ;;
8124
8125    freebsd1*)
8126      ld_shlibs=no
8127      ;;
8128
8129    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8130    # support.  Future versions do this automatically, but an explicit c++rt0.o
8131    # does not break anything, and helps significantly (at the cost of a little
8132    # extra space).
8133    freebsd2.2*)
8134      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8135      hardcode_libdir_flag_spec='-R$libdir'
8136      hardcode_direct=yes
8137      hardcode_shlibpath_var=no
8138      ;;
8139
8140    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8141    freebsd2*)
8142      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8143      hardcode_direct=yes
8144      hardcode_minus_L=yes
8145      hardcode_shlibpath_var=no
8146      ;;
8147
8148    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8149    freebsd* | kfreebsd*-gnu | dragonfly*)
8150      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8151      hardcode_libdir_flag_spec='-R$libdir'
8152      hardcode_direct=yes
8153      hardcode_shlibpath_var=no
8154      ;;
8155
8156    hpux9*)
8157      if test "$GCC" = yes; then
8158	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'
8159      else
8160	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'
8161      fi
8162      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8163      hardcode_libdir_separator=:
8164      hardcode_direct=yes
8165
8166      # hardcode_minus_L: Not really in the search PATH,
8167      # but as the default location of the library.
8168      hardcode_minus_L=yes
8169      export_dynamic_flag_spec='${wl}-E'
8170      ;;
8171
8172    hpux10*)
8173      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8174	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8175      else
8176	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8177      fi
8178      if test "$with_gnu_ld" = no; then
8179	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8180	hardcode_libdir_separator=:
8181
8182	hardcode_direct=yes
8183	export_dynamic_flag_spec='${wl}-E'
8184
8185	# hardcode_minus_L: Not really in the search PATH,
8186	# but as the default location of the library.
8187	hardcode_minus_L=yes
8188      fi
8189      ;;
8190
8191    hpux11*)
8192      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8193	case $host_cpu in
8194	hppa*64*)
8195	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8196	  ;;
8197	ia64*)
8198	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8199	  ;;
8200	*)
8201	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8202	  ;;
8203	esac
8204      else
8205	case $host_cpu in
8206	hppa*64*)
8207	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8208	  ;;
8209	ia64*)
8210	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8211	  ;;
8212	*)
8213	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8214	  ;;
8215	esac
8216      fi
8217      if test "$with_gnu_ld" = no; then
8218	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8219	hardcode_libdir_separator=:
8220
8221	case $host_cpu in
8222	hppa*64*|ia64*)
8223	  hardcode_libdir_flag_spec_ld='+b $libdir'
8224	  hardcode_direct=no
8225	  hardcode_shlibpath_var=no
8226	  ;;
8227	*)
8228	  hardcode_direct=yes
8229	  export_dynamic_flag_spec='${wl}-E'
8230
8231	  # hardcode_minus_L: Not really in the search PATH,
8232	  # but as the default location of the library.
8233	  hardcode_minus_L=yes
8234	  ;;
8235	esac
8236      fi
8237      ;;
8238
8239    irix5* | irix6* | nonstopux*)
8240      if test "$GCC" = yes; then
8241	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'
8242      else
8243	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'
8244	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8245      fi
8246      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8247      hardcode_libdir_separator=:
8248      link_all_deplibs=yes
8249      ;;
8250
8251    netbsd*)
8252      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8253	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8254      else
8255	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8256      fi
8257      hardcode_libdir_flag_spec='-R$libdir'
8258      hardcode_direct=yes
8259      hardcode_shlibpath_var=no
8260      ;;
8261
8262    newsos6)
8263      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8264      hardcode_direct=yes
8265      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8266      hardcode_libdir_separator=:
8267      hardcode_shlibpath_var=no
8268      ;;
8269
8270    openbsd*)
8271      hardcode_direct=yes
8272      hardcode_shlibpath_var=no
8273      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8274	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8275	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8276	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8277	export_dynamic_flag_spec='${wl}-E'
8278      else
8279       case $host_os in
8280	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8281	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8282	   hardcode_libdir_flag_spec='-R$libdir'
8283	   ;;
8284	 *)
8285	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8286	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8287	   ;;
8288       esac
8289      fi
8290      ;;
8291
8292    os2*)
8293      hardcode_libdir_flag_spec='-L$libdir'
8294      hardcode_minus_L=yes
8295      allow_undefined_flag=unsupported
8296      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'
8297      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8298      ;;
8299
8300    osf3*)
8301      if test "$GCC" = yes; then
8302	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8303	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'
8304      else
8305	allow_undefined_flag=' -expect_unresolved \*'
8306	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'
8307      fi
8308      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8309      hardcode_libdir_separator=:
8310      ;;
8311
8312    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8313      if test "$GCC" = yes; then
8314	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8315	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'
8316	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8317      else
8318	allow_undefined_flag=' -expect_unresolved \*'
8319	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'
8320	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8321	$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'
8322
8323	# Both c and cxx compiler support -rpath directly
8324	hardcode_libdir_flag_spec='-rpath $libdir'
8325      fi
8326      hardcode_libdir_separator=:
8327      ;;
8328
8329    solaris*)
8330      no_undefined_flag=' -z text'
8331      if test "$GCC" = yes; then
8332	wlarc='${wl}'
8333	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8334	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8335	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8336      else
8337	wlarc=''
8338	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8339	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8340  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8341      fi
8342      hardcode_libdir_flag_spec='-R$libdir'
8343      hardcode_shlibpath_var=no
8344      case $host_os in
8345      solaris2.[0-5] | solaris2.[0-5].*) ;;
8346      *)
8347 	# The compiler driver will combine linker options so we
8348 	# cannot just pass the convience library names through
8349 	# without $wl, iff we do not link with $LD.
8350 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8351 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8352 	case $wlarc in
8353 	'')
8354 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8355 	*)
8356 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8357 	esac ;;
8358      esac
8359      link_all_deplibs=yes
8360      ;;
8361
8362    sunos4*)
8363      if test "x$host_vendor" = xsequent; then
8364	# Use $CC to link under sequent, because it throws in some extra .o
8365	# files that make .init and .fini sections work.
8366	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8367      else
8368	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8369      fi
8370      hardcode_libdir_flag_spec='-L$libdir'
8371      hardcode_direct=yes
8372      hardcode_minus_L=yes
8373      hardcode_shlibpath_var=no
8374      ;;
8375
8376    sysv4)
8377      case $host_vendor in
8378	sni)
8379	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8380	  hardcode_direct=yes # is this really true???
8381	;;
8382	siemens)
8383	  ## LD is ld it makes a PLAMLIB
8384	  ## CC just makes a GrossModule.
8385	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8386	  reload_cmds='$CC -r -o $output$reload_objs'
8387	  hardcode_direct=no
8388        ;;
8389	motorola)
8390	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8392	;;
8393      esac
8394      runpath_var='LD_RUN_PATH'
8395      hardcode_shlibpath_var=no
8396      ;;
8397
8398    sysv4.3*)
8399      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400      hardcode_shlibpath_var=no
8401      export_dynamic_flag_spec='-Bexport'
8402      ;;
8403
8404    sysv4*MP*)
8405      if test -d /usr/nec; then
8406	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407	hardcode_shlibpath_var=no
8408	runpath_var=LD_RUN_PATH
8409	hardcode_runpath_var=yes
8410	ld_shlibs=yes
8411      fi
8412      ;;
8413
8414    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8415      no_undefined_flag='${wl}-z,text'
8416      archive_cmds_need_lc=no
8417      hardcode_shlibpath_var=no
8418      runpath_var='LD_RUN_PATH'
8419
8420      if test "$GCC" = yes; then
8421	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423      else
8424	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426      fi
8427      ;;
8428
8429    sysv5* | sco3.2v5* | sco5v6*)
8430      # Note: We can NOT use -z defs as we might desire, because we do not
8431      # link with -lc, and that would cause any symbols used from libc to
8432      # always be unresolved, which means just about no library would
8433      # ever link correctly.  If we're not using GNU ld we use -z text
8434      # though, which does catch some bad symbols but isn't as heavy-handed
8435      # as -z defs.
8436      no_undefined_flag='${wl}-z,text'
8437      allow_undefined_flag='${wl}-z,nodefs'
8438      archive_cmds_need_lc=no
8439      hardcode_shlibpath_var=no
8440      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8441      hardcode_libdir_separator=':'
8442      link_all_deplibs=yes
8443      export_dynamic_flag_spec='${wl}-Bexport'
8444      runpath_var='LD_RUN_PATH'
8445
8446      if test "$GCC" = yes; then
8447	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8448	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449      else
8450	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8452      fi
8453      ;;
8454
8455    uts4*)
8456      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457      hardcode_libdir_flag_spec='-L$libdir'
8458      hardcode_shlibpath_var=no
8459      ;;
8460
8461    *)
8462      ld_shlibs=no
8463      ;;
8464    esac
8465  fi
8466
8467{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8468echo "${ECHO_T}$ld_shlibs" >&6; }
8469test "$ld_shlibs" = no && can_build_shared=no
8470
8471#
8472# Do we need to explicitly link libc?
8473#
8474case "x$archive_cmds_need_lc" in
8475x|xyes)
8476  # Assume -lc should be added
8477  archive_cmds_need_lc=yes
8478
8479  if test "$enable_shared" = yes && test "$GCC" = yes; then
8480    case $archive_cmds in
8481    *'~'*)
8482      # FIXME: we may have to deal with multi-command sequences.
8483      ;;
8484    '$CC '*)
8485      # Test whether the compiler implicitly links with -lc since on some
8486      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8487      # to ld, don't add -lc before -lgcc.
8488      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8489echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8490      $rm conftest*
8491      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8492
8493      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494  (eval $ac_compile) 2>&5
8495  ac_status=$?
8496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497  (exit $ac_status); } 2>conftest.err; then
8498        soname=conftest
8499        lib=conftest
8500        libobjs=conftest.$ac_objext
8501        deplibs=
8502        wl=$lt_prog_compiler_wl
8503	pic_flag=$lt_prog_compiler_pic
8504        compiler_flags=-v
8505        linker_flags=-v
8506        verstring=
8507        output_objdir=.
8508        libname=conftest
8509        lt_save_allow_undefined_flag=$allow_undefined_flag
8510        allow_undefined_flag=
8511        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8512  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8513  ac_status=$?
8514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515  (exit $ac_status); }
8516        then
8517	  archive_cmds_need_lc=no
8518        else
8519	  archive_cmds_need_lc=yes
8520        fi
8521        allow_undefined_flag=$lt_save_allow_undefined_flag
8522      else
8523        cat conftest.err 1>&5
8524      fi
8525      $rm conftest*
8526      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8527echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8528      ;;
8529    esac
8530  fi
8531  ;;
8532esac
8533
8534{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8535echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8536library_names_spec=
8537libname_spec='lib$name'
8538soname_spec=
8539shrext_cmds=".so"
8540postinstall_cmds=
8541postuninstall_cmds=
8542finish_cmds=
8543finish_eval=
8544shlibpath_var=
8545shlibpath_overrides_runpath=unknown
8546version_type=none
8547dynamic_linker="$host_os ld.so"
8548sys_lib_dlsearch_path_spec="/lib /usr/lib"
8549if test "$GCC" = yes; then
8550  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8551  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8552    # if the path contains ";" then we assume it to be the separator
8553    # otherwise default to the standard path separator (i.e. ":") - it is
8554    # assumed that no part of a normal pathname contains ";" but that should
8555    # okay in the real world where ";" in dirpaths is itself problematic.
8556    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8557  else
8558    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8559  fi
8560else
8561  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8562fi
8563need_lib_prefix=unknown
8564hardcode_into_libs=no
8565
8566# when you set need_version to no, make sure it does not cause -set_version
8567# flags to be left without arguments
8568need_version=unknown
8569
8570case $host_os in
8571aix3*)
8572  version_type=linux
8573  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8574  shlibpath_var=LIBPATH
8575
8576  # AIX 3 has no versioning support, so we append a major version to the name.
8577  soname_spec='${libname}${release}${shared_ext}$major'
8578  ;;
8579
8580aix4* | aix5*)
8581  version_type=linux
8582  need_lib_prefix=no
8583  need_version=no
8584  hardcode_into_libs=yes
8585  if test "$host_cpu" = ia64; then
8586    # AIX 5 supports IA64
8587    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8588    shlibpath_var=LD_LIBRARY_PATH
8589  else
8590    # With GCC up to 2.95.x, collect2 would create an import file
8591    # for dependence libraries.  The import file would start with
8592    # the line `#! .'.  This would cause the generated library to
8593    # depend on `.', always an invalid library.  This was fixed in
8594    # development snapshots of GCC prior to 3.0.
8595    case $host_os in
8596      aix4 | aix4.[01] | aix4.[01].*)
8597      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8598	   echo ' yes '
8599	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8600	:
8601      else
8602	can_build_shared=no
8603      fi
8604      ;;
8605    esac
8606    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8607    # soname into executable. Probably we can add versioning support to
8608    # collect2, so additional links can be useful in future.
8609    if test "$aix_use_runtimelinking" = yes; then
8610      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8611      # instead of lib<name>.a to let people know that these are not
8612      # typical AIX shared libraries.
8613      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614    else
8615      # We preserve .a as extension for shared libraries through AIX4.2
8616      # and later when we are not doing run time linking.
8617      library_names_spec='${libname}${release}.a $libname.a'
8618      soname_spec='${libname}${release}${shared_ext}$major'
8619    fi
8620    shlibpath_var=LIBPATH
8621  fi
8622  ;;
8623
8624amigaos*)
8625  library_names_spec='$libname.ixlibrary $libname.a'
8626  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8627  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'
8628  ;;
8629
8630beos*)
8631  library_names_spec='${libname}${shared_ext}'
8632  dynamic_linker="$host_os ld.so"
8633  shlibpath_var=LIBRARY_PATH
8634  ;;
8635
8636bsdi[45]*)
8637  version_type=linux
8638  need_version=no
8639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640  soname_spec='${libname}${release}${shared_ext}$major'
8641  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8642  shlibpath_var=LD_LIBRARY_PATH
8643  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8644  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8645  # the default ld.so.conf also contains /usr/contrib/lib and
8646  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8647  # libtool to hard-code these into programs
8648  ;;
8649
8650cygwin* | mingw* | pw32*)
8651  version_type=windows
8652  shrext_cmds=".dll"
8653  need_version=no
8654  need_lib_prefix=no
8655
8656  case $GCC,$host_os in
8657  yes,cygwin* | yes,mingw* | yes,pw32*)
8658    library_names_spec='$libname.dll.a'
8659    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8660    postinstall_cmds='base_file=`basename \${file}`~
8661      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8662      dldir=$destdir/`dirname \$dlpath`~
8663      test -d \$dldir || mkdir -p \$dldir~
8664      $install_prog $dir/$dlname \$dldir/$dlname~
8665      chmod a+x \$dldir/$dlname'
8666    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8667      dlpath=$dir/\$dldll~
8668       $rm \$dlpath'
8669    shlibpath_overrides_runpath=yes
8670
8671    case $host_os in
8672    cygwin*)
8673      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8674      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8676      ;;
8677    mingw*)
8678      # MinGW DLLs use traditional 'lib' prefix
8679      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8680      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8681      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8682        # It is most probably a Windows format PATH printed by
8683        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8684        # path with ; separators, and with drive letters. We can handle the
8685        # drive letters (cygwin fileutils understands them), so leave them,
8686        # especially as we might pass files found there to a mingw objdump,
8687        # which wouldn't understand a cygwinified path. Ahh.
8688        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8689      else
8690        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8691      fi
8692      ;;
8693    pw32*)
8694      # pw32 DLLs use 'pw' prefix rather than 'lib'
8695      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8696      ;;
8697    esac
8698    ;;
8699
8700  *)
8701    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8702    ;;
8703  esac
8704  dynamic_linker='Win32 ld.exe'
8705  # FIXME: first we should search . and the directory the executable is in
8706  shlibpath_var=PATH
8707  ;;
8708
8709darwin* | rhapsody*)
8710  dynamic_linker="$host_os dyld"
8711  version_type=darwin
8712  need_lib_prefix=no
8713  need_version=no
8714  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8715  soname_spec='${libname}${release}${major}$shared_ext'
8716  shlibpath_overrides_runpath=yes
8717  shlibpath_var=DYLD_LIBRARY_PATH
8718  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8719  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8720  if test "$GCC" = yes; then
8721    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8722  else
8723    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8724  fi
8725  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8726  ;;
8727
8728dgux*)
8729  version_type=linux
8730  need_lib_prefix=no
8731  need_version=no
8732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8733  soname_spec='${libname}${release}${shared_ext}$major'
8734  shlibpath_var=LD_LIBRARY_PATH
8735  ;;
8736
8737freebsd1*)
8738  dynamic_linker=no
8739  ;;
8740
8741kfreebsd*-gnu)
8742  version_type=linux
8743  need_lib_prefix=no
8744  need_version=no
8745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8746  soname_spec='${libname}${release}${shared_ext}$major'
8747  shlibpath_var=LD_LIBRARY_PATH
8748  shlibpath_overrides_runpath=no
8749  hardcode_into_libs=yes
8750  dynamic_linker='GNU ld.so'
8751  ;;
8752
8753freebsd* | dragonfly*)
8754  # DragonFly does not have aout.  When/if they implement a new
8755  # versioning mechanism, adjust this.
8756  if test -x /usr/bin/objformat; then
8757    objformat=`/usr/bin/objformat`
8758  else
8759    case $host_os in
8760    freebsd[123]*) objformat=aout ;;
8761    *) objformat=elf ;;
8762    esac
8763  fi
8764  version_type=freebsd-$objformat
8765  case $version_type in
8766    freebsd-elf*)
8767      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8768      need_version=no
8769      need_lib_prefix=no
8770      ;;
8771    freebsd-*)
8772      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8773      need_version=yes
8774      ;;
8775  esac
8776  shlibpath_var=LD_LIBRARY_PATH
8777  case $host_os in
8778  freebsd2*)
8779    shlibpath_overrides_runpath=yes
8780    ;;
8781  freebsd3.[01]* | freebsdelf3.[01]*)
8782    shlibpath_overrides_runpath=yes
8783    hardcode_into_libs=yes
8784    ;;
8785  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8786  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8787    shlibpath_overrides_runpath=no
8788    hardcode_into_libs=yes
8789    ;;
8790  freebsd*) # from 4.6 on
8791    shlibpath_overrides_runpath=yes
8792    hardcode_into_libs=yes
8793    ;;
8794  esac
8795  ;;
8796
8797gnu*)
8798  version_type=linux
8799  need_lib_prefix=no
8800  need_version=no
8801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8802  soname_spec='${libname}${release}${shared_ext}$major'
8803  shlibpath_var=LD_LIBRARY_PATH
8804  hardcode_into_libs=yes
8805  ;;
8806
8807hpux9* | hpux10* | hpux11*)
8808  # Give a soname corresponding to the major version so that dld.sl refuses to
8809  # link against other versions.
8810  version_type=sunos
8811  need_lib_prefix=no
8812  need_version=no
8813  case $host_cpu in
8814  ia64*)
8815    shrext_cmds='.so'
8816    hardcode_into_libs=yes
8817    dynamic_linker="$host_os dld.so"
8818    shlibpath_var=LD_LIBRARY_PATH
8819    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8820    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821    soname_spec='${libname}${release}${shared_ext}$major'
8822    if test "X$HPUX_IA64_MODE" = X32; then
8823      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8824    else
8825      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8826    fi
8827    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8828    ;;
8829   hppa*64*)
8830     shrext_cmds='.sl'
8831     hardcode_into_libs=yes
8832     dynamic_linker="$host_os dld.sl"
8833     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8834     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836     soname_spec='${libname}${release}${shared_ext}$major'
8837     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8838     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8839     ;;
8840   *)
8841    shrext_cmds='.sl'
8842    dynamic_linker="$host_os dld.sl"
8843    shlibpath_var=SHLIB_PATH
8844    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8845    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846    soname_spec='${libname}${release}${shared_ext}$major'
8847    ;;
8848  esac
8849  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8850  postinstall_cmds='chmod 555 $lib'
8851  ;;
8852
8853interix3*)
8854  version_type=linux
8855  need_lib_prefix=no
8856  need_version=no
8857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858  soname_spec='${libname}${release}${shared_ext}$major'
8859  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8860  shlibpath_var=LD_LIBRARY_PATH
8861  shlibpath_overrides_runpath=no
8862  hardcode_into_libs=yes
8863  ;;
8864
8865irix5* | irix6* | nonstopux*)
8866  case $host_os in
8867    nonstopux*) version_type=nonstopux ;;
8868    *)
8869	if test "$lt_cv_prog_gnu_ld" = yes; then
8870		version_type=linux
8871	else
8872		version_type=irix
8873	fi ;;
8874  esac
8875  need_lib_prefix=no
8876  need_version=no
8877  soname_spec='${libname}${release}${shared_ext}$major'
8878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8879  case $host_os in
8880  irix5* | nonstopux*)
8881    libsuff= shlibsuff=
8882    ;;
8883  *)
8884    case $LD in # libtool.m4 will add one of these switches to LD
8885    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8886      libsuff= shlibsuff= libmagic=32-bit;;
8887    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8888      libsuff=32 shlibsuff=N32 libmagic=N32;;
8889    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8890      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8891    *) libsuff= shlibsuff= libmagic=never-match;;
8892    esac
8893    ;;
8894  esac
8895  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8896  shlibpath_overrides_runpath=no
8897  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8898  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8899  hardcode_into_libs=yes
8900  ;;
8901
8902# No shared lib support for Linux oldld, aout, or coff.
8903linux*oldld* | linux*aout* | linux*coff*)
8904  dynamic_linker=no
8905  ;;
8906
8907# This must be Linux ELF.
8908linux*)
8909  version_type=linux
8910  need_lib_prefix=no
8911  need_version=no
8912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913  soname_spec='${libname}${release}${shared_ext}$major'
8914  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8915  shlibpath_var=LD_LIBRARY_PATH
8916  shlibpath_overrides_runpath=no
8917  # This implies no fast_install, which is unacceptable.
8918  # Some rework will be needed to allow for fast_install
8919  # before this can be enabled.
8920  hardcode_into_libs=yes
8921
8922  # Append ld.so.conf contents to the search path
8923  if test -f /etc/ld.so.conf; then
8924    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8925    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8926  fi
8927
8928  # We used to test for /lib/ld.so.1 and disable shared libraries on
8929  # powerpc, because MkLinux only supported shared libraries with the
8930  # GNU dynamic linker.  Since this was broken with cross compilers,
8931  # most powerpc-linux boxes support dynamic linking these days and
8932  # people can always --disable-shared, the test was removed, and we
8933  # assume the GNU/Linux dynamic linker is in use.
8934  dynamic_linker='GNU/Linux ld.so'
8935  ;;
8936
8937knetbsd*-gnu)
8938  version_type=linux
8939  need_lib_prefix=no
8940  need_version=no
8941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942  soname_spec='${libname}${release}${shared_ext}$major'
8943  shlibpath_var=LD_LIBRARY_PATH
8944  shlibpath_overrides_runpath=no
8945  hardcode_into_libs=yes
8946  dynamic_linker='GNU ld.so'
8947  ;;
8948
8949netbsd*)
8950  version_type=sunos
8951  need_lib_prefix=no
8952  need_version=no
8953  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8954    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8955    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8956    dynamic_linker='NetBSD (a.out) ld.so'
8957  else
8958    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8959    soname_spec='${libname}${release}${shared_ext}$major'
8960    dynamic_linker='NetBSD ld.elf_so'
8961  fi
8962  shlibpath_var=LD_LIBRARY_PATH
8963  shlibpath_overrides_runpath=yes
8964  hardcode_into_libs=yes
8965  ;;
8966
8967newsos6)
8968  version_type=linux
8969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970  shlibpath_var=LD_LIBRARY_PATH
8971  shlibpath_overrides_runpath=yes
8972  ;;
8973
8974nto-qnx*)
8975  version_type=linux
8976  need_lib_prefix=no
8977  need_version=no
8978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979  soname_spec='${libname}${release}${shared_ext}$major'
8980  shlibpath_var=LD_LIBRARY_PATH
8981  shlibpath_overrides_runpath=yes
8982  ;;
8983
8984openbsd*)
8985  version_type=sunos
8986  sys_lib_dlsearch_path_spec="/usr/lib"
8987  need_lib_prefix=no
8988  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8989  case $host_os in
8990    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8991    *)                         need_version=no  ;;
8992  esac
8993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8994  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8995  shlibpath_var=LD_LIBRARY_PATH
8996  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8997    case $host_os in
8998      openbsd2.[89] | openbsd2.[89].*)
8999	shlibpath_overrides_runpath=no
9000	;;
9001      *)
9002	shlibpath_overrides_runpath=yes
9003	;;
9004      esac
9005  else
9006    shlibpath_overrides_runpath=yes
9007  fi
9008  ;;
9009
9010os2*)
9011  libname_spec='$name'
9012  shrext_cmds=".dll"
9013  need_lib_prefix=no
9014  library_names_spec='$libname${shared_ext} $libname.a'
9015  dynamic_linker='OS/2 ld.exe'
9016  shlibpath_var=LIBPATH
9017  ;;
9018
9019osf3* | osf4* | osf5*)
9020  version_type=osf
9021  need_lib_prefix=no
9022  need_version=no
9023  soname_spec='${libname}${release}${shared_ext}$major'
9024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025  shlibpath_var=LD_LIBRARY_PATH
9026  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9027  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9028  ;;
9029
9030solaris*)
9031  version_type=linux
9032  need_lib_prefix=no
9033  need_version=no
9034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035  soname_spec='${libname}${release}${shared_ext}$major'
9036  shlibpath_var=LD_LIBRARY_PATH
9037  shlibpath_overrides_runpath=yes
9038  hardcode_into_libs=yes
9039  # ldd complains unless libraries are executable
9040  postinstall_cmds='chmod +x $lib'
9041  ;;
9042
9043sunos4*)
9044  version_type=sunos
9045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9046  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9047  shlibpath_var=LD_LIBRARY_PATH
9048  shlibpath_overrides_runpath=yes
9049  if test "$with_gnu_ld" = yes; then
9050    need_lib_prefix=no
9051  fi
9052  need_version=yes
9053  ;;
9054
9055sysv4 | sysv4.3*)
9056  version_type=linux
9057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058  soname_spec='${libname}${release}${shared_ext}$major'
9059  shlibpath_var=LD_LIBRARY_PATH
9060  case $host_vendor in
9061    sni)
9062      shlibpath_overrides_runpath=no
9063      need_lib_prefix=no
9064      export_dynamic_flag_spec='${wl}-Blargedynsym'
9065      runpath_var=LD_RUN_PATH
9066      ;;
9067    siemens)
9068      need_lib_prefix=no
9069      ;;
9070    motorola)
9071      need_lib_prefix=no
9072      need_version=no
9073      shlibpath_overrides_runpath=no
9074      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9075      ;;
9076  esac
9077  ;;
9078
9079sysv4*MP*)
9080  if test -d /usr/nec ;then
9081    version_type=linux
9082    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9083    soname_spec='$libname${shared_ext}.$major'
9084    shlibpath_var=LD_LIBRARY_PATH
9085  fi
9086  ;;
9087
9088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9089  version_type=freebsd-elf
9090  need_lib_prefix=no
9091  need_version=no
9092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9093  soname_spec='${libname}${release}${shared_ext}$major'
9094  shlibpath_var=LD_LIBRARY_PATH
9095  hardcode_into_libs=yes
9096  if test "$with_gnu_ld" = yes; then
9097    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9098    shlibpath_overrides_runpath=no
9099  else
9100    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9101    shlibpath_overrides_runpath=yes
9102    case $host_os in
9103      sco3.2v5*)
9104        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9105	;;
9106    esac
9107  fi
9108  sys_lib_dlsearch_path_spec='/usr/lib'
9109  ;;
9110
9111uts4*)
9112  version_type=linux
9113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114  soname_spec='${libname}${release}${shared_ext}$major'
9115  shlibpath_var=LD_LIBRARY_PATH
9116  ;;
9117
9118*)
9119  dynamic_linker=no
9120  ;;
9121esac
9122{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9123echo "${ECHO_T}$dynamic_linker" >&6; }
9124test "$dynamic_linker" = no && can_build_shared=no
9125
9126variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9127if test "$GCC" = yes; then
9128  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9129fi
9130
9131{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9132echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9133hardcode_action=
9134if test -n "$hardcode_libdir_flag_spec" || \
9135   test -n "$runpath_var" || \
9136   test "X$hardcode_automatic" = "Xyes" ; then
9137
9138  # We can hardcode non-existant directories.
9139  if test "$hardcode_direct" != no &&
9140     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9141     # have to relink, otherwise we might link with an installed library
9142     # when we should be linking with a yet-to-be-installed one
9143     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9144     test "$hardcode_minus_L" != no; then
9145    # Linking always hardcodes the temporary library directory.
9146    hardcode_action=relink
9147  else
9148    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9149    hardcode_action=immediate
9150  fi
9151else
9152  # We cannot hardcode anything, or else we can only hardcode existing
9153  # directories.
9154  hardcode_action=unsupported
9155fi
9156{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9157echo "${ECHO_T}$hardcode_action" >&6; }
9158
9159if test "$hardcode_action" = relink; then
9160  # Fast installation is not supported
9161  enable_fast_install=no
9162elif test "$shlibpath_overrides_runpath" = yes ||
9163     test "$enable_shared" = no; then
9164  # Fast installation is not necessary
9165  enable_fast_install=needless
9166fi
9167
9168striplib=
9169old_striplib=
9170{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9171echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9172if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9173  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9174  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9175  { echo "$as_me:$LINENO: result: yes" >&5
9176echo "${ECHO_T}yes" >&6; }
9177else
9178# FIXME - insert some real tests, host_os isn't really good enough
9179  case $host_os in
9180   darwin*)
9181       if test -n "$STRIP" ; then
9182         striplib="$STRIP -x"
9183         { echo "$as_me:$LINENO: result: yes" >&5
9184echo "${ECHO_T}yes" >&6; }
9185       else
9186  { echo "$as_me:$LINENO: result: no" >&5
9187echo "${ECHO_T}no" >&6; }
9188fi
9189       ;;
9190   *)
9191  { echo "$as_me:$LINENO: result: no" >&5
9192echo "${ECHO_T}no" >&6; }
9193    ;;
9194  esac
9195fi
9196
9197if test "x$enable_dlopen" != xyes; then
9198  enable_dlopen=unknown
9199  enable_dlopen_self=unknown
9200  enable_dlopen_self_static=unknown
9201else
9202  lt_cv_dlopen=no
9203  lt_cv_dlopen_libs=
9204
9205  case $host_os in
9206  beos*)
9207    lt_cv_dlopen="load_add_on"
9208    lt_cv_dlopen_libs=
9209    lt_cv_dlopen_self=yes
9210    ;;
9211
9212  mingw* | pw32*)
9213    lt_cv_dlopen="LoadLibrary"
9214    lt_cv_dlopen_libs=
9215   ;;
9216
9217  cygwin*)
9218    lt_cv_dlopen="dlopen"
9219    lt_cv_dlopen_libs=
9220   ;;
9221
9222  darwin*)
9223  # if libdl is installed we need to link against it
9224    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9225echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9226if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9227  echo $ECHO_N "(cached) $ECHO_C" >&6
9228else
9229  ac_check_lib_save_LIBS=$LIBS
9230LIBS="-ldl  $LIBS"
9231cat >conftest.$ac_ext <<_ACEOF
9232/* confdefs.h.  */
9233_ACEOF
9234cat confdefs.h >>conftest.$ac_ext
9235cat >>conftest.$ac_ext <<_ACEOF
9236/* end confdefs.h.  */
9237
9238/* Override any GCC internal prototype to avoid an error.
9239   Use char because int might match the return type of a GCC
9240   builtin and then its argument prototype would still apply.  */
9241#ifdef __cplusplus
9242extern "C"
9243#endif
9244char dlopen ();
9245int
9246main ()
9247{
9248return dlopen ();
9249  ;
9250  return 0;
9251}
9252_ACEOF
9253rm -f conftest.$ac_objext conftest$ac_exeext
9254if { (ac_try="$ac_link"
9255case "(($ac_try" in
9256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257  *) ac_try_echo=$ac_try;;
9258esac
9259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260  (eval "$ac_link") 2>conftest.er1
9261  ac_status=$?
9262  grep -v '^ *+' conftest.er1 >conftest.err
9263  rm -f conftest.er1
9264  cat conftest.err >&5
9265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266  (exit $ac_status); } && {
9267	 test -z "$ac_c_werror_flag" ||
9268	 test ! -s conftest.err
9269       } && test -s conftest$ac_exeext &&
9270       $as_test_x conftest$ac_exeext; then
9271  ac_cv_lib_dl_dlopen=yes
9272else
9273  echo "$as_me: failed program was:" >&5
9274sed 's/^/| /' conftest.$ac_ext >&5
9275
9276	ac_cv_lib_dl_dlopen=no
9277fi
9278
9279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9280      conftest$ac_exeext conftest.$ac_ext
9281LIBS=$ac_check_lib_save_LIBS
9282fi
9283{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9284echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9285if test $ac_cv_lib_dl_dlopen = yes; then
9286  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9287else
9288
9289    lt_cv_dlopen="dyld"
9290    lt_cv_dlopen_libs=
9291    lt_cv_dlopen_self=yes
9292
9293fi
9294
9295   ;;
9296
9297  *)
9298    { echo "$as_me:$LINENO: checking for shl_load" >&5
9299echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9300if test "${ac_cv_func_shl_load+set}" = set; then
9301  echo $ECHO_N "(cached) $ECHO_C" >&6
9302else
9303  cat >conftest.$ac_ext <<_ACEOF
9304/* confdefs.h.  */
9305_ACEOF
9306cat confdefs.h >>conftest.$ac_ext
9307cat >>conftest.$ac_ext <<_ACEOF
9308/* end confdefs.h.  */
9309/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9310   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9311#define shl_load innocuous_shl_load
9312
9313/* System header to define __stub macros and hopefully few prototypes,
9314    which can conflict with char shl_load (); below.
9315    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9316    <limits.h> exists even on freestanding compilers.  */
9317
9318#ifdef __STDC__
9319# include <limits.h>
9320#else
9321# include <assert.h>
9322#endif
9323
9324#undef shl_load
9325
9326/* Override any GCC internal prototype to avoid an error.
9327   Use char because int might match the return type of a GCC
9328   builtin and then its argument prototype would still apply.  */
9329#ifdef __cplusplus
9330extern "C"
9331#endif
9332char shl_load ();
9333/* The GNU C library defines this for functions which it implements
9334    to always fail with ENOSYS.  Some functions are actually named
9335    something starting with __ and the normal name is an alias.  */
9336#if defined __stub_shl_load || defined __stub___shl_load
9337choke me
9338#endif
9339
9340int
9341main ()
9342{
9343return shl_load ();
9344  ;
9345  return 0;
9346}
9347_ACEOF
9348rm -f conftest.$ac_objext conftest$ac_exeext
9349if { (ac_try="$ac_link"
9350case "(($ac_try" in
9351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352  *) ac_try_echo=$ac_try;;
9353esac
9354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355  (eval "$ac_link") 2>conftest.er1
9356  ac_status=$?
9357  grep -v '^ *+' conftest.er1 >conftest.err
9358  rm -f conftest.er1
9359  cat conftest.err >&5
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); } && {
9362	 test -z "$ac_c_werror_flag" ||
9363	 test ! -s conftest.err
9364       } && test -s conftest$ac_exeext &&
9365       $as_test_x conftest$ac_exeext; then
9366  ac_cv_func_shl_load=yes
9367else
9368  echo "$as_me: failed program was:" >&5
9369sed 's/^/| /' conftest.$ac_ext >&5
9370
9371	ac_cv_func_shl_load=no
9372fi
9373
9374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9375      conftest$ac_exeext conftest.$ac_ext
9376fi
9377{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9378echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9379if test $ac_cv_func_shl_load = yes; then
9380  lt_cv_dlopen="shl_load"
9381else
9382  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9383echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9384if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9385  echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387  ac_check_lib_save_LIBS=$LIBS
9388LIBS="-ldld  $LIBS"
9389cat >conftest.$ac_ext <<_ACEOF
9390/* confdefs.h.  */
9391_ACEOF
9392cat confdefs.h >>conftest.$ac_ext
9393cat >>conftest.$ac_ext <<_ACEOF
9394/* end confdefs.h.  */
9395
9396/* Override any GCC internal prototype to avoid an error.
9397   Use char because int might match the return type of a GCC
9398   builtin and then its argument prototype would still apply.  */
9399#ifdef __cplusplus
9400extern "C"
9401#endif
9402char shl_load ();
9403int
9404main ()
9405{
9406return shl_load ();
9407  ;
9408  return 0;
9409}
9410_ACEOF
9411rm -f conftest.$ac_objext conftest$ac_exeext
9412if { (ac_try="$ac_link"
9413case "(($ac_try" in
9414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415  *) ac_try_echo=$ac_try;;
9416esac
9417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418  (eval "$ac_link") 2>conftest.er1
9419  ac_status=$?
9420  grep -v '^ *+' conftest.er1 >conftest.err
9421  rm -f conftest.er1
9422  cat conftest.err >&5
9423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424  (exit $ac_status); } && {
9425	 test -z "$ac_c_werror_flag" ||
9426	 test ! -s conftest.err
9427       } && test -s conftest$ac_exeext &&
9428       $as_test_x conftest$ac_exeext; then
9429  ac_cv_lib_dld_shl_load=yes
9430else
9431  echo "$as_me: failed program was:" >&5
9432sed 's/^/| /' conftest.$ac_ext >&5
9433
9434	ac_cv_lib_dld_shl_load=no
9435fi
9436
9437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9438      conftest$ac_exeext conftest.$ac_ext
9439LIBS=$ac_check_lib_save_LIBS
9440fi
9441{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9442echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9443if test $ac_cv_lib_dld_shl_load = yes; then
9444  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9445else
9446  { echo "$as_me:$LINENO: checking for dlopen" >&5
9447echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9448if test "${ac_cv_func_dlopen+set}" = set; then
9449  echo $ECHO_N "(cached) $ECHO_C" >&6
9450else
9451  cat >conftest.$ac_ext <<_ACEOF
9452/* confdefs.h.  */
9453_ACEOF
9454cat confdefs.h >>conftest.$ac_ext
9455cat >>conftest.$ac_ext <<_ACEOF
9456/* end confdefs.h.  */
9457/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9458   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9459#define dlopen innocuous_dlopen
9460
9461/* System header to define __stub macros and hopefully few prototypes,
9462    which can conflict with char dlopen (); below.
9463    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9464    <limits.h> exists even on freestanding compilers.  */
9465
9466#ifdef __STDC__
9467# include <limits.h>
9468#else
9469# include <assert.h>
9470#endif
9471
9472#undef dlopen
9473
9474/* Override any GCC internal prototype to avoid an error.
9475   Use char because int might match the return type of a GCC
9476   builtin and then its argument prototype would still apply.  */
9477#ifdef __cplusplus
9478extern "C"
9479#endif
9480char dlopen ();
9481/* The GNU C library defines this for functions which it implements
9482    to always fail with ENOSYS.  Some functions are actually named
9483    something starting with __ and the normal name is an alias.  */
9484#if defined __stub_dlopen || defined __stub___dlopen
9485choke me
9486#endif
9487
9488int
9489main ()
9490{
9491return dlopen ();
9492  ;
9493  return 0;
9494}
9495_ACEOF
9496rm -f conftest.$ac_objext conftest$ac_exeext
9497if { (ac_try="$ac_link"
9498case "(($ac_try" in
9499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500  *) ac_try_echo=$ac_try;;
9501esac
9502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503  (eval "$ac_link") 2>conftest.er1
9504  ac_status=$?
9505  grep -v '^ *+' conftest.er1 >conftest.err
9506  rm -f conftest.er1
9507  cat conftest.err >&5
9508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509  (exit $ac_status); } && {
9510	 test -z "$ac_c_werror_flag" ||
9511	 test ! -s conftest.err
9512       } && test -s conftest$ac_exeext &&
9513       $as_test_x conftest$ac_exeext; then
9514  ac_cv_func_dlopen=yes
9515else
9516  echo "$as_me: failed program was:" >&5
9517sed 's/^/| /' conftest.$ac_ext >&5
9518
9519	ac_cv_func_dlopen=no
9520fi
9521
9522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9523      conftest$ac_exeext conftest.$ac_ext
9524fi
9525{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9526echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9527if test $ac_cv_func_dlopen = yes; then
9528  lt_cv_dlopen="dlopen"
9529else
9530  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9531echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9532if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9533  echo $ECHO_N "(cached) $ECHO_C" >&6
9534else
9535  ac_check_lib_save_LIBS=$LIBS
9536LIBS="-ldl  $LIBS"
9537cat >conftest.$ac_ext <<_ACEOF
9538/* confdefs.h.  */
9539_ACEOF
9540cat confdefs.h >>conftest.$ac_ext
9541cat >>conftest.$ac_ext <<_ACEOF
9542/* end confdefs.h.  */
9543
9544/* Override any GCC internal prototype to avoid an error.
9545   Use char because int might match the return type of a GCC
9546   builtin and then its argument prototype would still apply.  */
9547#ifdef __cplusplus
9548extern "C"
9549#endif
9550char dlopen ();
9551int
9552main ()
9553{
9554return dlopen ();
9555  ;
9556  return 0;
9557}
9558_ACEOF
9559rm -f conftest.$ac_objext conftest$ac_exeext
9560if { (ac_try="$ac_link"
9561case "(($ac_try" in
9562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563  *) ac_try_echo=$ac_try;;
9564esac
9565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566  (eval "$ac_link") 2>conftest.er1
9567  ac_status=$?
9568  grep -v '^ *+' conftest.er1 >conftest.err
9569  rm -f conftest.er1
9570  cat conftest.err >&5
9571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572  (exit $ac_status); } && {
9573	 test -z "$ac_c_werror_flag" ||
9574	 test ! -s conftest.err
9575       } && test -s conftest$ac_exeext &&
9576       $as_test_x conftest$ac_exeext; then
9577  ac_cv_lib_dl_dlopen=yes
9578else
9579  echo "$as_me: failed program was:" >&5
9580sed 's/^/| /' conftest.$ac_ext >&5
9581
9582	ac_cv_lib_dl_dlopen=no
9583fi
9584
9585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9586      conftest$ac_exeext conftest.$ac_ext
9587LIBS=$ac_check_lib_save_LIBS
9588fi
9589{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9590echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9591if test $ac_cv_lib_dl_dlopen = yes; then
9592  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9593else
9594  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9595echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9596if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9597  echo $ECHO_N "(cached) $ECHO_C" >&6
9598else
9599  ac_check_lib_save_LIBS=$LIBS
9600LIBS="-lsvld  $LIBS"
9601cat >conftest.$ac_ext <<_ACEOF
9602/* confdefs.h.  */
9603_ACEOF
9604cat confdefs.h >>conftest.$ac_ext
9605cat >>conftest.$ac_ext <<_ACEOF
9606/* end confdefs.h.  */
9607
9608/* Override any GCC internal prototype to avoid an error.
9609   Use char because int might match the return type of a GCC
9610   builtin and then its argument prototype would still apply.  */
9611#ifdef __cplusplus
9612extern "C"
9613#endif
9614char dlopen ();
9615int
9616main ()
9617{
9618return dlopen ();
9619  ;
9620  return 0;
9621}
9622_ACEOF
9623rm -f conftest.$ac_objext conftest$ac_exeext
9624if { (ac_try="$ac_link"
9625case "(($ac_try" in
9626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627  *) ac_try_echo=$ac_try;;
9628esac
9629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630  (eval "$ac_link") 2>conftest.er1
9631  ac_status=$?
9632  grep -v '^ *+' conftest.er1 >conftest.err
9633  rm -f conftest.er1
9634  cat conftest.err >&5
9635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636  (exit $ac_status); } && {
9637	 test -z "$ac_c_werror_flag" ||
9638	 test ! -s conftest.err
9639       } && test -s conftest$ac_exeext &&
9640       $as_test_x conftest$ac_exeext; then
9641  ac_cv_lib_svld_dlopen=yes
9642else
9643  echo "$as_me: failed program was:" >&5
9644sed 's/^/| /' conftest.$ac_ext >&5
9645
9646	ac_cv_lib_svld_dlopen=no
9647fi
9648
9649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9650      conftest$ac_exeext conftest.$ac_ext
9651LIBS=$ac_check_lib_save_LIBS
9652fi
9653{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9654echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9655if test $ac_cv_lib_svld_dlopen = yes; then
9656  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9657else
9658  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9659echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9660if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9661  echo $ECHO_N "(cached) $ECHO_C" >&6
9662else
9663  ac_check_lib_save_LIBS=$LIBS
9664LIBS="-ldld  $LIBS"
9665cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h.  */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h.  */
9671
9672/* Override any GCC internal prototype to avoid an error.
9673   Use char because int might match the return type of a GCC
9674   builtin and then its argument prototype would still apply.  */
9675#ifdef __cplusplus
9676extern "C"
9677#endif
9678char dld_link ();
9679int
9680main ()
9681{
9682return dld_link ();
9683  ;
9684  return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext conftest$ac_exeext
9688if { (ac_try="$ac_link"
9689case "(($ac_try" in
9690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691  *) ac_try_echo=$ac_try;;
9692esac
9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694  (eval "$ac_link") 2>conftest.er1
9695  ac_status=$?
9696  grep -v '^ *+' conftest.er1 >conftest.err
9697  rm -f conftest.er1
9698  cat conftest.err >&5
9699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700  (exit $ac_status); } && {
9701	 test -z "$ac_c_werror_flag" ||
9702	 test ! -s conftest.err
9703       } && test -s conftest$ac_exeext &&
9704       $as_test_x conftest$ac_exeext; then
9705  ac_cv_lib_dld_dld_link=yes
9706else
9707  echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
9710	ac_cv_lib_dld_dld_link=no
9711fi
9712
9713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714      conftest$ac_exeext conftest.$ac_ext
9715LIBS=$ac_check_lib_save_LIBS
9716fi
9717{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9718echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9719if test $ac_cv_lib_dld_dld_link = yes; then
9720  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9721fi
9722
9723
9724fi
9725
9726
9727fi
9728
9729
9730fi
9731
9732
9733fi
9734
9735
9736fi
9737
9738    ;;
9739  esac
9740
9741  if test "x$lt_cv_dlopen" != xno; then
9742    enable_dlopen=yes
9743  else
9744    enable_dlopen=no
9745  fi
9746
9747  case $lt_cv_dlopen in
9748  dlopen)
9749    save_CPPFLAGS="$CPPFLAGS"
9750    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9751
9752    save_LDFLAGS="$LDFLAGS"
9753    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9754
9755    save_LIBS="$LIBS"
9756    LIBS="$lt_cv_dlopen_libs $LIBS"
9757
9758    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9759echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9760if test "${lt_cv_dlopen_self+set}" = set; then
9761  echo $ECHO_N "(cached) $ECHO_C" >&6
9762else
9763  	  if test "$cross_compiling" = yes; then :
9764  lt_cv_dlopen_self=cross
9765else
9766  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9767  lt_status=$lt_dlunknown
9768  cat > conftest.$ac_ext <<EOF
9769#line 9769 "configure"
9770#include "confdefs.h"
9771
9772#if HAVE_DLFCN_H
9773#include <dlfcn.h>
9774#endif
9775
9776#include <stdio.h>
9777
9778#ifdef RTLD_GLOBAL
9779#  define LT_DLGLOBAL		RTLD_GLOBAL
9780#else
9781#  ifdef DL_GLOBAL
9782#    define LT_DLGLOBAL		DL_GLOBAL
9783#  else
9784#    define LT_DLGLOBAL		0
9785#  endif
9786#endif
9787
9788/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9789   find out it does not work in some platform. */
9790#ifndef LT_DLLAZY_OR_NOW
9791#  ifdef RTLD_LAZY
9792#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9793#  else
9794#    ifdef DL_LAZY
9795#      define LT_DLLAZY_OR_NOW		DL_LAZY
9796#    else
9797#      ifdef RTLD_NOW
9798#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9799#      else
9800#        ifdef DL_NOW
9801#          define LT_DLLAZY_OR_NOW	DL_NOW
9802#        else
9803#          define LT_DLLAZY_OR_NOW	0
9804#        endif
9805#      endif
9806#    endif
9807#  endif
9808#endif
9809
9810#ifdef __cplusplus
9811extern "C" void exit (int);
9812#endif
9813
9814void fnord() { int i=42;}
9815int main ()
9816{
9817  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9818  int status = $lt_dlunknown;
9819
9820  if (self)
9821    {
9822      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9823      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9824      /* dlclose (self); */
9825    }
9826  else
9827    puts (dlerror ());
9828
9829    exit (status);
9830}
9831EOF
9832  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833  (eval $ac_link) 2>&5
9834  ac_status=$?
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9837    (./conftest; exit; ) >&5 2>/dev/null
9838    lt_status=$?
9839    case x$lt_status in
9840      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9841      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9842      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9843    esac
9844  else :
9845    # compilation failed
9846    lt_cv_dlopen_self=no
9847  fi
9848fi
9849rm -fr conftest*
9850
9851
9852fi
9853{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9854echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9855
9856    if test "x$lt_cv_dlopen_self" = xyes; then
9857      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9858      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9859echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9860if test "${lt_cv_dlopen_self_static+set}" = set; then
9861  echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863  	  if test "$cross_compiling" = yes; then :
9864  lt_cv_dlopen_self_static=cross
9865else
9866  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9867  lt_status=$lt_dlunknown
9868  cat > conftest.$ac_ext <<EOF
9869#line 9869 "configure"
9870#include "confdefs.h"
9871
9872#if HAVE_DLFCN_H
9873#include <dlfcn.h>
9874#endif
9875
9876#include <stdio.h>
9877
9878#ifdef RTLD_GLOBAL
9879#  define LT_DLGLOBAL		RTLD_GLOBAL
9880#else
9881#  ifdef DL_GLOBAL
9882#    define LT_DLGLOBAL		DL_GLOBAL
9883#  else
9884#    define LT_DLGLOBAL		0
9885#  endif
9886#endif
9887
9888/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9889   find out it does not work in some platform. */
9890#ifndef LT_DLLAZY_OR_NOW
9891#  ifdef RTLD_LAZY
9892#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9893#  else
9894#    ifdef DL_LAZY
9895#      define LT_DLLAZY_OR_NOW		DL_LAZY
9896#    else
9897#      ifdef RTLD_NOW
9898#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9899#      else
9900#        ifdef DL_NOW
9901#          define LT_DLLAZY_OR_NOW	DL_NOW
9902#        else
9903#          define LT_DLLAZY_OR_NOW	0
9904#        endif
9905#      endif
9906#    endif
9907#  endif
9908#endif
9909
9910#ifdef __cplusplus
9911extern "C" void exit (int);
9912#endif
9913
9914void fnord() { int i=42;}
9915int main ()
9916{
9917  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9918  int status = $lt_dlunknown;
9919
9920  if (self)
9921    {
9922      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9923      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9924      /* dlclose (self); */
9925    }
9926  else
9927    puts (dlerror ());
9928
9929    exit (status);
9930}
9931EOF
9932  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933  (eval $ac_link) 2>&5
9934  ac_status=$?
9935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9937    (./conftest; exit; ) >&5 2>/dev/null
9938    lt_status=$?
9939    case x$lt_status in
9940      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9941      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9942      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9943    esac
9944  else :
9945    # compilation failed
9946    lt_cv_dlopen_self_static=no
9947  fi
9948fi
9949rm -fr conftest*
9950
9951
9952fi
9953{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9954echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9955    fi
9956
9957    CPPFLAGS="$save_CPPFLAGS"
9958    LDFLAGS="$save_LDFLAGS"
9959    LIBS="$save_LIBS"
9960    ;;
9961  esac
9962
9963  case $lt_cv_dlopen_self in
9964  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9965  *) enable_dlopen_self=unknown ;;
9966  esac
9967
9968  case $lt_cv_dlopen_self_static in
9969  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9970  *) enable_dlopen_self_static=unknown ;;
9971  esac
9972fi
9973
9974
9975# Report which library types will actually be built
9976{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9977echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9978{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9979echo "${ECHO_T}$can_build_shared" >&6; }
9980
9981{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9982echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9983test "$can_build_shared" = "no" && enable_shared=no
9984
9985# On AIX, shared libraries and static libraries use the same namespace, and
9986# are all built from PIC.
9987case $host_os in
9988aix3*)
9989  test "$enable_shared" = yes && enable_static=no
9990  if test -n "$RANLIB"; then
9991    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9992    postinstall_cmds='$RANLIB $lib'
9993  fi
9994  ;;
9995
9996aix4* | aix5*)
9997  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9998    test "$enable_shared" = yes && enable_static=no
9999  fi
10000    ;;
10001esac
10002{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10003echo "${ECHO_T}$enable_shared" >&6; }
10004
10005{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10006echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10007# Make sure either enable_shared or enable_static is yes.
10008test "$enable_shared" = yes || enable_static=yes
10009{ echo "$as_me:$LINENO: result: $enable_static" >&5
10010echo "${ECHO_T}$enable_static" >&6; }
10011
10012# The else clause should only fire when bootstrapping the
10013# libtool distribution, otherwise you forgot to ship ltmain.sh
10014# with your package, and you will get complaints that there are
10015# no rules to generate ltmain.sh.
10016if test -f "$ltmain"; then
10017  # See if we are running on zsh, and set the options which allow our commands through
10018  # without removal of \ escapes.
10019  if test -n "${ZSH_VERSION+set}" ; then
10020    setopt NO_GLOB_SUBST
10021  fi
10022  # Now quote all the things that may contain metacharacters while being
10023  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10024  # variables and quote the copies for generation of the libtool script.
10025  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10026    SED SHELL STRIP \
10027    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10028    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10029    deplibs_check_method reload_flag reload_cmds need_locks \
10030    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10031    lt_cv_sys_global_symbol_to_c_name_address \
10032    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10033    old_postinstall_cmds old_postuninstall_cmds \
10034    compiler \
10035    CC \
10036    LD \
10037    lt_prog_compiler_wl \
10038    lt_prog_compiler_pic \
10039    lt_prog_compiler_static \
10040    lt_prog_compiler_no_builtin_flag \
10041    export_dynamic_flag_spec \
10042    thread_safe_flag_spec \
10043    whole_archive_flag_spec \
10044    enable_shared_with_static_runtimes \
10045    old_archive_cmds \
10046    old_archive_from_new_cmds \
10047    predep_objects \
10048    postdep_objects \
10049    predeps \
10050    postdeps \
10051    compiler_lib_search_path \
10052    archive_cmds \
10053    archive_expsym_cmds \
10054    postinstall_cmds \
10055    postuninstall_cmds \
10056    old_archive_from_expsyms_cmds \
10057    allow_undefined_flag \
10058    no_undefined_flag \
10059    export_symbols_cmds \
10060    hardcode_libdir_flag_spec \
10061    hardcode_libdir_flag_spec_ld \
10062    hardcode_libdir_separator \
10063    hardcode_automatic \
10064    module_cmds \
10065    module_expsym_cmds \
10066    lt_cv_prog_compiler_c_o \
10067    exclude_expsyms \
10068    include_expsyms; do
10069
10070    case $var in
10071    old_archive_cmds | \
10072    old_archive_from_new_cmds | \
10073    archive_cmds | \
10074    archive_expsym_cmds | \
10075    module_cmds | \
10076    module_expsym_cmds | \
10077    old_archive_from_expsyms_cmds | \
10078    export_symbols_cmds | \
10079    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10080    postinstall_cmds | postuninstall_cmds | \
10081    old_postinstall_cmds | old_postuninstall_cmds | \
10082    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10083      # Double-quote double-evaled strings.
10084      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10085      ;;
10086    *)
10087      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10088      ;;
10089    esac
10090  done
10091
10092  case $lt_echo in
10093  *'\$0 --fallback-echo"')
10094    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10095    ;;
10096  esac
10097
10098cfgfile="${ofile}T"
10099  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10100  $rm -f "$cfgfile"
10101  { echo "$as_me:$LINENO: creating $ofile" >&5
10102echo "$as_me: creating $ofile" >&6;}
10103
10104  cat <<__EOF__ >> "$cfgfile"
10105#! $SHELL
10106
10107# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10108# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10109# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10110#
10111# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10112# Free Software Foundation, Inc.
10113#
10114# This file is part of GNU Libtool:
10115# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10116#
10117# This program is free software; you can redistribute it and/or modify
10118# it under the terms of the GNU General Public License as published by
10119# the Free Software Foundation; either version 2 of the License, or
10120# (at your option) any later version.
10121#
10122# This program is distributed in the hope that it will be useful, but
10123# WITHOUT ANY WARRANTY; without even the implied warranty of
10124# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10125# General Public License for more details.
10126#
10127# You should have received a copy of the GNU General Public License
10128# along with this program; if not, write to the Free Software
10129# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10130#
10131# As a special exception to the GNU General Public License, if you
10132# distribute this file as part of a program that contains a
10133# configuration script generated by Autoconf, you may include it under
10134# the same distribution terms that you use for the rest of that program.
10135
10136# A sed program that does not truncate output.
10137SED=$lt_SED
10138
10139# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10140Xsed="$SED -e 1s/^X//"
10141
10142# The HP-UX ksh and POSIX shell print the target directory to stdout
10143# if CDPATH is set.
10144(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10145
10146# The names of the tagged configurations supported by this script.
10147available_tags=
10148
10149# ### BEGIN LIBTOOL CONFIG
10150
10151# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10152
10153# Shell to use when invoking shell scripts.
10154SHELL=$lt_SHELL
10155
10156# Whether or not to build shared libraries.
10157build_libtool_libs=$enable_shared
10158
10159# Whether or not to build static libraries.
10160build_old_libs=$enable_static
10161
10162# Whether or not to add -lc for building shared libraries.
10163build_libtool_need_lc=$archive_cmds_need_lc
10164
10165# Whether or not to disallow shared libs when runtime libs are static
10166allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10167
10168# Whether or not to optimize for fast installation.
10169fast_install=$enable_fast_install
10170
10171# The host system.
10172host_alias=$host_alias
10173host=$host
10174host_os=$host_os
10175
10176# The build system.
10177build_alias=$build_alias
10178build=$build
10179build_os=$build_os
10180
10181# An echo program that does not interpret backslashes.
10182echo=$lt_echo
10183
10184# The archiver.
10185AR=$lt_AR
10186AR_FLAGS=$lt_AR_FLAGS
10187
10188# A C compiler.
10189LTCC=$lt_LTCC
10190
10191# LTCC compiler flags.
10192LTCFLAGS=$lt_LTCFLAGS
10193
10194# A language-specific compiler.
10195CC=$lt_compiler
10196
10197# Is the compiler the GNU C compiler?
10198with_gcc=$GCC
10199
10200# An ERE matcher.
10201EGREP=$lt_EGREP
10202
10203# The linker used to build libraries.
10204LD=$lt_LD
10205
10206# Whether we need hard or soft links.
10207LN_S=$lt_LN_S
10208
10209# A BSD-compatible nm program.
10210NM=$lt_NM
10211
10212# A symbol stripping program
10213STRIP=$lt_STRIP
10214
10215# Used to examine libraries when file_magic_cmd begins "file"
10216MAGIC_CMD=$MAGIC_CMD
10217
10218# Used on cygwin: DLL creation program.
10219DLLTOOL="$DLLTOOL"
10220
10221# Used on cygwin: object dumper.
10222OBJDUMP="$OBJDUMP"
10223
10224# Used on cygwin: assembler.
10225AS="$AS"
10226
10227# The name of the directory that contains temporary libtool files.
10228objdir=$objdir
10229
10230# How to create reloadable object files.
10231reload_flag=$lt_reload_flag
10232reload_cmds=$lt_reload_cmds
10233
10234# How to pass a linker flag through the compiler.
10235wl=$lt_lt_prog_compiler_wl
10236
10237# Object file suffix (normally "o").
10238objext="$ac_objext"
10239
10240# Old archive suffix (normally "a").
10241libext="$libext"
10242
10243# Shared library suffix (normally ".so").
10244shrext_cmds='$shrext_cmds'
10245
10246# Executable file suffix (normally "").
10247exeext="$exeext"
10248
10249# Additional compiler flags for building library objects.
10250pic_flag=$lt_lt_prog_compiler_pic
10251pic_mode=$pic_mode
10252
10253# What is the maximum length of a command?
10254max_cmd_len=$lt_cv_sys_max_cmd_len
10255
10256# Does compiler simultaneously support -c and -o options?
10257compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10258
10259# Must we lock files when doing compilation?
10260need_locks=$lt_need_locks
10261
10262# Do we need the lib prefix for modules?
10263need_lib_prefix=$need_lib_prefix
10264
10265# Do we need a version for libraries?
10266need_version=$need_version
10267
10268# Whether dlopen is supported.
10269dlopen_support=$enable_dlopen
10270
10271# Whether dlopen of programs is supported.
10272dlopen_self=$enable_dlopen_self
10273
10274# Whether dlopen of statically linked programs is supported.
10275dlopen_self_static=$enable_dlopen_self_static
10276
10277# Compiler flag to prevent dynamic linking.
10278link_static_flag=$lt_lt_prog_compiler_static
10279
10280# Compiler flag to turn off builtin functions.
10281no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10282
10283# Compiler flag to allow reflexive dlopens.
10284export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10285
10286# Compiler flag to generate shared objects directly from archives.
10287whole_archive_flag_spec=$lt_whole_archive_flag_spec
10288
10289# Compiler flag to generate thread-safe objects.
10290thread_safe_flag_spec=$lt_thread_safe_flag_spec
10291
10292# Library versioning type.
10293version_type=$version_type
10294
10295# Format of library name prefix.
10296libname_spec=$lt_libname_spec
10297
10298# List of archive names.  First name is the real one, the rest are links.
10299# The last name is the one that the linker finds with -lNAME.
10300library_names_spec=$lt_library_names_spec
10301
10302# The coded name of the library, if different from the real name.
10303soname_spec=$lt_soname_spec
10304
10305# Commands used to build and install an old-style archive.
10306RANLIB=$lt_RANLIB
10307old_archive_cmds=$lt_old_archive_cmds
10308old_postinstall_cmds=$lt_old_postinstall_cmds
10309old_postuninstall_cmds=$lt_old_postuninstall_cmds
10310
10311# Create an old-style archive from a shared archive.
10312old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10313
10314# Create a temporary old-style archive to link instead of a shared archive.
10315old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10316
10317# Commands used to build and install a shared archive.
10318archive_cmds=$lt_archive_cmds
10319archive_expsym_cmds=$lt_archive_expsym_cmds
10320postinstall_cmds=$lt_postinstall_cmds
10321postuninstall_cmds=$lt_postuninstall_cmds
10322
10323# Commands used to build a loadable module (assumed same as above if empty)
10324module_cmds=$lt_module_cmds
10325module_expsym_cmds=$lt_module_expsym_cmds
10326
10327# Commands to strip libraries.
10328old_striplib=$lt_old_striplib
10329striplib=$lt_striplib
10330
10331# Dependencies to place before the objects being linked to create a
10332# shared library.
10333predep_objects=$lt_predep_objects
10334
10335# Dependencies to place after the objects being linked to create a
10336# shared library.
10337postdep_objects=$lt_postdep_objects
10338
10339# Dependencies to place before the objects being linked to create a
10340# shared library.
10341predeps=$lt_predeps
10342
10343# Dependencies to place after the objects being linked to create a
10344# shared library.
10345postdeps=$lt_postdeps
10346
10347# The library search path used internally by the compiler when linking
10348# a shared library.
10349compiler_lib_search_path=$lt_compiler_lib_search_path
10350
10351# Method to check whether dependent libraries are shared objects.
10352deplibs_check_method=$lt_deplibs_check_method
10353
10354# Command to use when deplibs_check_method == file_magic.
10355file_magic_cmd=$lt_file_magic_cmd
10356
10357# Flag that allows shared libraries with undefined symbols to be built.
10358allow_undefined_flag=$lt_allow_undefined_flag
10359
10360# Flag that forces no undefined symbols.
10361no_undefined_flag=$lt_no_undefined_flag
10362
10363# Commands used to finish a libtool library installation in a directory.
10364finish_cmds=$lt_finish_cmds
10365
10366# Same as above, but a single script fragment to be evaled but not shown.
10367finish_eval=$lt_finish_eval
10368
10369# Take the output of nm and produce a listing of raw symbols and C names.
10370global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10371
10372# Transform the output of nm in a proper C declaration
10373global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10374
10375# Transform the output of nm in a C name address pair
10376global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10377
10378# This is the shared library runtime path variable.
10379runpath_var=$runpath_var
10380
10381# This is the shared library path variable.
10382shlibpath_var=$shlibpath_var
10383
10384# Is shlibpath searched before the hard-coded library search path?
10385shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10386
10387# How to hardcode a shared library path into an executable.
10388hardcode_action=$hardcode_action
10389
10390# Whether we should hardcode library paths into libraries.
10391hardcode_into_libs=$hardcode_into_libs
10392
10393# Flag to hardcode \$libdir into a binary during linking.
10394# This must work even if \$libdir does not exist.
10395hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10396
10397# If ld is used when linking, flag to hardcode \$libdir into
10398# a binary during linking. This must work even if \$libdir does
10399# not exist.
10400hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10401
10402# Whether we need a single -rpath flag with a separated argument.
10403hardcode_libdir_separator=$lt_hardcode_libdir_separator
10404
10405# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10406# resulting binary.
10407hardcode_direct=$hardcode_direct
10408
10409# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10410# resulting binary.
10411hardcode_minus_L=$hardcode_minus_L
10412
10413# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10414# the resulting binary.
10415hardcode_shlibpath_var=$hardcode_shlibpath_var
10416
10417# Set to yes if building a shared library automatically hardcodes DIR into the library
10418# and all subsequent libraries and executables linked against it.
10419hardcode_automatic=$hardcode_automatic
10420
10421# Variables whose values should be saved in libtool wrapper scripts and
10422# restored at relink time.
10423variables_saved_for_relink="$variables_saved_for_relink"
10424
10425# Whether libtool must link a program against all its dependency libraries.
10426link_all_deplibs=$link_all_deplibs
10427
10428# Compile-time system search path for libraries
10429sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10430
10431# Run-time system search path for libraries
10432sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10433
10434# Fix the shell variable \$srcfile for the compiler.
10435fix_srcfile_path="$fix_srcfile_path"
10436
10437# Set to yes if exported symbols are required.
10438always_export_symbols=$always_export_symbols
10439
10440# The commands to list exported symbols.
10441export_symbols_cmds=$lt_export_symbols_cmds
10442
10443# The commands to extract the exported symbol list from a shared archive.
10444extract_expsyms_cmds=$lt_extract_expsyms_cmds
10445
10446# Symbols that should not be listed in the preloaded symbols.
10447exclude_expsyms=$lt_exclude_expsyms
10448
10449# Symbols that must always be exported.
10450include_expsyms=$lt_include_expsyms
10451
10452# ### END LIBTOOL CONFIG
10453
10454__EOF__
10455
10456
10457  case $host_os in
10458  aix3*)
10459    cat <<\EOF >> "$cfgfile"
10460
10461# AIX sometimes has problems with the GCC collect2 program.  For some
10462# reason, if we set the COLLECT_NAMES environment variable, the problems
10463# vanish in a puff of smoke.
10464if test "X${COLLECT_NAMES+set}" != Xset; then
10465  COLLECT_NAMES=
10466  export COLLECT_NAMES
10467fi
10468EOF
10469    ;;
10470  esac
10471
10472  # We use sed instead of cat because bash on DJGPP gets confused if
10473  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10474  # text mode, it properly converts lines to CR/LF.  This bash problem
10475  # is reportedly fixed, but why not run on old versions too?
10476  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10477
10478  mv -f "$cfgfile" "$ofile" || \
10479    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10480  chmod +x "$ofile"
10481
10482else
10483  # If there is no Makefile yet, we rely on a make rule to execute
10484  # `config.status --recheck' to rerun these tests and create the
10485  # libtool script then.
10486  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10487  if test -f "$ltmain_in"; then
10488    test -f Makefile && make "$ltmain"
10489  fi
10490fi
10491
10492
10493ac_ext=c
10494ac_cpp='$CPP $CPPFLAGS'
10495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10497ac_compiler_gnu=$ac_cv_c_compiler_gnu
10498
10499CC="$lt_save_CC"
10500
10501
10502# Check whether --with-tags was given.
10503if test "${with_tags+set}" = set; then
10504  withval=$with_tags; tagnames="$withval"
10505fi
10506
10507
10508if test -f "$ltmain" && test -n "$tagnames"; then
10509  if test ! -f "${ofile}"; then
10510    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10511echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10512  fi
10513
10514  if test -z "$LTCC"; then
10515    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10516    if test -z "$LTCC"; then
10517      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10518echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10519    else
10520      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10521echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10522    fi
10523  fi
10524  if test -z "$LTCFLAGS"; then
10525    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10526  fi
10527
10528  # Extract list of available tagged configurations in $ofile.
10529  # Note that this assumes the entire list is on one line.
10530  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10531
10532  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10533  for tagname in $tagnames; do
10534    IFS="$lt_save_ifs"
10535    # Check whether tagname contains only valid characters
10536    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10537    "") ;;
10538    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10539echo "$as_me: error: invalid tag name: $tagname" >&2;}
10540   { (exit 1); exit 1; }; }
10541	;;
10542    esac
10543
10544    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10545    then
10546      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10547echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10548   { (exit 1); exit 1; }; }
10549    fi
10550
10551    # Update the list of available tags.
10552    if test -n "$tagname"; then
10553      echo appending configuration tag \"$tagname\" to $ofile
10554
10555      case $tagname in
10556      CXX)
10557	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10558	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10559	    (test "X$CXX" != "Xg++"))) ; then
10560	  ac_ext=cpp
10561ac_cpp='$CXXCPP $CPPFLAGS'
10562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10565
10566
10567
10568
10569archive_cmds_need_lc_CXX=no
10570allow_undefined_flag_CXX=
10571always_export_symbols_CXX=no
10572archive_expsym_cmds_CXX=
10573export_dynamic_flag_spec_CXX=
10574hardcode_direct_CXX=no
10575hardcode_libdir_flag_spec_CXX=
10576hardcode_libdir_flag_spec_ld_CXX=
10577hardcode_libdir_separator_CXX=
10578hardcode_minus_L_CXX=no
10579hardcode_shlibpath_var_CXX=unsupported
10580hardcode_automatic_CXX=no
10581module_cmds_CXX=
10582module_expsym_cmds_CXX=
10583link_all_deplibs_CXX=unknown
10584old_archive_cmds_CXX=$old_archive_cmds
10585no_undefined_flag_CXX=
10586whole_archive_flag_spec_CXX=
10587enable_shared_with_static_runtimes_CXX=no
10588
10589# Dependencies to place before and after the object being linked:
10590predep_objects_CXX=
10591postdep_objects_CXX=
10592predeps_CXX=
10593postdeps_CXX=
10594compiler_lib_search_path_CXX=
10595
10596# Source file extension for C++ test sources.
10597ac_ext=cpp
10598
10599# Object file extension for compiled C++ test sources.
10600objext=o
10601objext_CXX=$objext
10602
10603# Code to be used in simple compile tests
10604lt_simple_compile_test_code="int some_variable = 0;\n"
10605
10606# Code to be used in simple link tests
10607lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10608
10609# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10610
10611# If no C compiler was specified, use CC.
10612LTCC=${LTCC-"$CC"}
10613
10614# If no C compiler flags were specified, use CFLAGS.
10615LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10616
10617# Allow CC to be a program name with arguments.
10618compiler=$CC
10619
10620
10621# save warnings/boilerplate of simple test code
10622ac_outfile=conftest.$ac_objext
10623printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10625_lt_compiler_boilerplate=`cat conftest.err`
10626$rm conftest*
10627
10628ac_outfile=conftest.$ac_objext
10629printf "$lt_simple_link_test_code" >conftest.$ac_ext
10630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10631_lt_linker_boilerplate=`cat conftest.err`
10632$rm conftest*
10633
10634
10635# Allow CC to be a program name with arguments.
10636lt_save_CC=$CC
10637lt_save_LD=$LD
10638lt_save_GCC=$GCC
10639GCC=$GXX
10640lt_save_with_gnu_ld=$with_gnu_ld
10641lt_save_path_LD=$lt_cv_path_LD
10642if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10643  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10644else
10645  $as_unset lt_cv_prog_gnu_ld
10646fi
10647if test -n "${lt_cv_path_LDCXX+set}"; then
10648  lt_cv_path_LD=$lt_cv_path_LDCXX
10649else
10650  $as_unset lt_cv_path_LD
10651fi
10652test -z "${LDCXX+set}" || LD=$LDCXX
10653CC=${CXX-"c++"}
10654compiler=$CC
10655compiler_CXX=$CC
10656for cc_temp in $compiler""; do
10657  case $cc_temp in
10658    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10659    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10660    \-*) ;;
10661    *) break;;
10662  esac
10663done
10664cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10665
10666
10667# We don't want -fno-exception wen compiling C++ code, so set the
10668# no_builtin_flag separately
10669if test "$GXX" = yes; then
10670  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10671else
10672  lt_prog_compiler_no_builtin_flag_CXX=
10673fi
10674
10675if test "$GXX" = yes; then
10676  # Set up default GNU C++ configuration
10677
10678
10679# Check whether --with-gnu-ld was given.
10680if test "${with_gnu_ld+set}" = set; then
10681  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10682else
10683  with_gnu_ld=no
10684fi
10685
10686ac_prog=ld
10687if test "$GCC" = yes; then
10688  # Check if gcc -print-prog-name=ld gives a path.
10689  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10690echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10691  case $host in
10692  *-*-mingw*)
10693    # gcc leaves a trailing carriage return which upsets mingw
10694    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10695  *)
10696    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10697  esac
10698  case $ac_prog in
10699    # Accept absolute paths.
10700    [\\/]* | ?:[\\/]*)
10701      re_direlt='/[^/][^/]*/\.\./'
10702      # Canonicalize the pathname of ld
10703      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10704      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10705	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10706      done
10707      test -z "$LD" && LD="$ac_prog"
10708      ;;
10709  "")
10710    # If it fails, then pretend we aren't using GCC.
10711    ac_prog=ld
10712    ;;
10713  *)
10714    # If it is relative, then search for the first ld in PATH.
10715    with_gnu_ld=unknown
10716    ;;
10717  esac
10718elif test "$with_gnu_ld" = yes; then
10719  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10720echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10721else
10722  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10723echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10724fi
10725if test "${lt_cv_path_LD+set}" = set; then
10726  echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728  if test -z "$LD"; then
10729  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10730  for ac_dir in $PATH; do
10731    IFS="$lt_save_ifs"
10732    test -z "$ac_dir" && ac_dir=.
10733    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10734      lt_cv_path_LD="$ac_dir/$ac_prog"
10735      # Check to see if the program is GNU ld.  I'd rather use --version,
10736      # but apparently some variants of GNU ld only accept -v.
10737      # Break only if it was the GNU/non-GNU ld that we prefer.
10738      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10739      *GNU* | *'with BFD'*)
10740	test "$with_gnu_ld" != no && break
10741	;;
10742      *)
10743	test "$with_gnu_ld" != yes && break
10744	;;
10745      esac
10746    fi
10747  done
10748  IFS="$lt_save_ifs"
10749else
10750  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10751fi
10752fi
10753
10754LD="$lt_cv_path_LD"
10755if test -n "$LD"; then
10756  { echo "$as_me:$LINENO: result: $LD" >&5
10757echo "${ECHO_T}$LD" >&6; }
10758else
10759  { echo "$as_me:$LINENO: result: no" >&5
10760echo "${ECHO_T}no" >&6; }
10761fi
10762test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10763echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10764   { (exit 1); exit 1; }; }
10765{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10766echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10767if test "${lt_cv_prog_gnu_ld+set}" = set; then
10768  echo $ECHO_N "(cached) $ECHO_C" >&6
10769else
10770  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10771case `$LD -v 2>&1 </dev/null` in
10772*GNU* | *'with BFD'*)
10773  lt_cv_prog_gnu_ld=yes
10774  ;;
10775*)
10776  lt_cv_prog_gnu_ld=no
10777  ;;
10778esac
10779fi
10780{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10781echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10782with_gnu_ld=$lt_cv_prog_gnu_ld
10783
10784
10785
10786  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10787  # archiving commands below assume that GNU ld is being used.
10788  if test "$with_gnu_ld" = yes; then
10789    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10790    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'
10791
10792    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10793    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10794
10795    # If archive_cmds runs LD, not CC, wlarc should be empty
10796    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10797    #     investigate it a little bit more. (MM)
10798    wlarc='${wl}'
10799
10800    # ancient GNU ld didn't support --whole-archive et. al.
10801    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10802	grep 'no-whole-archive' > /dev/null; then
10803      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10804    else
10805      whole_archive_flag_spec_CXX=
10806    fi
10807  else
10808    with_gnu_ld=no
10809    wlarc=
10810
10811    # A generic and very simple default shared library creation
10812    # command for GNU C++ for the case where it uses the native
10813    # linker, instead of GNU ld.  If possible, this setting should
10814    # overridden to take advantage of the native linker features on
10815    # the platform it is being used on.
10816    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10817  fi
10818
10819  # Commands to make compiler produce verbose output that lists
10820  # what "hidden" libraries, object files and flags are used when
10821  # linking a shared library.
10822  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10823
10824else
10825  GXX=no
10826  with_gnu_ld=no
10827  wlarc=
10828fi
10829
10830# PORTME: fill in a description of your system's C++ link characteristics
10831{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10832echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10833ld_shlibs_CXX=yes
10834case $host_os in
10835  aix3*)
10836    # FIXME: insert proper C++ library support
10837    ld_shlibs_CXX=no
10838    ;;
10839  aix4* | aix5*)
10840    if test "$host_cpu" = ia64; then
10841      # On IA64, the linker does run time linking by default, so we don't
10842      # have to do anything special.
10843      aix_use_runtimelinking=no
10844      exp_sym_flag='-Bexport'
10845      no_entry_flag=""
10846    else
10847      aix_use_runtimelinking=no
10848
10849      # Test if we are trying to use run time linking or normal
10850      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10851      # need to do runtime linking.
10852      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10853	for ld_flag in $LDFLAGS; do
10854	  case $ld_flag in
10855	  *-brtl*)
10856	    aix_use_runtimelinking=yes
10857	    break
10858	    ;;
10859	  esac
10860	done
10861	;;
10862      esac
10863
10864      exp_sym_flag='-bexport'
10865      no_entry_flag='-bnoentry'
10866    fi
10867
10868    # When large executables or shared objects are built, AIX ld can
10869    # have problems creating the table of contents.  If linking a library
10870    # or program results in "error TOC overflow" add -mminimal-toc to
10871    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10872    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10873
10874    archive_cmds_CXX=''
10875    hardcode_direct_CXX=yes
10876    hardcode_libdir_separator_CXX=':'
10877    link_all_deplibs_CXX=yes
10878
10879    if test "$GXX" = yes; then
10880      case $host_os in aix4.[012]|aix4.[012].*)
10881      # We only want to do this on AIX 4.2 and lower, the check
10882      # below for broken collect2 doesn't work under 4.3+
10883	collect2name=`${CC} -print-prog-name=collect2`
10884	if test -f "$collect2name" && \
10885	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10886	then
10887	  # We have reworked collect2
10888	  hardcode_direct_CXX=yes
10889	else
10890	  # We have old collect2
10891	  hardcode_direct_CXX=unsupported
10892	  # It fails to find uninstalled libraries when the uninstalled
10893	  # path is not listed in the libpath.  Setting hardcode_minus_L
10894	  # to unsupported forces relinking
10895	  hardcode_minus_L_CXX=yes
10896	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10897	  hardcode_libdir_separator_CXX=
10898	fi
10899	;;
10900      esac
10901      shared_flag='-shared'
10902      if test "$aix_use_runtimelinking" = yes; then
10903	shared_flag="$shared_flag "'${wl}-G'
10904      fi
10905    else
10906      # not using gcc
10907      if test "$host_cpu" = ia64; then
10908	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10909	# chokes on -Wl,-G. The following line is correct:
10910	shared_flag='-G'
10911      else
10912	if test "$aix_use_runtimelinking" = yes; then
10913	  shared_flag='${wl}-G'
10914	else
10915	  shared_flag='${wl}-bM:SRE'
10916	fi
10917      fi
10918    fi
10919
10920    # It seems that -bexpall does not export symbols beginning with
10921    # underscore (_), so it is better to generate a list of symbols to export.
10922    always_export_symbols_CXX=yes
10923    if test "$aix_use_runtimelinking" = yes; then
10924      # Warning - without using the other runtime loading flags (-brtl),
10925      # -berok will link without error, but may produce a broken library.
10926      allow_undefined_flag_CXX='-berok'
10927      # Determine the default libpath from the value encoded in an empty executable.
10928      cat >conftest.$ac_ext <<_ACEOF
10929/* confdefs.h.  */
10930_ACEOF
10931cat confdefs.h >>conftest.$ac_ext
10932cat >>conftest.$ac_ext <<_ACEOF
10933/* end confdefs.h.  */
10934
10935int
10936main ()
10937{
10938
10939  ;
10940  return 0;
10941}
10942_ACEOF
10943rm -f conftest.$ac_objext conftest$ac_exeext
10944if { (ac_try="$ac_link"
10945case "(($ac_try" in
10946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947  *) ac_try_echo=$ac_try;;
10948esac
10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950  (eval "$ac_link") 2>conftest.er1
10951  ac_status=$?
10952  grep -v '^ *+' conftest.er1 >conftest.err
10953  rm -f conftest.er1
10954  cat conftest.err >&5
10955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956  (exit $ac_status); } && {
10957	 test -z "$ac_cxx_werror_flag" ||
10958	 test ! -s conftest.err
10959       } && test -s conftest$ac_exeext &&
10960       $as_test_x conftest$ac_exeext; then
10961
10962aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10963}'`
10964# Check for a 64-bit object if we didn't find anything.
10965if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10966}'`; fi
10967else
10968  echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971
10972fi
10973
10974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10975      conftest$ac_exeext conftest.$ac_ext
10976if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10977
10978      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10979
10980      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"
10981     else
10982      if test "$host_cpu" = ia64; then
10983	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10984	allow_undefined_flag_CXX="-z nodefs"
10985	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"
10986      else
10987	# Determine the default libpath from the value encoded in an empty executable.
10988	cat >conftest.$ac_ext <<_ACEOF
10989/* confdefs.h.  */
10990_ACEOF
10991cat confdefs.h >>conftest.$ac_ext
10992cat >>conftest.$ac_ext <<_ACEOF
10993/* end confdefs.h.  */
10994
10995int
10996main ()
10997{
10998
10999  ;
11000  return 0;
11001}
11002_ACEOF
11003rm -f conftest.$ac_objext conftest$ac_exeext
11004if { (ac_try="$ac_link"
11005case "(($ac_try" in
11006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007  *) ac_try_echo=$ac_try;;
11008esac
11009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010  (eval "$ac_link") 2>conftest.er1
11011  ac_status=$?
11012  grep -v '^ *+' conftest.er1 >conftest.err
11013  rm -f conftest.er1
11014  cat conftest.err >&5
11015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016  (exit $ac_status); } && {
11017	 test -z "$ac_cxx_werror_flag" ||
11018	 test ! -s conftest.err
11019       } && test -s conftest$ac_exeext &&
11020       $as_test_x conftest$ac_exeext; then
11021
11022aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11023}'`
11024# Check for a 64-bit object if we didn't find anything.
11025if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11026}'`; fi
11027else
11028  echo "$as_me: failed program was:" >&5
11029sed 's/^/| /' conftest.$ac_ext >&5
11030
11031
11032fi
11033
11034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11035      conftest$ac_exeext conftest.$ac_ext
11036if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11037
11038	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11039	# Warning - without using the other run time loading flags,
11040	# -berok will link without error, but may produce a broken library.
11041	no_undefined_flag_CXX=' ${wl}-bernotok'
11042	allow_undefined_flag_CXX=' ${wl}-berok'
11043	# Exported symbols can be pulled into shared objects from archives
11044	whole_archive_flag_spec_CXX='$convenience'
11045	archive_cmds_need_lc_CXX=yes
11046	# This is similar to how AIX traditionally builds its shared libraries.
11047	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'
11048      fi
11049    fi
11050    ;;
11051
11052  beos*)
11053    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11054      allow_undefined_flag_CXX=unsupported
11055      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11056      # support --undefined.  This deserves some investigation.  FIXME
11057      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11058    else
11059      ld_shlibs_CXX=no
11060    fi
11061    ;;
11062
11063  chorus*)
11064    case $cc_basename in
11065      *)
11066	# FIXME: insert proper C++ library support
11067	ld_shlibs_CXX=no
11068	;;
11069    esac
11070    ;;
11071
11072  cygwin* | mingw* | pw32*)
11073    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11074    # as there is no search path for DLLs.
11075    hardcode_libdir_flag_spec_CXX='-L$libdir'
11076    allow_undefined_flag_CXX=unsupported
11077    always_export_symbols_CXX=no
11078    enable_shared_with_static_runtimes_CXX=yes
11079
11080    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11081      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'
11082      # If the export-symbols file already is a .def file (1st line
11083      # is EXPORTS), use it as is; otherwise, prepend...
11084      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11085	cp $export_symbols $output_objdir/$soname.def;
11086      else
11087	echo EXPORTS > $output_objdir/$soname.def;
11088	cat $export_symbols >> $output_objdir/$soname.def;
11089      fi~
11090      $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'
11091    else
11092      ld_shlibs_CXX=no
11093    fi
11094  ;;
11095      darwin* | rhapsody*)
11096        case $host_os in
11097        rhapsody* | darwin1.[012])
11098         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11099         ;;
11100       *) # Darwin 1.3 on
11101         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11102           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11103         else
11104           case ${MACOSX_DEPLOYMENT_TARGET} in
11105             10.[012])
11106               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11107               ;;
11108             10.*)
11109               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11110               ;;
11111           esac
11112         fi
11113         ;;
11114        esac
11115      archive_cmds_need_lc_CXX=no
11116      hardcode_direct_CXX=no
11117      hardcode_automatic_CXX=yes
11118      hardcode_shlibpath_var_CXX=unsupported
11119      whole_archive_flag_spec_CXX=''
11120      link_all_deplibs_CXX=yes
11121
11122    if test "$GXX" = yes ; then
11123      lt_int_apple_cc_single_mod=no
11124      output_verbose_link_cmd='echo'
11125      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11126       lt_int_apple_cc_single_mod=yes
11127      fi
11128      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11129       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11130      else
11131          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'
11132        fi
11133        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11134        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11135          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11136            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11137          else
11138            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11139          fi
11140            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}'
11141      else
11142      case $cc_basename in
11143        xlc*)
11144         output_verbose_link_cmd='echo'
11145          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11146          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11147          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11148          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11149          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}'
11150          ;;
11151       *)
11152         ld_shlibs_CXX=no
11153          ;;
11154      esac
11155      fi
11156        ;;
11157
11158  dgux*)
11159    case $cc_basename in
11160      ec++*)
11161	# FIXME: insert proper C++ library support
11162	ld_shlibs_CXX=no
11163	;;
11164      ghcx*)
11165	# Green Hills C++ Compiler
11166	# FIXME: insert proper C++ library support
11167	ld_shlibs_CXX=no
11168	;;
11169      *)
11170	# FIXME: insert proper C++ library support
11171	ld_shlibs_CXX=no
11172	;;
11173    esac
11174    ;;
11175  freebsd[12]*)
11176    # C++ shared libraries reported to be fairly broken before switch to ELF
11177    ld_shlibs_CXX=no
11178    ;;
11179  freebsd-elf*)
11180    archive_cmds_need_lc_CXX=no
11181    ;;
11182  freebsd* | kfreebsd*-gnu | dragonfly*)
11183    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11184    # conventions
11185    ld_shlibs_CXX=yes
11186    ;;
11187  gnu*)
11188    ;;
11189  hpux9*)
11190    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11191    hardcode_libdir_separator_CXX=:
11192    export_dynamic_flag_spec_CXX='${wl}-E'
11193    hardcode_direct_CXX=yes
11194    hardcode_minus_L_CXX=yes # Not in the search PATH,
11195				# but as the default
11196				# location of the library.
11197
11198    case $cc_basename in
11199    CC*)
11200      # FIXME: insert proper C++ library support
11201      ld_shlibs_CXX=no
11202      ;;
11203    aCC*)
11204      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'
11205      # Commands to make compiler produce verbose output that lists
11206      # what "hidden" libraries, object files and flags are used when
11207      # linking a shared library.
11208      #
11209      # There doesn't appear to be a way to prevent this compiler from
11210      # explicitly linking system object files so we need to strip them
11211      # from the output so that they don't get included in the library
11212      # dependencies.
11213      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'
11214      ;;
11215    *)
11216      if test "$GXX" = yes; then
11217        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'
11218      else
11219        # FIXME: insert proper C++ library support
11220        ld_shlibs_CXX=no
11221      fi
11222      ;;
11223    esac
11224    ;;
11225  hpux10*|hpux11*)
11226    if test $with_gnu_ld = no; then
11227      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11228      hardcode_libdir_separator_CXX=:
11229
11230      case $host_cpu in
11231      hppa*64*|ia64*)
11232	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11233        ;;
11234      *)
11235	export_dynamic_flag_spec_CXX='${wl}-E'
11236        ;;
11237      esac
11238    fi
11239    case $host_cpu in
11240    hppa*64*|ia64*)
11241      hardcode_direct_CXX=no
11242      hardcode_shlibpath_var_CXX=no
11243      ;;
11244    *)
11245      hardcode_direct_CXX=yes
11246      hardcode_minus_L_CXX=yes # Not in the search PATH,
11247					      # but as the default
11248					      # location of the library.
11249      ;;
11250    esac
11251
11252    case $cc_basename in
11253      CC*)
11254	# FIXME: insert proper C++ library support
11255	ld_shlibs_CXX=no
11256	;;
11257      aCC*)
11258	case $host_cpu in
11259	hppa*64*)
11260	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11261	  ;;
11262	ia64*)
11263	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11264	  ;;
11265	*)
11266	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11267	  ;;
11268	esac
11269	# Commands to make compiler produce verbose output that lists
11270	# what "hidden" libraries, object files and flags are used when
11271	# linking a shared library.
11272	#
11273	# There doesn't appear to be a way to prevent this compiler from
11274	# explicitly linking system object files so we need to strip them
11275	# from the output so that they don't get included in the library
11276	# dependencies.
11277	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'
11278	;;
11279      *)
11280	if test "$GXX" = yes; then
11281	  if test $with_gnu_ld = no; then
11282	    case $host_cpu in
11283	    hppa*64*)
11284	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11285	      ;;
11286	    ia64*)
11287	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11288	      ;;
11289	    *)
11290	      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'
11291	      ;;
11292	    esac
11293	  fi
11294	else
11295	  # FIXME: insert proper C++ library support
11296	  ld_shlibs_CXX=no
11297	fi
11298	;;
11299    esac
11300    ;;
11301  interix3*)
11302    hardcode_direct_CXX=no
11303    hardcode_shlibpath_var_CXX=no
11304    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11305    export_dynamic_flag_spec_CXX='${wl}-E'
11306    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11307    # Instead, shared libraries are loaded at an image base (0x10000000 by
11308    # default) and relocated if they conflict, which is a slow very memory
11309    # consuming and fragmenting process.  To avoid this, we pick a random,
11310    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11311    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11312    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'
11313    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'
11314    ;;
11315  irix5* | irix6*)
11316    case $cc_basename in
11317      CC*)
11318	# SGI C++
11319	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'
11320
11321	# Archives containing C++ object files must be created using
11322	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11323	# necessary to make sure instantiated templates are included
11324	# in the archive.
11325	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11326	;;
11327      *)
11328	if test "$GXX" = yes; then
11329	  if test "$with_gnu_ld" = no; then
11330	    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'
11331	  else
11332	    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'
11333	  fi
11334	fi
11335	link_all_deplibs_CXX=yes
11336	;;
11337    esac
11338    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11339    hardcode_libdir_separator_CXX=:
11340    ;;
11341  linux*)
11342    case $cc_basename in
11343      KCC*)
11344	# Kuck and Associates, Inc. (KAI) C++ Compiler
11345
11346	# KCC will only create a shared library if the output file
11347	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11348	# to its proper name (with version) after linking.
11349	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'
11350	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'
11351	# Commands to make compiler produce verbose output that lists
11352	# what "hidden" libraries, object files and flags are used when
11353	# linking a shared library.
11354	#
11355	# There doesn't appear to be a way to prevent this compiler from
11356	# explicitly linking system object files so we need to strip them
11357	# from the output so that they don't get included in the library
11358	# dependencies.
11359	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'
11360
11361	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11362	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11363
11364	# Archives containing C++ object files must be created using
11365	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11366	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11367	;;
11368      icpc*)
11369	# Intel C++
11370	with_gnu_ld=yes
11371	# version 8.0 and above of icpc choke on multiply defined symbols
11372	# if we add $predep_objects and $postdep_objects, however 7.1 and
11373	# earlier do not add the objects themselves.
11374	case `$CC -V 2>&1` in
11375	*"Version 7."*)
11376  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11377  	  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'
11378	  ;;
11379	*)  # Version 8.0 or newer
11380	  tmp_idyn=
11381	  case $host_cpu in
11382	    ia64*) tmp_idyn=' -i_dynamic';;
11383	  esac
11384  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11385	  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'
11386	  ;;
11387	esac
11388	archive_cmds_need_lc_CXX=no
11389	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11390	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11391	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11392	;;
11393      pgCC*)
11394        # Portland Group C++ compiler
11395	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11396  	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'
11397
11398	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11399	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11400	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'
11401        ;;
11402      cxx*)
11403	# Compaq C++
11404	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11405	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'
11406
11407	runpath_var=LD_RUN_PATH
11408	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11409	hardcode_libdir_separator_CXX=:
11410
11411	# Commands to make compiler produce verbose output that lists
11412	# what "hidden" libraries, object files and flags are used when
11413	# linking a shared library.
11414	#
11415	# There doesn't appear to be a way to prevent this compiler from
11416	# explicitly linking system object files so we need to strip them
11417	# from the output so that they don't get included in the library
11418	# dependencies.
11419	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'
11420	;;
11421    esac
11422    ;;
11423  lynxos*)
11424    # FIXME: insert proper C++ library support
11425    ld_shlibs_CXX=no
11426    ;;
11427  m88k*)
11428    # FIXME: insert proper C++ library support
11429    ld_shlibs_CXX=no
11430    ;;
11431  mvs*)
11432    case $cc_basename in
11433      cxx*)
11434	# FIXME: insert proper C++ library support
11435	ld_shlibs_CXX=no
11436	;;
11437      *)
11438	# FIXME: insert proper C++ library support
11439	ld_shlibs_CXX=no
11440	;;
11441    esac
11442    ;;
11443  netbsd*)
11444    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11445      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11446      wlarc=
11447      hardcode_libdir_flag_spec_CXX='-R$libdir'
11448      hardcode_direct_CXX=yes
11449      hardcode_shlibpath_var_CXX=no
11450    fi
11451    # Workaround some broken pre-1.5 toolchains
11452    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11453    ;;
11454  openbsd2*)
11455    # C++ shared libraries are fairly broken
11456    ld_shlibs_CXX=no
11457    ;;
11458  openbsd*)
11459    hardcode_direct_CXX=yes
11460    hardcode_shlibpath_var_CXX=no
11461    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11462    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11463    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11464      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11465      export_dynamic_flag_spec_CXX='${wl}-E'
11466      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11467    fi
11468    output_verbose_link_cmd='echo'
11469    ;;
11470  osf3*)
11471    case $cc_basename in
11472      KCC*)
11473	# Kuck and Associates, Inc. (KAI) C++ Compiler
11474
11475	# KCC will only create a shared library if the output file
11476	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11477	# to its proper name (with version) after linking.
11478	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'
11479
11480	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11481	hardcode_libdir_separator_CXX=:
11482
11483	# Archives containing C++ object files must be created using
11484	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11485	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11486
11487	;;
11488      RCC*)
11489	# Rational C++ 2.4.1
11490	# FIXME: insert proper C++ library support
11491	ld_shlibs_CXX=no
11492	;;
11493      cxx*)
11494	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11495	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'
11496
11497	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11498	hardcode_libdir_separator_CXX=:
11499
11500	# Commands to make compiler produce verbose output that lists
11501	# what "hidden" libraries, object files and flags are used when
11502	# linking a shared library.
11503	#
11504	# There doesn't appear to be a way to prevent this compiler from
11505	# explicitly linking system object files so we need to strip them
11506	# from the output so that they don't get included in the library
11507	# dependencies.
11508	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'
11509	;;
11510      *)
11511	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11512	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11513	  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'
11514
11515	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11516	  hardcode_libdir_separator_CXX=:
11517
11518	  # Commands to make compiler produce verbose output that lists
11519	  # what "hidden" libraries, object files and flags are used when
11520	  # linking a shared library.
11521	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11522
11523	else
11524	  # FIXME: insert proper C++ library support
11525	  ld_shlibs_CXX=no
11526	fi
11527	;;
11528    esac
11529    ;;
11530  osf4* | osf5*)
11531    case $cc_basename in
11532      KCC*)
11533	# Kuck and Associates, Inc. (KAI) C++ Compiler
11534
11535	# KCC will only create a shared library if the output file
11536	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11537	# to its proper name (with version) after linking.
11538	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'
11539
11540	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11541	hardcode_libdir_separator_CXX=:
11542
11543	# Archives containing C++ object files must be created using
11544	# the KAI C++ compiler.
11545	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11546	;;
11547      RCC*)
11548	# Rational C++ 2.4.1
11549	# FIXME: insert proper C++ library support
11550	ld_shlibs_CXX=no
11551	;;
11552      cxx*)
11553	allow_undefined_flag_CXX=' -expect_unresolved \*'
11554	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'
11555	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11556	  echo "-hidden">> $lib.exp~
11557	  $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~
11558	  $rm $lib.exp'
11559
11560	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11561	hardcode_libdir_separator_CXX=:
11562
11563	# Commands to make compiler produce verbose output that lists
11564	# what "hidden" libraries, object files and flags are used when
11565	# linking a shared library.
11566	#
11567	# There doesn't appear to be a way to prevent this compiler from
11568	# explicitly linking system object files so we need to strip them
11569	# from the output so that they don't get included in the library
11570	# dependencies.
11571	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'
11572	;;
11573      *)
11574	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11575	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11576	 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'
11577
11578	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11579	  hardcode_libdir_separator_CXX=:
11580
11581	  # Commands to make compiler produce verbose output that lists
11582	  # what "hidden" libraries, object files and flags are used when
11583	  # linking a shared library.
11584	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11585
11586	else
11587	  # FIXME: insert proper C++ library support
11588	  ld_shlibs_CXX=no
11589	fi
11590	;;
11591    esac
11592    ;;
11593  psos*)
11594    # FIXME: insert proper C++ library support
11595    ld_shlibs_CXX=no
11596    ;;
11597  sunos4*)
11598    case $cc_basename in
11599      CC*)
11600	# Sun C++ 4.x
11601	# FIXME: insert proper C++ library support
11602	ld_shlibs_CXX=no
11603	;;
11604      lcc*)
11605	# Lucid
11606	# FIXME: insert proper C++ library support
11607	ld_shlibs_CXX=no
11608	;;
11609      *)
11610	# FIXME: insert proper C++ library support
11611	ld_shlibs_CXX=no
11612	;;
11613    esac
11614    ;;
11615  solaris*)
11616    case $cc_basename in
11617      CC*)
11618	# Sun C++ 4.2, 5.x and Centerline C++
11619        archive_cmds_need_lc_CXX=yes
11620	no_undefined_flag_CXX=' -zdefs'
11621	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11622	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11623	$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'
11624
11625	hardcode_libdir_flag_spec_CXX='-R$libdir'
11626	hardcode_shlibpath_var_CXX=no
11627	case $host_os in
11628	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11629	  *)
11630	    # The C++ compiler is used as linker so we must use $wl
11631	    # flag to pass the commands to the underlying system
11632	    # linker. We must also pass each convience library through
11633	    # to the system linker between allextract/defaultextract.
11634	    # The C++ compiler will combine linker options so we
11635	    # cannot just pass the convience library names through
11636	    # without $wl.
11637	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11638	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11639	    ;;
11640	esac
11641	link_all_deplibs_CXX=yes
11642
11643	output_verbose_link_cmd='echo'
11644
11645	# Archives containing C++ object files must be created using
11646	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11647	# necessary to make sure instantiated templates are included
11648	# in the archive.
11649	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11650	;;
11651      gcx*)
11652	# Green Hills C++ Compiler
11653	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11654
11655	# The C++ compiler must be used to create the archive.
11656	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11657	;;
11658      *)
11659	# GNU C++ compiler with Solaris linker
11660	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11661	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11662	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11663	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11664	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11665		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11666
11667	    # Commands to make compiler produce verbose output that lists
11668	    # what "hidden" libraries, object files and flags are used when
11669	    # linking a shared library.
11670	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11671	  else
11672	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11673	    # platform.
11674	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11675	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11676		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11677
11678	    # Commands to make compiler produce verbose output that lists
11679	    # what "hidden" libraries, object files and flags are used when
11680	    # linking a shared library.
11681	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11682	  fi
11683
11684	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11685	fi
11686	;;
11687    esac
11688    ;;
11689  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11690    no_undefined_flag_CXX='${wl}-z,text'
11691    archive_cmds_need_lc_CXX=no
11692    hardcode_shlibpath_var_CXX=no
11693    runpath_var='LD_RUN_PATH'
11694
11695    case $cc_basename in
11696      CC*)
11697	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11698	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11699	;;
11700      *)
11701	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11702	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11703	;;
11704    esac
11705    ;;
11706  sysv5* | sco3.2v5* | sco5v6*)
11707    # Note: We can NOT use -z defs as we might desire, because we do not
11708    # link with -lc, and that would cause any symbols used from libc to
11709    # always be unresolved, which means just about no library would
11710    # ever link correctly.  If we're not using GNU ld we use -z text
11711    # though, which does catch some bad symbols but isn't as heavy-handed
11712    # as -z defs.
11713    # For security reasons, it is highly recommended that you always
11714    # use absolute paths for naming shared libraries, and exclude the
11715    # DT_RUNPATH tag from executables and libraries.  But doing so
11716    # requires that you compile everything twice, which is a pain.
11717    # So that behaviour is only enabled if SCOABSPATH is set to a
11718    # non-empty value in the environment.  Most likely only useful for
11719    # creating official distributions of packages.
11720    # This is a hack until libtool officially supports absolute path
11721    # names for shared libraries.
11722    no_undefined_flag_CXX='${wl}-z,text'
11723    allow_undefined_flag_CXX='${wl}-z,nodefs'
11724    archive_cmds_need_lc_CXX=no
11725    hardcode_shlibpath_var_CXX=no
11726    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11727    hardcode_libdir_separator_CXX=':'
11728    link_all_deplibs_CXX=yes
11729    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11730    runpath_var='LD_RUN_PATH'
11731
11732    case $cc_basename in
11733      CC*)
11734	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11735	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11736	;;
11737      *)
11738	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11739	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11740	;;
11741    esac
11742    ;;
11743  tandem*)
11744    case $cc_basename in
11745      NCC*)
11746	# NonStop-UX NCC 3.20
11747	# FIXME: insert proper C++ library support
11748	ld_shlibs_CXX=no
11749	;;
11750      *)
11751	# FIXME: insert proper C++ library support
11752	ld_shlibs_CXX=no
11753	;;
11754    esac
11755    ;;
11756  vxworks*)
11757    # FIXME: insert proper C++ library support
11758    ld_shlibs_CXX=no
11759    ;;
11760  *)
11761    # FIXME: insert proper C++ library support
11762    ld_shlibs_CXX=no
11763    ;;
11764esac
11765{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11766echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11767test "$ld_shlibs_CXX" = no && can_build_shared=no
11768
11769GCC_CXX="$GXX"
11770LD_CXX="$LD"
11771
11772
11773cat > conftest.$ac_ext <<EOF
11774class Foo
11775{
11776public:
11777  Foo (void) { a = 0; }
11778private:
11779  int a;
11780};
11781EOF
11782
11783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11784  (eval $ac_compile) 2>&5
11785  ac_status=$?
11786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787  (exit $ac_status); }; then
11788  # Parse the compiler output and extract the necessary
11789  # objects, libraries and library flags.
11790
11791  # Sentinel used to keep track of whether or not we are before
11792  # the conftest object file.
11793  pre_test_object_deps_done=no
11794
11795  # The `*' in the case matches for architectures that use `case' in
11796  # $output_verbose_cmd can trigger glob expansion during the loop
11797  # eval without this substitution.
11798  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11799
11800  for p in `eval $output_verbose_link_cmd`; do
11801    case $p in
11802
11803    -L* | -R* | -l*)
11804       # Some compilers place space between "-{L,R}" and the path.
11805       # Remove the space.
11806       if test $p = "-L" \
11807	  || test $p = "-R"; then
11808	 prev=$p
11809	 continue
11810       else
11811	 prev=
11812       fi
11813
11814       if test "$pre_test_object_deps_done" = no; then
11815	 case $p in
11816	 -L* | -R*)
11817	   # Internal compiler library paths should come after those
11818	   # provided the user.  The postdeps already come after the
11819	   # user supplied libs so there is no need to process them.
11820	   if test -z "$compiler_lib_search_path_CXX"; then
11821	     compiler_lib_search_path_CXX="${prev}${p}"
11822	   else
11823	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11824	   fi
11825	   ;;
11826	 # The "-l" case would never come before the object being
11827	 # linked, so don't bother handling this case.
11828	 esac
11829       else
11830	 if test -z "$postdeps_CXX"; then
11831	   postdeps_CXX="${prev}${p}"
11832	 else
11833	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11834	 fi
11835       fi
11836       ;;
11837
11838    *.$objext)
11839       # This assumes that the test object file only shows up
11840       # once in the compiler output.
11841       if test "$p" = "conftest.$objext"; then
11842	 pre_test_object_deps_done=yes
11843	 continue
11844       fi
11845
11846       if test "$pre_test_object_deps_done" = no; then
11847	 if test -z "$predep_objects_CXX"; then
11848	   predep_objects_CXX="$p"
11849	 else
11850	   predep_objects_CXX="$predep_objects_CXX $p"
11851	 fi
11852       else
11853	 if test -z "$postdep_objects_CXX"; then
11854	   postdep_objects_CXX="$p"
11855	 else
11856	   postdep_objects_CXX="$postdep_objects_CXX $p"
11857	 fi
11858       fi
11859       ;;
11860
11861    *) ;; # Ignore the rest.
11862
11863    esac
11864  done
11865
11866  # Clean up.
11867  rm -f a.out a.exe
11868else
11869  echo "libtool.m4: error: problem compiling CXX test program"
11870fi
11871
11872$rm -f confest.$objext
11873
11874# PORTME: override above test on systems where it is broken
11875case $host_os in
11876interix3*)
11877  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11878  # hack all around it, let's just trust "g++" to DTRT.
11879  predep_objects_CXX=
11880  postdep_objects_CXX=
11881  postdeps_CXX=
11882  ;;
11883
11884solaris*)
11885  case $cc_basename in
11886  CC*)
11887    # Adding this requires a known-good setup of shared libraries for
11888    # Sun compiler versions before 5.6, else PIC objects from an old
11889    # archive will be linked into the output, leading to subtle bugs.
11890    postdeps_CXX='-lCstd -lCrun'
11891    ;;
11892  esac
11893  ;;
11894esac
11895
11896
11897case " $postdeps_CXX " in
11898*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11899esac
11900
11901lt_prog_compiler_wl_CXX=
11902lt_prog_compiler_pic_CXX=
11903lt_prog_compiler_static_CXX=
11904
11905{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11906echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11907
11908  # C++ specific cases for pic, static, wl, etc.
11909  if test "$GXX" = yes; then
11910    lt_prog_compiler_wl_CXX='-Wl,'
11911    lt_prog_compiler_static_CXX='-static'
11912
11913    case $host_os in
11914    aix*)
11915      # All AIX code is PIC.
11916      if test "$host_cpu" = ia64; then
11917	# AIX 5 now supports IA64 processor
11918	lt_prog_compiler_static_CXX='-Bstatic'
11919      fi
11920      ;;
11921    amigaos*)
11922      # FIXME: we need at least 68020 code to build shared libraries, but
11923      # adding the `-m68020' flag to GCC prevents building anything better,
11924      # like `-m68040'.
11925      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11926      ;;
11927    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11928      # PIC is the default for these OSes.
11929      ;;
11930    mingw* | os2* | pw32*)
11931      # This hack is so that the source file can tell whether it is being
11932      # built for inclusion in a dll (and should export symbols for example).
11933      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11934      ;;
11935    darwin* | rhapsody*)
11936      # PIC is the default on this platform
11937      # Common symbols not allowed in MH_DYLIB files
11938      lt_prog_compiler_pic_CXX='-fno-common'
11939      ;;
11940    *djgpp*)
11941      # DJGPP does not support shared libraries at all
11942      lt_prog_compiler_pic_CXX=
11943      ;;
11944    interix3*)
11945      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11946      # Instead, we relocate shared libraries at runtime.
11947      ;;
11948    sysv4*MP*)
11949      if test -d /usr/nec; then
11950	lt_prog_compiler_pic_CXX=-Kconform_pic
11951      fi
11952      ;;
11953    hpux*)
11954      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11955      # not for PA HP-UX.
11956      case $host_cpu in
11957      hppa*64*|ia64*)
11958	;;
11959      *)
11960	lt_prog_compiler_pic_CXX='-fPIC'
11961	;;
11962      esac
11963      ;;
11964    *)
11965      lt_prog_compiler_pic_CXX='-fPIC'
11966      ;;
11967    esac
11968  else
11969    case $host_os in
11970      aix4* | aix5*)
11971	# All AIX code is PIC.
11972	if test "$host_cpu" = ia64; then
11973	  # AIX 5 now supports IA64 processor
11974	  lt_prog_compiler_static_CXX='-Bstatic'
11975	else
11976	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11977	fi
11978	;;
11979      chorus*)
11980	case $cc_basename in
11981	cxch68*)
11982	  # Green Hills C++ Compiler
11983	  # _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"
11984	  ;;
11985	esac
11986	;;
11987       darwin*)
11988         # PIC is the default on this platform
11989         # Common symbols not allowed in MH_DYLIB files
11990         case $cc_basename in
11991           xlc*)
11992           lt_prog_compiler_pic_CXX='-qnocommon'
11993           lt_prog_compiler_wl_CXX='-Wl,'
11994           ;;
11995         esac
11996       ;;
11997      dgux*)
11998	case $cc_basename in
11999	  ec++*)
12000	    lt_prog_compiler_pic_CXX='-KPIC'
12001	    ;;
12002	  ghcx*)
12003	    # Green Hills C++ Compiler
12004	    lt_prog_compiler_pic_CXX='-pic'
12005	    ;;
12006	  *)
12007	    ;;
12008	esac
12009	;;
12010      freebsd* | kfreebsd*-gnu | dragonfly*)
12011	# FreeBSD uses GNU C++
12012	;;
12013      hpux9* | hpux10* | hpux11*)
12014	case $cc_basename in
12015	  CC*)
12016	    lt_prog_compiler_wl_CXX='-Wl,'
12017	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12018	    if test "$host_cpu" != ia64; then
12019	      lt_prog_compiler_pic_CXX='+Z'
12020	    fi
12021	    ;;
12022	  aCC*)
12023	    lt_prog_compiler_wl_CXX='-Wl,'
12024	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12025	    case $host_cpu in
12026	    hppa*64*|ia64*)
12027	      # +Z the default
12028	      ;;
12029	    *)
12030	      lt_prog_compiler_pic_CXX='+Z'
12031	      ;;
12032	    esac
12033	    ;;
12034	  *)
12035	    ;;
12036	esac
12037	;;
12038      interix*)
12039	# This is c89, which is MS Visual C++ (no shared libs)
12040	# Anyone wants to do a port?
12041	;;
12042      irix5* | irix6* | nonstopux*)
12043	case $cc_basename in
12044	  CC*)
12045	    lt_prog_compiler_wl_CXX='-Wl,'
12046	    lt_prog_compiler_static_CXX='-non_shared'
12047	    # CC pic flag -KPIC is the default.
12048	    ;;
12049	  *)
12050	    ;;
12051	esac
12052	;;
12053      linux*)
12054	case $cc_basename in
12055	  KCC*)
12056	    # KAI C++ Compiler
12057	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12058	    lt_prog_compiler_pic_CXX='-fPIC'
12059	    ;;
12060	  icpc* | ecpc*)
12061	    # Intel C++
12062	    lt_prog_compiler_wl_CXX='-Wl,'
12063	    lt_prog_compiler_pic_CXX='-KPIC'
12064	    lt_prog_compiler_static_CXX='-static'
12065	    ;;
12066	  pgCC*)
12067	    # Portland Group C++ compiler.
12068	    lt_prog_compiler_wl_CXX='-Wl,'
12069	    lt_prog_compiler_pic_CXX='-fpic'
12070	    lt_prog_compiler_static_CXX='-Bstatic'
12071	    ;;
12072	  cxx*)
12073	    # Compaq C++
12074	    # Make sure the PIC flag is empty.  It appears that all Alpha
12075	    # Linux and Compaq Tru64 Unix objects are PIC.
12076	    lt_prog_compiler_pic_CXX=
12077	    lt_prog_compiler_static_CXX='-non_shared'
12078	    ;;
12079	  *)
12080	    ;;
12081	esac
12082	;;
12083      lynxos*)
12084	;;
12085      m88k*)
12086	;;
12087      mvs*)
12088	case $cc_basename in
12089	  cxx*)
12090	    lt_prog_compiler_pic_CXX='-W c,exportall'
12091	    ;;
12092	  *)
12093	    ;;
12094	esac
12095	;;
12096      netbsd*)
12097	;;
12098      osf3* | osf4* | osf5*)
12099	case $cc_basename in
12100	  KCC*)
12101	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12102	    ;;
12103	  RCC*)
12104	    # Rational C++ 2.4.1
12105	    lt_prog_compiler_pic_CXX='-pic'
12106	    ;;
12107	  cxx*)
12108	    # Digital/Compaq C++
12109	    lt_prog_compiler_wl_CXX='-Wl,'
12110	    # Make sure the PIC flag is empty.  It appears that all Alpha
12111	    # Linux and Compaq Tru64 Unix objects are PIC.
12112	    lt_prog_compiler_pic_CXX=
12113	    lt_prog_compiler_static_CXX='-non_shared'
12114	    ;;
12115	  *)
12116	    ;;
12117	esac
12118	;;
12119      psos*)
12120	;;
12121      solaris*)
12122	case $cc_basename in
12123	  CC*)
12124	    # Sun C++ 4.2, 5.x and Centerline C++
12125	    lt_prog_compiler_pic_CXX='-KPIC'
12126	    lt_prog_compiler_static_CXX='-Bstatic'
12127	    lt_prog_compiler_wl_CXX='-Qoption ld '
12128	    ;;
12129	  gcx*)
12130	    # Green Hills C++ Compiler
12131	    lt_prog_compiler_pic_CXX='-PIC'
12132	    ;;
12133	  *)
12134	    ;;
12135	esac
12136	;;
12137      sunos4*)
12138	case $cc_basename in
12139	  CC*)
12140	    # Sun C++ 4.x
12141	    lt_prog_compiler_pic_CXX='-pic'
12142	    lt_prog_compiler_static_CXX='-Bstatic'
12143	    ;;
12144	  lcc*)
12145	    # Lucid
12146	    lt_prog_compiler_pic_CXX='-pic'
12147	    ;;
12148	  *)
12149	    ;;
12150	esac
12151	;;
12152      tandem*)
12153	case $cc_basename in
12154	  NCC*)
12155	    # NonStop-UX NCC 3.20
12156	    lt_prog_compiler_pic_CXX='-KPIC'
12157	    ;;
12158	  *)
12159	    ;;
12160	esac
12161	;;
12162      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12163	case $cc_basename in
12164	  CC*)
12165	    lt_prog_compiler_wl_CXX='-Wl,'
12166	    lt_prog_compiler_pic_CXX='-KPIC'
12167	    lt_prog_compiler_static_CXX='-Bstatic'
12168	    ;;
12169	esac
12170	;;
12171      vxworks*)
12172	;;
12173      *)
12174	lt_prog_compiler_can_build_shared_CXX=no
12175	;;
12176    esac
12177  fi
12178
12179{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12180echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12181
12182#
12183# Check to make sure the PIC flag actually works.
12184#
12185if test -n "$lt_prog_compiler_pic_CXX"; then
12186
12187{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12188echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12189if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12190  echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192  lt_prog_compiler_pic_works_CXX=no
12193  ac_outfile=conftest.$ac_objext
12194   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12195   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12196   # Insert the option either (1) after the last *FLAGS variable, or
12197   # (2) before a word containing "conftest.", or (3) at the end.
12198   # Note that $ac_compile itself does not contain backslashes and begins
12199   # with a dollar sign (not a hyphen), so the echo should work correctly.
12200   # The option is referenced via a variable to avoid confusing sed.
12201   lt_compile=`echo "$ac_compile" | $SED \
12202   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12203   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12204   -e 's:$: $lt_compiler_flag:'`
12205   (eval echo "\"\$as_me:12205: $lt_compile\"" >&5)
12206   (eval "$lt_compile" 2>conftest.err)
12207   ac_status=$?
12208   cat conftest.err >&5
12209   echo "$as_me:12209: \$? = $ac_status" >&5
12210   if (exit $ac_status) && test -s "$ac_outfile"; then
12211     # The compiler can only warn and ignore the option if not recognized
12212     # So say no if there are warnings other than the usual output.
12213     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12214     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12215     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12216       lt_prog_compiler_pic_works_CXX=yes
12217     fi
12218   fi
12219   $rm conftest*
12220
12221fi
12222{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12223echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12224
12225if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12226    case $lt_prog_compiler_pic_CXX in
12227     "" | " "*) ;;
12228     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12229     esac
12230else
12231    lt_prog_compiler_pic_CXX=
12232     lt_prog_compiler_can_build_shared_CXX=no
12233fi
12234
12235fi
12236case $host_os in
12237  # For platforms which do not support PIC, -DPIC is meaningless:
12238  *djgpp*)
12239    lt_prog_compiler_pic_CXX=
12240    ;;
12241  *)
12242    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12243    ;;
12244esac
12245
12246#
12247# Check to make sure the static flag actually works.
12248#
12249wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12250{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12251echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12252if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12253  echo $ECHO_N "(cached) $ECHO_C" >&6
12254else
12255  lt_prog_compiler_static_works_CXX=no
12256   save_LDFLAGS="$LDFLAGS"
12257   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12258   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12259   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12260     # The linker can only warn and ignore the option if not recognized
12261     # So say no if there are warnings
12262     if test -s conftest.err; then
12263       # Append any errors to the config.log.
12264       cat conftest.err 1>&5
12265       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12266       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12267       if diff conftest.exp conftest.er2 >/dev/null; then
12268         lt_prog_compiler_static_works_CXX=yes
12269       fi
12270     else
12271       lt_prog_compiler_static_works_CXX=yes
12272     fi
12273   fi
12274   $rm conftest*
12275   LDFLAGS="$save_LDFLAGS"
12276
12277fi
12278{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12279echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12280
12281if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12282    :
12283else
12284    lt_prog_compiler_static_CXX=
12285fi
12286
12287
12288{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12289echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12290if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12291  echo $ECHO_N "(cached) $ECHO_C" >&6
12292else
12293  lt_cv_prog_compiler_c_o_CXX=no
12294   $rm -r conftest 2>/dev/null
12295   mkdir conftest
12296   cd conftest
12297   mkdir out
12298   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12299
12300   lt_compiler_flag="-o out/conftest2.$ac_objext"
12301   # Insert the option either (1) after the last *FLAGS variable, or
12302   # (2) before a word containing "conftest.", or (3) at the end.
12303   # Note that $ac_compile itself does not contain backslashes and begins
12304   # with a dollar sign (not a hyphen), so the echo should work correctly.
12305   lt_compile=`echo "$ac_compile" | $SED \
12306   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12307   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12308   -e 's:$: $lt_compiler_flag:'`
12309   (eval echo "\"\$as_me:12309: $lt_compile\"" >&5)
12310   (eval "$lt_compile" 2>out/conftest.err)
12311   ac_status=$?
12312   cat out/conftest.err >&5
12313   echo "$as_me:12313: \$? = $ac_status" >&5
12314   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12315   then
12316     # The compiler can only warn and ignore the option if not recognized
12317     # So say no if there are warnings
12318     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12319     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12320     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12321       lt_cv_prog_compiler_c_o_CXX=yes
12322     fi
12323   fi
12324   chmod u+w . 2>&5
12325   $rm conftest*
12326   # SGI C++ compiler will create directory out/ii_files/ for
12327   # template instantiation
12328   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12329   $rm out/* && rmdir out
12330   cd ..
12331   rmdir conftest
12332   $rm conftest*
12333
12334fi
12335{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12336echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12337
12338
12339hard_links="nottested"
12340if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12341  # do not overwrite the value of need_locks provided by the user
12342  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12343echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12344  hard_links=yes
12345  $rm conftest*
12346  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12347  touch conftest.a
12348  ln conftest.a conftest.b 2>&5 || hard_links=no
12349  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12350  { echo "$as_me:$LINENO: result: $hard_links" >&5
12351echo "${ECHO_T}$hard_links" >&6; }
12352  if test "$hard_links" = no; then
12353    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12354echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12355    need_locks=warn
12356  fi
12357else
12358  need_locks=no
12359fi
12360
12361{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12362echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12363
12364  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12365  case $host_os in
12366  aix4* | aix5*)
12367    # If we're using GNU nm, then we don't want the "-C" option.
12368    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12369    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12370      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'
12371    else
12372      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'
12373    fi
12374    ;;
12375  pw32*)
12376    export_symbols_cmds_CXX="$ltdll_cmds"
12377  ;;
12378  cygwin* | mingw*)
12379    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'
12380  ;;
12381  *)
12382    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12383  ;;
12384  esac
12385
12386{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12387echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12388test "$ld_shlibs_CXX" = no && can_build_shared=no
12389
12390#
12391# Do we need to explicitly link libc?
12392#
12393case "x$archive_cmds_need_lc_CXX" in
12394x|xyes)
12395  # Assume -lc should be added
12396  archive_cmds_need_lc_CXX=yes
12397
12398  if test "$enable_shared" = yes && test "$GCC" = yes; then
12399    case $archive_cmds_CXX in
12400    *'~'*)
12401      # FIXME: we may have to deal with multi-command sequences.
12402      ;;
12403    '$CC '*)
12404      # Test whether the compiler implicitly links with -lc since on some
12405      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12406      # to ld, don't add -lc before -lgcc.
12407      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12408echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12409      $rm conftest*
12410      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12411
12412      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413  (eval $ac_compile) 2>&5
12414  ac_status=$?
12415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416  (exit $ac_status); } 2>conftest.err; then
12417        soname=conftest
12418        lib=conftest
12419        libobjs=conftest.$ac_objext
12420        deplibs=
12421        wl=$lt_prog_compiler_wl_CXX
12422	pic_flag=$lt_prog_compiler_pic_CXX
12423        compiler_flags=-v
12424        linker_flags=-v
12425        verstring=
12426        output_objdir=.
12427        libname=conftest
12428        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12429        allow_undefined_flag_CXX=
12430        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12431  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12432  ac_status=$?
12433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434  (exit $ac_status); }
12435        then
12436	  archive_cmds_need_lc_CXX=no
12437        else
12438	  archive_cmds_need_lc_CXX=yes
12439        fi
12440        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12441      else
12442        cat conftest.err 1>&5
12443      fi
12444      $rm conftest*
12445      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12446echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12447      ;;
12448    esac
12449  fi
12450  ;;
12451esac
12452
12453{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12454echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12455library_names_spec=
12456libname_spec='lib$name'
12457soname_spec=
12458shrext_cmds=".so"
12459postinstall_cmds=
12460postuninstall_cmds=
12461finish_cmds=
12462finish_eval=
12463shlibpath_var=
12464shlibpath_overrides_runpath=unknown
12465version_type=none
12466dynamic_linker="$host_os ld.so"
12467sys_lib_dlsearch_path_spec="/lib /usr/lib"
12468if test "$GCC" = yes; then
12469  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12470  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12471    # if the path contains ";" then we assume it to be the separator
12472    # otherwise default to the standard path separator (i.e. ":") - it is
12473    # assumed that no part of a normal pathname contains ";" but that should
12474    # okay in the real world where ";" in dirpaths is itself problematic.
12475    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12476  else
12477    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12478  fi
12479else
12480  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12481fi
12482need_lib_prefix=unknown
12483hardcode_into_libs=no
12484
12485# when you set need_version to no, make sure it does not cause -set_version
12486# flags to be left without arguments
12487need_version=unknown
12488
12489case $host_os in
12490aix3*)
12491  version_type=linux
12492  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12493  shlibpath_var=LIBPATH
12494
12495  # AIX 3 has no versioning support, so we append a major version to the name.
12496  soname_spec='${libname}${release}${shared_ext}$major'
12497  ;;
12498
12499aix4* | aix5*)
12500  version_type=linux
12501  need_lib_prefix=no
12502  need_version=no
12503  hardcode_into_libs=yes
12504  if test "$host_cpu" = ia64; then
12505    # AIX 5 supports IA64
12506    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12507    shlibpath_var=LD_LIBRARY_PATH
12508  else
12509    # With GCC up to 2.95.x, collect2 would create an import file
12510    # for dependence libraries.  The import file would start with
12511    # the line `#! .'.  This would cause the generated library to
12512    # depend on `.', always an invalid library.  This was fixed in
12513    # development snapshots of GCC prior to 3.0.
12514    case $host_os in
12515      aix4 | aix4.[01] | aix4.[01].*)
12516      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12517	   echo ' yes '
12518	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12519	:
12520      else
12521	can_build_shared=no
12522      fi
12523      ;;
12524    esac
12525    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12526    # soname into executable. Probably we can add versioning support to
12527    # collect2, so additional links can be useful in future.
12528    if test "$aix_use_runtimelinking" = yes; then
12529      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12530      # instead of lib<name>.a to let people know that these are not
12531      # typical AIX shared libraries.
12532      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12533    else
12534      # We preserve .a as extension for shared libraries through AIX4.2
12535      # and later when we are not doing run time linking.
12536      library_names_spec='${libname}${release}.a $libname.a'
12537      soname_spec='${libname}${release}${shared_ext}$major'
12538    fi
12539    shlibpath_var=LIBPATH
12540  fi
12541  ;;
12542
12543amigaos*)
12544  library_names_spec='$libname.ixlibrary $libname.a'
12545  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12546  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'
12547  ;;
12548
12549beos*)
12550  library_names_spec='${libname}${shared_ext}'
12551  dynamic_linker="$host_os ld.so"
12552  shlibpath_var=LIBRARY_PATH
12553  ;;
12554
12555bsdi[45]*)
12556  version_type=linux
12557  need_version=no
12558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12559  soname_spec='${libname}${release}${shared_ext}$major'
12560  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12561  shlibpath_var=LD_LIBRARY_PATH
12562  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12563  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12564  # the default ld.so.conf also contains /usr/contrib/lib and
12565  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12566  # libtool to hard-code these into programs
12567  ;;
12568
12569cygwin* | mingw* | pw32*)
12570  version_type=windows
12571  shrext_cmds=".dll"
12572  need_version=no
12573  need_lib_prefix=no
12574
12575  case $GCC,$host_os in
12576  yes,cygwin* | yes,mingw* | yes,pw32*)
12577    library_names_spec='$libname.dll.a'
12578    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12579    postinstall_cmds='base_file=`basename \${file}`~
12580      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12581      dldir=$destdir/`dirname \$dlpath`~
12582      test -d \$dldir || mkdir -p \$dldir~
12583      $install_prog $dir/$dlname \$dldir/$dlname~
12584      chmod a+x \$dldir/$dlname'
12585    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12586      dlpath=$dir/\$dldll~
12587       $rm \$dlpath'
12588    shlibpath_overrides_runpath=yes
12589
12590    case $host_os in
12591    cygwin*)
12592      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12593      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12594      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12595      ;;
12596    mingw*)
12597      # MinGW DLLs use traditional 'lib' prefix
12598      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12599      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12600      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12601        # It is most probably a Windows format PATH printed by
12602        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12603        # path with ; separators, and with drive letters. We can handle the
12604        # drive letters (cygwin fileutils understands them), so leave them,
12605        # especially as we might pass files found there to a mingw objdump,
12606        # which wouldn't understand a cygwinified path. Ahh.
12607        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12608      else
12609        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12610      fi
12611      ;;
12612    pw32*)
12613      # pw32 DLLs use 'pw' prefix rather than 'lib'
12614      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12615      ;;
12616    esac
12617    ;;
12618
12619  *)
12620    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12621    ;;
12622  esac
12623  dynamic_linker='Win32 ld.exe'
12624  # FIXME: first we should search . and the directory the executable is in
12625  shlibpath_var=PATH
12626  ;;
12627
12628darwin* | rhapsody*)
12629  dynamic_linker="$host_os dyld"
12630  version_type=darwin
12631  need_lib_prefix=no
12632  need_version=no
12633  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12634  soname_spec='${libname}${release}${major}$shared_ext'
12635  shlibpath_overrides_runpath=yes
12636  shlibpath_var=DYLD_LIBRARY_PATH
12637  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12638  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12639  if test "$GCC" = yes; then
12640    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12641  else
12642    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12643  fi
12644  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12645  ;;
12646
12647dgux*)
12648  version_type=linux
12649  need_lib_prefix=no
12650  need_version=no
12651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12652  soname_spec='${libname}${release}${shared_ext}$major'
12653  shlibpath_var=LD_LIBRARY_PATH
12654  ;;
12655
12656freebsd1*)
12657  dynamic_linker=no
12658  ;;
12659
12660kfreebsd*-gnu)
12661  version_type=linux
12662  need_lib_prefix=no
12663  need_version=no
12664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12665  soname_spec='${libname}${release}${shared_ext}$major'
12666  shlibpath_var=LD_LIBRARY_PATH
12667  shlibpath_overrides_runpath=no
12668  hardcode_into_libs=yes
12669  dynamic_linker='GNU ld.so'
12670  ;;
12671
12672freebsd* | dragonfly*)
12673  # DragonFly does not have aout.  When/if they implement a new
12674  # versioning mechanism, adjust this.
12675  if test -x /usr/bin/objformat; then
12676    objformat=`/usr/bin/objformat`
12677  else
12678    case $host_os in
12679    freebsd[123]*) objformat=aout ;;
12680    *) objformat=elf ;;
12681    esac
12682  fi
12683  version_type=freebsd-$objformat
12684  case $version_type in
12685    freebsd-elf*)
12686      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12687      need_version=no
12688      need_lib_prefix=no
12689      ;;
12690    freebsd-*)
12691      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12692      need_version=yes
12693      ;;
12694  esac
12695  shlibpath_var=LD_LIBRARY_PATH
12696  case $host_os in
12697  freebsd2*)
12698    shlibpath_overrides_runpath=yes
12699    ;;
12700  freebsd3.[01]* | freebsdelf3.[01]*)
12701    shlibpath_overrides_runpath=yes
12702    hardcode_into_libs=yes
12703    ;;
12704  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12705  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12706    shlibpath_overrides_runpath=no
12707    hardcode_into_libs=yes
12708    ;;
12709  freebsd*) # from 4.6 on
12710    shlibpath_overrides_runpath=yes
12711    hardcode_into_libs=yes
12712    ;;
12713  esac
12714  ;;
12715
12716gnu*)
12717  version_type=linux
12718  need_lib_prefix=no
12719  need_version=no
12720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12721  soname_spec='${libname}${release}${shared_ext}$major'
12722  shlibpath_var=LD_LIBRARY_PATH
12723  hardcode_into_libs=yes
12724  ;;
12725
12726hpux9* | hpux10* | hpux11*)
12727  # Give a soname corresponding to the major version so that dld.sl refuses to
12728  # link against other versions.
12729  version_type=sunos
12730  need_lib_prefix=no
12731  need_version=no
12732  case $host_cpu in
12733  ia64*)
12734    shrext_cmds='.so'
12735    hardcode_into_libs=yes
12736    dynamic_linker="$host_os dld.so"
12737    shlibpath_var=LD_LIBRARY_PATH
12738    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12739    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12740    soname_spec='${libname}${release}${shared_ext}$major'
12741    if test "X$HPUX_IA64_MODE" = X32; then
12742      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12743    else
12744      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12745    fi
12746    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12747    ;;
12748   hppa*64*)
12749     shrext_cmds='.sl'
12750     hardcode_into_libs=yes
12751     dynamic_linker="$host_os dld.sl"
12752     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12753     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12755     soname_spec='${libname}${release}${shared_ext}$major'
12756     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12757     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12758     ;;
12759   *)
12760    shrext_cmds='.sl'
12761    dynamic_linker="$host_os dld.sl"
12762    shlibpath_var=SHLIB_PATH
12763    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12764    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12765    soname_spec='${libname}${release}${shared_ext}$major'
12766    ;;
12767  esac
12768  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12769  postinstall_cmds='chmod 555 $lib'
12770  ;;
12771
12772interix3*)
12773  version_type=linux
12774  need_lib_prefix=no
12775  need_version=no
12776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12777  soname_spec='${libname}${release}${shared_ext}$major'
12778  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12779  shlibpath_var=LD_LIBRARY_PATH
12780  shlibpath_overrides_runpath=no
12781  hardcode_into_libs=yes
12782  ;;
12783
12784irix5* | irix6* | nonstopux*)
12785  case $host_os in
12786    nonstopux*) version_type=nonstopux ;;
12787    *)
12788	if test "$lt_cv_prog_gnu_ld" = yes; then
12789		version_type=linux
12790	else
12791		version_type=irix
12792	fi ;;
12793  esac
12794  need_lib_prefix=no
12795  need_version=no
12796  soname_spec='${libname}${release}${shared_ext}$major'
12797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12798  case $host_os in
12799  irix5* | nonstopux*)
12800    libsuff= shlibsuff=
12801    ;;
12802  *)
12803    case $LD in # libtool.m4 will add one of these switches to LD
12804    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12805      libsuff= shlibsuff= libmagic=32-bit;;
12806    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12807      libsuff=32 shlibsuff=N32 libmagic=N32;;
12808    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12809      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12810    *) libsuff= shlibsuff= libmagic=never-match;;
12811    esac
12812    ;;
12813  esac
12814  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12815  shlibpath_overrides_runpath=no
12816  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12817  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12818  hardcode_into_libs=yes
12819  ;;
12820
12821# No shared lib support for Linux oldld, aout, or coff.
12822linux*oldld* | linux*aout* | linux*coff*)
12823  dynamic_linker=no
12824  ;;
12825
12826# This must be Linux ELF.
12827linux*)
12828  version_type=linux
12829  need_lib_prefix=no
12830  need_version=no
12831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12832  soname_spec='${libname}${release}${shared_ext}$major'
12833  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12834  shlibpath_var=LD_LIBRARY_PATH
12835  shlibpath_overrides_runpath=no
12836  # This implies no fast_install, which is unacceptable.
12837  # Some rework will be needed to allow for fast_install
12838  # before this can be enabled.
12839  hardcode_into_libs=yes
12840
12841  # Append ld.so.conf contents to the search path
12842  if test -f /etc/ld.so.conf; then
12843    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12844    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12845  fi
12846
12847  # We used to test for /lib/ld.so.1 and disable shared libraries on
12848  # powerpc, because MkLinux only supported shared libraries with the
12849  # GNU dynamic linker.  Since this was broken with cross compilers,
12850  # most powerpc-linux boxes support dynamic linking these days and
12851  # people can always --disable-shared, the test was removed, and we
12852  # assume the GNU/Linux dynamic linker is in use.
12853  dynamic_linker='GNU/Linux ld.so'
12854  ;;
12855
12856knetbsd*-gnu)
12857  version_type=linux
12858  need_lib_prefix=no
12859  need_version=no
12860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12861  soname_spec='${libname}${release}${shared_ext}$major'
12862  shlibpath_var=LD_LIBRARY_PATH
12863  shlibpath_overrides_runpath=no
12864  hardcode_into_libs=yes
12865  dynamic_linker='GNU ld.so'
12866  ;;
12867
12868netbsd*)
12869  version_type=sunos
12870  need_lib_prefix=no
12871  need_version=no
12872  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12873    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12874    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12875    dynamic_linker='NetBSD (a.out) ld.so'
12876  else
12877    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12878    soname_spec='${libname}${release}${shared_ext}$major'
12879    dynamic_linker='NetBSD ld.elf_so'
12880  fi
12881  shlibpath_var=LD_LIBRARY_PATH
12882  shlibpath_overrides_runpath=yes
12883  hardcode_into_libs=yes
12884  ;;
12885
12886newsos6)
12887  version_type=linux
12888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12889  shlibpath_var=LD_LIBRARY_PATH
12890  shlibpath_overrides_runpath=yes
12891  ;;
12892
12893nto-qnx*)
12894  version_type=linux
12895  need_lib_prefix=no
12896  need_version=no
12897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12898  soname_spec='${libname}${release}${shared_ext}$major'
12899  shlibpath_var=LD_LIBRARY_PATH
12900  shlibpath_overrides_runpath=yes
12901  ;;
12902
12903openbsd*)
12904  version_type=sunos
12905  sys_lib_dlsearch_path_spec="/usr/lib"
12906  need_lib_prefix=no
12907  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12908  case $host_os in
12909    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12910    *)                         need_version=no  ;;
12911  esac
12912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12913  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12914  shlibpath_var=LD_LIBRARY_PATH
12915  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12916    case $host_os in
12917      openbsd2.[89] | openbsd2.[89].*)
12918	shlibpath_overrides_runpath=no
12919	;;
12920      *)
12921	shlibpath_overrides_runpath=yes
12922	;;
12923      esac
12924  else
12925    shlibpath_overrides_runpath=yes
12926  fi
12927  ;;
12928
12929os2*)
12930  libname_spec='$name'
12931  shrext_cmds=".dll"
12932  need_lib_prefix=no
12933  library_names_spec='$libname${shared_ext} $libname.a'
12934  dynamic_linker='OS/2 ld.exe'
12935  shlibpath_var=LIBPATH
12936  ;;
12937
12938osf3* | osf4* | osf5*)
12939  version_type=osf
12940  need_lib_prefix=no
12941  need_version=no
12942  soname_spec='${libname}${release}${shared_ext}$major'
12943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12944  shlibpath_var=LD_LIBRARY_PATH
12945  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12946  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12947  ;;
12948
12949solaris*)
12950  version_type=linux
12951  need_lib_prefix=no
12952  need_version=no
12953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12954  soname_spec='${libname}${release}${shared_ext}$major'
12955  shlibpath_var=LD_LIBRARY_PATH
12956  shlibpath_overrides_runpath=yes
12957  hardcode_into_libs=yes
12958  # ldd complains unless libraries are executable
12959  postinstall_cmds='chmod +x $lib'
12960  ;;
12961
12962sunos4*)
12963  version_type=sunos
12964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12965  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12966  shlibpath_var=LD_LIBRARY_PATH
12967  shlibpath_overrides_runpath=yes
12968  if test "$with_gnu_ld" = yes; then
12969    need_lib_prefix=no
12970  fi
12971  need_version=yes
12972  ;;
12973
12974sysv4 | sysv4.3*)
12975  version_type=linux
12976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12977  soname_spec='${libname}${release}${shared_ext}$major'
12978  shlibpath_var=LD_LIBRARY_PATH
12979  case $host_vendor in
12980    sni)
12981      shlibpath_overrides_runpath=no
12982      need_lib_prefix=no
12983      export_dynamic_flag_spec='${wl}-Blargedynsym'
12984      runpath_var=LD_RUN_PATH
12985      ;;
12986    siemens)
12987      need_lib_prefix=no
12988      ;;
12989    motorola)
12990      need_lib_prefix=no
12991      need_version=no
12992      shlibpath_overrides_runpath=no
12993      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12994      ;;
12995  esac
12996  ;;
12997
12998sysv4*MP*)
12999  if test -d /usr/nec ;then
13000    version_type=linux
13001    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13002    soname_spec='$libname${shared_ext}.$major'
13003    shlibpath_var=LD_LIBRARY_PATH
13004  fi
13005  ;;
13006
13007sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13008  version_type=freebsd-elf
13009  need_lib_prefix=no
13010  need_version=no
13011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13012  soname_spec='${libname}${release}${shared_ext}$major'
13013  shlibpath_var=LD_LIBRARY_PATH
13014  hardcode_into_libs=yes
13015  if test "$with_gnu_ld" = yes; then
13016    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13017    shlibpath_overrides_runpath=no
13018  else
13019    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13020    shlibpath_overrides_runpath=yes
13021    case $host_os in
13022      sco3.2v5*)
13023        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13024	;;
13025    esac
13026  fi
13027  sys_lib_dlsearch_path_spec='/usr/lib'
13028  ;;
13029
13030uts4*)
13031  version_type=linux
13032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033  soname_spec='${libname}${release}${shared_ext}$major'
13034  shlibpath_var=LD_LIBRARY_PATH
13035  ;;
13036
13037*)
13038  dynamic_linker=no
13039  ;;
13040esac
13041{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13042echo "${ECHO_T}$dynamic_linker" >&6; }
13043test "$dynamic_linker" = no && can_build_shared=no
13044
13045variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13046if test "$GCC" = yes; then
13047  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13048fi
13049
13050{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13051echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13052hardcode_action_CXX=
13053if test -n "$hardcode_libdir_flag_spec_CXX" || \
13054   test -n "$runpath_var_CXX" || \
13055   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13056
13057  # We can hardcode non-existant directories.
13058  if test "$hardcode_direct_CXX" != no &&
13059     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13060     # have to relink, otherwise we might link with an installed library
13061     # when we should be linking with a yet-to-be-installed one
13062     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13063     test "$hardcode_minus_L_CXX" != no; then
13064    # Linking always hardcodes the temporary library directory.
13065    hardcode_action_CXX=relink
13066  else
13067    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13068    hardcode_action_CXX=immediate
13069  fi
13070else
13071  # We cannot hardcode anything, or else we can only hardcode existing
13072  # directories.
13073  hardcode_action_CXX=unsupported
13074fi
13075{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13076echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13077
13078if test "$hardcode_action_CXX" = relink; then
13079  # Fast installation is not supported
13080  enable_fast_install=no
13081elif test "$shlibpath_overrides_runpath" = yes ||
13082     test "$enable_shared" = no; then
13083  # Fast installation is not necessary
13084  enable_fast_install=needless
13085fi
13086
13087
13088# The else clause should only fire when bootstrapping the
13089# libtool distribution, otherwise you forgot to ship ltmain.sh
13090# with your package, and you will get complaints that there are
13091# no rules to generate ltmain.sh.
13092if test -f "$ltmain"; then
13093  # See if we are running on zsh, and set the options which allow our commands through
13094  # without removal of \ escapes.
13095  if test -n "${ZSH_VERSION+set}" ; then
13096    setopt NO_GLOB_SUBST
13097  fi
13098  # Now quote all the things that may contain metacharacters while being
13099  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13100  # variables and quote the copies for generation of the libtool script.
13101  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13102    SED SHELL STRIP \
13103    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13104    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13105    deplibs_check_method reload_flag reload_cmds need_locks \
13106    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13107    lt_cv_sys_global_symbol_to_c_name_address \
13108    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13109    old_postinstall_cmds old_postuninstall_cmds \
13110    compiler_CXX \
13111    CC_CXX \
13112    LD_CXX \
13113    lt_prog_compiler_wl_CXX \
13114    lt_prog_compiler_pic_CXX \
13115    lt_prog_compiler_static_CXX \
13116    lt_prog_compiler_no_builtin_flag_CXX \
13117    export_dynamic_flag_spec_CXX \
13118    thread_safe_flag_spec_CXX \
13119    whole_archive_flag_spec_CXX \
13120    enable_shared_with_static_runtimes_CXX \
13121    old_archive_cmds_CXX \
13122    old_archive_from_new_cmds_CXX \
13123    predep_objects_CXX \
13124    postdep_objects_CXX \
13125    predeps_CXX \
13126    postdeps_CXX \
13127    compiler_lib_search_path_CXX \
13128    archive_cmds_CXX \
13129    archive_expsym_cmds_CXX \
13130    postinstall_cmds_CXX \
13131    postuninstall_cmds_CXX \
13132    old_archive_from_expsyms_cmds_CXX \
13133    allow_undefined_flag_CXX \
13134    no_undefined_flag_CXX \
13135    export_symbols_cmds_CXX \
13136    hardcode_libdir_flag_spec_CXX \
13137    hardcode_libdir_flag_spec_ld_CXX \
13138    hardcode_libdir_separator_CXX \
13139    hardcode_automatic_CXX \
13140    module_cmds_CXX \
13141    module_expsym_cmds_CXX \
13142    lt_cv_prog_compiler_c_o_CXX \
13143    exclude_expsyms_CXX \
13144    include_expsyms_CXX; do
13145
13146    case $var in
13147    old_archive_cmds_CXX | \
13148    old_archive_from_new_cmds_CXX | \
13149    archive_cmds_CXX | \
13150    archive_expsym_cmds_CXX | \
13151    module_cmds_CXX | \
13152    module_expsym_cmds_CXX | \
13153    old_archive_from_expsyms_cmds_CXX | \
13154    export_symbols_cmds_CXX | \
13155    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13156    postinstall_cmds | postuninstall_cmds | \
13157    old_postinstall_cmds | old_postuninstall_cmds | \
13158    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13159      # Double-quote double-evaled strings.
13160      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13161      ;;
13162    *)
13163      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13164      ;;
13165    esac
13166  done
13167
13168  case $lt_echo in
13169  *'\$0 --fallback-echo"')
13170    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13171    ;;
13172  esac
13173
13174cfgfile="$ofile"
13175
13176  cat <<__EOF__ >> "$cfgfile"
13177# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13178
13179# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13180
13181# Shell to use when invoking shell scripts.
13182SHELL=$lt_SHELL
13183
13184# Whether or not to build shared libraries.
13185build_libtool_libs=$enable_shared
13186
13187# Whether or not to build static libraries.
13188build_old_libs=$enable_static
13189
13190# Whether or not to add -lc for building shared libraries.
13191build_libtool_need_lc=$archive_cmds_need_lc_CXX
13192
13193# Whether or not to disallow shared libs when runtime libs are static
13194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13195
13196# Whether or not to optimize for fast installation.
13197fast_install=$enable_fast_install
13198
13199# The host system.
13200host_alias=$host_alias
13201host=$host
13202host_os=$host_os
13203
13204# The build system.
13205build_alias=$build_alias
13206build=$build
13207build_os=$build_os
13208
13209# An echo program that does not interpret backslashes.
13210echo=$lt_echo
13211
13212# The archiver.
13213AR=$lt_AR
13214AR_FLAGS=$lt_AR_FLAGS
13215
13216# A C compiler.
13217LTCC=$lt_LTCC
13218
13219# LTCC compiler flags.
13220LTCFLAGS=$lt_LTCFLAGS
13221
13222# A language-specific compiler.
13223CC=$lt_compiler_CXX
13224
13225# Is the compiler the GNU C compiler?
13226with_gcc=$GCC_CXX
13227
13228# An ERE matcher.
13229EGREP=$lt_EGREP
13230
13231# The linker used to build libraries.
13232LD=$lt_LD_CXX
13233
13234# Whether we need hard or soft links.
13235LN_S=$lt_LN_S
13236
13237# A BSD-compatible nm program.
13238NM=$lt_NM
13239
13240# A symbol stripping program
13241STRIP=$lt_STRIP
13242
13243# Used to examine libraries when file_magic_cmd begins "file"
13244MAGIC_CMD=$MAGIC_CMD
13245
13246# Used on cygwin: DLL creation program.
13247DLLTOOL="$DLLTOOL"
13248
13249# Used on cygwin: object dumper.
13250OBJDUMP="$OBJDUMP"
13251
13252# Used on cygwin: assembler.
13253AS="$AS"
13254
13255# The name of the directory that contains temporary libtool files.
13256objdir=$objdir
13257
13258# How to create reloadable object files.
13259reload_flag=$lt_reload_flag
13260reload_cmds=$lt_reload_cmds
13261
13262# How to pass a linker flag through the compiler.
13263wl=$lt_lt_prog_compiler_wl_CXX
13264
13265# Object file suffix (normally "o").
13266objext="$ac_objext"
13267
13268# Old archive suffix (normally "a").
13269libext="$libext"
13270
13271# Shared library suffix (normally ".so").
13272shrext_cmds='$shrext_cmds'
13273
13274# Executable file suffix (normally "").
13275exeext="$exeext"
13276
13277# Additional compiler flags for building library objects.
13278pic_flag=$lt_lt_prog_compiler_pic_CXX
13279pic_mode=$pic_mode
13280
13281# What is the maximum length of a command?
13282max_cmd_len=$lt_cv_sys_max_cmd_len
13283
13284# Does compiler simultaneously support -c and -o options?
13285compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13286
13287# Must we lock files when doing compilation?
13288need_locks=$lt_need_locks
13289
13290# Do we need the lib prefix for modules?
13291need_lib_prefix=$need_lib_prefix
13292
13293# Do we need a version for libraries?
13294need_version=$need_version
13295
13296# Whether dlopen is supported.
13297dlopen_support=$enable_dlopen
13298
13299# Whether dlopen of programs is supported.
13300dlopen_self=$enable_dlopen_self
13301
13302# Whether dlopen of statically linked programs is supported.
13303dlopen_self_static=$enable_dlopen_self_static
13304
13305# Compiler flag to prevent dynamic linking.
13306link_static_flag=$lt_lt_prog_compiler_static_CXX
13307
13308# Compiler flag to turn off builtin functions.
13309no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13310
13311# Compiler flag to allow reflexive dlopens.
13312export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13313
13314# Compiler flag to generate shared objects directly from archives.
13315whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13316
13317# Compiler flag to generate thread-safe objects.
13318thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13319
13320# Library versioning type.
13321version_type=$version_type
13322
13323# Format of library name prefix.
13324libname_spec=$lt_libname_spec
13325
13326# List of archive names.  First name is the real one, the rest are links.
13327# The last name is the one that the linker finds with -lNAME.
13328library_names_spec=$lt_library_names_spec
13329
13330# The coded name of the library, if different from the real name.
13331soname_spec=$lt_soname_spec
13332
13333# Commands used to build and install an old-style archive.
13334RANLIB=$lt_RANLIB
13335old_archive_cmds=$lt_old_archive_cmds_CXX
13336old_postinstall_cmds=$lt_old_postinstall_cmds
13337old_postuninstall_cmds=$lt_old_postuninstall_cmds
13338
13339# Create an old-style archive from a shared archive.
13340old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13341
13342# Create a temporary old-style archive to link instead of a shared archive.
13343old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13344
13345# Commands used to build and install a shared archive.
13346archive_cmds=$lt_archive_cmds_CXX
13347archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13348postinstall_cmds=$lt_postinstall_cmds
13349postuninstall_cmds=$lt_postuninstall_cmds
13350
13351# Commands used to build a loadable module (assumed same as above if empty)
13352module_cmds=$lt_module_cmds_CXX
13353module_expsym_cmds=$lt_module_expsym_cmds_CXX
13354
13355# Commands to strip libraries.
13356old_striplib=$lt_old_striplib
13357striplib=$lt_striplib
13358
13359# Dependencies to place before the objects being linked to create a
13360# shared library.
13361predep_objects=$lt_predep_objects_CXX
13362
13363# Dependencies to place after the objects being linked to create a
13364# shared library.
13365postdep_objects=$lt_postdep_objects_CXX
13366
13367# Dependencies to place before the objects being linked to create a
13368# shared library.
13369predeps=$lt_predeps_CXX
13370
13371# Dependencies to place after the objects being linked to create a
13372# shared library.
13373postdeps=$lt_postdeps_CXX
13374
13375# The library search path used internally by the compiler when linking
13376# a shared library.
13377compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13378
13379# Method to check whether dependent libraries are shared objects.
13380deplibs_check_method=$lt_deplibs_check_method
13381
13382# Command to use when deplibs_check_method == file_magic.
13383file_magic_cmd=$lt_file_magic_cmd
13384
13385# Flag that allows shared libraries with undefined symbols to be built.
13386allow_undefined_flag=$lt_allow_undefined_flag_CXX
13387
13388# Flag that forces no undefined symbols.
13389no_undefined_flag=$lt_no_undefined_flag_CXX
13390
13391# Commands used to finish a libtool library installation in a directory.
13392finish_cmds=$lt_finish_cmds
13393
13394# Same as above, but a single script fragment to be evaled but not shown.
13395finish_eval=$lt_finish_eval
13396
13397# Take the output of nm and produce a listing of raw symbols and C names.
13398global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13399
13400# Transform the output of nm in a proper C declaration
13401global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13402
13403# Transform the output of nm in a C name address pair
13404global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13405
13406# This is the shared library runtime path variable.
13407runpath_var=$runpath_var
13408
13409# This is the shared library path variable.
13410shlibpath_var=$shlibpath_var
13411
13412# Is shlibpath searched before the hard-coded library search path?
13413shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13414
13415# How to hardcode a shared library path into an executable.
13416hardcode_action=$hardcode_action_CXX
13417
13418# Whether we should hardcode library paths into libraries.
13419hardcode_into_libs=$hardcode_into_libs
13420
13421# Flag to hardcode \$libdir into a binary during linking.
13422# This must work even if \$libdir does not exist.
13423hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13424
13425# If ld is used when linking, flag to hardcode \$libdir into
13426# a binary during linking. This must work even if \$libdir does
13427# not exist.
13428hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13429
13430# Whether we need a single -rpath flag with a separated argument.
13431hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13432
13433# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13434# resulting binary.
13435hardcode_direct=$hardcode_direct_CXX
13436
13437# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13438# resulting binary.
13439hardcode_minus_L=$hardcode_minus_L_CXX
13440
13441# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13442# the resulting binary.
13443hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13444
13445# Set to yes if building a shared library automatically hardcodes DIR into the library
13446# and all subsequent libraries and executables linked against it.
13447hardcode_automatic=$hardcode_automatic_CXX
13448
13449# Variables whose values should be saved in libtool wrapper scripts and
13450# restored at relink time.
13451variables_saved_for_relink="$variables_saved_for_relink"
13452
13453# Whether libtool must link a program against all its dependency libraries.
13454link_all_deplibs=$link_all_deplibs_CXX
13455
13456# Compile-time system search path for libraries
13457sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13458
13459# Run-time system search path for libraries
13460sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13461
13462# Fix the shell variable \$srcfile for the compiler.
13463fix_srcfile_path="$fix_srcfile_path_CXX"
13464
13465# Set to yes if exported symbols are required.
13466always_export_symbols=$always_export_symbols_CXX
13467
13468# The commands to list exported symbols.
13469export_symbols_cmds=$lt_export_symbols_cmds_CXX
13470
13471# The commands to extract the exported symbol list from a shared archive.
13472extract_expsyms_cmds=$lt_extract_expsyms_cmds
13473
13474# Symbols that should not be listed in the preloaded symbols.
13475exclude_expsyms=$lt_exclude_expsyms_CXX
13476
13477# Symbols that must always be exported.
13478include_expsyms=$lt_include_expsyms_CXX
13479
13480# ### END LIBTOOL TAG CONFIG: $tagname
13481
13482__EOF__
13483
13484
13485else
13486  # If there is no Makefile yet, we rely on a make rule to execute
13487  # `config.status --recheck' to rerun these tests and create the
13488  # libtool script then.
13489  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13490  if test -f "$ltmain_in"; then
13491    test -f Makefile && make "$ltmain"
13492  fi
13493fi
13494
13495
13496ac_ext=c
13497ac_cpp='$CPP $CPPFLAGS'
13498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13500ac_compiler_gnu=$ac_cv_c_compiler_gnu
13501
13502CC=$lt_save_CC
13503LDCXX=$LD
13504LD=$lt_save_LD
13505GCC=$lt_save_GCC
13506with_gnu_ldcxx=$with_gnu_ld
13507with_gnu_ld=$lt_save_with_gnu_ld
13508lt_cv_path_LDCXX=$lt_cv_path_LD
13509lt_cv_path_LD=$lt_save_path_LD
13510lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13511lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13512
13513	else
13514	  tagname=""
13515	fi
13516	;;
13517
13518      F77)
13519	if test -n "$F77" && test "X$F77" != "Xno"; then
13520
13521ac_ext=f
13522ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13523ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13524ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13525
13526
13527archive_cmds_need_lc_F77=no
13528allow_undefined_flag_F77=
13529always_export_symbols_F77=no
13530archive_expsym_cmds_F77=
13531export_dynamic_flag_spec_F77=
13532hardcode_direct_F77=no
13533hardcode_libdir_flag_spec_F77=
13534hardcode_libdir_flag_spec_ld_F77=
13535hardcode_libdir_separator_F77=
13536hardcode_minus_L_F77=no
13537hardcode_automatic_F77=no
13538module_cmds_F77=
13539module_expsym_cmds_F77=
13540link_all_deplibs_F77=unknown
13541old_archive_cmds_F77=$old_archive_cmds
13542no_undefined_flag_F77=
13543whole_archive_flag_spec_F77=
13544enable_shared_with_static_runtimes_F77=no
13545
13546# Source file extension for f77 test sources.
13547ac_ext=f
13548
13549# Object file extension for compiled f77 test sources.
13550objext=o
13551objext_F77=$objext
13552
13553# Code to be used in simple compile tests
13554lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13555
13556# Code to be used in simple link tests
13557lt_simple_link_test_code="      program t\n      end\n"
13558
13559# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13560
13561# If no C compiler was specified, use CC.
13562LTCC=${LTCC-"$CC"}
13563
13564# If no C compiler flags were specified, use CFLAGS.
13565LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13566
13567# Allow CC to be a program name with arguments.
13568compiler=$CC
13569
13570
13571# save warnings/boilerplate of simple test code
13572ac_outfile=conftest.$ac_objext
13573printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13574eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13575_lt_compiler_boilerplate=`cat conftest.err`
13576$rm conftest*
13577
13578ac_outfile=conftest.$ac_objext
13579printf "$lt_simple_link_test_code" >conftest.$ac_ext
13580eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13581_lt_linker_boilerplate=`cat conftest.err`
13582$rm conftest*
13583
13584
13585# Allow CC to be a program name with arguments.
13586lt_save_CC="$CC"
13587CC=${F77-"f77"}
13588compiler=$CC
13589compiler_F77=$CC
13590for cc_temp in $compiler""; do
13591  case $cc_temp in
13592    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13593    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13594    \-*) ;;
13595    *) break;;
13596  esac
13597done
13598cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13599
13600
13601{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13602echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13603{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13604echo "${ECHO_T}$can_build_shared" >&6; }
13605
13606{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13607echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13608test "$can_build_shared" = "no" && enable_shared=no
13609
13610# On AIX, shared libraries and static libraries use the same namespace, and
13611# are all built from PIC.
13612case $host_os in
13613aix3*)
13614  test "$enable_shared" = yes && enable_static=no
13615  if test -n "$RANLIB"; then
13616    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13617    postinstall_cmds='$RANLIB $lib'
13618  fi
13619  ;;
13620aix4* | aix5*)
13621  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13622    test "$enable_shared" = yes && enable_static=no
13623  fi
13624  ;;
13625esac
13626{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13627echo "${ECHO_T}$enable_shared" >&6; }
13628
13629{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13630echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13631# Make sure either enable_shared or enable_static is yes.
13632test "$enable_shared" = yes || enable_static=yes
13633{ echo "$as_me:$LINENO: result: $enable_static" >&5
13634echo "${ECHO_T}$enable_static" >&6; }
13635
13636GCC_F77="$G77"
13637LD_F77="$LD"
13638
13639lt_prog_compiler_wl_F77=
13640lt_prog_compiler_pic_F77=
13641lt_prog_compiler_static_F77=
13642
13643{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13644echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13645
13646  if test "$GCC" = yes; then
13647    lt_prog_compiler_wl_F77='-Wl,'
13648    lt_prog_compiler_static_F77='-static'
13649
13650    case $host_os in
13651      aix*)
13652      # All AIX code is PIC.
13653      if test "$host_cpu" = ia64; then
13654	# AIX 5 now supports IA64 processor
13655	lt_prog_compiler_static_F77='-Bstatic'
13656      fi
13657      ;;
13658
13659    amigaos*)
13660      # FIXME: we need at least 68020 code to build shared libraries, but
13661      # adding the `-m68020' flag to GCC prevents building anything better,
13662      # like `-m68040'.
13663      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13664      ;;
13665
13666    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13667      # PIC is the default for these OSes.
13668      ;;
13669
13670    mingw* | pw32* | os2*)
13671      # This hack is so that the source file can tell whether it is being
13672      # built for inclusion in a dll (and should export symbols for example).
13673      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13674      ;;
13675
13676    darwin* | rhapsody*)
13677      # PIC is the default on this platform
13678      # Common symbols not allowed in MH_DYLIB files
13679      lt_prog_compiler_pic_F77='-fno-common'
13680      ;;
13681
13682    interix3*)
13683      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13684      # Instead, we relocate shared libraries at runtime.
13685      ;;
13686
13687    msdosdjgpp*)
13688      # Just because we use GCC doesn't mean we suddenly get shared libraries
13689      # on systems that don't support them.
13690      lt_prog_compiler_can_build_shared_F77=no
13691      enable_shared=no
13692      ;;
13693
13694    sysv4*MP*)
13695      if test -d /usr/nec; then
13696	lt_prog_compiler_pic_F77=-Kconform_pic
13697      fi
13698      ;;
13699
13700    hpux*)
13701      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13702      # not for PA HP-UX.
13703      case $host_cpu in
13704      hppa*64*|ia64*)
13705	# +Z the default
13706	;;
13707      *)
13708	lt_prog_compiler_pic_F77='-fPIC'
13709	;;
13710      esac
13711      ;;
13712
13713    *)
13714      lt_prog_compiler_pic_F77='-fPIC'
13715      ;;
13716    esac
13717  else
13718    # PORTME Check for flag to pass linker flags through the system compiler.
13719    case $host_os in
13720    aix*)
13721      lt_prog_compiler_wl_F77='-Wl,'
13722      if test "$host_cpu" = ia64; then
13723	# AIX 5 now supports IA64 processor
13724	lt_prog_compiler_static_F77='-Bstatic'
13725      else
13726	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13727      fi
13728      ;;
13729      darwin*)
13730        # PIC is the default on this platform
13731        # Common symbols not allowed in MH_DYLIB files
13732       case $cc_basename in
13733         xlc*)
13734         lt_prog_compiler_pic_F77='-qnocommon'
13735         lt_prog_compiler_wl_F77='-Wl,'
13736         ;;
13737       esac
13738       ;;
13739
13740    mingw* | pw32* | os2*)
13741      # This hack is so that the source file can tell whether it is being
13742      # built for inclusion in a dll (and should export symbols for example).
13743      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13744      ;;
13745
13746    hpux9* | hpux10* | hpux11*)
13747      lt_prog_compiler_wl_F77='-Wl,'
13748      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13749      # not for PA HP-UX.
13750      case $host_cpu in
13751      hppa*64*|ia64*)
13752	# +Z the default
13753	;;
13754      *)
13755	lt_prog_compiler_pic_F77='+Z'
13756	;;
13757      esac
13758      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13759      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13760      ;;
13761
13762    irix5* | irix6* | nonstopux*)
13763      lt_prog_compiler_wl_F77='-Wl,'
13764      # PIC (with -KPIC) is the default.
13765      lt_prog_compiler_static_F77='-non_shared'
13766      ;;
13767
13768    newsos6)
13769      lt_prog_compiler_pic_F77='-KPIC'
13770      lt_prog_compiler_static_F77='-Bstatic'
13771      ;;
13772
13773    linux*)
13774      case $cc_basename in
13775      icc* | ecc*)
13776	lt_prog_compiler_wl_F77='-Wl,'
13777	lt_prog_compiler_pic_F77='-KPIC'
13778	lt_prog_compiler_static_F77='-static'
13779        ;;
13780      pgcc* | pgf77* | pgf90* | pgf95*)
13781        # Portland Group compilers (*not* the Pentium gcc compiler,
13782	# which looks to be a dead project)
13783	lt_prog_compiler_wl_F77='-Wl,'
13784	lt_prog_compiler_pic_F77='-fpic'
13785	lt_prog_compiler_static_F77='-Bstatic'
13786        ;;
13787      ccc*)
13788        lt_prog_compiler_wl_F77='-Wl,'
13789        # All Alpha code is PIC.
13790        lt_prog_compiler_static_F77='-non_shared'
13791        ;;
13792      esac
13793      ;;
13794
13795    osf3* | osf4* | osf5*)
13796      lt_prog_compiler_wl_F77='-Wl,'
13797      # All OSF/1 code is PIC.
13798      lt_prog_compiler_static_F77='-non_shared'
13799      ;;
13800
13801    solaris*)
13802      lt_prog_compiler_pic_F77='-KPIC'
13803      lt_prog_compiler_static_F77='-Bstatic'
13804      case $cc_basename in
13805      f77* | f90* | f95*)
13806	lt_prog_compiler_wl_F77='-Qoption ld ';;
13807      *)
13808	lt_prog_compiler_wl_F77='-Wl,';;
13809      esac
13810      ;;
13811
13812    sunos4*)
13813      lt_prog_compiler_wl_F77='-Qoption ld '
13814      lt_prog_compiler_pic_F77='-PIC'
13815      lt_prog_compiler_static_F77='-Bstatic'
13816      ;;
13817
13818    sysv4 | sysv4.2uw2* | sysv4.3*)
13819      lt_prog_compiler_wl_F77='-Wl,'
13820      lt_prog_compiler_pic_F77='-KPIC'
13821      lt_prog_compiler_static_F77='-Bstatic'
13822      ;;
13823
13824    sysv4*MP*)
13825      if test -d /usr/nec ;then
13826	lt_prog_compiler_pic_F77='-Kconform_pic'
13827	lt_prog_compiler_static_F77='-Bstatic'
13828      fi
13829      ;;
13830
13831    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13832      lt_prog_compiler_wl_F77='-Wl,'
13833      lt_prog_compiler_pic_F77='-KPIC'
13834      lt_prog_compiler_static_F77='-Bstatic'
13835      ;;
13836
13837    unicos*)
13838      lt_prog_compiler_wl_F77='-Wl,'
13839      lt_prog_compiler_can_build_shared_F77=no
13840      ;;
13841
13842    uts4*)
13843      lt_prog_compiler_pic_F77='-pic'
13844      lt_prog_compiler_static_F77='-Bstatic'
13845      ;;
13846
13847    *)
13848      lt_prog_compiler_can_build_shared_F77=no
13849      ;;
13850    esac
13851  fi
13852
13853{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13854echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13855
13856#
13857# Check to make sure the PIC flag actually works.
13858#
13859if test -n "$lt_prog_compiler_pic_F77"; then
13860
13861{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13862echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13863if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13864  echo $ECHO_N "(cached) $ECHO_C" >&6
13865else
13866  lt_prog_compiler_pic_works_F77=no
13867  ac_outfile=conftest.$ac_objext
13868   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13869   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13870   # Insert the option either (1) after the last *FLAGS variable, or
13871   # (2) before a word containing "conftest.", or (3) at the end.
13872   # Note that $ac_compile itself does not contain backslashes and begins
13873   # with a dollar sign (not a hyphen), so the echo should work correctly.
13874   # The option is referenced via a variable to avoid confusing sed.
13875   lt_compile=`echo "$ac_compile" | $SED \
13876   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13877   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13878   -e 's:$: $lt_compiler_flag:'`
13879   (eval echo "\"\$as_me:13879: $lt_compile\"" >&5)
13880   (eval "$lt_compile" 2>conftest.err)
13881   ac_status=$?
13882   cat conftest.err >&5
13883   echo "$as_me:13883: \$? = $ac_status" >&5
13884   if (exit $ac_status) && test -s "$ac_outfile"; then
13885     # The compiler can only warn and ignore the option if not recognized
13886     # So say no if there are warnings other than the usual output.
13887     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13888     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13889     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13890       lt_prog_compiler_pic_works_F77=yes
13891     fi
13892   fi
13893   $rm conftest*
13894
13895fi
13896{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13897echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13898
13899if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13900    case $lt_prog_compiler_pic_F77 in
13901     "" | " "*) ;;
13902     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13903     esac
13904else
13905    lt_prog_compiler_pic_F77=
13906     lt_prog_compiler_can_build_shared_F77=no
13907fi
13908
13909fi
13910case $host_os in
13911  # For platforms which do not support PIC, -DPIC is meaningless:
13912  *djgpp*)
13913    lt_prog_compiler_pic_F77=
13914    ;;
13915  *)
13916    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13917    ;;
13918esac
13919
13920#
13921# Check to make sure the static flag actually works.
13922#
13923wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13924{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13925echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13926if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13927  echo $ECHO_N "(cached) $ECHO_C" >&6
13928else
13929  lt_prog_compiler_static_works_F77=no
13930   save_LDFLAGS="$LDFLAGS"
13931   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13932   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13933   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13934     # The linker can only warn and ignore the option if not recognized
13935     # So say no if there are warnings
13936     if test -s conftest.err; then
13937       # Append any errors to the config.log.
13938       cat conftest.err 1>&5
13939       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13940       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13941       if diff conftest.exp conftest.er2 >/dev/null; then
13942         lt_prog_compiler_static_works_F77=yes
13943       fi
13944     else
13945       lt_prog_compiler_static_works_F77=yes
13946     fi
13947   fi
13948   $rm conftest*
13949   LDFLAGS="$save_LDFLAGS"
13950
13951fi
13952{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13953echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13954
13955if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13956    :
13957else
13958    lt_prog_compiler_static_F77=
13959fi
13960
13961
13962{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13963echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13964if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13965  echo $ECHO_N "(cached) $ECHO_C" >&6
13966else
13967  lt_cv_prog_compiler_c_o_F77=no
13968   $rm -r conftest 2>/dev/null
13969   mkdir conftest
13970   cd conftest
13971   mkdir out
13972   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13973
13974   lt_compiler_flag="-o out/conftest2.$ac_objext"
13975   # Insert the option either (1) after the last *FLAGS variable, or
13976   # (2) before a word containing "conftest.", or (3) at the end.
13977   # Note that $ac_compile itself does not contain backslashes and begins
13978   # with a dollar sign (not a hyphen), so the echo should work correctly.
13979   lt_compile=`echo "$ac_compile" | $SED \
13980   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13981   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13982   -e 's:$: $lt_compiler_flag:'`
13983   (eval echo "\"\$as_me:13983: $lt_compile\"" >&5)
13984   (eval "$lt_compile" 2>out/conftest.err)
13985   ac_status=$?
13986   cat out/conftest.err >&5
13987   echo "$as_me:13987: \$? = $ac_status" >&5
13988   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13989   then
13990     # The compiler can only warn and ignore the option if not recognized
13991     # So say no if there are warnings
13992     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13993     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13994     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13995       lt_cv_prog_compiler_c_o_F77=yes
13996     fi
13997   fi
13998   chmod u+w . 2>&5
13999   $rm conftest*
14000   # SGI C++ compiler will create directory out/ii_files/ for
14001   # template instantiation
14002   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14003   $rm out/* && rmdir out
14004   cd ..
14005   rmdir conftest
14006   $rm conftest*
14007
14008fi
14009{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14010echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14011
14012
14013hard_links="nottested"
14014if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14015  # do not overwrite the value of need_locks provided by the user
14016  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14017echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14018  hard_links=yes
14019  $rm conftest*
14020  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14021  touch conftest.a
14022  ln conftest.a conftest.b 2>&5 || hard_links=no
14023  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14024  { echo "$as_me:$LINENO: result: $hard_links" >&5
14025echo "${ECHO_T}$hard_links" >&6; }
14026  if test "$hard_links" = no; then
14027    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14028echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14029    need_locks=warn
14030  fi
14031else
14032  need_locks=no
14033fi
14034
14035{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14036echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14037
14038  runpath_var=
14039  allow_undefined_flag_F77=
14040  enable_shared_with_static_runtimes_F77=no
14041  archive_cmds_F77=
14042  archive_expsym_cmds_F77=
14043  old_archive_From_new_cmds_F77=
14044  old_archive_from_expsyms_cmds_F77=
14045  export_dynamic_flag_spec_F77=
14046  whole_archive_flag_spec_F77=
14047  thread_safe_flag_spec_F77=
14048  hardcode_libdir_flag_spec_F77=
14049  hardcode_libdir_flag_spec_ld_F77=
14050  hardcode_libdir_separator_F77=
14051  hardcode_direct_F77=no
14052  hardcode_minus_L_F77=no
14053  hardcode_shlibpath_var_F77=unsupported
14054  link_all_deplibs_F77=unknown
14055  hardcode_automatic_F77=no
14056  module_cmds_F77=
14057  module_expsym_cmds_F77=
14058  always_export_symbols_F77=no
14059  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14060  # include_expsyms should be a list of space-separated symbols to be *always*
14061  # included in the symbol list
14062  include_expsyms_F77=
14063  # exclude_expsyms can be an extended regexp of symbols to exclude
14064  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14065  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14066  # as well as any symbol that contains `d'.
14067  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14068  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14069  # platforms (ab)use it in PIC code, but their linkers get confused if
14070  # the symbol is explicitly referenced.  Since portable code cannot
14071  # rely on this symbol name, it's probably fine to never include it in
14072  # preloaded symbol tables.
14073  extract_expsyms_cmds=
14074  # Just being paranoid about ensuring that cc_basename is set.
14075  for cc_temp in $compiler""; do
14076  case $cc_temp in
14077    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14078    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14079    \-*) ;;
14080    *) break;;
14081  esac
14082done
14083cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14084
14085  case $host_os in
14086  cygwin* | mingw* | pw32*)
14087    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14088    # When not using gcc, we currently assume that we are using
14089    # Microsoft Visual C++.
14090    if test "$GCC" != yes; then
14091      with_gnu_ld=no
14092    fi
14093    ;;
14094  interix*)
14095    # we just hope/assume this is gcc and not c89 (= MSVC++)
14096    with_gnu_ld=yes
14097    ;;
14098  openbsd*)
14099    with_gnu_ld=no
14100    ;;
14101  esac
14102
14103  ld_shlibs_F77=yes
14104  if test "$with_gnu_ld" = yes; then
14105    # If archive_cmds runs LD, not CC, wlarc should be empty
14106    wlarc='${wl}'
14107
14108    # Set some defaults for GNU ld with shared library support. These
14109    # are reset later if shared libraries are not supported. Putting them
14110    # here allows them to be overridden if necessary.
14111    runpath_var=LD_RUN_PATH
14112    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14113    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14114    # ancient GNU ld didn't support --whole-archive et. al.
14115    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14116	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14117      else
14118  	whole_archive_flag_spec_F77=
14119    fi
14120    supports_anon_versioning=no
14121    case `$LD -v 2>/dev/null` in
14122      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14123      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14124      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14125      *\ 2.11.*) ;; # other 2.11 versions
14126      *) supports_anon_versioning=yes ;;
14127    esac
14128
14129    # See if GNU ld supports shared libraries.
14130    case $host_os in
14131    aix3* | aix4* | aix5*)
14132      # On AIX/PPC, the GNU linker is very broken
14133      if test "$host_cpu" != ia64; then
14134	ld_shlibs_F77=no
14135	cat <<EOF 1>&2
14136
14137*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14138*** to be unable to reliably create shared libraries on AIX.
14139*** Therefore, libtool is disabling shared libraries support.  If you
14140*** really care for shared libraries, you may want to modify your PATH
14141*** so that a non-GNU linker is found, and then restart.
14142
14143EOF
14144      fi
14145      ;;
14146
14147    amigaos*)
14148      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)'
14149      hardcode_libdir_flag_spec_F77='-L$libdir'
14150      hardcode_minus_L_F77=yes
14151
14152      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14153      # that the semantics of dynamic libraries on AmigaOS, at least up
14154      # to version 4, is to share data among multiple programs linked
14155      # with the same dynamic library.  Since this doesn't match the
14156      # behavior of shared libraries on other platforms, we can't use
14157      # them.
14158      ld_shlibs_F77=no
14159      ;;
14160
14161    beos*)
14162      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14163	allow_undefined_flag_F77=unsupported
14164	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14165	# support --undefined.  This deserves some investigation.  FIXME
14166	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14167      else
14168	ld_shlibs_F77=no
14169      fi
14170      ;;
14171
14172    cygwin* | mingw* | pw32*)
14173      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14174      # as there is no search path for DLLs.
14175      hardcode_libdir_flag_spec_F77='-L$libdir'
14176      allow_undefined_flag_F77=unsupported
14177      always_export_symbols_F77=no
14178      enable_shared_with_static_runtimes_F77=yes
14179      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14180
14181      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14182        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14183	# If the export-symbols file already is a .def file (1st line
14184	# is EXPORTS), use it as is; otherwise, prepend...
14185	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14186	  cp $export_symbols $output_objdir/$soname.def;
14187	else
14188	  echo EXPORTS > $output_objdir/$soname.def;
14189	  cat $export_symbols >> $output_objdir/$soname.def;
14190	fi~
14191	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14192      else
14193	ld_shlibs_F77=no
14194      fi
14195      ;;
14196
14197    interix3*)
14198      hardcode_direct_F77=no
14199      hardcode_shlibpath_var_F77=no
14200      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14201      export_dynamic_flag_spec_F77='${wl}-E'
14202      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14203      # Instead, shared libraries are loaded at an image base (0x10000000 by
14204      # default) and relocated if they conflict, which is a slow very memory
14205      # consuming and fragmenting process.  To avoid this, we pick a random,
14206      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14207      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14208      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'
14209      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'
14210      ;;
14211
14212    linux*)
14213      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14214	tmp_addflag=
14215	case $cc_basename,$host_cpu in
14216	pgcc*)				# Portland Group C compiler
14217	  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'
14218	  tmp_addflag=' $pic_flag'
14219	  ;;
14220	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14221	  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'
14222	  tmp_addflag=' $pic_flag -Mnomain' ;;
14223	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14224	  tmp_addflag=' -i_dynamic' ;;
14225	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14226	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14227	ifc* | ifort*)			# Intel Fortran compiler
14228	  tmp_addflag=' -nofor_main' ;;
14229	esac
14230	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14231
14232	if test $supports_anon_versioning = yes; then
14233	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14234  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14235  $echo "local: *; };" >> $output_objdir/$libname.ver~
14236	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14237	fi
14238      else
14239	ld_shlibs_F77=no
14240      fi
14241      ;;
14242
14243    netbsd*)
14244      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14245	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14246	wlarc=
14247      else
14248	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14249	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14250      fi
14251      ;;
14252
14253    solaris*)
14254      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14255	ld_shlibs_F77=no
14256	cat <<EOF 1>&2
14257
14258*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14259*** create shared libraries on Solaris systems.  Therefore, libtool
14260*** is disabling shared libraries support.  We urge you to upgrade GNU
14261*** binutils to release 2.9.1 or newer.  Another option is to modify
14262*** your PATH or compiler configuration so that the native linker is
14263*** used, and then restart.
14264
14265EOF
14266      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14267	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14268	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14269      else
14270	ld_shlibs_F77=no
14271      fi
14272      ;;
14273
14274    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14275      case `$LD -v 2>&1` in
14276        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14277	ld_shlibs_F77=no
14278	cat <<_LT_EOF 1>&2
14279
14280*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14281*** reliably create shared libraries on SCO systems.  Therefore, libtool
14282*** is disabling shared libraries support.  We urge you to upgrade GNU
14283*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14284*** your PATH or compiler configuration so that the native linker is
14285*** used, and then restart.
14286
14287_LT_EOF
14288	;;
14289	*)
14290	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14291	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14292	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14293	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14294	  else
14295	    ld_shlibs_F77=no
14296	  fi
14297	;;
14298      esac
14299      ;;
14300
14301    sunos4*)
14302      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14303      wlarc=
14304      hardcode_direct_F77=yes
14305      hardcode_shlibpath_var_F77=no
14306      ;;
14307
14308    *)
14309      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14310	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14311	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14312      else
14313	ld_shlibs_F77=no
14314      fi
14315      ;;
14316    esac
14317
14318    if test "$ld_shlibs_F77" = no; then
14319      runpath_var=
14320      hardcode_libdir_flag_spec_F77=
14321      export_dynamic_flag_spec_F77=
14322      whole_archive_flag_spec_F77=
14323    fi
14324  else
14325    # PORTME fill in a description of your system's linker (not GNU ld)
14326    case $host_os in
14327    aix3*)
14328      allow_undefined_flag_F77=unsupported
14329      always_export_symbols_F77=yes
14330      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'
14331      # Note: this linker hardcodes the directories in LIBPATH if there
14332      # are no directories specified by -L.
14333      hardcode_minus_L_F77=yes
14334      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14335	# Neither direct hardcoding nor static linking is supported with a
14336	# broken collect2.
14337	hardcode_direct_F77=unsupported
14338      fi
14339      ;;
14340
14341    aix4* | aix5*)
14342      if test "$host_cpu" = ia64; then
14343	# On IA64, the linker does run time linking by default, so we don't
14344	# have to do anything special.
14345	aix_use_runtimelinking=no
14346	exp_sym_flag='-Bexport'
14347	no_entry_flag=""
14348      else
14349	# If we're using GNU nm, then we don't want the "-C" option.
14350	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14351	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14352	  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'
14353	else
14354	  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'
14355	fi
14356	aix_use_runtimelinking=no
14357
14358	# Test if we are trying to use run time linking or normal
14359	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14360	# need to do runtime linking.
14361	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14362	  for ld_flag in $LDFLAGS; do
14363  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14364  	    aix_use_runtimelinking=yes
14365  	    break
14366  	  fi
14367	  done
14368	  ;;
14369	esac
14370
14371	exp_sym_flag='-bexport'
14372	no_entry_flag='-bnoentry'
14373      fi
14374
14375      # When large executables or shared objects are built, AIX ld can
14376      # have problems creating the table of contents.  If linking a library
14377      # or program results in "error TOC overflow" add -mminimal-toc to
14378      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14379      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14380
14381      archive_cmds_F77=''
14382      hardcode_direct_F77=yes
14383      hardcode_libdir_separator_F77=':'
14384      link_all_deplibs_F77=yes
14385
14386      if test "$GCC" = yes; then
14387	case $host_os in aix4.[012]|aix4.[012].*)
14388	# We only want to do this on AIX 4.2 and lower, the check
14389	# below for broken collect2 doesn't work under 4.3+
14390	  collect2name=`${CC} -print-prog-name=collect2`
14391	  if test -f "$collect2name" && \
14392  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14393	  then
14394  	  # We have reworked collect2
14395  	  hardcode_direct_F77=yes
14396	  else
14397  	  # We have old collect2
14398  	  hardcode_direct_F77=unsupported
14399  	  # It fails to find uninstalled libraries when the uninstalled
14400  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14401  	  # to unsupported forces relinking
14402  	  hardcode_minus_L_F77=yes
14403  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14404  	  hardcode_libdir_separator_F77=
14405	  fi
14406	  ;;
14407	esac
14408	shared_flag='-shared'
14409	if test "$aix_use_runtimelinking" = yes; then
14410	  shared_flag="$shared_flag "'${wl}-G'
14411	fi
14412      else
14413	# not using gcc
14414	if test "$host_cpu" = ia64; then
14415  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14416  	# chokes on -Wl,-G. The following line is correct:
14417	  shared_flag='-G'
14418	else
14419	  if test "$aix_use_runtimelinking" = yes; then
14420	    shared_flag='${wl}-G'
14421	  else
14422	    shared_flag='${wl}-bM:SRE'
14423	  fi
14424	fi
14425      fi
14426
14427      # It seems that -bexpall does not export symbols beginning with
14428      # underscore (_), so it is better to generate a list of symbols to export.
14429      always_export_symbols_F77=yes
14430      if test "$aix_use_runtimelinking" = yes; then
14431	# Warning - without using the other runtime loading flags (-brtl),
14432	# -berok will link without error, but may produce a broken library.
14433	allow_undefined_flag_F77='-berok'
14434       # Determine the default libpath from the value encoded in an empty executable.
14435       cat >conftest.$ac_ext <<_ACEOF
14436      program main
14437
14438      end
14439_ACEOF
14440rm -f conftest.$ac_objext conftest$ac_exeext
14441if { (ac_try="$ac_link"
14442case "(($ac_try" in
14443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444  *) ac_try_echo=$ac_try;;
14445esac
14446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447  (eval "$ac_link") 2>conftest.er1
14448  ac_status=$?
14449  grep -v '^ *+' conftest.er1 >conftest.err
14450  rm -f conftest.er1
14451  cat conftest.err >&5
14452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453  (exit $ac_status); } && {
14454	 test -z "$ac_f77_werror_flag" ||
14455	 test ! -s conftest.err
14456       } && test -s conftest$ac_exeext &&
14457       $as_test_x conftest$ac_exeext; then
14458
14459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14460}'`
14461# Check for a 64-bit object if we didn't find anything.
14462if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14463}'`; fi
14464else
14465  echo "$as_me: failed program was:" >&5
14466sed 's/^/| /' conftest.$ac_ext >&5
14467
14468
14469fi
14470
14471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14472      conftest$ac_exeext conftest.$ac_ext
14473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14474
14475       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14476	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"
14477       else
14478	if test "$host_cpu" = ia64; then
14479	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14480	  allow_undefined_flag_F77="-z nodefs"
14481	  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"
14482	else
14483	 # Determine the default libpath from the value encoded in an empty executable.
14484	 cat >conftest.$ac_ext <<_ACEOF
14485      program main
14486
14487      end
14488_ACEOF
14489rm -f conftest.$ac_objext conftest$ac_exeext
14490if { (ac_try="$ac_link"
14491case "(($ac_try" in
14492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493  *) ac_try_echo=$ac_try;;
14494esac
14495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496  (eval "$ac_link") 2>conftest.er1
14497  ac_status=$?
14498  grep -v '^ *+' conftest.er1 >conftest.err
14499  rm -f conftest.er1
14500  cat conftest.err >&5
14501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502  (exit $ac_status); } && {
14503	 test -z "$ac_f77_werror_flag" ||
14504	 test ! -s conftest.err
14505       } && test -s conftest$ac_exeext &&
14506       $as_test_x conftest$ac_exeext; then
14507
14508aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14509}'`
14510# Check for a 64-bit object if we didn't find anything.
14511if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14512}'`; fi
14513else
14514  echo "$as_me: failed program was:" >&5
14515sed 's/^/| /' conftest.$ac_ext >&5
14516
14517
14518fi
14519
14520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14521      conftest$ac_exeext conftest.$ac_ext
14522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14523
14524	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14525	  # Warning - without using the other run time loading flags,
14526	  # -berok will link without error, but may produce a broken library.
14527	  no_undefined_flag_F77=' ${wl}-bernotok'
14528	  allow_undefined_flag_F77=' ${wl}-berok'
14529	  # Exported symbols can be pulled into shared objects from archives
14530	  whole_archive_flag_spec_F77='$convenience'
14531	  archive_cmds_need_lc_F77=yes
14532	  # This is similar to how AIX traditionally builds its shared libraries.
14533	  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'
14534	fi
14535      fi
14536      ;;
14537
14538    amigaos*)
14539      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)'
14540      hardcode_libdir_flag_spec_F77='-L$libdir'
14541      hardcode_minus_L_F77=yes
14542      # see comment about different semantics on the GNU ld section
14543      ld_shlibs_F77=no
14544      ;;
14545
14546    bsdi[45]*)
14547      export_dynamic_flag_spec_F77=-rdynamic
14548      ;;
14549
14550    cygwin* | mingw* | pw32*)
14551      # When not using gcc, we currently assume that we are using
14552      # Microsoft Visual C++.
14553      # hardcode_libdir_flag_spec is actually meaningless, as there is
14554      # no search path for DLLs.
14555      hardcode_libdir_flag_spec_F77=' '
14556      allow_undefined_flag_F77=unsupported
14557      # Tell ltmain to make .lib files, not .a files.
14558      libext=lib
14559      # Tell ltmain to make .dll files, not .so files.
14560      shrext_cmds=".dll"
14561      # FIXME: Setting linknames here is a bad hack.
14562      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14563      # The linker will automatically build a .lib file if we build a DLL.
14564      old_archive_From_new_cmds_F77='true'
14565      # FIXME: Should let the user specify the lib program.
14566      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14567      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14568      enable_shared_with_static_runtimes_F77=yes
14569      ;;
14570
14571    darwin* | rhapsody*)
14572      case $host_os in
14573        rhapsody* | darwin1.[012])
14574         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14575         ;;
14576       *) # Darwin 1.3 on
14577         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14578           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14579         else
14580           case ${MACOSX_DEPLOYMENT_TARGET} in
14581             10.[012])
14582               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14583               ;;
14584             10.*)
14585               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14586               ;;
14587           esac
14588         fi
14589         ;;
14590      esac
14591      archive_cmds_need_lc_F77=no
14592      hardcode_direct_F77=no
14593      hardcode_automatic_F77=yes
14594      hardcode_shlibpath_var_F77=unsupported
14595      whole_archive_flag_spec_F77=''
14596      link_all_deplibs_F77=yes
14597    if test "$GCC" = yes ; then
14598    	output_verbose_link_cmd='echo'
14599        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14600      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14601      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14602      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14603      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}'
14604    else
14605      case $cc_basename in
14606        xlc*)
14607         output_verbose_link_cmd='echo'
14608         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14609         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14610          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14611         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14612          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}'
14613          ;;
14614       *)
14615         ld_shlibs_F77=no
14616          ;;
14617      esac
14618    fi
14619      ;;
14620
14621    dgux*)
14622      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14623      hardcode_libdir_flag_spec_F77='-L$libdir'
14624      hardcode_shlibpath_var_F77=no
14625      ;;
14626
14627    freebsd1*)
14628      ld_shlibs_F77=no
14629      ;;
14630
14631    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14632    # support.  Future versions do this automatically, but an explicit c++rt0.o
14633    # does not break anything, and helps significantly (at the cost of a little
14634    # extra space).
14635    freebsd2.2*)
14636      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14637      hardcode_libdir_flag_spec_F77='-R$libdir'
14638      hardcode_direct_F77=yes
14639      hardcode_shlibpath_var_F77=no
14640      ;;
14641
14642    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14643    freebsd2*)
14644      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14645      hardcode_direct_F77=yes
14646      hardcode_minus_L_F77=yes
14647      hardcode_shlibpath_var_F77=no
14648      ;;
14649
14650    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14651    freebsd* | kfreebsd*-gnu | dragonfly*)
14652      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14653      hardcode_libdir_flag_spec_F77='-R$libdir'
14654      hardcode_direct_F77=yes
14655      hardcode_shlibpath_var_F77=no
14656      ;;
14657
14658    hpux9*)
14659      if test "$GCC" = yes; then
14660	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'
14661      else
14662	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'
14663      fi
14664      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14665      hardcode_libdir_separator_F77=:
14666      hardcode_direct_F77=yes
14667
14668      # hardcode_minus_L: Not really in the search PATH,
14669      # but as the default location of the library.
14670      hardcode_minus_L_F77=yes
14671      export_dynamic_flag_spec_F77='${wl}-E'
14672      ;;
14673
14674    hpux10*)
14675      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14676	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14677      else
14678	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14679      fi
14680      if test "$with_gnu_ld" = no; then
14681	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14682	hardcode_libdir_separator_F77=:
14683
14684	hardcode_direct_F77=yes
14685	export_dynamic_flag_spec_F77='${wl}-E'
14686
14687	# hardcode_minus_L: Not really in the search PATH,
14688	# but as the default location of the library.
14689	hardcode_minus_L_F77=yes
14690      fi
14691      ;;
14692
14693    hpux11*)
14694      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14695	case $host_cpu in
14696	hppa*64*)
14697	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14698	  ;;
14699	ia64*)
14700	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14701	  ;;
14702	*)
14703	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14704	  ;;
14705	esac
14706      else
14707	case $host_cpu in
14708	hppa*64*)
14709	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14710	  ;;
14711	ia64*)
14712	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14713	  ;;
14714	*)
14715	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14716	  ;;
14717	esac
14718      fi
14719      if test "$with_gnu_ld" = no; then
14720	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14721	hardcode_libdir_separator_F77=:
14722
14723	case $host_cpu in
14724	hppa*64*|ia64*)
14725	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14726	  hardcode_direct_F77=no
14727	  hardcode_shlibpath_var_F77=no
14728	  ;;
14729	*)
14730	  hardcode_direct_F77=yes
14731	  export_dynamic_flag_spec_F77='${wl}-E'
14732
14733	  # hardcode_minus_L: Not really in the search PATH,
14734	  # but as the default location of the library.
14735	  hardcode_minus_L_F77=yes
14736	  ;;
14737	esac
14738      fi
14739      ;;
14740
14741    irix5* | irix6* | nonstopux*)
14742      if test "$GCC" = yes; then
14743	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'
14744      else
14745	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'
14746	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14747      fi
14748      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14749      hardcode_libdir_separator_F77=:
14750      link_all_deplibs_F77=yes
14751      ;;
14752
14753    netbsd*)
14754      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14755	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14756      else
14757	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14758      fi
14759      hardcode_libdir_flag_spec_F77='-R$libdir'
14760      hardcode_direct_F77=yes
14761      hardcode_shlibpath_var_F77=no
14762      ;;
14763
14764    newsos6)
14765      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14766      hardcode_direct_F77=yes
14767      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14768      hardcode_libdir_separator_F77=:
14769      hardcode_shlibpath_var_F77=no
14770      ;;
14771
14772    openbsd*)
14773      hardcode_direct_F77=yes
14774      hardcode_shlibpath_var_F77=no
14775      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14776	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14777	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14778	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14779	export_dynamic_flag_spec_F77='${wl}-E'
14780      else
14781       case $host_os in
14782	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14783	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14784	   hardcode_libdir_flag_spec_F77='-R$libdir'
14785	   ;;
14786	 *)
14787	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14788	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14789	   ;;
14790       esac
14791      fi
14792      ;;
14793
14794    os2*)
14795      hardcode_libdir_flag_spec_F77='-L$libdir'
14796      hardcode_minus_L_F77=yes
14797      allow_undefined_flag_F77=unsupported
14798      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'
14799      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14800      ;;
14801
14802    osf3*)
14803      if test "$GCC" = yes; then
14804	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14805	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'
14806      else
14807	allow_undefined_flag_F77=' -expect_unresolved \*'
14808	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'
14809      fi
14810      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14811      hardcode_libdir_separator_F77=:
14812      ;;
14813
14814    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14815      if test "$GCC" = yes; then
14816	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14817	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'
14818	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14819      else
14820	allow_undefined_flag_F77=' -expect_unresolved \*'
14821	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'
14822	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~
14823	$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'
14824
14825	# Both c and cxx compiler support -rpath directly
14826	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14827      fi
14828      hardcode_libdir_separator_F77=:
14829      ;;
14830
14831    solaris*)
14832      no_undefined_flag_F77=' -z text'
14833      if test "$GCC" = yes; then
14834	wlarc='${wl}'
14835	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14836	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14837	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14838      else
14839	wlarc=''
14840	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14841	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14842  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14843      fi
14844      hardcode_libdir_flag_spec_F77='-R$libdir'
14845      hardcode_shlibpath_var_F77=no
14846      case $host_os in
14847      solaris2.[0-5] | solaris2.[0-5].*) ;;
14848      *)
14849 	# The compiler driver will combine linker options so we
14850 	# cannot just pass the convience library names through
14851 	# without $wl, iff we do not link with $LD.
14852 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14853 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14854 	case $wlarc in
14855 	'')
14856 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14857 	*)
14858 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14859 	esac ;;
14860      esac
14861      link_all_deplibs_F77=yes
14862      ;;
14863
14864    sunos4*)
14865      if test "x$host_vendor" = xsequent; then
14866	# Use $CC to link under sequent, because it throws in some extra .o
14867	# files that make .init and .fini sections work.
14868	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14869      else
14870	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14871      fi
14872      hardcode_libdir_flag_spec_F77='-L$libdir'
14873      hardcode_direct_F77=yes
14874      hardcode_minus_L_F77=yes
14875      hardcode_shlibpath_var_F77=no
14876      ;;
14877
14878    sysv4)
14879      case $host_vendor in
14880	sni)
14881	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882	  hardcode_direct_F77=yes # is this really true???
14883	;;
14884	siemens)
14885	  ## LD is ld it makes a PLAMLIB
14886	  ## CC just makes a GrossModule.
14887	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14888	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14889	  hardcode_direct_F77=no
14890        ;;
14891	motorola)
14892	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14893	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14894	;;
14895      esac
14896      runpath_var='LD_RUN_PATH'
14897      hardcode_shlibpath_var_F77=no
14898      ;;
14899
14900    sysv4.3*)
14901      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14902      hardcode_shlibpath_var_F77=no
14903      export_dynamic_flag_spec_F77='-Bexport'
14904      ;;
14905
14906    sysv4*MP*)
14907      if test -d /usr/nec; then
14908	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14909	hardcode_shlibpath_var_F77=no
14910	runpath_var=LD_RUN_PATH
14911	hardcode_runpath_var=yes
14912	ld_shlibs_F77=yes
14913      fi
14914      ;;
14915
14916    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14917      no_undefined_flag_F77='${wl}-z,text'
14918      archive_cmds_need_lc_F77=no
14919      hardcode_shlibpath_var_F77=no
14920      runpath_var='LD_RUN_PATH'
14921
14922      if test "$GCC" = yes; then
14923	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14924	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14925      else
14926	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14927	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14928      fi
14929      ;;
14930
14931    sysv5* | sco3.2v5* | sco5v6*)
14932      # Note: We can NOT use -z defs as we might desire, because we do not
14933      # link with -lc, and that would cause any symbols used from libc to
14934      # always be unresolved, which means just about no library would
14935      # ever link correctly.  If we're not using GNU ld we use -z text
14936      # though, which does catch some bad symbols but isn't as heavy-handed
14937      # as -z defs.
14938      no_undefined_flag_F77='${wl}-z,text'
14939      allow_undefined_flag_F77='${wl}-z,nodefs'
14940      archive_cmds_need_lc_F77=no
14941      hardcode_shlibpath_var_F77=no
14942      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14943      hardcode_libdir_separator_F77=':'
14944      link_all_deplibs_F77=yes
14945      export_dynamic_flag_spec_F77='${wl}-Bexport'
14946      runpath_var='LD_RUN_PATH'
14947
14948      if test "$GCC" = yes; then
14949	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14950	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14951      else
14952	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14953	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14954      fi
14955      ;;
14956
14957    uts4*)
14958      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14959      hardcode_libdir_flag_spec_F77='-L$libdir'
14960      hardcode_shlibpath_var_F77=no
14961      ;;
14962
14963    *)
14964      ld_shlibs_F77=no
14965      ;;
14966    esac
14967  fi
14968
14969{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14970echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14971test "$ld_shlibs_F77" = no && can_build_shared=no
14972
14973#
14974# Do we need to explicitly link libc?
14975#
14976case "x$archive_cmds_need_lc_F77" in
14977x|xyes)
14978  # Assume -lc should be added
14979  archive_cmds_need_lc_F77=yes
14980
14981  if test "$enable_shared" = yes && test "$GCC" = yes; then
14982    case $archive_cmds_F77 in
14983    *'~'*)
14984      # FIXME: we may have to deal with multi-command sequences.
14985      ;;
14986    '$CC '*)
14987      # Test whether the compiler implicitly links with -lc since on some
14988      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14989      # to ld, don't add -lc before -lgcc.
14990      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14991echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14992      $rm conftest*
14993      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14994
14995      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14996  (eval $ac_compile) 2>&5
14997  ac_status=$?
14998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999  (exit $ac_status); } 2>conftest.err; then
15000        soname=conftest
15001        lib=conftest
15002        libobjs=conftest.$ac_objext
15003        deplibs=
15004        wl=$lt_prog_compiler_wl_F77
15005	pic_flag=$lt_prog_compiler_pic_F77
15006        compiler_flags=-v
15007        linker_flags=-v
15008        verstring=
15009        output_objdir=.
15010        libname=conftest
15011        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15012        allow_undefined_flag_F77=
15013        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15014  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15015  ac_status=$?
15016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017  (exit $ac_status); }
15018        then
15019	  archive_cmds_need_lc_F77=no
15020        else
15021	  archive_cmds_need_lc_F77=yes
15022        fi
15023        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15024      else
15025        cat conftest.err 1>&5
15026      fi
15027      $rm conftest*
15028      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15029echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15030      ;;
15031    esac
15032  fi
15033  ;;
15034esac
15035
15036{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15037echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15038library_names_spec=
15039libname_spec='lib$name'
15040soname_spec=
15041shrext_cmds=".so"
15042postinstall_cmds=
15043postuninstall_cmds=
15044finish_cmds=
15045finish_eval=
15046shlibpath_var=
15047shlibpath_overrides_runpath=unknown
15048version_type=none
15049dynamic_linker="$host_os ld.so"
15050sys_lib_dlsearch_path_spec="/lib /usr/lib"
15051if test "$GCC" = yes; then
15052  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15053  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15054    # if the path contains ";" then we assume it to be the separator
15055    # otherwise default to the standard path separator (i.e. ":") - it is
15056    # assumed that no part of a normal pathname contains ";" but that should
15057    # okay in the real world where ";" in dirpaths is itself problematic.
15058    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15059  else
15060    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15061  fi
15062else
15063  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15064fi
15065need_lib_prefix=unknown
15066hardcode_into_libs=no
15067
15068# when you set need_version to no, make sure it does not cause -set_version
15069# flags to be left without arguments
15070need_version=unknown
15071
15072case $host_os in
15073aix3*)
15074  version_type=linux
15075  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15076  shlibpath_var=LIBPATH
15077
15078  # AIX 3 has no versioning support, so we append a major version to the name.
15079  soname_spec='${libname}${release}${shared_ext}$major'
15080  ;;
15081
15082aix4* | aix5*)
15083  version_type=linux
15084  need_lib_prefix=no
15085  need_version=no
15086  hardcode_into_libs=yes
15087  if test "$host_cpu" = ia64; then
15088    # AIX 5 supports IA64
15089    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15090    shlibpath_var=LD_LIBRARY_PATH
15091  else
15092    # With GCC up to 2.95.x, collect2 would create an import file
15093    # for dependence libraries.  The import file would start with
15094    # the line `#! .'.  This would cause the generated library to
15095    # depend on `.', always an invalid library.  This was fixed in
15096    # development snapshots of GCC prior to 3.0.
15097    case $host_os in
15098      aix4 | aix4.[01] | aix4.[01].*)
15099      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15100	   echo ' yes '
15101	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15102	:
15103      else
15104	can_build_shared=no
15105      fi
15106      ;;
15107    esac
15108    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15109    # soname into executable. Probably we can add versioning support to
15110    # collect2, so additional links can be useful in future.
15111    if test "$aix_use_runtimelinking" = yes; then
15112      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15113      # instead of lib<name>.a to let people know that these are not
15114      # typical AIX shared libraries.
15115      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116    else
15117      # We preserve .a as extension for shared libraries through AIX4.2
15118      # and later when we are not doing run time linking.
15119      library_names_spec='${libname}${release}.a $libname.a'
15120      soname_spec='${libname}${release}${shared_ext}$major'
15121    fi
15122    shlibpath_var=LIBPATH
15123  fi
15124  ;;
15125
15126amigaos*)
15127  library_names_spec='$libname.ixlibrary $libname.a'
15128  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15129  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'
15130  ;;
15131
15132beos*)
15133  library_names_spec='${libname}${shared_ext}'
15134  dynamic_linker="$host_os ld.so"
15135  shlibpath_var=LIBRARY_PATH
15136  ;;
15137
15138bsdi[45]*)
15139  version_type=linux
15140  need_version=no
15141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142  soname_spec='${libname}${release}${shared_ext}$major'
15143  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15144  shlibpath_var=LD_LIBRARY_PATH
15145  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15146  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15147  # the default ld.so.conf also contains /usr/contrib/lib and
15148  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15149  # libtool to hard-code these into programs
15150  ;;
15151
15152cygwin* | mingw* | pw32*)
15153  version_type=windows
15154  shrext_cmds=".dll"
15155  need_version=no
15156  need_lib_prefix=no
15157
15158  case $GCC,$host_os in
15159  yes,cygwin* | yes,mingw* | yes,pw32*)
15160    library_names_spec='$libname.dll.a'
15161    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15162    postinstall_cmds='base_file=`basename \${file}`~
15163      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15164      dldir=$destdir/`dirname \$dlpath`~
15165      test -d \$dldir || mkdir -p \$dldir~
15166      $install_prog $dir/$dlname \$dldir/$dlname~
15167      chmod a+x \$dldir/$dlname'
15168    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15169      dlpath=$dir/\$dldll~
15170       $rm \$dlpath'
15171    shlibpath_overrides_runpath=yes
15172
15173    case $host_os in
15174    cygwin*)
15175      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15176      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15177      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15178      ;;
15179    mingw*)
15180      # MinGW DLLs use traditional 'lib' prefix
15181      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15182      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15183      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15184        # It is most probably a Windows format PATH printed by
15185        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15186        # path with ; separators, and with drive letters. We can handle the
15187        # drive letters (cygwin fileutils understands them), so leave them,
15188        # especially as we might pass files found there to a mingw objdump,
15189        # which wouldn't understand a cygwinified path. Ahh.
15190        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15191      else
15192        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15193      fi
15194      ;;
15195    pw32*)
15196      # pw32 DLLs use 'pw' prefix rather than 'lib'
15197      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15198      ;;
15199    esac
15200    ;;
15201
15202  *)
15203    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15204    ;;
15205  esac
15206  dynamic_linker='Win32 ld.exe'
15207  # FIXME: first we should search . and the directory the executable is in
15208  shlibpath_var=PATH
15209  ;;
15210
15211darwin* | rhapsody*)
15212  dynamic_linker="$host_os dyld"
15213  version_type=darwin
15214  need_lib_prefix=no
15215  need_version=no
15216  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15217  soname_spec='${libname}${release}${major}$shared_ext'
15218  shlibpath_overrides_runpath=yes
15219  shlibpath_var=DYLD_LIBRARY_PATH
15220  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15221  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15222  if test "$GCC" = yes; then
15223    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15224  else
15225    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15226  fi
15227  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15228  ;;
15229
15230dgux*)
15231  version_type=linux
15232  need_lib_prefix=no
15233  need_version=no
15234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15235  soname_spec='${libname}${release}${shared_ext}$major'
15236  shlibpath_var=LD_LIBRARY_PATH
15237  ;;
15238
15239freebsd1*)
15240  dynamic_linker=no
15241  ;;
15242
15243kfreebsd*-gnu)
15244  version_type=linux
15245  need_lib_prefix=no
15246  need_version=no
15247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15248  soname_spec='${libname}${release}${shared_ext}$major'
15249  shlibpath_var=LD_LIBRARY_PATH
15250  shlibpath_overrides_runpath=no
15251  hardcode_into_libs=yes
15252  dynamic_linker='GNU ld.so'
15253  ;;
15254
15255freebsd* | dragonfly*)
15256  # DragonFly does not have aout.  When/if they implement a new
15257  # versioning mechanism, adjust this.
15258  if test -x /usr/bin/objformat; then
15259    objformat=`/usr/bin/objformat`
15260  else
15261    case $host_os in
15262    freebsd[123]*) objformat=aout ;;
15263    *) objformat=elf ;;
15264    esac
15265  fi
15266  version_type=freebsd-$objformat
15267  case $version_type in
15268    freebsd-elf*)
15269      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15270      need_version=no
15271      need_lib_prefix=no
15272      ;;
15273    freebsd-*)
15274      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15275      need_version=yes
15276      ;;
15277  esac
15278  shlibpath_var=LD_LIBRARY_PATH
15279  case $host_os in
15280  freebsd2*)
15281    shlibpath_overrides_runpath=yes
15282    ;;
15283  freebsd3.[01]* | freebsdelf3.[01]*)
15284    shlibpath_overrides_runpath=yes
15285    hardcode_into_libs=yes
15286    ;;
15287  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15288  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15289    shlibpath_overrides_runpath=no
15290    hardcode_into_libs=yes
15291    ;;
15292  freebsd*) # from 4.6 on
15293    shlibpath_overrides_runpath=yes
15294    hardcode_into_libs=yes
15295    ;;
15296  esac
15297  ;;
15298
15299gnu*)
15300  version_type=linux
15301  need_lib_prefix=no
15302  need_version=no
15303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15304  soname_spec='${libname}${release}${shared_ext}$major'
15305  shlibpath_var=LD_LIBRARY_PATH
15306  hardcode_into_libs=yes
15307  ;;
15308
15309hpux9* | hpux10* | hpux11*)
15310  # Give a soname corresponding to the major version so that dld.sl refuses to
15311  # link against other versions.
15312  version_type=sunos
15313  need_lib_prefix=no
15314  need_version=no
15315  case $host_cpu in
15316  ia64*)
15317    shrext_cmds='.so'
15318    hardcode_into_libs=yes
15319    dynamic_linker="$host_os dld.so"
15320    shlibpath_var=LD_LIBRARY_PATH
15321    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15322    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323    soname_spec='${libname}${release}${shared_ext}$major'
15324    if test "X$HPUX_IA64_MODE" = X32; then
15325      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15326    else
15327      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15328    fi
15329    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15330    ;;
15331   hppa*64*)
15332     shrext_cmds='.sl'
15333     hardcode_into_libs=yes
15334     dynamic_linker="$host_os dld.sl"
15335     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15336     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338     soname_spec='${libname}${release}${shared_ext}$major'
15339     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15340     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15341     ;;
15342   *)
15343    shrext_cmds='.sl'
15344    dynamic_linker="$host_os dld.sl"
15345    shlibpath_var=SHLIB_PATH
15346    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15347    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348    soname_spec='${libname}${release}${shared_ext}$major'
15349    ;;
15350  esac
15351  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15352  postinstall_cmds='chmod 555 $lib'
15353  ;;
15354
15355interix3*)
15356  version_type=linux
15357  need_lib_prefix=no
15358  need_version=no
15359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15360  soname_spec='${libname}${release}${shared_ext}$major'
15361  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15362  shlibpath_var=LD_LIBRARY_PATH
15363  shlibpath_overrides_runpath=no
15364  hardcode_into_libs=yes
15365  ;;
15366
15367irix5* | irix6* | nonstopux*)
15368  case $host_os in
15369    nonstopux*) version_type=nonstopux ;;
15370    *)
15371	if test "$lt_cv_prog_gnu_ld" = yes; then
15372		version_type=linux
15373	else
15374		version_type=irix
15375	fi ;;
15376  esac
15377  need_lib_prefix=no
15378  need_version=no
15379  soname_spec='${libname}${release}${shared_ext}$major'
15380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15381  case $host_os in
15382  irix5* | nonstopux*)
15383    libsuff= shlibsuff=
15384    ;;
15385  *)
15386    case $LD in # libtool.m4 will add one of these switches to LD
15387    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15388      libsuff= shlibsuff= libmagic=32-bit;;
15389    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15390      libsuff=32 shlibsuff=N32 libmagic=N32;;
15391    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15392      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15393    *) libsuff= shlibsuff= libmagic=never-match;;
15394    esac
15395    ;;
15396  esac
15397  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15398  shlibpath_overrides_runpath=no
15399  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15400  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15401  hardcode_into_libs=yes
15402  ;;
15403
15404# No shared lib support for Linux oldld, aout, or coff.
15405linux*oldld* | linux*aout* | linux*coff*)
15406  dynamic_linker=no
15407  ;;
15408
15409# This must be Linux ELF.
15410linux*)
15411  version_type=linux
15412  need_lib_prefix=no
15413  need_version=no
15414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15415  soname_spec='${libname}${release}${shared_ext}$major'
15416  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15417  shlibpath_var=LD_LIBRARY_PATH
15418  shlibpath_overrides_runpath=no
15419  # This implies no fast_install, which is unacceptable.
15420  # Some rework will be needed to allow for fast_install
15421  # before this can be enabled.
15422  hardcode_into_libs=yes
15423
15424  # Append ld.so.conf contents to the search path
15425  if test -f /etc/ld.so.conf; then
15426    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15427    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15428  fi
15429
15430  # We used to test for /lib/ld.so.1 and disable shared libraries on
15431  # powerpc, because MkLinux only supported shared libraries with the
15432  # GNU dynamic linker.  Since this was broken with cross compilers,
15433  # most powerpc-linux boxes support dynamic linking these days and
15434  # people can always --disable-shared, the test was removed, and we
15435  # assume the GNU/Linux dynamic linker is in use.
15436  dynamic_linker='GNU/Linux ld.so'
15437  ;;
15438
15439knetbsd*-gnu)
15440  version_type=linux
15441  need_lib_prefix=no
15442  need_version=no
15443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15444  soname_spec='${libname}${release}${shared_ext}$major'
15445  shlibpath_var=LD_LIBRARY_PATH
15446  shlibpath_overrides_runpath=no
15447  hardcode_into_libs=yes
15448  dynamic_linker='GNU ld.so'
15449  ;;
15450
15451netbsd*)
15452  version_type=sunos
15453  need_lib_prefix=no
15454  need_version=no
15455  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15456    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15457    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15458    dynamic_linker='NetBSD (a.out) ld.so'
15459  else
15460    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15461    soname_spec='${libname}${release}${shared_ext}$major'
15462    dynamic_linker='NetBSD ld.elf_so'
15463  fi
15464  shlibpath_var=LD_LIBRARY_PATH
15465  shlibpath_overrides_runpath=yes
15466  hardcode_into_libs=yes
15467  ;;
15468
15469newsos6)
15470  version_type=linux
15471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472  shlibpath_var=LD_LIBRARY_PATH
15473  shlibpath_overrides_runpath=yes
15474  ;;
15475
15476nto-qnx*)
15477  version_type=linux
15478  need_lib_prefix=no
15479  need_version=no
15480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15481  soname_spec='${libname}${release}${shared_ext}$major'
15482  shlibpath_var=LD_LIBRARY_PATH
15483  shlibpath_overrides_runpath=yes
15484  ;;
15485
15486openbsd*)
15487  version_type=sunos
15488  sys_lib_dlsearch_path_spec="/usr/lib"
15489  need_lib_prefix=no
15490  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15491  case $host_os in
15492    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15493    *)                         need_version=no  ;;
15494  esac
15495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15496  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15497  shlibpath_var=LD_LIBRARY_PATH
15498  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15499    case $host_os in
15500      openbsd2.[89] | openbsd2.[89].*)
15501	shlibpath_overrides_runpath=no
15502	;;
15503      *)
15504	shlibpath_overrides_runpath=yes
15505	;;
15506      esac
15507  else
15508    shlibpath_overrides_runpath=yes
15509  fi
15510  ;;
15511
15512os2*)
15513  libname_spec='$name'
15514  shrext_cmds=".dll"
15515  need_lib_prefix=no
15516  library_names_spec='$libname${shared_ext} $libname.a'
15517  dynamic_linker='OS/2 ld.exe'
15518  shlibpath_var=LIBPATH
15519  ;;
15520
15521osf3* | osf4* | osf5*)
15522  version_type=osf
15523  need_lib_prefix=no
15524  need_version=no
15525  soname_spec='${libname}${release}${shared_ext}$major'
15526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527  shlibpath_var=LD_LIBRARY_PATH
15528  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15529  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15530  ;;
15531
15532solaris*)
15533  version_type=linux
15534  need_lib_prefix=no
15535  need_version=no
15536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537  soname_spec='${libname}${release}${shared_ext}$major'
15538  shlibpath_var=LD_LIBRARY_PATH
15539  shlibpath_overrides_runpath=yes
15540  hardcode_into_libs=yes
15541  # ldd complains unless libraries are executable
15542  postinstall_cmds='chmod +x $lib'
15543  ;;
15544
15545sunos4*)
15546  version_type=sunos
15547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15548  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15549  shlibpath_var=LD_LIBRARY_PATH
15550  shlibpath_overrides_runpath=yes
15551  if test "$with_gnu_ld" = yes; then
15552    need_lib_prefix=no
15553  fi
15554  need_version=yes
15555  ;;
15556
15557sysv4 | sysv4.3*)
15558  version_type=linux
15559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560  soname_spec='${libname}${release}${shared_ext}$major'
15561  shlibpath_var=LD_LIBRARY_PATH
15562  case $host_vendor in
15563    sni)
15564      shlibpath_overrides_runpath=no
15565      need_lib_prefix=no
15566      export_dynamic_flag_spec='${wl}-Blargedynsym'
15567      runpath_var=LD_RUN_PATH
15568      ;;
15569    siemens)
15570      need_lib_prefix=no
15571      ;;
15572    motorola)
15573      need_lib_prefix=no
15574      need_version=no
15575      shlibpath_overrides_runpath=no
15576      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15577      ;;
15578  esac
15579  ;;
15580
15581sysv4*MP*)
15582  if test -d /usr/nec ;then
15583    version_type=linux
15584    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15585    soname_spec='$libname${shared_ext}.$major'
15586    shlibpath_var=LD_LIBRARY_PATH
15587  fi
15588  ;;
15589
15590sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15591  version_type=freebsd-elf
15592  need_lib_prefix=no
15593  need_version=no
15594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15595  soname_spec='${libname}${release}${shared_ext}$major'
15596  shlibpath_var=LD_LIBRARY_PATH
15597  hardcode_into_libs=yes
15598  if test "$with_gnu_ld" = yes; then
15599    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15600    shlibpath_overrides_runpath=no
15601  else
15602    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15603    shlibpath_overrides_runpath=yes
15604    case $host_os in
15605      sco3.2v5*)
15606        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15607	;;
15608    esac
15609  fi
15610  sys_lib_dlsearch_path_spec='/usr/lib'
15611  ;;
15612
15613uts4*)
15614  version_type=linux
15615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15616  soname_spec='${libname}${release}${shared_ext}$major'
15617  shlibpath_var=LD_LIBRARY_PATH
15618  ;;
15619
15620*)
15621  dynamic_linker=no
15622  ;;
15623esac
15624{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15625echo "${ECHO_T}$dynamic_linker" >&6; }
15626test "$dynamic_linker" = no && can_build_shared=no
15627
15628variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15629if test "$GCC" = yes; then
15630  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15631fi
15632
15633{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15634echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15635hardcode_action_F77=
15636if test -n "$hardcode_libdir_flag_spec_F77" || \
15637   test -n "$runpath_var_F77" || \
15638   test "X$hardcode_automatic_F77" = "Xyes" ; then
15639
15640  # We can hardcode non-existant directories.
15641  if test "$hardcode_direct_F77" != no &&
15642     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15643     # have to relink, otherwise we might link with an installed library
15644     # when we should be linking with a yet-to-be-installed one
15645     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15646     test "$hardcode_minus_L_F77" != no; then
15647    # Linking always hardcodes the temporary library directory.
15648    hardcode_action_F77=relink
15649  else
15650    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15651    hardcode_action_F77=immediate
15652  fi
15653else
15654  # We cannot hardcode anything, or else we can only hardcode existing
15655  # directories.
15656  hardcode_action_F77=unsupported
15657fi
15658{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15659echo "${ECHO_T}$hardcode_action_F77" >&6; }
15660
15661if test "$hardcode_action_F77" = relink; then
15662  # Fast installation is not supported
15663  enable_fast_install=no
15664elif test "$shlibpath_overrides_runpath" = yes ||
15665     test "$enable_shared" = no; then
15666  # Fast installation is not necessary
15667  enable_fast_install=needless
15668fi
15669
15670
15671# The else clause should only fire when bootstrapping the
15672# libtool distribution, otherwise you forgot to ship ltmain.sh
15673# with your package, and you will get complaints that there are
15674# no rules to generate ltmain.sh.
15675if test -f "$ltmain"; then
15676  # See if we are running on zsh, and set the options which allow our commands through
15677  # without removal of \ escapes.
15678  if test -n "${ZSH_VERSION+set}" ; then
15679    setopt NO_GLOB_SUBST
15680  fi
15681  # Now quote all the things that may contain metacharacters while being
15682  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15683  # variables and quote the copies for generation of the libtool script.
15684  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15685    SED SHELL STRIP \
15686    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15687    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15688    deplibs_check_method reload_flag reload_cmds need_locks \
15689    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15690    lt_cv_sys_global_symbol_to_c_name_address \
15691    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15692    old_postinstall_cmds old_postuninstall_cmds \
15693    compiler_F77 \
15694    CC_F77 \
15695    LD_F77 \
15696    lt_prog_compiler_wl_F77 \
15697    lt_prog_compiler_pic_F77 \
15698    lt_prog_compiler_static_F77 \
15699    lt_prog_compiler_no_builtin_flag_F77 \
15700    export_dynamic_flag_spec_F77 \
15701    thread_safe_flag_spec_F77 \
15702    whole_archive_flag_spec_F77 \
15703    enable_shared_with_static_runtimes_F77 \
15704    old_archive_cmds_F77 \
15705    old_archive_from_new_cmds_F77 \
15706    predep_objects_F77 \
15707    postdep_objects_F77 \
15708    predeps_F77 \
15709    postdeps_F77 \
15710    compiler_lib_search_path_F77 \
15711    archive_cmds_F77 \
15712    archive_expsym_cmds_F77 \
15713    postinstall_cmds_F77 \
15714    postuninstall_cmds_F77 \
15715    old_archive_from_expsyms_cmds_F77 \
15716    allow_undefined_flag_F77 \
15717    no_undefined_flag_F77 \
15718    export_symbols_cmds_F77 \
15719    hardcode_libdir_flag_spec_F77 \
15720    hardcode_libdir_flag_spec_ld_F77 \
15721    hardcode_libdir_separator_F77 \
15722    hardcode_automatic_F77 \
15723    module_cmds_F77 \
15724    module_expsym_cmds_F77 \
15725    lt_cv_prog_compiler_c_o_F77 \
15726    exclude_expsyms_F77 \
15727    include_expsyms_F77; do
15728
15729    case $var in
15730    old_archive_cmds_F77 | \
15731    old_archive_from_new_cmds_F77 | \
15732    archive_cmds_F77 | \
15733    archive_expsym_cmds_F77 | \
15734    module_cmds_F77 | \
15735    module_expsym_cmds_F77 | \
15736    old_archive_from_expsyms_cmds_F77 | \
15737    export_symbols_cmds_F77 | \
15738    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15739    postinstall_cmds | postuninstall_cmds | \
15740    old_postinstall_cmds | old_postuninstall_cmds | \
15741    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15742      # Double-quote double-evaled strings.
15743      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15744      ;;
15745    *)
15746      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15747      ;;
15748    esac
15749  done
15750
15751  case $lt_echo in
15752  *'\$0 --fallback-echo"')
15753    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15754    ;;
15755  esac
15756
15757cfgfile="$ofile"
15758
15759  cat <<__EOF__ >> "$cfgfile"
15760# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15761
15762# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15763
15764# Shell to use when invoking shell scripts.
15765SHELL=$lt_SHELL
15766
15767# Whether or not to build shared libraries.
15768build_libtool_libs=$enable_shared
15769
15770# Whether or not to build static libraries.
15771build_old_libs=$enable_static
15772
15773# Whether or not to add -lc for building shared libraries.
15774build_libtool_need_lc=$archive_cmds_need_lc_F77
15775
15776# Whether or not to disallow shared libs when runtime libs are static
15777allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15778
15779# Whether or not to optimize for fast installation.
15780fast_install=$enable_fast_install
15781
15782# The host system.
15783host_alias=$host_alias
15784host=$host
15785host_os=$host_os
15786
15787# The build system.
15788build_alias=$build_alias
15789build=$build
15790build_os=$build_os
15791
15792# An echo program that does not interpret backslashes.
15793echo=$lt_echo
15794
15795# The archiver.
15796AR=$lt_AR
15797AR_FLAGS=$lt_AR_FLAGS
15798
15799# A C compiler.
15800LTCC=$lt_LTCC
15801
15802# LTCC compiler flags.
15803LTCFLAGS=$lt_LTCFLAGS
15804
15805# A language-specific compiler.
15806CC=$lt_compiler_F77
15807
15808# Is the compiler the GNU C compiler?
15809with_gcc=$GCC_F77
15810
15811# An ERE matcher.
15812EGREP=$lt_EGREP
15813
15814# The linker used to build libraries.
15815LD=$lt_LD_F77
15816
15817# Whether we need hard or soft links.
15818LN_S=$lt_LN_S
15819
15820# A BSD-compatible nm program.
15821NM=$lt_NM
15822
15823# A symbol stripping program
15824STRIP=$lt_STRIP
15825
15826# Used to examine libraries when file_magic_cmd begins "file"
15827MAGIC_CMD=$MAGIC_CMD
15828
15829# Used on cygwin: DLL creation program.
15830DLLTOOL="$DLLTOOL"
15831
15832# Used on cygwin: object dumper.
15833OBJDUMP="$OBJDUMP"
15834
15835# Used on cygwin: assembler.
15836AS="$AS"
15837
15838# The name of the directory that contains temporary libtool files.
15839objdir=$objdir
15840
15841# How to create reloadable object files.
15842reload_flag=$lt_reload_flag
15843reload_cmds=$lt_reload_cmds
15844
15845# How to pass a linker flag through the compiler.
15846wl=$lt_lt_prog_compiler_wl_F77
15847
15848# Object file suffix (normally "o").
15849objext="$ac_objext"
15850
15851# Old archive suffix (normally "a").
15852libext="$libext"
15853
15854# Shared library suffix (normally ".so").
15855shrext_cmds='$shrext_cmds'
15856
15857# Executable file suffix (normally "").
15858exeext="$exeext"
15859
15860# Additional compiler flags for building library objects.
15861pic_flag=$lt_lt_prog_compiler_pic_F77
15862pic_mode=$pic_mode
15863
15864# What is the maximum length of a command?
15865max_cmd_len=$lt_cv_sys_max_cmd_len
15866
15867# Does compiler simultaneously support -c and -o options?
15868compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15869
15870# Must we lock files when doing compilation?
15871need_locks=$lt_need_locks
15872
15873# Do we need the lib prefix for modules?
15874need_lib_prefix=$need_lib_prefix
15875
15876# Do we need a version for libraries?
15877need_version=$need_version
15878
15879# Whether dlopen is supported.
15880dlopen_support=$enable_dlopen
15881
15882# Whether dlopen of programs is supported.
15883dlopen_self=$enable_dlopen_self
15884
15885# Whether dlopen of statically linked programs is supported.
15886dlopen_self_static=$enable_dlopen_self_static
15887
15888# Compiler flag to prevent dynamic linking.
15889link_static_flag=$lt_lt_prog_compiler_static_F77
15890
15891# Compiler flag to turn off builtin functions.
15892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15893
15894# Compiler flag to allow reflexive dlopens.
15895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15896
15897# Compiler flag to generate shared objects directly from archives.
15898whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15899
15900# Compiler flag to generate thread-safe objects.
15901thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15902
15903# Library versioning type.
15904version_type=$version_type
15905
15906# Format of library name prefix.
15907libname_spec=$lt_libname_spec
15908
15909# List of archive names.  First name is the real one, the rest are links.
15910# The last name is the one that the linker finds with -lNAME.
15911library_names_spec=$lt_library_names_spec
15912
15913# The coded name of the library, if different from the real name.
15914soname_spec=$lt_soname_spec
15915
15916# Commands used to build and install an old-style archive.
15917RANLIB=$lt_RANLIB
15918old_archive_cmds=$lt_old_archive_cmds_F77
15919old_postinstall_cmds=$lt_old_postinstall_cmds
15920old_postuninstall_cmds=$lt_old_postuninstall_cmds
15921
15922# Create an old-style archive from a shared archive.
15923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15924
15925# Create a temporary old-style archive to link instead of a shared archive.
15926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15927
15928# Commands used to build and install a shared archive.
15929archive_cmds=$lt_archive_cmds_F77
15930archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15931postinstall_cmds=$lt_postinstall_cmds
15932postuninstall_cmds=$lt_postuninstall_cmds
15933
15934# Commands used to build a loadable module (assumed same as above if empty)
15935module_cmds=$lt_module_cmds_F77
15936module_expsym_cmds=$lt_module_expsym_cmds_F77
15937
15938# Commands to strip libraries.
15939old_striplib=$lt_old_striplib
15940striplib=$lt_striplib
15941
15942# Dependencies to place before the objects being linked to create a
15943# shared library.
15944predep_objects=$lt_predep_objects_F77
15945
15946# Dependencies to place after the objects being linked to create a
15947# shared library.
15948postdep_objects=$lt_postdep_objects_F77
15949
15950# Dependencies to place before the objects being linked to create a
15951# shared library.
15952predeps=$lt_predeps_F77
15953
15954# Dependencies to place after the objects being linked to create a
15955# shared library.
15956postdeps=$lt_postdeps_F77
15957
15958# The library search path used internally by the compiler when linking
15959# a shared library.
15960compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15961
15962# Method to check whether dependent libraries are shared objects.
15963deplibs_check_method=$lt_deplibs_check_method
15964
15965# Command to use when deplibs_check_method == file_magic.
15966file_magic_cmd=$lt_file_magic_cmd
15967
15968# Flag that allows shared libraries with undefined symbols to be built.
15969allow_undefined_flag=$lt_allow_undefined_flag_F77
15970
15971# Flag that forces no undefined symbols.
15972no_undefined_flag=$lt_no_undefined_flag_F77
15973
15974# Commands used to finish a libtool library installation in a directory.
15975finish_cmds=$lt_finish_cmds
15976
15977# Same as above, but a single script fragment to be evaled but not shown.
15978finish_eval=$lt_finish_eval
15979
15980# Take the output of nm and produce a listing of raw symbols and C names.
15981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15982
15983# Transform the output of nm in a proper C declaration
15984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15985
15986# Transform the output of nm in a C name address pair
15987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15988
15989# This is the shared library runtime path variable.
15990runpath_var=$runpath_var
15991
15992# This is the shared library path variable.
15993shlibpath_var=$shlibpath_var
15994
15995# Is shlibpath searched before the hard-coded library search path?
15996shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15997
15998# How to hardcode a shared library path into an executable.
15999hardcode_action=$hardcode_action_F77
16000
16001# Whether we should hardcode library paths into libraries.
16002hardcode_into_libs=$hardcode_into_libs
16003
16004# Flag to hardcode \$libdir into a binary during linking.
16005# This must work even if \$libdir does not exist.
16006hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16007
16008# If ld is used when linking, flag to hardcode \$libdir into
16009# a binary during linking. This must work even if \$libdir does
16010# not exist.
16011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16012
16013# Whether we need a single -rpath flag with a separated argument.
16014hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16015
16016# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16017# resulting binary.
16018hardcode_direct=$hardcode_direct_F77
16019
16020# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16021# resulting binary.
16022hardcode_minus_L=$hardcode_minus_L_F77
16023
16024# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16025# the resulting binary.
16026hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16027
16028# Set to yes if building a shared library automatically hardcodes DIR into the library
16029# and all subsequent libraries and executables linked against it.
16030hardcode_automatic=$hardcode_automatic_F77
16031
16032# Variables whose values should be saved in libtool wrapper scripts and
16033# restored at relink time.
16034variables_saved_for_relink="$variables_saved_for_relink"
16035
16036# Whether libtool must link a program against all its dependency libraries.
16037link_all_deplibs=$link_all_deplibs_F77
16038
16039# Compile-time system search path for libraries
16040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16041
16042# Run-time system search path for libraries
16043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16044
16045# Fix the shell variable \$srcfile for the compiler.
16046fix_srcfile_path="$fix_srcfile_path_F77"
16047
16048# Set to yes if exported symbols are required.
16049always_export_symbols=$always_export_symbols_F77
16050
16051# The commands to list exported symbols.
16052export_symbols_cmds=$lt_export_symbols_cmds_F77
16053
16054# The commands to extract the exported symbol list from a shared archive.
16055extract_expsyms_cmds=$lt_extract_expsyms_cmds
16056
16057# Symbols that should not be listed in the preloaded symbols.
16058exclude_expsyms=$lt_exclude_expsyms_F77
16059
16060# Symbols that must always be exported.
16061include_expsyms=$lt_include_expsyms_F77
16062
16063# ### END LIBTOOL TAG CONFIG: $tagname
16064
16065__EOF__
16066
16067
16068else
16069  # If there is no Makefile yet, we rely on a make rule to execute
16070  # `config.status --recheck' to rerun these tests and create the
16071  # libtool script then.
16072  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16073  if test -f "$ltmain_in"; then
16074    test -f Makefile && make "$ltmain"
16075  fi
16076fi
16077
16078
16079ac_ext=c
16080ac_cpp='$CPP $CPPFLAGS'
16081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083ac_compiler_gnu=$ac_cv_c_compiler_gnu
16084
16085CC="$lt_save_CC"
16086
16087	else
16088	  tagname=""
16089	fi
16090	;;
16091
16092      GCJ)
16093	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16094
16095
16096# Source file extension for Java test sources.
16097ac_ext=java
16098
16099# Object file extension for compiled Java test sources.
16100objext=o
16101objext_GCJ=$objext
16102
16103# Code to be used in simple compile tests
16104lt_simple_compile_test_code="class foo {}\n"
16105
16106# Code to be used in simple link tests
16107lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16108
16109# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16110
16111# If no C compiler was specified, use CC.
16112LTCC=${LTCC-"$CC"}
16113
16114# If no C compiler flags were specified, use CFLAGS.
16115LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16116
16117# Allow CC to be a program name with arguments.
16118compiler=$CC
16119
16120
16121# save warnings/boilerplate of simple test code
16122ac_outfile=conftest.$ac_objext
16123printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16124eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16125_lt_compiler_boilerplate=`cat conftest.err`
16126$rm conftest*
16127
16128ac_outfile=conftest.$ac_objext
16129printf "$lt_simple_link_test_code" >conftest.$ac_ext
16130eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16131_lt_linker_boilerplate=`cat conftest.err`
16132$rm conftest*
16133
16134
16135# Allow CC to be a program name with arguments.
16136lt_save_CC="$CC"
16137CC=${GCJ-"gcj"}
16138compiler=$CC
16139compiler_GCJ=$CC
16140for cc_temp in $compiler""; do
16141  case $cc_temp in
16142    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16143    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16144    \-*) ;;
16145    *) break;;
16146  esac
16147done
16148cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16149
16150
16151# GCJ did not exist at the time GCC didn't implicitly link libc in.
16152archive_cmds_need_lc_GCJ=no
16153
16154old_archive_cmds_GCJ=$old_archive_cmds
16155
16156
16157lt_prog_compiler_no_builtin_flag_GCJ=
16158
16159if test "$GCC" = yes; then
16160  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16161
16162
16163{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16164echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16165if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16166  echo $ECHO_N "(cached) $ECHO_C" >&6
16167else
16168  lt_cv_prog_compiler_rtti_exceptions=no
16169  ac_outfile=conftest.$ac_objext
16170   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16171   lt_compiler_flag="-fno-rtti -fno-exceptions"
16172   # Insert the option either (1) after the last *FLAGS variable, or
16173   # (2) before a word containing "conftest.", or (3) at the end.
16174   # Note that $ac_compile itself does not contain backslashes and begins
16175   # with a dollar sign (not a hyphen), so the echo should work correctly.
16176   # The option is referenced via a variable to avoid confusing sed.
16177   lt_compile=`echo "$ac_compile" | $SED \
16178   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16179   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16180   -e 's:$: $lt_compiler_flag:'`
16181   (eval echo "\"\$as_me:16181: $lt_compile\"" >&5)
16182   (eval "$lt_compile" 2>conftest.err)
16183   ac_status=$?
16184   cat conftest.err >&5
16185   echo "$as_me:16185: \$? = $ac_status" >&5
16186   if (exit $ac_status) && test -s "$ac_outfile"; then
16187     # The compiler can only warn and ignore the option if not recognized
16188     # So say no if there are warnings other than the usual output.
16189     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16190     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16191     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16192       lt_cv_prog_compiler_rtti_exceptions=yes
16193     fi
16194   fi
16195   $rm conftest*
16196
16197fi
16198{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16199echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16200
16201if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16202    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16203else
16204    :
16205fi
16206
16207fi
16208
16209lt_prog_compiler_wl_GCJ=
16210lt_prog_compiler_pic_GCJ=
16211lt_prog_compiler_static_GCJ=
16212
16213{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16214echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16215
16216  if test "$GCC" = yes; then
16217    lt_prog_compiler_wl_GCJ='-Wl,'
16218    lt_prog_compiler_static_GCJ='-static'
16219
16220    case $host_os in
16221      aix*)
16222      # All AIX code is PIC.
16223      if test "$host_cpu" = ia64; then
16224	# AIX 5 now supports IA64 processor
16225	lt_prog_compiler_static_GCJ='-Bstatic'
16226      fi
16227      ;;
16228
16229    amigaos*)
16230      # FIXME: we need at least 68020 code to build shared libraries, but
16231      # adding the `-m68020' flag to GCC prevents building anything better,
16232      # like `-m68040'.
16233      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16234      ;;
16235
16236    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16237      # PIC is the default for these OSes.
16238      ;;
16239
16240    mingw* | pw32* | os2*)
16241      # This hack is so that the source file can tell whether it is being
16242      # built for inclusion in a dll (and should export symbols for example).
16243      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16244      ;;
16245
16246    darwin* | rhapsody*)
16247      # PIC is the default on this platform
16248      # Common symbols not allowed in MH_DYLIB files
16249      lt_prog_compiler_pic_GCJ='-fno-common'
16250      ;;
16251
16252    interix3*)
16253      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16254      # Instead, we relocate shared libraries at runtime.
16255      ;;
16256
16257    msdosdjgpp*)
16258      # Just because we use GCC doesn't mean we suddenly get shared libraries
16259      # on systems that don't support them.
16260      lt_prog_compiler_can_build_shared_GCJ=no
16261      enable_shared=no
16262      ;;
16263
16264    sysv4*MP*)
16265      if test -d /usr/nec; then
16266	lt_prog_compiler_pic_GCJ=-Kconform_pic
16267      fi
16268      ;;
16269
16270    hpux*)
16271      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16272      # not for PA HP-UX.
16273      case $host_cpu in
16274      hppa*64*|ia64*)
16275	# +Z the default
16276	;;
16277      *)
16278	lt_prog_compiler_pic_GCJ='-fPIC'
16279	;;
16280      esac
16281      ;;
16282
16283    *)
16284      lt_prog_compiler_pic_GCJ='-fPIC'
16285      ;;
16286    esac
16287  else
16288    # PORTME Check for flag to pass linker flags through the system compiler.
16289    case $host_os in
16290    aix*)
16291      lt_prog_compiler_wl_GCJ='-Wl,'
16292      if test "$host_cpu" = ia64; then
16293	# AIX 5 now supports IA64 processor
16294	lt_prog_compiler_static_GCJ='-Bstatic'
16295      else
16296	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16297      fi
16298      ;;
16299      darwin*)
16300        # PIC is the default on this platform
16301        # Common symbols not allowed in MH_DYLIB files
16302       case $cc_basename in
16303         xlc*)
16304         lt_prog_compiler_pic_GCJ='-qnocommon'
16305         lt_prog_compiler_wl_GCJ='-Wl,'
16306         ;;
16307       esac
16308       ;;
16309
16310    mingw* | pw32* | os2*)
16311      # This hack is so that the source file can tell whether it is being
16312      # built for inclusion in a dll (and should export symbols for example).
16313      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16314      ;;
16315
16316    hpux9* | hpux10* | hpux11*)
16317      lt_prog_compiler_wl_GCJ='-Wl,'
16318      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16319      # not for PA HP-UX.
16320      case $host_cpu in
16321      hppa*64*|ia64*)
16322	# +Z the default
16323	;;
16324      *)
16325	lt_prog_compiler_pic_GCJ='+Z'
16326	;;
16327      esac
16328      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16329      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16330      ;;
16331
16332    irix5* | irix6* | nonstopux*)
16333      lt_prog_compiler_wl_GCJ='-Wl,'
16334      # PIC (with -KPIC) is the default.
16335      lt_prog_compiler_static_GCJ='-non_shared'
16336      ;;
16337
16338    newsos6)
16339      lt_prog_compiler_pic_GCJ='-KPIC'
16340      lt_prog_compiler_static_GCJ='-Bstatic'
16341      ;;
16342
16343    linux*)
16344      case $cc_basename in
16345      icc* | ecc*)
16346	lt_prog_compiler_wl_GCJ='-Wl,'
16347	lt_prog_compiler_pic_GCJ='-KPIC'
16348	lt_prog_compiler_static_GCJ='-static'
16349        ;;
16350      pgcc* | pgf77* | pgf90* | pgf95*)
16351        # Portland Group compilers (*not* the Pentium gcc compiler,
16352	# which looks to be a dead project)
16353	lt_prog_compiler_wl_GCJ='-Wl,'
16354	lt_prog_compiler_pic_GCJ='-fpic'
16355	lt_prog_compiler_static_GCJ='-Bstatic'
16356        ;;
16357      ccc*)
16358        lt_prog_compiler_wl_GCJ='-Wl,'
16359        # All Alpha code is PIC.
16360        lt_prog_compiler_static_GCJ='-non_shared'
16361        ;;
16362      esac
16363      ;;
16364
16365    osf3* | osf4* | osf5*)
16366      lt_prog_compiler_wl_GCJ='-Wl,'
16367      # All OSF/1 code is PIC.
16368      lt_prog_compiler_static_GCJ='-non_shared'
16369      ;;
16370
16371    solaris*)
16372      lt_prog_compiler_pic_GCJ='-KPIC'
16373      lt_prog_compiler_static_GCJ='-Bstatic'
16374      case $cc_basename in
16375      f77* | f90* | f95*)
16376	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16377      *)
16378	lt_prog_compiler_wl_GCJ='-Wl,';;
16379      esac
16380      ;;
16381
16382    sunos4*)
16383      lt_prog_compiler_wl_GCJ='-Qoption ld '
16384      lt_prog_compiler_pic_GCJ='-PIC'
16385      lt_prog_compiler_static_GCJ='-Bstatic'
16386      ;;
16387
16388    sysv4 | sysv4.2uw2* | sysv4.3*)
16389      lt_prog_compiler_wl_GCJ='-Wl,'
16390      lt_prog_compiler_pic_GCJ='-KPIC'
16391      lt_prog_compiler_static_GCJ='-Bstatic'
16392      ;;
16393
16394    sysv4*MP*)
16395      if test -d /usr/nec ;then
16396	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16397	lt_prog_compiler_static_GCJ='-Bstatic'
16398      fi
16399      ;;
16400
16401    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16402      lt_prog_compiler_wl_GCJ='-Wl,'
16403      lt_prog_compiler_pic_GCJ='-KPIC'
16404      lt_prog_compiler_static_GCJ='-Bstatic'
16405      ;;
16406
16407    unicos*)
16408      lt_prog_compiler_wl_GCJ='-Wl,'
16409      lt_prog_compiler_can_build_shared_GCJ=no
16410      ;;
16411
16412    uts4*)
16413      lt_prog_compiler_pic_GCJ='-pic'
16414      lt_prog_compiler_static_GCJ='-Bstatic'
16415      ;;
16416
16417    *)
16418      lt_prog_compiler_can_build_shared_GCJ=no
16419      ;;
16420    esac
16421  fi
16422
16423{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16424echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16425
16426#
16427# Check to make sure the PIC flag actually works.
16428#
16429if test -n "$lt_prog_compiler_pic_GCJ"; then
16430
16431{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16432echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16433if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16434  echo $ECHO_N "(cached) $ECHO_C" >&6
16435else
16436  lt_prog_compiler_pic_works_GCJ=no
16437  ac_outfile=conftest.$ac_objext
16438   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16439   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16440   # Insert the option either (1) after the last *FLAGS variable, or
16441   # (2) before a word containing "conftest.", or (3) at the end.
16442   # Note that $ac_compile itself does not contain backslashes and begins
16443   # with a dollar sign (not a hyphen), so the echo should work correctly.
16444   # The option is referenced via a variable to avoid confusing sed.
16445   lt_compile=`echo "$ac_compile" | $SED \
16446   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16447   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16448   -e 's:$: $lt_compiler_flag:'`
16449   (eval echo "\"\$as_me:16449: $lt_compile\"" >&5)
16450   (eval "$lt_compile" 2>conftest.err)
16451   ac_status=$?
16452   cat conftest.err >&5
16453   echo "$as_me:16453: \$? = $ac_status" >&5
16454   if (exit $ac_status) && test -s "$ac_outfile"; then
16455     # The compiler can only warn and ignore the option if not recognized
16456     # So say no if there are warnings other than the usual output.
16457     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16458     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16459     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16460       lt_prog_compiler_pic_works_GCJ=yes
16461     fi
16462   fi
16463   $rm conftest*
16464
16465fi
16466{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16467echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16468
16469if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16470    case $lt_prog_compiler_pic_GCJ in
16471     "" | " "*) ;;
16472     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16473     esac
16474else
16475    lt_prog_compiler_pic_GCJ=
16476     lt_prog_compiler_can_build_shared_GCJ=no
16477fi
16478
16479fi
16480case $host_os in
16481  # For platforms which do not support PIC, -DPIC is meaningless:
16482  *djgpp*)
16483    lt_prog_compiler_pic_GCJ=
16484    ;;
16485  *)
16486    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16487    ;;
16488esac
16489
16490#
16491# Check to make sure the static flag actually works.
16492#
16493wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16494{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16495echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16496if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16497  echo $ECHO_N "(cached) $ECHO_C" >&6
16498else
16499  lt_prog_compiler_static_works_GCJ=no
16500   save_LDFLAGS="$LDFLAGS"
16501   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16502   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16503   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16504     # The linker can only warn and ignore the option if not recognized
16505     # So say no if there are warnings
16506     if test -s conftest.err; then
16507       # Append any errors to the config.log.
16508       cat conftest.err 1>&5
16509       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16510       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16511       if diff conftest.exp conftest.er2 >/dev/null; then
16512         lt_prog_compiler_static_works_GCJ=yes
16513       fi
16514     else
16515       lt_prog_compiler_static_works_GCJ=yes
16516     fi
16517   fi
16518   $rm conftest*
16519   LDFLAGS="$save_LDFLAGS"
16520
16521fi
16522{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16523echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16524
16525if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16526    :
16527else
16528    lt_prog_compiler_static_GCJ=
16529fi
16530
16531
16532{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16533echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16534if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16535  echo $ECHO_N "(cached) $ECHO_C" >&6
16536else
16537  lt_cv_prog_compiler_c_o_GCJ=no
16538   $rm -r conftest 2>/dev/null
16539   mkdir conftest
16540   cd conftest
16541   mkdir out
16542   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16543
16544   lt_compiler_flag="-o out/conftest2.$ac_objext"
16545   # Insert the option either (1) after the last *FLAGS variable, or
16546   # (2) before a word containing "conftest.", or (3) at the end.
16547   # Note that $ac_compile itself does not contain backslashes and begins
16548   # with a dollar sign (not a hyphen), so the echo should work correctly.
16549   lt_compile=`echo "$ac_compile" | $SED \
16550   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16551   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16552   -e 's:$: $lt_compiler_flag:'`
16553   (eval echo "\"\$as_me:16553: $lt_compile\"" >&5)
16554   (eval "$lt_compile" 2>out/conftest.err)
16555   ac_status=$?
16556   cat out/conftest.err >&5
16557   echo "$as_me:16557: \$? = $ac_status" >&5
16558   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16559   then
16560     # The compiler can only warn and ignore the option if not recognized
16561     # So say no if there are warnings
16562     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16563     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16564     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16565       lt_cv_prog_compiler_c_o_GCJ=yes
16566     fi
16567   fi
16568   chmod u+w . 2>&5
16569   $rm conftest*
16570   # SGI C++ compiler will create directory out/ii_files/ for
16571   # template instantiation
16572   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16573   $rm out/* && rmdir out
16574   cd ..
16575   rmdir conftest
16576   $rm conftest*
16577
16578fi
16579{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16580echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16581
16582
16583hard_links="nottested"
16584if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16585  # do not overwrite the value of need_locks provided by the user
16586  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16587echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16588  hard_links=yes
16589  $rm conftest*
16590  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16591  touch conftest.a
16592  ln conftest.a conftest.b 2>&5 || hard_links=no
16593  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16594  { echo "$as_me:$LINENO: result: $hard_links" >&5
16595echo "${ECHO_T}$hard_links" >&6; }
16596  if test "$hard_links" = no; then
16597    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16598echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16599    need_locks=warn
16600  fi
16601else
16602  need_locks=no
16603fi
16604
16605{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16606echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16607
16608  runpath_var=
16609  allow_undefined_flag_GCJ=
16610  enable_shared_with_static_runtimes_GCJ=no
16611  archive_cmds_GCJ=
16612  archive_expsym_cmds_GCJ=
16613  old_archive_From_new_cmds_GCJ=
16614  old_archive_from_expsyms_cmds_GCJ=
16615  export_dynamic_flag_spec_GCJ=
16616  whole_archive_flag_spec_GCJ=
16617  thread_safe_flag_spec_GCJ=
16618  hardcode_libdir_flag_spec_GCJ=
16619  hardcode_libdir_flag_spec_ld_GCJ=
16620  hardcode_libdir_separator_GCJ=
16621  hardcode_direct_GCJ=no
16622  hardcode_minus_L_GCJ=no
16623  hardcode_shlibpath_var_GCJ=unsupported
16624  link_all_deplibs_GCJ=unknown
16625  hardcode_automatic_GCJ=no
16626  module_cmds_GCJ=
16627  module_expsym_cmds_GCJ=
16628  always_export_symbols_GCJ=no
16629  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16630  # include_expsyms should be a list of space-separated symbols to be *always*
16631  # included in the symbol list
16632  include_expsyms_GCJ=
16633  # exclude_expsyms can be an extended regexp of symbols to exclude
16634  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16635  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16636  # as well as any symbol that contains `d'.
16637  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16638  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16639  # platforms (ab)use it in PIC code, but their linkers get confused if
16640  # the symbol is explicitly referenced.  Since portable code cannot
16641  # rely on this symbol name, it's probably fine to never include it in
16642  # preloaded symbol tables.
16643  extract_expsyms_cmds=
16644  # Just being paranoid about ensuring that cc_basename is set.
16645  for cc_temp in $compiler""; do
16646  case $cc_temp in
16647    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16648    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16649    \-*) ;;
16650    *) break;;
16651  esac
16652done
16653cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16654
16655  case $host_os in
16656  cygwin* | mingw* | pw32*)
16657    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16658    # When not using gcc, we currently assume that we are using
16659    # Microsoft Visual C++.
16660    if test "$GCC" != yes; then
16661      with_gnu_ld=no
16662    fi
16663    ;;
16664  interix*)
16665    # we just hope/assume this is gcc and not c89 (= MSVC++)
16666    with_gnu_ld=yes
16667    ;;
16668  openbsd*)
16669    with_gnu_ld=no
16670    ;;
16671  esac
16672
16673  ld_shlibs_GCJ=yes
16674  if test "$with_gnu_ld" = yes; then
16675    # If archive_cmds runs LD, not CC, wlarc should be empty
16676    wlarc='${wl}'
16677
16678    # Set some defaults for GNU ld with shared library support. These
16679    # are reset later if shared libraries are not supported. Putting them
16680    # here allows them to be overridden if necessary.
16681    runpath_var=LD_RUN_PATH
16682    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16683    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16684    # ancient GNU ld didn't support --whole-archive et. al.
16685    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16686	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16687      else
16688  	whole_archive_flag_spec_GCJ=
16689    fi
16690    supports_anon_versioning=no
16691    case `$LD -v 2>/dev/null` in
16692      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16693      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16694      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16695      *\ 2.11.*) ;; # other 2.11 versions
16696      *) supports_anon_versioning=yes ;;
16697    esac
16698
16699    # See if GNU ld supports shared libraries.
16700    case $host_os in
16701    aix3* | aix4* | aix5*)
16702      # On AIX/PPC, the GNU linker is very broken
16703      if test "$host_cpu" != ia64; then
16704	ld_shlibs_GCJ=no
16705	cat <<EOF 1>&2
16706
16707*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16708*** to be unable to reliably create shared libraries on AIX.
16709*** Therefore, libtool is disabling shared libraries support.  If you
16710*** really care for shared libraries, you may want to modify your PATH
16711*** so that a non-GNU linker is found, and then restart.
16712
16713EOF
16714      fi
16715      ;;
16716
16717    amigaos*)
16718      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)'
16719      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16720      hardcode_minus_L_GCJ=yes
16721
16722      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16723      # that the semantics of dynamic libraries on AmigaOS, at least up
16724      # to version 4, is to share data among multiple programs linked
16725      # with the same dynamic library.  Since this doesn't match the
16726      # behavior of shared libraries on other platforms, we can't use
16727      # them.
16728      ld_shlibs_GCJ=no
16729      ;;
16730
16731    beos*)
16732      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16733	allow_undefined_flag_GCJ=unsupported
16734	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16735	# support --undefined.  This deserves some investigation.  FIXME
16736	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16737      else
16738	ld_shlibs_GCJ=no
16739      fi
16740      ;;
16741
16742    cygwin* | mingw* | pw32*)
16743      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16744      # as there is no search path for DLLs.
16745      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16746      allow_undefined_flag_GCJ=unsupported
16747      always_export_symbols_GCJ=no
16748      enable_shared_with_static_runtimes_GCJ=yes
16749      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16750
16751      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16752        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16753	# If the export-symbols file already is a .def file (1st line
16754	# is EXPORTS), use it as is; otherwise, prepend...
16755	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16756	  cp $export_symbols $output_objdir/$soname.def;
16757	else
16758	  echo EXPORTS > $output_objdir/$soname.def;
16759	  cat $export_symbols >> $output_objdir/$soname.def;
16760	fi~
16761	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16762      else
16763	ld_shlibs_GCJ=no
16764      fi
16765      ;;
16766
16767    interix3*)
16768      hardcode_direct_GCJ=no
16769      hardcode_shlibpath_var_GCJ=no
16770      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16771      export_dynamic_flag_spec_GCJ='${wl}-E'
16772      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16773      # Instead, shared libraries are loaded at an image base (0x10000000 by
16774      # default) and relocated if they conflict, which is a slow very memory
16775      # consuming and fragmenting process.  To avoid this, we pick a random,
16776      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16777      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16778      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'
16779      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'
16780      ;;
16781
16782    linux*)
16783      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16784	tmp_addflag=
16785	case $cc_basename,$host_cpu in
16786	pgcc*)				# Portland Group C compiler
16787	  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'
16788	  tmp_addflag=' $pic_flag'
16789	  ;;
16790	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16791	  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'
16792	  tmp_addflag=' $pic_flag -Mnomain' ;;
16793	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16794	  tmp_addflag=' -i_dynamic' ;;
16795	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16796	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16797	ifc* | ifort*)			# Intel Fortran compiler
16798	  tmp_addflag=' -nofor_main' ;;
16799	esac
16800	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16801
16802	if test $supports_anon_versioning = yes; then
16803	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16804  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16805  $echo "local: *; };" >> $output_objdir/$libname.ver~
16806	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16807	fi
16808      else
16809	ld_shlibs_GCJ=no
16810      fi
16811      ;;
16812
16813    netbsd*)
16814      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16815	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16816	wlarc=
16817      else
16818	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16819	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16820      fi
16821      ;;
16822
16823    solaris*)
16824      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16825	ld_shlibs_GCJ=no
16826	cat <<EOF 1>&2
16827
16828*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16829*** create shared libraries on Solaris systems.  Therefore, libtool
16830*** is disabling shared libraries support.  We urge you to upgrade GNU
16831*** binutils to release 2.9.1 or newer.  Another option is to modify
16832*** your PATH or compiler configuration so that the native linker is
16833*** used, and then restart.
16834
16835EOF
16836      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16837	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16838	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16839      else
16840	ld_shlibs_GCJ=no
16841      fi
16842      ;;
16843
16844    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16845      case `$LD -v 2>&1` in
16846        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16847	ld_shlibs_GCJ=no
16848	cat <<_LT_EOF 1>&2
16849
16850*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16851*** reliably create shared libraries on SCO systems.  Therefore, libtool
16852*** is disabling shared libraries support.  We urge you to upgrade GNU
16853*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16854*** your PATH or compiler configuration so that the native linker is
16855*** used, and then restart.
16856
16857_LT_EOF
16858	;;
16859	*)
16860	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16861	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16862	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16863	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16864	  else
16865	    ld_shlibs_GCJ=no
16866	  fi
16867	;;
16868      esac
16869      ;;
16870
16871    sunos4*)
16872      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16873      wlarc=
16874      hardcode_direct_GCJ=yes
16875      hardcode_shlibpath_var_GCJ=no
16876      ;;
16877
16878    *)
16879      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16880	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16881	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16882      else
16883	ld_shlibs_GCJ=no
16884      fi
16885      ;;
16886    esac
16887
16888    if test "$ld_shlibs_GCJ" = no; then
16889      runpath_var=
16890      hardcode_libdir_flag_spec_GCJ=
16891      export_dynamic_flag_spec_GCJ=
16892      whole_archive_flag_spec_GCJ=
16893    fi
16894  else
16895    # PORTME fill in a description of your system's linker (not GNU ld)
16896    case $host_os in
16897    aix3*)
16898      allow_undefined_flag_GCJ=unsupported
16899      always_export_symbols_GCJ=yes
16900      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'
16901      # Note: this linker hardcodes the directories in LIBPATH if there
16902      # are no directories specified by -L.
16903      hardcode_minus_L_GCJ=yes
16904      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16905	# Neither direct hardcoding nor static linking is supported with a
16906	# broken collect2.
16907	hardcode_direct_GCJ=unsupported
16908      fi
16909      ;;
16910
16911    aix4* | aix5*)
16912      if test "$host_cpu" = ia64; then
16913	# On IA64, the linker does run time linking by default, so we don't
16914	# have to do anything special.
16915	aix_use_runtimelinking=no
16916	exp_sym_flag='-Bexport'
16917	no_entry_flag=""
16918      else
16919	# If we're using GNU nm, then we don't want the "-C" option.
16920	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16921	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16922	  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'
16923	else
16924	  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'
16925	fi
16926	aix_use_runtimelinking=no
16927
16928	# Test if we are trying to use run time linking or normal
16929	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16930	# need to do runtime linking.
16931	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16932	  for ld_flag in $LDFLAGS; do
16933  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16934  	    aix_use_runtimelinking=yes
16935  	    break
16936  	  fi
16937	  done
16938	  ;;
16939	esac
16940
16941	exp_sym_flag='-bexport'
16942	no_entry_flag='-bnoentry'
16943      fi
16944
16945      # When large executables or shared objects are built, AIX ld can
16946      # have problems creating the table of contents.  If linking a library
16947      # or program results in "error TOC overflow" add -mminimal-toc to
16948      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16949      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16950
16951      archive_cmds_GCJ=''
16952      hardcode_direct_GCJ=yes
16953      hardcode_libdir_separator_GCJ=':'
16954      link_all_deplibs_GCJ=yes
16955
16956      if test "$GCC" = yes; then
16957	case $host_os in aix4.[012]|aix4.[012].*)
16958	# We only want to do this on AIX 4.2 and lower, the check
16959	# below for broken collect2 doesn't work under 4.3+
16960	  collect2name=`${CC} -print-prog-name=collect2`
16961	  if test -f "$collect2name" && \
16962  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16963	  then
16964  	  # We have reworked collect2
16965  	  hardcode_direct_GCJ=yes
16966	  else
16967  	  # We have old collect2
16968  	  hardcode_direct_GCJ=unsupported
16969  	  # It fails to find uninstalled libraries when the uninstalled
16970  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16971  	  # to unsupported forces relinking
16972  	  hardcode_minus_L_GCJ=yes
16973  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16974  	  hardcode_libdir_separator_GCJ=
16975	  fi
16976	  ;;
16977	esac
16978	shared_flag='-shared'
16979	if test "$aix_use_runtimelinking" = yes; then
16980	  shared_flag="$shared_flag "'${wl}-G'
16981	fi
16982      else
16983	# not using gcc
16984	if test "$host_cpu" = ia64; then
16985  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16986  	# chokes on -Wl,-G. The following line is correct:
16987	  shared_flag='-G'
16988	else
16989	  if test "$aix_use_runtimelinking" = yes; then
16990	    shared_flag='${wl}-G'
16991	  else
16992	    shared_flag='${wl}-bM:SRE'
16993	  fi
16994	fi
16995      fi
16996
16997      # It seems that -bexpall does not export symbols beginning with
16998      # underscore (_), so it is better to generate a list of symbols to export.
16999      always_export_symbols_GCJ=yes
17000      if test "$aix_use_runtimelinking" = yes; then
17001	# Warning - without using the other runtime loading flags (-brtl),
17002	# -berok will link without error, but may produce a broken library.
17003	allow_undefined_flag_GCJ='-berok'
17004       # Determine the default libpath from the value encoded in an empty executable.
17005       cat >conftest.$ac_ext <<_ACEOF
17006/* confdefs.h.  */
17007_ACEOF
17008cat confdefs.h >>conftest.$ac_ext
17009cat >>conftest.$ac_ext <<_ACEOF
17010/* end confdefs.h.  */
17011
17012int
17013main ()
17014{
17015
17016  ;
17017  return 0;
17018}
17019_ACEOF
17020rm -f conftest.$ac_objext conftest$ac_exeext
17021if { (ac_try="$ac_link"
17022case "(($ac_try" in
17023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024  *) ac_try_echo=$ac_try;;
17025esac
17026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027  (eval "$ac_link") 2>conftest.er1
17028  ac_status=$?
17029  grep -v '^ *+' conftest.er1 >conftest.err
17030  rm -f conftest.er1
17031  cat conftest.err >&5
17032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033  (exit $ac_status); } && {
17034	 test -z "$ac_c_werror_flag" ||
17035	 test ! -s conftest.err
17036       } && test -s conftest$ac_exeext &&
17037       $as_test_x conftest$ac_exeext; then
17038
17039aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17040}'`
17041# Check for a 64-bit object if we didn't find anything.
17042if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17043}'`; fi
17044else
17045  echo "$as_me: failed program was:" >&5
17046sed 's/^/| /' conftest.$ac_ext >&5
17047
17048
17049fi
17050
17051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17052      conftest$ac_exeext conftest.$ac_ext
17053if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17054
17055       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17056	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"
17057       else
17058	if test "$host_cpu" = ia64; then
17059	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17060	  allow_undefined_flag_GCJ="-z nodefs"
17061	  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"
17062	else
17063	 # Determine the default libpath from the value encoded in an empty executable.
17064	 cat >conftest.$ac_ext <<_ACEOF
17065/* confdefs.h.  */
17066_ACEOF
17067cat confdefs.h >>conftest.$ac_ext
17068cat >>conftest.$ac_ext <<_ACEOF
17069/* end confdefs.h.  */
17070
17071int
17072main ()
17073{
17074
17075  ;
17076  return 0;
17077}
17078_ACEOF
17079rm -f conftest.$ac_objext conftest$ac_exeext
17080if { (ac_try="$ac_link"
17081case "(($ac_try" in
17082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083  *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086  (eval "$ac_link") 2>conftest.er1
17087  ac_status=$?
17088  grep -v '^ *+' conftest.er1 >conftest.err
17089  rm -f conftest.er1
17090  cat conftest.err >&5
17091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092  (exit $ac_status); } && {
17093	 test -z "$ac_c_werror_flag" ||
17094	 test ! -s conftest.err
17095       } && test -s conftest$ac_exeext &&
17096       $as_test_x conftest$ac_exeext; then
17097
17098aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17099}'`
17100# Check for a 64-bit object if we didn't find anything.
17101if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17102}'`; fi
17103else
17104  echo "$as_me: failed program was:" >&5
17105sed 's/^/| /' conftest.$ac_ext >&5
17106
17107
17108fi
17109
17110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17111      conftest$ac_exeext conftest.$ac_ext
17112if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17113
17114	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17115	  # Warning - without using the other run time loading flags,
17116	  # -berok will link without error, but may produce a broken library.
17117	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17118	  allow_undefined_flag_GCJ=' ${wl}-berok'
17119	  # Exported symbols can be pulled into shared objects from archives
17120	  whole_archive_flag_spec_GCJ='$convenience'
17121	  archive_cmds_need_lc_GCJ=yes
17122	  # This is similar to how AIX traditionally builds its shared libraries.
17123	  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'
17124	fi
17125      fi
17126      ;;
17127
17128    amigaos*)
17129      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)'
17130      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17131      hardcode_minus_L_GCJ=yes
17132      # see comment about different semantics on the GNU ld section
17133      ld_shlibs_GCJ=no
17134      ;;
17135
17136    bsdi[45]*)
17137      export_dynamic_flag_spec_GCJ=-rdynamic
17138      ;;
17139
17140    cygwin* | mingw* | pw32*)
17141      # When not using gcc, we currently assume that we are using
17142      # Microsoft Visual C++.
17143      # hardcode_libdir_flag_spec is actually meaningless, as there is
17144      # no search path for DLLs.
17145      hardcode_libdir_flag_spec_GCJ=' '
17146      allow_undefined_flag_GCJ=unsupported
17147      # Tell ltmain to make .lib files, not .a files.
17148      libext=lib
17149      # Tell ltmain to make .dll files, not .so files.
17150      shrext_cmds=".dll"
17151      # FIXME: Setting linknames here is a bad hack.
17152      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17153      # The linker will automatically build a .lib file if we build a DLL.
17154      old_archive_From_new_cmds_GCJ='true'
17155      # FIXME: Should let the user specify the lib program.
17156      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17157      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17158      enable_shared_with_static_runtimes_GCJ=yes
17159      ;;
17160
17161    darwin* | rhapsody*)
17162      case $host_os in
17163        rhapsody* | darwin1.[012])
17164         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17165         ;;
17166       *) # Darwin 1.3 on
17167         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17168           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17169         else
17170           case ${MACOSX_DEPLOYMENT_TARGET} in
17171             10.[012])
17172               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17173               ;;
17174             10.*)
17175               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17176               ;;
17177           esac
17178         fi
17179         ;;
17180      esac
17181      archive_cmds_need_lc_GCJ=no
17182      hardcode_direct_GCJ=no
17183      hardcode_automatic_GCJ=yes
17184      hardcode_shlibpath_var_GCJ=unsupported
17185      whole_archive_flag_spec_GCJ=''
17186      link_all_deplibs_GCJ=yes
17187    if test "$GCC" = yes ; then
17188    	output_verbose_link_cmd='echo'
17189        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17190      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17191      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17192      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17193      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}'
17194    else
17195      case $cc_basename in
17196        xlc*)
17197         output_verbose_link_cmd='echo'
17198         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17199         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17200          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17201         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17202          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}'
17203          ;;
17204       *)
17205         ld_shlibs_GCJ=no
17206          ;;
17207      esac
17208    fi
17209      ;;
17210
17211    dgux*)
17212      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17213      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17214      hardcode_shlibpath_var_GCJ=no
17215      ;;
17216
17217    freebsd1*)
17218      ld_shlibs_GCJ=no
17219      ;;
17220
17221    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17222    # support.  Future versions do this automatically, but an explicit c++rt0.o
17223    # does not break anything, and helps significantly (at the cost of a little
17224    # extra space).
17225    freebsd2.2*)
17226      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17227      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17228      hardcode_direct_GCJ=yes
17229      hardcode_shlibpath_var_GCJ=no
17230      ;;
17231
17232    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17233    freebsd2*)
17234      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17235      hardcode_direct_GCJ=yes
17236      hardcode_minus_L_GCJ=yes
17237      hardcode_shlibpath_var_GCJ=no
17238      ;;
17239
17240    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17241    freebsd* | kfreebsd*-gnu | dragonfly*)
17242      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17243      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17244      hardcode_direct_GCJ=yes
17245      hardcode_shlibpath_var_GCJ=no
17246      ;;
17247
17248    hpux9*)
17249      if test "$GCC" = yes; then
17250	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'
17251      else
17252	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'
17253      fi
17254      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17255      hardcode_libdir_separator_GCJ=:
17256      hardcode_direct_GCJ=yes
17257
17258      # hardcode_minus_L: Not really in the search PATH,
17259      # but as the default location of the library.
17260      hardcode_minus_L_GCJ=yes
17261      export_dynamic_flag_spec_GCJ='${wl}-E'
17262      ;;
17263
17264    hpux10*)
17265      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17266	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17267      else
17268	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17269      fi
17270      if test "$with_gnu_ld" = no; then
17271	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17272	hardcode_libdir_separator_GCJ=:
17273
17274	hardcode_direct_GCJ=yes
17275	export_dynamic_flag_spec_GCJ='${wl}-E'
17276
17277	# hardcode_minus_L: Not really in the search PATH,
17278	# but as the default location of the library.
17279	hardcode_minus_L_GCJ=yes
17280      fi
17281      ;;
17282
17283    hpux11*)
17284      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17285	case $host_cpu in
17286	hppa*64*)
17287	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17288	  ;;
17289	ia64*)
17290	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17291	  ;;
17292	*)
17293	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17294	  ;;
17295	esac
17296      else
17297	case $host_cpu in
17298	hppa*64*)
17299	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17300	  ;;
17301	ia64*)
17302	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17303	  ;;
17304	*)
17305	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17306	  ;;
17307	esac
17308      fi
17309      if test "$with_gnu_ld" = no; then
17310	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17311	hardcode_libdir_separator_GCJ=:
17312
17313	case $host_cpu in
17314	hppa*64*|ia64*)
17315	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17316	  hardcode_direct_GCJ=no
17317	  hardcode_shlibpath_var_GCJ=no
17318	  ;;
17319	*)
17320	  hardcode_direct_GCJ=yes
17321	  export_dynamic_flag_spec_GCJ='${wl}-E'
17322
17323	  # hardcode_minus_L: Not really in the search PATH,
17324	  # but as the default location of the library.
17325	  hardcode_minus_L_GCJ=yes
17326	  ;;
17327	esac
17328      fi
17329      ;;
17330
17331    irix5* | irix6* | nonstopux*)
17332      if test "$GCC" = yes; then
17333	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'
17334      else
17335	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'
17336	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17337      fi
17338      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17339      hardcode_libdir_separator_GCJ=:
17340      link_all_deplibs_GCJ=yes
17341      ;;
17342
17343    netbsd*)
17344      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17345	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17346      else
17347	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17348      fi
17349      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17350      hardcode_direct_GCJ=yes
17351      hardcode_shlibpath_var_GCJ=no
17352      ;;
17353
17354    newsos6)
17355      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17356      hardcode_direct_GCJ=yes
17357      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17358      hardcode_libdir_separator_GCJ=:
17359      hardcode_shlibpath_var_GCJ=no
17360      ;;
17361
17362    openbsd*)
17363      hardcode_direct_GCJ=yes
17364      hardcode_shlibpath_var_GCJ=no
17365      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17366	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17367	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17368	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17369	export_dynamic_flag_spec_GCJ='${wl}-E'
17370      else
17371       case $host_os in
17372	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17373	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17374	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17375	   ;;
17376	 *)
17377	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17378	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17379	   ;;
17380       esac
17381      fi
17382      ;;
17383
17384    os2*)
17385      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17386      hardcode_minus_L_GCJ=yes
17387      allow_undefined_flag_GCJ=unsupported
17388      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'
17389      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17390      ;;
17391
17392    osf3*)
17393      if test "$GCC" = yes; then
17394	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17395	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'
17396      else
17397	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17398	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'
17399      fi
17400      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17401      hardcode_libdir_separator_GCJ=:
17402      ;;
17403
17404    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17405      if test "$GCC" = yes; then
17406	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17407	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'
17408	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17409      else
17410	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17411	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'
17412	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~
17413	$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'
17414
17415	# Both c and cxx compiler support -rpath directly
17416	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17417      fi
17418      hardcode_libdir_separator_GCJ=:
17419      ;;
17420
17421    solaris*)
17422      no_undefined_flag_GCJ=' -z text'
17423      if test "$GCC" = yes; then
17424	wlarc='${wl}'
17425	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17426	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17427	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17428      else
17429	wlarc=''
17430	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17431	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17432  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17433      fi
17434      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17435      hardcode_shlibpath_var_GCJ=no
17436      case $host_os in
17437      solaris2.[0-5] | solaris2.[0-5].*) ;;
17438      *)
17439 	# The compiler driver will combine linker options so we
17440 	# cannot just pass the convience library names through
17441 	# without $wl, iff we do not link with $LD.
17442 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17443 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17444 	case $wlarc in
17445 	'')
17446 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17447 	*)
17448 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17449 	esac ;;
17450      esac
17451      link_all_deplibs_GCJ=yes
17452      ;;
17453
17454    sunos4*)
17455      if test "x$host_vendor" = xsequent; then
17456	# Use $CC to link under sequent, because it throws in some extra .o
17457	# files that make .init and .fini sections work.
17458	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17459      else
17460	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17461      fi
17462      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17463      hardcode_direct_GCJ=yes
17464      hardcode_minus_L_GCJ=yes
17465      hardcode_shlibpath_var_GCJ=no
17466      ;;
17467
17468    sysv4)
17469      case $host_vendor in
17470	sni)
17471	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17472	  hardcode_direct_GCJ=yes # is this really true???
17473	;;
17474	siemens)
17475	  ## LD is ld it makes a PLAMLIB
17476	  ## CC just makes a GrossModule.
17477	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17478	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17479	  hardcode_direct_GCJ=no
17480        ;;
17481	motorola)
17482	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17483	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17484	;;
17485      esac
17486      runpath_var='LD_RUN_PATH'
17487      hardcode_shlibpath_var_GCJ=no
17488      ;;
17489
17490    sysv4.3*)
17491      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17492      hardcode_shlibpath_var_GCJ=no
17493      export_dynamic_flag_spec_GCJ='-Bexport'
17494      ;;
17495
17496    sysv4*MP*)
17497      if test -d /usr/nec; then
17498	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17499	hardcode_shlibpath_var_GCJ=no
17500	runpath_var=LD_RUN_PATH
17501	hardcode_runpath_var=yes
17502	ld_shlibs_GCJ=yes
17503      fi
17504      ;;
17505
17506    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17507      no_undefined_flag_GCJ='${wl}-z,text'
17508      archive_cmds_need_lc_GCJ=no
17509      hardcode_shlibpath_var_GCJ=no
17510      runpath_var='LD_RUN_PATH'
17511
17512      if test "$GCC" = yes; then
17513	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17514	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17515      else
17516	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17517	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17518      fi
17519      ;;
17520
17521    sysv5* | sco3.2v5* | sco5v6*)
17522      # Note: We can NOT use -z defs as we might desire, because we do not
17523      # link with -lc, and that would cause any symbols used from libc to
17524      # always be unresolved, which means just about no library would
17525      # ever link correctly.  If we're not using GNU ld we use -z text
17526      # though, which does catch some bad symbols but isn't as heavy-handed
17527      # as -z defs.
17528      no_undefined_flag_GCJ='${wl}-z,text'
17529      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17530      archive_cmds_need_lc_GCJ=no
17531      hardcode_shlibpath_var_GCJ=no
17532      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17533      hardcode_libdir_separator_GCJ=':'
17534      link_all_deplibs_GCJ=yes
17535      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17536      runpath_var='LD_RUN_PATH'
17537
17538      if test "$GCC" = yes; then
17539	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17540	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17541      else
17542	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17543	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17544      fi
17545      ;;
17546
17547    uts4*)
17548      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17550      hardcode_shlibpath_var_GCJ=no
17551      ;;
17552
17553    *)
17554      ld_shlibs_GCJ=no
17555      ;;
17556    esac
17557  fi
17558
17559{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17560echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17561test "$ld_shlibs_GCJ" = no && can_build_shared=no
17562
17563#
17564# Do we need to explicitly link libc?
17565#
17566case "x$archive_cmds_need_lc_GCJ" in
17567x|xyes)
17568  # Assume -lc should be added
17569  archive_cmds_need_lc_GCJ=yes
17570
17571  if test "$enable_shared" = yes && test "$GCC" = yes; then
17572    case $archive_cmds_GCJ in
17573    *'~'*)
17574      # FIXME: we may have to deal with multi-command sequences.
17575      ;;
17576    '$CC '*)
17577      # Test whether the compiler implicitly links with -lc since on some
17578      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17579      # to ld, don't add -lc before -lgcc.
17580      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17581echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17582      $rm conftest*
17583      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17584
17585      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17586  (eval $ac_compile) 2>&5
17587  ac_status=$?
17588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589  (exit $ac_status); } 2>conftest.err; then
17590        soname=conftest
17591        lib=conftest
17592        libobjs=conftest.$ac_objext
17593        deplibs=
17594        wl=$lt_prog_compiler_wl_GCJ
17595	pic_flag=$lt_prog_compiler_pic_GCJ
17596        compiler_flags=-v
17597        linker_flags=-v
17598        verstring=
17599        output_objdir=.
17600        libname=conftest
17601        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17602        allow_undefined_flag_GCJ=
17603        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17604  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17605  ac_status=$?
17606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607  (exit $ac_status); }
17608        then
17609	  archive_cmds_need_lc_GCJ=no
17610        else
17611	  archive_cmds_need_lc_GCJ=yes
17612        fi
17613        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17614      else
17615        cat conftest.err 1>&5
17616      fi
17617      $rm conftest*
17618      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17619echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17620      ;;
17621    esac
17622  fi
17623  ;;
17624esac
17625
17626{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17627echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17628library_names_spec=
17629libname_spec='lib$name'
17630soname_spec=
17631shrext_cmds=".so"
17632postinstall_cmds=
17633postuninstall_cmds=
17634finish_cmds=
17635finish_eval=
17636shlibpath_var=
17637shlibpath_overrides_runpath=unknown
17638version_type=none
17639dynamic_linker="$host_os ld.so"
17640sys_lib_dlsearch_path_spec="/lib /usr/lib"
17641if test "$GCC" = yes; then
17642  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17643  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17644    # if the path contains ";" then we assume it to be the separator
17645    # otherwise default to the standard path separator (i.e. ":") - it is
17646    # assumed that no part of a normal pathname contains ";" but that should
17647    # okay in the real world where ";" in dirpaths is itself problematic.
17648    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17649  else
17650    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17651  fi
17652else
17653  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17654fi
17655need_lib_prefix=unknown
17656hardcode_into_libs=no
17657
17658# when you set need_version to no, make sure it does not cause -set_version
17659# flags to be left without arguments
17660need_version=unknown
17661
17662case $host_os in
17663aix3*)
17664  version_type=linux
17665  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17666  shlibpath_var=LIBPATH
17667
17668  # AIX 3 has no versioning support, so we append a major version to the name.
17669  soname_spec='${libname}${release}${shared_ext}$major'
17670  ;;
17671
17672aix4* | aix5*)
17673  version_type=linux
17674  need_lib_prefix=no
17675  need_version=no
17676  hardcode_into_libs=yes
17677  if test "$host_cpu" = ia64; then
17678    # AIX 5 supports IA64
17679    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17680    shlibpath_var=LD_LIBRARY_PATH
17681  else
17682    # With GCC up to 2.95.x, collect2 would create an import file
17683    # for dependence libraries.  The import file would start with
17684    # the line `#! .'.  This would cause the generated library to
17685    # depend on `.', always an invalid library.  This was fixed in
17686    # development snapshots of GCC prior to 3.0.
17687    case $host_os in
17688      aix4 | aix4.[01] | aix4.[01].*)
17689      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17690	   echo ' yes '
17691	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17692	:
17693      else
17694	can_build_shared=no
17695      fi
17696      ;;
17697    esac
17698    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17699    # soname into executable. Probably we can add versioning support to
17700    # collect2, so additional links can be useful in future.
17701    if test "$aix_use_runtimelinking" = yes; then
17702      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17703      # instead of lib<name>.a to let people know that these are not
17704      # typical AIX shared libraries.
17705      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706    else
17707      # We preserve .a as extension for shared libraries through AIX4.2
17708      # and later when we are not doing run time linking.
17709      library_names_spec='${libname}${release}.a $libname.a'
17710      soname_spec='${libname}${release}${shared_ext}$major'
17711    fi
17712    shlibpath_var=LIBPATH
17713  fi
17714  ;;
17715
17716amigaos*)
17717  library_names_spec='$libname.ixlibrary $libname.a'
17718  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17719  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'
17720  ;;
17721
17722beos*)
17723  library_names_spec='${libname}${shared_ext}'
17724  dynamic_linker="$host_os ld.so"
17725  shlibpath_var=LIBRARY_PATH
17726  ;;
17727
17728bsdi[45]*)
17729  version_type=linux
17730  need_version=no
17731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732  soname_spec='${libname}${release}${shared_ext}$major'
17733  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17734  shlibpath_var=LD_LIBRARY_PATH
17735  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17736  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17737  # the default ld.so.conf also contains /usr/contrib/lib and
17738  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17739  # libtool to hard-code these into programs
17740  ;;
17741
17742cygwin* | mingw* | pw32*)
17743  version_type=windows
17744  shrext_cmds=".dll"
17745  need_version=no
17746  need_lib_prefix=no
17747
17748  case $GCC,$host_os in
17749  yes,cygwin* | yes,mingw* | yes,pw32*)
17750    library_names_spec='$libname.dll.a'
17751    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17752    postinstall_cmds='base_file=`basename \${file}`~
17753      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17754      dldir=$destdir/`dirname \$dlpath`~
17755      test -d \$dldir || mkdir -p \$dldir~
17756      $install_prog $dir/$dlname \$dldir/$dlname~
17757      chmod a+x \$dldir/$dlname'
17758    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17759      dlpath=$dir/\$dldll~
17760       $rm \$dlpath'
17761    shlibpath_overrides_runpath=yes
17762
17763    case $host_os in
17764    cygwin*)
17765      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17766      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17767      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17768      ;;
17769    mingw*)
17770      # MinGW DLLs use traditional 'lib' prefix
17771      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17772      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17773      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17774        # It is most probably a Windows format PATH printed by
17775        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17776        # path with ; separators, and with drive letters. We can handle the
17777        # drive letters (cygwin fileutils understands them), so leave them,
17778        # especially as we might pass files found there to a mingw objdump,
17779        # which wouldn't understand a cygwinified path. Ahh.
17780        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17781      else
17782        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17783      fi
17784      ;;
17785    pw32*)
17786      # pw32 DLLs use 'pw' prefix rather than 'lib'
17787      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17788      ;;
17789    esac
17790    ;;
17791
17792  *)
17793    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17794    ;;
17795  esac
17796  dynamic_linker='Win32 ld.exe'
17797  # FIXME: first we should search . and the directory the executable is in
17798  shlibpath_var=PATH
17799  ;;
17800
17801darwin* | rhapsody*)
17802  dynamic_linker="$host_os dyld"
17803  version_type=darwin
17804  need_lib_prefix=no
17805  need_version=no
17806  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17807  soname_spec='${libname}${release}${major}$shared_ext'
17808  shlibpath_overrides_runpath=yes
17809  shlibpath_var=DYLD_LIBRARY_PATH
17810  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17811  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17812  if test "$GCC" = yes; then
17813    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17814  else
17815    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17816  fi
17817  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17818  ;;
17819
17820dgux*)
17821  version_type=linux
17822  need_lib_prefix=no
17823  need_version=no
17824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17825  soname_spec='${libname}${release}${shared_ext}$major'
17826  shlibpath_var=LD_LIBRARY_PATH
17827  ;;
17828
17829freebsd1*)
17830  dynamic_linker=no
17831  ;;
17832
17833kfreebsd*-gnu)
17834  version_type=linux
17835  need_lib_prefix=no
17836  need_version=no
17837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17838  soname_spec='${libname}${release}${shared_ext}$major'
17839  shlibpath_var=LD_LIBRARY_PATH
17840  shlibpath_overrides_runpath=no
17841  hardcode_into_libs=yes
17842  dynamic_linker='GNU ld.so'
17843  ;;
17844
17845freebsd* | dragonfly*)
17846  # DragonFly does not have aout.  When/if they implement a new
17847  # versioning mechanism, adjust this.
17848  if test -x /usr/bin/objformat; then
17849    objformat=`/usr/bin/objformat`
17850  else
17851    case $host_os in
17852    freebsd[123]*) objformat=aout ;;
17853    *) objformat=elf ;;
17854    esac
17855  fi
17856  version_type=freebsd-$objformat
17857  case $version_type in
17858    freebsd-elf*)
17859      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17860      need_version=no
17861      need_lib_prefix=no
17862      ;;
17863    freebsd-*)
17864      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17865      need_version=yes
17866      ;;
17867  esac
17868  shlibpath_var=LD_LIBRARY_PATH
17869  case $host_os in
17870  freebsd2*)
17871    shlibpath_overrides_runpath=yes
17872    ;;
17873  freebsd3.[01]* | freebsdelf3.[01]*)
17874    shlibpath_overrides_runpath=yes
17875    hardcode_into_libs=yes
17876    ;;
17877  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17878  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17879    shlibpath_overrides_runpath=no
17880    hardcode_into_libs=yes
17881    ;;
17882  freebsd*) # from 4.6 on
17883    shlibpath_overrides_runpath=yes
17884    hardcode_into_libs=yes
17885    ;;
17886  esac
17887  ;;
17888
17889gnu*)
17890  version_type=linux
17891  need_lib_prefix=no
17892  need_version=no
17893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17894  soname_spec='${libname}${release}${shared_ext}$major'
17895  shlibpath_var=LD_LIBRARY_PATH
17896  hardcode_into_libs=yes
17897  ;;
17898
17899hpux9* | hpux10* | hpux11*)
17900  # Give a soname corresponding to the major version so that dld.sl refuses to
17901  # link against other versions.
17902  version_type=sunos
17903  need_lib_prefix=no
17904  need_version=no
17905  case $host_cpu in
17906  ia64*)
17907    shrext_cmds='.so'
17908    hardcode_into_libs=yes
17909    dynamic_linker="$host_os dld.so"
17910    shlibpath_var=LD_LIBRARY_PATH
17911    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17913    soname_spec='${libname}${release}${shared_ext}$major'
17914    if test "X$HPUX_IA64_MODE" = X32; then
17915      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17916    else
17917      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17918    fi
17919    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17920    ;;
17921   hppa*64*)
17922     shrext_cmds='.sl'
17923     hardcode_into_libs=yes
17924     dynamic_linker="$host_os dld.sl"
17925     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17926     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17928     soname_spec='${libname}${release}${shared_ext}$major'
17929     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17930     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17931     ;;
17932   *)
17933    shrext_cmds='.sl'
17934    dynamic_linker="$host_os dld.sl"
17935    shlibpath_var=SHLIB_PATH
17936    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17937    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17938    soname_spec='${libname}${release}${shared_ext}$major'
17939    ;;
17940  esac
17941  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17942  postinstall_cmds='chmod 555 $lib'
17943  ;;
17944
17945interix3*)
17946  version_type=linux
17947  need_lib_prefix=no
17948  need_version=no
17949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17950  soname_spec='${libname}${release}${shared_ext}$major'
17951  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17952  shlibpath_var=LD_LIBRARY_PATH
17953  shlibpath_overrides_runpath=no
17954  hardcode_into_libs=yes
17955  ;;
17956
17957irix5* | irix6* | nonstopux*)
17958  case $host_os in
17959    nonstopux*) version_type=nonstopux ;;
17960    *)
17961	if test "$lt_cv_prog_gnu_ld" = yes; then
17962		version_type=linux
17963	else
17964		version_type=irix
17965	fi ;;
17966  esac
17967  need_lib_prefix=no
17968  need_version=no
17969  soname_spec='${libname}${release}${shared_ext}$major'
17970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17971  case $host_os in
17972  irix5* | nonstopux*)
17973    libsuff= shlibsuff=
17974    ;;
17975  *)
17976    case $LD in # libtool.m4 will add one of these switches to LD
17977    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17978      libsuff= shlibsuff= libmagic=32-bit;;
17979    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17980      libsuff=32 shlibsuff=N32 libmagic=N32;;
17981    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17982      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17983    *) libsuff= shlibsuff= libmagic=never-match;;
17984    esac
17985    ;;
17986  esac
17987  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17988  shlibpath_overrides_runpath=no
17989  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17990  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17991  hardcode_into_libs=yes
17992  ;;
17993
17994# No shared lib support for Linux oldld, aout, or coff.
17995linux*oldld* | linux*aout* | linux*coff*)
17996  dynamic_linker=no
17997  ;;
17998
17999# This must be Linux ELF.
18000linux*)
18001  version_type=linux
18002  need_lib_prefix=no
18003  need_version=no
18004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18005  soname_spec='${libname}${release}${shared_ext}$major'
18006  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18007  shlibpath_var=LD_LIBRARY_PATH
18008  shlibpath_overrides_runpath=no
18009  # This implies no fast_install, which is unacceptable.
18010  # Some rework will be needed to allow for fast_install
18011  # before this can be enabled.
18012  hardcode_into_libs=yes
18013
18014  # Append ld.so.conf contents to the search path
18015  if test -f /etc/ld.so.conf; then
18016    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18017    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18018  fi
18019
18020  # We used to test for /lib/ld.so.1 and disable shared libraries on
18021  # powerpc, because MkLinux only supported shared libraries with the
18022  # GNU dynamic linker.  Since this was broken with cross compilers,
18023  # most powerpc-linux boxes support dynamic linking these days and
18024  # people can always --disable-shared, the test was removed, and we
18025  # assume the GNU/Linux dynamic linker is in use.
18026  dynamic_linker='GNU/Linux ld.so'
18027  ;;
18028
18029knetbsd*-gnu)
18030  version_type=linux
18031  need_lib_prefix=no
18032  need_version=no
18033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18034  soname_spec='${libname}${release}${shared_ext}$major'
18035  shlibpath_var=LD_LIBRARY_PATH
18036  shlibpath_overrides_runpath=no
18037  hardcode_into_libs=yes
18038  dynamic_linker='GNU ld.so'
18039  ;;
18040
18041netbsd*)
18042  version_type=sunos
18043  need_lib_prefix=no
18044  need_version=no
18045  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18046    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18047    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18048    dynamic_linker='NetBSD (a.out) ld.so'
18049  else
18050    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18051    soname_spec='${libname}${release}${shared_ext}$major'
18052    dynamic_linker='NetBSD ld.elf_so'
18053  fi
18054  shlibpath_var=LD_LIBRARY_PATH
18055  shlibpath_overrides_runpath=yes
18056  hardcode_into_libs=yes
18057  ;;
18058
18059newsos6)
18060  version_type=linux
18061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18062  shlibpath_var=LD_LIBRARY_PATH
18063  shlibpath_overrides_runpath=yes
18064  ;;
18065
18066nto-qnx*)
18067  version_type=linux
18068  need_lib_prefix=no
18069  need_version=no
18070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18071  soname_spec='${libname}${release}${shared_ext}$major'
18072  shlibpath_var=LD_LIBRARY_PATH
18073  shlibpath_overrides_runpath=yes
18074  ;;
18075
18076openbsd*)
18077  version_type=sunos
18078  sys_lib_dlsearch_path_spec="/usr/lib"
18079  need_lib_prefix=no
18080  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18081  case $host_os in
18082    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18083    *)                         need_version=no  ;;
18084  esac
18085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18086  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18087  shlibpath_var=LD_LIBRARY_PATH
18088  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18089    case $host_os in
18090      openbsd2.[89] | openbsd2.[89].*)
18091	shlibpath_overrides_runpath=no
18092	;;
18093      *)
18094	shlibpath_overrides_runpath=yes
18095	;;
18096      esac
18097  else
18098    shlibpath_overrides_runpath=yes
18099  fi
18100  ;;
18101
18102os2*)
18103  libname_spec='$name'
18104  shrext_cmds=".dll"
18105  need_lib_prefix=no
18106  library_names_spec='$libname${shared_ext} $libname.a'
18107  dynamic_linker='OS/2 ld.exe'
18108  shlibpath_var=LIBPATH
18109  ;;
18110
18111osf3* | osf4* | osf5*)
18112  version_type=osf
18113  need_lib_prefix=no
18114  need_version=no
18115  soname_spec='${libname}${release}${shared_ext}$major'
18116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18117  shlibpath_var=LD_LIBRARY_PATH
18118  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18119  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18120  ;;
18121
18122solaris*)
18123  version_type=linux
18124  need_lib_prefix=no
18125  need_version=no
18126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127  soname_spec='${libname}${release}${shared_ext}$major'
18128  shlibpath_var=LD_LIBRARY_PATH
18129  shlibpath_overrides_runpath=yes
18130  hardcode_into_libs=yes
18131  # ldd complains unless libraries are executable
18132  postinstall_cmds='chmod +x $lib'
18133  ;;
18134
18135sunos4*)
18136  version_type=sunos
18137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18138  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18139  shlibpath_var=LD_LIBRARY_PATH
18140  shlibpath_overrides_runpath=yes
18141  if test "$with_gnu_ld" = yes; then
18142    need_lib_prefix=no
18143  fi
18144  need_version=yes
18145  ;;
18146
18147sysv4 | sysv4.3*)
18148  version_type=linux
18149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18150  soname_spec='${libname}${release}${shared_ext}$major'
18151  shlibpath_var=LD_LIBRARY_PATH
18152  case $host_vendor in
18153    sni)
18154      shlibpath_overrides_runpath=no
18155      need_lib_prefix=no
18156      export_dynamic_flag_spec='${wl}-Blargedynsym'
18157      runpath_var=LD_RUN_PATH
18158      ;;
18159    siemens)
18160      need_lib_prefix=no
18161      ;;
18162    motorola)
18163      need_lib_prefix=no
18164      need_version=no
18165      shlibpath_overrides_runpath=no
18166      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18167      ;;
18168  esac
18169  ;;
18170
18171sysv4*MP*)
18172  if test -d /usr/nec ;then
18173    version_type=linux
18174    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18175    soname_spec='$libname${shared_ext}.$major'
18176    shlibpath_var=LD_LIBRARY_PATH
18177  fi
18178  ;;
18179
18180sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18181  version_type=freebsd-elf
18182  need_lib_prefix=no
18183  need_version=no
18184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18185  soname_spec='${libname}${release}${shared_ext}$major'
18186  shlibpath_var=LD_LIBRARY_PATH
18187  hardcode_into_libs=yes
18188  if test "$with_gnu_ld" = yes; then
18189    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18190    shlibpath_overrides_runpath=no
18191  else
18192    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18193    shlibpath_overrides_runpath=yes
18194    case $host_os in
18195      sco3.2v5*)
18196        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18197	;;
18198    esac
18199  fi
18200  sys_lib_dlsearch_path_spec='/usr/lib'
18201  ;;
18202
18203uts4*)
18204  version_type=linux
18205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18206  soname_spec='${libname}${release}${shared_ext}$major'
18207  shlibpath_var=LD_LIBRARY_PATH
18208  ;;
18209
18210*)
18211  dynamic_linker=no
18212  ;;
18213esac
18214{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18215echo "${ECHO_T}$dynamic_linker" >&6; }
18216test "$dynamic_linker" = no && can_build_shared=no
18217
18218variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18219if test "$GCC" = yes; then
18220  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18221fi
18222
18223{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18224echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18225hardcode_action_GCJ=
18226if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18227   test -n "$runpath_var_GCJ" || \
18228   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18229
18230  # We can hardcode non-existant directories.
18231  if test "$hardcode_direct_GCJ" != no &&
18232     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18233     # have to relink, otherwise we might link with an installed library
18234     # when we should be linking with a yet-to-be-installed one
18235     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18236     test "$hardcode_minus_L_GCJ" != no; then
18237    # Linking always hardcodes the temporary library directory.
18238    hardcode_action_GCJ=relink
18239  else
18240    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18241    hardcode_action_GCJ=immediate
18242  fi
18243else
18244  # We cannot hardcode anything, or else we can only hardcode existing
18245  # directories.
18246  hardcode_action_GCJ=unsupported
18247fi
18248{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18249echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18250
18251if test "$hardcode_action_GCJ" = relink; then
18252  # Fast installation is not supported
18253  enable_fast_install=no
18254elif test "$shlibpath_overrides_runpath" = yes ||
18255     test "$enable_shared" = no; then
18256  # Fast installation is not necessary
18257  enable_fast_install=needless
18258fi
18259
18260
18261# The else clause should only fire when bootstrapping the
18262# libtool distribution, otherwise you forgot to ship ltmain.sh
18263# with your package, and you will get complaints that there are
18264# no rules to generate ltmain.sh.
18265if test -f "$ltmain"; then
18266  # See if we are running on zsh, and set the options which allow our commands through
18267  # without removal of \ escapes.
18268  if test -n "${ZSH_VERSION+set}" ; then
18269    setopt NO_GLOB_SUBST
18270  fi
18271  # Now quote all the things that may contain metacharacters while being
18272  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18273  # variables and quote the copies for generation of the libtool script.
18274  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18275    SED SHELL STRIP \
18276    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18277    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18278    deplibs_check_method reload_flag reload_cmds need_locks \
18279    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18280    lt_cv_sys_global_symbol_to_c_name_address \
18281    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18282    old_postinstall_cmds old_postuninstall_cmds \
18283    compiler_GCJ \
18284    CC_GCJ \
18285    LD_GCJ \
18286    lt_prog_compiler_wl_GCJ \
18287    lt_prog_compiler_pic_GCJ \
18288    lt_prog_compiler_static_GCJ \
18289    lt_prog_compiler_no_builtin_flag_GCJ \
18290    export_dynamic_flag_spec_GCJ \
18291    thread_safe_flag_spec_GCJ \
18292    whole_archive_flag_spec_GCJ \
18293    enable_shared_with_static_runtimes_GCJ \
18294    old_archive_cmds_GCJ \
18295    old_archive_from_new_cmds_GCJ \
18296    predep_objects_GCJ \
18297    postdep_objects_GCJ \
18298    predeps_GCJ \
18299    postdeps_GCJ \
18300    compiler_lib_search_path_GCJ \
18301    archive_cmds_GCJ \
18302    archive_expsym_cmds_GCJ \
18303    postinstall_cmds_GCJ \
18304    postuninstall_cmds_GCJ \
18305    old_archive_from_expsyms_cmds_GCJ \
18306    allow_undefined_flag_GCJ \
18307    no_undefined_flag_GCJ \
18308    export_symbols_cmds_GCJ \
18309    hardcode_libdir_flag_spec_GCJ \
18310    hardcode_libdir_flag_spec_ld_GCJ \
18311    hardcode_libdir_separator_GCJ \
18312    hardcode_automatic_GCJ \
18313    module_cmds_GCJ \
18314    module_expsym_cmds_GCJ \
18315    lt_cv_prog_compiler_c_o_GCJ \
18316    exclude_expsyms_GCJ \
18317    include_expsyms_GCJ; do
18318
18319    case $var in
18320    old_archive_cmds_GCJ | \
18321    old_archive_from_new_cmds_GCJ | \
18322    archive_cmds_GCJ | \
18323    archive_expsym_cmds_GCJ | \
18324    module_cmds_GCJ | \
18325    module_expsym_cmds_GCJ | \
18326    old_archive_from_expsyms_cmds_GCJ | \
18327    export_symbols_cmds_GCJ | \
18328    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18329    postinstall_cmds | postuninstall_cmds | \
18330    old_postinstall_cmds | old_postuninstall_cmds | \
18331    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18332      # Double-quote double-evaled strings.
18333      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18334      ;;
18335    *)
18336      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18337      ;;
18338    esac
18339  done
18340
18341  case $lt_echo in
18342  *'\$0 --fallback-echo"')
18343    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18344    ;;
18345  esac
18346
18347cfgfile="$ofile"
18348
18349  cat <<__EOF__ >> "$cfgfile"
18350# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18351
18352# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18353
18354# Shell to use when invoking shell scripts.
18355SHELL=$lt_SHELL
18356
18357# Whether or not to build shared libraries.
18358build_libtool_libs=$enable_shared
18359
18360# Whether or not to build static libraries.
18361build_old_libs=$enable_static
18362
18363# Whether or not to add -lc for building shared libraries.
18364build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18365
18366# Whether or not to disallow shared libs when runtime libs are static
18367allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18368
18369# Whether or not to optimize for fast installation.
18370fast_install=$enable_fast_install
18371
18372# The host system.
18373host_alias=$host_alias
18374host=$host
18375host_os=$host_os
18376
18377# The build system.
18378build_alias=$build_alias
18379build=$build
18380build_os=$build_os
18381
18382# An echo program that does not interpret backslashes.
18383echo=$lt_echo
18384
18385# The archiver.
18386AR=$lt_AR
18387AR_FLAGS=$lt_AR_FLAGS
18388
18389# A C compiler.
18390LTCC=$lt_LTCC
18391
18392# LTCC compiler flags.
18393LTCFLAGS=$lt_LTCFLAGS
18394
18395# A language-specific compiler.
18396CC=$lt_compiler_GCJ
18397
18398# Is the compiler the GNU C compiler?
18399with_gcc=$GCC_GCJ
18400
18401# An ERE matcher.
18402EGREP=$lt_EGREP
18403
18404# The linker used to build libraries.
18405LD=$lt_LD_GCJ
18406
18407# Whether we need hard or soft links.
18408LN_S=$lt_LN_S
18409
18410# A BSD-compatible nm program.
18411NM=$lt_NM
18412
18413# A symbol stripping program
18414STRIP=$lt_STRIP
18415
18416# Used to examine libraries when file_magic_cmd begins "file"
18417MAGIC_CMD=$MAGIC_CMD
18418
18419# Used on cygwin: DLL creation program.
18420DLLTOOL="$DLLTOOL"
18421
18422# Used on cygwin: object dumper.
18423OBJDUMP="$OBJDUMP"
18424
18425# Used on cygwin: assembler.
18426AS="$AS"
18427
18428# The name of the directory that contains temporary libtool files.
18429objdir=$objdir
18430
18431# How to create reloadable object files.
18432reload_flag=$lt_reload_flag
18433reload_cmds=$lt_reload_cmds
18434
18435# How to pass a linker flag through the compiler.
18436wl=$lt_lt_prog_compiler_wl_GCJ
18437
18438# Object file suffix (normally "o").
18439objext="$ac_objext"
18440
18441# Old archive suffix (normally "a").
18442libext="$libext"
18443
18444# Shared library suffix (normally ".so").
18445shrext_cmds='$shrext_cmds'
18446
18447# Executable file suffix (normally "").
18448exeext="$exeext"
18449
18450# Additional compiler flags for building library objects.
18451pic_flag=$lt_lt_prog_compiler_pic_GCJ
18452pic_mode=$pic_mode
18453
18454# What is the maximum length of a command?
18455max_cmd_len=$lt_cv_sys_max_cmd_len
18456
18457# Does compiler simultaneously support -c and -o options?
18458compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18459
18460# Must we lock files when doing compilation?
18461need_locks=$lt_need_locks
18462
18463# Do we need the lib prefix for modules?
18464need_lib_prefix=$need_lib_prefix
18465
18466# Do we need a version for libraries?
18467need_version=$need_version
18468
18469# Whether dlopen is supported.
18470dlopen_support=$enable_dlopen
18471
18472# Whether dlopen of programs is supported.
18473dlopen_self=$enable_dlopen_self
18474
18475# Whether dlopen of statically linked programs is supported.
18476dlopen_self_static=$enable_dlopen_self_static
18477
18478# Compiler flag to prevent dynamic linking.
18479link_static_flag=$lt_lt_prog_compiler_static_GCJ
18480
18481# Compiler flag to turn off builtin functions.
18482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18483
18484# Compiler flag to allow reflexive dlopens.
18485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18486
18487# Compiler flag to generate shared objects directly from archives.
18488whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18489
18490# Compiler flag to generate thread-safe objects.
18491thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18492
18493# Library versioning type.
18494version_type=$version_type
18495
18496# Format of library name prefix.
18497libname_spec=$lt_libname_spec
18498
18499# List of archive names.  First name is the real one, the rest are links.
18500# The last name is the one that the linker finds with -lNAME.
18501library_names_spec=$lt_library_names_spec
18502
18503# The coded name of the library, if different from the real name.
18504soname_spec=$lt_soname_spec
18505
18506# Commands used to build and install an old-style archive.
18507RANLIB=$lt_RANLIB
18508old_archive_cmds=$lt_old_archive_cmds_GCJ
18509old_postinstall_cmds=$lt_old_postinstall_cmds
18510old_postuninstall_cmds=$lt_old_postuninstall_cmds
18511
18512# Create an old-style archive from a shared archive.
18513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18514
18515# Create a temporary old-style archive to link instead of a shared archive.
18516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18517
18518# Commands used to build and install a shared archive.
18519archive_cmds=$lt_archive_cmds_GCJ
18520archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18521postinstall_cmds=$lt_postinstall_cmds
18522postuninstall_cmds=$lt_postuninstall_cmds
18523
18524# Commands used to build a loadable module (assumed same as above if empty)
18525module_cmds=$lt_module_cmds_GCJ
18526module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18527
18528# Commands to strip libraries.
18529old_striplib=$lt_old_striplib
18530striplib=$lt_striplib
18531
18532# Dependencies to place before the objects being linked to create a
18533# shared library.
18534predep_objects=$lt_predep_objects_GCJ
18535
18536# Dependencies to place after the objects being linked to create a
18537# shared library.
18538postdep_objects=$lt_postdep_objects_GCJ
18539
18540# Dependencies to place before the objects being linked to create a
18541# shared library.
18542predeps=$lt_predeps_GCJ
18543
18544# Dependencies to place after the objects being linked to create a
18545# shared library.
18546postdeps=$lt_postdeps_GCJ
18547
18548# The library search path used internally by the compiler when linking
18549# a shared library.
18550compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18551
18552# Method to check whether dependent libraries are shared objects.
18553deplibs_check_method=$lt_deplibs_check_method
18554
18555# Command to use when deplibs_check_method == file_magic.
18556file_magic_cmd=$lt_file_magic_cmd
18557
18558# Flag that allows shared libraries with undefined symbols to be built.
18559allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18560
18561# Flag that forces no undefined symbols.
18562no_undefined_flag=$lt_no_undefined_flag_GCJ
18563
18564# Commands used to finish a libtool library installation in a directory.
18565finish_cmds=$lt_finish_cmds
18566
18567# Same as above, but a single script fragment to be evaled but not shown.
18568finish_eval=$lt_finish_eval
18569
18570# Take the output of nm and produce a listing of raw symbols and C names.
18571global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18572
18573# Transform the output of nm in a proper C declaration
18574global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18575
18576# Transform the output of nm in a C name address pair
18577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18578
18579# This is the shared library runtime path variable.
18580runpath_var=$runpath_var
18581
18582# This is the shared library path variable.
18583shlibpath_var=$shlibpath_var
18584
18585# Is shlibpath searched before the hard-coded library search path?
18586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18587
18588# How to hardcode a shared library path into an executable.
18589hardcode_action=$hardcode_action_GCJ
18590
18591# Whether we should hardcode library paths into libraries.
18592hardcode_into_libs=$hardcode_into_libs
18593
18594# Flag to hardcode \$libdir into a binary during linking.
18595# This must work even if \$libdir does not exist.
18596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18597
18598# If ld is used when linking, flag to hardcode \$libdir into
18599# a binary during linking. This must work even if \$libdir does
18600# not exist.
18601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18602
18603# Whether we need a single -rpath flag with a separated argument.
18604hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18605
18606# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18607# resulting binary.
18608hardcode_direct=$hardcode_direct_GCJ
18609
18610# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18611# resulting binary.
18612hardcode_minus_L=$hardcode_minus_L_GCJ
18613
18614# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18615# the resulting binary.
18616hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18617
18618# Set to yes if building a shared library automatically hardcodes DIR into the library
18619# and all subsequent libraries and executables linked against it.
18620hardcode_automatic=$hardcode_automatic_GCJ
18621
18622# Variables whose values should be saved in libtool wrapper scripts and
18623# restored at relink time.
18624variables_saved_for_relink="$variables_saved_for_relink"
18625
18626# Whether libtool must link a program against all its dependency libraries.
18627link_all_deplibs=$link_all_deplibs_GCJ
18628
18629# Compile-time system search path for libraries
18630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18631
18632# Run-time system search path for libraries
18633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18634
18635# Fix the shell variable \$srcfile for the compiler.
18636fix_srcfile_path="$fix_srcfile_path_GCJ"
18637
18638# Set to yes if exported symbols are required.
18639always_export_symbols=$always_export_symbols_GCJ
18640
18641# The commands to list exported symbols.
18642export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18643
18644# The commands to extract the exported symbol list from a shared archive.
18645extract_expsyms_cmds=$lt_extract_expsyms_cmds
18646
18647# Symbols that should not be listed in the preloaded symbols.
18648exclude_expsyms=$lt_exclude_expsyms_GCJ
18649
18650# Symbols that must always be exported.
18651include_expsyms=$lt_include_expsyms_GCJ
18652
18653# ### END LIBTOOL TAG CONFIG: $tagname
18654
18655__EOF__
18656
18657
18658else
18659  # If there is no Makefile yet, we rely on a make rule to execute
18660  # `config.status --recheck' to rerun these tests and create the
18661  # libtool script then.
18662  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18663  if test -f "$ltmain_in"; then
18664    test -f Makefile && make "$ltmain"
18665  fi
18666fi
18667
18668
18669ac_ext=c
18670ac_cpp='$CPP $CPPFLAGS'
18671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18673ac_compiler_gnu=$ac_cv_c_compiler_gnu
18674
18675CC="$lt_save_CC"
18676
18677	else
18678	  tagname=""
18679	fi
18680	;;
18681
18682      RC)
18683
18684
18685# Source file extension for RC test sources.
18686ac_ext=rc
18687
18688# Object file extension for compiled RC test sources.
18689objext=o
18690objext_RC=$objext
18691
18692# Code to be used in simple compile tests
18693lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18694
18695# Code to be used in simple link tests
18696lt_simple_link_test_code="$lt_simple_compile_test_code"
18697
18698# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18699
18700# If no C compiler was specified, use CC.
18701LTCC=${LTCC-"$CC"}
18702
18703# If no C compiler flags were specified, use CFLAGS.
18704LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18705
18706# Allow CC to be a program name with arguments.
18707compiler=$CC
18708
18709
18710# save warnings/boilerplate of simple test code
18711ac_outfile=conftest.$ac_objext
18712printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18713eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18714_lt_compiler_boilerplate=`cat conftest.err`
18715$rm conftest*
18716
18717ac_outfile=conftest.$ac_objext
18718printf "$lt_simple_link_test_code" >conftest.$ac_ext
18719eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18720_lt_linker_boilerplate=`cat conftest.err`
18721$rm conftest*
18722
18723
18724# Allow CC to be a program name with arguments.
18725lt_save_CC="$CC"
18726CC=${RC-"windres"}
18727compiler=$CC
18728compiler_RC=$CC
18729for cc_temp in $compiler""; do
18730  case $cc_temp in
18731    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18732    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18733    \-*) ;;
18734    *) break;;
18735  esac
18736done
18737cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18738
18739lt_cv_prog_compiler_c_o_RC=yes
18740
18741# The else clause should only fire when bootstrapping the
18742# libtool distribution, otherwise you forgot to ship ltmain.sh
18743# with your package, and you will get complaints that there are
18744# no rules to generate ltmain.sh.
18745if test -f "$ltmain"; then
18746  # See if we are running on zsh, and set the options which allow our commands through
18747  # without removal of \ escapes.
18748  if test -n "${ZSH_VERSION+set}" ; then
18749    setopt NO_GLOB_SUBST
18750  fi
18751  # Now quote all the things that may contain metacharacters while being
18752  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18753  # variables and quote the copies for generation of the libtool script.
18754  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18755    SED SHELL STRIP \
18756    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18757    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18758    deplibs_check_method reload_flag reload_cmds need_locks \
18759    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18760    lt_cv_sys_global_symbol_to_c_name_address \
18761    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18762    old_postinstall_cmds old_postuninstall_cmds \
18763    compiler_RC \
18764    CC_RC \
18765    LD_RC \
18766    lt_prog_compiler_wl_RC \
18767    lt_prog_compiler_pic_RC \
18768    lt_prog_compiler_static_RC \
18769    lt_prog_compiler_no_builtin_flag_RC \
18770    export_dynamic_flag_spec_RC \
18771    thread_safe_flag_spec_RC \
18772    whole_archive_flag_spec_RC \
18773    enable_shared_with_static_runtimes_RC \
18774    old_archive_cmds_RC \
18775    old_archive_from_new_cmds_RC \
18776    predep_objects_RC \
18777    postdep_objects_RC \
18778    predeps_RC \
18779    postdeps_RC \
18780    compiler_lib_search_path_RC \
18781    archive_cmds_RC \
18782    archive_expsym_cmds_RC \
18783    postinstall_cmds_RC \
18784    postuninstall_cmds_RC \
18785    old_archive_from_expsyms_cmds_RC \
18786    allow_undefined_flag_RC \
18787    no_undefined_flag_RC \
18788    export_symbols_cmds_RC \
18789    hardcode_libdir_flag_spec_RC \
18790    hardcode_libdir_flag_spec_ld_RC \
18791    hardcode_libdir_separator_RC \
18792    hardcode_automatic_RC \
18793    module_cmds_RC \
18794    module_expsym_cmds_RC \
18795    lt_cv_prog_compiler_c_o_RC \
18796    exclude_expsyms_RC \
18797    include_expsyms_RC; do
18798
18799    case $var in
18800    old_archive_cmds_RC | \
18801    old_archive_from_new_cmds_RC | \
18802    archive_cmds_RC | \
18803    archive_expsym_cmds_RC | \
18804    module_cmds_RC | \
18805    module_expsym_cmds_RC | \
18806    old_archive_from_expsyms_cmds_RC | \
18807    export_symbols_cmds_RC | \
18808    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18809    postinstall_cmds | postuninstall_cmds | \
18810    old_postinstall_cmds | old_postuninstall_cmds | \
18811    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18812      # Double-quote double-evaled strings.
18813      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18814      ;;
18815    *)
18816      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18817      ;;
18818    esac
18819  done
18820
18821  case $lt_echo in
18822  *'\$0 --fallback-echo"')
18823    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18824    ;;
18825  esac
18826
18827cfgfile="$ofile"
18828
18829  cat <<__EOF__ >> "$cfgfile"
18830# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18831
18832# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18833
18834# Shell to use when invoking shell scripts.
18835SHELL=$lt_SHELL
18836
18837# Whether or not to build shared libraries.
18838build_libtool_libs=$enable_shared
18839
18840# Whether or not to build static libraries.
18841build_old_libs=$enable_static
18842
18843# Whether or not to add -lc for building shared libraries.
18844build_libtool_need_lc=$archive_cmds_need_lc_RC
18845
18846# Whether or not to disallow shared libs when runtime libs are static
18847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18848
18849# Whether or not to optimize for fast installation.
18850fast_install=$enable_fast_install
18851
18852# The host system.
18853host_alias=$host_alias
18854host=$host
18855host_os=$host_os
18856
18857# The build system.
18858build_alias=$build_alias
18859build=$build
18860build_os=$build_os
18861
18862# An echo program that does not interpret backslashes.
18863echo=$lt_echo
18864
18865# The archiver.
18866AR=$lt_AR
18867AR_FLAGS=$lt_AR_FLAGS
18868
18869# A C compiler.
18870LTCC=$lt_LTCC
18871
18872# LTCC compiler flags.
18873LTCFLAGS=$lt_LTCFLAGS
18874
18875# A language-specific compiler.
18876CC=$lt_compiler_RC
18877
18878# Is the compiler the GNU C compiler?
18879with_gcc=$GCC_RC
18880
18881# An ERE matcher.
18882EGREP=$lt_EGREP
18883
18884# The linker used to build libraries.
18885LD=$lt_LD_RC
18886
18887# Whether we need hard or soft links.
18888LN_S=$lt_LN_S
18889
18890# A BSD-compatible nm program.
18891NM=$lt_NM
18892
18893# A symbol stripping program
18894STRIP=$lt_STRIP
18895
18896# Used to examine libraries when file_magic_cmd begins "file"
18897MAGIC_CMD=$MAGIC_CMD
18898
18899# Used on cygwin: DLL creation program.
18900DLLTOOL="$DLLTOOL"
18901
18902# Used on cygwin: object dumper.
18903OBJDUMP="$OBJDUMP"
18904
18905# Used on cygwin: assembler.
18906AS="$AS"
18907
18908# The name of the directory that contains temporary libtool files.
18909objdir=$objdir
18910
18911# How to create reloadable object files.
18912reload_flag=$lt_reload_flag
18913reload_cmds=$lt_reload_cmds
18914
18915# How to pass a linker flag through the compiler.
18916wl=$lt_lt_prog_compiler_wl_RC
18917
18918# Object file suffix (normally "o").
18919objext="$ac_objext"
18920
18921# Old archive suffix (normally "a").
18922libext="$libext"
18923
18924# Shared library suffix (normally ".so").
18925shrext_cmds='$shrext_cmds'
18926
18927# Executable file suffix (normally "").
18928exeext="$exeext"
18929
18930# Additional compiler flags for building library objects.
18931pic_flag=$lt_lt_prog_compiler_pic_RC
18932pic_mode=$pic_mode
18933
18934# What is the maximum length of a command?
18935max_cmd_len=$lt_cv_sys_max_cmd_len
18936
18937# Does compiler simultaneously support -c and -o options?
18938compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18939
18940# Must we lock files when doing compilation?
18941need_locks=$lt_need_locks
18942
18943# Do we need the lib prefix for modules?
18944need_lib_prefix=$need_lib_prefix
18945
18946# Do we need a version for libraries?
18947need_version=$need_version
18948
18949# Whether dlopen is supported.
18950dlopen_support=$enable_dlopen
18951
18952# Whether dlopen of programs is supported.
18953dlopen_self=$enable_dlopen_self
18954
18955# Whether dlopen of statically linked programs is supported.
18956dlopen_self_static=$enable_dlopen_self_static
18957
18958# Compiler flag to prevent dynamic linking.
18959link_static_flag=$lt_lt_prog_compiler_static_RC
18960
18961# Compiler flag to turn off builtin functions.
18962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18963
18964# Compiler flag to allow reflexive dlopens.
18965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18966
18967# Compiler flag to generate shared objects directly from archives.
18968whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18969
18970# Compiler flag to generate thread-safe objects.
18971thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18972
18973# Library versioning type.
18974version_type=$version_type
18975
18976# Format of library name prefix.
18977libname_spec=$lt_libname_spec
18978
18979# List of archive names.  First name is the real one, the rest are links.
18980# The last name is the one that the linker finds with -lNAME.
18981library_names_spec=$lt_library_names_spec
18982
18983# The coded name of the library, if different from the real name.
18984soname_spec=$lt_soname_spec
18985
18986# Commands used to build and install an old-style archive.
18987RANLIB=$lt_RANLIB
18988old_archive_cmds=$lt_old_archive_cmds_RC
18989old_postinstall_cmds=$lt_old_postinstall_cmds
18990old_postuninstall_cmds=$lt_old_postuninstall_cmds
18991
18992# Create an old-style archive from a shared archive.
18993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18994
18995# Create a temporary old-style archive to link instead of a shared archive.
18996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18997
18998# Commands used to build and install a shared archive.
18999archive_cmds=$lt_archive_cmds_RC
19000archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19001postinstall_cmds=$lt_postinstall_cmds
19002postuninstall_cmds=$lt_postuninstall_cmds
19003
19004# Commands used to build a loadable module (assumed same as above if empty)
19005module_cmds=$lt_module_cmds_RC
19006module_expsym_cmds=$lt_module_expsym_cmds_RC
19007
19008# Commands to strip libraries.
19009old_striplib=$lt_old_striplib
19010striplib=$lt_striplib
19011
19012# Dependencies to place before the objects being linked to create a
19013# shared library.
19014predep_objects=$lt_predep_objects_RC
19015
19016# Dependencies to place after the objects being linked to create a
19017# shared library.
19018postdep_objects=$lt_postdep_objects_RC
19019
19020# Dependencies to place before the objects being linked to create a
19021# shared library.
19022predeps=$lt_predeps_RC
19023
19024# Dependencies to place after the objects being linked to create a
19025# shared library.
19026postdeps=$lt_postdeps_RC
19027
19028# The library search path used internally by the compiler when linking
19029# a shared library.
19030compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19031
19032# Method to check whether dependent libraries are shared objects.
19033deplibs_check_method=$lt_deplibs_check_method
19034
19035# Command to use when deplibs_check_method == file_magic.
19036file_magic_cmd=$lt_file_magic_cmd
19037
19038# Flag that allows shared libraries with undefined symbols to be built.
19039allow_undefined_flag=$lt_allow_undefined_flag_RC
19040
19041# Flag that forces no undefined symbols.
19042no_undefined_flag=$lt_no_undefined_flag_RC
19043
19044# Commands used to finish a libtool library installation in a directory.
19045finish_cmds=$lt_finish_cmds
19046
19047# Same as above, but a single script fragment to be evaled but not shown.
19048finish_eval=$lt_finish_eval
19049
19050# Take the output of nm and produce a listing of raw symbols and C names.
19051global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19052
19053# Transform the output of nm in a proper C declaration
19054global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19055
19056# Transform the output of nm in a C name address pair
19057global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19058
19059# This is the shared library runtime path variable.
19060runpath_var=$runpath_var
19061
19062# This is the shared library path variable.
19063shlibpath_var=$shlibpath_var
19064
19065# Is shlibpath searched before the hard-coded library search path?
19066shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19067
19068# How to hardcode a shared library path into an executable.
19069hardcode_action=$hardcode_action_RC
19070
19071# Whether we should hardcode library paths into libraries.
19072hardcode_into_libs=$hardcode_into_libs
19073
19074# Flag to hardcode \$libdir into a binary during linking.
19075# This must work even if \$libdir does not exist.
19076hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19077
19078# If ld is used when linking, flag to hardcode \$libdir into
19079# a binary during linking. This must work even if \$libdir does
19080# not exist.
19081hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19082
19083# Whether we need a single -rpath flag with a separated argument.
19084hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19085
19086# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19087# resulting binary.
19088hardcode_direct=$hardcode_direct_RC
19089
19090# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19091# resulting binary.
19092hardcode_minus_L=$hardcode_minus_L_RC
19093
19094# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19095# the resulting binary.
19096hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19097
19098# Set to yes if building a shared library automatically hardcodes DIR into the library
19099# and all subsequent libraries and executables linked against it.
19100hardcode_automatic=$hardcode_automatic_RC
19101
19102# Variables whose values should be saved in libtool wrapper scripts and
19103# restored at relink time.
19104variables_saved_for_relink="$variables_saved_for_relink"
19105
19106# Whether libtool must link a program against all its dependency libraries.
19107link_all_deplibs=$link_all_deplibs_RC
19108
19109# Compile-time system search path for libraries
19110sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19111
19112# Run-time system search path for libraries
19113sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19114
19115# Fix the shell variable \$srcfile for the compiler.
19116fix_srcfile_path="$fix_srcfile_path_RC"
19117
19118# Set to yes if exported symbols are required.
19119always_export_symbols=$always_export_symbols_RC
19120
19121# The commands to list exported symbols.
19122export_symbols_cmds=$lt_export_symbols_cmds_RC
19123
19124# The commands to extract the exported symbol list from a shared archive.
19125extract_expsyms_cmds=$lt_extract_expsyms_cmds
19126
19127# Symbols that should not be listed in the preloaded symbols.
19128exclude_expsyms=$lt_exclude_expsyms_RC
19129
19130# Symbols that must always be exported.
19131include_expsyms=$lt_include_expsyms_RC
19132
19133# ### END LIBTOOL TAG CONFIG: $tagname
19134
19135__EOF__
19136
19137
19138else
19139  # If there is no Makefile yet, we rely on a make rule to execute
19140  # `config.status --recheck' to rerun these tests and create the
19141  # libtool script then.
19142  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19143  if test -f "$ltmain_in"; then
19144    test -f Makefile && make "$ltmain"
19145  fi
19146fi
19147
19148
19149ac_ext=c
19150ac_cpp='$CPP $CPPFLAGS'
19151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19153ac_compiler_gnu=$ac_cv_c_compiler_gnu
19154
19155CC="$lt_save_CC"
19156
19157	;;
19158
19159      *)
19160	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19161echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19162   { (exit 1); exit 1; }; }
19163	;;
19164      esac
19165
19166      # Append the new tag name to the list of available tags.
19167      if test -n "$tagname" ; then
19168      available_tags="$available_tags $tagname"
19169    fi
19170    fi
19171  done
19172  IFS="$lt_save_ifs"
19173
19174  # Now substitute the updated list of available tags.
19175  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19176    mv "${ofile}T" "$ofile"
19177    chmod +x "$ofile"
19178  else
19179    rm -f "${ofile}T"
19180    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19181echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19182   { (exit 1); exit 1; }; }
19183  fi
19184fi
19185
19186
19187
19188# This can be used to rebuild libtool when needed
19189LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19190
19191# Always use our own libtool.
19192LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19193
19194# Prevent multiple expansion
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216# Need to call this explicitly since the first call to PKG_CHECK_MODULES
19217# is in an if statement, and later calls would break if it's skipped.
19218
19219
19220if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19221	if test -n "$ac_tool_prefix"; then
19222  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19223set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19226if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19227  echo $ECHO_N "(cached) $ECHO_C" >&6
19228else
19229  case $PKG_CONFIG in
19230  [\\/]* | ?:[\\/]*)
19231  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19232  ;;
19233  *)
19234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19235for as_dir in $PATH
19236do
19237  IFS=$as_save_IFS
19238  test -z "$as_dir" && as_dir=.
19239  for ac_exec_ext in '' $ac_executable_extensions; do
19240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19241    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19243    break 2
19244  fi
19245done
19246done
19247IFS=$as_save_IFS
19248
19249  ;;
19250esac
19251fi
19252PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19253if test -n "$PKG_CONFIG"; then
19254  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19255echo "${ECHO_T}$PKG_CONFIG" >&6; }
19256else
19257  { echo "$as_me:$LINENO: result: no" >&5
19258echo "${ECHO_T}no" >&6; }
19259fi
19260
19261
19262fi
19263if test -z "$ac_cv_path_PKG_CONFIG"; then
19264  ac_pt_PKG_CONFIG=$PKG_CONFIG
19265  # Extract the first word of "pkg-config", so it can be a program name with args.
19266set dummy pkg-config; ac_word=$2
19267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19269if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19270  echo $ECHO_N "(cached) $ECHO_C" >&6
19271else
19272  case $ac_pt_PKG_CONFIG in
19273  [\\/]* | ?:[\\/]*)
19274  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19275  ;;
19276  *)
19277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278for as_dir in $PATH
19279do
19280  IFS=$as_save_IFS
19281  test -z "$as_dir" && as_dir=.
19282  for ac_exec_ext in '' $ac_executable_extensions; do
19283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19284    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19286    break 2
19287  fi
19288done
19289done
19290IFS=$as_save_IFS
19291
19292  ;;
19293esac
19294fi
19295ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19296if test -n "$ac_pt_PKG_CONFIG"; then
19297  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19298echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19299else
19300  { echo "$as_me:$LINENO: result: no" >&5
19301echo "${ECHO_T}no" >&6; }
19302fi
19303
19304  if test "x$ac_pt_PKG_CONFIG" = x; then
19305    PKG_CONFIG=""
19306  else
19307    case $cross_compiling:$ac_tool_warned in
19308yes:)
19309{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19310whose name does not start with the host triplet.  If you think this
19311configuration is useful to you, please write to autoconf@gnu.org." >&5
19312echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19313whose name does not start with the host triplet.  If you think this
19314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19315ac_tool_warned=yes ;;
19316esac
19317    PKG_CONFIG=$ac_pt_PKG_CONFIG
19318  fi
19319else
19320  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19321fi
19322
19323fi
19324if test -n "$PKG_CONFIG"; then
19325	_pkg_min_version=0.9.0
19326	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19327echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19328	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19329		{ echo "$as_me:$LINENO: result: yes" >&5
19330echo "${ECHO_T}yes" >&6; }
19331	else
19332		{ echo "$as_me:$LINENO: result: no" >&5
19333echo "${ECHO_T}no" >&6; }
19334		PKG_CONFIG=""
19335	fi
19336
19337fi
19338
19339#
19340# fix libtool to set SONAME to libXaw.so.$major
19341#
19342{ echo "$as_me:$LINENO: checking hacks in libtool for libXaw SONAME" >&5
19343echo $ECHO_N "checking hacks in libtool for libXaw SONAME... $ECHO_C" >&6; }
19344if grep "xorglibxawname" libtool > /dev/null ; then
19345	{ echo "$as_me:$LINENO: result: already done" >&5
19346echo "${ECHO_T}already done" >&6; }
19347else
19348	ed libtool << \EOF
19349/^soname_spec/i
19350# X.Org hack to match monolithic Xaw SONAME
19351xorglibxawname="libXaw"
19352.
19353/^soname_spec/s/libname/xorglibxawname/
19354w
19355q
19356EOF
19357	{ echo "$as_me:$LINENO: result: fixed" >&5
19358echo "${ECHO_T}fixed" >&6; }
19359fi
19360
19361# Win32 DLL rules are different.
19362case $host_os in
19363    cygwin*|mingw*)
19364	platform_win32=yes
19365	;;
19366    *)
19367	platform_win32=no
19368	;;
19369esac
19370 if test "x$platform_win32" = "xyes"; then
19371  PLATFORM_WIN32_TRUE=
19372  PLATFORM_WIN32_FALSE='#'
19373else
19374  PLATFORM_WIN32_TRUE='#'
19375  PLATFORM_WIN32_FALSE=
19376fi
19377
19378
19379# Whether to build Xaw6
19380
19381# Check whether --enable-xaw6 was given.
19382if test "${enable_xaw6+set}" = set; then
19383  enableval=$enable_xaw6; build_v6=$enableval
19384else
19385  build_v6=yes
19386fi
19387
19388
19389if test "x$build_v6" = xyes; then
19390
19391pkg_failed=no
19392{ echo "$as_me:$LINENO: checking for XAW6" >&5
19393echo $ECHO_N "checking for XAW6... $ECHO_C" >&6; }
19394
19395if test -n "$PKG_CONFIG"; then
19396        if test -n "$PKG_CONFIG" && \
19397    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\"") >&5
19398  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
19399  ac_status=$?
19400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401  (exit $ac_status); }; then
19402  pkg_cv_XAW6_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu" 2>/dev/null`
19403else
19404  pkg_failed=yes
19405fi
19406else
19407	pkg_failed=untried
19408fi
19409if test -n "$PKG_CONFIG"; then
19410        if test -n "$PKG_CONFIG" && \
19411    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\"") >&5
19412  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
19413  ac_status=$?
19414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415  (exit $ac_status); }; then
19416  pkg_cv_XAW6_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu" 2>/dev/null`
19417else
19418  pkg_failed=yes
19419fi
19420else
19421	pkg_failed=untried
19422fi
19423
19424if test $pkg_failed = yes; then
19425	XAW6_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto x11 xext xextproto xt xmu"`
19426	# Put the nasty error message in config.log where it belongs
19427	echo "$XAW6_PKG_ERRORS" 1>&5
19428
19429	{ { echo "$as_me:$LINENO: error: Package requirements (xproto x11 xext xextproto xt xmu) were not met.
19430Consider adjusting the PKG_CONFIG_PATH environment variable if you
19431installed software in a non-standard prefix.
19432
19433Alternatively you may set the XAW6_CFLAGS and XAW6_LIBS environment variables
19434to avoid the need to call pkg-config.  See the pkg-config man page for
19435more details." >&5
19436echo "$as_me: error: Package requirements (xproto x11 xext xextproto xt xmu) were not met.
19437Consider adjusting the PKG_CONFIG_PATH environment variable if you
19438installed software in a non-standard prefix.
19439
19440Alternatively you may set the XAW6_CFLAGS and XAW6_LIBS environment variables
19441to avoid the need to call pkg-config.  See the pkg-config man page for
19442more details." >&2;}
19443   { (exit 1); exit 1; }; }
19444elif test $pkg_failed = untried; then
19445	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19446is in your PATH or set the PKG_CONFIG environment variable to the full
19447path to pkg-config.
19448
19449Alternatively you may set the XAW6_CFLAGS and XAW6_LIBS environment variables
19450to avoid the need to call pkg-config.  See the pkg-config man page for
19451more details.
19452
19453To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19454See \`config.log' for more details." >&5
19455echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19456is in your PATH or set the PKG_CONFIG environment variable to the full
19457path to pkg-config.
19458
19459Alternatively you may set the XAW6_CFLAGS and XAW6_LIBS environment variables
19460to avoid the need to call pkg-config.  See the pkg-config man page for
19461more details.
19462
19463To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19464See \`config.log' for more details." >&2;}
19465   { (exit 1); exit 1; }; }
19466else
19467	XAW6_CFLAGS=$pkg_cv_XAW6_CFLAGS
19468	XAW6_LIBS=$pkg_cv_XAW6_LIBS
19469        { echo "$as_me:$LINENO: result: yes" >&5
19470echo "${ECHO_T}yes" >&6; }
19471	:
19472fi
19473
19474
19475
19476fi
19477
19478
19479# Whether to build Xaw7
19480
19481# Check whether --enable-xaw7 was given.
19482if test "${enable_xaw7+set}" = set; then
19483  enableval=$enable_xaw7; build_v7=$enableval
19484else
19485  build_v7=yes
19486fi
19487
19488
19489if test "x$build_v7" = xyes; then
19490
19491pkg_failed=no
19492{ echo "$as_me:$LINENO: checking for XAW7" >&5
19493echo $ECHO_N "checking for XAW7... $ECHO_C" >&6; }
19494
19495if test -n "$PKG_CONFIG"; then
19496        if test -n "$PKG_CONFIG" && \
19497    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\"") >&5
19498  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
19499  ac_status=$?
19500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501  (exit $ac_status); }; then
19502  pkg_cv_XAW7_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
19503else
19504  pkg_failed=yes
19505fi
19506else
19507	pkg_failed=untried
19508fi
19509if test -n "$PKG_CONFIG"; then
19510        if test -n "$PKG_CONFIG" && \
19511    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\"") >&5
19512  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
19513  ac_status=$?
19514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515  (exit $ac_status); }; then
19516  pkg_cv_XAW7_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
19517else
19518  pkg_failed=yes
19519fi
19520else
19521	pkg_failed=untried
19522fi
19523
19524if test $pkg_failed = yes; then
19525	XAW7_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto x11 xext xextproto xt xmu xpm"`
19526	# Put the nasty error message in config.log where it belongs
19527	echo "$XAW7_PKG_ERRORS" 1>&5
19528
19529	{ { echo "$as_me:$LINENO: error: Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met.
19530Consider adjusting the PKG_CONFIG_PATH environment variable if you
19531installed software in a non-standard prefix.
19532
19533Alternatively you may set the XAW7_CFLAGS and XAW7_LIBS environment variables
19534to avoid the need to call pkg-config.  See the pkg-config man page for
19535more details." >&5
19536echo "$as_me: error: Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met.
19537Consider adjusting the PKG_CONFIG_PATH environment variable if you
19538installed software in a non-standard prefix.
19539
19540Alternatively you may set the XAW7_CFLAGS and XAW7_LIBS environment variables
19541to avoid the need to call pkg-config.  See the pkg-config man page for
19542more details." >&2;}
19543   { (exit 1); exit 1; }; }
19544elif test $pkg_failed = untried; then
19545	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19546is in your PATH or set the PKG_CONFIG environment variable to the full
19547path to pkg-config.
19548
19549Alternatively you may set the XAW7_CFLAGS and XAW7_LIBS environment variables
19550to avoid the need to call pkg-config.  See the pkg-config man page for
19551more details.
19552
19553To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19554See \`config.log' for more details." >&5
19555echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19556is in your PATH or set the PKG_CONFIG environment variable to the full
19557path to pkg-config.
19558
19559Alternatively you may set the XAW7_CFLAGS and XAW7_LIBS environment variables
19560to avoid the need to call pkg-config.  See the pkg-config man page for
19561more details.
19562
19563To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19564See \`config.log' for more details." >&2;}
19565   { (exit 1); exit 1; }; }
19566else
19567	XAW7_CFLAGS=$pkg_cv_XAW7_CFLAGS
19568	XAW7_LIBS=$pkg_cv_XAW7_LIBS
19569        { echo "$as_me:$LINENO: result: yes" >&5
19570echo "${ECHO_T}yes" >&6; }
19571	:
19572fi
19573
19574
19575
19576fi
19577
19578
19579# Whether to build Xaw8
19580
19581# Check whether --enable-xaw8 was given.
19582if test "${enable_xaw8+set}" = set; then
19583  enableval=$enable_xaw8; build_v8=$enableval
19584else
19585  build_v8=auto
19586fi
19587
19588
19589if test "x$build_v8" = xyes || test "x$build_v8" = xauto; then
19590
19591pkg_failed=no
19592{ echo "$as_me:$LINENO: checking for XPRINT" >&5
19593echo $ECHO_N "checking for XPRINT... $ECHO_C" >&6; }
19594
19595if test -n "$PKG_CONFIG"; then
19596        if test -n "$PKG_CONFIG" && \
19597    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xp\"") >&5
19598  ($PKG_CONFIG --exists --print-errors "xp") 2>&5
19599  ac_status=$?
19600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601  (exit $ac_status); }; then
19602  pkg_cv_XPRINT_CFLAGS=`$PKG_CONFIG --cflags "xp" 2>/dev/null`
19603else
19604  pkg_failed=yes
19605fi
19606else
19607	pkg_failed=untried
19608fi
19609if test -n "$PKG_CONFIG"; then
19610        if test -n "$PKG_CONFIG" && \
19611    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xp\"") >&5
19612  ($PKG_CONFIG --exists --print-errors "xp") 2>&5
19613  ac_status=$?
19614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615  (exit $ac_status); }; then
19616  pkg_cv_XPRINT_LIBS=`$PKG_CONFIG --libs "xp" 2>/dev/null`
19617else
19618  pkg_failed=yes
19619fi
19620else
19621	pkg_failed=untried
19622fi
19623
19624if test $pkg_failed = yes; then
19625	XPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xp"`
19626	# Put the nasty error message in config.log where it belongs
19627	echo "$XPRINT_PKG_ERRORS" 1>&5
19628
19629	xprint_found=no
19630elif test $pkg_failed = untried; then
19631	xprint_found=no
19632else
19633	XPRINT_CFLAGS=$pkg_cv_XPRINT_CFLAGS
19634	XPRINT_LIBS=$pkg_cv_XPRINT_LIBS
19635        { echo "$as_me:$LINENO: result: yes" >&5
19636echo "${ECHO_T}yes" >&6; }
19637	xprint_found=yes
19638fi
19639
19640   if test "x$xprint_found" = xno; then
19641      if test "x$build_v8" = xyes; then
19642          { { echo "$as_me:$LINENO: error:
19643	    Xprint is required to build libXaw.so.8. You can disable
19644	    building of libXaw.so.8 by passing --disable-xaw8 to
19645	    configure" >&5
19646echo "$as_me: error:
19647	    Xprint is required to build libXaw.so.8. You can disable
19648	    building of libXaw.so.8 by passing --disable-xaw8 to
19649	    configure" >&2;}
19650   { (exit 1); exit 1; }; }
19651      fi
19652      build_v8=no
19653   else
19654
19655pkg_failed=no
19656{ echo "$as_me:$LINENO: checking for XAW8" >&5
19657echo $ECHO_N "checking for XAW8... $ECHO_C" >&6; }
19658
19659if test -n "$PKG_CONFIG"; then
19660        if test -n "$PKG_CONFIG" && \
19661    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm xp printproto xau\"") >&5
19662  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm xp printproto xau") 2>&5
19663  ac_status=$?
19664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665  (exit $ac_status); }; then
19666  pkg_cv_XAW8_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm xp printproto xau" 2>/dev/null`
19667else
19668  pkg_failed=yes
19669fi
19670else
19671	pkg_failed=untried
19672fi
19673if test -n "$PKG_CONFIG"; then
19674        if test -n "$PKG_CONFIG" && \
19675    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm xp printproto xau\"") >&5
19676  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm xp printproto xau") 2>&5
19677  ac_status=$?
19678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679  (exit $ac_status); }; then
19680  pkg_cv_XAW8_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm xp printproto xau" 2>/dev/null`
19681else
19682  pkg_failed=yes
19683fi
19684else
19685	pkg_failed=untried
19686fi
19687
19688if test $pkg_failed = yes; then
19689	XAW8_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto x11 xext xextproto xt xmu xpm xp printproto xau"`
19690	# Put the nasty error message in config.log where it belongs
19691	echo "$XAW8_PKG_ERRORS" 1>&5
19692
19693	{ { echo "$as_me:$LINENO: error: Package requirements (xproto x11 xext xextproto xt xmu xpm xp printproto xau) were not met.
19694Consider adjusting the PKG_CONFIG_PATH environment variable if you
19695installed software in a non-standard prefix.
19696
19697Alternatively you may set the XAW8_CFLAGS and XAW8_LIBS environment variables
19698to avoid the need to call pkg-config.  See the pkg-config man page for
19699more details." >&5
19700echo "$as_me: error: Package requirements (xproto x11 xext xextproto xt xmu xpm xp printproto xau) were not met.
19701Consider adjusting the PKG_CONFIG_PATH environment variable if you
19702installed software in a non-standard prefix.
19703
19704Alternatively you may set the XAW8_CFLAGS and XAW8_LIBS environment variables
19705to avoid the need to call pkg-config.  See the pkg-config man page for
19706more details." >&2;}
19707   { (exit 1); exit 1; }; }
19708elif test $pkg_failed = untried; then
19709	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19710is in your PATH or set the PKG_CONFIG environment variable to the full
19711path to pkg-config.
19712
19713Alternatively you may set the XAW8_CFLAGS and XAW8_LIBS environment variables
19714to avoid the need to call pkg-config.  See the pkg-config man page for
19715more details.
19716
19717To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19718See \`config.log' for more details." >&5
19719echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19720is in your PATH or set the PKG_CONFIG environment variable to the full
19721path to pkg-config.
19722
19723Alternatively you may set the XAW8_CFLAGS and XAW8_LIBS environment variables
19724to avoid the need to call pkg-config.  See the pkg-config man page for
19725more details.
19726
19727To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19728See \`config.log' for more details." >&2;}
19729   { (exit 1); exit 1; }; }
19730else
19731	XAW8_CFLAGS=$pkg_cv_XAW8_CFLAGS
19732	XAW8_LIBS=$pkg_cv_XAW8_LIBS
19733        { echo "$as_me:$LINENO: result: yes" >&5
19734echo "${ECHO_T}yes" >&6; }
19735	:
19736fi
19737
19738
19739       build_v8=yes
19740   fi
19741fi
19742
19743 if test x$build_v6 = xyes; then
19744  BUILD_XAW6_TRUE=
19745  BUILD_XAW6_FALSE='#'
19746else
19747  BUILD_XAW6_TRUE='#'
19748  BUILD_XAW6_FALSE=
19749fi
19750
19751 if test x$build_v7 = xyes; then
19752  BUILD_XAW7_TRUE=
19753  BUILD_XAW7_FALSE='#'
19754else
19755  BUILD_XAW7_TRUE='#'
19756  BUILD_XAW7_FALSE=
19757fi
19758
19759 if test x$build_v8 = xyes; then
19760  BUILD_XAW8_TRUE=
19761  BUILD_XAW8_FALSE='#'
19762else
19763  BUILD_XAW8_TRUE='#'
19764  BUILD_XAW8_FALSE=
19765fi
19766
19767
19768# Checks for header files.
19769{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19770echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19771if test "${ac_cv_header_stdc+set}" = set; then
19772  echo $ECHO_N "(cached) $ECHO_C" >&6
19773else
19774  cat >conftest.$ac_ext <<_ACEOF
19775/* confdefs.h.  */
19776_ACEOF
19777cat confdefs.h >>conftest.$ac_ext
19778cat >>conftest.$ac_ext <<_ACEOF
19779/* end confdefs.h.  */
19780#include <stdlib.h>
19781#include <stdarg.h>
19782#include <string.h>
19783#include <float.h>
19784
19785int
19786main ()
19787{
19788
19789  ;
19790  return 0;
19791}
19792_ACEOF
19793rm -f conftest.$ac_objext
19794if { (ac_try="$ac_compile"
19795case "(($ac_try" in
19796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797  *) ac_try_echo=$ac_try;;
19798esac
19799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800  (eval "$ac_compile") 2>conftest.er1
19801  ac_status=$?
19802  grep -v '^ *+' conftest.er1 >conftest.err
19803  rm -f conftest.er1
19804  cat conftest.err >&5
19805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806  (exit $ac_status); } && {
19807	 test -z "$ac_c_werror_flag" ||
19808	 test ! -s conftest.err
19809       } && test -s conftest.$ac_objext; then
19810  ac_cv_header_stdc=yes
19811else
19812  echo "$as_me: failed program was:" >&5
19813sed 's/^/| /' conftest.$ac_ext >&5
19814
19815	ac_cv_header_stdc=no
19816fi
19817
19818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19819
19820if test $ac_cv_header_stdc = yes; then
19821  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19822  cat >conftest.$ac_ext <<_ACEOF
19823/* confdefs.h.  */
19824_ACEOF
19825cat confdefs.h >>conftest.$ac_ext
19826cat >>conftest.$ac_ext <<_ACEOF
19827/* end confdefs.h.  */
19828#include <string.h>
19829
19830_ACEOF
19831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19832  $EGREP "memchr" >/dev/null 2>&1; then
19833  :
19834else
19835  ac_cv_header_stdc=no
19836fi
19837rm -f conftest*
19838
19839fi
19840
19841if test $ac_cv_header_stdc = yes; then
19842  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19843  cat >conftest.$ac_ext <<_ACEOF
19844/* confdefs.h.  */
19845_ACEOF
19846cat confdefs.h >>conftest.$ac_ext
19847cat >>conftest.$ac_ext <<_ACEOF
19848/* end confdefs.h.  */
19849#include <stdlib.h>
19850
19851_ACEOF
19852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19853  $EGREP "free" >/dev/null 2>&1; then
19854  :
19855else
19856  ac_cv_header_stdc=no
19857fi
19858rm -f conftest*
19859
19860fi
19861
19862if test $ac_cv_header_stdc = yes; then
19863  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19864  if test "$cross_compiling" = yes; then
19865  :
19866else
19867  cat >conftest.$ac_ext <<_ACEOF
19868/* confdefs.h.  */
19869_ACEOF
19870cat confdefs.h >>conftest.$ac_ext
19871cat >>conftest.$ac_ext <<_ACEOF
19872/* end confdefs.h.  */
19873#include <ctype.h>
19874#include <stdlib.h>
19875#if ((' ' & 0x0FF) == 0x020)
19876# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19877# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19878#else
19879# define ISLOWER(c) \
19880		   (('a' <= (c) && (c) <= 'i') \
19881		     || ('j' <= (c) && (c) <= 'r') \
19882		     || ('s' <= (c) && (c) <= 'z'))
19883# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19884#endif
19885
19886#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19887int
19888main ()
19889{
19890  int i;
19891  for (i = 0; i < 256; i++)
19892    if (XOR (islower (i), ISLOWER (i))
19893	|| toupper (i) != TOUPPER (i))
19894      return 2;
19895  return 0;
19896}
19897_ACEOF
19898rm -f conftest$ac_exeext
19899if { (ac_try="$ac_link"
19900case "(($ac_try" in
19901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902  *) ac_try_echo=$ac_try;;
19903esac
19904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905  (eval "$ac_link") 2>&5
19906  ac_status=$?
19907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19909  { (case "(($ac_try" in
19910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911  *) ac_try_echo=$ac_try;;
19912esac
19913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914  (eval "$ac_try") 2>&5
19915  ac_status=$?
19916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917  (exit $ac_status); }; }; then
19918  :
19919else
19920  echo "$as_me: program exited with status $ac_status" >&5
19921echo "$as_me: failed program was:" >&5
19922sed 's/^/| /' conftest.$ac_ext >&5
19923
19924( exit $ac_status )
19925ac_cv_header_stdc=no
19926fi
19927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19928fi
19929
19930
19931fi
19932fi
19933{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19934echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19935if test $ac_cv_header_stdc = yes; then
19936
19937cat >>confdefs.h <<\_ACEOF
19938#define STDC_HEADERS 1
19939_ACEOF
19940
19941fi
19942
19943if test "${ac_cv_header_wctype_h+set}" = set; then
19944  { echo "$as_me:$LINENO: checking for wctype.h" >&5
19945echo $ECHO_N "checking for wctype.h... $ECHO_C" >&6; }
19946if test "${ac_cv_header_wctype_h+set}" = set; then
19947  echo $ECHO_N "(cached) $ECHO_C" >&6
19948fi
19949{ echo "$as_me:$LINENO: result: $ac_cv_header_wctype_h" >&5
19950echo "${ECHO_T}$ac_cv_header_wctype_h" >&6; }
19951else
19952  # Is the header compilable?
19953{ echo "$as_me:$LINENO: checking wctype.h usability" >&5
19954echo $ECHO_N "checking wctype.h usability... $ECHO_C" >&6; }
19955cat >conftest.$ac_ext <<_ACEOF
19956/* confdefs.h.  */
19957_ACEOF
19958cat confdefs.h >>conftest.$ac_ext
19959cat >>conftest.$ac_ext <<_ACEOF
19960/* end confdefs.h.  */
19961$ac_includes_default
19962#include <wctype.h>
19963_ACEOF
19964rm -f conftest.$ac_objext
19965if { (ac_try="$ac_compile"
19966case "(($ac_try" in
19967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968  *) ac_try_echo=$ac_try;;
19969esac
19970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971  (eval "$ac_compile") 2>conftest.er1
19972  ac_status=$?
19973  grep -v '^ *+' conftest.er1 >conftest.err
19974  rm -f conftest.er1
19975  cat conftest.err >&5
19976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977  (exit $ac_status); } && {
19978	 test -z "$ac_c_werror_flag" ||
19979	 test ! -s conftest.err
19980       } && test -s conftest.$ac_objext; then
19981  ac_header_compiler=yes
19982else
19983  echo "$as_me: failed program was:" >&5
19984sed 's/^/| /' conftest.$ac_ext >&5
19985
19986	ac_header_compiler=no
19987fi
19988
19989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19990{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19991echo "${ECHO_T}$ac_header_compiler" >&6; }
19992
19993# Is the header present?
19994{ echo "$as_me:$LINENO: checking wctype.h presence" >&5
19995echo $ECHO_N "checking wctype.h presence... $ECHO_C" >&6; }
19996cat >conftest.$ac_ext <<_ACEOF
19997/* confdefs.h.  */
19998_ACEOF
19999cat confdefs.h >>conftest.$ac_ext
20000cat >>conftest.$ac_ext <<_ACEOF
20001/* end confdefs.h.  */
20002#include <wctype.h>
20003_ACEOF
20004if { (ac_try="$ac_cpp conftest.$ac_ext"
20005case "(($ac_try" in
20006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007  *) ac_try_echo=$ac_try;;
20008esac
20009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20011  ac_status=$?
20012  grep -v '^ *+' conftest.er1 >conftest.err
20013  rm -f conftest.er1
20014  cat conftest.err >&5
20015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016  (exit $ac_status); } >/dev/null && {
20017	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20018	 test ! -s conftest.err
20019       }; then
20020  ac_header_preproc=yes
20021else
20022  echo "$as_me: failed program was:" >&5
20023sed 's/^/| /' conftest.$ac_ext >&5
20024
20025  ac_header_preproc=no
20026fi
20027
20028rm -f conftest.err conftest.$ac_ext
20029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20030echo "${ECHO_T}$ac_header_preproc" >&6; }
20031
20032# So?  What about this header?
20033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20034  yes:no: )
20035    { echo "$as_me:$LINENO: WARNING: wctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
20036echo "$as_me: WARNING: wctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20037    { echo "$as_me:$LINENO: WARNING: wctype.h: proceeding with the compiler's result" >&5
20038echo "$as_me: WARNING: wctype.h: proceeding with the compiler's result" >&2;}
20039    ac_header_preproc=yes
20040    ;;
20041  no:yes:* )
20042    { echo "$as_me:$LINENO: WARNING: wctype.h: present but cannot be compiled" >&5
20043echo "$as_me: WARNING: wctype.h: present but cannot be compiled" >&2;}
20044    { echo "$as_me:$LINENO: WARNING: wctype.h:     check for missing prerequisite headers?" >&5
20045echo "$as_me: WARNING: wctype.h:     check for missing prerequisite headers?" >&2;}
20046    { echo "$as_me:$LINENO: WARNING: wctype.h: see the Autoconf documentation" >&5
20047echo "$as_me: WARNING: wctype.h: see the Autoconf documentation" >&2;}
20048    { echo "$as_me:$LINENO: WARNING: wctype.h:     section \"Present But Cannot Be Compiled\"" >&5
20049echo "$as_me: WARNING: wctype.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20050    { echo "$as_me:$LINENO: WARNING: wctype.h: proceeding with the preprocessor's result" >&5
20051echo "$as_me: WARNING: wctype.h: proceeding with the preprocessor's result" >&2;}
20052    { echo "$as_me:$LINENO: WARNING: wctype.h: in the future, the compiler will take precedence" >&5
20053echo "$as_me: WARNING: wctype.h: in the future, the compiler will take precedence" >&2;}
20054    ( cat <<\_ASBOX
20055## ---------------------------------------------------------------------- ##
20056## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
20057## ---------------------------------------------------------------------- ##
20058_ASBOX
20059     ) | sed "s/^/$as_me: WARNING:     /" >&2
20060    ;;
20061esac
20062{ echo "$as_me:$LINENO: checking for wctype.h" >&5
20063echo $ECHO_N "checking for wctype.h... $ECHO_C" >&6; }
20064if test "${ac_cv_header_wctype_h+set}" = set; then
20065  echo $ECHO_N "(cached) $ECHO_C" >&6
20066else
20067  ac_cv_header_wctype_h=$ac_header_preproc
20068fi
20069{ echo "$as_me:$LINENO: result: $ac_cv_header_wctype_h" >&5
20070echo "${ECHO_T}$ac_cv_header_wctype_h" >&6; }
20071
20072fi
20073if test $ac_cv_header_wctype_h = yes; then
20074
20075cat >>confdefs.h <<\_ACEOF
20076#define HAS_WCTYPE_H 1
20077_ACEOF
20078
20079fi
20080
20081
20082if test "${ac_cv_header_wchar_h+set}" = set; then
20083  { echo "$as_me:$LINENO: checking for wchar.h" >&5
20084echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
20085if test "${ac_cv_header_wchar_h+set}" = set; then
20086  echo $ECHO_N "(cached) $ECHO_C" >&6
20087fi
20088{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20089echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
20090else
20091  # Is the header compilable?
20092{ echo "$as_me:$LINENO: checking wchar.h usability" >&5
20093echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
20094cat >conftest.$ac_ext <<_ACEOF
20095/* confdefs.h.  */
20096_ACEOF
20097cat confdefs.h >>conftest.$ac_ext
20098cat >>conftest.$ac_ext <<_ACEOF
20099/* end confdefs.h.  */
20100$ac_includes_default
20101#include <wchar.h>
20102_ACEOF
20103rm -f conftest.$ac_objext
20104if { (ac_try="$ac_compile"
20105case "(($ac_try" in
20106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107  *) ac_try_echo=$ac_try;;
20108esac
20109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110  (eval "$ac_compile") 2>conftest.er1
20111  ac_status=$?
20112  grep -v '^ *+' conftest.er1 >conftest.err
20113  rm -f conftest.er1
20114  cat conftest.err >&5
20115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116  (exit $ac_status); } && {
20117	 test -z "$ac_c_werror_flag" ||
20118	 test ! -s conftest.err
20119       } && test -s conftest.$ac_objext; then
20120  ac_header_compiler=yes
20121else
20122  echo "$as_me: failed program was:" >&5
20123sed 's/^/| /' conftest.$ac_ext >&5
20124
20125	ac_header_compiler=no
20126fi
20127
20128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20130echo "${ECHO_T}$ac_header_compiler" >&6; }
20131
20132# Is the header present?
20133{ echo "$as_me:$LINENO: checking wchar.h presence" >&5
20134echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
20135cat >conftest.$ac_ext <<_ACEOF
20136/* confdefs.h.  */
20137_ACEOF
20138cat confdefs.h >>conftest.$ac_ext
20139cat >>conftest.$ac_ext <<_ACEOF
20140/* end confdefs.h.  */
20141#include <wchar.h>
20142_ACEOF
20143if { (ac_try="$ac_cpp conftest.$ac_ext"
20144case "(($ac_try" in
20145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146  *) ac_try_echo=$ac_try;;
20147esac
20148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20150  ac_status=$?
20151  grep -v '^ *+' conftest.er1 >conftest.err
20152  rm -f conftest.er1
20153  cat conftest.err >&5
20154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155  (exit $ac_status); } >/dev/null && {
20156	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20157	 test ! -s conftest.err
20158       }; then
20159  ac_header_preproc=yes
20160else
20161  echo "$as_me: failed program was:" >&5
20162sed 's/^/| /' conftest.$ac_ext >&5
20163
20164  ac_header_preproc=no
20165fi
20166
20167rm -f conftest.err conftest.$ac_ext
20168{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20169echo "${ECHO_T}$ac_header_preproc" >&6; }
20170
20171# So?  What about this header?
20172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20173  yes:no: )
20174    { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20175echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20176    { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
20177echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
20178    ac_header_preproc=yes
20179    ;;
20180  no:yes:* )
20181    { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20182echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20183    { echo "$as_me:$LINENO: WARNING: wchar.h:     check for missing prerequisite headers?" >&5
20184echo "$as_me: WARNING: wchar.h:     check for missing prerequisite headers?" >&2;}
20185    { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20186echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20187    { echo "$as_me:$LINENO: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&5
20188echo "$as_me: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20189    { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
20190echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
20191    { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20192echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20193    ( cat <<\_ASBOX
20194## ---------------------------------------------------------------------- ##
20195## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
20196## ---------------------------------------------------------------------- ##
20197_ASBOX
20198     ) | sed "s/^/$as_me: WARNING:     /" >&2
20199    ;;
20200esac
20201{ echo "$as_me:$LINENO: checking for wchar.h" >&5
20202echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
20203if test "${ac_cv_header_wchar_h+set}" = set; then
20204  echo $ECHO_N "(cached) $ECHO_C" >&6
20205else
20206  ac_cv_header_wchar_h=$ac_header_preproc
20207fi
20208{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20209echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
20210
20211fi
20212if test $ac_cv_header_wchar_h = yes; then
20213
20214cat >>confdefs.h <<\_ACEOF
20215#define HAS_WCHAR_H 1
20216_ACEOF
20217
20218fi
20219
20220
20221if test "${ac_cv_header_widec_h+set}" = set; then
20222  { echo "$as_me:$LINENO: checking for widec.h" >&5
20223echo $ECHO_N "checking for widec.h... $ECHO_C" >&6; }
20224if test "${ac_cv_header_widec_h+set}" = set; then
20225  echo $ECHO_N "(cached) $ECHO_C" >&6
20226fi
20227{ echo "$as_me:$LINENO: result: $ac_cv_header_widec_h" >&5
20228echo "${ECHO_T}$ac_cv_header_widec_h" >&6; }
20229else
20230  # Is the header compilable?
20231{ echo "$as_me:$LINENO: checking widec.h usability" >&5
20232echo $ECHO_N "checking widec.h usability... $ECHO_C" >&6; }
20233cat >conftest.$ac_ext <<_ACEOF
20234/* confdefs.h.  */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
20238/* end confdefs.h.  */
20239$ac_includes_default
20240#include <widec.h>
20241_ACEOF
20242rm -f conftest.$ac_objext
20243if { (ac_try="$ac_compile"
20244case "(($ac_try" in
20245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246  *) ac_try_echo=$ac_try;;
20247esac
20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249  (eval "$ac_compile") 2>conftest.er1
20250  ac_status=$?
20251  grep -v '^ *+' conftest.er1 >conftest.err
20252  rm -f conftest.er1
20253  cat conftest.err >&5
20254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255  (exit $ac_status); } && {
20256	 test -z "$ac_c_werror_flag" ||
20257	 test ! -s conftest.err
20258       } && test -s conftest.$ac_objext; then
20259  ac_header_compiler=yes
20260else
20261  echo "$as_me: failed program was:" >&5
20262sed 's/^/| /' conftest.$ac_ext >&5
20263
20264	ac_header_compiler=no
20265fi
20266
20267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20268{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20269echo "${ECHO_T}$ac_header_compiler" >&6; }
20270
20271# Is the header present?
20272{ echo "$as_me:$LINENO: checking widec.h presence" >&5
20273echo $ECHO_N "checking widec.h presence... $ECHO_C" >&6; }
20274cat >conftest.$ac_ext <<_ACEOF
20275/* confdefs.h.  */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h.  */
20280#include <widec.h>
20281_ACEOF
20282if { (ac_try="$ac_cpp conftest.$ac_ext"
20283case "(($ac_try" in
20284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285  *) ac_try_echo=$ac_try;;
20286esac
20287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20289  ac_status=$?
20290  grep -v '^ *+' conftest.er1 >conftest.err
20291  rm -f conftest.er1
20292  cat conftest.err >&5
20293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294  (exit $ac_status); } >/dev/null && {
20295	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20296	 test ! -s conftest.err
20297       }; then
20298  ac_header_preproc=yes
20299else
20300  echo "$as_me: failed program was:" >&5
20301sed 's/^/| /' conftest.$ac_ext >&5
20302
20303  ac_header_preproc=no
20304fi
20305
20306rm -f conftest.err conftest.$ac_ext
20307{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20308echo "${ECHO_T}$ac_header_preproc" >&6; }
20309
20310# So?  What about this header?
20311case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20312  yes:no: )
20313    { echo "$as_me:$LINENO: WARNING: widec.h: accepted by the compiler, rejected by the preprocessor!" >&5
20314echo "$as_me: WARNING: widec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20315    { echo "$as_me:$LINENO: WARNING: widec.h: proceeding with the compiler's result" >&5
20316echo "$as_me: WARNING: widec.h: proceeding with the compiler's result" >&2;}
20317    ac_header_preproc=yes
20318    ;;
20319  no:yes:* )
20320    { echo "$as_me:$LINENO: WARNING: widec.h: present but cannot be compiled" >&5
20321echo "$as_me: WARNING: widec.h: present but cannot be compiled" >&2;}
20322    { echo "$as_me:$LINENO: WARNING: widec.h:     check for missing prerequisite headers?" >&5
20323echo "$as_me: WARNING: widec.h:     check for missing prerequisite headers?" >&2;}
20324    { echo "$as_me:$LINENO: WARNING: widec.h: see the Autoconf documentation" >&5
20325echo "$as_me: WARNING: widec.h: see the Autoconf documentation" >&2;}
20326    { echo "$as_me:$LINENO: WARNING: widec.h:     section \"Present But Cannot Be Compiled\"" >&5
20327echo "$as_me: WARNING: widec.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20328    { echo "$as_me:$LINENO: WARNING: widec.h: proceeding with the preprocessor's result" >&5
20329echo "$as_me: WARNING: widec.h: proceeding with the preprocessor's result" >&2;}
20330    { echo "$as_me:$LINENO: WARNING: widec.h: in the future, the compiler will take precedence" >&5
20331echo "$as_me: WARNING: widec.h: in the future, the compiler will take precedence" >&2;}
20332    ( cat <<\_ASBOX
20333## ---------------------------------------------------------------------- ##
20334## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
20335## ---------------------------------------------------------------------- ##
20336_ASBOX
20337     ) | sed "s/^/$as_me: WARNING:     /" >&2
20338    ;;
20339esac
20340{ echo "$as_me:$LINENO: checking for widec.h" >&5
20341echo $ECHO_N "checking for widec.h... $ECHO_C" >&6; }
20342if test "${ac_cv_header_widec_h+set}" = set; then
20343  echo $ECHO_N "(cached) $ECHO_C" >&6
20344else
20345  ac_cv_header_widec_h=$ac_header_preproc
20346fi
20347{ echo "$as_me:$LINENO: result: $ac_cv_header_widec_h" >&5
20348echo "${ECHO_T}$ac_cv_header_widec_h" >&6; }
20349
20350fi
20351if test $ac_cv_header_widec_h = yes; then
20352  :
20353else
20354
20355cat >>confdefs.h <<\_ACEOF
20356#define NO_WIDEC_H 1
20357_ACEOF
20358
20359fi
20360
20361
20362
20363# Checks for functions
20364
20365for ac_func in iswalnum
20366do
20367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20368{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20370if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20371  echo $ECHO_N "(cached) $ECHO_C" >&6
20372else
20373  cat >conftest.$ac_ext <<_ACEOF
20374/* confdefs.h.  */
20375_ACEOF
20376cat confdefs.h >>conftest.$ac_ext
20377cat >>conftest.$ac_ext <<_ACEOF
20378/* end confdefs.h.  */
20379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20380   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20381#define $ac_func innocuous_$ac_func
20382
20383/* System header to define __stub macros and hopefully few prototypes,
20384    which can conflict with char $ac_func (); below.
20385    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20386    <limits.h> exists even on freestanding compilers.  */
20387
20388#ifdef __STDC__
20389# include <limits.h>
20390#else
20391# include <assert.h>
20392#endif
20393
20394#undef $ac_func
20395
20396/* Override any GCC internal prototype to avoid an error.
20397   Use char because int might match the return type of a GCC
20398   builtin and then its argument prototype would still apply.  */
20399#ifdef __cplusplus
20400extern "C"
20401#endif
20402char $ac_func ();
20403/* The GNU C library defines this for functions which it implements
20404    to always fail with ENOSYS.  Some functions are actually named
20405    something starting with __ and the normal name is an alias.  */
20406#if defined __stub_$ac_func || defined __stub___$ac_func
20407choke me
20408#endif
20409
20410int
20411main ()
20412{
20413return $ac_func ();
20414  ;
20415  return 0;
20416}
20417_ACEOF
20418rm -f conftest.$ac_objext conftest$ac_exeext
20419if { (ac_try="$ac_link"
20420case "(($ac_try" in
20421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422  *) ac_try_echo=$ac_try;;
20423esac
20424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425  (eval "$ac_link") 2>conftest.er1
20426  ac_status=$?
20427  grep -v '^ *+' conftest.er1 >conftest.err
20428  rm -f conftest.er1
20429  cat conftest.err >&5
20430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431  (exit $ac_status); } && {
20432	 test -z "$ac_c_werror_flag" ||
20433	 test ! -s conftest.err
20434       } && test -s conftest$ac_exeext &&
20435       $as_test_x conftest$ac_exeext; then
20436  eval "$as_ac_var=yes"
20437else
20438  echo "$as_me: failed program was:" >&5
20439sed 's/^/| /' conftest.$ac_ext >&5
20440
20441	eval "$as_ac_var=no"
20442fi
20443
20444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20445      conftest$ac_exeext conftest.$ac_ext
20446fi
20447ac_res=`eval echo '${'$as_ac_var'}'`
20448	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20449echo "${ECHO_T}$ac_res" >&6; }
20450if test `eval echo '${'$as_ac_var'}'` = yes; then
20451  cat >>confdefs.h <<_ACEOF
20452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20453_ACEOF
20454
20455fi
20456done
20457
20458
20459
20460
20461
20462if test x$APP_MAN_SUFFIX = x    ; then
20463    APP_MAN_SUFFIX=1
20464fi
20465if test x$APP_MAN_DIR = x    ; then
20466    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20467fi
20468
20469if test x$LIB_MAN_SUFFIX = x    ; then
20470    LIB_MAN_SUFFIX=3
20471fi
20472if test x$LIB_MAN_DIR = x    ; then
20473    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20474fi
20475
20476if test x$FILE_MAN_SUFFIX = x    ; then
20477    case $host_os in
20478	solaris*)	FILE_MAN_SUFFIX=4  ;;
20479	*)		FILE_MAN_SUFFIX=5  ;;
20480    esac
20481fi
20482if test x$FILE_MAN_DIR = x    ; then
20483    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20484fi
20485
20486if test x$MISC_MAN_SUFFIX = x    ; then
20487    case $host_os in
20488	solaris*)	MISC_MAN_SUFFIX=5  ;;
20489	*)		MISC_MAN_SUFFIX=7  ;;
20490    esac
20491fi
20492if test x$MISC_MAN_DIR = x    ; then
20493    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20494fi
20495
20496if test x$DRIVER_MAN_SUFFIX = x    ; then
20497    case $host_os in
20498	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20499	*)		DRIVER_MAN_SUFFIX=4  ;;
20500    esac
20501fi
20502if test x$DRIVER_MAN_DIR = x    ; then
20503    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20504fi
20505
20506if test x$ADMIN_MAN_SUFFIX = x    ; then
20507    case $host_os in
20508	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20509	*)		ADMIN_MAN_SUFFIX=8  ;;
20510    esac
20511fi
20512if test x$ADMIN_MAN_DIR = x    ; then
20513    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20514fi
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532# Check whether --with-release-version was given.
20533if test "${with_release_version+set}" = set; then
20534  withval=$with_release_version; RELEASE_VERSION="$withval"
20535else
20536  RELEASE_VERSION=""
20537fi
20538
20539	if test "x$RELEASE_VERSION" != "x"; then
20540		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20541		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20542		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20543echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20544	fi
20545
20546cat >>confdefs.h <<_ACEOF
20547#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20548_ACEOF
20549
20550	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
20551	if test "x$PVM" = "x"; then
20552		PVM="0"
20553	fi
20554
20555cat >>confdefs.h <<_ACEOF
20556#define PACKAGE_VERSION_MINOR $PVM
20557_ACEOF
20558
20559	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
20560	if test "x$PVP" = "x"; then
20561		PVP="0"
20562	fi
20563
20564cat >>confdefs.h <<_ACEOF
20565#define PACKAGE_VERSION_PATCHLEVEL $PVP
20566_ACEOF
20567
20568
20569
20570ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile src/Makefile"
20571
20572cat >confcache <<\_ACEOF
20573# This file is a shell script that caches the results of configure
20574# tests run on this system so they can be shared between configure
20575# scripts and configure runs, see configure's option --config-cache.
20576# It is not useful on other systems.  If it contains results you don't
20577# want to keep, you may remove or edit it.
20578#
20579# config.status only pays attention to the cache file if you give it
20580# the --recheck option to rerun configure.
20581#
20582# `ac_cv_env_foo' variables (set or unset) will be overridden when
20583# loading this file, other *unset* `ac_cv_foo' will be assigned the
20584# following values.
20585
20586_ACEOF
20587
20588# The following way of writing the cache mishandles newlines in values,
20589# but we know of no workaround that is simple, portable, and efficient.
20590# So, we kill variables containing newlines.
20591# Ultrix sh set writes to stderr and can't be redirected directly,
20592# and sets the high bit in the cache file unless we assign to the vars.
20593(
20594  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20595    eval ac_val=\$$ac_var
20596    case $ac_val in #(
20597    *${as_nl}*)
20598      case $ac_var in #(
20599      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20600echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20601      esac
20602      case $ac_var in #(
20603      _ | IFS | as_nl) ;; #(
20604      *) $as_unset $ac_var ;;
20605      esac ;;
20606    esac
20607  done
20608
20609  (set) 2>&1 |
20610    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20611    *${as_nl}ac_space=\ *)
20612      # `set' does not quote correctly, so add quotes (double-quote
20613      # substitution turns \\\\ into \\, and sed turns \\ into \).
20614      sed -n \
20615	"s/'/'\\\\''/g;
20616	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20617      ;; #(
20618    *)
20619      # `set' quotes correctly as required by POSIX, so do not add quotes.
20620      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20621      ;;
20622    esac |
20623    sort
20624) |
20625  sed '
20626     /^ac_cv_env_/b end
20627     t clear
20628     :clear
20629     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20630     t end
20631     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20632     :end' >>confcache
20633if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20634  if test -w "$cache_file"; then
20635    test "x$cache_file" != "x/dev/null" &&
20636      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20637echo "$as_me: updating cache $cache_file" >&6;}
20638    cat confcache >$cache_file
20639  else
20640    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20641echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20642  fi
20643fi
20644rm -f confcache
20645
20646test "x$prefix" = xNONE && prefix=$ac_default_prefix
20647# Let make expand exec_prefix.
20648test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20649
20650DEFS=-DHAVE_CONFIG_H
20651
20652ac_libobjs=
20653ac_ltlibobjs=
20654for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20655  # 1. Remove the extension, and $U if already installed.
20656  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20657  ac_i=`echo "$ac_i" | sed "$ac_script"`
20658  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20659  #    will be set to the directory where LIBOBJS objects are built.
20660  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20661  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20662done
20663LIBOBJS=$ac_libobjs
20664
20665LTLIBOBJS=$ac_ltlibobjs
20666
20667
20668if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20669  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20670Usually this means the macro was only invoked conditionally." >&5
20671echo "$as_me: error: conditional \"AMDEP\" was never defined.
20672Usually this means the macro was only invoked conditionally." >&2;}
20673   { (exit 1); exit 1; }; }
20674fi
20675if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20676  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20677Usually this means the macro was only invoked conditionally." >&5
20678echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20679Usually this means the macro was only invoked conditionally." >&2;}
20680   { (exit 1); exit 1; }; }
20681fi
20682if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20683  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20684Usually this means the macro was only invoked conditionally." >&5
20685echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20686Usually this means the macro was only invoked conditionally." >&2;}
20687   { (exit 1); exit 1; }; }
20688fi
20689if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
20690  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
20691Usually this means the macro was only invoked conditionally." >&5
20692echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
20693Usually this means the macro was only invoked conditionally." >&2;}
20694   { (exit 1); exit 1; }; }
20695fi
20696if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then
20697  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW6\" was never defined.
20698Usually this means the macro was only invoked conditionally." >&5
20699echo "$as_me: error: conditional \"BUILD_XAW6\" was never defined.
20700Usually this means the macro was only invoked conditionally." >&2;}
20701   { (exit 1); exit 1; }; }
20702fi
20703if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
20704  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW7\" was never defined.
20705Usually this means the macro was only invoked conditionally." >&5
20706echo "$as_me: error: conditional \"BUILD_XAW7\" was never defined.
20707Usually this means the macro was only invoked conditionally." >&2;}
20708   { (exit 1); exit 1; }; }
20709fi
20710if test -z "${BUILD_XAW8_TRUE}" && test -z "${BUILD_XAW8_FALSE}"; then
20711  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW8\" was never defined.
20712Usually this means the macro was only invoked conditionally." >&5
20713echo "$as_me: error: conditional \"BUILD_XAW8\" was never defined.
20714Usually this means the macro was only invoked conditionally." >&2;}
20715   { (exit 1); exit 1; }; }
20716fi
20717
20718: ${CONFIG_STATUS=./config.status}
20719ac_clean_files_save=$ac_clean_files
20720ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20721{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20722echo "$as_me: creating $CONFIG_STATUS" >&6;}
20723cat >$CONFIG_STATUS <<_ACEOF
20724#! $SHELL
20725# Generated by $as_me.
20726# Run this file to recreate the current configuration.
20727# Compiler output produced by configure, useful for debugging
20728# configure, is in config.log if it exists.
20729
20730debug=false
20731ac_cs_recheck=false
20732ac_cs_silent=false
20733SHELL=\${CONFIG_SHELL-$SHELL}
20734_ACEOF
20735
20736cat >>$CONFIG_STATUS <<\_ACEOF
20737## --------------------- ##
20738## M4sh Initialization.  ##
20739## --------------------- ##
20740
20741# Be more Bourne compatible
20742DUALCASE=1; export DUALCASE # for MKS sh
20743if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20744  emulate sh
20745  NULLCMD=:
20746  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20747  # is contrary to our usage.  Disable this feature.
20748  alias -g '${1+"$@"}'='"$@"'
20749  setopt NO_GLOB_SUBST
20750else
20751  case `(set -o) 2>/dev/null` in
20752  *posix*) set -o posix ;;
20753esac
20754
20755fi
20756
20757
20758
20759
20760# PATH needs CR
20761# Avoid depending upon Character Ranges.
20762as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20763as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20764as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20765as_cr_digits='0123456789'
20766as_cr_alnum=$as_cr_Letters$as_cr_digits
20767
20768# The user is always right.
20769if test "${PATH_SEPARATOR+set}" != set; then
20770  echo "#! /bin/sh" >conf$$.sh
20771  echo  "exit 0"   >>conf$$.sh
20772  chmod +x conf$$.sh
20773  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20774    PATH_SEPARATOR=';'
20775  else
20776    PATH_SEPARATOR=:
20777  fi
20778  rm -f conf$$.sh
20779fi
20780
20781# Support unset when possible.
20782if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20783  as_unset=unset
20784else
20785  as_unset=false
20786fi
20787
20788
20789# IFS
20790# We need space, tab and new line, in precisely that order.  Quoting is
20791# there to prevent editors from complaining about space-tab.
20792# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20793# splitting by setting IFS to empty value.)
20794as_nl='
20795'
20796IFS=" ""	$as_nl"
20797
20798# Find who we are.  Look in the path if we contain no directory separator.
20799case $0 in
20800  *[\\/]* ) as_myself=$0 ;;
20801  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20802for as_dir in $PATH
20803do
20804  IFS=$as_save_IFS
20805  test -z "$as_dir" && as_dir=.
20806  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20807done
20808IFS=$as_save_IFS
20809
20810     ;;
20811esac
20812# We did not find ourselves, most probably we were run as `sh COMMAND'
20813# in which case we are not to be found in the path.
20814if test "x$as_myself" = x; then
20815  as_myself=$0
20816fi
20817if test ! -f "$as_myself"; then
20818  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20819  { (exit 1); exit 1; }
20820fi
20821
20822# Work around bugs in pre-3.0 UWIN ksh.
20823for as_var in ENV MAIL MAILPATH
20824do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20825done
20826PS1='$ '
20827PS2='> '
20828PS4='+ '
20829
20830# NLS nuisances.
20831for as_var in \
20832  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20833  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20834  LC_TELEPHONE LC_TIME
20835do
20836  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20837    eval $as_var=C; export $as_var
20838  else
20839    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20840  fi
20841done
20842
20843# Required to use basename.
20844if expr a : '\(a\)' >/dev/null 2>&1 &&
20845   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20846  as_expr=expr
20847else
20848  as_expr=false
20849fi
20850
20851if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20852  as_basename=basename
20853else
20854  as_basename=false
20855fi
20856
20857
20858# Name of the executable.
20859as_me=`$as_basename -- "$0" ||
20860$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20861	 X"$0" : 'X\(//\)$' \| \
20862	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20863echo X/"$0" |
20864    sed '/^.*\/\([^/][^/]*\)\/*$/{
20865	    s//\1/
20866	    q
20867	  }
20868	  /^X\/\(\/\/\)$/{
20869	    s//\1/
20870	    q
20871	  }
20872	  /^X\/\(\/\).*/{
20873	    s//\1/
20874	    q
20875	  }
20876	  s/.*/./; q'`
20877
20878# CDPATH.
20879$as_unset CDPATH
20880
20881
20882
20883  as_lineno_1=$LINENO
20884  as_lineno_2=$LINENO
20885  test "x$as_lineno_1" != "x$as_lineno_2" &&
20886  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20887
20888  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20889  # uniformly replaced by the line number.  The first 'sed' inserts a
20890  # line-number line after each line using $LINENO; the second 'sed'
20891  # does the real work.  The second script uses 'N' to pair each
20892  # line-number line with the line containing $LINENO, and appends
20893  # trailing '-' during substitution so that $LINENO is not a special
20894  # case at line end.
20895  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20896  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20897  # E. McMahon (1931-1989) for sed's syntax.  :-)
20898  sed -n '
20899    p
20900    /[$]LINENO/=
20901  ' <$as_myself |
20902    sed '
20903      s/[$]LINENO.*/&-/
20904      t lineno
20905      b
20906      :lineno
20907      N
20908      :loop
20909      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20910      t loop
20911      s/-\n.*//
20912    ' >$as_me.lineno &&
20913  chmod +x "$as_me.lineno" ||
20914    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20915   { (exit 1); exit 1; }; }
20916
20917  # Don't try to exec as it changes $[0], causing all sort of problems
20918  # (the dirname of $[0] is not the place where we might find the
20919  # original and so on.  Autoconf is especially sensitive to this).
20920  . "./$as_me.lineno"
20921  # Exit status is that of the last command.
20922  exit
20923}
20924
20925
20926if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20927  as_dirname=dirname
20928else
20929  as_dirname=false
20930fi
20931
20932ECHO_C= ECHO_N= ECHO_T=
20933case `echo -n x` in
20934-n*)
20935  case `echo 'x\c'` in
20936  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20937  *)   ECHO_C='\c';;
20938  esac;;
20939*)
20940  ECHO_N='-n';;
20941esac
20942
20943if expr a : '\(a\)' >/dev/null 2>&1 &&
20944   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20945  as_expr=expr
20946else
20947  as_expr=false
20948fi
20949
20950rm -f conf$$ conf$$.exe conf$$.file
20951if test -d conf$$.dir; then
20952  rm -f conf$$.dir/conf$$.file
20953else
20954  rm -f conf$$.dir
20955  mkdir conf$$.dir
20956fi
20957echo >conf$$.file
20958if ln -s conf$$.file conf$$ 2>/dev/null; then
20959  as_ln_s='ln -s'
20960  # ... but there are two gotchas:
20961  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20962  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20963  # In both cases, we have to default to `cp -p'.
20964  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20965    as_ln_s='cp -p'
20966elif ln conf$$.file conf$$ 2>/dev/null; then
20967  as_ln_s=ln
20968else
20969  as_ln_s='cp -p'
20970fi
20971rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20972rmdir conf$$.dir 2>/dev/null
20973
20974if mkdir -p . 2>/dev/null; then
20975  as_mkdir_p=:
20976else
20977  test -d ./-p && rmdir ./-p
20978  as_mkdir_p=false
20979fi
20980
20981if test -x / >/dev/null 2>&1; then
20982  as_test_x='test -x'
20983else
20984  if ls -dL / >/dev/null 2>&1; then
20985    as_ls_L_option=L
20986  else
20987    as_ls_L_option=
20988  fi
20989  as_test_x='
20990    eval sh -c '\''
20991      if test -d "$1"; then
20992        test -d "$1/.";
20993      else
20994	case $1 in
20995        -*)set "./$1";;
20996	esac;
20997	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20998	???[sx]*):;;*)false;;esac;fi
20999    '\'' sh
21000  '
21001fi
21002as_executable_p=$as_test_x
21003
21004# Sed expression to map a string onto a valid CPP name.
21005as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21006
21007# Sed expression to map a string onto a valid variable name.
21008as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21009
21010
21011exec 6>&1
21012
21013# Save the log message, to keep $[0] and so on meaningful, and to
21014# report actual input values of CONFIG_FILES etc. instead of their
21015# values after options handling.
21016ac_log="
21017This file was extended by libXaw $as_me 1.0.4, which was
21018generated by GNU Autoconf 2.61.  Invocation command line was
21019
21020  CONFIG_FILES    = $CONFIG_FILES
21021  CONFIG_HEADERS  = $CONFIG_HEADERS
21022  CONFIG_LINKS    = $CONFIG_LINKS
21023  CONFIG_COMMANDS = $CONFIG_COMMANDS
21024  $ $0 $@
21025
21026on `(hostname || uname -n) 2>/dev/null | sed 1q`
21027"
21028
21029_ACEOF
21030
21031cat >>$CONFIG_STATUS <<_ACEOF
21032# Files that config.status was made for.
21033config_files="$ac_config_files"
21034config_headers="$ac_config_headers"
21035config_commands="$ac_config_commands"
21036
21037_ACEOF
21038
21039cat >>$CONFIG_STATUS <<\_ACEOF
21040ac_cs_usage="\
21041\`$as_me' instantiates files from templates according to the
21042current configuration.
21043
21044Usage: $0 [OPTIONS] [FILE]...
21045
21046  -h, --help       print this help, then exit
21047  -V, --version    print version number and configuration settings, then exit
21048  -q, --quiet      do not print progress messages
21049  -d, --debug      don't remove temporary files
21050      --recheck    update $as_me by reconfiguring in the same conditions
21051  --file=FILE[:TEMPLATE]
21052		   instantiate the configuration file FILE
21053  --header=FILE[:TEMPLATE]
21054		   instantiate the configuration header FILE
21055
21056Configuration files:
21057$config_files
21058
21059Configuration headers:
21060$config_headers
21061
21062Configuration commands:
21063$config_commands
21064
21065Report bugs to <bug-autoconf@gnu.org>."
21066
21067_ACEOF
21068cat >>$CONFIG_STATUS <<_ACEOF
21069ac_cs_version="\\
21070libXaw config.status 1.0.4
21071configured by $0, generated by GNU Autoconf 2.61,
21072  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21073
21074Copyright (C) 2006 Free Software Foundation, Inc.
21075This config.status script is free software; the Free Software Foundation
21076gives unlimited permission to copy, distribute and modify it."
21077
21078ac_pwd='$ac_pwd'
21079srcdir='$srcdir'
21080INSTALL='$INSTALL'
21081MKDIR_P='$MKDIR_P'
21082_ACEOF
21083
21084cat >>$CONFIG_STATUS <<\_ACEOF
21085# If no file are specified by the user, then we need to provide default
21086# value.  By we need to know if files were specified by the user.
21087ac_need_defaults=:
21088while test $# != 0
21089do
21090  case $1 in
21091  --*=*)
21092    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21093    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21094    ac_shift=:
21095    ;;
21096  *)
21097    ac_option=$1
21098    ac_optarg=$2
21099    ac_shift=shift
21100    ;;
21101  esac
21102
21103  case $ac_option in
21104  # Handling of the options.
21105  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21106    ac_cs_recheck=: ;;
21107  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21108    echo "$ac_cs_version"; exit ;;
21109  --debug | --debu | --deb | --de | --d | -d )
21110    debug=: ;;
21111  --file | --fil | --fi | --f )
21112    $ac_shift
21113    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21114    ac_need_defaults=false;;
21115  --header | --heade | --head | --hea )
21116    $ac_shift
21117    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21118    ac_need_defaults=false;;
21119  --he | --h)
21120    # Conflict between --help and --header
21121    { echo "$as_me: error: ambiguous option: $1
21122Try \`$0 --help' for more information." >&2
21123   { (exit 1); exit 1; }; };;
21124  --help | --hel | -h )
21125    echo "$ac_cs_usage"; exit ;;
21126  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21127  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21128    ac_cs_silent=: ;;
21129
21130  # This is an error.
21131  -*) { echo "$as_me: error: unrecognized option: $1
21132Try \`$0 --help' for more information." >&2
21133   { (exit 1); exit 1; }; } ;;
21134
21135  *) ac_config_targets="$ac_config_targets $1"
21136     ac_need_defaults=false ;;
21137
21138  esac
21139  shift
21140done
21141
21142ac_configure_extra_args=
21143
21144if $ac_cs_silent; then
21145  exec 6>/dev/null
21146  ac_configure_extra_args="$ac_configure_extra_args --silent"
21147fi
21148
21149_ACEOF
21150cat >>$CONFIG_STATUS <<_ACEOF
21151if \$ac_cs_recheck; then
21152  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21153  CONFIG_SHELL=$SHELL
21154  export CONFIG_SHELL
21155  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21156fi
21157
21158_ACEOF
21159cat >>$CONFIG_STATUS <<\_ACEOF
21160exec 5>>config.log
21161{
21162  echo
21163  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21164## Running $as_me. ##
21165_ASBOX
21166  echo "$ac_log"
21167} >&5
21168
21169_ACEOF
21170cat >>$CONFIG_STATUS <<_ACEOF
21171#
21172# INIT-COMMANDS
21173#
21174AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21175
21176_ACEOF
21177
21178cat >>$CONFIG_STATUS <<\_ACEOF
21179
21180# Handling of arguments.
21181for ac_config_target in $ac_config_targets
21182do
21183  case $ac_config_target in
21184    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21185    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21186    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21187    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21188    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21189    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21190
21191  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21192echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21193   { (exit 1); exit 1; }; };;
21194  esac
21195done
21196
21197
21198# If the user did not use the arguments to specify the items to instantiate,
21199# then the envvar interface is used.  Set only those that are not.
21200# We use the long form for the default assignment because of an extremely
21201# bizarre bug on SunOS 4.1.3.
21202if $ac_need_defaults; then
21203  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21204  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21205  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21206fi
21207
21208# Have a temporary directory for convenience.  Make it in the build tree
21209# simply because there is no reason against having it here, and in addition,
21210# creating and moving files from /tmp can sometimes cause problems.
21211# Hook for its removal unless debugging.
21212# Note that there is a small window in which the directory will not be cleaned:
21213# after its creation but before its name has been assigned to `$tmp'.
21214$debug ||
21215{
21216  tmp=
21217  trap 'exit_status=$?
21218  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21219' 0
21220  trap '{ (exit 1); exit 1; }' 1 2 13 15
21221}
21222# Create a (secure) tmp directory for tmp files.
21223
21224{
21225  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21226  test -n "$tmp" && test -d "$tmp"
21227}  ||
21228{
21229  tmp=./conf$$-$RANDOM
21230  (umask 077 && mkdir "$tmp")
21231} ||
21232{
21233   echo "$me: cannot create a temporary directory in ." >&2
21234   { (exit 1); exit 1; }
21235}
21236
21237#
21238# Set up the sed scripts for CONFIG_FILES section.
21239#
21240
21241# No need to generate the scripts if there are no CONFIG_FILES.
21242# This happens for instance when ./config.status config.h
21243if test -n "$CONFIG_FILES"; then
21244
21245_ACEOF
21246
21247
21248
21249ac_delim='%!_!# '
21250for ac_last_try in false false false false false :; do
21251  cat >conf$$subs.sed <<_ACEOF
21252SHELL!$SHELL$ac_delim
21253PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21254PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21255PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21256PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21257PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21258PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21259exec_prefix!$exec_prefix$ac_delim
21260prefix!$prefix$ac_delim
21261program_transform_name!$program_transform_name$ac_delim
21262bindir!$bindir$ac_delim
21263sbindir!$sbindir$ac_delim
21264libexecdir!$libexecdir$ac_delim
21265datarootdir!$datarootdir$ac_delim
21266datadir!$datadir$ac_delim
21267sysconfdir!$sysconfdir$ac_delim
21268sharedstatedir!$sharedstatedir$ac_delim
21269localstatedir!$localstatedir$ac_delim
21270includedir!$includedir$ac_delim
21271oldincludedir!$oldincludedir$ac_delim
21272docdir!$docdir$ac_delim
21273infodir!$infodir$ac_delim
21274htmldir!$htmldir$ac_delim
21275dvidir!$dvidir$ac_delim
21276pdfdir!$pdfdir$ac_delim
21277psdir!$psdir$ac_delim
21278libdir!$libdir$ac_delim
21279localedir!$localedir$ac_delim
21280mandir!$mandir$ac_delim
21281DEFS!$DEFS$ac_delim
21282ECHO_C!$ECHO_C$ac_delim
21283ECHO_N!$ECHO_N$ac_delim
21284ECHO_T!$ECHO_T$ac_delim
21285LIBS!$LIBS$ac_delim
21286build_alias!$build_alias$ac_delim
21287host_alias!$host_alias$ac_delim
21288target_alias!$target_alias$ac_delim
21289INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21290INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21291INSTALL_DATA!$INSTALL_DATA$ac_delim
21292am__isrc!$am__isrc$ac_delim
21293CYGPATH_W!$CYGPATH_W$ac_delim
21294PACKAGE!$PACKAGE$ac_delim
21295VERSION!$VERSION$ac_delim
21296ACLOCAL!$ACLOCAL$ac_delim
21297AUTOCONF!$AUTOCONF$ac_delim
21298AUTOMAKE!$AUTOMAKE$ac_delim
21299AUTOHEADER!$AUTOHEADER$ac_delim
21300MAKEINFO!$MAKEINFO$ac_delim
21301install_sh!$install_sh$ac_delim
21302STRIP!$STRIP$ac_delim
21303INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21304mkdir_p!$mkdir_p$ac_delim
21305AWK!$AWK$ac_delim
21306SET_MAKE!$SET_MAKE$ac_delim
21307am__leading_dot!$am__leading_dot$ac_delim
21308AMTAR!$AMTAR$ac_delim
21309am__tar!$am__tar$ac_delim
21310am__untar!$am__untar$ac_delim
21311CC!$CC$ac_delim
21312CFLAGS!$CFLAGS$ac_delim
21313LDFLAGS!$LDFLAGS$ac_delim
21314CPPFLAGS!$CPPFLAGS$ac_delim
21315ac_ct_CC!$ac_ct_CC$ac_delim
21316EXEEXT!$EXEEXT$ac_delim
21317OBJEXT!$OBJEXT$ac_delim
21318DEPDIR!$DEPDIR$ac_delim
21319am__include!$am__include$ac_delim
21320am__quote!$am__quote$ac_delim
21321AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21322AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21323AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21324CCDEPMODE!$CCDEPMODE$ac_delim
21325am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21326am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21327build!$build$ac_delim
21328build_cpu!$build_cpu$ac_delim
21329build_vendor!$build_vendor$ac_delim
21330build_os!$build_os$ac_delim
21331host!$host$ac_delim
21332host_cpu!$host_cpu$ac_delim
21333host_vendor!$host_vendor$ac_delim
21334host_os!$host_os$ac_delim
21335GREP!$GREP$ac_delim
21336EGREP!$EGREP$ac_delim
21337LN_S!$LN_S$ac_delim
21338ECHO!$ECHO$ac_delim
21339AR!$AR$ac_delim
21340RANLIB!$RANLIB$ac_delim
21341CPP!$CPP$ac_delim
21342CXX!$CXX$ac_delim
21343CXXFLAGS!$CXXFLAGS$ac_delim
21344ac_ct_CXX!$ac_ct_CXX$ac_delim
21345CXXDEPMODE!$CXXDEPMODE$ac_delim
21346am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21347am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21348CXXCPP!$CXXCPP$ac_delim
21349_ACEOF
21350
21351  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21352    break
21353  elif $ac_last_try; then
21354    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21355echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21356   { (exit 1); exit 1; }; }
21357  else
21358    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21359  fi
21360done
21361
21362ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21363if test -n "$ac_eof"; then
21364  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21365  ac_eof=`expr $ac_eof + 1`
21366fi
21367
21368cat >>$CONFIG_STATUS <<_ACEOF
21369cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21370/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21371_ACEOF
21372sed '
21373s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21374s/^/s,@/; s/!/@,|#_!!_#|/
21375:n
21376t n
21377s/'"$ac_delim"'$/,g/; t
21378s/$/\\/; p
21379N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21380' >>$CONFIG_STATUS <conf$$subs.sed
21381rm -f conf$$subs.sed
21382cat >>$CONFIG_STATUS <<_ACEOF
21383CEOF$ac_eof
21384_ACEOF
21385
21386
21387ac_delim='%!_!# '
21388for ac_last_try in false false false false false :; do
21389  cat >conf$$subs.sed <<_ACEOF
21390F77!$F77$ac_delim
21391FFLAGS!$FFLAGS$ac_delim
21392ac_ct_F77!$ac_ct_F77$ac_delim
21393LIBTOOL!$LIBTOOL$ac_delim
21394PKG_CONFIG!$PKG_CONFIG$ac_delim
21395PLATFORM_WIN32_TRUE!$PLATFORM_WIN32_TRUE$ac_delim
21396PLATFORM_WIN32_FALSE!$PLATFORM_WIN32_FALSE$ac_delim
21397XAW6_CFLAGS!$XAW6_CFLAGS$ac_delim
21398XAW6_LIBS!$XAW6_LIBS$ac_delim
21399XAW7_CFLAGS!$XAW7_CFLAGS$ac_delim
21400XAW7_LIBS!$XAW7_LIBS$ac_delim
21401XPRINT_CFLAGS!$XPRINT_CFLAGS$ac_delim
21402XPRINT_LIBS!$XPRINT_LIBS$ac_delim
21403XAW8_CFLAGS!$XAW8_CFLAGS$ac_delim
21404XAW8_LIBS!$XAW8_LIBS$ac_delim
21405BUILD_XAW6_TRUE!$BUILD_XAW6_TRUE$ac_delim
21406BUILD_XAW6_FALSE!$BUILD_XAW6_FALSE$ac_delim
21407BUILD_XAW7_TRUE!$BUILD_XAW7_TRUE$ac_delim
21408BUILD_XAW7_FALSE!$BUILD_XAW7_FALSE$ac_delim
21409BUILD_XAW8_TRUE!$BUILD_XAW8_TRUE$ac_delim
21410BUILD_XAW8_FALSE!$BUILD_XAW8_FALSE$ac_delim
21411APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
21412LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
21413FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
21414MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
21415DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
21416ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
21417APP_MAN_DIR!$APP_MAN_DIR$ac_delim
21418LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
21419FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
21420MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
21421DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
21422ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
21423LIBOBJS!$LIBOBJS$ac_delim
21424LTLIBOBJS!$LTLIBOBJS$ac_delim
21425_ACEOF
21426
21427  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
21428    break
21429  elif $ac_last_try; then
21430    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21431echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21432   { (exit 1); exit 1; }; }
21433  else
21434    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21435  fi
21436done
21437
21438ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21439if test -n "$ac_eof"; then
21440  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21441  ac_eof=`expr $ac_eof + 1`
21442fi
21443
21444cat >>$CONFIG_STATUS <<_ACEOF
21445cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21446/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21447_ACEOF
21448sed '
21449s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21450s/^/s,@/; s/!/@,|#_!!_#|/
21451:n
21452t n
21453s/'"$ac_delim"'$/,g/; t
21454s/$/\\/; p
21455N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21456' >>$CONFIG_STATUS <conf$$subs.sed
21457rm -f conf$$subs.sed
21458cat >>$CONFIG_STATUS <<_ACEOF
21459:end
21460s/|#_!!_#|//g
21461CEOF$ac_eof
21462_ACEOF
21463
21464
21465# VPATH may cause trouble with some makes, so we remove $(srcdir),
21466# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21467# trailing colons and then remove the whole line if VPATH becomes empty
21468# (actually we leave an empty line to preserve line numbers).
21469if test "x$srcdir" = x.; then
21470  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21471s/:*\$(srcdir):*/:/
21472s/:*\${srcdir}:*/:/
21473s/:*@srcdir@:*/:/
21474s/^\([^=]*=[	 ]*\):*/\1/
21475s/:*$//
21476s/^[^=]*=[	 ]*$//
21477}'
21478fi
21479
21480cat >>$CONFIG_STATUS <<\_ACEOF
21481fi # test -n "$CONFIG_FILES"
21482
21483
21484for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21485do
21486  case $ac_tag in
21487  :[FHLC]) ac_mode=$ac_tag; continue;;
21488  esac
21489  case $ac_mode$ac_tag in
21490  :[FHL]*:*);;
21491  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21492echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21493   { (exit 1); exit 1; }; };;
21494  :[FH]-) ac_tag=-:-;;
21495  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21496  esac
21497  ac_save_IFS=$IFS
21498  IFS=:
21499  set x $ac_tag
21500  IFS=$ac_save_IFS
21501  shift
21502  ac_file=$1
21503  shift
21504
21505  case $ac_mode in
21506  :L) ac_source=$1;;
21507  :[FH])
21508    ac_file_inputs=
21509    for ac_f
21510    do
21511      case $ac_f in
21512      -) ac_f="$tmp/stdin";;
21513      *) # Look for the file first in the build tree, then in the source tree
21514	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21515	 # because $ac_f cannot contain `:'.
21516	 test -f "$ac_f" ||
21517	   case $ac_f in
21518	   [\\/$]*) false;;
21519	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21520	   esac ||
21521	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21522echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21523   { (exit 1); exit 1; }; };;
21524      esac
21525      ac_file_inputs="$ac_file_inputs $ac_f"
21526    done
21527
21528    # Let's still pretend it is `configure' which instantiates (i.e., don't
21529    # use $as_me), people would be surprised to read:
21530    #    /* config.h.  Generated by config.status.  */
21531    configure_input="Generated from "`IFS=:
21532	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21533    if test x"$ac_file" != x-; then
21534      configure_input="$ac_file.  $configure_input"
21535      { echo "$as_me:$LINENO: creating $ac_file" >&5
21536echo "$as_me: creating $ac_file" >&6;}
21537    fi
21538
21539    case $ac_tag in
21540    *:-:* | *:-) cat >"$tmp/stdin";;
21541    esac
21542    ;;
21543  esac
21544
21545  ac_dir=`$as_dirname -- "$ac_file" ||
21546$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21547	 X"$ac_file" : 'X\(//\)[^/]' \| \
21548	 X"$ac_file" : 'X\(//\)$' \| \
21549	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21550echo X"$ac_file" |
21551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21552	    s//\1/
21553	    q
21554	  }
21555	  /^X\(\/\/\)[^/].*/{
21556	    s//\1/
21557	    q
21558	  }
21559	  /^X\(\/\/\)$/{
21560	    s//\1/
21561	    q
21562	  }
21563	  /^X\(\/\).*/{
21564	    s//\1/
21565	    q
21566	  }
21567	  s/.*/./; q'`
21568  { as_dir="$ac_dir"
21569  case $as_dir in #(
21570  -*) as_dir=./$as_dir;;
21571  esac
21572  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21573    as_dirs=
21574    while :; do
21575      case $as_dir in #(
21576      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21577      *) as_qdir=$as_dir;;
21578      esac
21579      as_dirs="'$as_qdir' $as_dirs"
21580      as_dir=`$as_dirname -- "$as_dir" ||
21581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21582	 X"$as_dir" : 'X\(//\)[^/]' \| \
21583	 X"$as_dir" : 'X\(//\)$' \| \
21584	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21585echo X"$as_dir" |
21586    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21587	    s//\1/
21588	    q
21589	  }
21590	  /^X\(\/\/\)[^/].*/{
21591	    s//\1/
21592	    q
21593	  }
21594	  /^X\(\/\/\)$/{
21595	    s//\1/
21596	    q
21597	  }
21598	  /^X\(\/\).*/{
21599	    s//\1/
21600	    q
21601	  }
21602	  s/.*/./; q'`
21603      test -d "$as_dir" && break
21604    done
21605    test -z "$as_dirs" || eval "mkdir $as_dirs"
21606  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21607echo "$as_me: error: cannot create directory $as_dir" >&2;}
21608   { (exit 1); exit 1; }; }; }
21609  ac_builddir=.
21610
21611case "$ac_dir" in
21612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21613*)
21614  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21615  # A ".." for each directory in $ac_dir_suffix.
21616  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21617  case $ac_top_builddir_sub in
21618  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21619  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21620  esac ;;
21621esac
21622ac_abs_top_builddir=$ac_pwd
21623ac_abs_builddir=$ac_pwd$ac_dir_suffix
21624# for backward compatibility:
21625ac_top_builddir=$ac_top_build_prefix
21626
21627case $srcdir in
21628  .)  # We are building in place.
21629    ac_srcdir=.
21630    ac_top_srcdir=$ac_top_builddir_sub
21631    ac_abs_top_srcdir=$ac_pwd ;;
21632  [\\/]* | ?:[\\/]* )  # Absolute name.
21633    ac_srcdir=$srcdir$ac_dir_suffix;
21634    ac_top_srcdir=$srcdir
21635    ac_abs_top_srcdir=$srcdir ;;
21636  *) # Relative name.
21637    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21638    ac_top_srcdir=$ac_top_build_prefix$srcdir
21639    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21640esac
21641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21642
21643
21644  case $ac_mode in
21645  :F)
21646  #
21647  # CONFIG_FILE
21648  #
21649
21650  case $INSTALL in
21651  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21652  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21653  esac
21654  ac_MKDIR_P=$MKDIR_P
21655  case $MKDIR_P in
21656  [\\/$]* | ?:[\\/]* ) ;;
21657  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21658  esac
21659_ACEOF
21660
21661cat >>$CONFIG_STATUS <<\_ACEOF
21662# If the template does not know about datarootdir, expand it.
21663# FIXME: This hack should be removed a few years after 2.60.
21664ac_datarootdir_hack=; ac_datarootdir_seen=
21665
21666case `sed -n '/datarootdir/ {
21667  p
21668  q
21669}
21670/@datadir@/p
21671/@docdir@/p
21672/@infodir@/p
21673/@localedir@/p
21674/@mandir@/p
21675' $ac_file_inputs` in
21676*datarootdir*) ac_datarootdir_seen=yes;;
21677*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21678  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21679echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21680_ACEOF
21681cat >>$CONFIG_STATUS <<_ACEOF
21682  ac_datarootdir_hack='
21683  s&@datadir@&$datadir&g
21684  s&@docdir@&$docdir&g
21685  s&@infodir@&$infodir&g
21686  s&@localedir@&$localedir&g
21687  s&@mandir@&$mandir&g
21688    s&\\\${datarootdir}&$datarootdir&g' ;;
21689esac
21690_ACEOF
21691
21692# Neutralize VPATH when `$srcdir' = `.'.
21693# Shell code in configure.ac might set extrasub.
21694# FIXME: do we really want to maintain this feature?
21695cat >>$CONFIG_STATUS <<_ACEOF
21696  sed "$ac_vpsub
21697$extrasub
21698_ACEOF
21699cat >>$CONFIG_STATUS <<\_ACEOF
21700:t
21701/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21702s&@configure_input@&$configure_input&;t t
21703s&@top_builddir@&$ac_top_builddir_sub&;t t
21704s&@srcdir@&$ac_srcdir&;t t
21705s&@abs_srcdir@&$ac_abs_srcdir&;t t
21706s&@top_srcdir@&$ac_top_srcdir&;t t
21707s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21708s&@builddir@&$ac_builddir&;t t
21709s&@abs_builddir@&$ac_abs_builddir&;t t
21710s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21711s&@INSTALL@&$ac_INSTALL&;t t
21712s&@MKDIR_P@&$ac_MKDIR_P&;t t
21713$ac_datarootdir_hack
21714" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21715
21716test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21717  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21718  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21719  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21720which seems to be undefined.  Please make sure it is defined." >&5
21721echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21722which seems to be undefined.  Please make sure it is defined." >&2;}
21723
21724  rm -f "$tmp/stdin"
21725  case $ac_file in
21726  -) cat "$tmp/out"; rm -f "$tmp/out";;
21727  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21728  esac
21729 ;;
21730  :H)
21731  #
21732  # CONFIG_HEADER
21733  #
21734_ACEOF
21735
21736# Transform confdefs.h into a sed script `conftest.defines', that
21737# substitutes the proper values into config.h.in to produce config.h.
21738rm -f conftest.defines conftest.tail
21739# First, append a space to every undef/define line, to ease matching.
21740echo 's/$/ /' >conftest.defines
21741# Then, protect against being on the right side of a sed subst, or in
21742# an unquoted here document, in config.status.  If some macros were
21743# called several times there might be several #defines for the same
21744# symbol, which is useless.  But do not sort them, since the last
21745# AC_DEFINE must be honored.
21746ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21747# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21748# NAME is the cpp macro being defined, VALUE is the value it is being given.
21749# PARAMS is the parameter list in the macro definition--in most cases, it's
21750# just an empty string.
21751ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21752ac_dB='\\)[	 (].*,\\1define\\2'
21753ac_dC=' '
21754ac_dD=' ,'
21755
21756uniq confdefs.h |
21757  sed -n '
21758	t rset
21759	:rset
21760	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21761	t ok
21762	d
21763	:ok
21764	s/[\\&,]/\\&/g
21765	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21766	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21767  ' >>conftest.defines
21768
21769# Remove the space that was appended to ease matching.
21770# Then replace #undef with comments.  This is necessary, for
21771# example, in the case of _POSIX_SOURCE, which is predefined and required
21772# on some systems where configure will not decide to define it.
21773# (The regexp can be short, since the line contains either #define or #undef.)
21774echo 's/ $//
21775s,^[	 #]*u.*,/* & */,' >>conftest.defines
21776
21777# Break up conftest.defines:
21778ac_max_sed_lines=50
21779
21780# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21781# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21782# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21783# et cetera.
21784ac_in='$ac_file_inputs'
21785ac_out='"$tmp/out1"'
21786ac_nxt='"$tmp/out2"'
21787
21788while :
21789do
21790  # Write a here document:
21791    cat >>$CONFIG_STATUS <<_ACEOF
21792    # First, check the format of the line:
21793    cat >"\$tmp/defines.sed" <<\\CEOF
21794/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21795/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21796b
21797:def
21798_ACEOF
21799  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21800  echo 'CEOF
21801    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21802  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21803  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21804  grep . conftest.tail >/dev/null || break
21805  rm -f conftest.defines
21806  mv conftest.tail conftest.defines
21807done
21808rm -f conftest.defines conftest.tail
21809
21810echo "ac_result=$ac_in" >>$CONFIG_STATUS
21811cat >>$CONFIG_STATUS <<\_ACEOF
21812  if test x"$ac_file" != x-; then
21813    echo "/* $configure_input  */" >"$tmp/config.h"
21814    cat "$ac_result" >>"$tmp/config.h"
21815    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21816      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21817echo "$as_me: $ac_file is unchanged" >&6;}
21818    else
21819      rm -f $ac_file
21820      mv "$tmp/config.h" $ac_file
21821    fi
21822  else
21823    echo "/* $configure_input  */"
21824    cat "$ac_result"
21825  fi
21826  rm -f "$tmp/out12"
21827# Compute $ac_file's index in $config_headers.
21828_am_stamp_count=1
21829for _am_header in $config_headers :; do
21830  case $_am_header in
21831    $ac_file | $ac_file:* )
21832      break ;;
21833    * )
21834      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21835  esac
21836done
21837echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21838$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21839	 X$ac_file : 'X\(//\)[^/]' \| \
21840	 X$ac_file : 'X\(//\)$' \| \
21841	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21842echo X$ac_file |
21843    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21844	    s//\1/
21845	    q
21846	  }
21847	  /^X\(\/\/\)[^/].*/{
21848	    s//\1/
21849	    q
21850	  }
21851	  /^X\(\/\/\)$/{
21852	    s//\1/
21853	    q
21854	  }
21855	  /^X\(\/\).*/{
21856	    s//\1/
21857	    q
21858	  }
21859	  s/.*/./; q'`/stamp-h$_am_stamp_count
21860 ;;
21861
21862  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21863echo "$as_me: executing $ac_file commands" >&6;}
21864 ;;
21865  esac
21866
21867
21868  case $ac_file$ac_mode in
21869    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21870  # Strip MF so we end up with the name of the file.
21871  mf=`echo "$mf" | sed -e 's/:.*$//'`
21872  # Check whether this is an Automake generated Makefile or not.
21873  # We used to match only the files named `Makefile.in', but
21874  # some people rename them; so instead we look at the file content.
21875  # Grep'ing the first line is not enough: some people post-process
21876  # each Makefile.in and add a new line on top of each file to say so.
21877  # Grep'ing the whole file is not good either: AIX grep has a line
21878  # limit of 2048, but all sed's we know have understand at least 4000.
21879  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21880    dirpart=`$as_dirname -- "$mf" ||
21881$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21882	 X"$mf" : 'X\(//\)[^/]' \| \
21883	 X"$mf" : 'X\(//\)$' \| \
21884	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21885echo X"$mf" |
21886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21887	    s//\1/
21888	    q
21889	  }
21890	  /^X\(\/\/\)[^/].*/{
21891	    s//\1/
21892	    q
21893	  }
21894	  /^X\(\/\/\)$/{
21895	    s//\1/
21896	    q
21897	  }
21898	  /^X\(\/\).*/{
21899	    s//\1/
21900	    q
21901	  }
21902	  s/.*/./; q'`
21903  else
21904    continue
21905  fi
21906  # Extract the definition of DEPDIR, am__include, and am__quote
21907  # from the Makefile without running `make'.
21908  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21909  test -z "$DEPDIR" && continue
21910  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21911  test -z "am__include" && continue
21912  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21913  # When using ansi2knr, U may be empty or an underscore; expand it
21914  U=`sed -n 's/^U = //p' < "$mf"`
21915  # Find all dependency output files, they are included files with
21916  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21917  # simplest approach to changing $(DEPDIR) to its actual value in the
21918  # expansion.
21919  for file in `sed -n "
21920    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21921       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21922    # Make sure the directory exists.
21923    test -f "$dirpart/$file" && continue
21924    fdir=`$as_dirname -- "$file" ||
21925$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21926	 X"$file" : 'X\(//\)[^/]' \| \
21927	 X"$file" : 'X\(//\)$' \| \
21928	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21929echo X"$file" |
21930    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21931	    s//\1/
21932	    q
21933	  }
21934	  /^X\(\/\/\)[^/].*/{
21935	    s//\1/
21936	    q
21937	  }
21938	  /^X\(\/\/\)$/{
21939	    s//\1/
21940	    q
21941	  }
21942	  /^X\(\/\).*/{
21943	    s//\1/
21944	    q
21945	  }
21946	  s/.*/./; q'`
21947    { as_dir=$dirpart/$fdir
21948  case $as_dir in #(
21949  -*) as_dir=./$as_dir;;
21950  esac
21951  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21952    as_dirs=
21953    while :; do
21954      case $as_dir in #(
21955      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21956      *) as_qdir=$as_dir;;
21957      esac
21958      as_dirs="'$as_qdir' $as_dirs"
21959      as_dir=`$as_dirname -- "$as_dir" ||
21960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21961	 X"$as_dir" : 'X\(//\)[^/]' \| \
21962	 X"$as_dir" : 'X\(//\)$' \| \
21963	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21964echo X"$as_dir" |
21965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21966	    s//\1/
21967	    q
21968	  }
21969	  /^X\(\/\/\)[^/].*/{
21970	    s//\1/
21971	    q
21972	  }
21973	  /^X\(\/\/\)$/{
21974	    s//\1/
21975	    q
21976	  }
21977	  /^X\(\/\).*/{
21978	    s//\1/
21979	    q
21980	  }
21981	  s/.*/./; q'`
21982      test -d "$as_dir" && break
21983    done
21984    test -z "$as_dirs" || eval "mkdir $as_dirs"
21985  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21986echo "$as_me: error: cannot create directory $as_dir" >&2;}
21987   { (exit 1); exit 1; }; }; }
21988    # echo "creating $dirpart/$file"
21989    echo '# dummy' > "$dirpart/$file"
21990  done
21991done
21992 ;;
21993
21994  esac
21995done # for ac_tag
21996
21997
21998{ (exit 0); exit 0; }
21999_ACEOF
22000chmod +x $CONFIG_STATUS
22001ac_clean_files=$ac_clean_files_save
22002
22003
22004# configure is writing to config.log, and then calls config.status.
22005# config.status does its own redirection, appending to config.log.
22006# Unfortunately, on DOS this fails, as config.log is still kept open
22007# by configure, so config.status won't be able to write to it; its
22008# output is simply discarded.  So we exec the FD to /dev/null,
22009# effectively closing config.log, so it can be properly (re)opened and
22010# appended to by config.status.  When coming back to configure, we
22011# need to make the FD available again.
22012if test "$no_create" != yes; then
22013  ac_cs_success=:
22014  ac_config_status_args=
22015  test "$silent" = yes &&
22016    ac_config_status_args="$ac_config_status_args --quiet"
22017  exec 5>/dev/null
22018  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22019  exec 5>>config.log
22020  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22021  # would make configure fail if this is the last instruction.
22022  $ac_cs_success || { (exit 1); exit 1; }
22023fi
22024
22025
22026if test "x$build_v6" = xyes; then
22027   ac_config_files="$ac_config_files xaw6.pc"
22028
22029cat >confcache <<\_ACEOF
22030# This file is a shell script that caches the results of configure
22031# tests run on this system so they can be shared between configure
22032# scripts and configure runs, see configure's option --config-cache.
22033# It is not useful on other systems.  If it contains results you don't
22034# want to keep, you may remove or edit it.
22035#
22036# config.status only pays attention to the cache file if you give it
22037# the --recheck option to rerun configure.
22038#
22039# `ac_cv_env_foo' variables (set or unset) will be overridden when
22040# loading this file, other *unset* `ac_cv_foo' will be assigned the
22041# following values.
22042
22043_ACEOF
22044
22045# The following way of writing the cache mishandles newlines in values,
22046# but we know of no workaround that is simple, portable, and efficient.
22047# So, we kill variables containing newlines.
22048# Ultrix sh set writes to stderr and can't be redirected directly,
22049# and sets the high bit in the cache file unless we assign to the vars.
22050(
22051  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22052    eval ac_val=\$$ac_var
22053    case $ac_val in #(
22054    *${as_nl}*)
22055      case $ac_var in #(
22056      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22057echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22058      esac
22059      case $ac_var in #(
22060      _ | IFS | as_nl) ;; #(
22061      *) $as_unset $ac_var ;;
22062      esac ;;
22063    esac
22064  done
22065
22066  (set) 2>&1 |
22067    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22068    *${as_nl}ac_space=\ *)
22069      # `set' does not quote correctly, so add quotes (double-quote
22070      # substitution turns \\\\ into \\, and sed turns \\ into \).
22071      sed -n \
22072	"s/'/'\\\\''/g;
22073	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22074      ;; #(
22075    *)
22076      # `set' quotes correctly as required by POSIX, so do not add quotes.
22077      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22078      ;;
22079    esac |
22080    sort
22081) |
22082  sed '
22083     /^ac_cv_env_/b end
22084     t clear
22085     :clear
22086     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22087     t end
22088     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22089     :end' >>confcache
22090if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22091  if test -w "$cache_file"; then
22092    test "x$cache_file" != "x/dev/null" &&
22093      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22094echo "$as_me: updating cache $cache_file" >&6;}
22095    cat confcache >$cache_file
22096  else
22097    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22098echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22099  fi
22100fi
22101rm -f confcache
22102
22103test "x$prefix" = xNONE && prefix=$ac_default_prefix
22104# Let make expand exec_prefix.
22105test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22106
22107DEFS=-DHAVE_CONFIG_H
22108
22109ac_libobjs=
22110ac_ltlibobjs=
22111for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22112  # 1. Remove the extension, and $U if already installed.
22113  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22114  ac_i=`echo "$ac_i" | sed "$ac_script"`
22115  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22116  #    will be set to the directory where LIBOBJS objects are built.
22117  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22118  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22119done
22120LIBOBJS=$ac_libobjs
22121
22122LTLIBOBJS=$ac_ltlibobjs
22123
22124
22125if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22126  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22127Usually this means the macro was only invoked conditionally." >&5
22128echo "$as_me: error: conditional \"AMDEP\" was never defined.
22129Usually this means the macro was only invoked conditionally." >&2;}
22130   { (exit 1); exit 1; }; }
22131fi
22132if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22133  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22134Usually this means the macro was only invoked conditionally." >&5
22135echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22136Usually this means the macro was only invoked conditionally." >&2;}
22137   { (exit 1); exit 1; }; }
22138fi
22139if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22140  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22141Usually this means the macro was only invoked conditionally." >&5
22142echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22143Usually this means the macro was only invoked conditionally." >&2;}
22144   { (exit 1); exit 1; }; }
22145fi
22146if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
22147  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
22148Usually this means the macro was only invoked conditionally." >&5
22149echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
22150Usually this means the macro was only invoked conditionally." >&2;}
22151   { (exit 1); exit 1; }; }
22152fi
22153if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then
22154  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW6\" was never defined.
22155Usually this means the macro was only invoked conditionally." >&5
22156echo "$as_me: error: conditional \"BUILD_XAW6\" was never defined.
22157Usually this means the macro was only invoked conditionally." >&2;}
22158   { (exit 1); exit 1; }; }
22159fi
22160if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
22161  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW7\" was never defined.
22162Usually this means the macro was only invoked conditionally." >&5
22163echo "$as_me: error: conditional \"BUILD_XAW7\" was never defined.
22164Usually this means the macro was only invoked conditionally." >&2;}
22165   { (exit 1); exit 1; }; }
22166fi
22167if test -z "${BUILD_XAW8_TRUE}" && test -z "${BUILD_XAW8_FALSE}"; then
22168  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW8\" was never defined.
22169Usually this means the macro was only invoked conditionally." >&5
22170echo "$as_me: error: conditional \"BUILD_XAW8\" was never defined.
22171Usually this means the macro was only invoked conditionally." >&2;}
22172   { (exit 1); exit 1; }; }
22173fi
22174
22175: ${CONFIG_STATUS=./config.status}
22176ac_clean_files_save=$ac_clean_files
22177ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22178{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22179echo "$as_me: creating $CONFIG_STATUS" >&6;}
22180cat >$CONFIG_STATUS <<_ACEOF
22181#! $SHELL
22182# Generated by $as_me.
22183# Run this file to recreate the current configuration.
22184# Compiler output produced by configure, useful for debugging
22185# configure, is in config.log if it exists.
22186
22187debug=false
22188ac_cs_recheck=false
22189ac_cs_silent=false
22190SHELL=\${CONFIG_SHELL-$SHELL}
22191_ACEOF
22192
22193cat >>$CONFIG_STATUS <<\_ACEOF
22194## --------------------- ##
22195## M4sh Initialization.  ##
22196## --------------------- ##
22197
22198# Be more Bourne compatible
22199DUALCASE=1; export DUALCASE # for MKS sh
22200if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22201  emulate sh
22202  NULLCMD=:
22203  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22204  # is contrary to our usage.  Disable this feature.
22205  alias -g '${1+"$@"}'='"$@"'
22206  setopt NO_GLOB_SUBST
22207else
22208  case `(set -o) 2>/dev/null` in
22209  *posix*) set -o posix ;;
22210esac
22211
22212fi
22213
22214
22215
22216
22217# PATH needs CR
22218# Avoid depending upon Character Ranges.
22219as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22220as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22221as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22222as_cr_digits='0123456789'
22223as_cr_alnum=$as_cr_Letters$as_cr_digits
22224
22225# The user is always right.
22226if test "${PATH_SEPARATOR+set}" != set; then
22227  echo "#! /bin/sh" >conf$$.sh
22228  echo  "exit 0"   >>conf$$.sh
22229  chmod +x conf$$.sh
22230  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22231    PATH_SEPARATOR=';'
22232  else
22233    PATH_SEPARATOR=:
22234  fi
22235  rm -f conf$$.sh
22236fi
22237
22238# Support unset when possible.
22239if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22240  as_unset=unset
22241else
22242  as_unset=false
22243fi
22244
22245
22246# IFS
22247# We need space, tab and new line, in precisely that order.  Quoting is
22248# there to prevent editors from complaining about space-tab.
22249# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22250# splitting by setting IFS to empty value.)
22251as_nl='
22252'
22253IFS=" ""	$as_nl"
22254
22255# Find who we are.  Look in the path if we contain no directory separator.
22256case $0 in
22257  *[\\/]* ) as_myself=$0 ;;
22258  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22259for as_dir in $PATH
22260do
22261  IFS=$as_save_IFS
22262  test -z "$as_dir" && as_dir=.
22263  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22264done
22265IFS=$as_save_IFS
22266
22267     ;;
22268esac
22269# We did not find ourselves, most probably we were run as `sh COMMAND'
22270# in which case we are not to be found in the path.
22271if test "x$as_myself" = x; then
22272  as_myself=$0
22273fi
22274if test ! -f "$as_myself"; then
22275  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22276  { (exit 1); exit 1; }
22277fi
22278
22279# Work around bugs in pre-3.0 UWIN ksh.
22280for as_var in ENV MAIL MAILPATH
22281do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22282done
22283PS1='$ '
22284PS2='> '
22285PS4='+ '
22286
22287# NLS nuisances.
22288for as_var in \
22289  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22290  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22291  LC_TELEPHONE LC_TIME
22292do
22293  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22294    eval $as_var=C; export $as_var
22295  else
22296    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22297  fi
22298done
22299
22300# Required to use basename.
22301if expr a : '\(a\)' >/dev/null 2>&1 &&
22302   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22303  as_expr=expr
22304else
22305  as_expr=false
22306fi
22307
22308if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22309  as_basename=basename
22310else
22311  as_basename=false
22312fi
22313
22314
22315# Name of the executable.
22316as_me=`$as_basename -- "$0" ||
22317$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22318	 X"$0" : 'X\(//\)$' \| \
22319	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22320echo X/"$0" |
22321    sed '/^.*\/\([^/][^/]*\)\/*$/{
22322	    s//\1/
22323	    q
22324	  }
22325	  /^X\/\(\/\/\)$/{
22326	    s//\1/
22327	    q
22328	  }
22329	  /^X\/\(\/\).*/{
22330	    s//\1/
22331	    q
22332	  }
22333	  s/.*/./; q'`
22334
22335# CDPATH.
22336$as_unset CDPATH
22337
22338
22339
22340  as_lineno_1=$LINENO
22341  as_lineno_2=$LINENO
22342  test "x$as_lineno_1" != "x$as_lineno_2" &&
22343  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22344
22345  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22346  # uniformly replaced by the line number.  The first 'sed' inserts a
22347  # line-number line after each line using $LINENO; the second 'sed'
22348  # does the real work.  The second script uses 'N' to pair each
22349  # line-number line with the line containing $LINENO, and appends
22350  # trailing '-' during substitution so that $LINENO is not a special
22351  # case at line end.
22352  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22353  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22354  # E. McMahon (1931-1989) for sed's syntax.  :-)
22355  sed -n '
22356    p
22357    /[$]LINENO/=
22358  ' <$as_myself |
22359    sed '
22360      s/[$]LINENO.*/&-/
22361      t lineno
22362      b
22363      :lineno
22364      N
22365      :loop
22366      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22367      t loop
22368      s/-\n.*//
22369    ' >$as_me.lineno &&
22370  chmod +x "$as_me.lineno" ||
22371    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22372   { (exit 1); exit 1; }; }
22373
22374  # Don't try to exec as it changes $[0], causing all sort of problems
22375  # (the dirname of $[0] is not the place where we might find the
22376  # original and so on.  Autoconf is especially sensitive to this).
22377  . "./$as_me.lineno"
22378  # Exit status is that of the last command.
22379  exit
22380}
22381
22382
22383if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22384  as_dirname=dirname
22385else
22386  as_dirname=false
22387fi
22388
22389ECHO_C= ECHO_N= ECHO_T=
22390case `echo -n x` in
22391-n*)
22392  case `echo 'x\c'` in
22393  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22394  *)   ECHO_C='\c';;
22395  esac;;
22396*)
22397  ECHO_N='-n';;
22398esac
22399
22400if expr a : '\(a\)' >/dev/null 2>&1 &&
22401   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22402  as_expr=expr
22403else
22404  as_expr=false
22405fi
22406
22407rm -f conf$$ conf$$.exe conf$$.file
22408if test -d conf$$.dir; then
22409  rm -f conf$$.dir/conf$$.file
22410else
22411  rm -f conf$$.dir
22412  mkdir conf$$.dir
22413fi
22414echo >conf$$.file
22415if ln -s conf$$.file conf$$ 2>/dev/null; then
22416  as_ln_s='ln -s'
22417  # ... but there are two gotchas:
22418  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22419  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22420  # In both cases, we have to default to `cp -p'.
22421  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22422    as_ln_s='cp -p'
22423elif ln conf$$.file conf$$ 2>/dev/null; then
22424  as_ln_s=ln
22425else
22426  as_ln_s='cp -p'
22427fi
22428rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22429rmdir conf$$.dir 2>/dev/null
22430
22431if mkdir -p . 2>/dev/null; then
22432  as_mkdir_p=:
22433else
22434  test -d ./-p && rmdir ./-p
22435  as_mkdir_p=false
22436fi
22437
22438if test -x / >/dev/null 2>&1; then
22439  as_test_x='test -x'
22440else
22441  if ls -dL / >/dev/null 2>&1; then
22442    as_ls_L_option=L
22443  else
22444    as_ls_L_option=
22445  fi
22446  as_test_x='
22447    eval sh -c '\''
22448      if test -d "$1"; then
22449        test -d "$1/.";
22450      else
22451	case $1 in
22452        -*)set "./$1";;
22453	esac;
22454	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22455	???[sx]*):;;*)false;;esac;fi
22456    '\'' sh
22457  '
22458fi
22459as_executable_p=$as_test_x
22460
22461# Sed expression to map a string onto a valid CPP name.
22462as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22463
22464# Sed expression to map a string onto a valid variable name.
22465as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22466
22467
22468exec 6>&1
22469
22470# Save the log message, to keep $[0] and so on meaningful, and to
22471# report actual input values of CONFIG_FILES etc. instead of their
22472# values after options handling.
22473ac_log="
22474This file was extended by libXaw $as_me 1.0.4, which was
22475generated by GNU Autoconf 2.61.  Invocation command line was
22476
22477  CONFIG_FILES    = $CONFIG_FILES
22478  CONFIG_HEADERS  = $CONFIG_HEADERS
22479  CONFIG_LINKS    = $CONFIG_LINKS
22480  CONFIG_COMMANDS = $CONFIG_COMMANDS
22481  $ $0 $@
22482
22483on `(hostname || uname -n) 2>/dev/null | sed 1q`
22484"
22485
22486_ACEOF
22487
22488cat >>$CONFIG_STATUS <<_ACEOF
22489# Files that config.status was made for.
22490config_files="$ac_config_files"
22491config_headers="$ac_config_headers"
22492config_commands="$ac_config_commands"
22493
22494_ACEOF
22495
22496cat >>$CONFIG_STATUS <<\_ACEOF
22497ac_cs_usage="\
22498\`$as_me' instantiates files from templates according to the
22499current configuration.
22500
22501Usage: $0 [OPTIONS] [FILE]...
22502
22503  -h, --help       print this help, then exit
22504  -V, --version    print version number and configuration settings, then exit
22505  -q, --quiet      do not print progress messages
22506  -d, --debug      don't remove temporary files
22507      --recheck    update $as_me by reconfiguring in the same conditions
22508  --file=FILE[:TEMPLATE]
22509		   instantiate the configuration file FILE
22510  --header=FILE[:TEMPLATE]
22511		   instantiate the configuration header FILE
22512
22513Configuration files:
22514$config_files
22515
22516Configuration headers:
22517$config_headers
22518
22519Configuration commands:
22520$config_commands
22521
22522Report bugs to <bug-autoconf@gnu.org>."
22523
22524_ACEOF
22525cat >>$CONFIG_STATUS <<_ACEOF
22526ac_cs_version="\\
22527libXaw config.status 1.0.4
22528configured by $0, generated by GNU Autoconf 2.61,
22529  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22530
22531Copyright (C) 2006 Free Software Foundation, Inc.
22532This config.status script is free software; the Free Software Foundation
22533gives unlimited permission to copy, distribute and modify it."
22534
22535ac_pwd='$ac_pwd'
22536srcdir='$srcdir'
22537INSTALL='$INSTALL'
22538MKDIR_P='$MKDIR_P'
22539_ACEOF
22540
22541cat >>$CONFIG_STATUS <<\_ACEOF
22542# If no file are specified by the user, then we need to provide default
22543# value.  By we need to know if files were specified by the user.
22544ac_need_defaults=:
22545while test $# != 0
22546do
22547  case $1 in
22548  --*=*)
22549    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22550    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22551    ac_shift=:
22552    ;;
22553  *)
22554    ac_option=$1
22555    ac_optarg=$2
22556    ac_shift=shift
22557    ;;
22558  esac
22559
22560  case $ac_option in
22561  # Handling of the options.
22562  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22563    ac_cs_recheck=: ;;
22564  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22565    echo "$ac_cs_version"; exit ;;
22566  --debug | --debu | --deb | --de | --d | -d )
22567    debug=: ;;
22568  --file | --fil | --fi | --f )
22569    $ac_shift
22570    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22571    ac_need_defaults=false;;
22572  --header | --heade | --head | --hea )
22573    $ac_shift
22574    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22575    ac_need_defaults=false;;
22576  --he | --h)
22577    # Conflict between --help and --header
22578    { echo "$as_me: error: ambiguous option: $1
22579Try \`$0 --help' for more information." >&2
22580   { (exit 1); exit 1; }; };;
22581  --help | --hel | -h )
22582    echo "$ac_cs_usage"; exit ;;
22583  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22584  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22585    ac_cs_silent=: ;;
22586
22587  # This is an error.
22588  -*) { echo "$as_me: error: unrecognized option: $1
22589Try \`$0 --help' for more information." >&2
22590   { (exit 1); exit 1; }; } ;;
22591
22592  *) ac_config_targets="$ac_config_targets $1"
22593     ac_need_defaults=false ;;
22594
22595  esac
22596  shift
22597done
22598
22599ac_configure_extra_args=
22600
22601if $ac_cs_silent; then
22602  exec 6>/dev/null
22603  ac_configure_extra_args="$ac_configure_extra_args --silent"
22604fi
22605
22606_ACEOF
22607cat >>$CONFIG_STATUS <<_ACEOF
22608if \$ac_cs_recheck; then
22609  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22610  CONFIG_SHELL=$SHELL
22611  export CONFIG_SHELL
22612  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22613fi
22614
22615_ACEOF
22616cat >>$CONFIG_STATUS <<\_ACEOF
22617exec 5>>config.log
22618{
22619  echo
22620  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22621## Running $as_me. ##
22622_ASBOX
22623  echo "$ac_log"
22624} >&5
22625
22626_ACEOF
22627cat >>$CONFIG_STATUS <<_ACEOF
22628#
22629# INIT-COMMANDS
22630#
22631AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22632
22633_ACEOF
22634
22635cat >>$CONFIG_STATUS <<\_ACEOF
22636
22637# Handling of arguments.
22638for ac_config_target in $ac_config_targets
22639do
22640  case $ac_config_target in
22641    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22642    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22643    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22644    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22645    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22646    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22647    "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;;
22648
22649  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22650echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22651   { (exit 1); exit 1; }; };;
22652  esac
22653done
22654
22655
22656# If the user did not use the arguments to specify the items to instantiate,
22657# then the envvar interface is used.  Set only those that are not.
22658# We use the long form for the default assignment because of an extremely
22659# bizarre bug on SunOS 4.1.3.
22660if $ac_need_defaults; then
22661  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22662  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22663  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22664fi
22665
22666# Have a temporary directory for convenience.  Make it in the build tree
22667# simply because there is no reason against having it here, and in addition,
22668# creating and moving files from /tmp can sometimes cause problems.
22669# Hook for its removal unless debugging.
22670# Note that there is a small window in which the directory will not be cleaned:
22671# after its creation but before its name has been assigned to `$tmp'.
22672$debug ||
22673{
22674  tmp=
22675  trap 'exit_status=$?
22676  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22677' 0
22678  trap '{ (exit 1); exit 1; }' 1 2 13 15
22679}
22680# Create a (secure) tmp directory for tmp files.
22681
22682{
22683  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22684  test -n "$tmp" && test -d "$tmp"
22685}  ||
22686{
22687  tmp=./conf$$-$RANDOM
22688  (umask 077 && mkdir "$tmp")
22689} ||
22690{
22691   echo "$me: cannot create a temporary directory in ." >&2
22692   { (exit 1); exit 1; }
22693}
22694
22695#
22696# Set up the sed scripts for CONFIG_FILES section.
22697#
22698
22699# No need to generate the scripts if there are no CONFIG_FILES.
22700# This happens for instance when ./config.status config.h
22701if test -n "$CONFIG_FILES"; then
22702
22703_ACEOF
22704
22705
22706
22707ac_delim='%!_!# '
22708for ac_last_try in false false false false false :; do
22709  cat >conf$$subs.sed <<_ACEOF
22710SHELL!$SHELL$ac_delim
22711PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22712PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22713PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22714PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22715PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22716PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22717exec_prefix!$exec_prefix$ac_delim
22718prefix!$prefix$ac_delim
22719program_transform_name!$program_transform_name$ac_delim
22720bindir!$bindir$ac_delim
22721sbindir!$sbindir$ac_delim
22722libexecdir!$libexecdir$ac_delim
22723datarootdir!$datarootdir$ac_delim
22724datadir!$datadir$ac_delim
22725sysconfdir!$sysconfdir$ac_delim
22726sharedstatedir!$sharedstatedir$ac_delim
22727localstatedir!$localstatedir$ac_delim
22728includedir!$includedir$ac_delim
22729oldincludedir!$oldincludedir$ac_delim
22730docdir!$docdir$ac_delim
22731infodir!$infodir$ac_delim
22732htmldir!$htmldir$ac_delim
22733dvidir!$dvidir$ac_delim
22734pdfdir!$pdfdir$ac_delim
22735psdir!$psdir$ac_delim
22736libdir!$libdir$ac_delim
22737localedir!$localedir$ac_delim
22738mandir!$mandir$ac_delim
22739DEFS!$DEFS$ac_delim
22740ECHO_C!$ECHO_C$ac_delim
22741ECHO_N!$ECHO_N$ac_delim
22742ECHO_T!$ECHO_T$ac_delim
22743LIBS!$LIBS$ac_delim
22744build_alias!$build_alias$ac_delim
22745host_alias!$host_alias$ac_delim
22746target_alias!$target_alias$ac_delim
22747INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22748INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22749INSTALL_DATA!$INSTALL_DATA$ac_delim
22750am__isrc!$am__isrc$ac_delim
22751CYGPATH_W!$CYGPATH_W$ac_delim
22752PACKAGE!$PACKAGE$ac_delim
22753VERSION!$VERSION$ac_delim
22754ACLOCAL!$ACLOCAL$ac_delim
22755AUTOCONF!$AUTOCONF$ac_delim
22756AUTOMAKE!$AUTOMAKE$ac_delim
22757AUTOHEADER!$AUTOHEADER$ac_delim
22758MAKEINFO!$MAKEINFO$ac_delim
22759install_sh!$install_sh$ac_delim
22760STRIP!$STRIP$ac_delim
22761INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22762mkdir_p!$mkdir_p$ac_delim
22763AWK!$AWK$ac_delim
22764SET_MAKE!$SET_MAKE$ac_delim
22765am__leading_dot!$am__leading_dot$ac_delim
22766AMTAR!$AMTAR$ac_delim
22767am__tar!$am__tar$ac_delim
22768am__untar!$am__untar$ac_delim
22769CC!$CC$ac_delim
22770CFLAGS!$CFLAGS$ac_delim
22771LDFLAGS!$LDFLAGS$ac_delim
22772CPPFLAGS!$CPPFLAGS$ac_delim
22773ac_ct_CC!$ac_ct_CC$ac_delim
22774EXEEXT!$EXEEXT$ac_delim
22775OBJEXT!$OBJEXT$ac_delim
22776DEPDIR!$DEPDIR$ac_delim
22777am__include!$am__include$ac_delim
22778am__quote!$am__quote$ac_delim
22779AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22780AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22781AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22782CCDEPMODE!$CCDEPMODE$ac_delim
22783am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22784am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22785build!$build$ac_delim
22786build_cpu!$build_cpu$ac_delim
22787build_vendor!$build_vendor$ac_delim
22788build_os!$build_os$ac_delim
22789host!$host$ac_delim
22790host_cpu!$host_cpu$ac_delim
22791host_vendor!$host_vendor$ac_delim
22792host_os!$host_os$ac_delim
22793GREP!$GREP$ac_delim
22794EGREP!$EGREP$ac_delim
22795LN_S!$LN_S$ac_delim
22796ECHO!$ECHO$ac_delim
22797AR!$AR$ac_delim
22798RANLIB!$RANLIB$ac_delim
22799CPP!$CPP$ac_delim
22800CXX!$CXX$ac_delim
22801CXXFLAGS!$CXXFLAGS$ac_delim
22802ac_ct_CXX!$ac_ct_CXX$ac_delim
22803CXXDEPMODE!$CXXDEPMODE$ac_delim
22804am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22805am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22806CXXCPP!$CXXCPP$ac_delim
22807_ACEOF
22808
22809  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22810    break
22811  elif $ac_last_try; then
22812    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22813echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22814   { (exit 1); exit 1; }; }
22815  else
22816    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22817  fi
22818done
22819
22820ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22821if test -n "$ac_eof"; then
22822  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22823  ac_eof=`expr $ac_eof + 1`
22824fi
22825
22826cat >>$CONFIG_STATUS <<_ACEOF
22827cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22828/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22829_ACEOF
22830sed '
22831s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22832s/^/s,@/; s/!/@,|#_!!_#|/
22833:n
22834t n
22835s/'"$ac_delim"'$/,g/; t
22836s/$/\\/; p
22837N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22838' >>$CONFIG_STATUS <conf$$subs.sed
22839rm -f conf$$subs.sed
22840cat >>$CONFIG_STATUS <<_ACEOF
22841CEOF$ac_eof
22842_ACEOF
22843
22844
22845ac_delim='%!_!# '
22846for ac_last_try in false false false false false :; do
22847  cat >conf$$subs.sed <<_ACEOF
22848F77!$F77$ac_delim
22849FFLAGS!$FFLAGS$ac_delim
22850ac_ct_F77!$ac_ct_F77$ac_delim
22851LIBTOOL!$LIBTOOL$ac_delim
22852PKG_CONFIG!$PKG_CONFIG$ac_delim
22853PLATFORM_WIN32_TRUE!$PLATFORM_WIN32_TRUE$ac_delim
22854PLATFORM_WIN32_FALSE!$PLATFORM_WIN32_FALSE$ac_delim
22855XAW6_CFLAGS!$XAW6_CFLAGS$ac_delim
22856XAW6_LIBS!$XAW6_LIBS$ac_delim
22857XAW7_CFLAGS!$XAW7_CFLAGS$ac_delim
22858XAW7_LIBS!$XAW7_LIBS$ac_delim
22859XPRINT_CFLAGS!$XPRINT_CFLAGS$ac_delim
22860XPRINT_LIBS!$XPRINT_LIBS$ac_delim
22861XAW8_CFLAGS!$XAW8_CFLAGS$ac_delim
22862XAW8_LIBS!$XAW8_LIBS$ac_delim
22863BUILD_XAW6_TRUE!$BUILD_XAW6_TRUE$ac_delim
22864BUILD_XAW6_FALSE!$BUILD_XAW6_FALSE$ac_delim
22865BUILD_XAW7_TRUE!$BUILD_XAW7_TRUE$ac_delim
22866BUILD_XAW7_FALSE!$BUILD_XAW7_FALSE$ac_delim
22867BUILD_XAW8_TRUE!$BUILD_XAW8_TRUE$ac_delim
22868BUILD_XAW8_FALSE!$BUILD_XAW8_FALSE$ac_delim
22869APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
22870LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
22871FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
22872MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
22873DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
22874ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
22875APP_MAN_DIR!$APP_MAN_DIR$ac_delim
22876LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
22877FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
22878MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
22879DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
22880ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
22881LIBOBJS!$LIBOBJS$ac_delim
22882LTLIBOBJS!$LTLIBOBJS$ac_delim
22883_ACEOF
22884
22885  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
22886    break
22887  elif $ac_last_try; then
22888    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22889echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22890   { (exit 1); exit 1; }; }
22891  else
22892    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22893  fi
22894done
22895
22896ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22897if test -n "$ac_eof"; then
22898  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22899  ac_eof=`expr $ac_eof + 1`
22900fi
22901
22902cat >>$CONFIG_STATUS <<_ACEOF
22903cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22904/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22905_ACEOF
22906sed '
22907s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22908s/^/s,@/; s/!/@,|#_!!_#|/
22909:n
22910t n
22911s/'"$ac_delim"'$/,g/; t
22912s/$/\\/; p
22913N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22914' >>$CONFIG_STATUS <conf$$subs.sed
22915rm -f conf$$subs.sed
22916cat >>$CONFIG_STATUS <<_ACEOF
22917:end
22918s/|#_!!_#|//g
22919CEOF$ac_eof
22920_ACEOF
22921
22922
22923# VPATH may cause trouble with some makes, so we remove $(srcdir),
22924# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22925# trailing colons and then remove the whole line if VPATH becomes empty
22926# (actually we leave an empty line to preserve line numbers).
22927if test "x$srcdir" = x.; then
22928  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22929s/:*\$(srcdir):*/:/
22930s/:*\${srcdir}:*/:/
22931s/:*@srcdir@:*/:/
22932s/^\([^=]*=[	 ]*\):*/\1/
22933s/:*$//
22934s/^[^=]*=[	 ]*$//
22935}'
22936fi
22937
22938cat >>$CONFIG_STATUS <<\_ACEOF
22939fi # test -n "$CONFIG_FILES"
22940
22941
22942for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22943do
22944  case $ac_tag in
22945  :[FHLC]) ac_mode=$ac_tag; continue;;
22946  esac
22947  case $ac_mode$ac_tag in
22948  :[FHL]*:*);;
22949  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22950echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22951   { (exit 1); exit 1; }; };;
22952  :[FH]-) ac_tag=-:-;;
22953  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22954  esac
22955  ac_save_IFS=$IFS
22956  IFS=:
22957  set x $ac_tag
22958  IFS=$ac_save_IFS
22959  shift
22960  ac_file=$1
22961  shift
22962
22963  case $ac_mode in
22964  :L) ac_source=$1;;
22965  :[FH])
22966    ac_file_inputs=
22967    for ac_f
22968    do
22969      case $ac_f in
22970      -) ac_f="$tmp/stdin";;
22971      *) # Look for the file first in the build tree, then in the source tree
22972	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22973	 # because $ac_f cannot contain `:'.
22974	 test -f "$ac_f" ||
22975	   case $ac_f in
22976	   [\\/$]*) false;;
22977	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22978	   esac ||
22979	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22980echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22981   { (exit 1); exit 1; }; };;
22982      esac
22983      ac_file_inputs="$ac_file_inputs $ac_f"
22984    done
22985
22986    # Let's still pretend it is `configure' which instantiates (i.e., don't
22987    # use $as_me), people would be surprised to read:
22988    #    /* config.h.  Generated by config.status.  */
22989    configure_input="Generated from "`IFS=:
22990	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22991    if test x"$ac_file" != x-; then
22992      configure_input="$ac_file.  $configure_input"
22993      { echo "$as_me:$LINENO: creating $ac_file" >&5
22994echo "$as_me: creating $ac_file" >&6;}
22995    fi
22996
22997    case $ac_tag in
22998    *:-:* | *:-) cat >"$tmp/stdin";;
22999    esac
23000    ;;
23001  esac
23002
23003  ac_dir=`$as_dirname -- "$ac_file" ||
23004$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23005	 X"$ac_file" : 'X\(//\)[^/]' \| \
23006	 X"$ac_file" : 'X\(//\)$' \| \
23007	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23008echo X"$ac_file" |
23009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23010	    s//\1/
23011	    q
23012	  }
23013	  /^X\(\/\/\)[^/].*/{
23014	    s//\1/
23015	    q
23016	  }
23017	  /^X\(\/\/\)$/{
23018	    s//\1/
23019	    q
23020	  }
23021	  /^X\(\/\).*/{
23022	    s//\1/
23023	    q
23024	  }
23025	  s/.*/./; q'`
23026  { as_dir="$ac_dir"
23027  case $as_dir in #(
23028  -*) as_dir=./$as_dir;;
23029  esac
23030  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23031    as_dirs=
23032    while :; do
23033      case $as_dir in #(
23034      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23035      *) as_qdir=$as_dir;;
23036      esac
23037      as_dirs="'$as_qdir' $as_dirs"
23038      as_dir=`$as_dirname -- "$as_dir" ||
23039$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23040	 X"$as_dir" : 'X\(//\)[^/]' \| \
23041	 X"$as_dir" : 'X\(//\)$' \| \
23042	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23043echo X"$as_dir" |
23044    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23045	    s//\1/
23046	    q
23047	  }
23048	  /^X\(\/\/\)[^/].*/{
23049	    s//\1/
23050	    q
23051	  }
23052	  /^X\(\/\/\)$/{
23053	    s//\1/
23054	    q
23055	  }
23056	  /^X\(\/\).*/{
23057	    s//\1/
23058	    q
23059	  }
23060	  s/.*/./; q'`
23061      test -d "$as_dir" && break
23062    done
23063    test -z "$as_dirs" || eval "mkdir $as_dirs"
23064  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23065echo "$as_me: error: cannot create directory $as_dir" >&2;}
23066   { (exit 1); exit 1; }; }; }
23067  ac_builddir=.
23068
23069case "$ac_dir" in
23070.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23071*)
23072  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23073  # A ".." for each directory in $ac_dir_suffix.
23074  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23075  case $ac_top_builddir_sub in
23076  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23077  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23078  esac ;;
23079esac
23080ac_abs_top_builddir=$ac_pwd
23081ac_abs_builddir=$ac_pwd$ac_dir_suffix
23082# for backward compatibility:
23083ac_top_builddir=$ac_top_build_prefix
23084
23085case $srcdir in
23086  .)  # We are building in place.
23087    ac_srcdir=.
23088    ac_top_srcdir=$ac_top_builddir_sub
23089    ac_abs_top_srcdir=$ac_pwd ;;
23090  [\\/]* | ?:[\\/]* )  # Absolute name.
23091    ac_srcdir=$srcdir$ac_dir_suffix;
23092    ac_top_srcdir=$srcdir
23093    ac_abs_top_srcdir=$srcdir ;;
23094  *) # Relative name.
23095    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23096    ac_top_srcdir=$ac_top_build_prefix$srcdir
23097    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23098esac
23099ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23100
23101
23102  case $ac_mode in
23103  :F)
23104  #
23105  # CONFIG_FILE
23106  #
23107
23108  case $INSTALL in
23109  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23110  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23111  esac
23112  ac_MKDIR_P=$MKDIR_P
23113  case $MKDIR_P in
23114  [\\/$]* | ?:[\\/]* ) ;;
23115  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23116  esac
23117_ACEOF
23118
23119cat >>$CONFIG_STATUS <<\_ACEOF
23120# If the template does not know about datarootdir, expand it.
23121# FIXME: This hack should be removed a few years after 2.60.
23122ac_datarootdir_hack=; ac_datarootdir_seen=
23123
23124case `sed -n '/datarootdir/ {
23125  p
23126  q
23127}
23128/@datadir@/p
23129/@docdir@/p
23130/@infodir@/p
23131/@localedir@/p
23132/@mandir@/p
23133' $ac_file_inputs` in
23134*datarootdir*) ac_datarootdir_seen=yes;;
23135*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23136  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23137echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23138_ACEOF
23139cat >>$CONFIG_STATUS <<_ACEOF
23140  ac_datarootdir_hack='
23141  s&@datadir@&$datadir&g
23142  s&@docdir@&$docdir&g
23143  s&@infodir@&$infodir&g
23144  s&@localedir@&$localedir&g
23145  s&@mandir@&$mandir&g
23146    s&\\\${datarootdir}&$datarootdir&g' ;;
23147esac
23148_ACEOF
23149
23150# Neutralize VPATH when `$srcdir' = `.'.
23151# Shell code in configure.ac might set extrasub.
23152# FIXME: do we really want to maintain this feature?
23153cat >>$CONFIG_STATUS <<_ACEOF
23154  sed "$ac_vpsub
23155$extrasub
23156_ACEOF
23157cat >>$CONFIG_STATUS <<\_ACEOF
23158:t
23159/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23160s&@configure_input@&$configure_input&;t t
23161s&@top_builddir@&$ac_top_builddir_sub&;t t
23162s&@srcdir@&$ac_srcdir&;t t
23163s&@abs_srcdir@&$ac_abs_srcdir&;t t
23164s&@top_srcdir@&$ac_top_srcdir&;t t
23165s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23166s&@builddir@&$ac_builddir&;t t
23167s&@abs_builddir@&$ac_abs_builddir&;t t
23168s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23169s&@INSTALL@&$ac_INSTALL&;t t
23170s&@MKDIR_P@&$ac_MKDIR_P&;t t
23171$ac_datarootdir_hack
23172" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23173
23174test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23175  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23176  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23177  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23178which seems to be undefined.  Please make sure it is defined." >&5
23179echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23180which seems to be undefined.  Please make sure it is defined." >&2;}
23181
23182  rm -f "$tmp/stdin"
23183  case $ac_file in
23184  -) cat "$tmp/out"; rm -f "$tmp/out";;
23185  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23186  esac
23187 ;;
23188  :H)
23189  #
23190  # CONFIG_HEADER
23191  #
23192_ACEOF
23193
23194# Transform confdefs.h into a sed script `conftest.defines', that
23195# substitutes the proper values into config.h.in to produce config.h.
23196rm -f conftest.defines conftest.tail
23197# First, append a space to every undef/define line, to ease matching.
23198echo 's/$/ /' >conftest.defines
23199# Then, protect against being on the right side of a sed subst, or in
23200# an unquoted here document, in config.status.  If some macros were
23201# called several times there might be several #defines for the same
23202# symbol, which is useless.  But do not sort them, since the last
23203# AC_DEFINE must be honored.
23204ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23205# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23206# NAME is the cpp macro being defined, VALUE is the value it is being given.
23207# PARAMS is the parameter list in the macro definition--in most cases, it's
23208# just an empty string.
23209ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23210ac_dB='\\)[	 (].*,\\1define\\2'
23211ac_dC=' '
23212ac_dD=' ,'
23213
23214uniq confdefs.h |
23215  sed -n '
23216	t rset
23217	:rset
23218	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23219	t ok
23220	d
23221	:ok
23222	s/[\\&,]/\\&/g
23223	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23224	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23225  ' >>conftest.defines
23226
23227# Remove the space that was appended to ease matching.
23228# Then replace #undef with comments.  This is necessary, for
23229# example, in the case of _POSIX_SOURCE, which is predefined and required
23230# on some systems where configure will not decide to define it.
23231# (The regexp can be short, since the line contains either #define or #undef.)
23232echo 's/ $//
23233s,^[	 #]*u.*,/* & */,' >>conftest.defines
23234
23235# Break up conftest.defines:
23236ac_max_sed_lines=50
23237
23238# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23239# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23240# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23241# et cetera.
23242ac_in='$ac_file_inputs'
23243ac_out='"$tmp/out1"'
23244ac_nxt='"$tmp/out2"'
23245
23246while :
23247do
23248  # Write a here document:
23249    cat >>$CONFIG_STATUS <<_ACEOF
23250    # First, check the format of the line:
23251    cat >"\$tmp/defines.sed" <<\\CEOF
23252/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23253/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23254b
23255:def
23256_ACEOF
23257  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23258  echo 'CEOF
23259    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23260  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23261  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23262  grep . conftest.tail >/dev/null || break
23263  rm -f conftest.defines
23264  mv conftest.tail conftest.defines
23265done
23266rm -f conftest.defines conftest.tail
23267
23268echo "ac_result=$ac_in" >>$CONFIG_STATUS
23269cat >>$CONFIG_STATUS <<\_ACEOF
23270  if test x"$ac_file" != x-; then
23271    echo "/* $configure_input  */" >"$tmp/config.h"
23272    cat "$ac_result" >>"$tmp/config.h"
23273    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23274      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23275echo "$as_me: $ac_file is unchanged" >&6;}
23276    else
23277      rm -f $ac_file
23278      mv "$tmp/config.h" $ac_file
23279    fi
23280  else
23281    echo "/* $configure_input  */"
23282    cat "$ac_result"
23283  fi
23284  rm -f "$tmp/out12"
23285# Compute $ac_file's index in $config_headers.
23286_am_stamp_count=1
23287for _am_header in $config_headers :; do
23288  case $_am_header in
23289    $ac_file | $ac_file:* )
23290      break ;;
23291    * )
23292      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23293  esac
23294done
23295echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23296$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23297	 X$ac_file : 'X\(//\)[^/]' \| \
23298	 X$ac_file : 'X\(//\)$' \| \
23299	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23300echo X$ac_file |
23301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23302	    s//\1/
23303	    q
23304	  }
23305	  /^X\(\/\/\)[^/].*/{
23306	    s//\1/
23307	    q
23308	  }
23309	  /^X\(\/\/\)$/{
23310	    s//\1/
23311	    q
23312	  }
23313	  /^X\(\/\).*/{
23314	    s//\1/
23315	    q
23316	  }
23317	  s/.*/./; q'`/stamp-h$_am_stamp_count
23318 ;;
23319
23320  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23321echo "$as_me: executing $ac_file commands" >&6;}
23322 ;;
23323  esac
23324
23325
23326  case $ac_file$ac_mode in
23327    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23328  # Strip MF so we end up with the name of the file.
23329  mf=`echo "$mf" | sed -e 's/:.*$//'`
23330  # Check whether this is an Automake generated Makefile or not.
23331  # We used to match only the files named `Makefile.in', but
23332  # some people rename them; so instead we look at the file content.
23333  # Grep'ing the first line is not enough: some people post-process
23334  # each Makefile.in and add a new line on top of each file to say so.
23335  # Grep'ing the whole file is not good either: AIX grep has a line
23336  # limit of 2048, but all sed's we know have understand at least 4000.
23337  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23338    dirpart=`$as_dirname -- "$mf" ||
23339$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23340	 X"$mf" : 'X\(//\)[^/]' \| \
23341	 X"$mf" : 'X\(//\)$' \| \
23342	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23343echo X"$mf" |
23344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23345	    s//\1/
23346	    q
23347	  }
23348	  /^X\(\/\/\)[^/].*/{
23349	    s//\1/
23350	    q
23351	  }
23352	  /^X\(\/\/\)$/{
23353	    s//\1/
23354	    q
23355	  }
23356	  /^X\(\/\).*/{
23357	    s//\1/
23358	    q
23359	  }
23360	  s/.*/./; q'`
23361  else
23362    continue
23363  fi
23364  # Extract the definition of DEPDIR, am__include, and am__quote
23365  # from the Makefile without running `make'.
23366  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23367  test -z "$DEPDIR" && continue
23368  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23369  test -z "am__include" && continue
23370  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23371  # When using ansi2knr, U may be empty or an underscore; expand it
23372  U=`sed -n 's/^U = //p' < "$mf"`
23373  # Find all dependency output files, they are included files with
23374  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23375  # simplest approach to changing $(DEPDIR) to its actual value in the
23376  # expansion.
23377  for file in `sed -n "
23378    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23379       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23380    # Make sure the directory exists.
23381    test -f "$dirpart/$file" && continue
23382    fdir=`$as_dirname -- "$file" ||
23383$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23384	 X"$file" : 'X\(//\)[^/]' \| \
23385	 X"$file" : 'X\(//\)$' \| \
23386	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23387echo X"$file" |
23388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23389	    s//\1/
23390	    q
23391	  }
23392	  /^X\(\/\/\)[^/].*/{
23393	    s//\1/
23394	    q
23395	  }
23396	  /^X\(\/\/\)$/{
23397	    s//\1/
23398	    q
23399	  }
23400	  /^X\(\/\).*/{
23401	    s//\1/
23402	    q
23403	  }
23404	  s/.*/./; q'`
23405    { as_dir=$dirpart/$fdir
23406  case $as_dir in #(
23407  -*) as_dir=./$as_dir;;
23408  esac
23409  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23410    as_dirs=
23411    while :; do
23412      case $as_dir in #(
23413      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23414      *) as_qdir=$as_dir;;
23415      esac
23416      as_dirs="'$as_qdir' $as_dirs"
23417      as_dir=`$as_dirname -- "$as_dir" ||
23418$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23419	 X"$as_dir" : 'X\(//\)[^/]' \| \
23420	 X"$as_dir" : 'X\(//\)$' \| \
23421	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23422echo X"$as_dir" |
23423    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23424	    s//\1/
23425	    q
23426	  }
23427	  /^X\(\/\/\)[^/].*/{
23428	    s//\1/
23429	    q
23430	  }
23431	  /^X\(\/\/\)$/{
23432	    s//\1/
23433	    q
23434	  }
23435	  /^X\(\/\).*/{
23436	    s//\1/
23437	    q
23438	  }
23439	  s/.*/./; q'`
23440      test -d "$as_dir" && break
23441    done
23442    test -z "$as_dirs" || eval "mkdir $as_dirs"
23443  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23444echo "$as_me: error: cannot create directory $as_dir" >&2;}
23445   { (exit 1); exit 1; }; }; }
23446    # echo "creating $dirpart/$file"
23447    echo '# dummy' > "$dirpart/$file"
23448  done
23449done
23450 ;;
23451
23452  esac
23453done # for ac_tag
23454
23455
23456{ (exit 0); exit 0; }
23457_ACEOF
23458chmod +x $CONFIG_STATUS
23459ac_clean_files=$ac_clean_files_save
23460
23461
23462# configure is writing to config.log, and then calls config.status.
23463# config.status does its own redirection, appending to config.log.
23464# Unfortunately, on DOS this fails, as config.log is still kept open
23465# by configure, so config.status won't be able to write to it; its
23466# output is simply discarded.  So we exec the FD to /dev/null,
23467# effectively closing config.log, so it can be properly (re)opened and
23468# appended to by config.status.  When coming back to configure, we
23469# need to make the FD available again.
23470if test "$no_create" != yes; then
23471  ac_cs_success=:
23472  ac_config_status_args=
23473  test "$silent" = yes &&
23474    ac_config_status_args="$ac_config_status_args --quiet"
23475  exec 5>/dev/null
23476  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23477  exec 5>>config.log
23478  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23479  # would make configure fail if this is the last instruction.
23480  $ac_cs_success || { (exit 1); exit 1; }
23481fi
23482
23483fi
23484
23485if test "x$build_v7" = xyes; then
23486   ac_config_files="$ac_config_files xaw7.pc"
23487
23488cat >confcache <<\_ACEOF
23489# This file is a shell script that caches the results of configure
23490# tests run on this system so they can be shared between configure
23491# scripts and configure runs, see configure's option --config-cache.
23492# It is not useful on other systems.  If it contains results you don't
23493# want to keep, you may remove or edit it.
23494#
23495# config.status only pays attention to the cache file if you give it
23496# the --recheck option to rerun configure.
23497#
23498# `ac_cv_env_foo' variables (set or unset) will be overridden when
23499# loading this file, other *unset* `ac_cv_foo' will be assigned the
23500# following values.
23501
23502_ACEOF
23503
23504# The following way of writing the cache mishandles newlines in values,
23505# but we know of no workaround that is simple, portable, and efficient.
23506# So, we kill variables containing newlines.
23507# Ultrix sh set writes to stderr and can't be redirected directly,
23508# and sets the high bit in the cache file unless we assign to the vars.
23509(
23510  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23511    eval ac_val=\$$ac_var
23512    case $ac_val in #(
23513    *${as_nl}*)
23514      case $ac_var in #(
23515      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23516echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23517      esac
23518      case $ac_var in #(
23519      _ | IFS | as_nl) ;; #(
23520      *) $as_unset $ac_var ;;
23521      esac ;;
23522    esac
23523  done
23524
23525  (set) 2>&1 |
23526    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23527    *${as_nl}ac_space=\ *)
23528      # `set' does not quote correctly, so add quotes (double-quote
23529      # substitution turns \\\\ into \\, and sed turns \\ into \).
23530      sed -n \
23531	"s/'/'\\\\''/g;
23532	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23533      ;; #(
23534    *)
23535      # `set' quotes correctly as required by POSIX, so do not add quotes.
23536      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23537      ;;
23538    esac |
23539    sort
23540) |
23541  sed '
23542     /^ac_cv_env_/b end
23543     t clear
23544     :clear
23545     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23546     t end
23547     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23548     :end' >>confcache
23549if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23550  if test -w "$cache_file"; then
23551    test "x$cache_file" != "x/dev/null" &&
23552      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23553echo "$as_me: updating cache $cache_file" >&6;}
23554    cat confcache >$cache_file
23555  else
23556    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23557echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23558  fi
23559fi
23560rm -f confcache
23561
23562test "x$prefix" = xNONE && prefix=$ac_default_prefix
23563# Let make expand exec_prefix.
23564test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23565
23566DEFS=-DHAVE_CONFIG_H
23567
23568ac_libobjs=
23569ac_ltlibobjs=
23570for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23571  # 1. Remove the extension, and $U if already installed.
23572  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23573  ac_i=`echo "$ac_i" | sed "$ac_script"`
23574  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23575  #    will be set to the directory where LIBOBJS objects are built.
23576  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23577  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23578done
23579LIBOBJS=$ac_libobjs
23580
23581LTLIBOBJS=$ac_ltlibobjs
23582
23583
23584if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23585  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23586Usually this means the macro was only invoked conditionally." >&5
23587echo "$as_me: error: conditional \"AMDEP\" was never defined.
23588Usually this means the macro was only invoked conditionally." >&2;}
23589   { (exit 1); exit 1; }; }
23590fi
23591if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23592  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23593Usually this means the macro was only invoked conditionally." >&5
23594echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23595Usually this means the macro was only invoked conditionally." >&2;}
23596   { (exit 1); exit 1; }; }
23597fi
23598if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23599  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23600Usually this means the macro was only invoked conditionally." >&5
23601echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23602Usually this means the macro was only invoked conditionally." >&2;}
23603   { (exit 1); exit 1; }; }
23604fi
23605if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
23606  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
23607Usually this means the macro was only invoked conditionally." >&5
23608echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
23609Usually this means the macro was only invoked conditionally." >&2;}
23610   { (exit 1); exit 1; }; }
23611fi
23612if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then
23613  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW6\" was never defined.
23614Usually this means the macro was only invoked conditionally." >&5
23615echo "$as_me: error: conditional \"BUILD_XAW6\" was never defined.
23616Usually this means the macro was only invoked conditionally." >&2;}
23617   { (exit 1); exit 1; }; }
23618fi
23619if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
23620  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW7\" was never defined.
23621Usually this means the macro was only invoked conditionally." >&5
23622echo "$as_me: error: conditional \"BUILD_XAW7\" was never defined.
23623Usually this means the macro was only invoked conditionally." >&2;}
23624   { (exit 1); exit 1; }; }
23625fi
23626if test -z "${BUILD_XAW8_TRUE}" && test -z "${BUILD_XAW8_FALSE}"; then
23627  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW8\" was never defined.
23628Usually this means the macro was only invoked conditionally." >&5
23629echo "$as_me: error: conditional \"BUILD_XAW8\" was never defined.
23630Usually this means the macro was only invoked conditionally." >&2;}
23631   { (exit 1); exit 1; }; }
23632fi
23633
23634: ${CONFIG_STATUS=./config.status}
23635ac_clean_files_save=$ac_clean_files
23636ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23637{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23638echo "$as_me: creating $CONFIG_STATUS" >&6;}
23639cat >$CONFIG_STATUS <<_ACEOF
23640#! $SHELL
23641# Generated by $as_me.
23642# Run this file to recreate the current configuration.
23643# Compiler output produced by configure, useful for debugging
23644# configure, is in config.log if it exists.
23645
23646debug=false
23647ac_cs_recheck=false
23648ac_cs_silent=false
23649SHELL=\${CONFIG_SHELL-$SHELL}
23650_ACEOF
23651
23652cat >>$CONFIG_STATUS <<\_ACEOF
23653## --------------------- ##
23654## M4sh Initialization.  ##
23655## --------------------- ##
23656
23657# Be more Bourne compatible
23658DUALCASE=1; export DUALCASE # for MKS sh
23659if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23660  emulate sh
23661  NULLCMD=:
23662  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23663  # is contrary to our usage.  Disable this feature.
23664  alias -g '${1+"$@"}'='"$@"'
23665  setopt NO_GLOB_SUBST
23666else
23667  case `(set -o) 2>/dev/null` in
23668  *posix*) set -o posix ;;
23669esac
23670
23671fi
23672
23673
23674
23675
23676# PATH needs CR
23677# Avoid depending upon Character Ranges.
23678as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23679as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23680as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23681as_cr_digits='0123456789'
23682as_cr_alnum=$as_cr_Letters$as_cr_digits
23683
23684# The user is always right.
23685if test "${PATH_SEPARATOR+set}" != set; then
23686  echo "#! /bin/sh" >conf$$.sh
23687  echo  "exit 0"   >>conf$$.sh
23688  chmod +x conf$$.sh
23689  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23690    PATH_SEPARATOR=';'
23691  else
23692    PATH_SEPARATOR=:
23693  fi
23694  rm -f conf$$.sh
23695fi
23696
23697# Support unset when possible.
23698if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23699  as_unset=unset
23700else
23701  as_unset=false
23702fi
23703
23704
23705# IFS
23706# We need space, tab and new line, in precisely that order.  Quoting is
23707# there to prevent editors from complaining about space-tab.
23708# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23709# splitting by setting IFS to empty value.)
23710as_nl='
23711'
23712IFS=" ""	$as_nl"
23713
23714# Find who we are.  Look in the path if we contain no directory separator.
23715case $0 in
23716  *[\\/]* ) as_myself=$0 ;;
23717  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23718for as_dir in $PATH
23719do
23720  IFS=$as_save_IFS
23721  test -z "$as_dir" && as_dir=.
23722  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23723done
23724IFS=$as_save_IFS
23725
23726     ;;
23727esac
23728# We did not find ourselves, most probably we were run as `sh COMMAND'
23729# in which case we are not to be found in the path.
23730if test "x$as_myself" = x; then
23731  as_myself=$0
23732fi
23733if test ! -f "$as_myself"; then
23734  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23735  { (exit 1); exit 1; }
23736fi
23737
23738# Work around bugs in pre-3.0 UWIN ksh.
23739for as_var in ENV MAIL MAILPATH
23740do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23741done
23742PS1='$ '
23743PS2='> '
23744PS4='+ '
23745
23746# NLS nuisances.
23747for as_var in \
23748  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23749  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23750  LC_TELEPHONE LC_TIME
23751do
23752  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23753    eval $as_var=C; export $as_var
23754  else
23755    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23756  fi
23757done
23758
23759# Required to use basename.
23760if expr a : '\(a\)' >/dev/null 2>&1 &&
23761   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23762  as_expr=expr
23763else
23764  as_expr=false
23765fi
23766
23767if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23768  as_basename=basename
23769else
23770  as_basename=false
23771fi
23772
23773
23774# Name of the executable.
23775as_me=`$as_basename -- "$0" ||
23776$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23777	 X"$0" : 'X\(//\)$' \| \
23778	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23779echo X/"$0" |
23780    sed '/^.*\/\([^/][^/]*\)\/*$/{
23781	    s//\1/
23782	    q
23783	  }
23784	  /^X\/\(\/\/\)$/{
23785	    s//\1/
23786	    q
23787	  }
23788	  /^X\/\(\/\).*/{
23789	    s//\1/
23790	    q
23791	  }
23792	  s/.*/./; q'`
23793
23794# CDPATH.
23795$as_unset CDPATH
23796
23797
23798
23799  as_lineno_1=$LINENO
23800  as_lineno_2=$LINENO
23801  test "x$as_lineno_1" != "x$as_lineno_2" &&
23802  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23803
23804  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23805  # uniformly replaced by the line number.  The first 'sed' inserts a
23806  # line-number line after each line using $LINENO; the second 'sed'
23807  # does the real work.  The second script uses 'N' to pair each
23808  # line-number line with the line containing $LINENO, and appends
23809  # trailing '-' during substitution so that $LINENO is not a special
23810  # case at line end.
23811  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23812  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23813  # E. McMahon (1931-1989) for sed's syntax.  :-)
23814  sed -n '
23815    p
23816    /[$]LINENO/=
23817  ' <$as_myself |
23818    sed '
23819      s/[$]LINENO.*/&-/
23820      t lineno
23821      b
23822      :lineno
23823      N
23824      :loop
23825      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23826      t loop
23827      s/-\n.*//
23828    ' >$as_me.lineno &&
23829  chmod +x "$as_me.lineno" ||
23830    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23831   { (exit 1); exit 1; }; }
23832
23833  # Don't try to exec as it changes $[0], causing all sort of problems
23834  # (the dirname of $[0] is not the place where we might find the
23835  # original and so on.  Autoconf is especially sensitive to this).
23836  . "./$as_me.lineno"
23837  # Exit status is that of the last command.
23838  exit
23839}
23840
23841
23842if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23843  as_dirname=dirname
23844else
23845  as_dirname=false
23846fi
23847
23848ECHO_C= ECHO_N= ECHO_T=
23849case `echo -n x` in
23850-n*)
23851  case `echo 'x\c'` in
23852  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23853  *)   ECHO_C='\c';;
23854  esac;;
23855*)
23856  ECHO_N='-n';;
23857esac
23858
23859if expr a : '\(a\)' >/dev/null 2>&1 &&
23860   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23861  as_expr=expr
23862else
23863  as_expr=false
23864fi
23865
23866rm -f conf$$ conf$$.exe conf$$.file
23867if test -d conf$$.dir; then
23868  rm -f conf$$.dir/conf$$.file
23869else
23870  rm -f conf$$.dir
23871  mkdir conf$$.dir
23872fi
23873echo >conf$$.file
23874if ln -s conf$$.file conf$$ 2>/dev/null; then
23875  as_ln_s='ln -s'
23876  # ... but there are two gotchas:
23877  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23878  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23879  # In both cases, we have to default to `cp -p'.
23880  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23881    as_ln_s='cp -p'
23882elif ln conf$$.file conf$$ 2>/dev/null; then
23883  as_ln_s=ln
23884else
23885  as_ln_s='cp -p'
23886fi
23887rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23888rmdir conf$$.dir 2>/dev/null
23889
23890if mkdir -p . 2>/dev/null; then
23891  as_mkdir_p=:
23892else
23893  test -d ./-p && rmdir ./-p
23894  as_mkdir_p=false
23895fi
23896
23897if test -x / >/dev/null 2>&1; then
23898  as_test_x='test -x'
23899else
23900  if ls -dL / >/dev/null 2>&1; then
23901    as_ls_L_option=L
23902  else
23903    as_ls_L_option=
23904  fi
23905  as_test_x='
23906    eval sh -c '\''
23907      if test -d "$1"; then
23908        test -d "$1/.";
23909      else
23910	case $1 in
23911        -*)set "./$1";;
23912	esac;
23913	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23914	???[sx]*):;;*)false;;esac;fi
23915    '\'' sh
23916  '
23917fi
23918as_executable_p=$as_test_x
23919
23920# Sed expression to map a string onto a valid CPP name.
23921as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23922
23923# Sed expression to map a string onto a valid variable name.
23924as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23925
23926
23927exec 6>&1
23928
23929# Save the log message, to keep $[0] and so on meaningful, and to
23930# report actual input values of CONFIG_FILES etc. instead of their
23931# values after options handling.
23932ac_log="
23933This file was extended by libXaw $as_me 1.0.4, which was
23934generated by GNU Autoconf 2.61.  Invocation command line was
23935
23936  CONFIG_FILES    = $CONFIG_FILES
23937  CONFIG_HEADERS  = $CONFIG_HEADERS
23938  CONFIG_LINKS    = $CONFIG_LINKS
23939  CONFIG_COMMANDS = $CONFIG_COMMANDS
23940  $ $0 $@
23941
23942on `(hostname || uname -n) 2>/dev/null | sed 1q`
23943"
23944
23945_ACEOF
23946
23947cat >>$CONFIG_STATUS <<_ACEOF
23948# Files that config.status was made for.
23949config_files="$ac_config_files"
23950config_headers="$ac_config_headers"
23951config_commands="$ac_config_commands"
23952
23953_ACEOF
23954
23955cat >>$CONFIG_STATUS <<\_ACEOF
23956ac_cs_usage="\
23957\`$as_me' instantiates files from templates according to the
23958current configuration.
23959
23960Usage: $0 [OPTIONS] [FILE]...
23961
23962  -h, --help       print this help, then exit
23963  -V, --version    print version number and configuration settings, then exit
23964  -q, --quiet      do not print progress messages
23965  -d, --debug      don't remove temporary files
23966      --recheck    update $as_me by reconfiguring in the same conditions
23967  --file=FILE[:TEMPLATE]
23968		   instantiate the configuration file FILE
23969  --header=FILE[:TEMPLATE]
23970		   instantiate the configuration header FILE
23971
23972Configuration files:
23973$config_files
23974
23975Configuration headers:
23976$config_headers
23977
23978Configuration commands:
23979$config_commands
23980
23981Report bugs to <bug-autoconf@gnu.org>."
23982
23983_ACEOF
23984cat >>$CONFIG_STATUS <<_ACEOF
23985ac_cs_version="\\
23986libXaw config.status 1.0.4
23987configured by $0, generated by GNU Autoconf 2.61,
23988  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23989
23990Copyright (C) 2006 Free Software Foundation, Inc.
23991This config.status script is free software; the Free Software Foundation
23992gives unlimited permission to copy, distribute and modify it."
23993
23994ac_pwd='$ac_pwd'
23995srcdir='$srcdir'
23996INSTALL='$INSTALL'
23997MKDIR_P='$MKDIR_P'
23998_ACEOF
23999
24000cat >>$CONFIG_STATUS <<\_ACEOF
24001# If no file are specified by the user, then we need to provide default
24002# value.  By we need to know if files were specified by the user.
24003ac_need_defaults=:
24004while test $# != 0
24005do
24006  case $1 in
24007  --*=*)
24008    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24009    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24010    ac_shift=:
24011    ;;
24012  *)
24013    ac_option=$1
24014    ac_optarg=$2
24015    ac_shift=shift
24016    ;;
24017  esac
24018
24019  case $ac_option in
24020  # Handling of the options.
24021  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24022    ac_cs_recheck=: ;;
24023  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24024    echo "$ac_cs_version"; exit ;;
24025  --debug | --debu | --deb | --de | --d | -d )
24026    debug=: ;;
24027  --file | --fil | --fi | --f )
24028    $ac_shift
24029    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24030    ac_need_defaults=false;;
24031  --header | --heade | --head | --hea )
24032    $ac_shift
24033    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24034    ac_need_defaults=false;;
24035  --he | --h)
24036    # Conflict between --help and --header
24037    { echo "$as_me: error: ambiguous option: $1
24038Try \`$0 --help' for more information." >&2
24039   { (exit 1); exit 1; }; };;
24040  --help | --hel | -h )
24041    echo "$ac_cs_usage"; exit ;;
24042  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24043  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24044    ac_cs_silent=: ;;
24045
24046  # This is an error.
24047  -*) { echo "$as_me: error: unrecognized option: $1
24048Try \`$0 --help' for more information." >&2
24049   { (exit 1); exit 1; }; } ;;
24050
24051  *) ac_config_targets="$ac_config_targets $1"
24052     ac_need_defaults=false ;;
24053
24054  esac
24055  shift
24056done
24057
24058ac_configure_extra_args=
24059
24060if $ac_cs_silent; then
24061  exec 6>/dev/null
24062  ac_configure_extra_args="$ac_configure_extra_args --silent"
24063fi
24064
24065_ACEOF
24066cat >>$CONFIG_STATUS <<_ACEOF
24067if \$ac_cs_recheck; then
24068  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24069  CONFIG_SHELL=$SHELL
24070  export CONFIG_SHELL
24071  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24072fi
24073
24074_ACEOF
24075cat >>$CONFIG_STATUS <<\_ACEOF
24076exec 5>>config.log
24077{
24078  echo
24079  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24080## Running $as_me. ##
24081_ASBOX
24082  echo "$ac_log"
24083} >&5
24084
24085_ACEOF
24086cat >>$CONFIG_STATUS <<_ACEOF
24087#
24088# INIT-COMMANDS
24089#
24090AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24091
24092_ACEOF
24093
24094cat >>$CONFIG_STATUS <<\_ACEOF
24095
24096# Handling of arguments.
24097for ac_config_target in $ac_config_targets
24098do
24099  case $ac_config_target in
24100    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24101    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24102    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24103    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24104    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24105    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24106    "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;;
24107    "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;;
24108
24109  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24110echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24111   { (exit 1); exit 1; }; };;
24112  esac
24113done
24114
24115
24116# If the user did not use the arguments to specify the items to instantiate,
24117# then the envvar interface is used.  Set only those that are not.
24118# We use the long form for the default assignment because of an extremely
24119# bizarre bug on SunOS 4.1.3.
24120if $ac_need_defaults; then
24121  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24122  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24123  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24124fi
24125
24126# Have a temporary directory for convenience.  Make it in the build tree
24127# simply because there is no reason against having it here, and in addition,
24128# creating and moving files from /tmp can sometimes cause problems.
24129# Hook for its removal unless debugging.
24130# Note that there is a small window in which the directory will not be cleaned:
24131# after its creation but before its name has been assigned to `$tmp'.
24132$debug ||
24133{
24134  tmp=
24135  trap 'exit_status=$?
24136  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24137' 0
24138  trap '{ (exit 1); exit 1; }' 1 2 13 15
24139}
24140# Create a (secure) tmp directory for tmp files.
24141
24142{
24143  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24144  test -n "$tmp" && test -d "$tmp"
24145}  ||
24146{
24147  tmp=./conf$$-$RANDOM
24148  (umask 077 && mkdir "$tmp")
24149} ||
24150{
24151   echo "$me: cannot create a temporary directory in ." >&2
24152   { (exit 1); exit 1; }
24153}
24154
24155#
24156# Set up the sed scripts for CONFIG_FILES section.
24157#
24158
24159# No need to generate the scripts if there are no CONFIG_FILES.
24160# This happens for instance when ./config.status config.h
24161if test -n "$CONFIG_FILES"; then
24162
24163_ACEOF
24164
24165
24166
24167ac_delim='%!_!# '
24168for ac_last_try in false false false false false :; do
24169  cat >conf$$subs.sed <<_ACEOF
24170SHELL!$SHELL$ac_delim
24171PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24172PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24173PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24174PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24175PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24176PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24177exec_prefix!$exec_prefix$ac_delim
24178prefix!$prefix$ac_delim
24179program_transform_name!$program_transform_name$ac_delim
24180bindir!$bindir$ac_delim
24181sbindir!$sbindir$ac_delim
24182libexecdir!$libexecdir$ac_delim
24183datarootdir!$datarootdir$ac_delim
24184datadir!$datadir$ac_delim
24185sysconfdir!$sysconfdir$ac_delim
24186sharedstatedir!$sharedstatedir$ac_delim
24187localstatedir!$localstatedir$ac_delim
24188includedir!$includedir$ac_delim
24189oldincludedir!$oldincludedir$ac_delim
24190docdir!$docdir$ac_delim
24191infodir!$infodir$ac_delim
24192htmldir!$htmldir$ac_delim
24193dvidir!$dvidir$ac_delim
24194pdfdir!$pdfdir$ac_delim
24195psdir!$psdir$ac_delim
24196libdir!$libdir$ac_delim
24197localedir!$localedir$ac_delim
24198mandir!$mandir$ac_delim
24199DEFS!$DEFS$ac_delim
24200ECHO_C!$ECHO_C$ac_delim
24201ECHO_N!$ECHO_N$ac_delim
24202ECHO_T!$ECHO_T$ac_delim
24203LIBS!$LIBS$ac_delim
24204build_alias!$build_alias$ac_delim
24205host_alias!$host_alias$ac_delim
24206target_alias!$target_alias$ac_delim
24207INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24208INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24209INSTALL_DATA!$INSTALL_DATA$ac_delim
24210am__isrc!$am__isrc$ac_delim
24211CYGPATH_W!$CYGPATH_W$ac_delim
24212PACKAGE!$PACKAGE$ac_delim
24213VERSION!$VERSION$ac_delim
24214ACLOCAL!$ACLOCAL$ac_delim
24215AUTOCONF!$AUTOCONF$ac_delim
24216AUTOMAKE!$AUTOMAKE$ac_delim
24217AUTOHEADER!$AUTOHEADER$ac_delim
24218MAKEINFO!$MAKEINFO$ac_delim
24219install_sh!$install_sh$ac_delim
24220STRIP!$STRIP$ac_delim
24221INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24222mkdir_p!$mkdir_p$ac_delim
24223AWK!$AWK$ac_delim
24224SET_MAKE!$SET_MAKE$ac_delim
24225am__leading_dot!$am__leading_dot$ac_delim
24226AMTAR!$AMTAR$ac_delim
24227am__tar!$am__tar$ac_delim
24228am__untar!$am__untar$ac_delim
24229CC!$CC$ac_delim
24230CFLAGS!$CFLAGS$ac_delim
24231LDFLAGS!$LDFLAGS$ac_delim
24232CPPFLAGS!$CPPFLAGS$ac_delim
24233ac_ct_CC!$ac_ct_CC$ac_delim
24234EXEEXT!$EXEEXT$ac_delim
24235OBJEXT!$OBJEXT$ac_delim
24236DEPDIR!$DEPDIR$ac_delim
24237am__include!$am__include$ac_delim
24238am__quote!$am__quote$ac_delim
24239AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24240AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24241AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24242CCDEPMODE!$CCDEPMODE$ac_delim
24243am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24244am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24245build!$build$ac_delim
24246build_cpu!$build_cpu$ac_delim
24247build_vendor!$build_vendor$ac_delim
24248build_os!$build_os$ac_delim
24249host!$host$ac_delim
24250host_cpu!$host_cpu$ac_delim
24251host_vendor!$host_vendor$ac_delim
24252host_os!$host_os$ac_delim
24253GREP!$GREP$ac_delim
24254EGREP!$EGREP$ac_delim
24255LN_S!$LN_S$ac_delim
24256ECHO!$ECHO$ac_delim
24257AR!$AR$ac_delim
24258RANLIB!$RANLIB$ac_delim
24259CPP!$CPP$ac_delim
24260CXX!$CXX$ac_delim
24261CXXFLAGS!$CXXFLAGS$ac_delim
24262ac_ct_CXX!$ac_ct_CXX$ac_delim
24263CXXDEPMODE!$CXXDEPMODE$ac_delim
24264am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24265am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24266CXXCPP!$CXXCPP$ac_delim
24267_ACEOF
24268
24269  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24270    break
24271  elif $ac_last_try; then
24272    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24273echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24274   { (exit 1); exit 1; }; }
24275  else
24276    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24277  fi
24278done
24279
24280ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24281if test -n "$ac_eof"; then
24282  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24283  ac_eof=`expr $ac_eof + 1`
24284fi
24285
24286cat >>$CONFIG_STATUS <<_ACEOF
24287cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24288/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24289_ACEOF
24290sed '
24291s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24292s/^/s,@/; s/!/@,|#_!!_#|/
24293:n
24294t n
24295s/'"$ac_delim"'$/,g/; t
24296s/$/\\/; p
24297N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24298' >>$CONFIG_STATUS <conf$$subs.sed
24299rm -f conf$$subs.sed
24300cat >>$CONFIG_STATUS <<_ACEOF
24301CEOF$ac_eof
24302_ACEOF
24303
24304
24305ac_delim='%!_!# '
24306for ac_last_try in false false false false false :; do
24307  cat >conf$$subs.sed <<_ACEOF
24308F77!$F77$ac_delim
24309FFLAGS!$FFLAGS$ac_delim
24310ac_ct_F77!$ac_ct_F77$ac_delim
24311LIBTOOL!$LIBTOOL$ac_delim
24312PKG_CONFIG!$PKG_CONFIG$ac_delim
24313PLATFORM_WIN32_TRUE!$PLATFORM_WIN32_TRUE$ac_delim
24314PLATFORM_WIN32_FALSE!$PLATFORM_WIN32_FALSE$ac_delim
24315XAW6_CFLAGS!$XAW6_CFLAGS$ac_delim
24316XAW6_LIBS!$XAW6_LIBS$ac_delim
24317XAW7_CFLAGS!$XAW7_CFLAGS$ac_delim
24318XAW7_LIBS!$XAW7_LIBS$ac_delim
24319XPRINT_CFLAGS!$XPRINT_CFLAGS$ac_delim
24320XPRINT_LIBS!$XPRINT_LIBS$ac_delim
24321XAW8_CFLAGS!$XAW8_CFLAGS$ac_delim
24322XAW8_LIBS!$XAW8_LIBS$ac_delim
24323BUILD_XAW6_TRUE!$BUILD_XAW6_TRUE$ac_delim
24324BUILD_XAW6_FALSE!$BUILD_XAW6_FALSE$ac_delim
24325BUILD_XAW7_TRUE!$BUILD_XAW7_TRUE$ac_delim
24326BUILD_XAW7_FALSE!$BUILD_XAW7_FALSE$ac_delim
24327BUILD_XAW8_TRUE!$BUILD_XAW8_TRUE$ac_delim
24328BUILD_XAW8_FALSE!$BUILD_XAW8_FALSE$ac_delim
24329APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
24330LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
24331FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
24332MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
24333DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
24334ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
24335APP_MAN_DIR!$APP_MAN_DIR$ac_delim
24336LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
24337FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
24338MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
24339DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
24340ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
24341LIBOBJS!$LIBOBJS$ac_delim
24342LTLIBOBJS!$LTLIBOBJS$ac_delim
24343_ACEOF
24344
24345  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
24346    break
24347  elif $ac_last_try; then
24348    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24349echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24350   { (exit 1); exit 1; }; }
24351  else
24352    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24353  fi
24354done
24355
24356ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24357if test -n "$ac_eof"; then
24358  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24359  ac_eof=`expr $ac_eof + 1`
24360fi
24361
24362cat >>$CONFIG_STATUS <<_ACEOF
24363cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24364/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24365_ACEOF
24366sed '
24367s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24368s/^/s,@/; s/!/@,|#_!!_#|/
24369:n
24370t n
24371s/'"$ac_delim"'$/,g/; t
24372s/$/\\/; p
24373N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24374' >>$CONFIG_STATUS <conf$$subs.sed
24375rm -f conf$$subs.sed
24376cat >>$CONFIG_STATUS <<_ACEOF
24377:end
24378s/|#_!!_#|//g
24379CEOF$ac_eof
24380_ACEOF
24381
24382
24383# VPATH may cause trouble with some makes, so we remove $(srcdir),
24384# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24385# trailing colons and then remove the whole line if VPATH becomes empty
24386# (actually we leave an empty line to preserve line numbers).
24387if test "x$srcdir" = x.; then
24388  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
24389s/:*\$(srcdir):*/:/
24390s/:*\${srcdir}:*/:/
24391s/:*@srcdir@:*/:/
24392s/^\([^=]*=[	 ]*\):*/\1/
24393s/:*$//
24394s/^[^=]*=[	 ]*$//
24395}'
24396fi
24397
24398cat >>$CONFIG_STATUS <<\_ACEOF
24399fi # test -n "$CONFIG_FILES"
24400
24401
24402for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24403do
24404  case $ac_tag in
24405  :[FHLC]) ac_mode=$ac_tag; continue;;
24406  esac
24407  case $ac_mode$ac_tag in
24408  :[FHL]*:*);;
24409  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24410echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24411   { (exit 1); exit 1; }; };;
24412  :[FH]-) ac_tag=-:-;;
24413  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24414  esac
24415  ac_save_IFS=$IFS
24416  IFS=:
24417  set x $ac_tag
24418  IFS=$ac_save_IFS
24419  shift
24420  ac_file=$1
24421  shift
24422
24423  case $ac_mode in
24424  :L) ac_source=$1;;
24425  :[FH])
24426    ac_file_inputs=
24427    for ac_f
24428    do
24429      case $ac_f in
24430      -) ac_f="$tmp/stdin";;
24431      *) # Look for the file first in the build tree, then in the source tree
24432	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24433	 # because $ac_f cannot contain `:'.
24434	 test -f "$ac_f" ||
24435	   case $ac_f in
24436	   [\\/$]*) false;;
24437	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24438	   esac ||
24439	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24440echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24441   { (exit 1); exit 1; }; };;
24442      esac
24443      ac_file_inputs="$ac_file_inputs $ac_f"
24444    done
24445
24446    # Let's still pretend it is `configure' which instantiates (i.e., don't
24447    # use $as_me), people would be surprised to read:
24448    #    /* config.h.  Generated by config.status.  */
24449    configure_input="Generated from "`IFS=:
24450	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24451    if test x"$ac_file" != x-; then
24452      configure_input="$ac_file.  $configure_input"
24453      { echo "$as_me:$LINENO: creating $ac_file" >&5
24454echo "$as_me: creating $ac_file" >&6;}
24455    fi
24456
24457    case $ac_tag in
24458    *:-:* | *:-) cat >"$tmp/stdin";;
24459    esac
24460    ;;
24461  esac
24462
24463  ac_dir=`$as_dirname -- "$ac_file" ||
24464$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24465	 X"$ac_file" : 'X\(//\)[^/]' \| \
24466	 X"$ac_file" : 'X\(//\)$' \| \
24467	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24468echo X"$ac_file" |
24469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24470	    s//\1/
24471	    q
24472	  }
24473	  /^X\(\/\/\)[^/].*/{
24474	    s//\1/
24475	    q
24476	  }
24477	  /^X\(\/\/\)$/{
24478	    s//\1/
24479	    q
24480	  }
24481	  /^X\(\/\).*/{
24482	    s//\1/
24483	    q
24484	  }
24485	  s/.*/./; q'`
24486  { as_dir="$ac_dir"
24487  case $as_dir in #(
24488  -*) as_dir=./$as_dir;;
24489  esac
24490  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24491    as_dirs=
24492    while :; do
24493      case $as_dir in #(
24494      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24495      *) as_qdir=$as_dir;;
24496      esac
24497      as_dirs="'$as_qdir' $as_dirs"
24498      as_dir=`$as_dirname -- "$as_dir" ||
24499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24500	 X"$as_dir" : 'X\(//\)[^/]' \| \
24501	 X"$as_dir" : 'X\(//\)$' \| \
24502	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24503echo X"$as_dir" |
24504    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24505	    s//\1/
24506	    q
24507	  }
24508	  /^X\(\/\/\)[^/].*/{
24509	    s//\1/
24510	    q
24511	  }
24512	  /^X\(\/\/\)$/{
24513	    s//\1/
24514	    q
24515	  }
24516	  /^X\(\/\).*/{
24517	    s//\1/
24518	    q
24519	  }
24520	  s/.*/./; q'`
24521      test -d "$as_dir" && break
24522    done
24523    test -z "$as_dirs" || eval "mkdir $as_dirs"
24524  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24525echo "$as_me: error: cannot create directory $as_dir" >&2;}
24526   { (exit 1); exit 1; }; }; }
24527  ac_builddir=.
24528
24529case "$ac_dir" in
24530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24531*)
24532  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24533  # A ".." for each directory in $ac_dir_suffix.
24534  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24535  case $ac_top_builddir_sub in
24536  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24537  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24538  esac ;;
24539esac
24540ac_abs_top_builddir=$ac_pwd
24541ac_abs_builddir=$ac_pwd$ac_dir_suffix
24542# for backward compatibility:
24543ac_top_builddir=$ac_top_build_prefix
24544
24545case $srcdir in
24546  .)  # We are building in place.
24547    ac_srcdir=.
24548    ac_top_srcdir=$ac_top_builddir_sub
24549    ac_abs_top_srcdir=$ac_pwd ;;
24550  [\\/]* | ?:[\\/]* )  # Absolute name.
24551    ac_srcdir=$srcdir$ac_dir_suffix;
24552    ac_top_srcdir=$srcdir
24553    ac_abs_top_srcdir=$srcdir ;;
24554  *) # Relative name.
24555    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24556    ac_top_srcdir=$ac_top_build_prefix$srcdir
24557    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24558esac
24559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24560
24561
24562  case $ac_mode in
24563  :F)
24564  #
24565  # CONFIG_FILE
24566  #
24567
24568  case $INSTALL in
24569  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24570  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24571  esac
24572  ac_MKDIR_P=$MKDIR_P
24573  case $MKDIR_P in
24574  [\\/$]* | ?:[\\/]* ) ;;
24575  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24576  esac
24577_ACEOF
24578
24579cat >>$CONFIG_STATUS <<\_ACEOF
24580# If the template does not know about datarootdir, expand it.
24581# FIXME: This hack should be removed a few years after 2.60.
24582ac_datarootdir_hack=; ac_datarootdir_seen=
24583
24584case `sed -n '/datarootdir/ {
24585  p
24586  q
24587}
24588/@datadir@/p
24589/@docdir@/p
24590/@infodir@/p
24591/@localedir@/p
24592/@mandir@/p
24593' $ac_file_inputs` in
24594*datarootdir*) ac_datarootdir_seen=yes;;
24595*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24596  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24597echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24598_ACEOF
24599cat >>$CONFIG_STATUS <<_ACEOF
24600  ac_datarootdir_hack='
24601  s&@datadir@&$datadir&g
24602  s&@docdir@&$docdir&g
24603  s&@infodir@&$infodir&g
24604  s&@localedir@&$localedir&g
24605  s&@mandir@&$mandir&g
24606    s&\\\${datarootdir}&$datarootdir&g' ;;
24607esac
24608_ACEOF
24609
24610# Neutralize VPATH when `$srcdir' = `.'.
24611# Shell code in configure.ac might set extrasub.
24612# FIXME: do we really want to maintain this feature?
24613cat >>$CONFIG_STATUS <<_ACEOF
24614  sed "$ac_vpsub
24615$extrasub
24616_ACEOF
24617cat >>$CONFIG_STATUS <<\_ACEOF
24618:t
24619/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24620s&@configure_input@&$configure_input&;t t
24621s&@top_builddir@&$ac_top_builddir_sub&;t t
24622s&@srcdir@&$ac_srcdir&;t t
24623s&@abs_srcdir@&$ac_abs_srcdir&;t t
24624s&@top_srcdir@&$ac_top_srcdir&;t t
24625s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24626s&@builddir@&$ac_builddir&;t t
24627s&@abs_builddir@&$ac_abs_builddir&;t t
24628s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24629s&@INSTALL@&$ac_INSTALL&;t t
24630s&@MKDIR_P@&$ac_MKDIR_P&;t t
24631$ac_datarootdir_hack
24632" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24633
24634test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24635  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24636  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24637  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24638which seems to be undefined.  Please make sure it is defined." >&5
24639echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24640which seems to be undefined.  Please make sure it is defined." >&2;}
24641
24642  rm -f "$tmp/stdin"
24643  case $ac_file in
24644  -) cat "$tmp/out"; rm -f "$tmp/out";;
24645  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24646  esac
24647 ;;
24648  :H)
24649  #
24650  # CONFIG_HEADER
24651  #
24652_ACEOF
24653
24654# Transform confdefs.h into a sed script `conftest.defines', that
24655# substitutes the proper values into config.h.in to produce config.h.
24656rm -f conftest.defines conftest.tail
24657# First, append a space to every undef/define line, to ease matching.
24658echo 's/$/ /' >conftest.defines
24659# Then, protect against being on the right side of a sed subst, or in
24660# an unquoted here document, in config.status.  If some macros were
24661# called several times there might be several #defines for the same
24662# symbol, which is useless.  But do not sort them, since the last
24663# AC_DEFINE must be honored.
24664ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24665# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24666# NAME is the cpp macro being defined, VALUE is the value it is being given.
24667# PARAMS is the parameter list in the macro definition--in most cases, it's
24668# just an empty string.
24669ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
24670ac_dB='\\)[	 (].*,\\1define\\2'
24671ac_dC=' '
24672ac_dD=' ,'
24673
24674uniq confdefs.h |
24675  sed -n '
24676	t rset
24677	:rset
24678	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
24679	t ok
24680	d
24681	:ok
24682	s/[\\&,]/\\&/g
24683	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24684	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24685  ' >>conftest.defines
24686
24687# Remove the space that was appended to ease matching.
24688# Then replace #undef with comments.  This is necessary, for
24689# example, in the case of _POSIX_SOURCE, which is predefined and required
24690# on some systems where configure will not decide to define it.
24691# (The regexp can be short, since the line contains either #define or #undef.)
24692echo 's/ $//
24693s,^[	 #]*u.*,/* & */,' >>conftest.defines
24694
24695# Break up conftest.defines:
24696ac_max_sed_lines=50
24697
24698# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24699# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24700# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24701# et cetera.
24702ac_in='$ac_file_inputs'
24703ac_out='"$tmp/out1"'
24704ac_nxt='"$tmp/out2"'
24705
24706while :
24707do
24708  # Write a here document:
24709    cat >>$CONFIG_STATUS <<_ACEOF
24710    # First, check the format of the line:
24711    cat >"\$tmp/defines.sed" <<\\CEOF
24712/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
24713/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
24714b
24715:def
24716_ACEOF
24717  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24718  echo 'CEOF
24719    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24720  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24721  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24722  grep . conftest.tail >/dev/null || break
24723  rm -f conftest.defines
24724  mv conftest.tail conftest.defines
24725done
24726rm -f conftest.defines conftest.tail
24727
24728echo "ac_result=$ac_in" >>$CONFIG_STATUS
24729cat >>$CONFIG_STATUS <<\_ACEOF
24730  if test x"$ac_file" != x-; then
24731    echo "/* $configure_input  */" >"$tmp/config.h"
24732    cat "$ac_result" >>"$tmp/config.h"
24733    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24734      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24735echo "$as_me: $ac_file is unchanged" >&6;}
24736    else
24737      rm -f $ac_file
24738      mv "$tmp/config.h" $ac_file
24739    fi
24740  else
24741    echo "/* $configure_input  */"
24742    cat "$ac_result"
24743  fi
24744  rm -f "$tmp/out12"
24745# Compute $ac_file's index in $config_headers.
24746_am_stamp_count=1
24747for _am_header in $config_headers :; do
24748  case $_am_header in
24749    $ac_file | $ac_file:* )
24750      break ;;
24751    * )
24752      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24753  esac
24754done
24755echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24756$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24757	 X$ac_file : 'X\(//\)[^/]' \| \
24758	 X$ac_file : 'X\(//\)$' \| \
24759	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24760echo X$ac_file |
24761    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24762	    s//\1/
24763	    q
24764	  }
24765	  /^X\(\/\/\)[^/].*/{
24766	    s//\1/
24767	    q
24768	  }
24769	  /^X\(\/\/\)$/{
24770	    s//\1/
24771	    q
24772	  }
24773	  /^X\(\/\).*/{
24774	    s//\1/
24775	    q
24776	  }
24777	  s/.*/./; q'`/stamp-h$_am_stamp_count
24778 ;;
24779
24780  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24781echo "$as_me: executing $ac_file commands" >&6;}
24782 ;;
24783  esac
24784
24785
24786  case $ac_file$ac_mode in
24787    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24788  # Strip MF so we end up with the name of the file.
24789  mf=`echo "$mf" | sed -e 's/:.*$//'`
24790  # Check whether this is an Automake generated Makefile or not.
24791  # We used to match only the files named `Makefile.in', but
24792  # some people rename them; so instead we look at the file content.
24793  # Grep'ing the first line is not enough: some people post-process
24794  # each Makefile.in and add a new line on top of each file to say so.
24795  # Grep'ing the whole file is not good either: AIX grep has a line
24796  # limit of 2048, but all sed's we know have understand at least 4000.
24797  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24798    dirpart=`$as_dirname -- "$mf" ||
24799$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24800	 X"$mf" : 'X\(//\)[^/]' \| \
24801	 X"$mf" : 'X\(//\)$' \| \
24802	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24803echo X"$mf" |
24804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24805	    s//\1/
24806	    q
24807	  }
24808	  /^X\(\/\/\)[^/].*/{
24809	    s//\1/
24810	    q
24811	  }
24812	  /^X\(\/\/\)$/{
24813	    s//\1/
24814	    q
24815	  }
24816	  /^X\(\/\).*/{
24817	    s//\1/
24818	    q
24819	  }
24820	  s/.*/./; q'`
24821  else
24822    continue
24823  fi
24824  # Extract the definition of DEPDIR, am__include, and am__quote
24825  # from the Makefile without running `make'.
24826  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24827  test -z "$DEPDIR" && continue
24828  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24829  test -z "am__include" && continue
24830  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24831  # When using ansi2knr, U may be empty or an underscore; expand it
24832  U=`sed -n 's/^U = //p' < "$mf"`
24833  # Find all dependency output files, they are included files with
24834  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24835  # simplest approach to changing $(DEPDIR) to its actual value in the
24836  # expansion.
24837  for file in `sed -n "
24838    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24839       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24840    # Make sure the directory exists.
24841    test -f "$dirpart/$file" && continue
24842    fdir=`$as_dirname -- "$file" ||
24843$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24844	 X"$file" : 'X\(//\)[^/]' \| \
24845	 X"$file" : 'X\(//\)$' \| \
24846	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24847echo X"$file" |
24848    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24849	    s//\1/
24850	    q
24851	  }
24852	  /^X\(\/\/\)[^/].*/{
24853	    s//\1/
24854	    q
24855	  }
24856	  /^X\(\/\/\)$/{
24857	    s//\1/
24858	    q
24859	  }
24860	  /^X\(\/\).*/{
24861	    s//\1/
24862	    q
24863	  }
24864	  s/.*/./; q'`
24865    { as_dir=$dirpart/$fdir
24866  case $as_dir in #(
24867  -*) as_dir=./$as_dir;;
24868  esac
24869  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24870    as_dirs=
24871    while :; do
24872      case $as_dir in #(
24873      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24874      *) as_qdir=$as_dir;;
24875      esac
24876      as_dirs="'$as_qdir' $as_dirs"
24877      as_dir=`$as_dirname -- "$as_dir" ||
24878$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24879	 X"$as_dir" : 'X\(//\)[^/]' \| \
24880	 X"$as_dir" : 'X\(//\)$' \| \
24881	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24882echo X"$as_dir" |
24883    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24884	    s//\1/
24885	    q
24886	  }
24887	  /^X\(\/\/\)[^/].*/{
24888	    s//\1/
24889	    q
24890	  }
24891	  /^X\(\/\/\)$/{
24892	    s//\1/
24893	    q
24894	  }
24895	  /^X\(\/\).*/{
24896	    s//\1/
24897	    q
24898	  }
24899	  s/.*/./; q'`
24900      test -d "$as_dir" && break
24901    done
24902    test -z "$as_dirs" || eval "mkdir $as_dirs"
24903  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24904echo "$as_me: error: cannot create directory $as_dir" >&2;}
24905   { (exit 1); exit 1; }; }; }
24906    # echo "creating $dirpart/$file"
24907    echo '# dummy' > "$dirpart/$file"
24908  done
24909done
24910 ;;
24911
24912  esac
24913done # for ac_tag
24914
24915
24916{ (exit 0); exit 0; }
24917_ACEOF
24918chmod +x $CONFIG_STATUS
24919ac_clean_files=$ac_clean_files_save
24920
24921
24922# configure is writing to config.log, and then calls config.status.
24923# config.status does its own redirection, appending to config.log.
24924# Unfortunately, on DOS this fails, as config.log is still kept open
24925# by configure, so config.status won't be able to write to it; its
24926# output is simply discarded.  So we exec the FD to /dev/null,
24927# effectively closing config.log, so it can be properly (re)opened and
24928# appended to by config.status.  When coming back to configure, we
24929# need to make the FD available again.
24930if test "$no_create" != yes; then
24931  ac_cs_success=:
24932  ac_config_status_args=
24933  test "$silent" = yes &&
24934    ac_config_status_args="$ac_config_status_args --quiet"
24935  exec 5>/dev/null
24936  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24937  exec 5>>config.log
24938  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24939  # would make configure fail if this is the last instruction.
24940  $ac_cs_success || { (exit 1); exit 1; }
24941fi
24942
24943fi
24944
24945if test "x$build_v8" = xyes; then
24946   ac_config_files="$ac_config_files xaw8.pc"
24947
24948cat >confcache <<\_ACEOF
24949# This file is a shell script that caches the results of configure
24950# tests run on this system so they can be shared between configure
24951# scripts and configure runs, see configure's option --config-cache.
24952# It is not useful on other systems.  If it contains results you don't
24953# want to keep, you may remove or edit it.
24954#
24955# config.status only pays attention to the cache file if you give it
24956# the --recheck option to rerun configure.
24957#
24958# `ac_cv_env_foo' variables (set or unset) will be overridden when
24959# loading this file, other *unset* `ac_cv_foo' will be assigned the
24960# following values.
24961
24962_ACEOF
24963
24964# The following way of writing the cache mishandles newlines in values,
24965# but we know of no workaround that is simple, portable, and efficient.
24966# So, we kill variables containing newlines.
24967# Ultrix sh set writes to stderr and can't be redirected directly,
24968# and sets the high bit in the cache file unless we assign to the vars.
24969(
24970  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24971    eval ac_val=\$$ac_var
24972    case $ac_val in #(
24973    *${as_nl}*)
24974      case $ac_var in #(
24975      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24976echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24977      esac
24978      case $ac_var in #(
24979      _ | IFS | as_nl) ;; #(
24980      *) $as_unset $ac_var ;;
24981      esac ;;
24982    esac
24983  done
24984
24985  (set) 2>&1 |
24986    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24987    *${as_nl}ac_space=\ *)
24988      # `set' does not quote correctly, so add quotes (double-quote
24989      # substitution turns \\\\ into \\, and sed turns \\ into \).
24990      sed -n \
24991	"s/'/'\\\\''/g;
24992	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24993      ;; #(
24994    *)
24995      # `set' quotes correctly as required by POSIX, so do not add quotes.
24996      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24997      ;;
24998    esac |
24999    sort
25000) |
25001  sed '
25002     /^ac_cv_env_/b end
25003     t clear
25004     :clear
25005     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25006     t end
25007     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25008     :end' >>confcache
25009if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25010  if test -w "$cache_file"; then
25011    test "x$cache_file" != "x/dev/null" &&
25012      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25013echo "$as_me: updating cache $cache_file" >&6;}
25014    cat confcache >$cache_file
25015  else
25016    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25017echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25018  fi
25019fi
25020rm -f confcache
25021
25022test "x$prefix" = xNONE && prefix=$ac_default_prefix
25023# Let make expand exec_prefix.
25024test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25025
25026DEFS=-DHAVE_CONFIG_H
25027
25028ac_libobjs=
25029ac_ltlibobjs=
25030for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25031  # 1. Remove the extension, and $U if already installed.
25032  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25033  ac_i=`echo "$ac_i" | sed "$ac_script"`
25034  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25035  #    will be set to the directory where LIBOBJS objects are built.
25036  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25037  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25038done
25039LIBOBJS=$ac_libobjs
25040
25041LTLIBOBJS=$ac_ltlibobjs
25042
25043
25044if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25045  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25046Usually this means the macro was only invoked conditionally." >&5
25047echo "$as_me: error: conditional \"AMDEP\" was never defined.
25048Usually this means the macro was only invoked conditionally." >&2;}
25049   { (exit 1); exit 1; }; }
25050fi
25051if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25052  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25053Usually this means the macro was only invoked conditionally." >&5
25054echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25055Usually this means the macro was only invoked conditionally." >&2;}
25056   { (exit 1); exit 1; }; }
25057fi
25058if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25059  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25060Usually this means the macro was only invoked conditionally." >&5
25061echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25062Usually this means the macro was only invoked conditionally." >&2;}
25063   { (exit 1); exit 1; }; }
25064fi
25065if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
25066  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
25067Usually this means the macro was only invoked conditionally." >&5
25068echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
25069Usually this means the macro was only invoked conditionally." >&2;}
25070   { (exit 1); exit 1; }; }
25071fi
25072if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then
25073  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW6\" was never defined.
25074Usually this means the macro was only invoked conditionally." >&5
25075echo "$as_me: error: conditional \"BUILD_XAW6\" was never defined.
25076Usually this means the macro was only invoked conditionally." >&2;}
25077   { (exit 1); exit 1; }; }
25078fi
25079if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
25080  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW7\" was never defined.
25081Usually this means the macro was only invoked conditionally." >&5
25082echo "$as_me: error: conditional \"BUILD_XAW7\" was never defined.
25083Usually this means the macro was only invoked conditionally." >&2;}
25084   { (exit 1); exit 1; }; }
25085fi
25086if test -z "${BUILD_XAW8_TRUE}" && test -z "${BUILD_XAW8_FALSE}"; then
25087  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XAW8\" was never defined.
25088Usually this means the macro was only invoked conditionally." >&5
25089echo "$as_me: error: conditional \"BUILD_XAW8\" was never defined.
25090Usually this means the macro was only invoked conditionally." >&2;}
25091   { (exit 1); exit 1; }; }
25092fi
25093
25094: ${CONFIG_STATUS=./config.status}
25095ac_clean_files_save=$ac_clean_files
25096ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25097{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25098echo "$as_me: creating $CONFIG_STATUS" >&6;}
25099cat >$CONFIG_STATUS <<_ACEOF
25100#! $SHELL
25101# Generated by $as_me.
25102# Run this file to recreate the current configuration.
25103# Compiler output produced by configure, useful for debugging
25104# configure, is in config.log if it exists.
25105
25106debug=false
25107ac_cs_recheck=false
25108ac_cs_silent=false
25109SHELL=\${CONFIG_SHELL-$SHELL}
25110_ACEOF
25111
25112cat >>$CONFIG_STATUS <<\_ACEOF
25113## --------------------- ##
25114## M4sh Initialization.  ##
25115## --------------------- ##
25116
25117# Be more Bourne compatible
25118DUALCASE=1; export DUALCASE # for MKS sh
25119if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25120  emulate sh
25121  NULLCMD=:
25122  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25123  # is contrary to our usage.  Disable this feature.
25124  alias -g '${1+"$@"}'='"$@"'
25125  setopt NO_GLOB_SUBST
25126else
25127  case `(set -o) 2>/dev/null` in
25128  *posix*) set -o posix ;;
25129esac
25130
25131fi
25132
25133
25134
25135
25136# PATH needs CR
25137# Avoid depending upon Character Ranges.
25138as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25139as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25140as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25141as_cr_digits='0123456789'
25142as_cr_alnum=$as_cr_Letters$as_cr_digits
25143
25144# The user is always right.
25145if test "${PATH_SEPARATOR+set}" != set; then
25146  echo "#! /bin/sh" >conf$$.sh
25147  echo  "exit 0"   >>conf$$.sh
25148  chmod +x conf$$.sh
25149  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25150    PATH_SEPARATOR=';'
25151  else
25152    PATH_SEPARATOR=:
25153  fi
25154  rm -f conf$$.sh
25155fi
25156
25157# Support unset when possible.
25158if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25159  as_unset=unset
25160else
25161  as_unset=false
25162fi
25163
25164
25165# IFS
25166# We need space, tab and new line, in precisely that order.  Quoting is
25167# there to prevent editors from complaining about space-tab.
25168# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25169# splitting by setting IFS to empty value.)
25170as_nl='
25171'
25172IFS=" ""	$as_nl"
25173
25174# Find who we are.  Look in the path if we contain no directory separator.
25175case $0 in
25176  *[\\/]* ) as_myself=$0 ;;
25177  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25178for as_dir in $PATH
25179do
25180  IFS=$as_save_IFS
25181  test -z "$as_dir" && as_dir=.
25182  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25183done
25184IFS=$as_save_IFS
25185
25186     ;;
25187esac
25188# We did not find ourselves, most probably we were run as `sh COMMAND'
25189# in which case we are not to be found in the path.
25190if test "x$as_myself" = x; then
25191  as_myself=$0
25192fi
25193if test ! -f "$as_myself"; then
25194  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25195  { (exit 1); exit 1; }
25196fi
25197
25198# Work around bugs in pre-3.0 UWIN ksh.
25199for as_var in ENV MAIL MAILPATH
25200do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25201done
25202PS1='$ '
25203PS2='> '
25204PS4='+ '
25205
25206# NLS nuisances.
25207for as_var in \
25208  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25209  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25210  LC_TELEPHONE LC_TIME
25211do
25212  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25213    eval $as_var=C; export $as_var
25214  else
25215    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25216  fi
25217done
25218
25219# Required to use basename.
25220if expr a : '\(a\)' >/dev/null 2>&1 &&
25221   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25222  as_expr=expr
25223else
25224  as_expr=false
25225fi
25226
25227if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25228  as_basename=basename
25229else
25230  as_basename=false
25231fi
25232
25233
25234# Name of the executable.
25235as_me=`$as_basename -- "$0" ||
25236$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25237	 X"$0" : 'X\(//\)$' \| \
25238	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25239echo X/"$0" |
25240    sed '/^.*\/\([^/][^/]*\)\/*$/{
25241	    s//\1/
25242	    q
25243	  }
25244	  /^X\/\(\/\/\)$/{
25245	    s//\1/
25246	    q
25247	  }
25248	  /^X\/\(\/\).*/{
25249	    s//\1/
25250	    q
25251	  }
25252	  s/.*/./; q'`
25253
25254# CDPATH.
25255$as_unset CDPATH
25256
25257
25258
25259  as_lineno_1=$LINENO
25260  as_lineno_2=$LINENO
25261  test "x$as_lineno_1" != "x$as_lineno_2" &&
25262  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25263
25264  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25265  # uniformly replaced by the line number.  The first 'sed' inserts a
25266  # line-number line after each line using $LINENO; the second 'sed'
25267  # does the real work.  The second script uses 'N' to pair each
25268  # line-number line with the line containing $LINENO, and appends
25269  # trailing '-' during substitution so that $LINENO is not a special
25270  # case at line end.
25271  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25272  # scripts with optimization help from Paolo Bonzini.  Blame Lee
25273  # E. McMahon (1931-1989) for sed's syntax.  :-)
25274  sed -n '
25275    p
25276    /[$]LINENO/=
25277  ' <$as_myself |
25278    sed '
25279      s/[$]LINENO.*/&-/
25280      t lineno
25281      b
25282      :lineno
25283      N
25284      :loop
25285      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25286      t loop
25287      s/-\n.*//
25288    ' >$as_me.lineno &&
25289  chmod +x "$as_me.lineno" ||
25290    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25291   { (exit 1); exit 1; }; }
25292
25293  # Don't try to exec as it changes $[0], causing all sort of problems
25294  # (the dirname of $[0] is not the place where we might find the
25295  # original and so on.  Autoconf is especially sensitive to this).
25296  . "./$as_me.lineno"
25297  # Exit status is that of the last command.
25298  exit
25299}
25300
25301
25302if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25303  as_dirname=dirname
25304else
25305  as_dirname=false
25306fi
25307
25308ECHO_C= ECHO_N= ECHO_T=
25309case `echo -n x` in
25310-n*)
25311  case `echo 'x\c'` in
25312  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25313  *)   ECHO_C='\c';;
25314  esac;;
25315*)
25316  ECHO_N='-n';;
25317esac
25318
25319if expr a : '\(a\)' >/dev/null 2>&1 &&
25320   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25321  as_expr=expr
25322else
25323  as_expr=false
25324fi
25325
25326rm -f conf$$ conf$$.exe conf$$.file
25327if test -d conf$$.dir; then
25328  rm -f conf$$.dir/conf$$.file
25329else
25330  rm -f conf$$.dir
25331  mkdir conf$$.dir
25332fi
25333echo >conf$$.file
25334if ln -s conf$$.file conf$$ 2>/dev/null; then
25335  as_ln_s='ln -s'
25336  # ... but there are two gotchas:
25337  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25338  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25339  # In both cases, we have to default to `cp -p'.
25340  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25341    as_ln_s='cp -p'
25342elif ln conf$$.file conf$$ 2>/dev/null; then
25343  as_ln_s=ln
25344else
25345  as_ln_s='cp -p'
25346fi
25347rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25348rmdir conf$$.dir 2>/dev/null
25349
25350if mkdir -p . 2>/dev/null; then
25351  as_mkdir_p=:
25352else
25353  test -d ./-p && rmdir ./-p
25354  as_mkdir_p=false
25355fi
25356
25357if test -x / >/dev/null 2>&1; then
25358  as_test_x='test -x'
25359else
25360  if ls -dL / >/dev/null 2>&1; then
25361    as_ls_L_option=L
25362  else
25363    as_ls_L_option=
25364  fi
25365  as_test_x='
25366    eval sh -c '\''
25367      if test -d "$1"; then
25368        test -d "$1/.";
25369      else
25370	case $1 in
25371        -*)set "./$1";;
25372	esac;
25373	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25374	???[sx]*):;;*)false;;esac;fi
25375    '\'' sh
25376  '
25377fi
25378as_executable_p=$as_test_x
25379
25380# Sed expression to map a string onto a valid CPP name.
25381as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25382
25383# Sed expression to map a string onto a valid variable name.
25384as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25385
25386
25387exec 6>&1
25388
25389# Save the log message, to keep $[0] and so on meaningful, and to
25390# report actual input values of CONFIG_FILES etc. instead of their
25391# values after options handling.
25392ac_log="
25393This file was extended by libXaw $as_me 1.0.4, which was
25394generated by GNU Autoconf 2.61.  Invocation command line was
25395
25396  CONFIG_FILES    = $CONFIG_FILES
25397  CONFIG_HEADERS  = $CONFIG_HEADERS
25398  CONFIG_LINKS    = $CONFIG_LINKS
25399  CONFIG_COMMANDS = $CONFIG_COMMANDS
25400  $ $0 $@
25401
25402on `(hostname || uname -n) 2>/dev/null | sed 1q`
25403"
25404
25405_ACEOF
25406
25407cat >>$CONFIG_STATUS <<_ACEOF
25408# Files that config.status was made for.
25409config_files="$ac_config_files"
25410config_headers="$ac_config_headers"
25411config_commands="$ac_config_commands"
25412
25413_ACEOF
25414
25415cat >>$CONFIG_STATUS <<\_ACEOF
25416ac_cs_usage="\
25417\`$as_me' instantiates files from templates according to the
25418current configuration.
25419
25420Usage: $0 [OPTIONS] [FILE]...
25421
25422  -h, --help       print this help, then exit
25423  -V, --version    print version number and configuration settings, then exit
25424  -q, --quiet      do not print progress messages
25425  -d, --debug      don't remove temporary files
25426      --recheck    update $as_me by reconfiguring in the same conditions
25427  --file=FILE[:TEMPLATE]
25428		   instantiate the configuration file FILE
25429  --header=FILE[:TEMPLATE]
25430		   instantiate the configuration header FILE
25431
25432Configuration files:
25433$config_files
25434
25435Configuration headers:
25436$config_headers
25437
25438Configuration commands:
25439$config_commands
25440
25441Report bugs to <bug-autoconf@gnu.org>."
25442
25443_ACEOF
25444cat >>$CONFIG_STATUS <<_ACEOF
25445ac_cs_version="\\
25446libXaw config.status 1.0.4
25447configured by $0, generated by GNU Autoconf 2.61,
25448  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25449
25450Copyright (C) 2006 Free Software Foundation, Inc.
25451This config.status script is free software; the Free Software Foundation
25452gives unlimited permission to copy, distribute and modify it."
25453
25454ac_pwd='$ac_pwd'
25455srcdir='$srcdir'
25456INSTALL='$INSTALL'
25457MKDIR_P='$MKDIR_P'
25458_ACEOF
25459
25460cat >>$CONFIG_STATUS <<\_ACEOF
25461# If no file are specified by the user, then we need to provide default
25462# value.  By we need to know if files were specified by the user.
25463ac_need_defaults=:
25464while test $# != 0
25465do
25466  case $1 in
25467  --*=*)
25468    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25469    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25470    ac_shift=:
25471    ;;
25472  *)
25473    ac_option=$1
25474    ac_optarg=$2
25475    ac_shift=shift
25476    ;;
25477  esac
25478
25479  case $ac_option in
25480  # Handling of the options.
25481  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25482    ac_cs_recheck=: ;;
25483  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25484    echo "$ac_cs_version"; exit ;;
25485  --debug | --debu | --deb | --de | --d | -d )
25486    debug=: ;;
25487  --file | --fil | --fi | --f )
25488    $ac_shift
25489    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25490    ac_need_defaults=false;;
25491  --header | --heade | --head | --hea )
25492    $ac_shift
25493    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25494    ac_need_defaults=false;;
25495  --he | --h)
25496    # Conflict between --help and --header
25497    { echo "$as_me: error: ambiguous option: $1
25498Try \`$0 --help' for more information." >&2
25499   { (exit 1); exit 1; }; };;
25500  --help | --hel | -h )
25501    echo "$ac_cs_usage"; exit ;;
25502  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25503  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25504    ac_cs_silent=: ;;
25505
25506  # This is an error.
25507  -*) { echo "$as_me: error: unrecognized option: $1
25508Try \`$0 --help' for more information." >&2
25509   { (exit 1); exit 1; }; } ;;
25510
25511  *) ac_config_targets="$ac_config_targets $1"
25512     ac_need_defaults=false ;;
25513
25514  esac
25515  shift
25516done
25517
25518ac_configure_extra_args=
25519
25520if $ac_cs_silent; then
25521  exec 6>/dev/null
25522  ac_configure_extra_args="$ac_configure_extra_args --silent"
25523fi
25524
25525_ACEOF
25526cat >>$CONFIG_STATUS <<_ACEOF
25527if \$ac_cs_recheck; then
25528  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25529  CONFIG_SHELL=$SHELL
25530  export CONFIG_SHELL
25531  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25532fi
25533
25534_ACEOF
25535cat >>$CONFIG_STATUS <<\_ACEOF
25536exec 5>>config.log
25537{
25538  echo
25539  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25540## Running $as_me. ##
25541_ASBOX
25542  echo "$ac_log"
25543} >&5
25544
25545_ACEOF
25546cat >>$CONFIG_STATUS <<_ACEOF
25547#
25548# INIT-COMMANDS
25549#
25550AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25551
25552_ACEOF
25553
25554cat >>$CONFIG_STATUS <<\_ACEOF
25555
25556# Handling of arguments.
25557for ac_config_target in $ac_config_targets
25558do
25559  case $ac_config_target in
25560    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25561    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25562    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25563    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25564    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
25565    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25566    "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;;
25567    "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;;
25568    "xaw8.pc") CONFIG_FILES="$CONFIG_FILES xaw8.pc" ;;
25569
25570  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25571echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25572   { (exit 1); exit 1; }; };;
25573  esac
25574done
25575
25576
25577# If the user did not use the arguments to specify the items to instantiate,
25578# then the envvar interface is used.  Set only those that are not.
25579# We use the long form for the default assignment because of an extremely
25580# bizarre bug on SunOS 4.1.3.
25581if $ac_need_defaults; then
25582  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25583  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25584  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25585fi
25586
25587# Have a temporary directory for convenience.  Make it in the build tree
25588# simply because there is no reason against having it here, and in addition,
25589# creating and moving files from /tmp can sometimes cause problems.
25590# Hook for its removal unless debugging.
25591# Note that there is a small window in which the directory will not be cleaned:
25592# after its creation but before its name has been assigned to `$tmp'.
25593$debug ||
25594{
25595  tmp=
25596  trap 'exit_status=$?
25597  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25598' 0
25599  trap '{ (exit 1); exit 1; }' 1 2 13 15
25600}
25601# Create a (secure) tmp directory for tmp files.
25602
25603{
25604  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25605  test -n "$tmp" && test -d "$tmp"
25606}  ||
25607{
25608  tmp=./conf$$-$RANDOM
25609  (umask 077 && mkdir "$tmp")
25610} ||
25611{
25612   echo "$me: cannot create a temporary directory in ." >&2
25613   { (exit 1); exit 1; }
25614}
25615
25616#
25617# Set up the sed scripts for CONFIG_FILES section.
25618#
25619
25620# No need to generate the scripts if there are no CONFIG_FILES.
25621# This happens for instance when ./config.status config.h
25622if test -n "$CONFIG_FILES"; then
25623
25624_ACEOF
25625
25626
25627
25628ac_delim='%!_!# '
25629for ac_last_try in false false false false false :; do
25630  cat >conf$$subs.sed <<_ACEOF
25631SHELL!$SHELL$ac_delim
25632PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25633PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25634PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25635PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25636PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25637PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25638exec_prefix!$exec_prefix$ac_delim
25639prefix!$prefix$ac_delim
25640program_transform_name!$program_transform_name$ac_delim
25641bindir!$bindir$ac_delim
25642sbindir!$sbindir$ac_delim
25643libexecdir!$libexecdir$ac_delim
25644datarootdir!$datarootdir$ac_delim
25645datadir!$datadir$ac_delim
25646sysconfdir!$sysconfdir$ac_delim
25647sharedstatedir!$sharedstatedir$ac_delim
25648localstatedir!$localstatedir$ac_delim
25649includedir!$includedir$ac_delim
25650oldincludedir!$oldincludedir$ac_delim
25651docdir!$docdir$ac_delim
25652infodir!$infodir$ac_delim
25653htmldir!$htmldir$ac_delim
25654dvidir!$dvidir$ac_delim
25655pdfdir!$pdfdir$ac_delim
25656psdir!$psdir$ac_delim
25657libdir!$libdir$ac_delim
25658localedir!$localedir$ac_delim
25659mandir!$mandir$ac_delim
25660DEFS!$DEFS$ac_delim
25661ECHO_C!$ECHO_C$ac_delim
25662ECHO_N!$ECHO_N$ac_delim
25663ECHO_T!$ECHO_T$ac_delim
25664LIBS!$LIBS$ac_delim
25665build_alias!$build_alias$ac_delim
25666host_alias!$host_alias$ac_delim
25667target_alias!$target_alias$ac_delim
25668INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25669INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25670INSTALL_DATA!$INSTALL_DATA$ac_delim
25671am__isrc!$am__isrc$ac_delim
25672CYGPATH_W!$CYGPATH_W$ac_delim
25673PACKAGE!$PACKAGE$ac_delim
25674VERSION!$VERSION$ac_delim
25675ACLOCAL!$ACLOCAL$ac_delim
25676AUTOCONF!$AUTOCONF$ac_delim
25677AUTOMAKE!$AUTOMAKE$ac_delim
25678AUTOHEADER!$AUTOHEADER$ac_delim
25679MAKEINFO!$MAKEINFO$ac_delim
25680install_sh!$install_sh$ac_delim
25681STRIP!$STRIP$ac_delim
25682INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25683mkdir_p!$mkdir_p$ac_delim
25684AWK!$AWK$ac_delim
25685SET_MAKE!$SET_MAKE$ac_delim
25686am__leading_dot!$am__leading_dot$ac_delim
25687AMTAR!$AMTAR$ac_delim
25688am__tar!$am__tar$ac_delim
25689am__untar!$am__untar$ac_delim
25690CC!$CC$ac_delim
25691CFLAGS!$CFLAGS$ac_delim
25692LDFLAGS!$LDFLAGS$ac_delim
25693CPPFLAGS!$CPPFLAGS$ac_delim
25694ac_ct_CC!$ac_ct_CC$ac_delim
25695EXEEXT!$EXEEXT$ac_delim
25696OBJEXT!$OBJEXT$ac_delim
25697DEPDIR!$DEPDIR$ac_delim
25698am__include!$am__include$ac_delim
25699am__quote!$am__quote$ac_delim
25700AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25701AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25702AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25703CCDEPMODE!$CCDEPMODE$ac_delim
25704am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25705am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25706build!$build$ac_delim
25707build_cpu!$build_cpu$ac_delim
25708build_vendor!$build_vendor$ac_delim
25709build_os!$build_os$ac_delim
25710host!$host$ac_delim
25711host_cpu!$host_cpu$ac_delim
25712host_vendor!$host_vendor$ac_delim
25713host_os!$host_os$ac_delim
25714GREP!$GREP$ac_delim
25715EGREP!$EGREP$ac_delim
25716LN_S!$LN_S$ac_delim
25717ECHO!$ECHO$ac_delim
25718AR!$AR$ac_delim
25719RANLIB!$RANLIB$ac_delim
25720CPP!$CPP$ac_delim
25721CXX!$CXX$ac_delim
25722CXXFLAGS!$CXXFLAGS$ac_delim
25723ac_ct_CXX!$ac_ct_CXX$ac_delim
25724CXXDEPMODE!$CXXDEPMODE$ac_delim
25725am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25726am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25727CXXCPP!$CXXCPP$ac_delim
25728_ACEOF
25729
25730  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25731    break
25732  elif $ac_last_try; then
25733    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25734echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25735   { (exit 1); exit 1; }; }
25736  else
25737    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25738  fi
25739done
25740
25741ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25742if test -n "$ac_eof"; then
25743  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25744  ac_eof=`expr $ac_eof + 1`
25745fi
25746
25747cat >>$CONFIG_STATUS <<_ACEOF
25748cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25750_ACEOF
25751sed '
25752s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25753s/^/s,@/; s/!/@,|#_!!_#|/
25754:n
25755t n
25756s/'"$ac_delim"'$/,g/; t
25757s/$/\\/; p
25758N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25759' >>$CONFIG_STATUS <conf$$subs.sed
25760rm -f conf$$subs.sed
25761cat >>$CONFIG_STATUS <<_ACEOF
25762CEOF$ac_eof
25763_ACEOF
25764
25765
25766ac_delim='%!_!# '
25767for ac_last_try in false false false false false :; do
25768  cat >conf$$subs.sed <<_ACEOF
25769F77!$F77$ac_delim
25770FFLAGS!$FFLAGS$ac_delim
25771ac_ct_F77!$ac_ct_F77$ac_delim
25772LIBTOOL!$LIBTOOL$ac_delim
25773PKG_CONFIG!$PKG_CONFIG$ac_delim
25774PLATFORM_WIN32_TRUE!$PLATFORM_WIN32_TRUE$ac_delim
25775PLATFORM_WIN32_FALSE!$PLATFORM_WIN32_FALSE$ac_delim
25776XAW6_CFLAGS!$XAW6_CFLAGS$ac_delim
25777XAW6_LIBS!$XAW6_LIBS$ac_delim
25778XAW7_CFLAGS!$XAW7_CFLAGS$ac_delim
25779XAW7_LIBS!$XAW7_LIBS$ac_delim
25780XPRINT_CFLAGS!$XPRINT_CFLAGS$ac_delim
25781XPRINT_LIBS!$XPRINT_LIBS$ac_delim
25782XAW8_CFLAGS!$XAW8_CFLAGS$ac_delim
25783XAW8_LIBS!$XAW8_LIBS$ac_delim
25784BUILD_XAW6_TRUE!$BUILD_XAW6_TRUE$ac_delim
25785BUILD_XAW6_FALSE!$BUILD_XAW6_FALSE$ac_delim
25786BUILD_XAW7_TRUE!$BUILD_XAW7_TRUE$ac_delim
25787BUILD_XAW7_FALSE!$BUILD_XAW7_FALSE$ac_delim
25788BUILD_XAW8_TRUE!$BUILD_XAW8_TRUE$ac_delim
25789BUILD_XAW8_FALSE!$BUILD_XAW8_FALSE$ac_delim
25790APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
25791LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
25792FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
25793MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
25794DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
25795ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
25796APP_MAN_DIR!$APP_MAN_DIR$ac_delim
25797LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
25798FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
25799MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
25800DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
25801ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
25802LIBOBJS!$LIBOBJS$ac_delim
25803LTLIBOBJS!$LTLIBOBJS$ac_delim
25804_ACEOF
25805
25806  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
25807    break
25808  elif $ac_last_try; then
25809    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25810echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25811   { (exit 1); exit 1; }; }
25812  else
25813    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25814  fi
25815done
25816
25817ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25818if test -n "$ac_eof"; then
25819  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25820  ac_eof=`expr $ac_eof + 1`
25821fi
25822
25823cat >>$CONFIG_STATUS <<_ACEOF
25824cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25825/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25826_ACEOF
25827sed '
25828s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25829s/^/s,@/; s/!/@,|#_!!_#|/
25830:n
25831t n
25832s/'"$ac_delim"'$/,g/; t
25833s/$/\\/; p
25834N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25835' >>$CONFIG_STATUS <conf$$subs.sed
25836rm -f conf$$subs.sed
25837cat >>$CONFIG_STATUS <<_ACEOF
25838:end
25839s/|#_!!_#|//g
25840CEOF$ac_eof
25841_ACEOF
25842
25843
25844# VPATH may cause trouble with some makes, so we remove $(srcdir),
25845# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25846# trailing colons and then remove the whole line if VPATH becomes empty
25847# (actually we leave an empty line to preserve line numbers).
25848if test "x$srcdir" = x.; then
25849  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
25850s/:*\$(srcdir):*/:/
25851s/:*\${srcdir}:*/:/
25852s/:*@srcdir@:*/:/
25853s/^\([^=]*=[	 ]*\):*/\1/
25854s/:*$//
25855s/^[^=]*=[	 ]*$//
25856}'
25857fi
25858
25859cat >>$CONFIG_STATUS <<\_ACEOF
25860fi # test -n "$CONFIG_FILES"
25861
25862
25863for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25864do
25865  case $ac_tag in
25866  :[FHLC]) ac_mode=$ac_tag; continue;;
25867  esac
25868  case $ac_mode$ac_tag in
25869  :[FHL]*:*);;
25870  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25871echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25872   { (exit 1); exit 1; }; };;
25873  :[FH]-) ac_tag=-:-;;
25874  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25875  esac
25876  ac_save_IFS=$IFS
25877  IFS=:
25878  set x $ac_tag
25879  IFS=$ac_save_IFS
25880  shift
25881  ac_file=$1
25882  shift
25883
25884  case $ac_mode in
25885  :L) ac_source=$1;;
25886  :[FH])
25887    ac_file_inputs=
25888    for ac_f
25889    do
25890      case $ac_f in
25891      -) ac_f="$tmp/stdin";;
25892      *) # Look for the file first in the build tree, then in the source tree
25893	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
25894	 # because $ac_f cannot contain `:'.
25895	 test -f "$ac_f" ||
25896	   case $ac_f in
25897	   [\\/$]*) false;;
25898	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25899	   esac ||
25900	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25901echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25902   { (exit 1); exit 1; }; };;
25903      esac
25904      ac_file_inputs="$ac_file_inputs $ac_f"
25905    done
25906
25907    # Let's still pretend it is `configure' which instantiates (i.e., don't
25908    # use $as_me), people would be surprised to read:
25909    #    /* config.h.  Generated by config.status.  */
25910    configure_input="Generated from "`IFS=:
25911	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25912    if test x"$ac_file" != x-; then
25913      configure_input="$ac_file.  $configure_input"
25914      { echo "$as_me:$LINENO: creating $ac_file" >&5
25915echo "$as_me: creating $ac_file" >&6;}
25916    fi
25917
25918    case $ac_tag in
25919    *:-:* | *:-) cat >"$tmp/stdin";;
25920    esac
25921    ;;
25922  esac
25923
25924  ac_dir=`$as_dirname -- "$ac_file" ||
25925$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25926	 X"$ac_file" : 'X\(//\)[^/]' \| \
25927	 X"$ac_file" : 'X\(//\)$' \| \
25928	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25929echo X"$ac_file" |
25930    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25931	    s//\1/
25932	    q
25933	  }
25934	  /^X\(\/\/\)[^/].*/{
25935	    s//\1/
25936	    q
25937	  }
25938	  /^X\(\/\/\)$/{
25939	    s//\1/
25940	    q
25941	  }
25942	  /^X\(\/\).*/{
25943	    s//\1/
25944	    q
25945	  }
25946	  s/.*/./; q'`
25947  { as_dir="$ac_dir"
25948  case $as_dir in #(
25949  -*) as_dir=./$as_dir;;
25950  esac
25951  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25952    as_dirs=
25953    while :; do
25954      case $as_dir in #(
25955      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25956      *) as_qdir=$as_dir;;
25957      esac
25958      as_dirs="'$as_qdir' $as_dirs"
25959      as_dir=`$as_dirname -- "$as_dir" ||
25960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25961	 X"$as_dir" : 'X\(//\)[^/]' \| \
25962	 X"$as_dir" : 'X\(//\)$' \| \
25963	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25964echo X"$as_dir" |
25965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25966	    s//\1/
25967	    q
25968	  }
25969	  /^X\(\/\/\)[^/].*/{
25970	    s//\1/
25971	    q
25972	  }
25973	  /^X\(\/\/\)$/{
25974	    s//\1/
25975	    q
25976	  }
25977	  /^X\(\/\).*/{
25978	    s//\1/
25979	    q
25980	  }
25981	  s/.*/./; q'`
25982      test -d "$as_dir" && break
25983    done
25984    test -z "$as_dirs" || eval "mkdir $as_dirs"
25985  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25986echo "$as_me: error: cannot create directory $as_dir" >&2;}
25987   { (exit 1); exit 1; }; }; }
25988  ac_builddir=.
25989
25990case "$ac_dir" in
25991.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25992*)
25993  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25994  # A ".." for each directory in $ac_dir_suffix.
25995  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25996  case $ac_top_builddir_sub in
25997  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25998  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25999  esac ;;
26000esac
26001ac_abs_top_builddir=$ac_pwd
26002ac_abs_builddir=$ac_pwd$ac_dir_suffix
26003# for backward compatibility:
26004ac_top_builddir=$ac_top_build_prefix
26005
26006case $srcdir in
26007  .)  # We are building in place.
26008    ac_srcdir=.
26009    ac_top_srcdir=$ac_top_builddir_sub
26010    ac_abs_top_srcdir=$ac_pwd ;;
26011  [\\/]* | ?:[\\/]* )  # Absolute name.
26012    ac_srcdir=$srcdir$ac_dir_suffix;
26013    ac_top_srcdir=$srcdir
26014    ac_abs_top_srcdir=$srcdir ;;
26015  *) # Relative name.
26016    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26017    ac_top_srcdir=$ac_top_build_prefix$srcdir
26018    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26019esac
26020ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26021
26022
26023  case $ac_mode in
26024  :F)
26025  #
26026  # CONFIG_FILE
26027  #
26028
26029  case $INSTALL in
26030  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26031  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26032  esac
26033  ac_MKDIR_P=$MKDIR_P
26034  case $MKDIR_P in
26035  [\\/$]* | ?:[\\/]* ) ;;
26036  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26037  esac
26038_ACEOF
26039
26040cat >>$CONFIG_STATUS <<\_ACEOF
26041# If the template does not know about datarootdir, expand it.
26042# FIXME: This hack should be removed a few years after 2.60.
26043ac_datarootdir_hack=; ac_datarootdir_seen=
26044
26045case `sed -n '/datarootdir/ {
26046  p
26047  q
26048}
26049/@datadir@/p
26050/@docdir@/p
26051/@infodir@/p
26052/@localedir@/p
26053/@mandir@/p
26054' $ac_file_inputs` in
26055*datarootdir*) ac_datarootdir_seen=yes;;
26056*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26057  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26058echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26059_ACEOF
26060cat >>$CONFIG_STATUS <<_ACEOF
26061  ac_datarootdir_hack='
26062  s&@datadir@&$datadir&g
26063  s&@docdir@&$docdir&g
26064  s&@infodir@&$infodir&g
26065  s&@localedir@&$localedir&g
26066  s&@mandir@&$mandir&g
26067    s&\\\${datarootdir}&$datarootdir&g' ;;
26068esac
26069_ACEOF
26070
26071# Neutralize VPATH when `$srcdir' = `.'.
26072# Shell code in configure.ac might set extrasub.
26073# FIXME: do we really want to maintain this feature?
26074cat >>$CONFIG_STATUS <<_ACEOF
26075  sed "$ac_vpsub
26076$extrasub
26077_ACEOF
26078cat >>$CONFIG_STATUS <<\_ACEOF
26079:t
26080/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26081s&@configure_input@&$configure_input&;t t
26082s&@top_builddir@&$ac_top_builddir_sub&;t t
26083s&@srcdir@&$ac_srcdir&;t t
26084s&@abs_srcdir@&$ac_abs_srcdir&;t t
26085s&@top_srcdir@&$ac_top_srcdir&;t t
26086s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26087s&@builddir@&$ac_builddir&;t t
26088s&@abs_builddir@&$ac_abs_builddir&;t t
26089s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26090s&@INSTALL@&$ac_INSTALL&;t t
26091s&@MKDIR_P@&$ac_MKDIR_P&;t t
26092$ac_datarootdir_hack
26093" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26094
26095test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26096  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26097  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26098  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26099which seems to be undefined.  Please make sure it is defined." >&5
26100echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26101which seems to be undefined.  Please make sure it is defined." >&2;}
26102
26103  rm -f "$tmp/stdin"
26104  case $ac_file in
26105  -) cat "$tmp/out"; rm -f "$tmp/out";;
26106  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26107  esac
26108 ;;
26109  :H)
26110  #
26111  # CONFIG_HEADER
26112  #
26113_ACEOF
26114
26115# Transform confdefs.h into a sed script `conftest.defines', that
26116# substitutes the proper values into config.h.in to produce config.h.
26117rm -f conftest.defines conftest.tail
26118# First, append a space to every undef/define line, to ease matching.
26119echo 's/$/ /' >conftest.defines
26120# Then, protect against being on the right side of a sed subst, or in
26121# an unquoted here document, in config.status.  If some macros were
26122# called several times there might be several #defines for the same
26123# symbol, which is useless.  But do not sort them, since the last
26124# AC_DEFINE must be honored.
26125ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26126# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26127# NAME is the cpp macro being defined, VALUE is the value it is being given.
26128# PARAMS is the parameter list in the macro definition--in most cases, it's
26129# just an empty string.
26130ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
26131ac_dB='\\)[	 (].*,\\1define\\2'
26132ac_dC=' '
26133ac_dD=' ,'
26134
26135uniq confdefs.h |
26136  sed -n '
26137	t rset
26138	:rset
26139	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
26140	t ok
26141	d
26142	:ok
26143	s/[\\&,]/\\&/g
26144	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26145	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26146  ' >>conftest.defines
26147
26148# Remove the space that was appended to ease matching.
26149# Then replace #undef with comments.  This is necessary, for
26150# example, in the case of _POSIX_SOURCE, which is predefined and required
26151# on some systems where configure will not decide to define it.
26152# (The regexp can be short, since the line contains either #define or #undef.)
26153echo 's/ $//
26154s,^[	 #]*u.*,/* & */,' >>conftest.defines
26155
26156# Break up conftest.defines:
26157ac_max_sed_lines=50
26158
26159# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26160# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26161# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26162# et cetera.
26163ac_in='$ac_file_inputs'
26164ac_out='"$tmp/out1"'
26165ac_nxt='"$tmp/out2"'
26166
26167while :
26168do
26169  # Write a here document:
26170    cat >>$CONFIG_STATUS <<_ACEOF
26171    # First, check the format of the line:
26172    cat >"\$tmp/defines.sed" <<\\CEOF
26173/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
26174/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
26175b
26176:def
26177_ACEOF
26178  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26179  echo 'CEOF
26180    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26181  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26182  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26183  grep . conftest.tail >/dev/null || break
26184  rm -f conftest.defines
26185  mv conftest.tail conftest.defines
26186done
26187rm -f conftest.defines conftest.tail
26188
26189echo "ac_result=$ac_in" >>$CONFIG_STATUS
26190cat >>$CONFIG_STATUS <<\_ACEOF
26191  if test x"$ac_file" != x-; then
26192    echo "/* $configure_input  */" >"$tmp/config.h"
26193    cat "$ac_result" >>"$tmp/config.h"
26194    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26195      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26196echo "$as_me: $ac_file is unchanged" >&6;}
26197    else
26198      rm -f $ac_file
26199      mv "$tmp/config.h" $ac_file
26200    fi
26201  else
26202    echo "/* $configure_input  */"
26203    cat "$ac_result"
26204  fi
26205  rm -f "$tmp/out12"
26206# Compute $ac_file's index in $config_headers.
26207_am_stamp_count=1
26208for _am_header in $config_headers :; do
26209  case $_am_header in
26210    $ac_file | $ac_file:* )
26211      break ;;
26212    * )
26213      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26214  esac
26215done
26216echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
26217$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26218	 X$ac_file : 'X\(//\)[^/]' \| \
26219	 X$ac_file : 'X\(//\)$' \| \
26220	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
26221echo X$ac_file |
26222    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26223	    s//\1/
26224	    q
26225	  }
26226	  /^X\(\/\/\)[^/].*/{
26227	    s//\1/
26228	    q
26229	  }
26230	  /^X\(\/\/\)$/{
26231	    s//\1/
26232	    q
26233	  }
26234	  /^X\(\/\).*/{
26235	    s//\1/
26236	    q
26237	  }
26238	  s/.*/./; q'`/stamp-h$_am_stamp_count
26239 ;;
26240
26241  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26242echo "$as_me: executing $ac_file commands" >&6;}
26243 ;;
26244  esac
26245
26246
26247  case $ac_file$ac_mode in
26248    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26249  # Strip MF so we end up with the name of the file.
26250  mf=`echo "$mf" | sed -e 's/:.*$//'`
26251  # Check whether this is an Automake generated Makefile or not.
26252  # We used to match only the files named `Makefile.in', but
26253  # some people rename them; so instead we look at the file content.
26254  # Grep'ing the first line is not enough: some people post-process
26255  # each Makefile.in and add a new line on top of each file to say so.
26256  # Grep'ing the whole file is not good either: AIX grep has a line
26257  # limit of 2048, but all sed's we know have understand at least 4000.
26258  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
26259    dirpart=`$as_dirname -- "$mf" ||
26260$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26261	 X"$mf" : 'X\(//\)[^/]' \| \
26262	 X"$mf" : 'X\(//\)$' \| \
26263	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26264echo X"$mf" |
26265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26266	    s//\1/
26267	    q
26268	  }
26269	  /^X\(\/\/\)[^/].*/{
26270	    s//\1/
26271	    q
26272	  }
26273	  /^X\(\/\/\)$/{
26274	    s//\1/
26275	    q
26276	  }
26277	  /^X\(\/\).*/{
26278	    s//\1/
26279	    q
26280	  }
26281	  s/.*/./; q'`
26282  else
26283    continue
26284  fi
26285  # Extract the definition of DEPDIR, am__include, and am__quote
26286  # from the Makefile without running `make'.
26287  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26288  test -z "$DEPDIR" && continue
26289  am__include=`sed -n 's/^am__include = //p' < "$mf"`
26290  test -z "am__include" && continue
26291  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26292  # When using ansi2knr, U may be empty or an underscore; expand it
26293  U=`sed -n 's/^U = //p' < "$mf"`
26294  # Find all dependency output files, they are included files with
26295  # $(DEPDIR) in their names.  We invoke sed twice because it is the
26296  # simplest approach to changing $(DEPDIR) to its actual value in the
26297  # expansion.
26298  for file in `sed -n "
26299    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26300       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26301    # Make sure the directory exists.
26302    test -f "$dirpart/$file" && continue
26303    fdir=`$as_dirname -- "$file" ||
26304$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26305	 X"$file" : 'X\(//\)[^/]' \| \
26306	 X"$file" : 'X\(//\)$' \| \
26307	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26308echo X"$file" |
26309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26310	    s//\1/
26311	    q
26312	  }
26313	  /^X\(\/\/\)[^/].*/{
26314	    s//\1/
26315	    q
26316	  }
26317	  /^X\(\/\/\)$/{
26318	    s//\1/
26319	    q
26320	  }
26321	  /^X\(\/\).*/{
26322	    s//\1/
26323	    q
26324	  }
26325	  s/.*/./; q'`
26326    { as_dir=$dirpart/$fdir
26327  case $as_dir in #(
26328  -*) as_dir=./$as_dir;;
26329  esac
26330  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26331    as_dirs=
26332    while :; do
26333      case $as_dir in #(
26334      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26335      *) as_qdir=$as_dir;;
26336      esac
26337      as_dirs="'$as_qdir' $as_dirs"
26338      as_dir=`$as_dirname -- "$as_dir" ||
26339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26340	 X"$as_dir" : 'X\(//\)[^/]' \| \
26341	 X"$as_dir" : 'X\(//\)$' \| \
26342	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26343echo X"$as_dir" |
26344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26345	    s//\1/
26346	    q
26347	  }
26348	  /^X\(\/\/\)[^/].*/{
26349	    s//\1/
26350	    q
26351	  }
26352	  /^X\(\/\/\)$/{
26353	    s//\1/
26354	    q
26355	  }
26356	  /^X\(\/\).*/{
26357	    s//\1/
26358	    q
26359	  }
26360	  s/.*/./; q'`
26361      test -d "$as_dir" && break
26362    done
26363    test -z "$as_dirs" || eval "mkdir $as_dirs"
26364  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26365echo "$as_me: error: cannot create directory $as_dir" >&2;}
26366   { (exit 1); exit 1; }; }; }
26367    # echo "creating $dirpart/$file"
26368    echo '# dummy' > "$dirpart/$file"
26369  done
26370done
26371 ;;
26372
26373  esac
26374done # for ac_tag
26375
26376
26377{ (exit 0); exit 0; }
26378_ACEOF
26379chmod +x $CONFIG_STATUS
26380ac_clean_files=$ac_clean_files_save
26381
26382
26383# configure is writing to config.log, and then calls config.status.
26384# config.status does its own redirection, appending to config.log.
26385# Unfortunately, on DOS this fails, as config.log is still kept open
26386# by configure, so config.status won't be able to write to it; its
26387# output is simply discarded.  So we exec the FD to /dev/null,
26388# effectively closing config.log, so it can be properly (re)opened and
26389# appended to by config.status.  When coming back to configure, we
26390# need to make the FD available again.
26391if test "$no_create" != yes; then
26392  ac_cs_success=:
26393  ac_config_status_args=
26394  test "$silent" = yes &&
26395    ac_config_status_args="$ac_config_status_args --quiet"
26396  exec 5>/dev/null
26397  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26398  exec 5>>config.log
26399  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26400  # would make configure fail if this is the last instruction.
26401  $ac_cs_success || { (exit 1); exit 1; }
26402fi
26403
26404fi
26405