1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for scim 1.4.9.
4#
5# Report bugs to <suzhe@tsinghua.org.cn>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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  # Pre-4.2 versions of Zsh do 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
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='scim'
752PACKAGE_TARNAME='scim'
753PACKAGE_VERSION='1.4.9'
754PACKAGE_STRING='scim 1.4.9'
755PACKAGE_BUGREPORT='suzhe@tsinghua.org.cn'
756
757ac_unique_file="src/scim.h"
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772#  include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777#  include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='LTLIBOBJS
795ac_aux_dir
796SCIM_TEMPDIR
797SCIM_LOCALEDIR
798SCIM_LIBEXECDIR
799SCIM_MODULE_PATH
800SCIM_ICONDIR
801SCIM_SYSCONFDIR
802SCIM_DATADIR
803SCIM_BUILD_X11_UTILS
804SCIM_BUILD_GTK_UTILS
805SCIM_BUILD_PANEL_GTK
806SCIM_BUILD_SCIM_SETUP
807SCIM_BUILD_GTK2_IMMODULE
808SCIM_BUILD_FILTER_SCTC
809SCIM_BUILD_IMENGINE_SOCKET
810SCIM_BUILD_IMENGINE_TABLE
811SCIM_BUILD_IMENGINE_RAWCODE
812SCIM_BUILD_FRONTEND_SOCKET
813SCIM_BUILD_FRONTEND_X11
814SCIM_BUILD_CONFIG_SOCKET
815SCIM_BUILD_CONFIG_SIMPLE
816SCIM_BUILD_TESTS
817SCIM_BUILD_PANEL_GTK_FALSE
818SCIM_BUILD_PANEL_GTK_TRUE
819SCIM_BUILD_TRAY_ICON_FALSE
820SCIM_BUILD_TRAY_ICON_TRUE
821SCIM_BUILD_X11_UTILS_FALSE
822SCIM_BUILD_X11_UTILS_TRUE
823SCIM_BUILD_GTK_UTILS_FALSE
824SCIM_BUILD_GTK_UTILS_TRUE
825SCIM_BUILD_SCIM_SETUP_FALSE
826SCIM_BUILD_SCIM_SETUP_TRUE
827SCIM_BUILD_FILTER_SCTC_FALSE
828SCIM_BUILD_FILTER_SCTC_TRUE
829SCIM_BUILD_GTK2_IMMODULE_FALSE
830SCIM_BUILD_GTK2_IMMODULE_TRUE
831SCIM_BUILD_IMENGINE_RAWCODE_FALSE
832SCIM_BUILD_IMENGINE_RAWCODE_TRUE
833SCIM_BUILD_IMENGINE_SOCKET_FALSE
834SCIM_BUILD_IMENGINE_SOCKET_TRUE
835SCIM_BUILD_FRONTEND_SOCKET_FALSE
836SCIM_BUILD_FRONTEND_SOCKET_TRUE
837SCIM_BUILD_FRONTEND_X11_FALSE
838SCIM_BUILD_FRONTEND_X11_TRUE
839SCIM_BUILD_CONFIG_SOCKET_FALSE
840SCIM_BUILD_CONFIG_SOCKET_TRUE
841SCIM_BUILD_CONFIG_SIMPLE_FALSE
842SCIM_BUILD_CONFIG_SIMPLE_TRUE
843SCIM_BUILD_TESTS_FALSE
844SCIM_BUILD_TESTS_TRUE
845SCIM_LD_VERSION_SCRIPT_FALSE
846SCIM_LD_VERSION_SCRIPT_TRUE
847X_EXTRA_LIBS
848X_LIBS
849X_PRE_LIBS
850X_CFLAGS
851XMKMF
852GTHREAD2_LIBS
853GTHREAD2_CFLAGS
854GTK_BINARY_VERSION
855GTK_VERSION
856GTK_IM_MODULEDIR
857GTK_LIBDIR
858GTK2_LIBS
859GTK2_CFLAGS
860PKG_CONFIG
861LIBOBJS
862UINT64
863UINT32
864UINT16
865INCLUDE_STDINT
866INTLTOOL_XGETTEXT
867INTLTOOL_MSGMERGE
868INTLTOOL_MSGFMT
869INTLTOOL_ICONV
870INTLTOOL_PERL
871INTLTOOL_UPDATE
872INTLTOOL_MERGE
873INTLTOOL_EXTRACT
874INTLTOOL_THEME_RULE
875INTLTOOL_SCHEMAS_RULE
876INTLTOOL_CAVES_RULE
877INTLTOOL_XML_NOMERGE_RULE
878INTLTOOL_XML_RULE
879INTLTOOL_KBD_RULE
880INTLTOOL_XAM_RULE
881INTLTOOL_UI_RULE
882INTLTOOL_SOUNDLIST_RULE
883INTLTOOL_SHEET_RULE
884INTLTOOL_SERVER_RULE
885INTLTOOL_PONG_RULE
886INTLTOOL_OAF_RULE
887INTLTOOL_PROP_RULE
888INTLTOOL_KEYS_RULE
889INTLTOOL_DIRECTORY_RULE
890INTLTOOL_DESKTOP_RULE
891BUILD_MANUAL_FALSE
892BUILD_MANUAL_TRUE
893HAVE_DOCBOOK_FALSE
894HAVE_DOCBOOK_TRUE
895DOCBOOK_XSL
896HAVE_XSLTPROC_FALSE
897HAVE_XSLTPROC_TRUE
898XSLTPROC
899PERL
900DOT
901HAVE_GRAPHVIZ
902HAVE_DOXYGEN_FALSE
903HAVE_DOXYGEN_TRUE
904DOXYGEN
905LIBTOOL_EXPORT_OPTIONS
906LIBTOOL_DEPS
907LIBADD_DL
908CONVENIENCE_LTDL_FALSE
909CONVENIENCE_LTDL_TRUE
910INSTALL_LTDL_FALSE
911INSTALL_LTDL_TRUE
912LIBTOOL
913ac_ct_F77
914FFLAGS
915F77
916CXXCPP
917am__fastdepCXX_FALSE
918am__fastdepCXX_TRUE
919CXXDEPMODE
920ac_ct_CXX
921CXXFLAGS
922CXX
923NMEDIT
924DSYMUTIL
925AR
926ECHO
927LN_S
928SED
929POSUB
930LTLIBINTL
931LIBINTL
932INTLLIBS
933INTL_LIBTOOL_SUFFIX_PREFIX
934INTLOBJS
935GENCAT
936INSTOBJEXT
937DATADIRNAME
938CATOBJEXT
939USE_INCLUDED_LIBINTL
940BUILD_INCLUDED_LIBINTL
941INTLBISON
942LTLIBICONV
943LIBICONV
944HAVE_WPRINTF
945HAVE_SNPRINTF
946HAVE_ASPRINTF
947HAVE_POSIX_PRINTF
948GLIBC21
949ALLOCA
950EGREP
951GREP
952CPP
953RANLIB
954host_os
955host_vendor
956host_cpu
957host
958build_os
959build_vendor
960build_cpu
961build
962am__fastdepCC_FALSE
963am__fastdepCC_TRUE
964CCDEPMODE
965AMDEPBACKSLASH
966AMDEP_FALSE
967AMDEP_TRUE
968am__quote
969am__include
970DEPDIR
971OBJEXT
972EXEEXT
973ac_ct_CC
974CPPFLAGS
975LDFLAGS
976CFLAGS
977CC
978MSGMERGE
979XGETTEXT
980GMSGFMT
981MSGFMT
982USE_NLS
983MKINSTALLDIRS
984am__untar
985am__tar
986AMTAR
987am__leading_dot
988SET_MAKE
989AWK
990mkdir_p
991MKDIR_P
992INSTALL_STRIP_PROGRAM
993STRIP
994install_sh
995MAKEINFO
996AUTOHEADER
997AUTOMAKE
998AUTOCONF
999ACLOCAL
1000VERSION
1001PACKAGE
1002CYGPATH_W
1003am__isrc
1004INSTALL_DATA
1005INSTALL_SCRIPT
1006INSTALL_PROGRAM
1007GETTEXT_PACKAGE
1008SCIM_BINARY_VERSION
1009SCIM_EPOCH
1010SCIM_AGE
1011SCIM_REVISION
1012SCIM_CURRENT
1013SCIM_VERSION
1014SCIM_MICRO_VERSION
1015SCIM_MINOR_VERSION
1016SCIM_MAJOR_VERSION
1017target_alias
1018host_alias
1019build_alias
1020LIBS
1021ECHO_T
1022ECHO_N
1023ECHO_C
1024DEFS
1025mandir
1026localedir
1027libdir
1028psdir
1029pdfdir
1030dvidir
1031htmldir
1032infodir
1033docdir
1034oldincludedir
1035includedir
1036localstatedir
1037sharedstatedir
1038sysconfdir
1039datadir
1040datarootdir
1041libexecdir
1042sbindir
1043bindir
1044program_transform_name
1045prefix
1046exec_prefix
1047PACKAGE_BUGREPORT
1048PACKAGE_STRING
1049PACKAGE_VERSION
1050PACKAGE_TARNAME
1051PACKAGE_NAME
1052PATH_SEPARATOR
1053SHELL'
1054ac_subst_files=''
1055ac_user_opts='
1056enable_option_checking
1057enable_nls
1058enable_dependency_tracking
1059with_gnu_ld
1060enable_rpath
1061with_libiconv_prefix
1062with_included_gettext
1063with_libintl_prefix
1064enable_shared
1065enable_static
1066enable_fast_install
1067enable_libtool_lock
1068with_pic
1069with_tags
1070enable_ltdl_install
1071with_doxygen
1072with_x
1073with_gtk_im_module_dir
1074enable_ld_version_script
1075enable_debug
1076enable_tests
1077enable_hash_map
1078enable_config_simple
1079enable_config_socket
1080enable_frontend_x11
1081enable_frontend_socket
1082enable_im_rawcode
1083enable_im_socket
1084enable_filter_sctc
1085enable_gtk2_immodule
1086enable_panel_gtk
1087enable_setup_ui
1088'
1089      ac_precious_vars='build_alias
1090host_alias
1091target_alias
1092CC
1093CFLAGS
1094LDFLAGS
1095LIBS
1096CPPFLAGS
1097CPP
1098CXX
1099CXXFLAGS
1100CCC
1101CXXCPP
1102F77
1103FFLAGS
1104PKG_CONFIG
1105GTK2_CFLAGS
1106GTK2_LIBS
1107GTHREAD2_CFLAGS
1108GTHREAD2_LIBS
1109XMKMF'
1110
1111
1112# Initialize some variables set by options.
1113ac_init_help=
1114ac_init_version=false
1115ac_unrecognized_opts=
1116ac_unrecognized_sep=
1117# The variables have the same names as the options, with
1118# dashes changed to underlines.
1119cache_file=/dev/null
1120exec_prefix=NONE
1121no_create=
1122no_recursion=
1123prefix=NONE
1124program_prefix=NONE
1125program_suffix=NONE
1126program_transform_name=s,x,x,
1127silent=
1128site=
1129srcdir=
1130verbose=
1131x_includes=NONE
1132x_libraries=NONE
1133
1134# Installation directory options.
1135# These are left unexpanded so users can "make install exec_prefix=/foo"
1136# and all the variables that are supposed to be based on exec_prefix
1137# by default will actually change.
1138# Use braces instead of parens because sh, perl, etc. also accept them.
1139# (The list follows the same order as the GNU Coding Standards.)
1140bindir='${exec_prefix}/bin'
1141sbindir='${exec_prefix}/sbin'
1142libexecdir='${exec_prefix}/libexec'
1143datarootdir='${prefix}/share'
1144datadir='${datarootdir}'
1145sysconfdir='${prefix}/etc'
1146sharedstatedir='${prefix}/com'
1147localstatedir='${prefix}/var'
1148includedir='${prefix}/include'
1149oldincludedir='/usr/include'
1150docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1151infodir='${datarootdir}/info'
1152htmldir='${docdir}'
1153dvidir='${docdir}'
1154pdfdir='${docdir}'
1155psdir='${docdir}'
1156libdir='${exec_prefix}/lib'
1157localedir='${datarootdir}/locale'
1158mandir='${datarootdir}/man'
1159
1160ac_prev=
1161ac_dashdash=
1162for ac_option
1163do
1164  # If the previous option needs an argument, assign it.
1165  if test -n "$ac_prev"; then
1166    eval $ac_prev=\$ac_option
1167    ac_prev=
1168    continue
1169  fi
1170
1171  case $ac_option in
1172  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1173  *)	ac_optarg=yes ;;
1174  esac
1175
1176  # Accept the important Cygnus configure options, so we can diagnose typos.
1177
1178  case $ac_dashdash$ac_option in
1179  --)
1180    ac_dashdash=yes ;;
1181
1182  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1183    ac_prev=bindir ;;
1184  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1185    bindir=$ac_optarg ;;
1186
1187  -build | --build | --buil | --bui | --bu)
1188    ac_prev=build_alias ;;
1189  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1190    build_alias=$ac_optarg ;;
1191
1192  -cache-file | --cache-file | --cache-fil | --cache-fi \
1193  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1194    ac_prev=cache_file ;;
1195  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1196  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1197    cache_file=$ac_optarg ;;
1198
1199  --config-cache | -C)
1200    cache_file=config.cache ;;
1201
1202  -datadir | --datadir | --datadi | --datad)
1203    ac_prev=datadir ;;
1204  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1205    datadir=$ac_optarg ;;
1206
1207  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1208  | --dataroo | --dataro | --datar)
1209    ac_prev=datarootdir ;;
1210  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1211  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1212    datarootdir=$ac_optarg ;;
1213
1214  -disable-* | --disable-*)
1215    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1216    # Reject names that are not valid shell variable names.
1217    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1219   { (exit 1); exit 1; }; }
1220    ac_useropt_orig=$ac_useropt
1221    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222    case $ac_user_opts in
1223      *"
1224"enable_$ac_useropt"
1225"*) ;;
1226      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1227	 ac_unrecognized_sep=', ';;
1228    esac
1229    eval enable_$ac_useropt=no ;;
1230
1231  -docdir | --docdir | --docdi | --doc | --do)
1232    ac_prev=docdir ;;
1233  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1234    docdir=$ac_optarg ;;
1235
1236  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1237    ac_prev=dvidir ;;
1238  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1239    dvidir=$ac_optarg ;;
1240
1241  -enable-* | --enable-*)
1242    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1243    # Reject names that are not valid shell variable names.
1244    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1246   { (exit 1); exit 1; }; }
1247    ac_useropt_orig=$ac_useropt
1248    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249    case $ac_user_opts in
1250      *"
1251"enable_$ac_useropt"
1252"*) ;;
1253      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1254	 ac_unrecognized_sep=', ';;
1255    esac
1256    eval enable_$ac_useropt=\$ac_optarg ;;
1257
1258  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1259  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1260  | --exec | --exe | --ex)
1261    ac_prev=exec_prefix ;;
1262  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1263  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1264  | --exec=* | --exe=* | --ex=*)
1265    exec_prefix=$ac_optarg ;;
1266
1267  -gas | --gas | --ga | --g)
1268    # Obsolete; use --with-gas.
1269    with_gas=yes ;;
1270
1271  -help | --help | --hel | --he | -h)
1272    ac_init_help=long ;;
1273  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1274    ac_init_help=recursive ;;
1275  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1276    ac_init_help=short ;;
1277
1278  -host | --host | --hos | --ho)
1279    ac_prev=host_alias ;;
1280  -host=* | --host=* | --hos=* | --ho=*)
1281    host_alias=$ac_optarg ;;
1282
1283  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1284    ac_prev=htmldir ;;
1285  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1286  | --ht=*)
1287    htmldir=$ac_optarg ;;
1288
1289  -includedir | --includedir | --includedi | --included | --include \
1290  | --includ | --inclu | --incl | --inc)
1291    ac_prev=includedir ;;
1292  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1293  | --includ=* | --inclu=* | --incl=* | --inc=*)
1294    includedir=$ac_optarg ;;
1295
1296  -infodir | --infodir | --infodi | --infod | --info | --inf)
1297    ac_prev=infodir ;;
1298  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1299    infodir=$ac_optarg ;;
1300
1301  -libdir | --libdir | --libdi | --libd)
1302    ac_prev=libdir ;;
1303  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1304    libdir=$ac_optarg ;;
1305
1306  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1307  | --libexe | --libex | --libe)
1308    ac_prev=libexecdir ;;
1309  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1310  | --libexe=* | --libex=* | --libe=*)
1311    libexecdir=$ac_optarg ;;
1312
1313  -localedir | --localedir | --localedi | --localed | --locale)
1314    ac_prev=localedir ;;
1315  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1316    localedir=$ac_optarg ;;
1317
1318  -localstatedir | --localstatedir | --localstatedi | --localstated \
1319  | --localstate | --localstat | --localsta | --localst | --locals)
1320    ac_prev=localstatedir ;;
1321  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1322  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1323    localstatedir=$ac_optarg ;;
1324
1325  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1326    ac_prev=mandir ;;
1327  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1328    mandir=$ac_optarg ;;
1329
1330  -nfp | --nfp | --nf)
1331    # Obsolete; use --without-fp.
1332    with_fp=no ;;
1333
1334  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1335  | --no-cr | --no-c | -n)
1336    no_create=yes ;;
1337
1338  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1339  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1340    no_recursion=yes ;;
1341
1342  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1343  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1344  | --oldin | --oldi | --old | --ol | --o)
1345    ac_prev=oldincludedir ;;
1346  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1347  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1348  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1349    oldincludedir=$ac_optarg ;;
1350
1351  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1352    ac_prev=prefix ;;
1353  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1354    prefix=$ac_optarg ;;
1355
1356  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1357  | --program-pre | --program-pr | --program-p)
1358    ac_prev=program_prefix ;;
1359  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1360  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1361    program_prefix=$ac_optarg ;;
1362
1363  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1364  | --program-suf | --program-su | --program-s)
1365    ac_prev=program_suffix ;;
1366  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1367  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1368    program_suffix=$ac_optarg ;;
1369
1370  -program-transform-name | --program-transform-name \
1371  | --program-transform-nam | --program-transform-na \
1372  | --program-transform-n | --program-transform- \
1373  | --program-transform | --program-transfor \
1374  | --program-transfo | --program-transf \
1375  | --program-trans | --program-tran \
1376  | --progr-tra | --program-tr | --program-t)
1377    ac_prev=program_transform_name ;;
1378  -program-transform-name=* | --program-transform-name=* \
1379  | --program-transform-nam=* | --program-transform-na=* \
1380  | --program-transform-n=* | --program-transform-=* \
1381  | --program-transform=* | --program-transfor=* \
1382  | --program-transfo=* | --program-transf=* \
1383  | --program-trans=* | --program-tran=* \
1384  | --progr-tra=* | --program-tr=* | --program-t=*)
1385    program_transform_name=$ac_optarg ;;
1386
1387  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1388    ac_prev=pdfdir ;;
1389  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1390    pdfdir=$ac_optarg ;;
1391
1392  -psdir | --psdir | --psdi | --psd | --ps)
1393    ac_prev=psdir ;;
1394  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1395    psdir=$ac_optarg ;;
1396
1397  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1398  | -silent | --silent | --silen | --sile | --sil)
1399    silent=yes ;;
1400
1401  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1402    ac_prev=sbindir ;;
1403  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1404  | --sbi=* | --sb=*)
1405    sbindir=$ac_optarg ;;
1406
1407  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1408  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1409  | --sharedst | --shareds | --shared | --share | --shar \
1410  | --sha | --sh)
1411    ac_prev=sharedstatedir ;;
1412  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1413  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1414  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1415  | --sha=* | --sh=*)
1416    sharedstatedir=$ac_optarg ;;
1417
1418  -site | --site | --sit)
1419    ac_prev=site ;;
1420  -site=* | --site=* | --sit=*)
1421    site=$ac_optarg ;;
1422
1423  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1424    ac_prev=srcdir ;;
1425  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1426    srcdir=$ac_optarg ;;
1427
1428  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1429  | --syscon | --sysco | --sysc | --sys | --sy)
1430    ac_prev=sysconfdir ;;
1431  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1432  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1433    sysconfdir=$ac_optarg ;;
1434
1435  -target | --target | --targe | --targ | --tar | --ta | --t)
1436    ac_prev=target_alias ;;
1437  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1438    target_alias=$ac_optarg ;;
1439
1440  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1441    verbose=yes ;;
1442
1443  -version | --version | --versio | --versi | --vers | -V)
1444    ac_init_version=: ;;
1445
1446  -with-* | --with-*)
1447    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1448    # Reject names that are not valid shell variable names.
1449    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1450      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1451   { (exit 1); exit 1; }; }
1452    ac_useropt_orig=$ac_useropt
1453    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1454    case $ac_user_opts in
1455      *"
1456"with_$ac_useropt"
1457"*) ;;
1458      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1459	 ac_unrecognized_sep=', ';;
1460    esac
1461    eval with_$ac_useropt=\$ac_optarg ;;
1462
1463  -without-* | --without-*)
1464    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1465    # Reject names that are not valid shell variable names.
1466    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1467      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1468   { (exit 1); exit 1; }; }
1469    ac_useropt_orig=$ac_useropt
1470    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1471    case $ac_user_opts in
1472      *"
1473"with_$ac_useropt"
1474"*) ;;
1475      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1476	 ac_unrecognized_sep=', ';;
1477    esac
1478    eval with_$ac_useropt=no ;;
1479
1480  --x)
1481    # Obsolete; use --with-x.
1482    with_x=yes ;;
1483
1484  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1485  | --x-incl | --x-inc | --x-in | --x-i)
1486    ac_prev=x_includes ;;
1487  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1488  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1489    x_includes=$ac_optarg ;;
1490
1491  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1492  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1493    ac_prev=x_libraries ;;
1494  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1495  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1496    x_libraries=$ac_optarg ;;
1497
1498  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1499Try \`$0 --help' for more information." >&2
1500   { (exit 1); exit 1; }; }
1501    ;;
1502
1503  *=*)
1504    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1505    # Reject names that are not valid shell variable names.
1506    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1507      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1508   { (exit 1); exit 1; }; }
1509    eval $ac_envvar=\$ac_optarg
1510    export $ac_envvar ;;
1511
1512  *)
1513    # FIXME: should be removed in autoconf 3.0.
1514    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1515    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1516      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1517    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1518    ;;
1519
1520  esac
1521done
1522
1523if test -n "$ac_prev"; then
1524  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1525  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1526   { (exit 1); exit 1; }; }
1527fi
1528
1529if test -n "$ac_unrecognized_opts"; then
1530  case $enable_option_checking in
1531    no) ;;
1532    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1533   { (exit 1); exit 1; }; } ;;
1534    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1535  esac
1536fi
1537
1538# Check all directory arguments for consistency.
1539for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1540		datadir sysconfdir sharedstatedir localstatedir includedir \
1541		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1542		libdir localedir mandir
1543do
1544  eval ac_val=\$$ac_var
1545  # Remove trailing slashes.
1546  case $ac_val in
1547    */ )
1548      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1549      eval $ac_var=\$ac_val;;
1550  esac
1551  # Be sure to have absolute directory names.
1552  case $ac_val in
1553    [\\/$]* | ?:[\\/]* )  continue;;
1554    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1555  esac
1556  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1557   { (exit 1); exit 1; }; }
1558done
1559
1560# There might be people who depend on the old broken behavior: `$host'
1561# used to hold the argument of --host etc.
1562# FIXME: To remove some day.
1563build=$build_alias
1564host=$host_alias
1565target=$target_alias
1566
1567# FIXME: To remove some day.
1568if test "x$host_alias" != x; then
1569  if test "x$build_alias" = x; then
1570    cross_compiling=maybe
1571    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1572    If a cross compiler is detected then cross compile mode will be used." >&2
1573  elif test "x$build_alias" != "x$host_alias"; then
1574    cross_compiling=yes
1575  fi
1576fi
1577
1578ac_tool_prefix=
1579test -n "$host_alias" && ac_tool_prefix=$host_alias-
1580
1581test "$silent" = yes && exec 6>/dev/null
1582
1583
1584ac_pwd=`pwd` && test -n "$ac_pwd" &&
1585ac_ls_di=`ls -di .` &&
1586ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1587  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1588   { (exit 1); exit 1; }; }
1589test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1590  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1591   { (exit 1); exit 1; }; }
1592
1593
1594# Find the source files, if location was not specified.
1595if test -z "$srcdir"; then
1596  ac_srcdir_defaulted=yes
1597  # Try the directory containing this script, then the parent directory.
1598  ac_confdir=`$as_dirname -- "$as_myself" ||
1599$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1600	 X"$as_myself" : 'X\(//\)[^/]' \| \
1601	 X"$as_myself" : 'X\(//\)$' \| \
1602	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1603$as_echo X"$as_myself" |
1604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1605	    s//\1/
1606	    q
1607	  }
1608	  /^X\(\/\/\)[^/].*/{
1609	    s//\1/
1610	    q
1611	  }
1612	  /^X\(\/\/\)$/{
1613	    s//\1/
1614	    q
1615	  }
1616	  /^X\(\/\).*/{
1617	    s//\1/
1618	    q
1619	  }
1620	  s/.*/./; q'`
1621  srcdir=$ac_confdir
1622  if test ! -r "$srcdir/$ac_unique_file"; then
1623    srcdir=..
1624  fi
1625else
1626  ac_srcdir_defaulted=no
1627fi
1628if test ! -r "$srcdir/$ac_unique_file"; then
1629  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1630  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1631   { (exit 1); exit 1; }; }
1632fi
1633ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1634ac_abs_confdir=`(
1635	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1636   { (exit 1); exit 1; }; }
1637	pwd)`
1638# When building in place, set srcdir=.
1639if test "$ac_abs_confdir" = "$ac_pwd"; then
1640  srcdir=.
1641fi
1642# Remove unnecessary trailing slashes from srcdir.
1643# Double slashes in file names in object file debugging info
1644# mess up M-x gdb in Emacs.
1645case $srcdir in
1646*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1647esac
1648for ac_var in $ac_precious_vars; do
1649  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1650  eval ac_env_${ac_var}_value=\$${ac_var}
1651  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1652  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1653done
1654
1655#
1656# Report the --help message.
1657#
1658if test "$ac_init_help" = "long"; then
1659  # Omit some internal or obsolete options to make the list less imposing.
1660  # This message is too long to be a string in the A/UX 3.1 sh.
1661  cat <<_ACEOF
1662\`configure' configures scim 1.4.9 to adapt to many kinds of systems.
1663
1664Usage: $0 [OPTION]... [VAR=VALUE]...
1665
1666To assign environment variables (e.g., CC, CFLAGS...), specify them as
1667VAR=VALUE.  See below for descriptions of some of the useful variables.
1668
1669Defaults for the options are specified in brackets.
1670
1671Configuration:
1672  -h, --help              display this help and exit
1673      --help=short        display options specific to this package
1674      --help=recursive    display the short help of all the included packages
1675  -V, --version           display version information and exit
1676  -q, --quiet, --silent   do not print \`checking...' messages
1677      --cache-file=FILE   cache test results in FILE [disabled]
1678  -C, --config-cache      alias for \`--cache-file=config.cache'
1679  -n, --no-create         do not create output files
1680      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1681
1682Installation directories:
1683  --prefix=PREFIX         install architecture-independent files in PREFIX
1684                          [$ac_default_prefix]
1685  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1686                          [PREFIX]
1687
1688By default, \`make install' will install all the files in
1689\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1690an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1691for instance \`--prefix=\$HOME'.
1692
1693For better control, use the options below.
1694
1695Fine tuning of the installation directories:
1696  --bindir=DIR            user executables [EPREFIX/bin]
1697  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1698  --libexecdir=DIR        program executables [EPREFIX/libexec]
1699  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1700  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1701  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1702  --libdir=DIR            object code libraries [EPREFIX/lib]
1703  --includedir=DIR        C header files [PREFIX/include]
1704  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1705  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1706  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1707  --infodir=DIR           info documentation [DATAROOTDIR/info]
1708  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1709  --mandir=DIR            man documentation [DATAROOTDIR/man]
1710  --docdir=DIR            documentation root [DATAROOTDIR/doc/scim]
1711  --htmldir=DIR           html documentation [DOCDIR]
1712  --dvidir=DIR            dvi documentation [DOCDIR]
1713  --pdfdir=DIR            pdf documentation [DOCDIR]
1714  --psdir=DIR             ps documentation [DOCDIR]
1715_ACEOF
1716
1717  cat <<\_ACEOF
1718
1719Program names:
1720  --program-prefix=PREFIX            prepend PREFIX to installed program names
1721  --program-suffix=SUFFIX            append SUFFIX to installed program names
1722  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1723
1724X features:
1725  --x-includes=DIR    X include files are in DIR
1726  --x-libraries=DIR   X library files are in DIR
1727
1728System types:
1729  --build=BUILD     configure for building on BUILD [guessed]
1730  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1731_ACEOF
1732fi
1733
1734if test -n "$ac_init_help"; then
1735  case $ac_init_help in
1736     short | recursive ) echo "Configuration of scim 1.4.9:";;
1737   esac
1738  cat <<\_ACEOF
1739
1740Optional Features:
1741  --disable-option-checking  ignore unrecognized --enable/--with options
1742  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1743  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1744  --disable-nls           do not use Native Language Support
1745  --disable-dependency-tracking  speeds up one-time build
1746  --enable-dependency-tracking   do not reject slow dependency extractors
1747  --disable-rpath         do not hardcode runtime library paths
1748  --enable-shared[=PKGS]  build shared libraries [default=yes]
1749  --enable-static[=PKGS]  build static libraries [default=yes]
1750  --enable-fast-install[=PKGS]
1751                          optimize for fast installation [default=yes]
1752  --disable-libtool-lock  avoid locking (might break parallel builds)
1753  --enable-ltdl-install   install libltdl
1754  --enable-ld-version-script Use ld version script to limit exported symbols
1755  --enable-debug            Turn on debugging
1756  --enable-tests            Build tests/*
1757  --enable-hash-map         Use hast_map instead of std::map internally
1758  --disable-config-simple   Do not build Simple Config module
1759  --disable-config-socket   Do not build Socket Config module
1760  --disable-frontend-x11    Do not build X11 FrontEnd module
1761  --disable-frontend-socket Do not build Socket FrontEnd module
1762  --disable-im-rawcode      Do not build RawCode IMEngine module
1763  --disable-im-socket       Do not build Socket IMEngine module
1764  --disable-filter-sctc     Do not build Simplified/Traditional Chinese conversion Filter module
1765  --disable-gtk2-immodule   Do not build GTK2 IMModule
1766  --disable-panel-gtk       Do not build GTK2 Panel
1767  --disable-setup-ui        Do not build Setup UI
1768
1769Optional Packages:
1770  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1771  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1772  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1773  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1774  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1775  --with-included-gettext use the GNU gettext library included here
1776  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1777  --without-libintl-prefix     don't search for libintl in includedir and libdir
1778  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1779  --with-pic              try to use only PIC/non-PIC objects [default=use
1780                          both]
1781  --with-tags[=TAGS]      include additional configurations [automatic]
1782  --without-doxygen       Don't build API documentation
1783  --with-x                use the X Window System
1784  --with-gtk-im-module-dir=dir
1785                          Select gtk immodule dir
1786
1787Some influential environment variables:
1788  CC          C compiler command
1789  CFLAGS      C compiler flags
1790  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1791              nonstandard directory <lib dir>
1792  LIBS        libraries to pass to the linker, e.g. -l<library>
1793  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1794              you have headers in a nonstandard directory <include dir>
1795  CPP         C preprocessor
1796  CXX         C++ compiler command
1797  CXXFLAGS    C++ compiler flags
1798  CXXCPP      C++ preprocessor
1799  F77         Fortran 77 compiler command
1800  FFLAGS      Fortran 77 compiler flags
1801  PKG_CONFIG  path to pkg-config utility
1802  GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1803  GTK2_LIBS   linker flags for GTK2, overriding pkg-config
1804  GTHREAD2_CFLAGS
1805              C compiler flags for GTHREAD2, overriding pkg-config
1806  GTHREAD2_LIBS
1807              linker flags for GTHREAD2, overriding pkg-config
1808  XMKMF       Path to xmkmf, Makefile generator for X Window System
1809
1810Use these variables to override the choices made by `configure' or to help
1811it to find libraries and programs with nonstandard names/locations.
1812
1813Report bugs to <suzhe@tsinghua.org.cn>.
1814_ACEOF
1815ac_status=$?
1816fi
1817
1818if test "$ac_init_help" = "recursive"; then
1819  # If there are subdirs, report their specific --help.
1820  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1821    test -d "$ac_dir" ||
1822      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1823      continue
1824    ac_builddir=.
1825
1826case "$ac_dir" in
1827.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1828*)
1829  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1830  # A ".." for each directory in $ac_dir_suffix.
1831  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1832  case $ac_top_builddir_sub in
1833  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1834  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1835  esac ;;
1836esac
1837ac_abs_top_builddir=$ac_pwd
1838ac_abs_builddir=$ac_pwd$ac_dir_suffix
1839# for backward compatibility:
1840ac_top_builddir=$ac_top_build_prefix
1841
1842case $srcdir in
1843  .)  # We are building in place.
1844    ac_srcdir=.
1845    ac_top_srcdir=$ac_top_builddir_sub
1846    ac_abs_top_srcdir=$ac_pwd ;;
1847  [\\/]* | ?:[\\/]* )  # Absolute name.
1848    ac_srcdir=$srcdir$ac_dir_suffix;
1849    ac_top_srcdir=$srcdir
1850    ac_abs_top_srcdir=$srcdir ;;
1851  *) # Relative name.
1852    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1853    ac_top_srcdir=$ac_top_build_prefix$srcdir
1854    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1855esac
1856ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1857
1858    cd "$ac_dir" || { ac_status=$?; continue; }
1859    # Check for guested configure.
1860    if test -f "$ac_srcdir/configure.gnu"; then
1861      echo &&
1862      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1863    elif test -f "$ac_srcdir/configure"; then
1864      echo &&
1865      $SHELL "$ac_srcdir/configure" --help=recursive
1866    else
1867      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1868    fi || ac_status=$?
1869    cd "$ac_pwd" || { ac_status=$?; break; }
1870  done
1871fi
1872
1873test -n "$ac_init_help" && exit $ac_status
1874if $ac_init_version; then
1875  cat <<\_ACEOF
1876scim configure 1.4.9
1877generated by GNU Autoconf 2.63
1878
1879Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18802002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1881This configure script is free software; the Free Software Foundation
1882gives unlimited permission to copy, distribute and modify it.
1883_ACEOF
1884  exit
1885fi
1886cat >config.log <<_ACEOF
1887This file contains any messages produced by compilers while
1888running configure, to aid debugging if configure makes a mistake.
1889
1890It was created by scim $as_me 1.4.9, which was
1891generated by GNU Autoconf 2.63.  Invocation command line was
1892
1893  $ $0 $@
1894
1895_ACEOF
1896exec 5>>config.log
1897{
1898cat <<_ASUNAME
1899## --------- ##
1900## Platform. ##
1901## --------- ##
1902
1903hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908
1909/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1911
1912/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1913/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1914/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1915/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1916/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1917/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1918/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1919
1920_ASUNAME
1921
1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923for as_dir in $PATH
1924do
1925  IFS=$as_save_IFS
1926  test -z "$as_dir" && as_dir=.
1927  $as_echo "PATH: $as_dir"
1928done
1929IFS=$as_save_IFS
1930
1931} >&5
1932
1933cat >&5 <<_ACEOF
1934
1935
1936## ----------- ##
1937## Core tests. ##
1938## ----------- ##
1939
1940_ACEOF
1941
1942
1943# Keep a trace of the command line.
1944# Strip out --no-create and --no-recursion so they do not pile up.
1945# Strip out --silent because we don't want to record it for future runs.
1946# Also quote any args containing shell meta-characters.
1947# Make two passes to allow for proper duplicate-argument suppression.
1948ac_configure_args=
1949ac_configure_args0=
1950ac_configure_args1=
1951ac_must_keep_next=false
1952for ac_pass in 1 2
1953do
1954  for ac_arg
1955  do
1956    case $ac_arg in
1957    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1958    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1959    | -silent | --silent | --silen | --sile | --sil)
1960      continue ;;
1961    *\'*)
1962      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1963    esac
1964    case $ac_pass in
1965    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1966    2)
1967      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1968      if test $ac_must_keep_next = true; then
1969	ac_must_keep_next=false # Got value, back to normal.
1970      else
1971	case $ac_arg in
1972	  *=* | --config-cache | -C | -disable-* | --disable-* \
1973	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1974	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1975	  | -with-* | --with-* | -without-* | --without-* | --x)
1976	    case "$ac_configure_args0 " in
1977	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1978	    esac
1979	    ;;
1980	  -* ) ac_must_keep_next=true ;;
1981	esac
1982      fi
1983      ac_configure_args="$ac_configure_args '$ac_arg'"
1984      ;;
1985    esac
1986  done
1987done
1988$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1989$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1990
1991# When interrupted or exit'd, cleanup temporary files, and complete
1992# config.log.  We remove comments because anyway the quotes in there
1993# would cause problems or look ugly.
1994# WARNING: Use '\'' to represent an apostrophe within the trap.
1995# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1996trap 'exit_status=$?
1997  # Save into config.log some information that might help in debugging.
1998  {
1999    echo
2000
2001    cat <<\_ASBOX
2002## ---------------- ##
2003## Cache variables. ##
2004## ---------------- ##
2005_ASBOX
2006    echo
2007    # The following way of writing the cache mishandles newlines in values,
2008(
2009  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010    eval ac_val=\$$ac_var
2011    case $ac_val in #(
2012    *${as_nl}*)
2013      case $ac_var in #(
2014      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2015$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2016      esac
2017      case $ac_var in #(
2018      _ | IFS | as_nl) ;; #(
2019      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020      *) $as_unset $ac_var ;;
2021      esac ;;
2022    esac
2023  done
2024  (set) 2>&1 |
2025    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026    *${as_nl}ac_space=\ *)
2027      sed -n \
2028	"s/'\''/'\''\\\\'\'''\''/g;
2029	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2030      ;; #(
2031    *)
2032      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033      ;;
2034    esac |
2035    sort
2036)
2037    echo
2038
2039    cat <<\_ASBOX
2040## ----------------- ##
2041## Output variables. ##
2042## ----------------- ##
2043_ASBOX
2044    echo
2045    for ac_var in $ac_subst_vars
2046    do
2047      eval ac_val=\$$ac_var
2048      case $ac_val in
2049      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050      esac
2051      $as_echo "$ac_var='\''$ac_val'\''"
2052    done | sort
2053    echo
2054
2055    if test -n "$ac_subst_files"; then
2056      cat <<\_ASBOX
2057## ------------------- ##
2058## File substitutions. ##
2059## ------------------- ##
2060_ASBOX
2061      echo
2062      for ac_var in $ac_subst_files
2063      do
2064	eval ac_val=\$$ac_var
2065	case $ac_val in
2066	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067	esac
2068	$as_echo "$ac_var='\''$ac_val'\''"
2069      done | sort
2070      echo
2071    fi
2072
2073    if test -s confdefs.h; then
2074      cat <<\_ASBOX
2075## ----------- ##
2076## confdefs.h. ##
2077## ----------- ##
2078_ASBOX
2079      echo
2080      cat confdefs.h
2081      echo
2082    fi
2083    test "$ac_signal" != 0 &&
2084      $as_echo "$as_me: caught signal $ac_signal"
2085    $as_echo "$as_me: exit $exit_status"
2086  } >&5
2087  rm -f core *.core core.conftest.* &&
2088    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2089    exit $exit_status
2090' 0
2091for ac_signal in 1 2 13 15; do
2092  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2093done
2094ac_signal=0
2095
2096# confdefs.h avoids OS command line length limits that DEFS can exceed.
2097rm -f -r conftest* confdefs.h
2098
2099# Predefined preprocessor variables.
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_NAME "$PACKAGE_NAME"
2103_ACEOF
2104
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2108_ACEOF
2109
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_VERSION "$PACKAGE_VERSION"
2113_ACEOF
2114
2115
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_STRING "$PACKAGE_STRING"
2118_ACEOF
2119
2120
2121cat >>confdefs.h <<_ACEOF
2122#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2123_ACEOF
2124
2125
2126# Let the site file select an alternate cache file if it wants to.
2127# Prefer an explicitly selected file to automatically selected ones.
2128ac_site_file1=NONE
2129ac_site_file2=NONE
2130if test -n "$CONFIG_SITE"; then
2131  ac_site_file1=$CONFIG_SITE
2132elif test "x$prefix" != xNONE; then
2133  ac_site_file1=$prefix/share/config.site
2134  ac_site_file2=$prefix/etc/config.site
2135else
2136  ac_site_file1=$ac_default_prefix/share/config.site
2137  ac_site_file2=$ac_default_prefix/etc/config.site
2138fi
2139for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2140do
2141  test "x$ac_site_file" = xNONE && continue
2142  if test -r "$ac_site_file"; then
2143    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2144$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2145    sed 's/^/| /' "$ac_site_file" >&5
2146    . "$ac_site_file"
2147  fi
2148done
2149
2150if test -r "$cache_file"; then
2151  # Some versions of bash will fail to source /dev/null (special
2152  # files actually), so we avoid doing that.
2153  if test -f "$cache_file"; then
2154    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2155$as_echo "$as_me: loading cache $cache_file" >&6;}
2156    case $cache_file in
2157      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2158      *)                      . "./$cache_file";;
2159    esac
2160  fi
2161else
2162  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2163$as_echo "$as_me: creating cache $cache_file" >&6;}
2164  >$cache_file
2165fi
2166
2167# Check that the precious variables saved in the cache have kept the same
2168# value.
2169ac_cache_corrupted=false
2170for ac_var in $ac_precious_vars; do
2171  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2172  eval ac_new_set=\$ac_env_${ac_var}_set
2173  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2174  eval ac_new_val=\$ac_env_${ac_var}_value
2175  case $ac_old_set,$ac_new_set in
2176    set,)
2177      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2178$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2179      ac_cache_corrupted=: ;;
2180    ,set)
2181      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2182$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2183      ac_cache_corrupted=: ;;
2184    ,);;
2185    *)
2186      if test "x$ac_old_val" != "x$ac_new_val"; then
2187	# differences in whitespace do not lead to failure.
2188	ac_old_val_w=`echo x $ac_old_val`
2189	ac_new_val_w=`echo x $ac_new_val`
2190	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2191	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2192$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2193	  ac_cache_corrupted=:
2194	else
2195	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2196$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2197	  eval $ac_var=\$ac_old_val
2198	fi
2199	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2200$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2201	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2202$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2203      fi;;
2204  esac
2205  # Pass precious variables to config.status.
2206  if test "$ac_new_set" = set; then
2207    case $ac_new_val in
2208    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2209    *) ac_arg=$ac_var=$ac_new_val ;;
2210    esac
2211    case " $ac_configure_args " in
2212      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2213      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2214    esac
2215  fi
2216done
2217if $ac_cache_corrupted; then
2218  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2221$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2222  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2223$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2224   { (exit 1); exit 1; }; }
2225fi
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251ac_ext=c
2252ac_cpp='$CPP $CPPFLAGS'
2253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256
2257
2258
2259
2260###########################################################
2261##          Some definitions of Version macros.          ##
2262###########################################################
2263
2264SCIM_MAJOR_VERSION=1
2265SCIM_MINOR_VERSION=4
2266SCIM_MICRO_VERSION=9
2267
2268SCIM_VERSION=$SCIM_MAJOR_VERSION.$SCIM_MINOR_VERSION.$SCIM_MICRO_VERSION
2269
2270
2271
2272
2273
2274
2275# libtool versioning for SCIM
2276
2277# increment if the interface has additions, changes, removals.
2278SCIM_CURRENT=10
2279
2280# increment any time the source changes; set to 0 if you increment CURRENT
2281SCIM_REVISION=4
2282
2283# increment if any interfaces have been added; set to 0
2284# if any interfaces have been removed. removal has
2285# precedence over adding, so set to 0 if both happened.
2286SCIM_AGE=2
2287
2288
2289
2290
2291
2292# Define a string for the earliest version that this release cannot
2293# coexist with. This is used for directory hierarchies.
2294#
2295SCIM_EPOCH=-1.0
2296
2297
2298# Define a string for the earliest version that this release has
2299# binary compatibility with. This is used for module locations.
2300#
2301SCIM_BINARY_VERSION=1.4.0
2302
2303
2304
2305cat >>confdefs.h <<_ACEOF
2306#define SCIM_BINARY_VERSION "$SCIM_BINARY_VERSION"
2307_ACEOF
2308
2309
2310cat >>confdefs.h <<_ACEOF
2311#define SCIM_VERSION "$SCIM_VERSION"
2312_ACEOF
2313
2314
2315cat >>confdefs.h <<_ACEOF
2316#define SCIM_MAJOR_VERSION $SCIM_MAJOR_VERSION
2317_ACEOF
2318
2319
2320cat >>confdefs.h <<_ACEOF
2321#define SCIM_MINOR_VERSION $SCIM_MINOR_VERSION
2322_ACEOF
2323
2324
2325cat >>confdefs.h <<_ACEOF
2326#define SCIM_MICRO_VERSION $SCIM_MICRO_VERSION
2327_ACEOF
2328
2329
2330GETTEXT_PACKAGE=scim
2331
2332
2333cat >>confdefs.h <<_ACEOF
2334#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
2335_ACEOF
2336
2337
2338###########################################################
2339##                  Start Configuration.                 ##
2340###########################################################
2341
2342# Init automake stuff
2343am__api_version='1.10'
2344
2345ac_aux_dir=
2346for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2347  if test -f "$ac_dir/install-sh"; then
2348    ac_aux_dir=$ac_dir
2349    ac_install_sh="$ac_aux_dir/install-sh -c"
2350    break
2351  elif test -f "$ac_dir/install.sh"; then
2352    ac_aux_dir=$ac_dir
2353    ac_install_sh="$ac_aux_dir/install.sh -c"
2354    break
2355  elif test -f "$ac_dir/shtool"; then
2356    ac_aux_dir=$ac_dir
2357    ac_install_sh="$ac_aux_dir/shtool install -c"
2358    break
2359  fi
2360done
2361if test -z "$ac_aux_dir"; then
2362  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2363$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2364   { (exit 1); exit 1; }; }
2365fi
2366
2367# These three variables are undocumented and unsupported,
2368# and are intended to be withdrawn in a future Autoconf release.
2369# They can cause serious problems if a builder's source tree is in a directory
2370# whose full name contains unusual characters.
2371ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2372ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2373ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2374
2375
2376# Find a good install program.  We prefer a C program (faster),
2377# so one script is as good as another.  But avoid the broken or
2378# incompatible versions:
2379# SysV /etc/install, /usr/sbin/install
2380# SunOS /usr/etc/install
2381# IRIX /sbin/install
2382# AIX /bin/install
2383# AmigaOS /C/install, which installs bootblocks on floppy discs
2384# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2385# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2386# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2387# OS/2's system install, which has a completely different semantic
2388# ./install, which can be erroneously created by make from ./install.sh.
2389# Reject install programs that cannot install multiple files.
2390{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2391$as_echo_n "checking for a BSD-compatible install... " >&6; }
2392if test -z "$INSTALL"; then
2393if test "${ac_cv_path_install+set}" = set; then
2394  $as_echo_n "(cached) " >&6
2395else
2396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399  IFS=$as_save_IFS
2400  test -z "$as_dir" && as_dir=.
2401  # Account for people who put trailing slashes in PATH elements.
2402case $as_dir/ in
2403  ./ | .// | /cC/* | \
2404  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2405  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2406  /usr/ucb/* ) ;;
2407  *)
2408    # OSF1 and SCO ODT 3.0 have their own names for install.
2409    # Don't use installbsd from OSF since it installs stuff as root
2410    # by default.
2411    for ac_prog in ginstall scoinst install; do
2412      for ac_exec_ext in '' $ac_executable_extensions; do
2413	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2414	  if test $ac_prog = install &&
2415	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416	    # AIX install.  It has an incompatible calling convention.
2417	    :
2418	  elif test $ac_prog = install &&
2419	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2420	    # program-specific install script used by HP pwplus--don't use.
2421	    :
2422	  else
2423	    rm -rf conftest.one conftest.two conftest.dir
2424	    echo one > conftest.one
2425	    echo two > conftest.two
2426	    mkdir conftest.dir
2427	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2428	      test -s conftest.one && test -s conftest.two &&
2429	      test -s conftest.dir/conftest.one &&
2430	      test -s conftest.dir/conftest.two
2431	    then
2432	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2433	      break 3
2434	    fi
2435	  fi
2436	fi
2437      done
2438    done
2439    ;;
2440esac
2441
2442done
2443IFS=$as_save_IFS
2444
2445rm -rf conftest.one conftest.two conftest.dir
2446
2447fi
2448  if test "${ac_cv_path_install+set}" = set; then
2449    INSTALL=$ac_cv_path_install
2450  else
2451    # As a last resort, use the slow shell script.  Don't cache a
2452    # value for INSTALL within a source directory, because that will
2453    # break other packages using the cache if that directory is
2454    # removed, or if the value is a relative name.
2455    INSTALL=$ac_install_sh
2456  fi
2457fi
2458{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2459$as_echo "$INSTALL" >&6; }
2460
2461# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2462# It thinks the first close brace ends the variable substitution.
2463test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2464
2465test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2466
2467test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2468
2469{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2470$as_echo_n "checking whether build environment is sane... " >&6; }
2471# Just in case
2472sleep 1
2473echo timestamp > conftest.file
2474# Do `set' in a subshell so we don't clobber the current shell's
2475# arguments.  Must try -L first in case configure is actually a
2476# symlink; some systems play weird games with the mod time of symlinks
2477# (eg FreeBSD returns the mod time of the symlink's containing
2478# directory).
2479if (
2480   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2481   if test "$*" = "X"; then
2482      # -L didn't work.
2483      set X `ls -t $srcdir/configure conftest.file`
2484   fi
2485   rm -f conftest.file
2486   if test "$*" != "X $srcdir/configure conftest.file" \
2487      && test "$*" != "X conftest.file $srcdir/configure"; then
2488
2489      # If neither matched, then we have a broken ls.  This can happen
2490      # if, for instance, CONFIG_SHELL is bash and it inherits a
2491      # broken ls alias from the environment.  This has actually
2492      # happened.  Such a system could not be considered "sane".
2493      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2494alias in your environment" >&5
2495$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2496alias in your environment" >&2;}
2497   { (exit 1); exit 1; }; }
2498   fi
2499
2500   test "$2" = conftest.file
2501   )
2502then
2503   # Ok.
2504   :
2505else
2506   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2507Check your system clock" >&5
2508$as_echo "$as_me: error: newly created file is older than distributed files!
2509Check your system clock" >&2;}
2510   { (exit 1); exit 1; }; }
2511fi
2512{ $as_echo "$as_me:$LINENO: result: yes" >&5
2513$as_echo "yes" >&6; }
2514test "$program_prefix" != NONE &&
2515  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2516# Use a double $ so make ignores it.
2517test "$program_suffix" != NONE &&
2518  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2519# Double any \ or $.
2520# By default was `s,x,x', remove it if useless.
2521ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2522program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2523
2524# expand $ac_aux_dir to an absolute path
2525am_aux_dir=`cd $ac_aux_dir && pwd`
2526
2527test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2528# Use eval to expand $SHELL
2529if eval "$MISSING --run true"; then
2530  am_missing_run="$MISSING --run "
2531else
2532  am_missing_run=
2533  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2534$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2535fi
2536
2537{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2538$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2539if test -z "$MKDIR_P"; then
2540  if test "${ac_cv_path_mkdir+set}" = set; then
2541  $as_echo_n "(cached) " >&6
2542else
2543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2545do
2546  IFS=$as_save_IFS
2547  test -z "$as_dir" && as_dir=.
2548  for ac_prog in mkdir gmkdir; do
2549	 for ac_exec_ext in '' $ac_executable_extensions; do
2550	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2551	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2552	     'mkdir (GNU coreutils) '* | \
2553	     'mkdir (coreutils) '* | \
2554	     'mkdir (fileutils) '4.1*)
2555	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2556	       break 3;;
2557	   esac
2558	 done
2559       done
2560done
2561IFS=$as_save_IFS
2562
2563fi
2564
2565  if test "${ac_cv_path_mkdir+set}" = set; then
2566    MKDIR_P="$ac_cv_path_mkdir -p"
2567  else
2568    # As a last resort, use the slow shell script.  Don't cache a
2569    # value for MKDIR_P within a source directory, because that will
2570    # break other packages using the cache if that directory is
2571    # removed, or if the value is a relative name.
2572    test -d ./--version && rmdir ./--version
2573    MKDIR_P="$ac_install_sh -d"
2574  fi
2575fi
2576{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2577$as_echo "$MKDIR_P" >&6; }
2578
2579mkdir_p="$MKDIR_P"
2580case $mkdir_p in
2581  [\\/$]* | ?:[\\/]*) ;;
2582  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2583esac
2584
2585for ac_prog in gawk mawk nawk awk
2586do
2587  # Extract the first word of "$ac_prog", so it can be a program name with args.
2588set dummy $ac_prog; ac_word=$2
2589{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2590$as_echo_n "checking for $ac_word... " >&6; }
2591if test "${ac_cv_prog_AWK+set}" = set; then
2592  $as_echo_n "(cached) " >&6
2593else
2594  if test -n "$AWK"; then
2595  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600  IFS=$as_save_IFS
2601  test -z "$as_dir" && as_dir=.
2602  for ac_exec_ext in '' $ac_executable_extensions; do
2603  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604    ac_cv_prog_AWK="$ac_prog"
2605    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606    break 2
2607  fi
2608done
2609done
2610IFS=$as_save_IFS
2611
2612fi
2613fi
2614AWK=$ac_cv_prog_AWK
2615if test -n "$AWK"; then
2616  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2617$as_echo "$AWK" >&6; }
2618else
2619  { $as_echo "$as_me:$LINENO: result: no" >&5
2620$as_echo "no" >&6; }
2621fi
2622
2623
2624  test -n "$AWK" && break
2625done
2626
2627{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2628$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2629set x ${MAKE-make}
2630ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2631if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2632  $as_echo_n "(cached) " >&6
2633else
2634  cat >conftest.make <<\_ACEOF
2635SHELL = /bin/sh
2636all:
2637	@echo '@@@%%%=$(MAKE)=@@@%%%'
2638_ACEOF
2639# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2640case `${MAKE-make} -f conftest.make 2>/dev/null` in
2641  *@@@%%%=?*=@@@%%%*)
2642    eval ac_cv_prog_make_${ac_make}_set=yes;;
2643  *)
2644    eval ac_cv_prog_make_${ac_make}_set=no;;
2645esac
2646rm -f conftest.make
2647fi
2648if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2649  { $as_echo "$as_me:$LINENO: result: yes" >&5
2650$as_echo "yes" >&6; }
2651  SET_MAKE=
2652else
2653  { $as_echo "$as_me:$LINENO: result: no" >&5
2654$as_echo "no" >&6; }
2655  SET_MAKE="MAKE=${MAKE-make}"
2656fi
2657
2658rm -rf .tst 2>/dev/null
2659mkdir .tst 2>/dev/null
2660if test -d .tst; then
2661  am__leading_dot=.
2662else
2663  am__leading_dot=_
2664fi
2665rmdir .tst 2>/dev/null
2666
2667if test "`cd $srcdir && pwd`" != "`pwd`"; then
2668  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2669  # is not polluted with repeated "-I."
2670  am__isrc=' -I$(srcdir)'
2671  # test to see if srcdir already configured
2672  if test -f $srcdir/config.status; then
2673    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2674$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2675   { (exit 1); exit 1; }; }
2676  fi
2677fi
2678
2679# test whether we have cygpath
2680if test -z "$CYGPATH_W"; then
2681  if (cygpath --version) >/dev/null 2>/dev/null; then
2682    CYGPATH_W='cygpath -w'
2683  else
2684    CYGPATH_W=echo
2685  fi
2686fi
2687
2688
2689# Define the identity of the package.
2690 PACKAGE='scim'
2691 VERSION='1.4.9'
2692
2693
2694cat >>confdefs.h <<_ACEOF
2695#define PACKAGE "$PACKAGE"
2696_ACEOF
2697
2698
2699cat >>confdefs.h <<_ACEOF
2700#define VERSION "$VERSION"
2701_ACEOF
2702
2703# Some tools Automake needs.
2704
2705ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2706
2707
2708AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2709
2710
2711AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2712
2713
2714AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2715
2716
2717MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2718
2719install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2720
2721# Installed binaries are usually stripped using `strip' when the user
2722# run `make install-strip'.  However `strip' might not be the right
2723# tool to use in cross-compilation environments, therefore Automake
2724# will honor the `STRIP' environment variable to overrule this program.
2725if test "$cross_compiling" != no; then
2726  if test -n "$ac_tool_prefix"; then
2727  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2728set dummy ${ac_tool_prefix}strip; ac_word=$2
2729{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2730$as_echo_n "checking for $ac_word... " >&6; }
2731if test "${ac_cv_prog_STRIP+set}" = set; then
2732  $as_echo_n "(cached) " >&6
2733else
2734  if test -n "$STRIP"; then
2735  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  test -z "$as_dir" && as_dir=.
2742  for ac_exec_ext in '' $ac_executable_extensions; do
2743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2745    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746    break 2
2747  fi
2748done
2749done
2750IFS=$as_save_IFS
2751
2752fi
2753fi
2754STRIP=$ac_cv_prog_STRIP
2755if test -n "$STRIP"; then
2756  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2757$as_echo "$STRIP" >&6; }
2758else
2759  { $as_echo "$as_me:$LINENO: result: no" >&5
2760$as_echo "no" >&6; }
2761fi
2762
2763
2764fi
2765if test -z "$ac_cv_prog_STRIP"; then
2766  ac_ct_STRIP=$STRIP
2767  # Extract the first word of "strip", so it can be a program name with args.
2768set dummy strip; ac_word=$2
2769{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2772  $as_echo_n "(cached) " >&6
2773else
2774  if test -n "$ac_ct_STRIP"; then
2775  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780  IFS=$as_save_IFS
2781  test -z "$as_dir" && as_dir=.
2782  for ac_exec_ext in '' $ac_executable_extensions; do
2783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784    ac_cv_prog_ac_ct_STRIP="strip"
2785    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786    break 2
2787  fi
2788done
2789done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2795if test -n "$ac_ct_STRIP"; then
2796  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2797$as_echo "$ac_ct_STRIP" >&6; }
2798else
2799  { $as_echo "$as_me:$LINENO: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
2803  if test "x$ac_ct_STRIP" = x; then
2804    STRIP=":"
2805  else
2806    case $cross_compiling:$ac_tool_warned in
2807yes:)
2808{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2810ac_tool_warned=yes ;;
2811esac
2812    STRIP=$ac_ct_STRIP
2813  fi
2814else
2815  STRIP="$ac_cv_prog_STRIP"
2816fi
2817
2818fi
2819INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2820
2821# We need awk for the "check" target.  The system "awk" is bad on
2822# some platforms.
2823# Always define AMTAR for backward compatibility.
2824
2825AMTAR=${AMTAR-"${am_missing_run}tar"}
2826
2827am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2828
2829
2830
2831
2832
2833ac_config_headers="$ac_config_headers config.h"
2834
2835
2836# Init gettext
2837ALL_LINGUAS="as bn_IN ca cs de es fi fr gu hi it ja kn ko ml mr nl pa pt_BR ru sk sv ta te vi zh_CN zh_TW"
2838
2839        MKINSTALLDIRS=
2840  if test -n "$ac_aux_dir"; then
2841    case "$ac_aux_dir" in
2842      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2843      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2844    esac
2845  fi
2846  if test -z "$MKINSTALLDIRS"; then
2847    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2848  fi
2849
2850
2851
2852  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2853$as_echo_n "checking whether NLS is requested... " >&6; }
2854    # Check whether --enable-nls was given.
2855if test "${enable_nls+set}" = set; then
2856  enableval=$enable_nls; USE_NLS=$enableval
2857else
2858  USE_NLS=yes
2859fi
2860
2861  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
2862$as_echo "$USE_NLS" >&6; }
2863
2864
2865
2866
2867
2868
2869# Prepare PATH_SEPARATOR.
2870# The user is always right.
2871if test "${PATH_SEPARATOR+set}" != set; then
2872  echo "#! /bin/sh" >conf$$.sh
2873  echo  "exit 0"   >>conf$$.sh
2874  chmod +x conf$$.sh
2875  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2876    PATH_SEPARATOR=';'
2877  else
2878    PATH_SEPARATOR=:
2879  fi
2880  rm -f conf$$.sh
2881fi
2882
2883# Find out how to test for executable files. Don't use a zero-byte file,
2884# as systems may use methods other than mode bits to determine executability.
2885cat >conf$$.file <<_ASEOF
2886#! /bin/sh
2887exit 0
2888_ASEOF
2889chmod +x conf$$.file
2890if test -x conf$$.file >/dev/null 2>&1; then
2891  ac_executable_p="test -x"
2892else
2893  ac_executable_p="test -f"
2894fi
2895rm -f conf$$.file
2896
2897# Extract the first word of "msgfmt", so it can be a program name with args.
2898set dummy msgfmt; ac_word=$2
2899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2900$as_echo_n "checking for $ac_word... " >&6; }
2901if test "${ac_cv_path_MSGFMT+set}" = set; then
2902  $as_echo_n "(cached) " >&6
2903else
2904  case "$MSGFMT" in
2905  [\\/]* | ?:[\\/]*)
2906    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2907    ;;
2908  *)
2909    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2910    for ac_dir in $PATH; do
2911      IFS="$ac_save_IFS"
2912      test -z "$ac_dir" && ac_dir=.
2913      for ac_exec_ext in '' $ac_executable_extensions; do
2914        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2915          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2916     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2917            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2918            break 2
2919          fi
2920        fi
2921      done
2922    done
2923    IFS="$ac_save_IFS"
2924  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2925    ;;
2926esac
2927fi
2928MSGFMT="$ac_cv_path_MSGFMT"
2929if test "$MSGFMT" != ":"; then
2930  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
2931$as_echo "$MSGFMT" >&6; }
2932else
2933  { $as_echo "$as_me:$LINENO: result: no" >&5
2934$as_echo "no" >&6; }
2935fi
2936
2937  # Extract the first word of "gmsgfmt", so it can be a program name with args.
2938set dummy gmsgfmt; ac_word=$2
2939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if test "${ac_cv_path_GMSGFMT+set}" = set; then
2942  $as_echo_n "(cached) " >&6
2943else
2944  case $GMSGFMT in
2945  [\\/]* | ?:[\\/]*)
2946  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2947  ;;
2948  *)
2949  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954  for ac_exec_ext in '' $ac_executable_extensions; do
2955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2957    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961done
2962IFS=$as_save_IFS
2963
2964  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2965  ;;
2966esac
2967fi
2968GMSGFMT=$ac_cv_path_GMSGFMT
2969if test -n "$GMSGFMT"; then
2970  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2971$as_echo "$GMSGFMT" >&6; }
2972else
2973  { $as_echo "$as_me:$LINENO: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978
2979
2980# Prepare PATH_SEPARATOR.
2981# The user is always right.
2982if test "${PATH_SEPARATOR+set}" != set; then
2983  echo "#! /bin/sh" >conf$$.sh
2984  echo  "exit 0"   >>conf$$.sh
2985  chmod +x conf$$.sh
2986  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2987    PATH_SEPARATOR=';'
2988  else
2989    PATH_SEPARATOR=:
2990  fi
2991  rm -f conf$$.sh
2992fi
2993
2994# Find out how to test for executable files. Don't use a zero-byte file,
2995# as systems may use methods other than mode bits to determine executability.
2996cat >conf$$.file <<_ASEOF
2997#! /bin/sh
2998exit 0
2999_ASEOF
3000chmod +x conf$$.file
3001if test -x conf$$.file >/dev/null 2>&1; then
3002  ac_executable_p="test -x"
3003else
3004  ac_executable_p="test -f"
3005fi
3006rm -f conf$$.file
3007
3008# Extract the first word of "xgettext", so it can be a program name with args.
3009set dummy xgettext; ac_word=$2
3010{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3011$as_echo_n "checking for $ac_word... " >&6; }
3012if test "${ac_cv_path_XGETTEXT+set}" = set; then
3013  $as_echo_n "(cached) " >&6
3014else
3015  case "$XGETTEXT" in
3016  [\\/]* | ?:[\\/]*)
3017    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3018    ;;
3019  *)
3020    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3021    for ac_dir in $PATH; do
3022      IFS="$ac_save_IFS"
3023      test -z "$ac_dir" && ac_dir=.
3024      for ac_exec_ext in '' $ac_executable_extensions; do
3025        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3026          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3027     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3028            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3029            break 2
3030          fi
3031        fi
3032      done
3033    done
3034    IFS="$ac_save_IFS"
3035  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3036    ;;
3037esac
3038fi
3039XGETTEXT="$ac_cv_path_XGETTEXT"
3040if test "$XGETTEXT" != ":"; then
3041  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3042$as_echo "$XGETTEXT" >&6; }
3043else
3044  { $as_echo "$as_me:$LINENO: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048    rm -f messages.po
3049
3050
3051# Prepare PATH_SEPARATOR.
3052# The user is always right.
3053if test "${PATH_SEPARATOR+set}" != set; then
3054  echo "#! /bin/sh" >conf$$.sh
3055  echo  "exit 0"   >>conf$$.sh
3056  chmod +x conf$$.sh
3057  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3058    PATH_SEPARATOR=';'
3059  else
3060    PATH_SEPARATOR=:
3061  fi
3062  rm -f conf$$.sh
3063fi
3064
3065# Find out how to test for executable files. Don't use a zero-byte file,
3066# as systems may use methods other than mode bits to determine executability.
3067cat >conf$$.file <<_ASEOF
3068#! /bin/sh
3069exit 0
3070_ASEOF
3071chmod +x conf$$.file
3072if test -x conf$$.file >/dev/null 2>&1; then
3073  ac_executable_p="test -x"
3074else
3075  ac_executable_p="test -f"
3076fi
3077rm -f conf$$.file
3078
3079# Extract the first word of "msgmerge", so it can be a program name with args.
3080set dummy msgmerge; ac_word=$2
3081{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3082$as_echo_n "checking for $ac_word... " >&6; }
3083if test "${ac_cv_path_MSGMERGE+set}" = set; then
3084  $as_echo_n "(cached) " >&6
3085else
3086  case "$MSGMERGE" in
3087  [\\/]* | ?:[\\/]*)
3088    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3089    ;;
3090  *)
3091    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3092    for ac_dir in $PATH; do
3093      IFS="$ac_save_IFS"
3094      test -z "$ac_dir" && ac_dir=.
3095      for ac_exec_ext in '' $ac_executable_extensions; do
3096        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3097          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3098            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3099            break 2
3100          fi
3101        fi
3102      done
3103    done
3104    IFS="$ac_save_IFS"
3105  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3106    ;;
3107esac
3108fi
3109MSGMERGE="$ac_cv_path_MSGMERGE"
3110if test "$MSGMERGE" != ":"; then
3111  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3112$as_echo "$MSGMERGE" >&6; }
3113else
3114  { $as_echo "$as_me:$LINENO: result: no" >&5
3115$as_echo "no" >&6; }
3116fi
3117
3118
3119      if test "$GMSGFMT" != ":"; then
3120            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3121       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3122      : ;
3123    else
3124      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3125      { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3126$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3127      GMSGFMT=":"
3128    fi
3129  fi
3130
3131      if test "$XGETTEXT" != ":"; then
3132            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3133       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3134      : ;
3135    else
3136      { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3137$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3138      XGETTEXT=":"
3139    fi
3140        rm -f messages.po
3141  fi
3142
3143  ac_config_commands="$ac_config_commands default-1"
3144
3145
3146DEPDIR="${am__leading_dot}deps"
3147
3148ac_config_commands="$ac_config_commands depfiles"
3149
3150
3151am_make=${MAKE-make}
3152cat > confinc << 'END'
3153am__doit:
3154	@echo done
3155.PHONY: am__doit
3156END
3157# If we don't find an include directive, just comment out the code.
3158{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3159$as_echo_n "checking for style of include used by $am_make... " >&6; }
3160am__include="#"
3161am__quote=
3162_am_result=none
3163# First try GNU make style include.
3164echo "include confinc" > confmf
3165# We grep out `Entering directory' and `Leaving directory'
3166# messages which can occur if `w' ends up in MAKEFLAGS.
3167# In particular we don't look at `^make:' because GNU make might
3168# be invoked under some other name (usually "gmake"), in which
3169# case it prints its new name instead of `make'.
3170if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3171   am__include=include
3172   am__quote=
3173   _am_result=GNU
3174fi
3175# Now try BSD make style include.
3176if test "$am__include" = "#"; then
3177   echo '.include "confinc"' > confmf
3178   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3179      am__include=.include
3180      am__quote="\""
3181      _am_result=BSD
3182   fi
3183fi
3184
3185
3186{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3187$as_echo "$_am_result" >&6; }
3188rm -f confinc confmf
3189
3190# Check whether --enable-dependency-tracking was given.
3191if test "${enable_dependency_tracking+set}" = set; then
3192  enableval=$enable_dependency_tracking;
3193fi
3194
3195if test "x$enable_dependency_tracking" != xno; then
3196  am_depcomp="$ac_aux_dir/depcomp"
3197  AMDEPBACKSLASH='\'
3198fi
3199 if test "x$enable_dependency_tracking" != xno; then
3200  AMDEP_TRUE=
3201  AMDEP_FALSE='#'
3202else
3203  AMDEP_TRUE='#'
3204  AMDEP_FALSE=
3205fi
3206
3207
3208ac_ext=c
3209ac_cpp='$CPP $CPPFLAGS'
3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213if test -n "$ac_tool_prefix"; then
3214  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3215set dummy ${ac_tool_prefix}gcc; ac_word=$2
3216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3217$as_echo_n "checking for $ac_word... " >&6; }
3218if test "${ac_cv_prog_CC+set}" = set; then
3219  $as_echo_n "(cached) " >&6
3220else
3221  if test -n "$CC"; then
3222  ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227  IFS=$as_save_IFS
3228  test -z "$as_dir" && as_dir=.
3229  for ac_exec_ext in '' $ac_executable_extensions; do
3230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3232    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233    break 2
3234  fi
3235done
3236done
3237IFS=$as_save_IFS
3238
3239fi
3240fi
3241CC=$ac_cv_prog_CC
3242if test -n "$CC"; then
3243  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3244$as_echo "$CC" >&6; }
3245else
3246  { $as_echo "$as_me:$LINENO: result: no" >&5
3247$as_echo "no" >&6; }
3248fi
3249
3250
3251fi
3252if test -z "$ac_cv_prog_CC"; then
3253  ac_ct_CC=$CC
3254  # Extract the first word of "gcc", so it can be a program name with args.
3255set dummy gcc; ac_word=$2
3256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3259  $as_echo_n "(cached) " >&6
3260else
3261  if test -n "$ac_ct_CC"; then
3262  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267  IFS=$as_save_IFS
3268  test -z "$as_dir" && as_dir=.
3269  for ac_exec_ext in '' $ac_executable_extensions; do
3270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271    ac_cv_prog_ac_ct_CC="gcc"
3272    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273    break 2
3274  fi
3275done
3276done
3277IFS=$as_save_IFS
3278
3279fi
3280fi
3281ac_ct_CC=$ac_cv_prog_ac_ct_CC
3282if test -n "$ac_ct_CC"; then
3283  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3284$as_echo "$ac_ct_CC" >&6; }
3285else
3286  { $as_echo "$as_me:$LINENO: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290  if test "x$ac_ct_CC" = x; then
3291    CC=""
3292  else
3293    case $cross_compiling:$ac_tool_warned in
3294yes:)
3295{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297ac_tool_warned=yes ;;
3298esac
3299    CC=$ac_ct_CC
3300  fi
3301else
3302  CC="$ac_cv_prog_CC"
3303fi
3304
3305if test -z "$CC"; then
3306          if test -n "$ac_tool_prefix"; then
3307    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3308set dummy ${ac_tool_prefix}cc; ac_word=$2
3309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3310$as_echo_n "checking for $ac_word... " >&6; }
3311if test "${ac_cv_prog_CC+set}" = set; then
3312  $as_echo_n "(cached) " >&6
3313else
3314  if test -n "$CC"; then
3315  ac_cv_prog_CC="$CC" # Let the user override the test.
3316else
3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318for as_dir in $PATH
3319do
3320  IFS=$as_save_IFS
3321  test -z "$as_dir" && as_dir=.
3322  for ac_exec_ext in '' $ac_executable_extensions; do
3323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324    ac_cv_prog_CC="${ac_tool_prefix}cc"
3325    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326    break 2
3327  fi
3328done
3329done
3330IFS=$as_save_IFS
3331
3332fi
3333fi
3334CC=$ac_cv_prog_CC
3335if test -n "$CC"; then
3336  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3337$as_echo "$CC" >&6; }
3338else
3339  { $as_echo "$as_me:$LINENO: result: no" >&5
3340$as_echo "no" >&6; }
3341fi
3342
3343
3344  fi
3345fi
3346if test -z "$CC"; then
3347  # Extract the first word of "cc", so it can be a program name with args.
3348set dummy cc; ac_word=$2
3349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3350$as_echo_n "checking for $ac_word... " >&6; }
3351if test "${ac_cv_prog_CC+set}" = set; then
3352  $as_echo_n "(cached) " >&6
3353else
3354  if test -n "$CC"; then
3355  ac_cv_prog_CC="$CC" # Let the user override the test.
3356else
3357  ac_prog_rejected=no
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361  IFS=$as_save_IFS
3362  test -z "$as_dir" && as_dir=.
3363  for ac_exec_ext in '' $ac_executable_extensions; do
3364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3366       ac_prog_rejected=yes
3367       continue
3368     fi
3369    ac_cv_prog_CC="cc"
3370    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371    break 2
3372  fi
3373done
3374done
3375IFS=$as_save_IFS
3376
3377if test $ac_prog_rejected = yes; then
3378  # We found a bogon in the path, so make sure we never use it.
3379  set dummy $ac_cv_prog_CC
3380  shift
3381  if test $# != 0; then
3382    # We chose a different compiler from the bogus one.
3383    # However, it has the same basename, so the bogon will be chosen
3384    # first if we set CC to just the basename; use the full file name.
3385    shift
3386    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3387  fi
3388fi
3389fi
3390fi
3391CC=$ac_cv_prog_CC
3392if test -n "$CC"; then
3393  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3394$as_echo "$CC" >&6; }
3395else
3396  { $as_echo "$as_me:$LINENO: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401fi
3402if test -z "$CC"; then
3403  if test -n "$ac_tool_prefix"; then
3404  for ac_prog in cl.exe
3405  do
3406    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3407set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3408{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3409$as_echo_n "checking for $ac_word... " >&6; }
3410if test "${ac_cv_prog_CC+set}" = set; then
3411  $as_echo_n "(cached) " >&6
3412else
3413  if test -n "$CC"; then
3414  ac_cv_prog_CC="$CC" # Let the user override the test.
3415else
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419  IFS=$as_save_IFS
3420  test -z "$as_dir" && as_dir=.
3421  for ac_exec_ext in '' $ac_executable_extensions; do
3422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3424    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3425    break 2
3426  fi
3427done
3428done
3429IFS=$as_save_IFS
3430
3431fi
3432fi
3433CC=$ac_cv_prog_CC
3434if test -n "$CC"; then
3435  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3436$as_echo "$CC" >&6; }
3437else
3438  { $as_echo "$as_me:$LINENO: result: no" >&5
3439$as_echo "no" >&6; }
3440fi
3441
3442
3443    test -n "$CC" && break
3444  done
3445fi
3446if test -z "$CC"; then
3447  ac_ct_CC=$CC
3448  for ac_prog in cl.exe
3449do
3450  # Extract the first word of "$ac_prog", so it can be a program name with args.
3451set dummy $ac_prog; ac_word=$2
3452{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3453$as_echo_n "checking for $ac_word... " >&6; }
3454if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3455  $as_echo_n "(cached) " >&6
3456else
3457  if test -n "$ac_ct_CC"; then
3458  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3459else
3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461for as_dir in $PATH
3462do
3463  IFS=$as_save_IFS
3464  test -z "$as_dir" && as_dir=.
3465  for ac_exec_ext in '' $ac_executable_extensions; do
3466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467    ac_cv_prog_ac_ct_CC="$ac_prog"
3468    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469    break 2
3470  fi
3471done
3472done
3473IFS=$as_save_IFS
3474
3475fi
3476fi
3477ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478if test -n "$ac_ct_CC"; then
3479  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3480$as_echo "$ac_ct_CC" >&6; }
3481else
3482  { $as_echo "$as_me:$LINENO: result: no" >&5
3483$as_echo "no" >&6; }
3484fi
3485
3486
3487  test -n "$ac_ct_CC" && break
3488done
3489
3490  if test "x$ac_ct_CC" = x; then
3491    CC=""
3492  else
3493    case $cross_compiling:$ac_tool_warned in
3494yes:)
3495{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497ac_tool_warned=yes ;;
3498esac
3499    CC=$ac_ct_CC
3500  fi
3501fi
3502
3503fi
3504
3505
3506test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3509See \`config.log' for more details." >&5
3510$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3511See \`config.log' for more details." >&2;}
3512   { (exit 1); exit 1; }; }; }
3513
3514# Provide some information about the compiler.
3515$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3516set X $ac_compile
3517ac_compiler=$2
3518{ (ac_try="$ac_compiler --version >&5"
3519case "(($ac_try" in
3520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521  *) ac_try_echo=$ac_try;;
3522esac
3523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524$as_echo "$ac_try_echo") >&5
3525  (eval "$ac_compiler --version >&5") 2>&5
3526  ac_status=$?
3527  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); }
3529{ (ac_try="$ac_compiler -v >&5"
3530case "(($ac_try" in
3531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532  *) ac_try_echo=$ac_try;;
3533esac
3534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3535$as_echo "$ac_try_echo") >&5
3536  (eval "$ac_compiler -v >&5") 2>&5
3537  ac_status=$?
3538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); }
3540{ (ac_try="$ac_compiler -V >&5"
3541case "(($ac_try" in
3542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543  *) ac_try_echo=$ac_try;;
3544esac
3545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3546$as_echo "$ac_try_echo") >&5
3547  (eval "$ac_compiler -V >&5") 2>&5
3548  ac_status=$?
3549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); }
3551
3552cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558
3559int
3560main ()
3561{
3562
3563  ;
3564  return 0;
3565}
3566_ACEOF
3567ac_clean_files_save=$ac_clean_files
3568ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3569# Try to create an executable without -o first, disregard a.out.
3570# It will help us diagnose broken compilers, and finding out an intuition
3571# of exeext.
3572{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3573$as_echo_n "checking for C compiler default output file name... " >&6; }
3574ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3575
3576# The possible output files:
3577ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3578
3579ac_rmfiles=
3580for ac_file in $ac_files
3581do
3582  case $ac_file in
3583    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3585  esac
3586done
3587rm -f $ac_rmfiles
3588
3589if { (ac_try="$ac_link_default"
3590case "(($ac_try" in
3591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592  *) ac_try_echo=$ac_try;;
3593esac
3594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3595$as_echo "$ac_try_echo") >&5
3596  (eval "$ac_link_default") 2>&5
3597  ac_status=$?
3598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); }; then
3600  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3601# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3602# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3603# so that the user can short-circuit this test for compilers unknown to
3604# Autoconf.
3605for ac_file in $ac_files ''
3606do
3607  test -f "$ac_file" || continue
3608  case $ac_file in
3609    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3610	;;
3611    [ab].out )
3612	# We found the default executable, but exeext='' is most
3613	# certainly right.
3614	break;;
3615    *.* )
3616        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3617	then :; else
3618	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3619	fi
3620	# We set ac_cv_exeext here because the later test for it is not
3621	# safe: cross compilers may not add the suffix if given an `-o'
3622	# argument, so we may need to know it at that point already.
3623	# Even if this section looks crufty: it has the advantage of
3624	# actually working.
3625	break;;
3626    * )
3627	break;;
3628  esac
3629done
3630test "$ac_cv_exeext" = no && ac_cv_exeext=
3631
3632else
3633  ac_file=''
3634fi
3635
3636{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3637$as_echo "$ac_file" >&6; }
3638if test -z "$ac_file"; then
3639  $as_echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3645See \`config.log' for more details." >&5
3646$as_echo "$as_me: error: C compiler cannot create executables
3647See \`config.log' for more details." >&2;}
3648   { (exit 77); exit 77; }; }; }
3649fi
3650
3651ac_exeext=$ac_cv_exeext
3652
3653# Check that the compiler produces executables we can run.  If not, either
3654# the compiler is broken, or we cross compile.
3655{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3656$as_echo_n "checking whether the C compiler works... " >&6; }
3657# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3658# If not cross compiling, check that we can run a simple program.
3659if test "$cross_compiling" != yes; then
3660  if { ac_try='./$ac_file'
3661  { (case "(($ac_try" in
3662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663  *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3666$as_echo "$ac_try_echo") >&5
3667  (eval "$ac_try") 2>&5
3668  ac_status=$?
3669  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670  (exit $ac_status); }; }; then
3671    cross_compiling=no
3672  else
3673    if test "$cross_compiling" = maybe; then
3674	cross_compiling=yes
3675    else
3676	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3679If you meant to cross compile, use \`--host'.
3680See \`config.log' for more details." >&5
3681$as_echo "$as_me: error: cannot run C compiled programs.
3682If you meant to cross compile, use \`--host'.
3683See \`config.log' for more details." >&2;}
3684   { (exit 1); exit 1; }; }; }
3685    fi
3686  fi
3687fi
3688{ $as_echo "$as_me:$LINENO: result: yes" >&5
3689$as_echo "yes" >&6; }
3690
3691rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3692ac_clean_files=$ac_clean_files_save
3693# Check that the compiler produces executables we can run.  If not, either
3694# the compiler is broken, or we cross compile.
3695{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3696$as_echo_n "checking whether we are cross compiling... " >&6; }
3697{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3698$as_echo "$cross_compiling" >&6; }
3699
3700{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3701$as_echo_n "checking for suffix of executables... " >&6; }
3702if { (ac_try="$ac_link"
3703case "(($ac_try" in
3704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705  *) ac_try_echo=$ac_try;;
3706esac
3707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708$as_echo "$ac_try_echo") >&5
3709  (eval "$ac_link") 2>&5
3710  ac_status=$?
3711  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); }; then
3713  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3714# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3715# work properly (i.e., refer to `conftest.exe'), while it won't with
3716# `rm'.
3717for ac_file in conftest.exe conftest conftest.*; do
3718  test -f "$ac_file" || continue
3719  case $ac_file in
3720    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3721    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3722	  break;;
3723    * ) break;;
3724  esac
3725done
3726else
3727  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3730See \`config.log' for more details." >&5
3731$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3732See \`config.log' for more details." >&2;}
3733   { (exit 1); exit 1; }; }; }
3734fi
3735
3736rm -f conftest$ac_cv_exeext
3737{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3738$as_echo "$ac_cv_exeext" >&6; }
3739
3740rm -f conftest.$ac_ext
3741EXEEXT=$ac_cv_exeext
3742ac_exeext=$EXEEXT
3743{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3744$as_echo_n "checking for suffix of object files... " >&6; }
3745if test "${ac_cv_objext+set}" = set; then
3746  $as_echo_n "(cached) " >&6
3747else
3748  cat >conftest.$ac_ext <<_ACEOF
3749/* confdefs.h.  */
3750_ACEOF
3751cat confdefs.h >>conftest.$ac_ext
3752cat >>conftest.$ac_ext <<_ACEOF
3753/* end confdefs.h.  */
3754
3755int
3756main ()
3757{
3758
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763rm -f conftest.o conftest.obj
3764if { (ac_try="$ac_compile"
3765case "(($ac_try" in
3766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767  *) ac_try_echo=$ac_try;;
3768esac
3769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3770$as_echo "$ac_try_echo") >&5
3771  (eval "$ac_compile") 2>&5
3772  ac_status=$?
3773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); }; then
3775  for ac_file in conftest.o conftest.obj conftest.*; do
3776  test -f "$ac_file" || continue;
3777  case $ac_file in
3778    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3779    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3780       break;;
3781  esac
3782done
3783else
3784  $as_echo "$as_me: failed program was:" >&5
3785sed 's/^/| /' conftest.$ac_ext >&5
3786
3787{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3790See \`config.log' for more details." >&5
3791$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3792See \`config.log' for more details." >&2;}
3793   { (exit 1); exit 1; }; }; }
3794fi
3795
3796rm -f conftest.$ac_cv_objext conftest.$ac_ext
3797fi
3798{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3799$as_echo "$ac_cv_objext" >&6; }
3800OBJEXT=$ac_cv_objext
3801ac_objext=$OBJEXT
3802{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3803$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3804if test "${ac_cv_c_compiler_gnu+set}" = set; then
3805  $as_echo_n "(cached) " >&6
3806else
3807  cat >conftest.$ac_ext <<_ACEOF
3808/* confdefs.h.  */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h.  */
3813
3814int
3815main ()
3816{
3817#ifndef __GNUC__
3818       choke me
3819#endif
3820
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825rm -f conftest.$ac_objext
3826if { (ac_try="$ac_compile"
3827case "(($ac_try" in
3828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829  *) ac_try_echo=$ac_try;;
3830esac
3831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832$as_echo "$ac_try_echo") >&5
3833  (eval "$ac_compile") 2>conftest.er1
3834  ac_status=$?
3835  grep -v '^ *+' conftest.er1 >conftest.err
3836  rm -f conftest.er1
3837  cat conftest.err >&5
3838  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); } && {
3840	 test -z "$ac_c_werror_flag" ||
3841	 test ! -s conftest.err
3842       } && test -s conftest.$ac_objext; then
3843  ac_compiler_gnu=yes
3844else
3845  $as_echo "$as_me: failed program was:" >&5
3846sed 's/^/| /' conftest.$ac_ext >&5
3847
3848	ac_compiler_gnu=no
3849fi
3850
3851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852ac_cv_c_compiler_gnu=$ac_compiler_gnu
3853
3854fi
3855{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3856$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3857if test $ac_compiler_gnu = yes; then
3858  GCC=yes
3859else
3860  GCC=
3861fi
3862ac_test_CFLAGS=${CFLAGS+set}
3863ac_save_CFLAGS=$CFLAGS
3864{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3865$as_echo_n "checking whether $CC accepts -g... " >&6; }
3866if test "${ac_cv_prog_cc_g+set}" = set; then
3867  $as_echo_n "(cached) " >&6
3868else
3869  ac_save_c_werror_flag=$ac_c_werror_flag
3870   ac_c_werror_flag=yes
3871   ac_cv_prog_cc_g=no
3872   CFLAGS="-g"
3873   cat >conftest.$ac_ext <<_ACEOF
3874/* confdefs.h.  */
3875_ACEOF
3876cat confdefs.h >>conftest.$ac_ext
3877cat >>conftest.$ac_ext <<_ACEOF
3878/* end confdefs.h.  */
3879
3880int
3881main ()
3882{
3883
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888rm -f conftest.$ac_objext
3889if { (ac_try="$ac_compile"
3890case "(($ac_try" in
3891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892  *) ac_try_echo=$ac_try;;
3893esac
3894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895$as_echo "$ac_try_echo") >&5
3896  (eval "$ac_compile") 2>conftest.er1
3897  ac_status=$?
3898  grep -v '^ *+' conftest.er1 >conftest.err
3899  rm -f conftest.er1
3900  cat conftest.err >&5
3901  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); } && {
3903	 test -z "$ac_c_werror_flag" ||
3904	 test ! -s conftest.err
3905       } && test -s conftest.$ac_objext; then
3906  ac_cv_prog_cc_g=yes
3907else
3908  $as_echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911	CFLAGS=""
3912      cat >conftest.$ac_ext <<_ACEOF
3913/* confdefs.h.  */
3914_ACEOF
3915cat confdefs.h >>conftest.$ac_ext
3916cat >>conftest.$ac_ext <<_ACEOF
3917/* end confdefs.h.  */
3918
3919int
3920main ()
3921{
3922
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927rm -f conftest.$ac_objext
3928if { (ac_try="$ac_compile"
3929case "(($ac_try" in
3930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931  *) ac_try_echo=$ac_try;;
3932esac
3933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3934$as_echo "$ac_try_echo") >&5
3935  (eval "$ac_compile") 2>conftest.er1
3936  ac_status=$?
3937  grep -v '^ *+' conftest.er1 >conftest.err
3938  rm -f conftest.er1
3939  cat conftest.err >&5
3940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941  (exit $ac_status); } && {
3942	 test -z "$ac_c_werror_flag" ||
3943	 test ! -s conftest.err
3944       } && test -s conftest.$ac_objext; then
3945  :
3946else
3947  $as_echo "$as_me: failed program was:" >&5
3948sed 's/^/| /' conftest.$ac_ext >&5
3949
3950	ac_c_werror_flag=$ac_save_c_werror_flag
3951	 CFLAGS="-g"
3952	 cat >conftest.$ac_ext <<_ACEOF
3953/* confdefs.h.  */
3954_ACEOF
3955cat confdefs.h >>conftest.$ac_ext
3956cat >>conftest.$ac_ext <<_ACEOF
3957/* end confdefs.h.  */
3958
3959int
3960main ()
3961{
3962
3963  ;
3964  return 0;
3965}
3966_ACEOF
3967rm -f conftest.$ac_objext
3968if { (ac_try="$ac_compile"
3969case "(($ac_try" in
3970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971  *) ac_try_echo=$ac_try;;
3972esac
3973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3974$as_echo "$ac_try_echo") >&5
3975  (eval "$ac_compile") 2>conftest.er1
3976  ac_status=$?
3977  grep -v '^ *+' conftest.er1 >conftest.err
3978  rm -f conftest.er1
3979  cat conftest.err >&5
3980  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); } && {
3982	 test -z "$ac_c_werror_flag" ||
3983	 test ! -s conftest.err
3984       } && test -s conftest.$ac_objext; then
3985  ac_cv_prog_cc_g=yes
3986else
3987  $as_echo "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
3990
3991fi
3992
3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994fi
3995
3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997fi
3998
3999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000   ac_c_werror_flag=$ac_save_c_werror_flag
4001fi
4002{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4003$as_echo "$ac_cv_prog_cc_g" >&6; }
4004if test "$ac_test_CFLAGS" = set; then
4005  CFLAGS=$ac_save_CFLAGS
4006elif test $ac_cv_prog_cc_g = yes; then
4007  if test "$GCC" = yes; then
4008    CFLAGS="-g -O2"
4009  else
4010    CFLAGS="-g"
4011  fi
4012else
4013  if test "$GCC" = yes; then
4014    CFLAGS="-O2"
4015  else
4016    CFLAGS=
4017  fi
4018fi
4019{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4020$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4021if test "${ac_cv_prog_cc_c89+set}" = set; then
4022  $as_echo_n "(cached) " >&6
4023else
4024  ac_cv_prog_cc_c89=no
4025ac_save_CC=$CC
4026cat >conftest.$ac_ext <<_ACEOF
4027/* confdefs.h.  */
4028_ACEOF
4029cat confdefs.h >>conftest.$ac_ext
4030cat >>conftest.$ac_ext <<_ACEOF
4031/* end confdefs.h.  */
4032#include <stdarg.h>
4033#include <stdio.h>
4034#include <sys/types.h>
4035#include <sys/stat.h>
4036/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4037struct buf { int x; };
4038FILE * (*rcsopen) (struct buf *, struct stat *, int);
4039static char *e (p, i)
4040     char **p;
4041     int i;
4042{
4043  return p[i];
4044}
4045static char *f (char * (*g) (char **, int), char **p, ...)
4046{
4047  char *s;
4048  va_list v;
4049  va_start (v,p);
4050  s = g (p, va_arg (v,int));
4051  va_end (v);
4052  return s;
4053}
4054
4055/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4056   function prototypes and stuff, but not '\xHH' hex character constants.
4057   These don't provoke an error unfortunately, instead are silently treated
4058   as 'x'.  The following induces an error, until -std is added to get
4059   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4060   array size at least.  It's necessary to write '\x00'==0 to get something
4061   that's true only with -std.  */
4062int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4063
4064/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4065   inside strings and character constants.  */
4066#define FOO(x) 'x'
4067int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4068
4069int test (int i, double x);
4070struct s1 {int (*f) (int a);};
4071struct s2 {int (*f) (double a);};
4072int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4073int argc;
4074char **argv;
4075int
4076main ()
4077{
4078return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4079  ;
4080  return 0;
4081}
4082_ACEOF
4083for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4084	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4085do
4086  CC="$ac_save_CC $ac_arg"
4087  rm -f conftest.$ac_objext
4088if { (ac_try="$ac_compile"
4089case "(($ac_try" in
4090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091  *) ac_try_echo=$ac_try;;
4092esac
4093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4094$as_echo "$ac_try_echo") >&5
4095  (eval "$ac_compile") 2>conftest.er1
4096  ac_status=$?
4097  grep -v '^ *+' conftest.er1 >conftest.err
4098  rm -f conftest.er1
4099  cat conftest.err >&5
4100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101  (exit $ac_status); } && {
4102	 test -z "$ac_c_werror_flag" ||
4103	 test ! -s conftest.err
4104       } && test -s conftest.$ac_objext; then
4105  ac_cv_prog_cc_c89=$ac_arg
4106else
4107  $as_echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110
4111fi
4112
4113rm -f core conftest.err conftest.$ac_objext
4114  test "x$ac_cv_prog_cc_c89" != "xno" && break
4115done
4116rm -f conftest.$ac_ext
4117CC=$ac_save_CC
4118
4119fi
4120# AC_CACHE_VAL
4121case "x$ac_cv_prog_cc_c89" in
4122  x)
4123    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4124$as_echo "none needed" >&6; } ;;
4125  xno)
4126    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4127$as_echo "unsupported" >&6; } ;;
4128  *)
4129    CC="$CC $ac_cv_prog_cc_c89"
4130    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4131$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4132esac
4133
4134
4135ac_ext=c
4136ac_cpp='$CPP $CPPFLAGS'
4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141depcc="$CC"   am_compiler_list=
4142
4143{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4144$as_echo_n "checking dependency style of $depcc... " >&6; }
4145if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4146  $as_echo_n "(cached) " >&6
4147else
4148  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4149  # We make a subdir and do the tests there.  Otherwise we can end up
4150  # making bogus files that we don't know about and never remove.  For
4151  # instance it was reported that on HP-UX the gcc test will end up
4152  # making a dummy file named `D' -- because `-MD' means `put the output
4153  # in D'.
4154  mkdir conftest.dir
4155  # Copy depcomp to subdir because otherwise we won't find it if we're
4156  # using a relative directory.
4157  cp "$am_depcomp" conftest.dir
4158  cd conftest.dir
4159  # We will build objects and dependencies in a subdirectory because
4160  # it helps to detect inapplicable dependency modes.  For instance
4161  # both Tru64's cc and ICC support -MD to output dependencies as a
4162  # side effect of compilation, but ICC will put the dependencies in
4163  # the current directory while Tru64 will put them in the object
4164  # directory.
4165  mkdir sub
4166
4167  am_cv_CC_dependencies_compiler_type=none
4168  if test "$am_compiler_list" = ""; then
4169     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4170  fi
4171  for depmode in $am_compiler_list; do
4172    # Setup a source with many dependencies, because some compilers
4173    # like to wrap large dependency lists on column 80 (with \), and
4174    # we should not choose a depcomp mode which is confused by this.
4175    #
4176    # We need to recreate these files for each test, as the compiler may
4177    # overwrite some of them when testing with obscure command lines.
4178    # This happens at least with the AIX C compiler.
4179    : > sub/conftest.c
4180    for i in 1 2 3 4 5 6; do
4181      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4182      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4183      # Solaris 8's {/usr,}/bin/sh.
4184      touch sub/conftst$i.h
4185    done
4186    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4187
4188    case $depmode in
4189    nosideeffect)
4190      # after this tag, mechanisms are not by side-effect, so they'll
4191      # only be used when explicitly requested
4192      if test "x$enable_dependency_tracking" = xyes; then
4193	continue
4194      else
4195	break
4196      fi
4197      ;;
4198    none) break ;;
4199    esac
4200    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4201    # mode.  It turns out that the SunPro C++ compiler does not properly
4202    # handle `-M -o', and we need to detect this.
4203    if depmode=$depmode \
4204       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4205       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4206       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4207         >/dev/null 2>conftest.err &&
4208       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4209       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4210       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4211       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4212      # icc doesn't choke on unknown options, it will just issue warnings
4213      # or remarks (even with -Werror).  So we grep stderr for any message
4214      # that says an option was ignored or not supported.
4215      # When given -MP, icc 7.0 and 7.1 complain thusly:
4216      #   icc: Command line warning: ignoring option '-M'; no argument required
4217      # The diagnosis changed in icc 8.0:
4218      #   icc: Command line remark: option '-MP' not supported
4219      if (grep 'ignoring option' conftest.err ||
4220          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4221        am_cv_CC_dependencies_compiler_type=$depmode
4222        break
4223      fi
4224    fi
4225  done
4226
4227  cd ..
4228  rm -rf conftest.dir
4229else
4230  am_cv_CC_dependencies_compiler_type=none
4231fi
4232
4233fi
4234{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4235$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4236CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4237
4238 if
4239  test "x$enable_dependency_tracking" != xno \
4240  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4241  am__fastdepCC_TRUE=
4242  am__fastdepCC_FALSE='#'
4243else
4244  am__fastdepCC_TRUE='#'
4245  am__fastdepCC_FALSE=
4246fi
4247
4248
4249# Make sure we can run config.sub.
4250$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4251  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4252$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4253   { (exit 1); exit 1; }; }
4254
4255{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4256$as_echo_n "checking build system type... " >&6; }
4257if test "${ac_cv_build+set}" = set; then
4258  $as_echo_n "(cached) " >&6
4259else
4260  ac_build_alias=$build_alias
4261test "x$ac_build_alias" = x &&
4262  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4263test "x$ac_build_alias" = x &&
4264  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4265$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4266   { (exit 1); exit 1; }; }
4267ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4268  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4269$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4270   { (exit 1); exit 1; }; }
4271
4272fi
4273{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4274$as_echo "$ac_cv_build" >&6; }
4275case $ac_cv_build in
4276*-*-*) ;;
4277*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4278$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4279   { (exit 1); exit 1; }; };;
4280esac
4281build=$ac_cv_build
4282ac_save_IFS=$IFS; IFS='-'
4283set x $ac_cv_build
4284shift
4285build_cpu=$1
4286build_vendor=$2
4287shift; shift
4288# Remember, the first character of IFS is used to create $*,
4289# except with old shells:
4290build_os=$*
4291IFS=$ac_save_IFS
4292case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4293
4294
4295{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4296$as_echo_n "checking host system type... " >&6; }
4297if test "${ac_cv_host+set}" = set; then
4298  $as_echo_n "(cached) " >&6
4299else
4300  if test "x$host_alias" = x; then
4301  ac_cv_host=$ac_cv_build
4302else
4303  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4304    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4305$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4306   { (exit 1); exit 1; }; }
4307fi
4308
4309fi
4310{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4311$as_echo "$ac_cv_host" >&6; }
4312case $ac_cv_host in
4313*-*-*) ;;
4314*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4315$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4316   { (exit 1); exit 1; }; };;
4317esac
4318host=$ac_cv_host
4319ac_save_IFS=$IFS; IFS='-'
4320set x $ac_cv_host
4321shift
4322host_cpu=$1
4323host_vendor=$2
4324shift; shift
4325# Remember, the first character of IFS is used to create $*,
4326# except with old shells:
4327host_os=$*
4328IFS=$ac_save_IFS
4329case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4330
4331
4332if test -n "$ac_tool_prefix"; then
4333  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4334set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4335{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4336$as_echo_n "checking for $ac_word... " >&6; }
4337if test "${ac_cv_prog_RANLIB+set}" = set; then
4338  $as_echo_n "(cached) " >&6
4339else
4340  if test -n "$RANLIB"; then
4341  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346  IFS=$as_save_IFS
4347  test -z "$as_dir" && as_dir=.
4348  for ac_exec_ext in '' $ac_executable_extensions; do
4349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4351    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352    break 2
4353  fi
4354done
4355done
4356IFS=$as_save_IFS
4357
4358fi
4359fi
4360RANLIB=$ac_cv_prog_RANLIB
4361if test -n "$RANLIB"; then
4362  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4363$as_echo "$RANLIB" >&6; }
4364else
4365  { $as_echo "$as_me:$LINENO: result: no" >&5
4366$as_echo "no" >&6; }
4367fi
4368
4369
4370fi
4371if test -z "$ac_cv_prog_RANLIB"; then
4372  ac_ct_RANLIB=$RANLIB
4373  # Extract the first word of "ranlib", so it can be a program name with args.
4374set dummy ranlib; ac_word=$2
4375{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4376$as_echo_n "checking for $ac_word... " >&6; }
4377if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4378  $as_echo_n "(cached) " >&6
4379else
4380  if test -n "$ac_ct_RANLIB"; then
4381  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4382else
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386  IFS=$as_save_IFS
4387  test -z "$as_dir" && as_dir=.
4388  for ac_exec_ext in '' $ac_executable_extensions; do
4389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390    ac_cv_prog_ac_ct_RANLIB="ranlib"
4391    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392    break 2
4393  fi
4394done
4395done
4396IFS=$as_save_IFS
4397
4398fi
4399fi
4400ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4401if test -n "$ac_ct_RANLIB"; then
4402  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4403$as_echo "$ac_ct_RANLIB" >&6; }
4404else
4405  { $as_echo "$as_me:$LINENO: result: no" >&5
4406$as_echo "no" >&6; }
4407fi
4408
4409  if test "x$ac_ct_RANLIB" = x; then
4410    RANLIB=":"
4411  else
4412    case $cross_compiling:$ac_tool_warned in
4413yes:)
4414{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4416ac_tool_warned=yes ;;
4417esac
4418    RANLIB=$ac_ct_RANLIB
4419  fi
4420else
4421  RANLIB="$ac_cv_prog_RANLIB"
4422fi
4423
4424
4425
4426        { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4427$as_echo_n "checking for strerror in -lcposix... " >&6; }
4428if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4429  $as_echo_n "(cached) " >&6
4430else
4431  ac_check_lib_save_LIBS=$LIBS
4432LIBS="-lcposix  $LIBS"
4433cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h.  */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h.  */
4439
4440/* Override any GCC internal prototype to avoid an error.
4441   Use char because int might match the return type of a GCC
4442   builtin and then its argument prototype would still apply.  */
4443#ifdef __cplusplus
4444extern "C"
4445#endif
4446char strerror ();
4447int
4448main ()
4449{
4450return strerror ();
4451  ;
4452  return 0;
4453}
4454_ACEOF
4455rm -f conftest.$ac_objext conftest$ac_exeext
4456if { (ac_try="$ac_link"
4457case "(($ac_try" in
4458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459  *) ac_try_echo=$ac_try;;
4460esac
4461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4462$as_echo "$ac_try_echo") >&5
4463  (eval "$ac_link") 2>conftest.er1
4464  ac_status=$?
4465  grep -v '^ *+' conftest.er1 >conftest.err
4466  rm -f conftest.er1
4467  cat conftest.err >&5
4468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); } && {
4470	 test -z "$ac_c_werror_flag" ||
4471	 test ! -s conftest.err
4472       } && test -s conftest$ac_exeext && {
4473	 test "$cross_compiling" = yes ||
4474	 $as_test_x conftest$ac_exeext
4475       }; then
4476  ac_cv_lib_cposix_strerror=yes
4477else
4478  $as_echo "$as_me: failed program was:" >&5
4479sed 's/^/| /' conftest.$ac_ext >&5
4480
4481	ac_cv_lib_cposix_strerror=no
4482fi
4483
4484rm -rf conftest.dSYM
4485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4486      conftest$ac_exeext conftest.$ac_ext
4487LIBS=$ac_check_lib_save_LIBS
4488fi
4489{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4490$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4491if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
4492  LIBS="$LIBS -lcposix"
4493fi
4494
4495
4496
4497ac_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{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4503$as_echo_n "checking how to run the C preprocessor... " >&6; }
4504# On Suns, sometimes $CPP names a directory.
4505if test -n "$CPP" && test -d "$CPP"; then
4506  CPP=
4507fi
4508if test -z "$CPP"; then
4509  if test "${ac_cv_prog_CPP+set}" = set; then
4510  $as_echo_n "(cached) " >&6
4511else
4512      # Double quotes because CPP needs to be expanded
4513    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4514    do
4515      ac_preproc_ok=false
4516for ac_c_preproc_warn_flag in '' yes
4517do
4518  # Use a header file that comes with gcc, so configuring glibc
4519  # with a fresh cross-compiler works.
4520  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521  # <limits.h> exists even on freestanding compilers.
4522  # On the NeXT, cc -E runs the code through the compiler's parser,
4523  # not just through cpp. "Syntax error" is here to catch this case.
4524  cat >conftest.$ac_ext <<_ACEOF
4525/* confdefs.h.  */
4526_ACEOF
4527cat confdefs.h >>conftest.$ac_ext
4528cat >>conftest.$ac_ext <<_ACEOF
4529/* end confdefs.h.  */
4530#ifdef __STDC__
4531# include <limits.h>
4532#else
4533# include <assert.h>
4534#endif
4535		     Syntax error
4536_ACEOF
4537if { (ac_try="$ac_cpp conftest.$ac_ext"
4538case "(($ac_try" in
4539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540  *) ac_try_echo=$ac_try;;
4541esac
4542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4543$as_echo "$ac_try_echo") >&5
4544  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545  ac_status=$?
4546  grep -v '^ *+' conftest.er1 >conftest.err
4547  rm -f conftest.er1
4548  cat conftest.err >&5
4549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); } >/dev/null && {
4551	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4552	 test ! -s conftest.err
4553       }; then
4554  :
4555else
4556  $as_echo "$as_me: failed program was:" >&5
4557sed 's/^/| /' conftest.$ac_ext >&5
4558
4559  # Broken: fails on valid input.
4560continue
4561fi
4562
4563rm -f conftest.err conftest.$ac_ext
4564
4565  # OK, works on sane cases.  Now check whether nonexistent headers
4566  # can be detected and how.
4567  cat >conftest.$ac_ext <<_ACEOF
4568/* confdefs.h.  */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
4572/* end confdefs.h.  */
4573#include <ac_nonexistent.h>
4574_ACEOF
4575if { (ac_try="$ac_cpp conftest.$ac_ext"
4576case "(($ac_try" in
4577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578  *) ac_try_echo=$ac_try;;
4579esac
4580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4581$as_echo "$ac_try_echo") >&5
4582  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4583  ac_status=$?
4584  grep -v '^ *+' conftest.er1 >conftest.err
4585  rm -f conftest.er1
4586  cat conftest.err >&5
4587  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); } >/dev/null && {
4589	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4590	 test ! -s conftest.err
4591       }; then
4592  # Broken: success on invalid input.
4593continue
4594else
4595  $as_echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598  # Passes both tests.
4599ac_preproc_ok=:
4600break
4601fi
4602
4603rm -f conftest.err conftest.$ac_ext
4604
4605done
4606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607rm -f conftest.err conftest.$ac_ext
4608if $ac_preproc_ok; then
4609  break
4610fi
4611
4612    done
4613    ac_cv_prog_CPP=$CPP
4614
4615fi
4616  CPP=$ac_cv_prog_CPP
4617else
4618  ac_cv_prog_CPP=$CPP
4619fi
4620{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4621$as_echo "$CPP" >&6; }
4622ac_preproc_ok=false
4623for ac_c_preproc_warn_flag in '' yes
4624do
4625  # Use a header file that comes with gcc, so configuring glibc
4626  # with a fresh cross-compiler works.
4627  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4628  # <limits.h> exists even on freestanding compilers.
4629  # On the NeXT, cc -E runs the code through the compiler's parser,
4630  # not just through cpp. "Syntax error" is here to catch this case.
4631  cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h.  */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h.  */
4637#ifdef __STDC__
4638# include <limits.h>
4639#else
4640# include <assert.h>
4641#endif
4642		     Syntax error
4643_ACEOF
4644if { (ac_try="$ac_cpp conftest.$ac_ext"
4645case "(($ac_try" in
4646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647  *) ac_try_echo=$ac_try;;
4648esac
4649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4650$as_echo "$ac_try_echo") >&5
4651  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4652  ac_status=$?
4653  grep -v '^ *+' conftest.er1 >conftest.err
4654  rm -f conftest.er1
4655  cat conftest.err >&5
4656  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); } >/dev/null && {
4658	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4659	 test ! -s conftest.err
4660       }; then
4661  :
4662else
4663  $as_echo "$as_me: failed program was:" >&5
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
4666  # Broken: fails on valid input.
4667continue
4668fi
4669
4670rm -f conftest.err conftest.$ac_ext
4671
4672  # OK, works on sane cases.  Now check whether nonexistent headers
4673  # can be detected and how.
4674  cat >conftest.$ac_ext <<_ACEOF
4675/* confdefs.h.  */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h.  */
4680#include <ac_nonexistent.h>
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4688$as_echo "$ac_try_echo") >&5
4689  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4690  ac_status=$?
4691  grep -v '^ *+' conftest.er1 >conftest.err
4692  rm -f conftest.er1
4693  cat conftest.err >&5
4694  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695  (exit $ac_status); } >/dev/null && {
4696	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4697	 test ! -s conftest.err
4698       }; then
4699  # Broken: success on invalid input.
4700continue
4701else
4702  $as_echo "$as_me: failed program was:" >&5
4703sed 's/^/| /' conftest.$ac_ext >&5
4704
4705  # Passes both tests.
4706ac_preproc_ok=:
4707break
4708fi
4709
4710rm -f conftest.err conftest.$ac_ext
4711
4712done
4713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4714rm -f conftest.err conftest.$ac_ext
4715if $ac_preproc_ok; then
4716  :
4717else
4718  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4720{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4721See \`config.log' for more details." >&5
4722$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4723See \`config.log' for more details." >&2;}
4724   { (exit 1); exit 1; }; }; }
4725fi
4726
4727ac_ext=c
4728ac_cpp='$CPP $CPPFLAGS'
4729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732
4733
4734{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4735$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4736if test "${ac_cv_path_GREP+set}" = set; then
4737  $as_echo_n "(cached) " >&6
4738else
4739  if test -z "$GREP"; then
4740  ac_path_GREP_found=false
4741  # Loop through the user's path and test for each of PROGNAME-LIST
4742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4744do
4745  IFS=$as_save_IFS
4746  test -z "$as_dir" && as_dir=.
4747  for ac_prog in grep ggrep; do
4748    for ac_exec_ext in '' $ac_executable_extensions; do
4749      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4750      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4751# Check for GNU ac_path_GREP and select it if it is found.
4752  # Check for GNU $ac_path_GREP
4753case `"$ac_path_GREP" --version 2>&1` in
4754*GNU*)
4755  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4756*)
4757  ac_count=0
4758  $as_echo_n 0123456789 >"conftest.in"
4759  while :
4760  do
4761    cat "conftest.in" "conftest.in" >"conftest.tmp"
4762    mv "conftest.tmp" "conftest.in"
4763    cp "conftest.in" "conftest.nl"
4764    $as_echo 'GREP' >> "conftest.nl"
4765    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4766    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4767    ac_count=`expr $ac_count + 1`
4768    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4769      # Best one so far, save it but keep looking for a better one
4770      ac_cv_path_GREP="$ac_path_GREP"
4771      ac_path_GREP_max=$ac_count
4772    fi
4773    # 10*(2^10) chars as input seems more than enough
4774    test $ac_count -gt 10 && break
4775  done
4776  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4777esac
4778
4779      $ac_path_GREP_found && break 3
4780    done
4781  done
4782done
4783IFS=$as_save_IFS
4784  if test -z "$ac_cv_path_GREP"; then
4785    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4786$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4787   { (exit 1); exit 1; }; }
4788  fi
4789else
4790  ac_cv_path_GREP=$GREP
4791fi
4792
4793fi
4794{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4795$as_echo "$ac_cv_path_GREP" >&6; }
4796 GREP="$ac_cv_path_GREP"
4797
4798
4799{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4800$as_echo_n "checking for egrep... " >&6; }
4801if test "${ac_cv_path_EGREP+set}" = set; then
4802  $as_echo_n "(cached) " >&6
4803else
4804  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4805   then ac_cv_path_EGREP="$GREP -E"
4806   else
4807     if test -z "$EGREP"; then
4808  ac_path_EGREP_found=false
4809  # Loop through the user's path and test for each of PROGNAME-LIST
4810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812do
4813  IFS=$as_save_IFS
4814  test -z "$as_dir" && as_dir=.
4815  for ac_prog in egrep; do
4816    for ac_exec_ext in '' $ac_executable_extensions; do
4817      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4818      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4819# Check for GNU ac_path_EGREP and select it if it is found.
4820  # Check for GNU $ac_path_EGREP
4821case `"$ac_path_EGREP" --version 2>&1` in
4822*GNU*)
4823  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4824*)
4825  ac_count=0
4826  $as_echo_n 0123456789 >"conftest.in"
4827  while :
4828  do
4829    cat "conftest.in" "conftest.in" >"conftest.tmp"
4830    mv "conftest.tmp" "conftest.in"
4831    cp "conftest.in" "conftest.nl"
4832    $as_echo 'EGREP' >> "conftest.nl"
4833    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835    ac_count=`expr $ac_count + 1`
4836    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4837      # Best one so far, save it but keep looking for a better one
4838      ac_cv_path_EGREP="$ac_path_EGREP"
4839      ac_path_EGREP_max=$ac_count
4840    fi
4841    # 10*(2^10) chars as input seems more than enough
4842    test $ac_count -gt 10 && break
4843  done
4844  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845esac
4846
4847      $ac_path_EGREP_found && break 3
4848    done
4849  done
4850done
4851IFS=$as_save_IFS
4852  if test -z "$ac_cv_path_EGREP"; then
4853    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4854$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4855   { (exit 1); exit 1; }; }
4856  fi
4857else
4858  ac_cv_path_EGREP=$EGREP
4859fi
4860
4861   fi
4862fi
4863{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4864$as_echo "$ac_cv_path_EGREP" >&6; }
4865 EGREP="$ac_cv_path_EGREP"
4866
4867
4868{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4869$as_echo_n "checking for ANSI C header files... " >&6; }
4870if test "${ac_cv_header_stdc+set}" = set; then
4871  $as_echo_n "(cached) " >&6
4872else
4873  cat >conftest.$ac_ext <<_ACEOF
4874/* confdefs.h.  */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h.  */
4879#include <stdlib.h>
4880#include <stdarg.h>
4881#include <string.h>
4882#include <float.h>
4883
4884int
4885main ()
4886{
4887
4888  ;
4889  return 0;
4890}
4891_ACEOF
4892rm -f conftest.$ac_objext
4893if { (ac_try="$ac_compile"
4894case "(($ac_try" in
4895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896  *) ac_try_echo=$ac_try;;
4897esac
4898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4899$as_echo "$ac_try_echo") >&5
4900  (eval "$ac_compile") 2>conftest.er1
4901  ac_status=$?
4902  grep -v '^ *+' conftest.er1 >conftest.err
4903  rm -f conftest.er1
4904  cat conftest.err >&5
4905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906  (exit $ac_status); } && {
4907	 test -z "$ac_c_werror_flag" ||
4908	 test ! -s conftest.err
4909       } && test -s conftest.$ac_objext; then
4910  ac_cv_header_stdc=yes
4911else
4912  $as_echo "$as_me: failed program was:" >&5
4913sed 's/^/| /' conftest.$ac_ext >&5
4914
4915	ac_cv_header_stdc=no
4916fi
4917
4918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919
4920if test $ac_cv_header_stdc = yes; then
4921  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4922  cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h.  */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h.  */
4928#include <string.h>
4929
4930_ACEOF
4931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4932  $EGREP "memchr" >/dev/null 2>&1; then
4933  :
4934else
4935  ac_cv_header_stdc=no
4936fi
4937rm -f conftest*
4938
4939fi
4940
4941if test $ac_cv_header_stdc = yes; then
4942  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4943  cat >conftest.$ac_ext <<_ACEOF
4944/* confdefs.h.  */
4945_ACEOF
4946cat confdefs.h >>conftest.$ac_ext
4947cat >>conftest.$ac_ext <<_ACEOF
4948/* end confdefs.h.  */
4949#include <stdlib.h>
4950
4951_ACEOF
4952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4953  $EGREP "free" >/dev/null 2>&1; then
4954  :
4955else
4956  ac_cv_header_stdc=no
4957fi
4958rm -f conftest*
4959
4960fi
4961
4962if test $ac_cv_header_stdc = yes; then
4963  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4964  if test "$cross_compiling" = yes; then
4965  :
4966else
4967  cat >conftest.$ac_ext <<_ACEOF
4968/* confdefs.h.  */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h.  */
4973#include <ctype.h>
4974#include <stdlib.h>
4975#if ((' ' & 0x0FF) == 0x020)
4976# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4977# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4978#else
4979# define ISLOWER(c) \
4980		   (('a' <= (c) && (c) <= 'i') \
4981		     || ('j' <= (c) && (c) <= 'r') \
4982		     || ('s' <= (c) && (c) <= 'z'))
4983# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4984#endif
4985
4986#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4987int
4988main ()
4989{
4990  int i;
4991  for (i = 0; i < 256; i++)
4992    if (XOR (islower (i), ISLOWER (i))
4993	|| toupper (i) != TOUPPER (i))
4994      return 2;
4995  return 0;
4996}
4997_ACEOF
4998rm -f conftest$ac_exeext
4999if { (ac_try="$ac_link"
5000case "(($ac_try" in
5001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002  *) ac_try_echo=$ac_try;;
5003esac
5004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5005$as_echo "$ac_try_echo") >&5
5006  (eval "$ac_link") 2>&5
5007  ac_status=$?
5008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5010  { (case "(($ac_try" in
5011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012  *) ac_try_echo=$ac_try;;
5013esac
5014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5015$as_echo "$ac_try_echo") >&5
5016  (eval "$ac_try") 2>&5
5017  ac_status=$?
5018  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); }; }; then
5020  :
5021else
5022  $as_echo "$as_me: program exited with status $ac_status" >&5
5023$as_echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026( exit $ac_status )
5027ac_cv_header_stdc=no
5028fi
5029rm -rf conftest.dSYM
5030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5031fi
5032
5033
5034fi
5035fi
5036{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5037$as_echo "$ac_cv_header_stdc" >&6; }
5038if test $ac_cv_header_stdc = yes; then
5039
5040cat >>confdefs.h <<\_ACEOF
5041#define STDC_HEADERS 1
5042_ACEOF
5043
5044fi
5045
5046{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5047$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5048if test "${ac_cv_c_const+set}" = set; then
5049  $as_echo_n "(cached) " >&6
5050else
5051  cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h.  */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h.  */
5057
5058int
5059main ()
5060{
5061/* FIXME: Include the comments suggested by Paul. */
5062#ifndef __cplusplus
5063  /* Ultrix mips cc rejects this.  */
5064  typedef int charset[2];
5065  const charset cs;
5066  /* SunOS 4.1.1 cc rejects this.  */
5067  char const *const *pcpcc;
5068  char **ppc;
5069  /* NEC SVR4.0.2 mips cc rejects this.  */
5070  struct point {int x, y;};
5071  static struct point const zero = {0,0};
5072  /* AIX XL C 1.02.0.0 rejects this.
5073     It does not let you subtract one const X* pointer from another in
5074     an arm of an if-expression whose if-part is not a constant
5075     expression */
5076  const char *g = "string";
5077  pcpcc = &g + (g ? g-g : 0);
5078  /* HPUX 7.0 cc rejects these. */
5079  ++pcpcc;
5080  ppc = (char**) pcpcc;
5081  pcpcc = (char const *const *) ppc;
5082  { /* SCO 3.2v4 cc rejects this.  */
5083    char *t;
5084    char const *s = 0 ? (char *) 0 : (char const *) 0;
5085
5086    *t++ = 0;
5087    if (s) return 0;
5088  }
5089  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5090    int x[] = {25, 17};
5091    const int *foo = &x[0];
5092    ++foo;
5093  }
5094  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5095    typedef const int *iptr;
5096    iptr p = 0;
5097    ++p;
5098  }
5099  { /* AIX XL C 1.02.0.0 rejects this saying
5100       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5101    struct s { int j; const int *ap[3]; };
5102    struct s *b; b->j = 5;
5103  }
5104  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5105    const int foo = 10;
5106    if (!foo) return 0;
5107  }
5108  return !cs[0] && !zero.x;
5109#endif
5110
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115rm -f conftest.$ac_objext
5116if { (ac_try="$ac_compile"
5117case "(($ac_try" in
5118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119  *) ac_try_echo=$ac_try;;
5120esac
5121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5122$as_echo "$ac_try_echo") >&5
5123  (eval "$ac_compile") 2>conftest.er1
5124  ac_status=$?
5125  grep -v '^ *+' conftest.er1 >conftest.err
5126  rm -f conftest.er1
5127  cat conftest.err >&5
5128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129  (exit $ac_status); } && {
5130	 test -z "$ac_c_werror_flag" ||
5131	 test ! -s conftest.err
5132       } && test -s conftest.$ac_objext; then
5133  ac_cv_c_const=yes
5134else
5135  $as_echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138	ac_cv_c_const=no
5139fi
5140
5141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142fi
5143{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5144$as_echo "$ac_cv_c_const" >&6; }
5145if test $ac_cv_c_const = no; then
5146
5147cat >>confdefs.h <<\_ACEOF
5148#define const /**/
5149_ACEOF
5150
5151fi
5152
5153
5154  { $as_echo "$as_me:$LINENO: checking for signed" >&5
5155$as_echo_n "checking for signed... " >&6; }
5156if test "${bh_cv_c_signed+set}" = set; then
5157  $as_echo_n "(cached) " >&6
5158else
5159  cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h.  */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h.  */
5165
5166int
5167main ()
5168{
5169signed char x;
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174rm -f conftest.$ac_objext
5175if { (ac_try="$ac_compile"
5176case "(($ac_try" in
5177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178  *) ac_try_echo=$ac_try;;
5179esac
5180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5181$as_echo "$ac_try_echo") >&5
5182  (eval "$ac_compile") 2>conftest.er1
5183  ac_status=$?
5184  grep -v '^ *+' conftest.er1 >conftest.err
5185  rm -f conftest.er1
5186  cat conftest.err >&5
5187  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188  (exit $ac_status); } && {
5189	 test -z "$ac_c_werror_flag" ||
5190	 test ! -s conftest.err
5191       } && test -s conftest.$ac_objext; then
5192  bh_cv_c_signed=yes
5193else
5194  $as_echo "$as_me: failed program was:" >&5
5195sed 's/^/| /' conftest.$ac_ext >&5
5196
5197	bh_cv_c_signed=no
5198fi
5199
5200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201fi
5202{ $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5203$as_echo "$bh_cv_c_signed" >&6; }
5204  if test $bh_cv_c_signed = no; then
5205
5206cat >>confdefs.h <<\_ACEOF
5207#define signed /**/
5208_ACEOF
5209
5210  fi
5211
5212{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5213$as_echo_n "checking for inline... " >&6; }
5214if test "${ac_cv_c_inline+set}" = set; then
5215  $as_echo_n "(cached) " >&6
5216else
5217  ac_cv_c_inline=no
5218for ac_kw in inline __inline__ __inline; do
5219  cat >conftest.$ac_ext <<_ACEOF
5220/* confdefs.h.  */
5221_ACEOF
5222cat confdefs.h >>conftest.$ac_ext
5223cat >>conftest.$ac_ext <<_ACEOF
5224/* end confdefs.h.  */
5225#ifndef __cplusplus
5226typedef int foo_t;
5227static $ac_kw foo_t static_foo () {return 0; }
5228$ac_kw foo_t foo () {return 0; }
5229#endif
5230
5231_ACEOF
5232rm -f conftest.$ac_objext
5233if { (ac_try="$ac_compile"
5234case "(($ac_try" in
5235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236  *) ac_try_echo=$ac_try;;
5237esac
5238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5239$as_echo "$ac_try_echo") >&5
5240  (eval "$ac_compile") 2>conftest.er1
5241  ac_status=$?
5242  grep -v '^ *+' conftest.er1 >conftest.err
5243  rm -f conftest.er1
5244  cat conftest.err >&5
5245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246  (exit $ac_status); } && {
5247	 test -z "$ac_c_werror_flag" ||
5248	 test ! -s conftest.err
5249       } && test -s conftest.$ac_objext; then
5250  ac_cv_c_inline=$ac_kw
5251else
5252  $as_echo "$as_me: failed program was:" >&5
5253sed 's/^/| /' conftest.$ac_ext >&5
5254
5255
5256fi
5257
5258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259  test "$ac_cv_c_inline" != no && break
5260done
5261
5262fi
5263{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5264$as_echo "$ac_cv_c_inline" >&6; }
5265
5266
5267case $ac_cv_c_inline in
5268  inline | yes) ;;
5269  *)
5270    case $ac_cv_c_inline in
5271      no) ac_val=;;
5272      *) ac_val=$ac_cv_c_inline;;
5273    esac
5274    cat >>confdefs.h <<_ACEOF
5275#ifndef __cplusplus
5276#define inline $ac_val
5277#endif
5278_ACEOF
5279    ;;
5280esac
5281
5282# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5293		  inttypes.h stdint.h unistd.h
5294do
5295as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5297$as_echo_n "checking for $ac_header... " >&6; }
5298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299  $as_echo_n "(cached) " >&6
5300else
5301  cat >conftest.$ac_ext <<_ACEOF
5302/* confdefs.h.  */
5303_ACEOF
5304cat confdefs.h >>conftest.$ac_ext
5305cat >>conftest.$ac_ext <<_ACEOF
5306/* end confdefs.h.  */
5307$ac_includes_default
5308
5309#include <$ac_header>
5310_ACEOF
5311rm -f conftest.$ac_objext
5312if { (ac_try="$ac_compile"
5313case "(($ac_try" in
5314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315  *) ac_try_echo=$ac_try;;
5316esac
5317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5318$as_echo "$ac_try_echo") >&5
5319  (eval "$ac_compile") 2>conftest.er1
5320  ac_status=$?
5321  grep -v '^ *+' conftest.er1 >conftest.err
5322  rm -f conftest.er1
5323  cat conftest.err >&5
5324  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); } && {
5326	 test -z "$ac_c_werror_flag" ||
5327	 test ! -s conftest.err
5328       } && test -s conftest.$ac_objext; then
5329  eval "$as_ac_Header=yes"
5330else
5331  $as_echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5
5333
5334	eval "$as_ac_Header=no"
5335fi
5336
5337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338fi
5339ac_res=`eval 'as_val=${'$as_ac_Header'}
5340		 $as_echo "$as_val"'`
5341	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5342$as_echo "$ac_res" >&6; }
5343as_val=`eval 'as_val=${'$as_ac_Header'}
5344		 $as_echo "$as_val"'`
5345   if test "x$as_val" = x""yes; then
5346  cat >>confdefs.h <<_ACEOF
5347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5348_ACEOF
5349
5350fi
5351
5352done
5353
5354
5355{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5356$as_echo_n "checking for off_t... " >&6; }
5357if test "${ac_cv_type_off_t+set}" = set; then
5358  $as_echo_n "(cached) " >&6
5359else
5360  ac_cv_type_off_t=no
5361cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h.  */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h.  */
5367$ac_includes_default
5368int
5369main ()
5370{
5371if (sizeof (off_t))
5372       return 0;
5373  ;
5374  return 0;
5375}
5376_ACEOF
5377rm -f conftest.$ac_objext
5378if { (ac_try="$ac_compile"
5379case "(($ac_try" in
5380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381  *) ac_try_echo=$ac_try;;
5382esac
5383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384$as_echo "$ac_try_echo") >&5
5385  (eval "$ac_compile") 2>conftest.er1
5386  ac_status=$?
5387  grep -v '^ *+' conftest.er1 >conftest.err
5388  rm -f conftest.er1
5389  cat conftest.err >&5
5390  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); } && {
5392	 test -z "$ac_c_werror_flag" ||
5393	 test ! -s conftest.err
5394       } && test -s conftest.$ac_objext; then
5395  cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h.  */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h.  */
5401$ac_includes_default
5402int
5403main ()
5404{
5405if (sizeof ((off_t)))
5406	  return 0;
5407  ;
5408  return 0;
5409}
5410_ACEOF
5411rm -f conftest.$ac_objext
5412if { (ac_try="$ac_compile"
5413case "(($ac_try" in
5414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415  *) ac_try_echo=$ac_try;;
5416esac
5417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5418$as_echo "$ac_try_echo") >&5
5419  (eval "$ac_compile") 2>conftest.er1
5420  ac_status=$?
5421  grep -v '^ *+' conftest.er1 >conftest.err
5422  rm -f conftest.er1
5423  cat conftest.err >&5
5424  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425  (exit $ac_status); } && {
5426	 test -z "$ac_c_werror_flag" ||
5427	 test ! -s conftest.err
5428       } && test -s conftest.$ac_objext; then
5429  :
5430else
5431  $as_echo "$as_me: failed program was:" >&5
5432sed 's/^/| /' conftest.$ac_ext >&5
5433
5434	ac_cv_type_off_t=yes
5435fi
5436
5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438else
5439  $as_echo "$as_me: failed program was:" >&5
5440sed 's/^/| /' conftest.$ac_ext >&5
5441
5442
5443fi
5444
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446fi
5447{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5448$as_echo "$ac_cv_type_off_t" >&6; }
5449if test "x$ac_cv_type_off_t" = x""yes; then
5450  :
5451else
5452
5453cat >>confdefs.h <<_ACEOF
5454#define off_t long int
5455_ACEOF
5456
5457fi
5458
5459{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5460$as_echo_n "checking for size_t... " >&6; }
5461if test "${ac_cv_type_size_t+set}" = set; then
5462  $as_echo_n "(cached) " >&6
5463else
5464  ac_cv_type_size_t=no
5465cat >conftest.$ac_ext <<_ACEOF
5466/* confdefs.h.  */
5467_ACEOF
5468cat confdefs.h >>conftest.$ac_ext
5469cat >>conftest.$ac_ext <<_ACEOF
5470/* end confdefs.h.  */
5471$ac_includes_default
5472int
5473main ()
5474{
5475if (sizeof (size_t))
5476       return 0;
5477  ;
5478  return 0;
5479}
5480_ACEOF
5481rm -f conftest.$ac_objext
5482if { (ac_try="$ac_compile"
5483case "(($ac_try" in
5484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485  *) ac_try_echo=$ac_try;;
5486esac
5487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5488$as_echo "$ac_try_echo") >&5
5489  (eval "$ac_compile") 2>conftest.er1
5490  ac_status=$?
5491  grep -v '^ *+' conftest.er1 >conftest.err
5492  rm -f conftest.er1
5493  cat conftest.err >&5
5494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495  (exit $ac_status); } && {
5496	 test -z "$ac_c_werror_flag" ||
5497	 test ! -s conftest.err
5498       } && test -s conftest.$ac_objext; then
5499  cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h.  */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h.  */
5505$ac_includes_default
5506int
5507main ()
5508{
5509if (sizeof ((size_t)))
5510	  return 0;
5511  ;
5512  return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext
5516if { (ac_try="$ac_compile"
5517case "(($ac_try" in
5518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519  *) ac_try_echo=$ac_try;;
5520esac
5521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5522$as_echo "$ac_try_echo") >&5
5523  (eval "$ac_compile") 2>conftest.er1
5524  ac_status=$?
5525  grep -v '^ *+' conftest.er1 >conftest.err
5526  rm -f conftest.er1
5527  cat conftest.err >&5
5528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529  (exit $ac_status); } && {
5530	 test -z "$ac_c_werror_flag" ||
5531	 test ! -s conftest.err
5532       } && test -s conftest.$ac_objext; then
5533  :
5534else
5535  $as_echo "$as_me: failed program was:" >&5
5536sed 's/^/| /' conftest.$ac_ext >&5
5537
5538	ac_cv_type_size_t=yes
5539fi
5540
5541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542else
5543  $as_echo "$as_me: failed program was:" >&5
5544sed 's/^/| /' conftest.$ac_ext >&5
5545
5546
5547fi
5548
5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550fi
5551{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5552$as_echo "$ac_cv_type_size_t" >&6; }
5553if test "x$ac_cv_type_size_t" = x""yes; then
5554  :
5555else
5556
5557cat >>confdefs.h <<_ACEOF
5558#define size_t unsigned int
5559_ACEOF
5560
5561fi
5562
5563
5564  { $as_echo "$as_me:$LINENO: checking for long long" >&5
5565$as_echo_n "checking for long long... " >&6; }
5566if test "${ac_cv_type_long_long+set}" = set; then
5567  $as_echo_n "(cached) " >&6
5568else
5569  cat >conftest.$ac_ext <<_ACEOF
5570/* confdefs.h.  */
5571_ACEOF
5572cat confdefs.h >>conftest.$ac_ext
5573cat >>conftest.$ac_ext <<_ACEOF
5574/* end confdefs.h.  */
5575long long ll = 1LL; int i = 63;
5576int
5577main ()
5578{
5579long long llmax = (long long) -1;
5580     return ll << i | ll >> i | llmax / ll | llmax % ll;
5581  ;
5582  return 0;
5583}
5584_ACEOF
5585rm -f conftest.$ac_objext conftest$ac_exeext
5586if { (ac_try="$ac_link"
5587case "(($ac_try" in
5588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589  *) ac_try_echo=$ac_try;;
5590esac
5591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5592$as_echo "$ac_try_echo") >&5
5593  (eval "$ac_link") 2>conftest.er1
5594  ac_status=$?
5595  grep -v '^ *+' conftest.er1 >conftest.err
5596  rm -f conftest.er1
5597  cat conftest.err >&5
5598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599  (exit $ac_status); } && {
5600	 test -z "$ac_c_werror_flag" ||
5601	 test ! -s conftest.err
5602       } && test -s conftest$ac_exeext && {
5603	 test "$cross_compiling" = yes ||
5604	 $as_test_x conftest$ac_exeext
5605       }; then
5606  ac_cv_type_long_long=yes
5607else
5608  $as_echo "$as_me: failed program was:" >&5
5609sed 's/^/| /' conftest.$ac_ext >&5
5610
5611	ac_cv_type_long_long=no
5612fi
5613
5614rm -rf conftest.dSYM
5615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5616      conftest$ac_exeext conftest.$ac_ext
5617fi
5618{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5619$as_echo "$ac_cv_type_long_long" >&6; }
5620  if test $ac_cv_type_long_long = yes; then
5621
5622cat >>confdefs.h <<\_ACEOF
5623#define HAVE_LONG_LONG 1
5624_ACEOF
5625
5626  fi
5627
5628
5629  { $as_echo "$as_me:$LINENO: checking for long double" >&5
5630$as_echo_n "checking for long double... " >&6; }
5631if test "${gt_cv_c_long_double+set}" = set; then
5632  $as_echo_n "(cached) " >&6
5633else
5634  if test "$GCC" = yes; then
5635       gt_cv_c_long_double=yes
5636     else
5637       cat >conftest.$ac_ext <<_ACEOF
5638/* confdefs.h.  */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h.  */
5643
5644         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5645         long double foo = 0.0;
5646         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5647         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5648
5649int
5650main ()
5651{
5652
5653  ;
5654  return 0;
5655}
5656_ACEOF
5657rm -f conftest.$ac_objext
5658if { (ac_try="$ac_compile"
5659case "(($ac_try" in
5660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661  *) ac_try_echo=$ac_try;;
5662esac
5663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5664$as_echo "$ac_try_echo") >&5
5665  (eval "$ac_compile") 2>conftest.er1
5666  ac_status=$?
5667  grep -v '^ *+' conftest.er1 >conftest.err
5668  rm -f conftest.er1
5669  cat conftest.err >&5
5670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); } && {
5672	 test -z "$ac_c_werror_flag" ||
5673	 test ! -s conftest.err
5674       } && test -s conftest.$ac_objext; then
5675  gt_cv_c_long_double=yes
5676else
5677  $as_echo "$as_me: failed program was:" >&5
5678sed 's/^/| /' conftest.$ac_ext >&5
5679
5680	gt_cv_c_long_double=no
5681fi
5682
5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684     fi
5685fi
5686{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5687$as_echo "$gt_cv_c_long_double" >&6; }
5688  if test $gt_cv_c_long_double = yes; then
5689
5690cat >>confdefs.h <<\_ACEOF
5691#define HAVE_LONG_DOUBLE 1
5692_ACEOF
5693
5694  fi
5695
5696
5697  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
5698$as_echo_n "checking for wchar_t... " >&6; }
5699if test "${gt_cv_c_wchar_t+set}" = set; then
5700  $as_echo_n "(cached) " >&6
5701else
5702  cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h.  */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h.  */
5708#include <stddef.h>
5709       wchar_t foo = (wchar_t)'\0';
5710int
5711main ()
5712{
5713
5714  ;
5715  return 0;
5716}
5717_ACEOF
5718rm -f conftest.$ac_objext
5719if { (ac_try="$ac_compile"
5720case "(($ac_try" in
5721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722  *) ac_try_echo=$ac_try;;
5723esac
5724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725$as_echo "$ac_try_echo") >&5
5726  (eval "$ac_compile") 2>conftest.er1
5727  ac_status=$?
5728  grep -v '^ *+' conftest.er1 >conftest.err
5729  rm -f conftest.er1
5730  cat conftest.err >&5
5731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732  (exit $ac_status); } && {
5733	 test -z "$ac_c_werror_flag" ||
5734	 test ! -s conftest.err
5735       } && test -s conftest.$ac_objext; then
5736  gt_cv_c_wchar_t=yes
5737else
5738  $as_echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741	gt_cv_c_wchar_t=no
5742fi
5743
5744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745fi
5746{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5747$as_echo "$gt_cv_c_wchar_t" >&6; }
5748  if test $gt_cv_c_wchar_t = yes; then
5749
5750cat >>confdefs.h <<\_ACEOF
5751#define HAVE_WCHAR_T 1
5752_ACEOF
5753
5754  fi
5755
5756
5757  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
5758$as_echo_n "checking for wint_t... " >&6; }
5759if test "${gt_cv_c_wint_t+set}" = set; then
5760  $as_echo_n "(cached) " >&6
5761else
5762  cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h.  */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h.  */
5768#include <wchar.h>
5769       wint_t foo = (wchar_t)'\0';
5770int
5771main ()
5772{
5773
5774  ;
5775  return 0;
5776}
5777_ACEOF
5778rm -f conftest.$ac_objext
5779if { (ac_try="$ac_compile"
5780case "(($ac_try" in
5781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782  *) ac_try_echo=$ac_try;;
5783esac
5784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5785$as_echo "$ac_try_echo") >&5
5786  (eval "$ac_compile") 2>conftest.er1
5787  ac_status=$?
5788  grep -v '^ *+' conftest.er1 >conftest.err
5789  rm -f conftest.er1
5790  cat conftest.err >&5
5791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792  (exit $ac_status); } && {
5793	 test -z "$ac_c_werror_flag" ||
5794	 test ! -s conftest.err
5795       } && test -s conftest.$ac_objext; then
5796  gt_cv_c_wint_t=yes
5797else
5798  $as_echo "$as_me: failed program was:" >&5
5799sed 's/^/| /' conftest.$ac_ext >&5
5800
5801	gt_cv_c_wint_t=no
5802fi
5803
5804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805fi
5806{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5807$as_echo "$gt_cv_c_wint_t" >&6; }
5808  if test $gt_cv_c_wint_t = yes; then
5809
5810cat >>confdefs.h <<\_ACEOF
5811#define HAVE_WINT_T 1
5812_ACEOF
5813
5814  fi
5815
5816
5817  { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
5818$as_echo_n "checking for inttypes.h... " >&6; }
5819if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5820  $as_echo_n "(cached) " >&6
5821else
5822  cat >conftest.$ac_ext <<_ACEOF
5823/* confdefs.h.  */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h.  */
5828#include <sys/types.h>
5829#include <inttypes.h>
5830int
5831main ()
5832{
5833uintmax_t i = (uintmax_t) -1;
5834  ;
5835  return 0;
5836}
5837_ACEOF
5838rm -f conftest.$ac_objext
5839if { (ac_try="$ac_compile"
5840case "(($ac_try" in
5841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842  *) ac_try_echo=$ac_try;;
5843esac
5844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5845$as_echo "$ac_try_echo") >&5
5846  (eval "$ac_compile") 2>conftest.er1
5847  ac_status=$?
5848  grep -v '^ *+' conftest.er1 >conftest.err
5849  rm -f conftest.er1
5850  cat conftest.err >&5
5851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852  (exit $ac_status); } && {
5853	 test -z "$ac_c_werror_flag" ||
5854	 test ! -s conftest.err
5855       } && test -s conftest.$ac_objext; then
5856  jm_ac_cv_header_inttypes_h=yes
5857else
5858  $as_echo "$as_me: failed program was:" >&5
5859sed 's/^/| /' conftest.$ac_ext >&5
5860
5861	jm_ac_cv_header_inttypes_h=no
5862fi
5863
5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865fi
5866{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5867$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
5868  if test $jm_ac_cv_header_inttypes_h = yes; then
5869
5870cat >>confdefs.h <<_ACEOF
5871#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5872_ACEOF
5873
5874  fi
5875
5876
5877  { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
5878$as_echo_n "checking for stdint.h... " >&6; }
5879if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5880  $as_echo_n "(cached) " >&6
5881else
5882  cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h.  */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h.  */
5888#include <sys/types.h>
5889#include <stdint.h>
5890int
5891main ()
5892{
5893uintmax_t i = (uintmax_t) -1;
5894  ;
5895  return 0;
5896}
5897_ACEOF
5898rm -f conftest.$ac_objext
5899if { (ac_try="$ac_compile"
5900case "(($ac_try" in
5901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902  *) ac_try_echo=$ac_try;;
5903esac
5904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5905$as_echo "$ac_try_echo") >&5
5906  (eval "$ac_compile") 2>conftest.er1
5907  ac_status=$?
5908  grep -v '^ *+' conftest.er1 >conftest.err
5909  rm -f conftest.er1
5910  cat conftest.err >&5
5911  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); } && {
5913	 test -z "$ac_c_werror_flag" ||
5914	 test ! -s conftest.err
5915       } && test -s conftest.$ac_objext; then
5916  jm_ac_cv_header_stdint_h=yes
5917else
5918  $as_echo "$as_me: failed program was:" >&5
5919sed 's/^/| /' conftest.$ac_ext >&5
5920
5921	jm_ac_cv_header_stdint_h=no
5922fi
5923
5924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925fi
5926{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5927$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
5928  if test $jm_ac_cv_header_stdint_h = yes; then
5929
5930cat >>confdefs.h <<_ACEOF
5931#define HAVE_STDINT_H_WITH_UINTMAX 1
5932_ACEOF
5933
5934  fi
5935
5936
5937
5938
5939  { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
5940$as_echo_n "checking for intmax_t... " >&6; }
5941if test "${gt_cv_c_intmax_t+set}" = set; then
5942  $as_echo_n "(cached) " >&6
5943else
5944  cat >conftest.$ac_ext <<_ACEOF
5945/* confdefs.h.  */
5946_ACEOF
5947cat confdefs.h >>conftest.$ac_ext
5948cat >>conftest.$ac_ext <<_ACEOF
5949/* end confdefs.h.  */
5950
5951#include <stddef.h>
5952#include <stdlib.h>
5953#if HAVE_STDINT_H_WITH_UINTMAX
5954#include <stdint.h>
5955#endif
5956#if HAVE_INTTYPES_H_WITH_UINTMAX
5957#include <inttypes.h>
5958#endif
5959
5960int
5961main ()
5962{
5963intmax_t x = -1;
5964  ;
5965  return 0;
5966}
5967_ACEOF
5968rm -f conftest.$ac_objext
5969if { (ac_try="$ac_compile"
5970case "(($ac_try" in
5971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972  *) ac_try_echo=$ac_try;;
5973esac
5974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5975$as_echo "$ac_try_echo") >&5
5976  (eval "$ac_compile") 2>conftest.er1
5977  ac_status=$?
5978  grep -v '^ *+' conftest.er1 >conftest.err
5979  rm -f conftest.er1
5980  cat conftest.err >&5
5981  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982  (exit $ac_status); } && {
5983	 test -z "$ac_c_werror_flag" ||
5984	 test ! -s conftest.err
5985       } && test -s conftest.$ac_objext; then
5986  gt_cv_c_intmax_t=yes
5987else
5988  $as_echo "$as_me: failed program was:" >&5
5989sed 's/^/| /' conftest.$ac_ext >&5
5990
5991	gt_cv_c_intmax_t=no
5992fi
5993
5994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995fi
5996{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5997$as_echo "$gt_cv_c_intmax_t" >&6; }
5998  if test $gt_cv_c_intmax_t = yes; then
5999
6000cat >>confdefs.h <<\_ACEOF
6001#define HAVE_INTMAX_T 1
6002_ACEOF
6003
6004  fi
6005
6006
6007
6008  { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6009$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6010if test "${gt_cv_func_printf_posix+set}" = set; then
6011  $as_echo_n "(cached) " >&6
6012else
6013
6014      if test "$cross_compiling" = yes; then
6015
6016        cat >conftest.$ac_ext <<_ACEOF
6017/* confdefs.h.  */
6018_ACEOF
6019cat confdefs.h >>conftest.$ac_ext
6020cat >>conftest.$ac_ext <<_ACEOF
6021/* end confdefs.h.  */
6022
6023#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6024  notposix
6025#endif
6026
6027_ACEOF
6028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6029  $EGREP "notposix" >/dev/null 2>&1; then
6030  gt_cv_func_printf_posix="guessing no"
6031else
6032  gt_cv_func_printf_posix="guessing yes"
6033fi
6034rm -f conftest*
6035
6036
6037else
6038  cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h.  */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h.  */
6044
6045#include <stdio.h>
6046#include <string.h>
6047/* The string "%2$d %1$d", with dollar characters protected from the shell's
6048   dollar expansion (possibly an autoconf bug).  */
6049static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6050static char buf[100];
6051int main ()
6052{
6053  sprintf (buf, format, 33, 55);
6054  return (strcmp (buf, "55 33") != 0);
6055}
6056_ACEOF
6057rm -f conftest$ac_exeext
6058if { (ac_try="$ac_link"
6059case "(($ac_try" in
6060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061  *) ac_try_echo=$ac_try;;
6062esac
6063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064$as_echo "$ac_try_echo") >&5
6065  (eval "$ac_link") 2>&5
6066  ac_status=$?
6067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6069  { (case "(($ac_try" in
6070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071  *) ac_try_echo=$ac_try;;
6072esac
6073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6074$as_echo "$ac_try_echo") >&5
6075  (eval "$ac_try") 2>&5
6076  ac_status=$?
6077  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078  (exit $ac_status); }; }; then
6079  gt_cv_func_printf_posix=yes
6080else
6081  $as_echo "$as_me: program exited with status $ac_status" >&5
6082$as_echo "$as_me: failed program was:" >&5
6083sed 's/^/| /' conftest.$ac_ext >&5
6084
6085( exit $ac_status )
6086gt_cv_func_printf_posix=no
6087fi
6088rm -rf conftest.dSYM
6089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6090fi
6091
6092
6093
6094fi
6095{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6096$as_echo "$gt_cv_func_printf_posix" >&6; }
6097  case $gt_cv_func_printf_posix in
6098    *yes)
6099
6100cat >>confdefs.h <<\_ACEOF
6101#define HAVE_POSIX_PRINTF 1
6102_ACEOF
6103
6104      ;;
6105  esac
6106
6107# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6108# for constant arguments.  Useless!
6109{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6110$as_echo_n "checking for working alloca.h... " >&6; }
6111if test "${ac_cv_working_alloca_h+set}" = set; then
6112  $as_echo_n "(cached) " >&6
6113else
6114  cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h.  */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h.  */
6120#include <alloca.h>
6121int
6122main ()
6123{
6124char *p = (char *) alloca (2 * sizeof (int));
6125			  if (p) return 0;
6126  ;
6127  return 0;
6128}
6129_ACEOF
6130rm -f conftest.$ac_objext conftest$ac_exeext
6131if { (ac_try="$ac_link"
6132case "(($ac_try" in
6133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134  *) ac_try_echo=$ac_try;;
6135esac
6136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137$as_echo "$ac_try_echo") >&5
6138  (eval "$ac_link") 2>conftest.er1
6139  ac_status=$?
6140  grep -v '^ *+' conftest.er1 >conftest.err
6141  rm -f conftest.er1
6142  cat conftest.err >&5
6143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); } && {
6145	 test -z "$ac_c_werror_flag" ||
6146	 test ! -s conftest.err
6147       } && test -s conftest$ac_exeext && {
6148	 test "$cross_compiling" = yes ||
6149	 $as_test_x conftest$ac_exeext
6150       }; then
6151  ac_cv_working_alloca_h=yes
6152else
6153  $as_echo "$as_me: failed program was:" >&5
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
6156	ac_cv_working_alloca_h=no
6157fi
6158
6159rm -rf conftest.dSYM
6160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6161      conftest$ac_exeext conftest.$ac_ext
6162fi
6163{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6164$as_echo "$ac_cv_working_alloca_h" >&6; }
6165if test $ac_cv_working_alloca_h = yes; then
6166
6167cat >>confdefs.h <<\_ACEOF
6168#define HAVE_ALLOCA_H 1
6169_ACEOF
6170
6171fi
6172
6173{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6174$as_echo_n "checking for alloca... " >&6; }
6175if test "${ac_cv_func_alloca_works+set}" = set; then
6176  $as_echo_n "(cached) " >&6
6177else
6178  cat >conftest.$ac_ext <<_ACEOF
6179/* confdefs.h.  */
6180_ACEOF
6181cat confdefs.h >>conftest.$ac_ext
6182cat >>conftest.$ac_ext <<_ACEOF
6183/* end confdefs.h.  */
6184#ifdef __GNUC__
6185# define alloca __builtin_alloca
6186#else
6187# ifdef _MSC_VER
6188#  include <malloc.h>
6189#  define alloca _alloca
6190# else
6191#  ifdef HAVE_ALLOCA_H
6192#   include <alloca.h>
6193#  else
6194#   ifdef _AIX
6195 #pragma alloca
6196#   else
6197#    ifndef alloca /* predefined by HP cc +Olibcalls */
6198char *alloca ();
6199#    endif
6200#   endif
6201#  endif
6202# endif
6203#endif
6204
6205int
6206main ()
6207{
6208char *p = (char *) alloca (1);
6209				    if (p) return 0;
6210  ;
6211  return 0;
6212}
6213_ACEOF
6214rm -f conftest.$ac_objext conftest$ac_exeext
6215if { (ac_try="$ac_link"
6216case "(($ac_try" in
6217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218  *) ac_try_echo=$ac_try;;
6219esac
6220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6221$as_echo "$ac_try_echo") >&5
6222  (eval "$ac_link") 2>conftest.er1
6223  ac_status=$?
6224  grep -v '^ *+' conftest.er1 >conftest.err
6225  rm -f conftest.er1
6226  cat conftest.err >&5
6227  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228  (exit $ac_status); } && {
6229	 test -z "$ac_c_werror_flag" ||
6230	 test ! -s conftest.err
6231       } && test -s conftest$ac_exeext && {
6232	 test "$cross_compiling" = yes ||
6233	 $as_test_x conftest$ac_exeext
6234       }; then
6235  ac_cv_func_alloca_works=yes
6236else
6237  $as_echo "$as_me: failed program was:" >&5
6238sed 's/^/| /' conftest.$ac_ext >&5
6239
6240	ac_cv_func_alloca_works=no
6241fi
6242
6243rm -rf conftest.dSYM
6244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6245      conftest$ac_exeext conftest.$ac_ext
6246fi
6247{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6248$as_echo "$ac_cv_func_alloca_works" >&6; }
6249
6250if test $ac_cv_func_alloca_works = yes; then
6251
6252cat >>confdefs.h <<\_ACEOF
6253#define HAVE_ALLOCA 1
6254_ACEOF
6255
6256else
6257  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6258# that cause trouble.  Some versions do not even contain alloca or
6259# contain a buggy version.  If you still want to use their alloca,
6260# use ar to extract alloca.o from them instead of compiling alloca.c.
6261
6262ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6263
6264cat >>confdefs.h <<\_ACEOF
6265#define C_ALLOCA 1
6266_ACEOF
6267
6268
6269{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6270$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6271if test "${ac_cv_os_cray+set}" = set; then
6272  $as_echo_n "(cached) " >&6
6273else
6274  cat >conftest.$ac_ext <<_ACEOF
6275/* confdefs.h.  */
6276_ACEOF
6277cat confdefs.h >>conftest.$ac_ext
6278cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h.  */
6280#if defined CRAY && ! defined CRAY2
6281webecray
6282#else
6283wenotbecray
6284#endif
6285
6286_ACEOF
6287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288  $EGREP "webecray" >/dev/null 2>&1; then
6289  ac_cv_os_cray=yes
6290else
6291  ac_cv_os_cray=no
6292fi
6293rm -f conftest*
6294
6295fi
6296{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6297$as_echo "$ac_cv_os_cray" >&6; }
6298if test $ac_cv_os_cray = yes; then
6299  for ac_func in _getb67 GETB67 getb67; do
6300    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6301{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6302$as_echo_n "checking for $ac_func... " >&6; }
6303if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6304  $as_echo_n "(cached) " >&6
6305else
6306  cat >conftest.$ac_ext <<_ACEOF
6307/* confdefs.h.  */
6308_ACEOF
6309cat confdefs.h >>conftest.$ac_ext
6310cat >>conftest.$ac_ext <<_ACEOF
6311/* end confdefs.h.  */
6312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6313   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6314#define $ac_func innocuous_$ac_func
6315
6316/* System header to define __stub macros and hopefully few prototypes,
6317    which can conflict with char $ac_func (); below.
6318    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6319    <limits.h> exists even on freestanding compilers.  */
6320
6321#ifdef __STDC__
6322# include <limits.h>
6323#else
6324# include <assert.h>
6325#endif
6326
6327#undef $ac_func
6328
6329/* Override any GCC internal prototype to avoid an error.
6330   Use char because int might match the return type of a GCC
6331   builtin and then its argument prototype would still apply.  */
6332#ifdef __cplusplus
6333extern "C"
6334#endif
6335char $ac_func ();
6336/* The GNU C library defines this for functions which it implements
6337    to always fail with ENOSYS.  Some functions are actually named
6338    something starting with __ and the normal name is an alias.  */
6339#if defined __stub_$ac_func || defined __stub___$ac_func
6340choke me
6341#endif
6342
6343int
6344main ()
6345{
6346return $ac_func ();
6347  ;
6348  return 0;
6349}
6350_ACEOF
6351rm -f conftest.$ac_objext conftest$ac_exeext
6352if { (ac_try="$ac_link"
6353case "(($ac_try" in
6354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355  *) ac_try_echo=$ac_try;;
6356esac
6357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6358$as_echo "$ac_try_echo") >&5
6359  (eval "$ac_link") 2>conftest.er1
6360  ac_status=$?
6361  grep -v '^ *+' conftest.er1 >conftest.err
6362  rm -f conftest.er1
6363  cat conftest.err >&5
6364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); } && {
6366	 test -z "$ac_c_werror_flag" ||
6367	 test ! -s conftest.err
6368       } && test -s conftest$ac_exeext && {
6369	 test "$cross_compiling" = yes ||
6370	 $as_test_x conftest$ac_exeext
6371       }; then
6372  eval "$as_ac_var=yes"
6373else
6374  $as_echo "$as_me: failed program was:" >&5
6375sed 's/^/| /' conftest.$ac_ext >&5
6376
6377	eval "$as_ac_var=no"
6378fi
6379
6380rm -rf conftest.dSYM
6381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6382      conftest$ac_exeext conftest.$ac_ext
6383fi
6384ac_res=`eval 'as_val=${'$as_ac_var'}
6385		 $as_echo "$as_val"'`
6386	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6387$as_echo "$ac_res" >&6; }
6388as_val=`eval 'as_val=${'$as_ac_var'}
6389		 $as_echo "$as_val"'`
6390   if test "x$as_val" = x""yes; then
6391
6392cat >>confdefs.h <<_ACEOF
6393#define CRAY_STACKSEG_END $ac_func
6394_ACEOF
6395
6396    break
6397fi
6398
6399  done
6400fi
6401
6402{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6403$as_echo_n "checking stack direction for C alloca... " >&6; }
6404if test "${ac_cv_c_stack_direction+set}" = set; then
6405  $as_echo_n "(cached) " >&6
6406else
6407  if test "$cross_compiling" = yes; then
6408  ac_cv_c_stack_direction=0
6409else
6410  cat >conftest.$ac_ext <<_ACEOF
6411/* confdefs.h.  */
6412_ACEOF
6413cat confdefs.h >>conftest.$ac_ext
6414cat >>conftest.$ac_ext <<_ACEOF
6415/* end confdefs.h.  */
6416$ac_includes_default
6417int
6418find_stack_direction ()
6419{
6420  static char *addr = 0;
6421  auto char dummy;
6422  if (addr == 0)
6423    {
6424      addr = &dummy;
6425      return find_stack_direction ();
6426    }
6427  else
6428    return (&dummy > addr) ? 1 : -1;
6429}
6430
6431int
6432main ()
6433{
6434  return find_stack_direction () < 0;
6435}
6436_ACEOF
6437rm -f conftest$ac_exeext
6438if { (ac_try="$ac_link"
6439case "(($ac_try" in
6440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441  *) ac_try_echo=$ac_try;;
6442esac
6443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6444$as_echo "$ac_try_echo") >&5
6445  (eval "$ac_link") 2>&5
6446  ac_status=$?
6447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6449  { (case "(($ac_try" in
6450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451  *) ac_try_echo=$ac_try;;
6452esac
6453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6454$as_echo "$ac_try_echo") >&5
6455  (eval "$ac_try") 2>&5
6456  ac_status=$?
6457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }; }; then
6459  ac_cv_c_stack_direction=1
6460else
6461  $as_echo "$as_me: program exited with status $ac_status" >&5
6462$as_echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465( exit $ac_status )
6466ac_cv_c_stack_direction=-1
6467fi
6468rm -rf conftest.dSYM
6469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6470fi
6471
6472
6473fi
6474{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6475$as_echo "$ac_cv_c_stack_direction" >&6; }
6476
6477cat >>confdefs.h <<_ACEOF
6478#define STACK_DIRECTION $ac_cv_c_stack_direction
6479_ACEOF
6480
6481
6482fi
6483
6484
6485
6486for ac_header in stdlib.h unistd.h
6487do
6488as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6490  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6491$as_echo_n "checking for $ac_header... " >&6; }
6492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6493  $as_echo_n "(cached) " >&6
6494fi
6495ac_res=`eval 'as_val=${'$as_ac_Header'}
6496		 $as_echo "$as_val"'`
6497	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6498$as_echo "$ac_res" >&6; }
6499else
6500  # Is the header compilable?
6501{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6502$as_echo_n "checking $ac_header usability... " >&6; }
6503cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h.  */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h.  */
6509$ac_includes_default
6510#include <$ac_header>
6511_ACEOF
6512rm -f conftest.$ac_objext
6513if { (ac_try="$ac_compile"
6514case "(($ac_try" in
6515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516  *) ac_try_echo=$ac_try;;
6517esac
6518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6519$as_echo "$ac_try_echo") >&5
6520  (eval "$ac_compile") 2>conftest.er1
6521  ac_status=$?
6522  grep -v '^ *+' conftest.er1 >conftest.err
6523  rm -f conftest.er1
6524  cat conftest.err >&5
6525  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526  (exit $ac_status); } && {
6527	 test -z "$ac_c_werror_flag" ||
6528	 test ! -s conftest.err
6529       } && test -s conftest.$ac_objext; then
6530  ac_header_compiler=yes
6531else
6532  $as_echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535	ac_header_compiler=no
6536fi
6537
6538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6540$as_echo "$ac_header_compiler" >&6; }
6541
6542# Is the header present?
6543{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6544$as_echo_n "checking $ac_header presence... " >&6; }
6545cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h.  */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h.  */
6551#include <$ac_header>
6552_ACEOF
6553if { (ac_try="$ac_cpp conftest.$ac_ext"
6554case "(($ac_try" in
6555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556  *) ac_try_echo=$ac_try;;
6557esac
6558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559$as_echo "$ac_try_echo") >&5
6560  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6561  ac_status=$?
6562  grep -v '^ *+' conftest.er1 >conftest.err
6563  rm -f conftest.er1
6564  cat conftest.err >&5
6565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); } >/dev/null && {
6567	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6568	 test ! -s conftest.err
6569       }; then
6570  ac_header_preproc=yes
6571else
6572  $as_echo "$as_me: failed program was:" >&5
6573sed 's/^/| /' conftest.$ac_ext >&5
6574
6575  ac_header_preproc=no
6576fi
6577
6578rm -f conftest.err conftest.$ac_ext
6579{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6580$as_echo "$ac_header_preproc" >&6; }
6581
6582# So?  What about this header?
6583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6584  yes:no: )
6585    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6586$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6587    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6588$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6589    ac_header_preproc=yes
6590    ;;
6591  no:yes:* )
6592    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6593$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6594    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6595$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6596    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6597$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6598    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6599$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6600    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6601$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6602    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6603$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6604    ( cat <<\_ASBOX
6605## ------------------------------------ ##
6606## Report this to suzhe@tsinghua.org.cn ##
6607## ------------------------------------ ##
6608_ASBOX
6609     ) | sed "s/^/$as_me: WARNING:     /" >&2
6610    ;;
6611esac
6612{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6613$as_echo_n "checking for $ac_header... " >&6; }
6614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6615  $as_echo_n "(cached) " >&6
6616else
6617  eval "$as_ac_Header=\$ac_header_preproc"
6618fi
6619ac_res=`eval 'as_val=${'$as_ac_Header'}
6620		 $as_echo "$as_val"'`
6621	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6622$as_echo "$ac_res" >&6; }
6623
6624fi
6625as_val=`eval 'as_val=${'$as_ac_Header'}
6626		 $as_echo "$as_val"'`
6627   if test "x$as_val" = x""yes; then
6628  cat >>confdefs.h <<_ACEOF
6629#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6630_ACEOF
6631
6632fi
6633
6634done
6635
6636
6637for ac_func in getpagesize
6638do
6639as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6640{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6641$as_echo_n "checking for $ac_func... " >&6; }
6642if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6643  $as_echo_n "(cached) " >&6
6644else
6645  cat >conftest.$ac_ext <<_ACEOF
6646/* confdefs.h.  */
6647_ACEOF
6648cat confdefs.h >>conftest.$ac_ext
6649cat >>conftest.$ac_ext <<_ACEOF
6650/* end confdefs.h.  */
6651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6652   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6653#define $ac_func innocuous_$ac_func
6654
6655/* System header to define __stub macros and hopefully few prototypes,
6656    which can conflict with char $ac_func (); below.
6657    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6658    <limits.h> exists even on freestanding compilers.  */
6659
6660#ifdef __STDC__
6661# include <limits.h>
6662#else
6663# include <assert.h>
6664#endif
6665
6666#undef $ac_func
6667
6668/* Override any GCC internal prototype to avoid an error.
6669   Use char because int might match the return type of a GCC
6670   builtin and then its argument prototype would still apply.  */
6671#ifdef __cplusplus
6672extern "C"
6673#endif
6674char $ac_func ();
6675/* The GNU C library defines this for functions which it implements
6676    to always fail with ENOSYS.  Some functions are actually named
6677    something starting with __ and the normal name is an alias.  */
6678#if defined __stub_$ac_func || defined __stub___$ac_func
6679choke me
6680#endif
6681
6682int
6683main ()
6684{
6685return $ac_func ();
6686  ;
6687  return 0;
6688}
6689_ACEOF
6690rm -f conftest.$ac_objext conftest$ac_exeext
6691if { (ac_try="$ac_link"
6692case "(($ac_try" in
6693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694  *) ac_try_echo=$ac_try;;
6695esac
6696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6697$as_echo "$ac_try_echo") >&5
6698  (eval "$ac_link") 2>conftest.er1
6699  ac_status=$?
6700  grep -v '^ *+' conftest.er1 >conftest.err
6701  rm -f conftest.er1
6702  cat conftest.err >&5
6703  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704  (exit $ac_status); } && {
6705	 test -z "$ac_c_werror_flag" ||
6706	 test ! -s conftest.err
6707       } && test -s conftest$ac_exeext && {
6708	 test "$cross_compiling" = yes ||
6709	 $as_test_x conftest$ac_exeext
6710       }; then
6711  eval "$as_ac_var=yes"
6712else
6713  $as_echo "$as_me: failed program was:" >&5
6714sed 's/^/| /' conftest.$ac_ext >&5
6715
6716	eval "$as_ac_var=no"
6717fi
6718
6719rm -rf conftest.dSYM
6720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6721      conftest$ac_exeext conftest.$ac_ext
6722fi
6723ac_res=`eval 'as_val=${'$as_ac_var'}
6724		 $as_echo "$as_val"'`
6725	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6726$as_echo "$ac_res" >&6; }
6727as_val=`eval 'as_val=${'$as_ac_var'}
6728		 $as_echo "$as_val"'`
6729   if test "x$as_val" = x""yes; then
6730  cat >>confdefs.h <<_ACEOF
6731#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6732_ACEOF
6733
6734fi
6735done
6736
6737{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
6738$as_echo_n "checking for working mmap... " >&6; }
6739if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6740  $as_echo_n "(cached) " >&6
6741else
6742  if test "$cross_compiling" = yes; then
6743  ac_cv_func_mmap_fixed_mapped=no
6744else
6745  cat >conftest.$ac_ext <<_ACEOF
6746/* confdefs.h.  */
6747_ACEOF
6748cat confdefs.h >>conftest.$ac_ext
6749cat >>conftest.$ac_ext <<_ACEOF
6750/* end confdefs.h.  */
6751$ac_includes_default
6752/* malloc might have been renamed as rpl_malloc. */
6753#undef malloc
6754
6755/* Thanks to Mike Haertel and Jim Avera for this test.
6756   Here is a matrix of mmap possibilities:
6757	mmap private not fixed
6758	mmap private fixed at somewhere currently unmapped
6759	mmap private fixed at somewhere already mapped
6760	mmap shared not fixed
6761	mmap shared fixed at somewhere currently unmapped
6762	mmap shared fixed at somewhere already mapped
6763   For private mappings, we should verify that changes cannot be read()
6764   back from the file, nor mmap's back from the file at a different
6765   address.  (There have been systems where private was not correctly
6766   implemented like the infamous i386 svr4.0, and systems where the
6767   VM page cache was not coherent with the file system buffer cache
6768   like early versions of FreeBSD and possibly contemporary NetBSD.)
6769   For shared mappings, we should conversely verify that changes get
6770   propagated back to all the places they're supposed to be.
6771
6772   Grep wants private fixed already mapped.
6773   The main things grep needs to know about mmap are:
6774   * does it exist and is it safe to write into the mmap'd area
6775   * how to use it (BSD variants)  */
6776
6777#include <fcntl.h>
6778#include <sys/mman.h>
6779
6780#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6781char *malloc ();
6782#endif
6783
6784/* This mess was copied from the GNU getpagesize.h.  */
6785#ifndef HAVE_GETPAGESIZE
6786/* Assume that all systems that can run configure have sys/param.h.  */
6787# ifndef HAVE_SYS_PARAM_H
6788#  define HAVE_SYS_PARAM_H 1
6789# endif
6790
6791# ifdef _SC_PAGESIZE
6792#  define getpagesize() sysconf(_SC_PAGESIZE)
6793# else /* no _SC_PAGESIZE */
6794#  ifdef HAVE_SYS_PARAM_H
6795#   include <sys/param.h>
6796#   ifdef EXEC_PAGESIZE
6797#    define getpagesize() EXEC_PAGESIZE
6798#   else /* no EXEC_PAGESIZE */
6799#    ifdef NBPG
6800#     define getpagesize() NBPG * CLSIZE
6801#     ifndef CLSIZE
6802#      define CLSIZE 1
6803#     endif /* no CLSIZE */
6804#    else /* no NBPG */
6805#     ifdef NBPC
6806#      define getpagesize() NBPC
6807#     else /* no NBPC */
6808#      ifdef PAGESIZE
6809#       define getpagesize() PAGESIZE
6810#      endif /* PAGESIZE */
6811#     endif /* no NBPC */
6812#    endif /* no NBPG */
6813#   endif /* no EXEC_PAGESIZE */
6814#  else /* no HAVE_SYS_PARAM_H */
6815#   define getpagesize() 8192	/* punt totally */
6816#  endif /* no HAVE_SYS_PARAM_H */
6817# endif /* no _SC_PAGESIZE */
6818
6819#endif /* no HAVE_GETPAGESIZE */
6820
6821int
6822main ()
6823{
6824  char *data, *data2, *data3;
6825  int i, pagesize;
6826  int fd;
6827
6828  pagesize = getpagesize ();
6829
6830  /* First, make a file with some known garbage in it. */
6831  data = (char *) malloc (pagesize);
6832  if (!data)
6833    return 1;
6834  for (i = 0; i < pagesize; ++i)
6835    *(data + i) = rand ();
6836  umask (0);
6837  fd = creat ("conftest.mmap", 0600);
6838  if (fd < 0)
6839    return 1;
6840  if (write (fd, data, pagesize) != pagesize)
6841    return 1;
6842  close (fd);
6843
6844  /* Next, try to mmap the file at a fixed address which already has
6845     something else allocated at it.  If we can, also make sure that
6846     we see the same garbage.  */
6847  fd = open ("conftest.mmap", O_RDWR);
6848  if (fd < 0)
6849    return 1;
6850  data2 = (char *) malloc (2 * pagesize);
6851  if (!data2)
6852    return 1;
6853  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6854  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6855		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6856    return 1;
6857  for (i = 0; i < pagesize; ++i)
6858    if (*(data + i) != *(data2 + i))
6859      return 1;
6860
6861  /* Finally, make sure that changes to the mapped area do not
6862     percolate back to the file as seen by read().  (This is a bug on
6863     some variants of i386 svr4.0.)  */
6864  for (i = 0; i < pagesize; ++i)
6865    *(data2 + i) = *(data2 + i) + 1;
6866  data3 = (char *) malloc (pagesize);
6867  if (!data3)
6868    return 1;
6869  if (read (fd, data3, pagesize) != pagesize)
6870    return 1;
6871  for (i = 0; i < pagesize; ++i)
6872    if (*(data + i) != *(data3 + i))
6873      return 1;
6874  close (fd);
6875  return 0;
6876}
6877_ACEOF
6878rm -f conftest$ac_exeext
6879if { (ac_try="$ac_link"
6880case "(($ac_try" in
6881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882  *) ac_try_echo=$ac_try;;
6883esac
6884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6885$as_echo "$ac_try_echo") >&5
6886  (eval "$ac_link") 2>&5
6887  ac_status=$?
6888  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6890  { (case "(($ac_try" in
6891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892  *) ac_try_echo=$ac_try;;
6893esac
6894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895$as_echo "$ac_try_echo") >&5
6896  (eval "$ac_try") 2>&5
6897  ac_status=$?
6898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); }; }; then
6900  ac_cv_func_mmap_fixed_mapped=yes
6901else
6902  $as_echo "$as_me: program exited with status $ac_status" >&5
6903$as_echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
6905
6906( exit $ac_status )
6907ac_cv_func_mmap_fixed_mapped=no
6908fi
6909rm -rf conftest.dSYM
6910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6911fi
6912
6913
6914fi
6915{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6916$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6917if test $ac_cv_func_mmap_fixed_mapped = yes; then
6918
6919cat >>confdefs.h <<\_ACEOF
6920#define HAVE_MMAP 1
6921_ACEOF
6922
6923fi
6924rm -f conftest.mmap
6925
6926
6927    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6928$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
6929if test "${ac_cv_gnu_library_2_1+set}" = set; then
6930  $as_echo_n "(cached) " >&6
6931else
6932  cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h.  */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h.  */
6938
6939#include <features.h>
6940#ifdef __GNU_LIBRARY__
6941 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6942  Lucky GNU user
6943 #endif
6944#endif
6945
6946_ACEOF
6947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6948  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6949  ac_cv_gnu_library_2_1=yes
6950else
6951  ac_cv_gnu_library_2_1=no
6952fi
6953rm -f conftest*
6954
6955
6956
6957fi
6958{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6959$as_echo "$ac_cv_gnu_library_2_1" >&6; }
6960
6961    GLIBC21="$ac_cv_gnu_library_2_1"
6962
6963
6964
6965
6966  { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6967$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
6968if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6969  $as_echo_n "(cached) " >&6
6970else
6971
6972      if test "$cross_compiling" = yes; then
6973
6974          # Guess based on the CPU.
6975          case "$host_cpu" in
6976            alpha* | i3456786 | m68k | s390*)
6977              gt_cv_int_divbyzero_sigfpe="guessing yes";;
6978            *)
6979              gt_cv_int_divbyzero_sigfpe="guessing no";;
6980          esac
6981
6982else
6983  cat >conftest.$ac_ext <<_ACEOF
6984/* confdefs.h.  */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h.  */
6989
6990#include <stdlib.h>
6991#include <signal.h>
6992
6993static void
6994#ifdef __cplusplus
6995sigfpe_handler (int sig)
6996#else
6997sigfpe_handler (sig) int sig;
6998#endif
6999{
7000  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7001  exit (sig != SIGFPE);
7002}
7003
7004int x = 1;
7005int y = 0;
7006int z;
7007int nan;
7008
7009int main ()
7010{
7011  signal (SIGFPE, sigfpe_handler);
7012/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7013#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7014  signal (SIGTRAP, sigfpe_handler);
7015#endif
7016/* Linux/SPARC yields signal SIGILL.  */
7017#if defined (__sparc__) && defined (__linux__)
7018  signal (SIGILL, sigfpe_handler);
7019#endif
7020
7021  z = x / y;
7022  nan = y / y;
7023  exit (1);
7024}
7025
7026_ACEOF
7027rm -f conftest$ac_exeext
7028if { (ac_try="$ac_link"
7029case "(($ac_try" in
7030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031  *) ac_try_echo=$ac_try;;
7032esac
7033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7034$as_echo "$ac_try_echo") >&5
7035  (eval "$ac_link") 2>&5
7036  ac_status=$?
7037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7039  { (case "(($ac_try" in
7040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7041  *) ac_try_echo=$ac_try;;
7042esac
7043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7044$as_echo "$ac_try_echo") >&5
7045  (eval "$ac_try") 2>&5
7046  ac_status=$?
7047  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048  (exit $ac_status); }; }; then
7049  gt_cv_int_divbyzero_sigfpe=yes
7050else
7051  $as_echo "$as_me: program exited with status $ac_status" >&5
7052$as_echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
7054
7055( exit $ac_status )
7056gt_cv_int_divbyzero_sigfpe=no
7057fi
7058rm -rf conftest.dSYM
7059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7060fi
7061
7062
7063
7064fi
7065{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7066$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7067  case "$gt_cv_int_divbyzero_sigfpe" in
7068    *yes) value=1;;
7069    *) value=0;;
7070  esac
7071
7072cat >>confdefs.h <<_ACEOF
7073#define INTDIV0_RAISES_SIGFPE $value
7074_ACEOF
7075
7076
7077
7078  { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
7079$as_echo_n "checking for unsigned long long... " >&6; }
7080if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7081  $as_echo_n "(cached) " >&6
7082else
7083  cat >conftest.$ac_ext <<_ACEOF
7084/* confdefs.h.  */
7085_ACEOF
7086cat confdefs.h >>conftest.$ac_ext
7087cat >>conftest.$ac_ext <<_ACEOF
7088/* end confdefs.h.  */
7089unsigned long long ull = 1ULL; int i = 63;
7090int
7091main ()
7092{
7093unsigned long long ullmax = (unsigned long long) -1;
7094     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7095  ;
7096  return 0;
7097}
7098_ACEOF
7099rm -f conftest.$ac_objext conftest$ac_exeext
7100if { (ac_try="$ac_link"
7101case "(($ac_try" in
7102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103  *) ac_try_echo=$ac_try;;
7104esac
7105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106$as_echo "$ac_try_echo") >&5
7107  (eval "$ac_link") 2>conftest.er1
7108  ac_status=$?
7109  grep -v '^ *+' conftest.er1 >conftest.err
7110  rm -f conftest.er1
7111  cat conftest.err >&5
7112  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113  (exit $ac_status); } && {
7114	 test -z "$ac_c_werror_flag" ||
7115	 test ! -s conftest.err
7116       } && test -s conftest$ac_exeext && {
7117	 test "$cross_compiling" = yes ||
7118	 $as_test_x conftest$ac_exeext
7119       }; then
7120  ac_cv_type_unsigned_long_long=yes
7121else
7122  $as_echo "$as_me: failed program was:" >&5
7123sed 's/^/| /' conftest.$ac_ext >&5
7124
7125	ac_cv_type_unsigned_long_long=no
7126fi
7127
7128rm -rf conftest.dSYM
7129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7130      conftest$ac_exeext conftest.$ac_ext
7131fi
7132{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7133$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7134  if test $ac_cv_type_unsigned_long_long = yes; then
7135
7136cat >>confdefs.h <<\_ACEOF
7137#define HAVE_UNSIGNED_LONG_LONG 1
7138_ACEOF
7139
7140  fi
7141
7142
7143
7144
7145  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7146
7147    test $ac_cv_type_unsigned_long_long = yes \
7148      && ac_type='unsigned long long' \
7149      || ac_type='unsigned long'
7150
7151cat >>confdefs.h <<_ACEOF
7152#define uintmax_t $ac_type
7153_ACEOF
7154
7155  else
7156
7157cat >>confdefs.h <<\_ACEOF
7158#define HAVE_UINTMAX_T 1
7159_ACEOF
7160
7161  fi
7162
7163
7164  { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
7165$as_echo_n "checking for inttypes.h... " >&6; }
7166if test "${gt_cv_header_inttypes_h+set}" = set; then
7167  $as_echo_n "(cached) " >&6
7168else
7169
7170    cat >conftest.$ac_ext <<_ACEOF
7171/* confdefs.h.  */
7172_ACEOF
7173cat confdefs.h >>conftest.$ac_ext
7174cat >>conftest.$ac_ext <<_ACEOF
7175/* end confdefs.h.  */
7176#include <sys/types.h>
7177#include <inttypes.h>
7178int
7179main ()
7180{
7181
7182  ;
7183  return 0;
7184}
7185_ACEOF
7186rm -f conftest.$ac_objext
7187if { (ac_try="$ac_compile"
7188case "(($ac_try" in
7189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190  *) ac_try_echo=$ac_try;;
7191esac
7192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7193$as_echo "$ac_try_echo") >&5
7194  (eval "$ac_compile") 2>conftest.er1
7195  ac_status=$?
7196  grep -v '^ *+' conftest.er1 >conftest.err
7197  rm -f conftest.er1
7198  cat conftest.err >&5
7199  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200  (exit $ac_status); } && {
7201	 test -z "$ac_c_werror_flag" ||
7202	 test ! -s conftest.err
7203       } && test -s conftest.$ac_objext; then
7204  gt_cv_header_inttypes_h=yes
7205else
7206  $as_echo "$as_me: failed program was:" >&5
7207sed 's/^/| /' conftest.$ac_ext >&5
7208
7209	gt_cv_header_inttypes_h=no
7210fi
7211
7212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213
7214fi
7215{ $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7216$as_echo "$gt_cv_header_inttypes_h" >&6; }
7217  if test $gt_cv_header_inttypes_h = yes; then
7218
7219cat >>confdefs.h <<_ACEOF
7220#define HAVE_INTTYPES_H 1
7221_ACEOF
7222
7223  fi
7224
7225
7226
7227  if test $gt_cv_header_inttypes_h = yes; then
7228    { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7229$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7230if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7231  $as_echo_n "(cached) " >&6
7232else
7233
7234        cat >conftest.$ac_ext <<_ACEOF
7235/* confdefs.h.  */
7236_ACEOF
7237cat confdefs.h >>conftest.$ac_ext
7238cat >>conftest.$ac_ext <<_ACEOF
7239/* end confdefs.h.  */
7240#include <inttypes.h>
7241#ifdef PRId32
7242char *p = PRId32;
7243#endif
7244
7245int
7246main ()
7247{
7248
7249  ;
7250  return 0;
7251}
7252_ACEOF
7253rm -f conftest.$ac_objext
7254if { (ac_try="$ac_compile"
7255case "(($ac_try" in
7256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257  *) ac_try_echo=$ac_try;;
7258esac
7259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7260$as_echo "$ac_try_echo") >&5
7261  (eval "$ac_compile") 2>conftest.er1
7262  ac_status=$?
7263  grep -v '^ *+' conftest.er1 >conftest.err
7264  rm -f conftest.er1
7265  cat conftest.err >&5
7266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267  (exit $ac_status); } && {
7268	 test -z "$ac_c_werror_flag" ||
7269	 test ! -s conftest.err
7270       } && test -s conftest.$ac_objext; then
7271  gt_cv_inttypes_pri_broken=no
7272else
7273  $as_echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
7275
7276	gt_cv_inttypes_pri_broken=yes
7277fi
7278
7279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280
7281fi
7282{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7283$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7284  fi
7285  if test "$gt_cv_inttypes_pri_broken" = yes; then
7286
7287cat >>confdefs.h <<_ACEOF
7288#define PRI_MACROS_BROKEN 1
7289_ACEOF
7290
7291  fi
7292
7293
7294
7295for ac_header in stdint.h
7296do
7297as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7299  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7300$as_echo_n "checking for $ac_header... " >&6; }
7301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7302  $as_echo_n "(cached) " >&6
7303fi
7304ac_res=`eval 'as_val=${'$as_ac_Header'}
7305		 $as_echo "$as_val"'`
7306	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7307$as_echo "$ac_res" >&6; }
7308else
7309  # Is the header compilable?
7310{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7311$as_echo_n "checking $ac_header usability... " >&6; }
7312cat >conftest.$ac_ext <<_ACEOF
7313/* confdefs.h.  */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h.  */
7318$ac_includes_default
7319#include <$ac_header>
7320_ACEOF
7321rm -f conftest.$ac_objext
7322if { (ac_try="$ac_compile"
7323case "(($ac_try" in
7324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325  *) ac_try_echo=$ac_try;;
7326esac
7327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7328$as_echo "$ac_try_echo") >&5
7329  (eval "$ac_compile") 2>conftest.er1
7330  ac_status=$?
7331  grep -v '^ *+' conftest.er1 >conftest.err
7332  rm -f conftest.er1
7333  cat conftest.err >&5
7334  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335  (exit $ac_status); } && {
7336	 test -z "$ac_c_werror_flag" ||
7337	 test ! -s conftest.err
7338       } && test -s conftest.$ac_objext; then
7339  ac_header_compiler=yes
7340else
7341  $as_echo "$as_me: failed program was:" >&5
7342sed 's/^/| /' conftest.$ac_ext >&5
7343
7344	ac_header_compiler=no
7345fi
7346
7347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7349$as_echo "$ac_header_compiler" >&6; }
7350
7351# Is the header present?
7352{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7353$as_echo_n "checking $ac_header presence... " >&6; }
7354cat >conftest.$ac_ext <<_ACEOF
7355/* confdefs.h.  */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h.  */
7360#include <$ac_header>
7361_ACEOF
7362if { (ac_try="$ac_cpp conftest.$ac_ext"
7363case "(($ac_try" in
7364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365  *) ac_try_echo=$ac_try;;
7366esac
7367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7368$as_echo "$ac_try_echo") >&5
7369  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7370  ac_status=$?
7371  grep -v '^ *+' conftest.er1 >conftest.err
7372  rm -f conftest.er1
7373  cat conftest.err >&5
7374  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375  (exit $ac_status); } >/dev/null && {
7376	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7377	 test ! -s conftest.err
7378       }; then
7379  ac_header_preproc=yes
7380else
7381  $as_echo "$as_me: failed program was:" >&5
7382sed 's/^/| /' conftest.$ac_ext >&5
7383
7384  ac_header_preproc=no
7385fi
7386
7387rm -f conftest.err conftest.$ac_ext
7388{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7389$as_echo "$ac_header_preproc" >&6; }
7390
7391# So?  What about this header?
7392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7393  yes:no: )
7394    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7395$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7396    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7397$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7398    ac_header_preproc=yes
7399    ;;
7400  no:yes:* )
7401    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7402$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7403    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7404$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7405    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7406$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7407    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7408$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7409    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7410$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7411    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7412$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7413    ( cat <<\_ASBOX
7414## ------------------------------------ ##
7415## Report this to suzhe@tsinghua.org.cn ##
7416## ------------------------------------ ##
7417_ASBOX
7418     ) | sed "s/^/$as_me: WARNING:     /" >&2
7419    ;;
7420esac
7421{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7422$as_echo_n "checking for $ac_header... " >&6; }
7423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7424  $as_echo_n "(cached) " >&6
7425else
7426  eval "$as_ac_Header=\$ac_header_preproc"
7427fi
7428ac_res=`eval 'as_val=${'$as_ac_Header'}
7429		 $as_echo "$as_val"'`
7430	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7431$as_echo "$ac_res" >&6; }
7432
7433fi
7434as_val=`eval 'as_val=${'$as_ac_Header'}
7435		 $as_echo "$as_val"'`
7436   if test "x$as_val" = x""yes; then
7437  cat >>confdefs.h <<_ACEOF
7438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7439_ACEOF
7440
7441fi
7442
7443done
7444
7445    { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7446$as_echo_n "checking for SIZE_MAX... " >&6; }
7447  result=
7448  cat >conftest.$ac_ext <<_ACEOF
7449/* confdefs.h.  */
7450_ACEOF
7451cat confdefs.h >>conftest.$ac_ext
7452cat >>conftest.$ac_ext <<_ACEOF
7453/* end confdefs.h.  */
7454
7455#include <limits.h>
7456#if HAVE_STDINT_H
7457#include <stdint.h>
7458#endif
7459#ifdef SIZE_MAX
7460Found it
7461#endif
7462
7463_ACEOF
7464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7465  $EGREP "Found it" >/dev/null 2>&1; then
7466  result=yes
7467fi
7468rm -f conftest*
7469
7470  if test -z "$result"; then
7471                    if test "$cross_compiling" = yes; then
7472  # Depending upon the size, compute the lo and hi bounds.
7473cat >conftest.$ac_ext <<_ACEOF
7474/* confdefs.h.  */
7475_ACEOF
7476cat confdefs.h >>conftest.$ac_ext
7477cat >>conftest.$ac_ext <<_ACEOF
7478/* end confdefs.h.  */
7479#include <stddef.h>
7480int
7481main ()
7482{
7483static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7484test_array [0] = 0
7485
7486  ;
7487  return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext
7491if { (ac_try="$ac_compile"
7492case "(($ac_try" in
7493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494  *) ac_try_echo=$ac_try;;
7495esac
7496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7497$as_echo "$ac_try_echo") >&5
7498  (eval "$ac_compile") 2>conftest.er1
7499  ac_status=$?
7500  grep -v '^ *+' conftest.er1 >conftest.err
7501  rm -f conftest.er1
7502  cat conftest.err >&5
7503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504  (exit $ac_status); } && {
7505	 test -z "$ac_c_werror_flag" ||
7506	 test ! -s conftest.err
7507       } && test -s conftest.$ac_objext; then
7508  ac_lo=0 ac_mid=0
7509  while :; do
7510    cat >conftest.$ac_ext <<_ACEOF
7511/* confdefs.h.  */
7512_ACEOF
7513cat confdefs.h >>conftest.$ac_ext
7514cat >>conftest.$ac_ext <<_ACEOF
7515/* end confdefs.h.  */
7516#include <stddef.h>
7517int
7518main ()
7519{
7520static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7521test_array [0] = 0
7522
7523  ;
7524  return 0;
7525}
7526_ACEOF
7527rm -f conftest.$ac_objext
7528if { (ac_try="$ac_compile"
7529case "(($ac_try" in
7530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531  *) ac_try_echo=$ac_try;;
7532esac
7533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7534$as_echo "$ac_try_echo") >&5
7535  (eval "$ac_compile") 2>conftest.er1
7536  ac_status=$?
7537  grep -v '^ *+' conftest.er1 >conftest.err
7538  rm -f conftest.er1
7539  cat conftest.err >&5
7540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541  (exit $ac_status); } && {
7542	 test -z "$ac_c_werror_flag" ||
7543	 test ! -s conftest.err
7544       } && test -s conftest.$ac_objext; then
7545  ac_hi=$ac_mid; break
7546else
7547  $as_echo "$as_me: failed program was:" >&5
7548sed 's/^/| /' conftest.$ac_ext >&5
7549
7550	ac_lo=`expr $ac_mid + 1`
7551			if test $ac_lo -le $ac_mid; then
7552			  ac_lo= ac_hi=
7553			  break
7554			fi
7555			ac_mid=`expr 2 '*' $ac_mid + 1`
7556fi
7557
7558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559  done
7560else
7561  $as_echo "$as_me: failed program was:" >&5
7562sed 's/^/| /' conftest.$ac_ext >&5
7563
7564	cat >conftest.$ac_ext <<_ACEOF
7565/* confdefs.h.  */
7566_ACEOF
7567cat confdefs.h >>conftest.$ac_ext
7568cat >>conftest.$ac_ext <<_ACEOF
7569/* end confdefs.h.  */
7570#include <stddef.h>
7571int
7572main ()
7573{
7574static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7575test_array [0] = 0
7576
7577  ;
7578  return 0;
7579}
7580_ACEOF
7581rm -f conftest.$ac_objext
7582if { (ac_try="$ac_compile"
7583case "(($ac_try" in
7584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7585  *) ac_try_echo=$ac_try;;
7586esac
7587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7588$as_echo "$ac_try_echo") >&5
7589  (eval "$ac_compile") 2>conftest.er1
7590  ac_status=$?
7591  grep -v '^ *+' conftest.er1 >conftest.err
7592  rm -f conftest.er1
7593  cat conftest.err >&5
7594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595  (exit $ac_status); } && {
7596	 test -z "$ac_c_werror_flag" ||
7597	 test ! -s conftest.err
7598       } && test -s conftest.$ac_objext; then
7599  ac_hi=-1 ac_mid=-1
7600  while :; do
7601    cat >conftest.$ac_ext <<_ACEOF
7602/* confdefs.h.  */
7603_ACEOF
7604cat confdefs.h >>conftest.$ac_ext
7605cat >>conftest.$ac_ext <<_ACEOF
7606/* end confdefs.h.  */
7607#include <stddef.h>
7608int
7609main ()
7610{
7611static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7612test_array [0] = 0
7613
7614  ;
7615  return 0;
7616}
7617_ACEOF
7618rm -f conftest.$ac_objext
7619if { (ac_try="$ac_compile"
7620case "(($ac_try" in
7621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7622  *) ac_try_echo=$ac_try;;
7623esac
7624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7625$as_echo "$ac_try_echo") >&5
7626  (eval "$ac_compile") 2>conftest.er1
7627  ac_status=$?
7628  grep -v '^ *+' conftest.er1 >conftest.err
7629  rm -f conftest.er1
7630  cat conftest.err >&5
7631  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632  (exit $ac_status); } && {
7633	 test -z "$ac_c_werror_flag" ||
7634	 test ! -s conftest.err
7635       } && test -s conftest.$ac_objext; then
7636  ac_lo=$ac_mid; break
7637else
7638  $as_echo "$as_me: failed program was:" >&5
7639sed 's/^/| /' conftest.$ac_ext >&5
7640
7641	ac_hi=`expr '(' $ac_mid ')' - 1`
7642			if test $ac_mid -le $ac_hi; then
7643			  ac_lo= ac_hi=
7644			  break
7645			fi
7646			ac_mid=`expr 2 '*' $ac_mid`
7647fi
7648
7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650  done
7651else
7652  $as_echo "$as_me: failed program was:" >&5
7653sed 's/^/| /' conftest.$ac_ext >&5
7654
7655	ac_lo= ac_hi=
7656fi
7657
7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659fi
7660
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662# Binary search between lo and hi bounds.
7663while test "x$ac_lo" != "x$ac_hi"; do
7664  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7665  cat >conftest.$ac_ext <<_ACEOF
7666/* confdefs.h.  */
7667_ACEOF
7668cat confdefs.h >>conftest.$ac_ext
7669cat >>conftest.$ac_ext <<_ACEOF
7670/* end confdefs.h.  */
7671#include <stddef.h>
7672int
7673main ()
7674{
7675static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7676test_array [0] = 0
7677
7678  ;
7679  return 0;
7680}
7681_ACEOF
7682rm -f conftest.$ac_objext
7683if { (ac_try="$ac_compile"
7684case "(($ac_try" in
7685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686  *) ac_try_echo=$ac_try;;
7687esac
7688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7689$as_echo "$ac_try_echo") >&5
7690  (eval "$ac_compile") 2>conftest.er1
7691  ac_status=$?
7692  grep -v '^ *+' conftest.er1 >conftest.err
7693  rm -f conftest.er1
7694  cat conftest.err >&5
7695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); } && {
7697	 test -z "$ac_c_werror_flag" ||
7698	 test ! -s conftest.err
7699       } && test -s conftest.$ac_objext; then
7700  ac_hi=$ac_mid
7701else
7702  $as_echo "$as_me: failed program was:" >&5
7703sed 's/^/| /' conftest.$ac_ext >&5
7704
7705	ac_lo=`expr '(' $ac_mid ')' + 1`
7706fi
7707
7708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709done
7710case $ac_lo in
7711?*) res_hi=$ac_lo;;
7712'') result=? ;;
7713esac
7714else
7715  cat >conftest.$ac_ext <<_ACEOF
7716/* confdefs.h.  */
7717_ACEOF
7718cat confdefs.h >>conftest.$ac_ext
7719cat >>conftest.$ac_ext <<_ACEOF
7720/* end confdefs.h.  */
7721#include <stddef.h>
7722static long int longval () { return ~(size_t)0 / 10; }
7723static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7724#include <stdio.h>
7725#include <stdlib.h>
7726int
7727main ()
7728{
7729
7730  FILE *f = fopen ("conftest.val", "w");
7731  if (! f)
7732    return 1;
7733  if ((~(size_t)0 / 10) < 0)
7734    {
7735      long int i = longval ();
7736      if (i != (~(size_t)0 / 10))
7737	return 1;
7738      fprintf (f, "%ld", i);
7739    }
7740  else
7741    {
7742      unsigned long int i = ulongval ();
7743      if (i != (~(size_t)0 / 10))
7744	return 1;
7745      fprintf (f, "%lu", i);
7746    }
7747  /* Do not output a trailing newline, as this causes \r\n confusion
7748     on some platforms.  */
7749  return ferror (f) || fclose (f) != 0;
7750
7751  ;
7752  return 0;
7753}
7754_ACEOF
7755rm -f conftest$ac_exeext
7756if { (ac_try="$ac_link"
7757case "(($ac_try" in
7758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759  *) ac_try_echo=$ac_try;;
7760esac
7761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762$as_echo "$ac_try_echo") >&5
7763  (eval "$ac_link") 2>&5
7764  ac_status=$?
7765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7767  { (case "(($ac_try" in
7768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769  *) ac_try_echo=$ac_try;;
7770esac
7771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7772$as_echo "$ac_try_echo") >&5
7773  (eval "$ac_try") 2>&5
7774  ac_status=$?
7775  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776  (exit $ac_status); }; }; then
7777  res_hi=`cat conftest.val`
7778else
7779  $as_echo "$as_me: program exited with status $ac_status" >&5
7780$as_echo "$as_me: failed program was:" >&5
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7783( exit $ac_status )
7784result=?
7785fi
7786rm -rf conftest.dSYM
7787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7788fi
7789rm -f conftest.val
7790
7791    if test "$cross_compiling" = yes; then
7792  # Depending upon the size, compute the lo and hi bounds.
7793cat >conftest.$ac_ext <<_ACEOF
7794/* confdefs.h.  */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h.  */
7799#include <stddef.h>
7800int
7801main ()
7802{
7803static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7804test_array [0] = 0
7805
7806  ;
7807  return 0;
7808}
7809_ACEOF
7810rm -f conftest.$ac_objext
7811if { (ac_try="$ac_compile"
7812case "(($ac_try" in
7813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814  *) ac_try_echo=$ac_try;;
7815esac
7816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7817$as_echo "$ac_try_echo") >&5
7818  (eval "$ac_compile") 2>conftest.er1
7819  ac_status=$?
7820  grep -v '^ *+' conftest.er1 >conftest.err
7821  rm -f conftest.er1
7822  cat conftest.err >&5
7823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824  (exit $ac_status); } && {
7825	 test -z "$ac_c_werror_flag" ||
7826	 test ! -s conftest.err
7827       } && test -s conftest.$ac_objext; then
7828  ac_lo=0 ac_mid=0
7829  while :; do
7830    cat >conftest.$ac_ext <<_ACEOF
7831/* confdefs.h.  */
7832_ACEOF
7833cat confdefs.h >>conftest.$ac_ext
7834cat >>conftest.$ac_ext <<_ACEOF
7835/* end confdefs.h.  */
7836#include <stddef.h>
7837int
7838main ()
7839{
7840static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7841test_array [0] = 0
7842
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847rm -f conftest.$ac_objext
7848if { (ac_try="$ac_compile"
7849case "(($ac_try" in
7850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851  *) ac_try_echo=$ac_try;;
7852esac
7853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854$as_echo "$ac_try_echo") >&5
7855  (eval "$ac_compile") 2>conftest.er1
7856  ac_status=$?
7857  grep -v '^ *+' conftest.er1 >conftest.err
7858  rm -f conftest.er1
7859  cat conftest.err >&5
7860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861  (exit $ac_status); } && {
7862	 test -z "$ac_c_werror_flag" ||
7863	 test ! -s conftest.err
7864       } && test -s conftest.$ac_objext; then
7865  ac_hi=$ac_mid; break
7866else
7867  $as_echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870	ac_lo=`expr $ac_mid + 1`
7871			if test $ac_lo -le $ac_mid; then
7872			  ac_lo= ac_hi=
7873			  break
7874			fi
7875			ac_mid=`expr 2 '*' $ac_mid + 1`
7876fi
7877
7878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879  done
7880else
7881  $as_echo "$as_me: failed program was:" >&5
7882sed 's/^/| /' conftest.$ac_ext >&5
7883
7884	cat >conftest.$ac_ext <<_ACEOF
7885/* confdefs.h.  */
7886_ACEOF
7887cat confdefs.h >>conftest.$ac_ext
7888cat >>conftest.$ac_ext <<_ACEOF
7889/* end confdefs.h.  */
7890#include <stddef.h>
7891int
7892main ()
7893{
7894static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7895test_array [0] = 0
7896
7897  ;
7898  return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext
7902if { (ac_try="$ac_compile"
7903case "(($ac_try" in
7904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905  *) ac_try_echo=$ac_try;;
7906esac
7907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7908$as_echo "$ac_try_echo") >&5
7909  (eval "$ac_compile") 2>conftest.er1
7910  ac_status=$?
7911  grep -v '^ *+' conftest.er1 >conftest.err
7912  rm -f conftest.er1
7913  cat conftest.err >&5
7914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915  (exit $ac_status); } && {
7916	 test -z "$ac_c_werror_flag" ||
7917	 test ! -s conftest.err
7918       } && test -s conftest.$ac_objext; then
7919  ac_hi=-1 ac_mid=-1
7920  while :; do
7921    cat >conftest.$ac_ext <<_ACEOF
7922/* confdefs.h.  */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h.  */
7927#include <stddef.h>
7928int
7929main ()
7930{
7931static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7932test_array [0] = 0
7933
7934  ;
7935  return 0;
7936}
7937_ACEOF
7938rm -f conftest.$ac_objext
7939if { (ac_try="$ac_compile"
7940case "(($ac_try" in
7941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942  *) ac_try_echo=$ac_try;;
7943esac
7944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7945$as_echo "$ac_try_echo") >&5
7946  (eval "$ac_compile") 2>conftest.er1
7947  ac_status=$?
7948  grep -v '^ *+' conftest.er1 >conftest.err
7949  rm -f conftest.er1
7950  cat conftest.err >&5
7951  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952  (exit $ac_status); } && {
7953	 test -z "$ac_c_werror_flag" ||
7954	 test ! -s conftest.err
7955       } && test -s conftest.$ac_objext; then
7956  ac_lo=$ac_mid; break
7957else
7958  $as_echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
7961	ac_hi=`expr '(' $ac_mid ')' - 1`
7962			if test $ac_mid -le $ac_hi; then
7963			  ac_lo= ac_hi=
7964			  break
7965			fi
7966			ac_mid=`expr 2 '*' $ac_mid`
7967fi
7968
7969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970  done
7971else
7972  $as_echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975	ac_lo= ac_hi=
7976fi
7977
7978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979fi
7980
7981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982# Binary search between lo and hi bounds.
7983while test "x$ac_lo" != "x$ac_hi"; do
7984  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7985  cat >conftest.$ac_ext <<_ACEOF
7986/* confdefs.h.  */
7987_ACEOF
7988cat confdefs.h >>conftest.$ac_ext
7989cat >>conftest.$ac_ext <<_ACEOF
7990/* end confdefs.h.  */
7991#include <stddef.h>
7992int
7993main ()
7994{
7995static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7996test_array [0] = 0
7997
7998  ;
7999  return 0;
8000}
8001_ACEOF
8002rm -f conftest.$ac_objext
8003if { (ac_try="$ac_compile"
8004case "(($ac_try" in
8005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006  *) ac_try_echo=$ac_try;;
8007esac
8008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8009$as_echo "$ac_try_echo") >&5
8010  (eval "$ac_compile") 2>conftest.er1
8011  ac_status=$?
8012  grep -v '^ *+' conftest.er1 >conftest.err
8013  rm -f conftest.er1
8014  cat conftest.err >&5
8015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016  (exit $ac_status); } && {
8017	 test -z "$ac_c_werror_flag" ||
8018	 test ! -s conftest.err
8019       } && test -s conftest.$ac_objext; then
8020  ac_hi=$ac_mid
8021else
8022  $as_echo "$as_me: failed program was:" >&5
8023sed 's/^/| /' conftest.$ac_ext >&5
8024
8025	ac_lo=`expr '(' $ac_mid ')' + 1`
8026fi
8027
8028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029done
8030case $ac_lo in
8031?*) res_lo=$ac_lo;;
8032'') result=? ;;
8033esac
8034else
8035  cat >conftest.$ac_ext <<_ACEOF
8036/* confdefs.h.  */
8037_ACEOF
8038cat confdefs.h >>conftest.$ac_ext
8039cat >>conftest.$ac_ext <<_ACEOF
8040/* end confdefs.h.  */
8041#include <stddef.h>
8042static long int longval () { return ~(size_t)0 % 10; }
8043static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8044#include <stdio.h>
8045#include <stdlib.h>
8046int
8047main ()
8048{
8049
8050  FILE *f = fopen ("conftest.val", "w");
8051  if (! f)
8052    return 1;
8053  if ((~(size_t)0 % 10) < 0)
8054    {
8055      long int i = longval ();
8056      if (i != (~(size_t)0 % 10))
8057	return 1;
8058      fprintf (f, "%ld", i);
8059    }
8060  else
8061    {
8062      unsigned long int i = ulongval ();
8063      if (i != (~(size_t)0 % 10))
8064	return 1;
8065      fprintf (f, "%lu", i);
8066    }
8067  /* Do not output a trailing newline, as this causes \r\n confusion
8068     on some platforms.  */
8069  return ferror (f) || fclose (f) != 0;
8070
8071  ;
8072  return 0;
8073}
8074_ACEOF
8075rm -f conftest$ac_exeext
8076if { (ac_try="$ac_link"
8077case "(($ac_try" in
8078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079  *) ac_try_echo=$ac_try;;
8080esac
8081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082$as_echo "$ac_try_echo") >&5
8083  (eval "$ac_link") 2>&5
8084  ac_status=$?
8085  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8087  { (case "(($ac_try" in
8088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089  *) ac_try_echo=$ac_try;;
8090esac
8091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8092$as_echo "$ac_try_echo") >&5
8093  (eval "$ac_try") 2>&5
8094  ac_status=$?
8095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096  (exit $ac_status); }; }; then
8097  res_lo=`cat conftest.val`
8098else
8099  $as_echo "$as_me: program exited with status $ac_status" >&5
8100$as_echo "$as_me: failed program was:" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
8103( exit $ac_status )
8104result=?
8105fi
8106rm -rf conftest.dSYM
8107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8108fi
8109rm -f conftest.val
8110
8111    if test "$cross_compiling" = yes; then
8112  # Depending upon the size, compute the lo and hi bounds.
8113cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h.  */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h.  */
8119#include <stddef.h>
8120int
8121main ()
8122{
8123static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8124test_array [0] = 0
8125
8126  ;
8127  return 0;
8128}
8129_ACEOF
8130rm -f conftest.$ac_objext
8131if { (ac_try="$ac_compile"
8132case "(($ac_try" in
8133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134  *) ac_try_echo=$ac_try;;
8135esac
8136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8137$as_echo "$ac_try_echo") >&5
8138  (eval "$ac_compile") 2>conftest.er1
8139  ac_status=$?
8140  grep -v '^ *+' conftest.er1 >conftest.err
8141  rm -f conftest.er1
8142  cat conftest.err >&5
8143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144  (exit $ac_status); } && {
8145	 test -z "$ac_c_werror_flag" ||
8146	 test ! -s conftest.err
8147       } && test -s conftest.$ac_objext; then
8148  ac_lo=0 ac_mid=0
8149  while :; do
8150    cat >conftest.$ac_ext <<_ACEOF
8151/* confdefs.h.  */
8152_ACEOF
8153cat confdefs.h >>conftest.$ac_ext
8154cat >>conftest.$ac_ext <<_ACEOF
8155/* end confdefs.h.  */
8156#include <stddef.h>
8157int
8158main ()
8159{
8160static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8161test_array [0] = 0
8162
8163  ;
8164  return 0;
8165}
8166_ACEOF
8167rm -f conftest.$ac_objext
8168if { (ac_try="$ac_compile"
8169case "(($ac_try" in
8170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171  *) ac_try_echo=$ac_try;;
8172esac
8173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8174$as_echo "$ac_try_echo") >&5
8175  (eval "$ac_compile") 2>conftest.er1
8176  ac_status=$?
8177  grep -v '^ *+' conftest.er1 >conftest.err
8178  rm -f conftest.er1
8179  cat conftest.err >&5
8180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181  (exit $ac_status); } && {
8182	 test -z "$ac_c_werror_flag" ||
8183	 test ! -s conftest.err
8184       } && test -s conftest.$ac_objext; then
8185  ac_hi=$ac_mid; break
8186else
8187  $as_echo "$as_me: failed program was:" >&5
8188sed 's/^/| /' conftest.$ac_ext >&5
8189
8190	ac_lo=`expr $ac_mid + 1`
8191			if test $ac_lo -le $ac_mid; then
8192			  ac_lo= ac_hi=
8193			  break
8194			fi
8195			ac_mid=`expr 2 '*' $ac_mid + 1`
8196fi
8197
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199  done
8200else
8201  $as_echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204	cat >conftest.$ac_ext <<_ACEOF
8205/* confdefs.h.  */
8206_ACEOF
8207cat confdefs.h >>conftest.$ac_ext
8208cat >>conftest.$ac_ext <<_ACEOF
8209/* end confdefs.h.  */
8210#include <stddef.h>
8211int
8212main ()
8213{
8214static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8215test_array [0] = 0
8216
8217  ;
8218  return 0;
8219}
8220_ACEOF
8221rm -f conftest.$ac_objext
8222if { (ac_try="$ac_compile"
8223case "(($ac_try" in
8224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225  *) ac_try_echo=$ac_try;;
8226esac
8227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8228$as_echo "$ac_try_echo") >&5
8229  (eval "$ac_compile") 2>conftest.er1
8230  ac_status=$?
8231  grep -v '^ *+' conftest.er1 >conftest.err
8232  rm -f conftest.er1
8233  cat conftest.err >&5
8234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235  (exit $ac_status); } && {
8236	 test -z "$ac_c_werror_flag" ||
8237	 test ! -s conftest.err
8238       } && test -s conftest.$ac_objext; then
8239  ac_hi=-1 ac_mid=-1
8240  while :; do
8241    cat >conftest.$ac_ext <<_ACEOF
8242/* confdefs.h.  */
8243_ACEOF
8244cat confdefs.h >>conftest.$ac_ext
8245cat >>conftest.$ac_ext <<_ACEOF
8246/* end confdefs.h.  */
8247#include <stddef.h>
8248int
8249main ()
8250{
8251static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8252test_array [0] = 0
8253
8254  ;
8255  return 0;
8256}
8257_ACEOF
8258rm -f conftest.$ac_objext
8259if { (ac_try="$ac_compile"
8260case "(($ac_try" in
8261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262  *) ac_try_echo=$ac_try;;
8263esac
8264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8265$as_echo "$ac_try_echo") >&5
8266  (eval "$ac_compile") 2>conftest.er1
8267  ac_status=$?
8268  grep -v '^ *+' conftest.er1 >conftest.err
8269  rm -f conftest.er1
8270  cat conftest.err >&5
8271  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272  (exit $ac_status); } && {
8273	 test -z "$ac_c_werror_flag" ||
8274	 test ! -s conftest.err
8275       } && test -s conftest.$ac_objext; then
8276  ac_lo=$ac_mid; break
8277else
8278  $as_echo "$as_me: failed program was:" >&5
8279sed 's/^/| /' conftest.$ac_ext >&5
8280
8281	ac_hi=`expr '(' $ac_mid ')' - 1`
8282			if test $ac_mid -le $ac_hi; then
8283			  ac_lo= ac_hi=
8284			  break
8285			fi
8286			ac_mid=`expr 2 '*' $ac_mid`
8287fi
8288
8289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290  done
8291else
8292  $as_echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295	ac_lo= ac_hi=
8296fi
8297
8298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299fi
8300
8301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302# Binary search between lo and hi bounds.
8303while test "x$ac_lo" != "x$ac_hi"; do
8304  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8305  cat >conftest.$ac_ext <<_ACEOF
8306/* confdefs.h.  */
8307_ACEOF
8308cat confdefs.h >>conftest.$ac_ext
8309cat >>conftest.$ac_ext <<_ACEOF
8310/* end confdefs.h.  */
8311#include <stddef.h>
8312int
8313main ()
8314{
8315static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8316test_array [0] = 0
8317
8318  ;
8319  return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext
8323if { (ac_try="$ac_compile"
8324case "(($ac_try" in
8325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326  *) ac_try_echo=$ac_try;;
8327esac
8328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8329$as_echo "$ac_try_echo") >&5
8330  (eval "$ac_compile") 2>conftest.er1
8331  ac_status=$?
8332  grep -v '^ *+' conftest.er1 >conftest.err
8333  rm -f conftest.er1
8334  cat conftest.err >&5
8335  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336  (exit $ac_status); } && {
8337	 test -z "$ac_c_werror_flag" ||
8338	 test ! -s conftest.err
8339       } && test -s conftest.$ac_objext; then
8340  ac_hi=$ac_mid
8341else
8342  $as_echo "$as_me: failed program was:" >&5
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
8345	ac_lo=`expr '(' $ac_mid ')' + 1`
8346fi
8347
8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349done
8350case $ac_lo in
8351?*) fits_in_uint=$ac_lo;;
8352'') result=? ;;
8353esac
8354else
8355  cat >conftest.$ac_ext <<_ACEOF
8356/* confdefs.h.  */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h.  */
8361#include <stddef.h>
8362static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8363static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8364#include <stdio.h>
8365#include <stdlib.h>
8366int
8367main ()
8368{
8369
8370  FILE *f = fopen ("conftest.val", "w");
8371  if (! f)
8372    return 1;
8373  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8374    {
8375      long int i = longval ();
8376      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8377	return 1;
8378      fprintf (f, "%ld", i);
8379    }
8380  else
8381    {
8382      unsigned long int i = ulongval ();
8383      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8384	return 1;
8385      fprintf (f, "%lu", i);
8386    }
8387  /* Do not output a trailing newline, as this causes \r\n confusion
8388     on some platforms.  */
8389  return ferror (f) || fclose (f) != 0;
8390
8391  ;
8392  return 0;
8393}
8394_ACEOF
8395rm -f conftest$ac_exeext
8396if { (ac_try="$ac_link"
8397case "(($ac_try" in
8398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399  *) ac_try_echo=$ac_try;;
8400esac
8401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402$as_echo "$ac_try_echo") >&5
8403  (eval "$ac_link") 2>&5
8404  ac_status=$?
8405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8407  { (case "(($ac_try" in
8408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409  *) ac_try_echo=$ac_try;;
8410esac
8411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8412$as_echo "$ac_try_echo") >&5
8413  (eval "$ac_try") 2>&5
8414  ac_status=$?
8415  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416  (exit $ac_status); }; }; then
8417  fits_in_uint=`cat conftest.val`
8418else
8419  $as_echo "$as_me: program exited with status $ac_status" >&5
8420$as_echo "$as_me: failed program was:" >&5
8421sed 's/^/| /' conftest.$ac_ext >&5
8422
8423( exit $ac_status )
8424result=?
8425fi
8426rm -rf conftest.dSYM
8427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8428fi
8429rm -f conftest.val
8430
8431    if test "$fits_in_uint" = 1; then
8432                  cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h.  */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h.  */
8438#include <stddef.h>
8439        extern size_t foo;
8440        extern unsigned long foo;
8441
8442int
8443main ()
8444{
8445
8446  ;
8447  return 0;
8448}
8449_ACEOF
8450rm -f conftest.$ac_objext
8451if { (ac_try="$ac_compile"
8452case "(($ac_try" in
8453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454  *) ac_try_echo=$ac_try;;
8455esac
8456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8457$as_echo "$ac_try_echo") >&5
8458  (eval "$ac_compile") 2>conftest.er1
8459  ac_status=$?
8460  grep -v '^ *+' conftest.er1 >conftest.err
8461  rm -f conftest.er1
8462  cat conftest.err >&5
8463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464  (exit $ac_status); } && {
8465	 test -z "$ac_c_werror_flag" ||
8466	 test ! -s conftest.err
8467       } && test -s conftest.$ac_objext; then
8468  fits_in_uint=0
8469else
8470  $as_echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
8473
8474fi
8475
8476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477    fi
8478    if test -z "$result"; then
8479      if test "$fits_in_uint" = 1; then
8480        result="$res_hi$res_lo"U
8481      else
8482        result="$res_hi$res_lo"UL
8483      fi
8484    else
8485            result='~(size_t)0'
8486    fi
8487  fi
8488  { $as_echo "$as_me:$LINENO: result: $result" >&5
8489$as_echo "$result" >&6; }
8490  if test "$result" != yes; then
8491
8492cat >>confdefs.h <<_ACEOF
8493#define SIZE_MAX $result
8494_ACEOF
8495
8496  fi
8497
8498
8499
8500
8501for ac_header in stdint.h
8502do
8503as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8505  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8506$as_echo_n "checking for $ac_header... " >&6; }
8507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8508  $as_echo_n "(cached) " >&6
8509fi
8510ac_res=`eval 'as_val=${'$as_ac_Header'}
8511		 $as_echo "$as_val"'`
8512	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8513$as_echo "$ac_res" >&6; }
8514else
8515  # Is the header compilable?
8516{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8517$as_echo_n "checking $ac_header usability... " >&6; }
8518cat >conftest.$ac_ext <<_ACEOF
8519/* confdefs.h.  */
8520_ACEOF
8521cat confdefs.h >>conftest.$ac_ext
8522cat >>conftest.$ac_ext <<_ACEOF
8523/* end confdefs.h.  */
8524$ac_includes_default
8525#include <$ac_header>
8526_ACEOF
8527rm -f conftest.$ac_objext
8528if { (ac_try="$ac_compile"
8529case "(($ac_try" in
8530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531  *) ac_try_echo=$ac_try;;
8532esac
8533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534$as_echo "$ac_try_echo") >&5
8535  (eval "$ac_compile") 2>conftest.er1
8536  ac_status=$?
8537  grep -v '^ *+' conftest.er1 >conftest.err
8538  rm -f conftest.er1
8539  cat conftest.err >&5
8540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541  (exit $ac_status); } && {
8542	 test -z "$ac_c_werror_flag" ||
8543	 test ! -s conftest.err
8544       } && test -s conftest.$ac_objext; then
8545  ac_header_compiler=yes
8546else
8547  $as_echo "$as_me: failed program was:" >&5
8548sed 's/^/| /' conftest.$ac_ext >&5
8549
8550	ac_header_compiler=no
8551fi
8552
8553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8555$as_echo "$ac_header_compiler" >&6; }
8556
8557# Is the header present?
8558{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8559$as_echo_n "checking $ac_header presence... " >&6; }
8560cat >conftest.$ac_ext <<_ACEOF
8561/* confdefs.h.  */
8562_ACEOF
8563cat confdefs.h >>conftest.$ac_ext
8564cat >>conftest.$ac_ext <<_ACEOF
8565/* end confdefs.h.  */
8566#include <$ac_header>
8567_ACEOF
8568if { (ac_try="$ac_cpp conftest.$ac_ext"
8569case "(($ac_try" in
8570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571  *) ac_try_echo=$ac_try;;
8572esac
8573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8574$as_echo "$ac_try_echo") >&5
8575  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8576  ac_status=$?
8577  grep -v '^ *+' conftest.er1 >conftest.err
8578  rm -f conftest.er1
8579  cat conftest.err >&5
8580  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581  (exit $ac_status); } >/dev/null && {
8582	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8583	 test ! -s conftest.err
8584       }; then
8585  ac_header_preproc=yes
8586else
8587  $as_echo "$as_me: failed program was:" >&5
8588sed 's/^/| /' conftest.$ac_ext >&5
8589
8590  ac_header_preproc=no
8591fi
8592
8593rm -f conftest.err conftest.$ac_ext
8594{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8595$as_echo "$ac_header_preproc" >&6; }
8596
8597# So?  What about this header?
8598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8599  yes:no: )
8600    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8601$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8602    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8603$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8604    ac_header_preproc=yes
8605    ;;
8606  no:yes:* )
8607    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8608$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8609    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8610$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8611    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8612$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8613    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8614$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8615    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8616$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8617    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8618$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8619    ( cat <<\_ASBOX
8620## ------------------------------------ ##
8621## Report this to suzhe@tsinghua.org.cn ##
8622## ------------------------------------ ##
8623_ASBOX
8624     ) | sed "s/^/$as_me: WARNING:     /" >&2
8625    ;;
8626esac
8627{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8628$as_echo_n "checking for $ac_header... " >&6; }
8629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8630  $as_echo_n "(cached) " >&6
8631else
8632  eval "$as_ac_Header=\$ac_header_preproc"
8633fi
8634ac_res=`eval 'as_val=${'$as_ac_Header'}
8635		 $as_echo "$as_val"'`
8636	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8637$as_echo "$ac_res" >&6; }
8638
8639fi
8640as_val=`eval 'as_val=${'$as_ac_Header'}
8641		 $as_echo "$as_val"'`
8642   if test "x$as_val" = x""yes; then
8643  cat >>confdefs.h <<_ACEOF
8644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8645_ACEOF
8646
8647fi
8648
8649done
8650
8651
8652
8653      if test "X$prefix" = "XNONE"; then
8654    acl_final_prefix="$ac_default_prefix"
8655  else
8656    acl_final_prefix="$prefix"
8657  fi
8658  if test "X$exec_prefix" = "XNONE"; then
8659    acl_final_exec_prefix='${prefix}'
8660  else
8661    acl_final_exec_prefix="$exec_prefix"
8662  fi
8663  acl_save_prefix="$prefix"
8664  prefix="$acl_final_prefix"
8665  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8666  prefix="$acl_save_prefix"
8667
8668
8669# Check whether --with-gnu-ld was given.
8670if test "${with_gnu_ld+set}" = set; then
8671  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8672else
8673  with_gnu_ld=no
8674fi
8675
8676# Prepare PATH_SEPARATOR.
8677# The user is always right.
8678if test "${PATH_SEPARATOR+set}" != set; then
8679  echo "#! /bin/sh" >conf$$.sh
8680  echo  "exit 0"   >>conf$$.sh
8681  chmod +x conf$$.sh
8682  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8683    PATH_SEPARATOR=';'
8684  else
8685    PATH_SEPARATOR=:
8686  fi
8687  rm -f conf$$.sh
8688fi
8689ac_prog=ld
8690if test "$GCC" = yes; then
8691  # Check if gcc -print-prog-name=ld gives a path.
8692  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8693$as_echo_n "checking for ld used by GCC... " >&6; }
8694  case $host in
8695  *-*-mingw*)
8696    # gcc leaves a trailing carriage return which upsets mingw
8697    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8698  *)
8699    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8700  esac
8701  case $ac_prog in
8702    # Accept absolute paths.
8703    [\\/]* | [A-Za-z]:[\\/]*)
8704      re_direlt='/[^/][^/]*/\.\./'
8705      # Canonicalize the path of ld
8706      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8707      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8708	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8709      done
8710      test -z "$LD" && LD="$ac_prog"
8711      ;;
8712  "")
8713    # If it fails, then pretend we aren't using GCC.
8714    ac_prog=ld
8715    ;;
8716  *)
8717    # If it is relative, then search for the first ld in PATH.
8718    with_gnu_ld=unknown
8719    ;;
8720  esac
8721elif test "$with_gnu_ld" = yes; then
8722  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8723$as_echo_n "checking for GNU ld... " >&6; }
8724else
8725  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8726$as_echo_n "checking for non-GNU ld... " >&6; }
8727fi
8728if test "${acl_cv_path_LD+set}" = set; then
8729  $as_echo_n "(cached) " >&6
8730else
8731  if test -z "$LD"; then
8732  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8733  for ac_dir in $PATH; do
8734    test -z "$ac_dir" && ac_dir=.
8735    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8736      acl_cv_path_LD="$ac_dir/$ac_prog"
8737      # Check to see if the program is GNU ld.  I'd rather use --version,
8738      # but apparently some GNU ld's only accept -v.
8739      # Break only if it was the GNU/non-GNU ld that we prefer.
8740      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8741      *GNU* | *'with BFD'*)
8742	test "$with_gnu_ld" != no && break ;;
8743      *)
8744	test "$with_gnu_ld" != yes && break ;;
8745      esac
8746    fi
8747  done
8748  IFS="$ac_save_ifs"
8749else
8750  acl_cv_path_LD="$LD" # Let the user override the test with a path.
8751fi
8752fi
8753
8754LD="$acl_cv_path_LD"
8755if test -n "$LD"; then
8756  { $as_echo "$as_me:$LINENO: result: $LD" >&5
8757$as_echo "$LD" >&6; }
8758else
8759  { $as_echo "$as_me:$LINENO: result: no" >&5
8760$as_echo "no" >&6; }
8761fi
8762test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8763$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8764   { (exit 1); exit 1; }; }
8765{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8766$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8767if test "${acl_cv_prog_gnu_ld+set}" = set; then
8768  $as_echo_n "(cached) " >&6
8769else
8770  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8771case `$LD -v 2>&1 </dev/null` in
8772*GNU* | *'with BFD'*)
8773  acl_cv_prog_gnu_ld=yes ;;
8774*)
8775  acl_cv_prog_gnu_ld=no ;;
8776esac
8777fi
8778{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8779$as_echo "$acl_cv_prog_gnu_ld" >&6; }
8780with_gnu_ld=$acl_cv_prog_gnu_ld
8781
8782
8783
8784                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8785$as_echo_n "checking for shared library run path origin... " >&6; }
8786if test "${acl_cv_rpath+set}" = set; then
8787  $as_echo_n "(cached) " >&6
8788else
8789
8790    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8791    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8792    . ./conftest.sh
8793    rm -f ./conftest.sh
8794    acl_cv_rpath=done
8795
8796fi
8797{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8798$as_echo "$acl_cv_rpath" >&6; }
8799  wl="$acl_cv_wl"
8800  libext="$acl_cv_libext"
8801  shlibext="$acl_cv_shlibext"
8802  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8803  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8804  hardcode_direct="$acl_cv_hardcode_direct"
8805  hardcode_minus_L="$acl_cv_hardcode_minus_L"
8806    # Check whether --enable-rpath was given.
8807if test "${enable_rpath+set}" = set; then
8808  enableval=$enable_rpath; :
8809else
8810  enable_rpath=yes
8811fi
8812
8813
8814
8815
8816
8817
8818
8819
8820    use_additional=yes
8821
8822  acl_save_prefix="$prefix"
8823  prefix="$acl_final_prefix"
8824  acl_save_exec_prefix="$exec_prefix"
8825  exec_prefix="$acl_final_exec_prefix"
8826
8827    eval additional_includedir=\"$includedir\"
8828    eval additional_libdir=\"$libdir\"
8829
8830  exec_prefix="$acl_save_exec_prefix"
8831  prefix="$acl_save_prefix"
8832
8833
8834# Check whether --with-libiconv-prefix was given.
8835if test "${with_libiconv_prefix+set}" = set; then
8836  withval=$with_libiconv_prefix;
8837    if test "X$withval" = "Xno"; then
8838      use_additional=no
8839    else
8840      if test "X$withval" = "X"; then
8841
8842  acl_save_prefix="$prefix"
8843  prefix="$acl_final_prefix"
8844  acl_save_exec_prefix="$exec_prefix"
8845  exec_prefix="$acl_final_exec_prefix"
8846
8847          eval additional_includedir=\"$includedir\"
8848          eval additional_libdir=\"$libdir\"
8849
8850  exec_prefix="$acl_save_exec_prefix"
8851  prefix="$acl_save_prefix"
8852
8853      else
8854        additional_includedir="$withval/include"
8855        additional_libdir="$withval/lib"
8856      fi
8857    fi
8858
8859fi
8860
8861      LIBICONV=
8862  LTLIBICONV=
8863  INCICONV=
8864  rpathdirs=
8865  ltrpathdirs=
8866  names_already_handled=
8867  names_next_round='iconv '
8868  while test -n "$names_next_round"; do
8869    names_this_round="$names_next_round"
8870    names_next_round=
8871    for name in $names_this_round; do
8872      already_handled=
8873      for n in $names_already_handled; do
8874        if test "$n" = "$name"; then
8875          already_handled=yes
8876          break
8877        fi
8878      done
8879      if test -z "$already_handled"; then
8880        names_already_handled="$names_already_handled $name"
8881                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8882        eval value=\"\$HAVE_LIB$uppername\"
8883        if test -n "$value"; then
8884          if test "$value" = yes; then
8885            eval value=\"\$LIB$uppername\"
8886            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8887            eval value=\"\$LTLIB$uppername\"
8888            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8889          else
8890                                    :
8891          fi
8892        else
8893                              found_dir=
8894          found_la=
8895          found_so=
8896          found_a=
8897          if test $use_additional = yes; then
8898            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8899              found_dir="$additional_libdir"
8900              found_so="$additional_libdir/lib$name.$shlibext"
8901              if test -f "$additional_libdir/lib$name.la"; then
8902                found_la="$additional_libdir/lib$name.la"
8903              fi
8904            else
8905              if test -f "$additional_libdir/lib$name.$libext"; then
8906                found_dir="$additional_libdir"
8907                found_a="$additional_libdir/lib$name.$libext"
8908                if test -f "$additional_libdir/lib$name.la"; then
8909                  found_la="$additional_libdir/lib$name.la"
8910                fi
8911              fi
8912            fi
8913          fi
8914          if test "X$found_dir" = "X"; then
8915            for x in $LDFLAGS $LTLIBICONV; do
8916
8917  acl_save_prefix="$prefix"
8918  prefix="$acl_final_prefix"
8919  acl_save_exec_prefix="$exec_prefix"
8920  exec_prefix="$acl_final_exec_prefix"
8921  eval x=\"$x\"
8922  exec_prefix="$acl_save_exec_prefix"
8923  prefix="$acl_save_prefix"
8924
8925              case "$x" in
8926                -L*)
8927                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8928                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8929                    found_dir="$dir"
8930                    found_so="$dir/lib$name.$shlibext"
8931                    if test -f "$dir/lib$name.la"; then
8932                      found_la="$dir/lib$name.la"
8933                    fi
8934                  else
8935                    if test -f "$dir/lib$name.$libext"; then
8936                      found_dir="$dir"
8937                      found_a="$dir/lib$name.$libext"
8938                      if test -f "$dir/lib$name.la"; then
8939                        found_la="$dir/lib$name.la"
8940                      fi
8941                    fi
8942                  fi
8943                  ;;
8944              esac
8945              if test "X$found_dir" != "X"; then
8946                break
8947              fi
8948            done
8949          fi
8950          if test "X$found_dir" != "X"; then
8951                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8952            if test "X$found_so" != "X"; then
8953                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8954                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8955              else
8956                                                                                haveit=
8957                for x in $ltrpathdirs; do
8958                  if test "X$x" = "X$found_dir"; then
8959                    haveit=yes
8960                    break
8961                  fi
8962                done
8963                if test -z "$haveit"; then
8964                  ltrpathdirs="$ltrpathdirs $found_dir"
8965                fi
8966                                if test "$hardcode_direct" = yes; then
8967                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8968                else
8969                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8970                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8971                                                            haveit=
8972                    for x in $rpathdirs; do
8973                      if test "X$x" = "X$found_dir"; then
8974                        haveit=yes
8975                        break
8976                      fi
8977                    done
8978                    if test -z "$haveit"; then
8979                      rpathdirs="$rpathdirs $found_dir"
8980                    fi
8981                  else
8982                                                                                haveit=
8983                    for x in $LDFLAGS $LIBICONV; do
8984
8985  acl_save_prefix="$prefix"
8986  prefix="$acl_final_prefix"
8987  acl_save_exec_prefix="$exec_prefix"
8988  exec_prefix="$acl_final_exec_prefix"
8989  eval x=\"$x\"
8990  exec_prefix="$acl_save_exec_prefix"
8991  prefix="$acl_save_prefix"
8992
8993                      if test "X$x" = "X-L$found_dir"; then
8994                        haveit=yes
8995                        break
8996                      fi
8997                    done
8998                    if test -z "$haveit"; then
8999                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9000                    fi
9001                    if test "$hardcode_minus_L" != no; then
9002                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9003                    else
9004                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9005                    fi
9006                  fi
9007                fi
9008              fi
9009            else
9010              if test "X$found_a" != "X"; then
9011                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9012              else
9013                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9014              fi
9015            fi
9016                        additional_includedir=
9017            case "$found_dir" in
9018              */lib | */lib/)
9019                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9020                additional_includedir="$basedir/include"
9021                ;;
9022            esac
9023            if test "X$additional_includedir" != "X"; then
9024                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9025                haveit=
9026                if test "X$additional_includedir" = "X/usr/local/include"; then
9027                  if test -n "$GCC"; then
9028                    case $host_os in
9029                      linux*) haveit=yes;;
9030                    esac
9031                  fi
9032                fi
9033                if test -z "$haveit"; then
9034                  for x in $CPPFLAGS $INCICONV; do
9035
9036  acl_save_prefix="$prefix"
9037  prefix="$acl_final_prefix"
9038  acl_save_exec_prefix="$exec_prefix"
9039  exec_prefix="$acl_final_exec_prefix"
9040  eval x=\"$x\"
9041  exec_prefix="$acl_save_exec_prefix"
9042  prefix="$acl_save_prefix"
9043
9044                    if test "X$x" = "X-I$additional_includedir"; then
9045                      haveit=yes
9046                      break
9047                    fi
9048                  done
9049                  if test -z "$haveit"; then
9050                    if test -d "$additional_includedir"; then
9051                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9052                    fi
9053                  fi
9054                fi
9055              fi
9056            fi
9057                        if test -n "$found_la"; then
9058                                                        save_libdir="$libdir"
9059              case "$found_la" in
9060                */* | *\\*) . "$found_la" ;;
9061                *) . "./$found_la" ;;
9062              esac
9063              libdir="$save_libdir"
9064                            for dep in $dependency_libs; do
9065                case "$dep" in
9066                  -L*)
9067                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9068                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
9069                      haveit=
9070                      if test "X$additional_libdir" = "X/usr/local/lib"; then
9071                        if test -n "$GCC"; then
9072                          case $host_os in
9073                            linux*) haveit=yes;;
9074                          esac
9075                        fi
9076                      fi
9077                      if test -z "$haveit"; then
9078                        haveit=
9079                        for x in $LDFLAGS $LIBICONV; do
9080
9081  acl_save_prefix="$prefix"
9082  prefix="$acl_final_prefix"
9083  acl_save_exec_prefix="$exec_prefix"
9084  exec_prefix="$acl_final_exec_prefix"
9085  eval x=\"$x\"
9086  exec_prefix="$acl_save_exec_prefix"
9087  prefix="$acl_save_prefix"
9088
9089                          if test "X$x" = "X-L$additional_libdir"; then
9090                            haveit=yes
9091                            break
9092                          fi
9093                        done
9094                        if test -z "$haveit"; then
9095                          if test -d "$additional_libdir"; then
9096                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9097                          fi
9098                        fi
9099                        haveit=
9100                        for x in $LDFLAGS $LTLIBICONV; do
9101
9102  acl_save_prefix="$prefix"
9103  prefix="$acl_final_prefix"
9104  acl_save_exec_prefix="$exec_prefix"
9105  exec_prefix="$acl_final_exec_prefix"
9106  eval x=\"$x\"
9107  exec_prefix="$acl_save_exec_prefix"
9108  prefix="$acl_save_prefix"
9109
9110                          if test "X$x" = "X-L$additional_libdir"; then
9111                            haveit=yes
9112                            break
9113                          fi
9114                        done
9115                        if test -z "$haveit"; then
9116                          if test -d "$additional_libdir"; then
9117                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9118                          fi
9119                        fi
9120                      fi
9121                    fi
9122                    ;;
9123                  -R*)
9124                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9125                    if test "$enable_rpath" != no; then
9126                                                                  haveit=
9127                      for x in $rpathdirs; do
9128                        if test "X$x" = "X$dir"; then
9129                          haveit=yes
9130                          break
9131                        fi
9132                      done
9133                      if test -z "$haveit"; then
9134                        rpathdirs="$rpathdirs $dir"
9135                      fi
9136                                                                  haveit=
9137                      for x in $ltrpathdirs; do
9138                        if test "X$x" = "X$dir"; then
9139                          haveit=yes
9140                          break
9141                        fi
9142                      done
9143                      if test -z "$haveit"; then
9144                        ltrpathdirs="$ltrpathdirs $dir"
9145                      fi
9146                    fi
9147                    ;;
9148                  -l*)
9149                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9150                    ;;
9151                  *.la)
9152                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9153                    ;;
9154                  *)
9155                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9156                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9157                    ;;
9158                esac
9159              done
9160            fi
9161          else
9162                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9163            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9164          fi
9165        fi
9166      fi
9167    done
9168  done
9169  if test "X$rpathdirs" != "X"; then
9170    if test -n "$hardcode_libdir_separator"; then
9171                        alldirs=
9172      for found_dir in $rpathdirs; do
9173        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9174      done
9175            acl_save_libdir="$libdir"
9176      libdir="$alldirs"
9177      eval flag=\"$hardcode_libdir_flag_spec\"
9178      libdir="$acl_save_libdir"
9179      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9180    else
9181            for found_dir in $rpathdirs; do
9182        acl_save_libdir="$libdir"
9183        libdir="$found_dir"
9184        eval flag=\"$hardcode_libdir_flag_spec\"
9185        libdir="$acl_save_libdir"
9186        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9187      done
9188    fi
9189  fi
9190  if test "X$ltrpathdirs" != "X"; then
9191            for found_dir in $ltrpathdirs; do
9192      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9193    done
9194  fi
9195
9196
9197
9198
9199
9200
9201
9202
9203  { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9204$as_echo_n "checking for ptrdiff_t... " >&6; }
9205if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9206  $as_echo_n "(cached) " >&6
9207else
9208  ac_cv_type_ptrdiff_t=no
9209cat >conftest.$ac_ext <<_ACEOF
9210/* confdefs.h.  */
9211_ACEOF
9212cat confdefs.h >>conftest.$ac_ext
9213cat >>conftest.$ac_ext <<_ACEOF
9214/* end confdefs.h.  */
9215$ac_includes_default
9216int
9217main ()
9218{
9219if (sizeof (ptrdiff_t))
9220       return 0;
9221  ;
9222  return 0;
9223}
9224_ACEOF
9225rm -f conftest.$ac_objext
9226if { (ac_try="$ac_compile"
9227case "(($ac_try" in
9228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229  *) ac_try_echo=$ac_try;;
9230esac
9231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9232$as_echo "$ac_try_echo") >&5
9233  (eval "$ac_compile") 2>conftest.er1
9234  ac_status=$?
9235  grep -v '^ *+' conftest.er1 >conftest.err
9236  rm -f conftest.er1
9237  cat conftest.err >&5
9238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239  (exit $ac_status); } && {
9240	 test -z "$ac_c_werror_flag" ||
9241	 test ! -s conftest.err
9242       } && test -s conftest.$ac_objext; then
9243  cat >conftest.$ac_ext <<_ACEOF
9244/* confdefs.h.  */
9245_ACEOF
9246cat confdefs.h >>conftest.$ac_ext
9247cat >>conftest.$ac_ext <<_ACEOF
9248/* end confdefs.h.  */
9249$ac_includes_default
9250int
9251main ()
9252{
9253if (sizeof ((ptrdiff_t)))
9254	  return 0;
9255  ;
9256  return 0;
9257}
9258_ACEOF
9259rm -f conftest.$ac_objext
9260if { (ac_try="$ac_compile"
9261case "(($ac_try" in
9262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263  *) ac_try_echo=$ac_try;;
9264esac
9265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9266$as_echo "$ac_try_echo") >&5
9267  (eval "$ac_compile") 2>conftest.er1
9268  ac_status=$?
9269  grep -v '^ *+' conftest.er1 >conftest.err
9270  rm -f conftest.er1
9271  cat conftest.err >&5
9272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273  (exit $ac_status); } && {
9274	 test -z "$ac_c_werror_flag" ||
9275	 test ! -s conftest.err
9276       } && test -s conftest.$ac_objext; then
9277  :
9278else
9279  $as_echo "$as_me: failed program was:" >&5
9280sed 's/^/| /' conftest.$ac_ext >&5
9281
9282	ac_cv_type_ptrdiff_t=yes
9283fi
9284
9285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286else
9287  $as_echo "$as_me: failed program was:" >&5
9288sed 's/^/| /' conftest.$ac_ext >&5
9289
9290
9291fi
9292
9293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294fi
9295{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9296$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
9297if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
9298  :
9299else
9300
9301cat >>confdefs.h <<\_ACEOF
9302#define ptrdiff_t long
9303_ACEOF
9304
9305
9306fi
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9319stdlib.h string.h unistd.h sys/param.h
9320do
9321as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9323  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9324$as_echo_n "checking for $ac_header... " >&6; }
9325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9326  $as_echo_n "(cached) " >&6
9327fi
9328ac_res=`eval 'as_val=${'$as_ac_Header'}
9329		 $as_echo "$as_val"'`
9330	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9331$as_echo "$ac_res" >&6; }
9332else
9333  # Is the header compilable?
9334{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9335$as_echo_n "checking $ac_header usability... " >&6; }
9336cat >conftest.$ac_ext <<_ACEOF
9337/* confdefs.h.  */
9338_ACEOF
9339cat confdefs.h >>conftest.$ac_ext
9340cat >>conftest.$ac_ext <<_ACEOF
9341/* end confdefs.h.  */
9342$ac_includes_default
9343#include <$ac_header>
9344_ACEOF
9345rm -f conftest.$ac_objext
9346if { (ac_try="$ac_compile"
9347case "(($ac_try" in
9348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349  *) ac_try_echo=$ac_try;;
9350esac
9351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9352$as_echo "$ac_try_echo") >&5
9353  (eval "$ac_compile") 2>conftest.er1
9354  ac_status=$?
9355  grep -v '^ *+' conftest.er1 >conftest.err
9356  rm -f conftest.er1
9357  cat conftest.err >&5
9358  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359  (exit $ac_status); } && {
9360	 test -z "$ac_c_werror_flag" ||
9361	 test ! -s conftest.err
9362       } && test -s conftest.$ac_objext; then
9363  ac_header_compiler=yes
9364else
9365  $as_echo "$as_me: failed program was:" >&5
9366sed 's/^/| /' conftest.$ac_ext >&5
9367
9368	ac_header_compiler=no
9369fi
9370
9371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9373$as_echo "$ac_header_compiler" >&6; }
9374
9375# Is the header present?
9376{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9377$as_echo_n "checking $ac_header presence... " >&6; }
9378cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h.  */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h.  */
9384#include <$ac_header>
9385_ACEOF
9386if { (ac_try="$ac_cpp conftest.$ac_ext"
9387case "(($ac_try" in
9388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389  *) ac_try_echo=$ac_try;;
9390esac
9391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9392$as_echo "$ac_try_echo") >&5
9393  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9394  ac_status=$?
9395  grep -v '^ *+' conftest.er1 >conftest.err
9396  rm -f conftest.er1
9397  cat conftest.err >&5
9398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399  (exit $ac_status); } >/dev/null && {
9400	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9401	 test ! -s conftest.err
9402       }; then
9403  ac_header_preproc=yes
9404else
9405  $as_echo "$as_me: failed program was:" >&5
9406sed 's/^/| /' conftest.$ac_ext >&5
9407
9408  ac_header_preproc=no
9409fi
9410
9411rm -f conftest.err conftest.$ac_ext
9412{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9413$as_echo "$ac_header_preproc" >&6; }
9414
9415# So?  What about this header?
9416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9417  yes:no: )
9418    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9419$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9420    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9421$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9422    ac_header_preproc=yes
9423    ;;
9424  no:yes:* )
9425    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9426$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9427    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9428$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9429    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9430$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9431    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9432$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9433    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9434$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9435    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9436$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9437    ( cat <<\_ASBOX
9438## ------------------------------------ ##
9439## Report this to suzhe@tsinghua.org.cn ##
9440## ------------------------------------ ##
9441_ASBOX
9442     ) | sed "s/^/$as_me: WARNING:     /" >&2
9443    ;;
9444esac
9445{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9446$as_echo_n "checking for $ac_header... " >&6; }
9447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448  $as_echo_n "(cached) " >&6
9449else
9450  eval "$as_ac_Header=\$ac_header_preproc"
9451fi
9452ac_res=`eval 'as_val=${'$as_ac_Header'}
9453		 $as_echo "$as_val"'`
9454	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9455$as_echo "$ac_res" >&6; }
9456
9457fi
9458as_val=`eval 'as_val=${'$as_ac_Header'}
9459		 $as_echo "$as_val"'`
9460   if test "x$as_val" = x""yes; then
9461  cat >>confdefs.h <<_ACEOF
9462#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9463_ACEOF
9464
9465fi
9466
9467done
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9493mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9494strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9495__fsetlocking
9496do
9497as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9498{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9499$as_echo_n "checking for $ac_func... " >&6; }
9500if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9501  $as_echo_n "(cached) " >&6
9502else
9503  cat >conftest.$ac_ext <<_ACEOF
9504/* confdefs.h.  */
9505_ACEOF
9506cat confdefs.h >>conftest.$ac_ext
9507cat >>conftest.$ac_ext <<_ACEOF
9508/* end confdefs.h.  */
9509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9510   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9511#define $ac_func innocuous_$ac_func
9512
9513/* System header to define __stub macros and hopefully few prototypes,
9514    which can conflict with char $ac_func (); below.
9515    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516    <limits.h> exists even on freestanding compilers.  */
9517
9518#ifdef __STDC__
9519# include <limits.h>
9520#else
9521# include <assert.h>
9522#endif
9523
9524#undef $ac_func
9525
9526/* Override any GCC internal prototype to avoid an error.
9527   Use char because int might match the return type of a GCC
9528   builtin and then its argument prototype would still apply.  */
9529#ifdef __cplusplus
9530extern "C"
9531#endif
9532char $ac_func ();
9533/* The GNU C library defines this for functions which it implements
9534    to always fail with ENOSYS.  Some functions are actually named
9535    something starting with __ and the normal name is an alias.  */
9536#if defined __stub_$ac_func || defined __stub___$ac_func
9537choke me
9538#endif
9539
9540int
9541main ()
9542{
9543return $ac_func ();
9544  ;
9545  return 0;
9546}
9547_ACEOF
9548rm -f conftest.$ac_objext conftest$ac_exeext
9549if { (ac_try="$ac_link"
9550case "(($ac_try" in
9551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552  *) ac_try_echo=$ac_try;;
9553esac
9554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9555$as_echo "$ac_try_echo") >&5
9556  (eval "$ac_link") 2>conftest.er1
9557  ac_status=$?
9558  grep -v '^ *+' conftest.er1 >conftest.err
9559  rm -f conftest.er1
9560  cat conftest.err >&5
9561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562  (exit $ac_status); } && {
9563	 test -z "$ac_c_werror_flag" ||
9564	 test ! -s conftest.err
9565       } && test -s conftest$ac_exeext && {
9566	 test "$cross_compiling" = yes ||
9567	 $as_test_x conftest$ac_exeext
9568       }; then
9569  eval "$as_ac_var=yes"
9570else
9571  $as_echo "$as_me: failed program was:" >&5
9572sed 's/^/| /' conftest.$ac_ext >&5
9573
9574	eval "$as_ac_var=no"
9575fi
9576
9577rm -rf conftest.dSYM
9578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9579      conftest$ac_exeext conftest.$ac_ext
9580fi
9581ac_res=`eval 'as_val=${'$as_ac_var'}
9582		 $as_echo "$as_val"'`
9583	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9584$as_echo "$ac_res" >&6; }
9585as_val=`eval 'as_val=${'$as_ac_var'}
9586		 $as_echo "$as_val"'`
9587   if test "x$as_val" = x""yes; then
9588  cat >>confdefs.h <<_ACEOF
9589#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9590_ACEOF
9591
9592fi
9593done
9594
9595
9596
9597  { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9598$as_echo_n "checking whether _snprintf is declared... " >&6; }
9599if test "${ac_cv_have_decl__snprintf+set}" = set; then
9600  $as_echo_n "(cached) " >&6
9601else
9602  cat >conftest.$ac_ext <<_ACEOF
9603/* confdefs.h.  */
9604_ACEOF
9605cat confdefs.h >>conftest.$ac_ext
9606cat >>conftest.$ac_ext <<_ACEOF
9607/* end confdefs.h.  */
9608#include <stdio.h>
9609int
9610main ()
9611{
9612
9613#ifndef _snprintf
9614  char *p = (char *) _snprintf;
9615#endif
9616
9617  ;
9618  return 0;
9619}
9620_ACEOF
9621rm -f conftest.$ac_objext
9622if { (ac_try="$ac_compile"
9623case "(($ac_try" in
9624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625  *) ac_try_echo=$ac_try;;
9626esac
9627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628$as_echo "$ac_try_echo") >&5
9629  (eval "$ac_compile") 2>conftest.er1
9630  ac_status=$?
9631  grep -v '^ *+' conftest.er1 >conftest.err
9632  rm -f conftest.er1
9633  cat conftest.err >&5
9634  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635  (exit $ac_status); } && {
9636	 test -z "$ac_c_werror_flag" ||
9637	 test ! -s conftest.err
9638       } && test -s conftest.$ac_objext; then
9639  ac_cv_have_decl__snprintf=yes
9640else
9641  $as_echo "$as_me: failed program was:" >&5
9642sed 's/^/| /' conftest.$ac_ext >&5
9643
9644	ac_cv_have_decl__snprintf=no
9645fi
9646
9647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648fi
9649{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9650$as_echo "$ac_cv_have_decl__snprintf" >&6; }
9651  if test $ac_cv_have_decl__snprintf = yes; then
9652    gt_value=1
9653  else
9654    gt_value=0
9655  fi
9656
9657cat >>confdefs.h <<_ACEOF
9658#define HAVE_DECL__SNPRINTF $gt_value
9659_ACEOF
9660
9661
9662
9663  { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9664$as_echo_n "checking whether _snwprintf is declared... " >&6; }
9665if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9666  $as_echo_n "(cached) " >&6
9667else
9668  cat >conftest.$ac_ext <<_ACEOF
9669/* confdefs.h.  */
9670_ACEOF
9671cat confdefs.h >>conftest.$ac_ext
9672cat >>conftest.$ac_ext <<_ACEOF
9673/* end confdefs.h.  */
9674#include <stdio.h>
9675int
9676main ()
9677{
9678
9679#ifndef _snwprintf
9680  char *p = (char *) _snwprintf;
9681#endif
9682
9683  ;
9684  return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext
9688if { (ac_try="$ac_compile"
9689case "(($ac_try" in
9690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691  *) ac_try_echo=$ac_try;;
9692esac
9693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9694$as_echo "$ac_try_echo") >&5
9695  (eval "$ac_compile") 2>conftest.er1
9696  ac_status=$?
9697  grep -v '^ *+' conftest.er1 >conftest.err
9698  rm -f conftest.er1
9699  cat conftest.err >&5
9700  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701  (exit $ac_status); } && {
9702	 test -z "$ac_c_werror_flag" ||
9703	 test ! -s conftest.err
9704       } && test -s conftest.$ac_objext; then
9705  ac_cv_have_decl__snwprintf=yes
9706else
9707  $as_echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
9710	ac_cv_have_decl__snwprintf=no
9711fi
9712
9713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714fi
9715{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9716$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
9717  if test $ac_cv_have_decl__snwprintf = yes; then
9718    gt_value=1
9719  else
9720    gt_value=0
9721  fi
9722
9723cat >>confdefs.h <<_ACEOF
9724#define HAVE_DECL__SNWPRINTF $gt_value
9725_ACEOF
9726
9727
9728
9729
9730  { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9731$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
9732if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9733  $as_echo_n "(cached) " >&6
9734else
9735  cat >conftest.$ac_ext <<_ACEOF
9736/* confdefs.h.  */
9737_ACEOF
9738cat confdefs.h >>conftest.$ac_ext
9739cat >>conftest.$ac_ext <<_ACEOF
9740/* end confdefs.h.  */
9741#include <stdio.h>
9742int
9743main ()
9744{
9745
9746#ifndef feof_unlocked
9747  char *p = (char *) feof_unlocked;
9748#endif
9749
9750  ;
9751  return 0;
9752}
9753_ACEOF
9754rm -f conftest.$ac_objext
9755if { (ac_try="$ac_compile"
9756case "(($ac_try" in
9757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758  *) ac_try_echo=$ac_try;;
9759esac
9760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9761$as_echo "$ac_try_echo") >&5
9762  (eval "$ac_compile") 2>conftest.er1
9763  ac_status=$?
9764  grep -v '^ *+' conftest.er1 >conftest.err
9765  rm -f conftest.er1
9766  cat conftest.err >&5
9767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768  (exit $ac_status); } && {
9769	 test -z "$ac_c_werror_flag" ||
9770	 test ! -s conftest.err
9771       } && test -s conftest.$ac_objext; then
9772  ac_cv_have_decl_feof_unlocked=yes
9773else
9774  $as_echo "$as_me: failed program was:" >&5
9775sed 's/^/| /' conftest.$ac_ext >&5
9776
9777	ac_cv_have_decl_feof_unlocked=no
9778fi
9779
9780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781fi
9782{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9783$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
9784  if test $ac_cv_have_decl_feof_unlocked = yes; then
9785    gt_value=1
9786  else
9787    gt_value=0
9788  fi
9789
9790cat >>confdefs.h <<_ACEOF
9791#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9792_ACEOF
9793
9794
9795
9796  { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9797$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
9798if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9799  $as_echo_n "(cached) " >&6
9800else
9801  cat >conftest.$ac_ext <<_ACEOF
9802/* confdefs.h.  */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h.  */
9807#include <stdio.h>
9808int
9809main ()
9810{
9811
9812#ifndef fgets_unlocked
9813  char *p = (char *) fgets_unlocked;
9814#endif
9815
9816  ;
9817  return 0;
9818}
9819_ACEOF
9820rm -f conftest.$ac_objext
9821if { (ac_try="$ac_compile"
9822case "(($ac_try" in
9823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824  *) ac_try_echo=$ac_try;;
9825esac
9826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9827$as_echo "$ac_try_echo") >&5
9828  (eval "$ac_compile") 2>conftest.er1
9829  ac_status=$?
9830  grep -v '^ *+' conftest.er1 >conftest.err
9831  rm -f conftest.er1
9832  cat conftest.err >&5
9833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834  (exit $ac_status); } && {
9835	 test -z "$ac_c_werror_flag" ||
9836	 test ! -s conftest.err
9837       } && test -s conftest.$ac_objext; then
9838  ac_cv_have_decl_fgets_unlocked=yes
9839else
9840  $as_echo "$as_me: failed program was:" >&5
9841sed 's/^/| /' conftest.$ac_ext >&5
9842
9843	ac_cv_have_decl_fgets_unlocked=no
9844fi
9845
9846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847fi
9848{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9849$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
9850  if test $ac_cv_have_decl_fgets_unlocked = yes; then
9851    gt_value=1
9852  else
9853    gt_value=0
9854  fi
9855
9856cat >>confdefs.h <<_ACEOF
9857#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9858_ACEOF
9859
9860
9861
9862  { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9863$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
9864if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9865  $as_echo_n "(cached) " >&6
9866else
9867  cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h.  */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
9872/* end confdefs.h.  */
9873#include <stdio.h>
9874int
9875main ()
9876{
9877
9878#ifndef getc_unlocked
9879  char *p = (char *) getc_unlocked;
9880#endif
9881
9882  ;
9883  return 0;
9884}
9885_ACEOF
9886rm -f conftest.$ac_objext
9887if { (ac_try="$ac_compile"
9888case "(($ac_try" in
9889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890  *) ac_try_echo=$ac_try;;
9891esac
9892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9893$as_echo "$ac_try_echo") >&5
9894  (eval "$ac_compile") 2>conftest.er1
9895  ac_status=$?
9896  grep -v '^ *+' conftest.er1 >conftest.err
9897  rm -f conftest.er1
9898  cat conftest.err >&5
9899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900  (exit $ac_status); } && {
9901	 test -z "$ac_c_werror_flag" ||
9902	 test ! -s conftest.err
9903       } && test -s conftest.$ac_objext; then
9904  ac_cv_have_decl_getc_unlocked=yes
9905else
9906  $as_echo "$as_me: failed program was:" >&5
9907sed 's/^/| /' conftest.$ac_ext >&5
9908
9909	ac_cv_have_decl_getc_unlocked=no
9910fi
9911
9912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913fi
9914{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9915$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
9916  if test $ac_cv_have_decl_getc_unlocked = yes; then
9917    gt_value=1
9918  else
9919    gt_value=0
9920  fi
9921
9922cat >>confdefs.h <<_ACEOF
9923#define HAVE_DECL_GETC_UNLOCKED $gt_value
9924_ACEOF
9925
9926
9927
9928  case $gt_cv_func_printf_posix in
9929    *yes) HAVE_POSIX_PRINTF=1 ;;
9930    *) HAVE_POSIX_PRINTF=0 ;;
9931  esac
9932
9933  if test "$ac_cv_func_asprintf" = yes; then
9934    HAVE_ASPRINTF=1
9935  else
9936    HAVE_ASPRINTF=0
9937  fi
9938
9939  if test "$ac_cv_func_snprintf" = yes; then
9940    HAVE_SNPRINTF=1
9941  else
9942    HAVE_SNPRINTF=0
9943  fi
9944
9945  if test "$ac_cv_func_wprintf" = yes; then
9946    HAVE_WPRINTF=1
9947  else
9948    HAVE_WPRINTF=0
9949  fi
9950
9951
9952
9953
9954
9955
9956
9957          am_save_CPPFLAGS="$CPPFLAGS"
9958
9959  for element in $INCICONV; do
9960    haveit=
9961    for x in $CPPFLAGS; do
9962
9963  acl_save_prefix="$prefix"
9964  prefix="$acl_final_prefix"
9965  acl_save_exec_prefix="$exec_prefix"
9966  exec_prefix="$acl_final_exec_prefix"
9967  eval x=\"$x\"
9968  exec_prefix="$acl_save_exec_prefix"
9969  prefix="$acl_save_prefix"
9970
9971      if test "X$x" = "X$element"; then
9972        haveit=yes
9973        break
9974      fi
9975    done
9976    if test -z "$haveit"; then
9977      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9978    fi
9979  done
9980
9981
9982  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9983$as_echo_n "checking for iconv... " >&6; }
9984if test "${am_cv_func_iconv+set}" = set; then
9985  $as_echo_n "(cached) " >&6
9986else
9987
9988    am_cv_func_iconv="no, consider installing GNU libiconv"
9989    am_cv_lib_iconv=no
9990    cat >conftest.$ac_ext <<_ACEOF
9991/* confdefs.h.  */
9992_ACEOF
9993cat confdefs.h >>conftest.$ac_ext
9994cat >>conftest.$ac_ext <<_ACEOF
9995/* end confdefs.h.  */
9996#include <stdlib.h>
9997#include <iconv.h>
9998int
9999main ()
10000{
10001iconv_t cd = iconv_open("","");
10002       iconv(cd,NULL,NULL,NULL,NULL);
10003       iconv_close(cd);
10004  ;
10005  return 0;
10006}
10007_ACEOF
10008rm -f conftest.$ac_objext conftest$ac_exeext
10009if { (ac_try="$ac_link"
10010case "(($ac_try" in
10011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012  *) ac_try_echo=$ac_try;;
10013esac
10014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10015$as_echo "$ac_try_echo") >&5
10016  (eval "$ac_link") 2>conftest.er1
10017  ac_status=$?
10018  grep -v '^ *+' conftest.er1 >conftest.err
10019  rm -f conftest.er1
10020  cat conftest.err >&5
10021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022  (exit $ac_status); } && {
10023	 test -z "$ac_c_werror_flag" ||
10024	 test ! -s conftest.err
10025       } && test -s conftest$ac_exeext && {
10026	 test "$cross_compiling" = yes ||
10027	 $as_test_x conftest$ac_exeext
10028       }; then
10029  am_cv_func_iconv=yes
10030else
10031  $as_echo "$as_me: failed program was:" >&5
10032sed 's/^/| /' conftest.$ac_ext >&5
10033
10034
10035fi
10036
10037rm -rf conftest.dSYM
10038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039      conftest$ac_exeext conftest.$ac_ext
10040    if test "$am_cv_func_iconv" != yes; then
10041      am_save_LIBS="$LIBS"
10042      LIBS="$LIBS $LIBICONV"
10043      cat >conftest.$ac_ext <<_ACEOF
10044/* confdefs.h.  */
10045_ACEOF
10046cat confdefs.h >>conftest.$ac_ext
10047cat >>conftest.$ac_ext <<_ACEOF
10048/* end confdefs.h.  */
10049#include <stdlib.h>
10050#include <iconv.h>
10051int
10052main ()
10053{
10054iconv_t cd = iconv_open("","");
10055         iconv(cd,NULL,NULL,NULL,NULL);
10056         iconv_close(cd);
10057  ;
10058  return 0;
10059}
10060_ACEOF
10061rm -f conftest.$ac_objext conftest$ac_exeext
10062if { (ac_try="$ac_link"
10063case "(($ac_try" in
10064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065  *) ac_try_echo=$ac_try;;
10066esac
10067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10068$as_echo "$ac_try_echo") >&5
10069  (eval "$ac_link") 2>conftest.er1
10070  ac_status=$?
10071  grep -v '^ *+' conftest.er1 >conftest.err
10072  rm -f conftest.er1
10073  cat conftest.err >&5
10074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075  (exit $ac_status); } && {
10076	 test -z "$ac_c_werror_flag" ||
10077	 test ! -s conftest.err
10078       } && test -s conftest$ac_exeext && {
10079	 test "$cross_compiling" = yes ||
10080	 $as_test_x conftest$ac_exeext
10081       }; then
10082  am_cv_lib_iconv=yes
10083        am_cv_func_iconv=yes
10084else
10085  $as_echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
10088
10089fi
10090
10091rm -rf conftest.dSYM
10092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093      conftest$ac_exeext conftest.$ac_ext
10094      LIBS="$am_save_LIBS"
10095    fi
10096
10097fi
10098{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10099$as_echo "$am_cv_func_iconv" >&6; }
10100  if test "$am_cv_func_iconv" = yes; then
10101
10102cat >>confdefs.h <<\_ACEOF
10103#define HAVE_ICONV 1
10104_ACEOF
10105
10106  fi
10107  if test "$am_cv_lib_iconv" = yes; then
10108    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10109$as_echo_n "checking how to link with libiconv... " >&6; }
10110    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10111$as_echo "$LIBICONV" >&6; }
10112  else
10113            CPPFLAGS="$am_save_CPPFLAGS"
10114    LIBICONV=
10115    LTLIBICONV=
10116  fi
10117
10118
10119
10120  if test "$am_cv_func_iconv" = yes; then
10121    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10122$as_echo_n "checking for iconv declaration... " >&6; }
10123    if test "${am_cv_proto_iconv+set}" = set; then
10124  $as_echo_n "(cached) " >&6
10125else
10126
10127      cat >conftest.$ac_ext <<_ACEOF
10128/* confdefs.h.  */
10129_ACEOF
10130cat confdefs.h >>conftest.$ac_ext
10131cat >>conftest.$ac_ext <<_ACEOF
10132/* end confdefs.h.  */
10133
10134#include <stdlib.h>
10135#include <iconv.h>
10136extern
10137#ifdef __cplusplus
10138"C"
10139#endif
10140#if defined(__STDC__) || defined(__cplusplus)
10141size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10142#else
10143size_t iconv();
10144#endif
10145
10146int
10147main ()
10148{
10149
10150  ;
10151  return 0;
10152}
10153_ACEOF
10154rm -f conftest.$ac_objext
10155if { (ac_try="$ac_compile"
10156case "(($ac_try" in
10157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158  *) ac_try_echo=$ac_try;;
10159esac
10160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10161$as_echo "$ac_try_echo") >&5
10162  (eval "$ac_compile") 2>conftest.er1
10163  ac_status=$?
10164  grep -v '^ *+' conftest.er1 >conftest.err
10165  rm -f conftest.er1
10166  cat conftest.err >&5
10167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); } && {
10169	 test -z "$ac_c_werror_flag" ||
10170	 test ! -s conftest.err
10171       } && test -s conftest.$ac_objext; then
10172  am_cv_proto_iconv_arg1=""
10173else
10174  $as_echo "$as_me: failed program was:" >&5
10175sed 's/^/| /' conftest.$ac_ext >&5
10176
10177	am_cv_proto_iconv_arg1="const"
10178fi
10179
10180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10181      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10182fi
10183
10184    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10185    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10186         }$am_cv_proto_iconv" >&5
10187$as_echo "${ac_t:-
10188         }$am_cv_proto_iconv" >&6; }
10189
10190cat >>confdefs.h <<_ACEOF
10191#define ICONV_CONST $am_cv_proto_iconv_arg1
10192_ACEOF
10193
10194  fi
10195
10196
10197  { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10198$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10199if test "${am_cv_langinfo_codeset+set}" = set; then
10200  $as_echo_n "(cached) " >&6
10201else
10202  cat >conftest.$ac_ext <<_ACEOF
10203/* confdefs.h.  */
10204_ACEOF
10205cat confdefs.h >>conftest.$ac_ext
10206cat >>conftest.$ac_ext <<_ACEOF
10207/* end confdefs.h.  */
10208#include <langinfo.h>
10209int
10210main ()
10211{
10212char* cs = nl_langinfo(CODESET);
10213  ;
10214  return 0;
10215}
10216_ACEOF
10217rm -f conftest.$ac_objext conftest$ac_exeext
10218if { (ac_try="$ac_link"
10219case "(($ac_try" in
10220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221  *) ac_try_echo=$ac_try;;
10222esac
10223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10224$as_echo "$ac_try_echo") >&5
10225  (eval "$ac_link") 2>conftest.er1
10226  ac_status=$?
10227  grep -v '^ *+' conftest.er1 >conftest.err
10228  rm -f conftest.er1
10229  cat conftest.err >&5
10230  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231  (exit $ac_status); } && {
10232	 test -z "$ac_c_werror_flag" ||
10233	 test ! -s conftest.err
10234       } && test -s conftest$ac_exeext && {
10235	 test "$cross_compiling" = yes ||
10236	 $as_test_x conftest$ac_exeext
10237       }; then
10238  am_cv_langinfo_codeset=yes
10239else
10240  $as_echo "$as_me: failed program was:" >&5
10241sed 's/^/| /' conftest.$ac_ext >&5
10242
10243	am_cv_langinfo_codeset=no
10244fi
10245
10246rm -rf conftest.dSYM
10247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10248      conftest$ac_exeext conftest.$ac_ext
10249
10250fi
10251{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10252$as_echo "$am_cv_langinfo_codeset" >&6; }
10253  if test $am_cv_langinfo_codeset = yes; then
10254
10255cat >>confdefs.h <<\_ACEOF
10256#define HAVE_LANGINFO_CODESET 1
10257_ACEOF
10258
10259  fi
10260
10261  if test $ac_cv_header_locale_h = yes; then
10262
10263  { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10264$as_echo_n "checking for LC_MESSAGES... " >&6; }
10265if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10266  $as_echo_n "(cached) " >&6
10267else
10268  cat >conftest.$ac_ext <<_ACEOF
10269/* confdefs.h.  */
10270_ACEOF
10271cat confdefs.h >>conftest.$ac_ext
10272cat >>conftest.$ac_ext <<_ACEOF
10273/* end confdefs.h.  */
10274#include <locale.h>
10275int
10276main ()
10277{
10278return LC_MESSAGES
10279  ;
10280  return 0;
10281}
10282_ACEOF
10283rm -f conftest.$ac_objext conftest$ac_exeext
10284if { (ac_try="$ac_link"
10285case "(($ac_try" in
10286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287  *) ac_try_echo=$ac_try;;
10288esac
10289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290$as_echo "$ac_try_echo") >&5
10291  (eval "$ac_link") 2>conftest.er1
10292  ac_status=$?
10293  grep -v '^ *+' conftest.er1 >conftest.err
10294  rm -f conftest.er1
10295  cat conftest.err >&5
10296  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); } && {
10298	 test -z "$ac_c_werror_flag" ||
10299	 test ! -s conftest.err
10300       } && test -s conftest$ac_exeext && {
10301	 test "$cross_compiling" = yes ||
10302	 $as_test_x conftest$ac_exeext
10303       }; then
10304  am_cv_val_LC_MESSAGES=yes
10305else
10306  $as_echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309	am_cv_val_LC_MESSAGES=no
10310fi
10311
10312rm -rf conftest.dSYM
10313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10314      conftest$ac_exeext conftest.$ac_ext
10315fi
10316{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10317$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10318  if test $am_cv_val_LC_MESSAGES = yes; then
10319
10320cat >>confdefs.h <<\_ACEOF
10321#define HAVE_LC_MESSAGES 1
10322_ACEOF
10323
10324  fi
10325
10326  fi
10327
10328                      for ac_prog in bison
10329do
10330  # Extract the first word of "$ac_prog", so it can be a program name with args.
10331set dummy $ac_prog; ac_word=$2
10332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10333$as_echo_n "checking for $ac_word... " >&6; }
10334if test "${ac_cv_prog_INTLBISON+set}" = set; then
10335  $as_echo_n "(cached) " >&6
10336else
10337  if test -n "$INTLBISON"; then
10338  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10339else
10340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341for as_dir in $PATH
10342do
10343  IFS=$as_save_IFS
10344  test -z "$as_dir" && as_dir=.
10345  for ac_exec_ext in '' $ac_executable_extensions; do
10346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347    ac_cv_prog_INTLBISON="$ac_prog"
10348    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10349    break 2
10350  fi
10351done
10352done
10353IFS=$as_save_IFS
10354
10355fi
10356fi
10357INTLBISON=$ac_cv_prog_INTLBISON
10358if test -n "$INTLBISON"; then
10359  { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10360$as_echo "$INTLBISON" >&6; }
10361else
10362  { $as_echo "$as_me:$LINENO: result: no" >&5
10363$as_echo "no" >&6; }
10364fi
10365
10366
10367  test -n "$INTLBISON" && break
10368done
10369
10370  if test -z "$INTLBISON"; then
10371    ac_verc_fail=yes
10372  else
10373        { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10374$as_echo_n "checking version of bison... " >&6; }
10375    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10376    case $ac_prog_version in
10377      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10378      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10379         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10380      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10381    esac
10382    { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10383$as_echo "$ac_prog_version" >&6; }
10384  fi
10385  if test $ac_verc_fail = yes; then
10386    INTLBISON=:
10387  fi
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10405$as_echo_n "checking whether NLS is requested... " >&6; }
10406    # Check whether --enable-nls was given.
10407if test "${enable_nls+set}" = set; then
10408  enableval=$enable_nls; USE_NLS=$enableval
10409else
10410  USE_NLS=yes
10411fi
10412
10413  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10414$as_echo "$USE_NLS" >&6; }
10415
10416
10417
10418
10419    BUILD_INCLUDED_LIBINTL=no
10420    USE_INCLUDED_LIBINTL=no
10421
10422  LIBINTL=
10423  LTLIBINTL=
10424  POSUB=
10425
10426    if test "$USE_NLS" = "yes"; then
10427    gt_use_preinstalled_gnugettext=no
10428
10429      { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10430$as_echo_n "checking whether included gettext is requested... " >&6; }
10431
10432# Check whether --with-included-gettext was given.
10433if test "${with_included_gettext+set}" = set; then
10434  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10435else
10436  nls_cv_force_use_gnu_gettext=no
10437fi
10438
10439      { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10440$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10441
10442      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10443      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10444
10445
10446
10447
10448
10449
10450        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10451$as_echo_n "checking for GNU gettext in libc... " >&6; }
10452if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10453  $as_echo_n "(cached) " >&6
10454else
10455  cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h.  */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h.  */
10461#include <libintl.h>
10462extern int _nl_msg_cat_cntr;
10463extern int *_nl_domain_bindings;
10464int
10465main ()
10466{
10467bindtextdomain ("", "");
10468return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10469  ;
10470  return 0;
10471}
10472_ACEOF
10473rm -f conftest.$ac_objext conftest$ac_exeext
10474if { (ac_try="$ac_link"
10475case "(($ac_try" in
10476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477  *) ac_try_echo=$ac_try;;
10478esac
10479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10480$as_echo "$ac_try_echo") >&5
10481  (eval "$ac_link") 2>conftest.er1
10482  ac_status=$?
10483  grep -v '^ *+' conftest.er1 >conftest.err
10484  rm -f conftest.er1
10485  cat conftest.err >&5
10486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487  (exit $ac_status); } && {
10488	 test -z "$ac_c_werror_flag" ||
10489	 test ! -s conftest.err
10490       } && test -s conftest$ac_exeext && {
10491	 test "$cross_compiling" = yes ||
10492	 $as_test_x conftest$ac_exeext
10493       }; then
10494  gt_cv_func_gnugettext1_libc=yes
10495else
10496  $as_echo "$as_me: failed program was:" >&5
10497sed 's/^/| /' conftest.$ac_ext >&5
10498
10499	gt_cv_func_gnugettext1_libc=no
10500fi
10501
10502rm -rf conftest.dSYM
10503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10504      conftest$ac_exeext conftest.$ac_ext
10505fi
10506{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10507$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
10508
10509        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10510
10511
10512
10513    use_additional=yes
10514
10515  acl_save_prefix="$prefix"
10516  prefix="$acl_final_prefix"
10517  acl_save_exec_prefix="$exec_prefix"
10518  exec_prefix="$acl_final_exec_prefix"
10519
10520    eval additional_includedir=\"$includedir\"
10521    eval additional_libdir=\"$libdir\"
10522
10523  exec_prefix="$acl_save_exec_prefix"
10524  prefix="$acl_save_prefix"
10525
10526
10527# Check whether --with-libintl-prefix was given.
10528if test "${with_libintl_prefix+set}" = set; then
10529  withval=$with_libintl_prefix;
10530    if test "X$withval" = "Xno"; then
10531      use_additional=no
10532    else
10533      if test "X$withval" = "X"; then
10534
10535  acl_save_prefix="$prefix"
10536  prefix="$acl_final_prefix"
10537  acl_save_exec_prefix="$exec_prefix"
10538  exec_prefix="$acl_final_exec_prefix"
10539
10540          eval additional_includedir=\"$includedir\"
10541          eval additional_libdir=\"$libdir\"
10542
10543  exec_prefix="$acl_save_exec_prefix"
10544  prefix="$acl_save_prefix"
10545
10546      else
10547        additional_includedir="$withval/include"
10548        additional_libdir="$withval/lib"
10549      fi
10550    fi
10551
10552fi
10553
10554      LIBINTL=
10555  LTLIBINTL=
10556  INCINTL=
10557  rpathdirs=
10558  ltrpathdirs=
10559  names_already_handled=
10560  names_next_round='intl '
10561  while test -n "$names_next_round"; do
10562    names_this_round="$names_next_round"
10563    names_next_round=
10564    for name in $names_this_round; do
10565      already_handled=
10566      for n in $names_already_handled; do
10567        if test "$n" = "$name"; then
10568          already_handled=yes
10569          break
10570        fi
10571      done
10572      if test -z "$already_handled"; then
10573        names_already_handled="$names_already_handled $name"
10574                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10575        eval value=\"\$HAVE_LIB$uppername\"
10576        if test -n "$value"; then
10577          if test "$value" = yes; then
10578            eval value=\"\$LIB$uppername\"
10579            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10580            eval value=\"\$LTLIB$uppername\"
10581            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10582          else
10583                                    :
10584          fi
10585        else
10586                              found_dir=
10587          found_la=
10588          found_so=
10589          found_a=
10590          if test $use_additional = yes; then
10591            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10592              found_dir="$additional_libdir"
10593              found_so="$additional_libdir/lib$name.$shlibext"
10594              if test -f "$additional_libdir/lib$name.la"; then
10595                found_la="$additional_libdir/lib$name.la"
10596              fi
10597            else
10598              if test -f "$additional_libdir/lib$name.$libext"; then
10599                found_dir="$additional_libdir"
10600                found_a="$additional_libdir/lib$name.$libext"
10601                if test -f "$additional_libdir/lib$name.la"; then
10602                  found_la="$additional_libdir/lib$name.la"
10603                fi
10604              fi
10605            fi
10606          fi
10607          if test "X$found_dir" = "X"; then
10608            for x in $LDFLAGS $LTLIBINTL; do
10609
10610  acl_save_prefix="$prefix"
10611  prefix="$acl_final_prefix"
10612  acl_save_exec_prefix="$exec_prefix"
10613  exec_prefix="$acl_final_exec_prefix"
10614  eval x=\"$x\"
10615  exec_prefix="$acl_save_exec_prefix"
10616  prefix="$acl_save_prefix"
10617
10618              case "$x" in
10619                -L*)
10620                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10621                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10622                    found_dir="$dir"
10623                    found_so="$dir/lib$name.$shlibext"
10624                    if test -f "$dir/lib$name.la"; then
10625                      found_la="$dir/lib$name.la"
10626                    fi
10627                  else
10628                    if test -f "$dir/lib$name.$libext"; then
10629                      found_dir="$dir"
10630                      found_a="$dir/lib$name.$libext"
10631                      if test -f "$dir/lib$name.la"; then
10632                        found_la="$dir/lib$name.la"
10633                      fi
10634                    fi
10635                  fi
10636                  ;;
10637              esac
10638              if test "X$found_dir" != "X"; then
10639                break
10640              fi
10641            done
10642          fi
10643          if test "X$found_dir" != "X"; then
10644                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10645            if test "X$found_so" != "X"; then
10646                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10647                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10648              else
10649                                                                                haveit=
10650                for x in $ltrpathdirs; do
10651                  if test "X$x" = "X$found_dir"; then
10652                    haveit=yes
10653                    break
10654                  fi
10655                done
10656                if test -z "$haveit"; then
10657                  ltrpathdirs="$ltrpathdirs $found_dir"
10658                fi
10659                                if test "$hardcode_direct" = yes; then
10660                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10661                else
10662                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10663                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10664                                                            haveit=
10665                    for x in $rpathdirs; do
10666                      if test "X$x" = "X$found_dir"; then
10667                        haveit=yes
10668                        break
10669                      fi
10670                    done
10671                    if test -z "$haveit"; then
10672                      rpathdirs="$rpathdirs $found_dir"
10673                    fi
10674                  else
10675                                                                                haveit=
10676                    for x in $LDFLAGS $LIBINTL; do
10677
10678  acl_save_prefix="$prefix"
10679  prefix="$acl_final_prefix"
10680  acl_save_exec_prefix="$exec_prefix"
10681  exec_prefix="$acl_final_exec_prefix"
10682  eval x=\"$x\"
10683  exec_prefix="$acl_save_exec_prefix"
10684  prefix="$acl_save_prefix"
10685
10686                      if test "X$x" = "X-L$found_dir"; then
10687                        haveit=yes
10688                        break
10689                      fi
10690                    done
10691                    if test -z "$haveit"; then
10692                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10693                    fi
10694                    if test "$hardcode_minus_L" != no; then
10695                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10696                    else
10697                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10698                    fi
10699                  fi
10700                fi
10701              fi
10702            else
10703              if test "X$found_a" != "X"; then
10704                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10705              else
10706                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10707              fi
10708            fi
10709                        additional_includedir=
10710            case "$found_dir" in
10711              */lib | */lib/)
10712                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10713                additional_includedir="$basedir/include"
10714                ;;
10715            esac
10716            if test "X$additional_includedir" != "X"; then
10717                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10718                haveit=
10719                if test "X$additional_includedir" = "X/usr/local/include"; then
10720                  if test -n "$GCC"; then
10721                    case $host_os in
10722                      linux*) haveit=yes;;
10723                    esac
10724                  fi
10725                fi
10726                if test -z "$haveit"; then
10727                  for x in $CPPFLAGS $INCINTL; do
10728
10729  acl_save_prefix="$prefix"
10730  prefix="$acl_final_prefix"
10731  acl_save_exec_prefix="$exec_prefix"
10732  exec_prefix="$acl_final_exec_prefix"
10733  eval x=\"$x\"
10734  exec_prefix="$acl_save_exec_prefix"
10735  prefix="$acl_save_prefix"
10736
10737                    if test "X$x" = "X-I$additional_includedir"; then
10738                      haveit=yes
10739                      break
10740                    fi
10741                  done
10742                  if test -z "$haveit"; then
10743                    if test -d "$additional_includedir"; then
10744                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10745                    fi
10746                  fi
10747                fi
10748              fi
10749            fi
10750                        if test -n "$found_la"; then
10751                                                        save_libdir="$libdir"
10752              case "$found_la" in
10753                */* | *\\*) . "$found_la" ;;
10754                *) . "./$found_la" ;;
10755              esac
10756              libdir="$save_libdir"
10757                            for dep in $dependency_libs; do
10758                case "$dep" in
10759                  -L*)
10760                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10761                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10762                      haveit=
10763                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10764                        if test -n "$GCC"; then
10765                          case $host_os in
10766                            linux*) haveit=yes;;
10767                          esac
10768                        fi
10769                      fi
10770                      if test -z "$haveit"; then
10771                        haveit=
10772                        for x in $LDFLAGS $LIBINTL; do
10773
10774  acl_save_prefix="$prefix"
10775  prefix="$acl_final_prefix"
10776  acl_save_exec_prefix="$exec_prefix"
10777  exec_prefix="$acl_final_exec_prefix"
10778  eval x=\"$x\"
10779  exec_prefix="$acl_save_exec_prefix"
10780  prefix="$acl_save_prefix"
10781
10782                          if test "X$x" = "X-L$additional_libdir"; then
10783                            haveit=yes
10784                            break
10785                          fi
10786                        done
10787                        if test -z "$haveit"; then
10788                          if test -d "$additional_libdir"; then
10789                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10790                          fi
10791                        fi
10792                        haveit=
10793                        for x in $LDFLAGS $LTLIBINTL; do
10794
10795  acl_save_prefix="$prefix"
10796  prefix="$acl_final_prefix"
10797  acl_save_exec_prefix="$exec_prefix"
10798  exec_prefix="$acl_final_exec_prefix"
10799  eval x=\"$x\"
10800  exec_prefix="$acl_save_exec_prefix"
10801  prefix="$acl_save_prefix"
10802
10803                          if test "X$x" = "X-L$additional_libdir"; then
10804                            haveit=yes
10805                            break
10806                          fi
10807                        done
10808                        if test -z "$haveit"; then
10809                          if test -d "$additional_libdir"; then
10810                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10811                          fi
10812                        fi
10813                      fi
10814                    fi
10815                    ;;
10816                  -R*)
10817                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10818                    if test "$enable_rpath" != no; then
10819                                                                  haveit=
10820                      for x in $rpathdirs; do
10821                        if test "X$x" = "X$dir"; then
10822                          haveit=yes
10823                          break
10824                        fi
10825                      done
10826                      if test -z "$haveit"; then
10827                        rpathdirs="$rpathdirs $dir"
10828                      fi
10829                                                                  haveit=
10830                      for x in $ltrpathdirs; do
10831                        if test "X$x" = "X$dir"; then
10832                          haveit=yes
10833                          break
10834                        fi
10835                      done
10836                      if test -z "$haveit"; then
10837                        ltrpathdirs="$ltrpathdirs $dir"
10838                      fi
10839                    fi
10840                    ;;
10841                  -l*)
10842                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10843                    ;;
10844                  *.la)
10845                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10846                    ;;
10847                  *)
10848                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10849                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10850                    ;;
10851                esac
10852              done
10853            fi
10854          else
10855                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10856            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10857          fi
10858        fi
10859      fi
10860    done
10861  done
10862  if test "X$rpathdirs" != "X"; then
10863    if test -n "$hardcode_libdir_separator"; then
10864                        alldirs=
10865      for found_dir in $rpathdirs; do
10866        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10867      done
10868            acl_save_libdir="$libdir"
10869      libdir="$alldirs"
10870      eval flag=\"$hardcode_libdir_flag_spec\"
10871      libdir="$acl_save_libdir"
10872      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10873    else
10874            for found_dir in $rpathdirs; do
10875        acl_save_libdir="$libdir"
10876        libdir="$found_dir"
10877        eval flag=\"$hardcode_libdir_flag_spec\"
10878        libdir="$acl_save_libdir"
10879        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10880      done
10881    fi
10882  fi
10883  if test "X$ltrpathdirs" != "X"; then
10884            for found_dir in $ltrpathdirs; do
10885      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10886    done
10887  fi
10888
10889          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10890$as_echo_n "checking for GNU gettext in libintl... " >&6; }
10891if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10892  $as_echo_n "(cached) " >&6
10893else
10894  gt_save_CPPFLAGS="$CPPFLAGS"
10895            CPPFLAGS="$CPPFLAGS $INCINTL"
10896            gt_save_LIBS="$LIBS"
10897            LIBS="$LIBS $LIBINTL"
10898                        cat >conftest.$ac_ext <<_ACEOF
10899/* confdefs.h.  */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h.  */
10904#include <libintl.h>
10905extern int _nl_msg_cat_cntr;
10906extern
10907#ifdef __cplusplus
10908"C"
10909#endif
10910const char *_nl_expand_alias ();
10911int
10912main ()
10913{
10914bindtextdomain ("", "");
10915return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10916  ;
10917  return 0;
10918}
10919_ACEOF
10920rm -f conftest.$ac_objext conftest$ac_exeext
10921if { (ac_try="$ac_link"
10922case "(($ac_try" in
10923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924  *) ac_try_echo=$ac_try;;
10925esac
10926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10927$as_echo "$ac_try_echo") >&5
10928  (eval "$ac_link") 2>conftest.er1
10929  ac_status=$?
10930  grep -v '^ *+' conftest.er1 >conftest.err
10931  rm -f conftest.er1
10932  cat conftest.err >&5
10933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934  (exit $ac_status); } && {
10935	 test -z "$ac_c_werror_flag" ||
10936	 test ! -s conftest.err
10937       } && test -s conftest$ac_exeext && {
10938	 test "$cross_compiling" = yes ||
10939	 $as_test_x conftest$ac_exeext
10940       }; then
10941  gt_cv_func_gnugettext1_libintl=yes
10942else
10943  $as_echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946	gt_cv_func_gnugettext1_libintl=no
10947fi
10948
10949rm -rf conftest.dSYM
10950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10951      conftest$ac_exeext conftest.$ac_ext
10952                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10953              LIBS="$LIBS $LIBICONV"
10954              cat >conftest.$ac_ext <<_ACEOF
10955/* confdefs.h.  */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h.  */
10960#include <libintl.h>
10961extern int _nl_msg_cat_cntr;
10962extern
10963#ifdef __cplusplus
10964"C"
10965#endif
10966const char *_nl_expand_alias ();
10967int
10968main ()
10969{
10970bindtextdomain ("", "");
10971return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10972  ;
10973  return 0;
10974}
10975_ACEOF
10976rm -f conftest.$ac_objext conftest$ac_exeext
10977if { (ac_try="$ac_link"
10978case "(($ac_try" in
10979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980  *) ac_try_echo=$ac_try;;
10981esac
10982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10983$as_echo "$ac_try_echo") >&5
10984  (eval "$ac_link") 2>conftest.er1
10985  ac_status=$?
10986  grep -v '^ *+' conftest.er1 >conftest.err
10987  rm -f conftest.er1
10988  cat conftest.err >&5
10989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990  (exit $ac_status); } && {
10991	 test -z "$ac_c_werror_flag" ||
10992	 test ! -s conftest.err
10993       } && test -s conftest$ac_exeext && {
10994	 test "$cross_compiling" = yes ||
10995	 $as_test_x conftest$ac_exeext
10996       }; then
10997  LIBINTL="$LIBINTL $LIBICONV"
10998                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10999                gt_cv_func_gnugettext1_libintl=yes
11000
11001else
11002  $as_echo "$as_me: failed program was:" >&5
11003sed 's/^/| /' conftest.$ac_ext >&5
11004
11005
11006fi
11007
11008rm -rf conftest.dSYM
11009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11010      conftest$ac_exeext conftest.$ac_ext
11011            fi
11012            CPPFLAGS="$gt_save_CPPFLAGS"
11013            LIBS="$gt_save_LIBS"
11014fi
11015{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11016$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
11017        fi
11018
11019                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11020           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11021                && test "$PACKAGE" != gettext-runtime \
11022                && test "$PACKAGE" != gettext-tools; }; then
11023          gt_use_preinstalled_gnugettext=yes
11024        else
11025                    LIBINTL=
11026          LTLIBINTL=
11027          INCINTL=
11028        fi
11029
11030
11031        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11032                              nls_cv_use_gnu_gettext=yes
11033        fi
11034      fi
11035
11036      if test "$nls_cv_use_gnu_gettext" = "yes"; then
11037                BUILD_INCLUDED_LIBINTL=yes
11038        USE_INCLUDED_LIBINTL=yes
11039        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11040        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11041        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11042      fi
11043
11044      if test "$gt_use_preinstalled_gnugettext" = "yes" \
11045         || test "$nls_cv_use_gnu_gettext" = "yes"; then
11046                CATOBJEXT=.gmo
11047      fi
11048
11049
11050    if test "$gt_use_preinstalled_gnugettext" = "yes" \
11051       || test "$nls_cv_use_gnu_gettext" = "yes"; then
11052
11053cat >>confdefs.h <<\_ACEOF
11054#define ENABLE_NLS 1
11055_ACEOF
11056
11057    else
11058      USE_NLS=no
11059    fi
11060  fi
11061
11062  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
11063$as_echo_n "checking whether to use NLS... " >&6; }
11064  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11065$as_echo "$USE_NLS" >&6; }
11066  if test "$USE_NLS" = "yes"; then
11067    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11068$as_echo_n "checking where the gettext function comes from... " >&6; }
11069    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11070      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11071        gt_source="external libintl"
11072      else
11073        gt_source="libc"
11074      fi
11075    else
11076      gt_source="included intl directory"
11077    fi
11078    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
11079$as_echo "$gt_source" >&6; }
11080  fi
11081
11082  if test "$USE_NLS" = "yes"; then
11083
11084    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11085      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11086        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
11087$as_echo_n "checking how to link with libintl... " >&6; }
11088        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
11089$as_echo "$LIBINTL" >&6; }
11090
11091  for element in $INCINTL; do
11092    haveit=
11093    for x in $CPPFLAGS; do
11094
11095  acl_save_prefix="$prefix"
11096  prefix="$acl_final_prefix"
11097  acl_save_exec_prefix="$exec_prefix"
11098  exec_prefix="$acl_final_exec_prefix"
11099  eval x=\"$x\"
11100  exec_prefix="$acl_save_exec_prefix"
11101  prefix="$acl_save_prefix"
11102
11103      if test "X$x" = "X$element"; then
11104        haveit=yes
11105        break
11106      fi
11107    done
11108    if test -z "$haveit"; then
11109      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11110    fi
11111  done
11112
11113      fi
11114
11115
11116cat >>confdefs.h <<\_ACEOF
11117#define HAVE_GETTEXT 1
11118_ACEOF
11119
11120
11121cat >>confdefs.h <<\_ACEOF
11122#define HAVE_DCGETTEXT 1
11123_ACEOF
11124
11125    fi
11126
11127        POSUB=po
11128  fi
11129
11130
11131            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11132      BUILD_INCLUDED_LIBINTL=yes
11133    fi
11134
11135
11136
11137
11138
11139        nls_cv_header_intl=
11140    nls_cv_header_libgt=
11141
11142        DATADIRNAME=share
11143
11144
11145        INSTOBJEXT=.mo
11146
11147
11148        GENCAT=gencat
11149
11150
11151        if test "$USE_INCLUDED_LIBINTL" = yes; then
11152      INTLOBJS="\$(GETTOBJS)"
11153    fi
11154
11155
11156        INTL_LIBTOOL_SUFFIX_PREFIX=
11157
11158
11159
11160    INTLLIBS="$LIBINTL"
11161
11162
11163
11164
11165
11166
11167
11168# Init libtool
11169
11170
11171# Check whether --enable-shared was given.
11172if test "${enable_shared+set}" = set; then
11173  enableval=$enable_shared; p=${PACKAGE-default}
11174    case $enableval in
11175    yes) enable_shared=yes ;;
11176    no) enable_shared=no ;;
11177    *)
11178      enable_shared=no
11179      # Look at the argument we got.  We use all the common list separators.
11180      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11181      for pkg in $enableval; do
11182	IFS="$lt_save_ifs"
11183	if test "X$pkg" = "X$p"; then
11184	  enable_shared=yes
11185	fi
11186      done
11187      IFS="$lt_save_ifs"
11188      ;;
11189    esac
11190else
11191  enable_shared=yes
11192fi
11193
11194
11195# Check whether --enable-static was given.
11196if test "${enable_static+set}" = set; then
11197  enableval=$enable_static; p=${PACKAGE-default}
11198    case $enableval in
11199    yes) enable_static=yes ;;
11200    no) enable_static=no ;;
11201    *)
11202     enable_static=no
11203      # Look at the argument we got.  We use all the common list separators.
11204      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11205      for pkg in $enableval; do
11206	IFS="$lt_save_ifs"
11207	if test "X$pkg" = "X$p"; then
11208	  enable_static=yes
11209	fi
11210      done
11211      IFS="$lt_save_ifs"
11212      ;;
11213    esac
11214else
11215  enable_static=yes
11216fi
11217
11218
11219# Check whether --enable-fast-install was given.
11220if test "${enable_fast_install+set}" = set; then
11221  enableval=$enable_fast_install; p=${PACKAGE-default}
11222    case $enableval in
11223    yes) enable_fast_install=yes ;;
11224    no) enable_fast_install=no ;;
11225    *)
11226      enable_fast_install=no
11227      # Look at the argument we got.  We use all the common list separators.
11228      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11229      for pkg in $enableval; do
11230	IFS="$lt_save_ifs"
11231	if test "X$pkg" = "X$p"; then
11232	  enable_fast_install=yes
11233	fi
11234      done
11235      IFS="$lt_save_ifs"
11236      ;;
11237    esac
11238else
11239  enable_fast_install=yes
11240fi
11241
11242
11243{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11244$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11245if test "${lt_cv_path_SED+set}" = set; then
11246  $as_echo_n "(cached) " >&6
11247else
11248  # Loop through the user's path and test for sed and gsed.
11249# Then use that list of sed's as ones to test for truncation.
11250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251for as_dir in $PATH
11252do
11253  IFS=$as_save_IFS
11254  test -z "$as_dir" && as_dir=.
11255  for lt_ac_prog in sed gsed; do
11256    for ac_exec_ext in '' $ac_executable_extensions; do
11257      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
11258        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11259      fi
11260    done
11261  done
11262done
11263IFS=$as_save_IFS
11264lt_ac_max=0
11265lt_ac_count=0
11266# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11267# along with /bin/sed that truncates output.
11268for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11269  test ! -f $lt_ac_sed && continue
11270  cat /dev/null > conftest.in
11271  lt_ac_count=0
11272  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11273  # Check for GNU sed and select it if it is found.
11274  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11275    lt_cv_path_SED=$lt_ac_sed
11276    break
11277  fi
11278  while true; do
11279    cat conftest.in conftest.in >conftest.tmp
11280    mv conftest.tmp conftest.in
11281    cp conftest.in conftest.nl
11282    echo >>conftest.nl
11283    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11284    cmp -s conftest.out conftest.nl || break
11285    # 10000 chars as input seems more than enough
11286    test $lt_ac_count -gt 10 && break
11287    lt_ac_count=`expr $lt_ac_count + 1`
11288    if test $lt_ac_count -gt $lt_ac_max; then
11289      lt_ac_max=$lt_ac_count
11290      lt_cv_path_SED=$lt_ac_sed
11291    fi
11292  done
11293done
11294
11295fi
11296
11297SED=$lt_cv_path_SED
11298
11299{ $as_echo "$as_me:$LINENO: result: $SED" >&5
11300$as_echo "$SED" >&6; }
11301
11302
11303# Check whether --with-gnu-ld was given.
11304if test "${with_gnu_ld+set}" = set; then
11305  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11306else
11307  with_gnu_ld=no
11308fi
11309
11310ac_prog=ld
11311if test "$GCC" = yes; then
11312  # Check if gcc -print-prog-name=ld gives a path.
11313  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11314$as_echo_n "checking for ld used by $CC... " >&6; }
11315  case $host in
11316  *-*-mingw*)
11317    # gcc leaves a trailing carriage return which upsets mingw
11318    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11319  *)
11320    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11321  esac
11322  case $ac_prog in
11323    # Accept absolute paths.
11324    [\\/]* | ?:[\\/]*)
11325      re_direlt='/[^/][^/]*/\.\./'
11326      # Canonicalize the pathname of ld
11327      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11328      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11329	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11330      done
11331      test -z "$LD" && LD="$ac_prog"
11332      ;;
11333  "")
11334    # If it fails, then pretend we aren't using GCC.
11335    ac_prog=ld
11336    ;;
11337  *)
11338    # If it is relative, then search for the first ld in PATH.
11339    with_gnu_ld=unknown
11340    ;;
11341  esac
11342elif test "$with_gnu_ld" = yes; then
11343  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11344$as_echo_n "checking for GNU ld... " >&6; }
11345else
11346  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11347$as_echo_n "checking for non-GNU ld... " >&6; }
11348fi
11349if test "${lt_cv_path_LD+set}" = set; then
11350  $as_echo_n "(cached) " >&6
11351else
11352  if test -z "$LD"; then
11353  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11354  for ac_dir in $PATH; do
11355    IFS="$lt_save_ifs"
11356    test -z "$ac_dir" && ac_dir=.
11357    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11358      lt_cv_path_LD="$ac_dir/$ac_prog"
11359      # Check to see if the program is GNU ld.  I'd rather use --version,
11360      # but apparently some variants of GNU ld only accept -v.
11361      # Break only if it was the GNU/non-GNU ld that we prefer.
11362      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11363      *GNU* | *'with BFD'*)
11364	test "$with_gnu_ld" != no && break
11365	;;
11366      *)
11367	test "$with_gnu_ld" != yes && break
11368	;;
11369      esac
11370    fi
11371  done
11372  IFS="$lt_save_ifs"
11373else
11374  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11375fi
11376fi
11377
11378LD="$lt_cv_path_LD"
11379if test -n "$LD"; then
11380  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11381$as_echo "$LD" >&6; }
11382else
11383  { $as_echo "$as_me:$LINENO: result: no" >&5
11384$as_echo "no" >&6; }
11385fi
11386test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11387$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11388   { (exit 1); exit 1; }; }
11389{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11390$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11391if test "${lt_cv_prog_gnu_ld+set}" = set; then
11392  $as_echo_n "(cached) " >&6
11393else
11394  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11395case `$LD -v 2>&1 </dev/null` in
11396*GNU* | *'with BFD'*)
11397  lt_cv_prog_gnu_ld=yes
11398  ;;
11399*)
11400  lt_cv_prog_gnu_ld=no
11401  ;;
11402esac
11403fi
11404{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11405$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11406with_gnu_ld=$lt_cv_prog_gnu_ld
11407
11408
11409{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11410$as_echo_n "checking for $LD option to reload object files... " >&6; }
11411if test "${lt_cv_ld_reload_flag+set}" = set; then
11412  $as_echo_n "(cached) " >&6
11413else
11414  lt_cv_ld_reload_flag='-r'
11415fi
11416{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11417$as_echo "$lt_cv_ld_reload_flag" >&6; }
11418reload_flag=$lt_cv_ld_reload_flag
11419case $reload_flag in
11420"" | " "*) ;;
11421*) reload_flag=" $reload_flag" ;;
11422esac
11423reload_cmds='$LD$reload_flag -o $output$reload_objs'
11424case $host_os in
11425  darwin*)
11426    if test "$GCC" = yes; then
11427      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11428    else
11429      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11430    fi
11431    ;;
11432esac
11433
11434{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
11435$as_echo_n "checking for BSD-compatible nm... " >&6; }
11436if test "${lt_cv_path_NM+set}" = set; then
11437  $as_echo_n "(cached) " >&6
11438else
11439  if test -n "$NM"; then
11440  # Let the user override the test.
11441  lt_cv_path_NM="$NM"
11442else
11443  lt_nm_to_check="${ac_tool_prefix}nm"
11444  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11445    lt_nm_to_check="$lt_nm_to_check nm"
11446  fi
11447  for lt_tmp_nm in $lt_nm_to_check; do
11448    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11449    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11450      IFS="$lt_save_ifs"
11451      test -z "$ac_dir" && ac_dir=.
11452      tmp_nm="$ac_dir/$lt_tmp_nm"
11453      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11454	# Check to see if the nm accepts a BSD-compat flag.
11455	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11456	#   nm: unknown option "B" ignored
11457	# Tru64's nm complains that /dev/null is an invalid object file
11458	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11459	*/dev/null* | *'Invalid file or object type'*)
11460	  lt_cv_path_NM="$tmp_nm -B"
11461	  break
11462	  ;;
11463	*)
11464	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11465	  */dev/null*)
11466	    lt_cv_path_NM="$tmp_nm -p"
11467	    break
11468	    ;;
11469	  *)
11470	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11471	    continue # so that we can try to find one that supports BSD flags
11472	    ;;
11473	  esac
11474	  ;;
11475	esac
11476      fi
11477    done
11478    IFS="$lt_save_ifs"
11479  done
11480  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
11481fi
11482fi
11483{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
11484$as_echo "$lt_cv_path_NM" >&6; }
11485NM="$lt_cv_path_NM"
11486
11487{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11488$as_echo_n "checking whether ln -s works... " >&6; }
11489LN_S=$as_ln_s
11490if test "$LN_S" = "ln -s"; then
11491  { $as_echo "$as_me:$LINENO: result: yes" >&5
11492$as_echo "yes" >&6; }
11493else
11494  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11495$as_echo "no, using $LN_S" >&6; }
11496fi
11497
11498{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
11499$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11500if test "${lt_cv_deplibs_check_method+set}" = set; then
11501  $as_echo_n "(cached) " >&6
11502else
11503  lt_cv_file_magic_cmd='$MAGIC_CMD'
11504lt_cv_file_magic_test_file=
11505lt_cv_deplibs_check_method='unknown'
11506# Need to set the preceding variable on all platforms that support
11507# interlibrary dependencies.
11508# 'none' -- dependencies not supported.
11509# `unknown' -- same as none, but documents that we really don't know.
11510# 'pass_all' -- all dependencies passed with no checks.
11511# 'test_compile' -- check by making test program.
11512# 'file_magic [[regex]]' -- check by looking for files in library path
11513# which responds to the $file_magic_cmd with a given extended regex.
11514# If you have `file' or equivalent on your system and you're not sure
11515# whether `pass_all' will *always* work, you probably want this one.
11516
11517case $host_os in
11518aix[4-9]*)
11519  lt_cv_deplibs_check_method=pass_all
11520  ;;
11521
11522beos*)
11523  lt_cv_deplibs_check_method=pass_all
11524  ;;
11525
11526bsdi[45]*)
11527  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11528  lt_cv_file_magic_cmd='/usr/bin/file -L'
11529  lt_cv_file_magic_test_file=/shlib/libc.so
11530  ;;
11531
11532cygwin*)
11533  # func_win32_libid is a shell function defined in ltmain.sh
11534  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11535  lt_cv_file_magic_cmd='func_win32_libid'
11536  ;;
11537
11538mingw* | pw32*)
11539  # Base MSYS/MinGW do not provide the 'file' command needed by
11540  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11541  # unless we find 'file', for example because we are cross-compiling.
11542  if ( file / ) >/dev/null 2>&1; then
11543    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11544    lt_cv_file_magic_cmd='func_win32_libid'
11545  else
11546    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11547    lt_cv_file_magic_cmd='$OBJDUMP -f'
11548  fi
11549  ;;
11550
11551darwin* | rhapsody*)
11552  lt_cv_deplibs_check_method=pass_all
11553  ;;
11554
11555freebsd* | dragonfly*)
11556  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11557    case $host_cpu in
11558    i*86 )
11559      # Not sure whether the presence of OpenBSD here was a mistake.
11560      # Let's accept both of them until this is cleared up.
11561      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11562      lt_cv_file_magic_cmd=/usr/bin/file
11563      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11564      ;;
11565    esac
11566  else
11567    lt_cv_deplibs_check_method=pass_all
11568  fi
11569  ;;
11570
11571gnu*)
11572  lt_cv_deplibs_check_method=pass_all
11573  ;;
11574
11575hpux10.20* | hpux11*)
11576  lt_cv_file_magic_cmd=/usr/bin/file
11577  case $host_cpu in
11578  ia64*)
11579    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11580    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11581    ;;
11582  hppa*64*)
11583    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]'
11584    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11585    ;;
11586  *)
11587    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11588    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11589    ;;
11590  esac
11591  ;;
11592
11593interix[3-9]*)
11594  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11595  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11596  ;;
11597
11598irix5* | irix6* | nonstopux*)
11599  case $LD in
11600  *-32|*"-32 ") libmagic=32-bit;;
11601  *-n32|*"-n32 ") libmagic=N32;;
11602  *-64|*"-64 ") libmagic=64-bit;;
11603  *) libmagic=never-match;;
11604  esac
11605  lt_cv_deplibs_check_method=pass_all
11606  ;;
11607
11608# This must be Linux ELF.
11609linux* | k*bsd*-gnu)
11610  lt_cv_deplibs_check_method=pass_all
11611  ;;
11612
11613netbsd*)
11614  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11615    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11616  else
11617    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11618  fi
11619  ;;
11620
11621newos6*)
11622  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11623  lt_cv_file_magic_cmd=/usr/bin/file
11624  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11625  ;;
11626
11627nto-qnx*)
11628  lt_cv_deplibs_check_method=unknown
11629  ;;
11630
11631openbsd*)
11632  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11633    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11634  else
11635    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11636  fi
11637  ;;
11638
11639osf3* | osf4* | osf5*)
11640  lt_cv_deplibs_check_method=pass_all
11641  ;;
11642
11643rdos*)
11644  lt_cv_deplibs_check_method=pass_all
11645  ;;
11646
11647solaris*)
11648  lt_cv_deplibs_check_method=pass_all
11649  ;;
11650
11651sysv4 | sysv4.3*)
11652  case $host_vendor in
11653  motorola)
11654    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]'
11655    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11656    ;;
11657  ncr)
11658    lt_cv_deplibs_check_method=pass_all
11659    ;;
11660  sequent)
11661    lt_cv_file_magic_cmd='/bin/file'
11662    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11663    ;;
11664  sni)
11665    lt_cv_file_magic_cmd='/bin/file'
11666    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11667    lt_cv_file_magic_test_file=/lib/libc.so
11668    ;;
11669  siemens)
11670    lt_cv_deplibs_check_method=pass_all
11671    ;;
11672  pc)
11673    lt_cv_deplibs_check_method=pass_all
11674    ;;
11675  esac
11676  ;;
11677
11678sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11679  lt_cv_deplibs_check_method=pass_all
11680  ;;
11681esac
11682
11683fi
11684{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11685$as_echo "$lt_cv_deplibs_check_method" >&6; }
11686file_magic_cmd=$lt_cv_file_magic_cmd
11687deplibs_check_method=$lt_cv_deplibs_check_method
11688test -z "$deplibs_check_method" && deplibs_check_method=unknown
11689
11690
11691
11692
11693# If no C compiler was specified, use CC.
11694LTCC=${LTCC-"$CC"}
11695
11696# If no C compiler flags were specified, use CFLAGS.
11697LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11698
11699# Allow CC to be a program name with arguments.
11700compiler=$CC
11701
11702# Check whether --enable-libtool-lock was given.
11703if test "${enable_libtool_lock+set}" = set; then
11704  enableval=$enable_libtool_lock;
11705fi
11706
11707test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11708
11709# Some flags need to be propagated to the compiler or linker for good
11710# libtool support.
11711case $host in
11712ia64-*-hpux*)
11713  # Find out which ABI we are using.
11714  echo 'int i;' > conftest.$ac_ext
11715  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11716  (eval $ac_compile) 2>&5
11717  ac_status=$?
11718  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719  (exit $ac_status); }; then
11720    case `/usr/bin/file conftest.$ac_objext` in
11721    *ELF-32*)
11722      HPUX_IA64_MODE="32"
11723      ;;
11724    *ELF-64*)
11725      HPUX_IA64_MODE="64"
11726      ;;
11727    esac
11728  fi
11729  rm -rf conftest*
11730  ;;
11731*-*-irix6*)
11732  # Find out which ABI we are using.
11733  echo '#line 11733 "configure"' > conftest.$ac_ext
11734  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11735  (eval $ac_compile) 2>&5
11736  ac_status=$?
11737  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738  (exit $ac_status); }; then
11739   if test "$lt_cv_prog_gnu_ld" = yes; then
11740    case `/usr/bin/file conftest.$ac_objext` in
11741    *32-bit*)
11742      LD="${LD-ld} -melf32bsmip"
11743      ;;
11744    *N32*)
11745      LD="${LD-ld} -melf32bmipn32"
11746      ;;
11747    *64-bit*)
11748      LD="${LD-ld} -melf64bmip"
11749      ;;
11750    esac
11751   else
11752    case `/usr/bin/file conftest.$ac_objext` in
11753    *32-bit*)
11754      LD="${LD-ld} -32"
11755      ;;
11756    *N32*)
11757      LD="${LD-ld} -n32"
11758      ;;
11759    *64-bit*)
11760      LD="${LD-ld} -64"
11761      ;;
11762    esac
11763   fi
11764  fi
11765  rm -rf conftest*
11766  ;;
11767
11768x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11769s390*-*linux*|sparc*-*linux*)
11770  # Find out which ABI we are using.
11771  echo 'int i;' > conftest.$ac_ext
11772  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773  (eval $ac_compile) 2>&5
11774  ac_status=$?
11775  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776  (exit $ac_status); }; then
11777    case `/usr/bin/file conftest.o` in
11778    *32-bit*)
11779      case $host in
11780        x86_64-*kfreebsd*-gnu)
11781          LD="${LD-ld} -m elf_i386_fbsd"
11782          ;;
11783        x86_64-*linux*)
11784          LD="${LD-ld} -m elf_i386"
11785          ;;
11786        ppc64-*linux*|powerpc64-*linux*)
11787          LD="${LD-ld} -m elf32ppclinux"
11788          ;;
11789        s390x-*linux*)
11790          LD="${LD-ld} -m elf_s390"
11791          ;;
11792        sparc64-*linux*)
11793          LD="${LD-ld} -m elf32_sparc"
11794          ;;
11795      esac
11796      ;;
11797    *64-bit*)
11798      libsuff=64
11799      case $host in
11800        x86_64-*kfreebsd*-gnu)
11801          LD="${LD-ld} -m elf_x86_64_fbsd"
11802          ;;
11803        x86_64-*linux*)
11804          LD="${LD-ld} -m elf_x86_64"
11805          ;;
11806        ppc*-*linux*|powerpc*-*linux*)
11807          LD="${LD-ld} -m elf64ppc"
11808          ;;
11809        s390*-*linux*)
11810          LD="${LD-ld} -m elf64_s390"
11811          ;;
11812        sparc*-*linux*)
11813          LD="${LD-ld} -m elf64_sparc"
11814          ;;
11815      esac
11816      ;;
11817    esac
11818  fi
11819  rm -rf conftest*
11820  ;;
11821
11822*-*-sco3.2v5*)
11823  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11824  SAVE_CFLAGS="$CFLAGS"
11825  CFLAGS="$CFLAGS -belf"
11826  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11827$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11828if test "${lt_cv_cc_needs_belf+set}" = set; then
11829  $as_echo_n "(cached) " >&6
11830else
11831  ac_ext=c
11832ac_cpp='$CPP $CPPFLAGS'
11833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11835ac_compiler_gnu=$ac_cv_c_compiler_gnu
11836
11837     cat >conftest.$ac_ext <<_ACEOF
11838/* confdefs.h.  */
11839_ACEOF
11840cat confdefs.h >>conftest.$ac_ext
11841cat >>conftest.$ac_ext <<_ACEOF
11842/* end confdefs.h.  */
11843
11844int
11845main ()
11846{
11847
11848  ;
11849  return 0;
11850}
11851_ACEOF
11852rm -f conftest.$ac_objext conftest$ac_exeext
11853if { (ac_try="$ac_link"
11854case "(($ac_try" in
11855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856  *) ac_try_echo=$ac_try;;
11857esac
11858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11859$as_echo "$ac_try_echo") >&5
11860  (eval "$ac_link") 2>conftest.er1
11861  ac_status=$?
11862  grep -v '^ *+' conftest.er1 >conftest.err
11863  rm -f conftest.er1
11864  cat conftest.err >&5
11865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866  (exit $ac_status); } && {
11867	 test -z "$ac_c_werror_flag" ||
11868	 test ! -s conftest.err
11869       } && test -s conftest$ac_exeext && {
11870	 test "$cross_compiling" = yes ||
11871	 $as_test_x conftest$ac_exeext
11872       }; then
11873  lt_cv_cc_needs_belf=yes
11874else
11875  $as_echo "$as_me: failed program was:" >&5
11876sed 's/^/| /' conftest.$ac_ext >&5
11877
11878	lt_cv_cc_needs_belf=no
11879fi
11880
11881rm -rf conftest.dSYM
11882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11883      conftest$ac_exeext conftest.$ac_ext
11884     ac_ext=c
11885ac_cpp='$CPP $CPPFLAGS'
11886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11888ac_compiler_gnu=$ac_cv_c_compiler_gnu
11889
11890fi
11891{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11892$as_echo "$lt_cv_cc_needs_belf" >&6; }
11893  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11894    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11895    CFLAGS="$SAVE_CFLAGS"
11896  fi
11897  ;;
11898sparc*-*solaris*)
11899  # Find out which ABI we are using.
11900  echo 'int i;' > conftest.$ac_ext
11901  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902  (eval $ac_compile) 2>&5
11903  ac_status=$?
11904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905  (exit $ac_status); }; then
11906    case `/usr/bin/file conftest.o` in
11907    *64-bit*)
11908      case $lt_cv_prog_gnu_ld in
11909      yes*) LD="${LD-ld} -m elf64_sparc" ;;
11910      *)
11911        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11912	  LD="${LD-ld} -64"
11913	fi
11914	;;
11915      esac
11916      ;;
11917    esac
11918  fi
11919  rm -rf conftest*
11920  ;;
11921
11922
11923esac
11924
11925need_locks="$enable_libtool_lock"
11926
11927
11928
11929for ac_header in dlfcn.h
11930do
11931as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11933  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11934$as_echo_n "checking for $ac_header... " >&6; }
11935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11936  $as_echo_n "(cached) " >&6
11937fi
11938ac_res=`eval 'as_val=${'$as_ac_Header'}
11939		 $as_echo "$as_val"'`
11940	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11941$as_echo "$ac_res" >&6; }
11942else
11943  # Is the header compilable?
11944{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11945$as_echo_n "checking $ac_header usability... " >&6; }
11946cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h.  */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h.  */
11952$ac_includes_default
11953#include <$ac_header>
11954_ACEOF
11955rm -f conftest.$ac_objext
11956if { (ac_try="$ac_compile"
11957case "(($ac_try" in
11958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959  *) ac_try_echo=$ac_try;;
11960esac
11961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11962$as_echo "$ac_try_echo") >&5
11963  (eval "$ac_compile") 2>conftest.er1
11964  ac_status=$?
11965  grep -v '^ *+' conftest.er1 >conftest.err
11966  rm -f conftest.er1
11967  cat conftest.err >&5
11968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969  (exit $ac_status); } && {
11970	 test -z "$ac_c_werror_flag" ||
11971	 test ! -s conftest.err
11972       } && test -s conftest.$ac_objext; then
11973  ac_header_compiler=yes
11974else
11975  $as_echo "$as_me: failed program was:" >&5
11976sed 's/^/| /' conftest.$ac_ext >&5
11977
11978	ac_header_compiler=no
11979fi
11980
11981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11983$as_echo "$ac_header_compiler" >&6; }
11984
11985# Is the header present?
11986{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11987$as_echo_n "checking $ac_header presence... " >&6; }
11988cat >conftest.$ac_ext <<_ACEOF
11989/* confdefs.h.  */
11990_ACEOF
11991cat confdefs.h >>conftest.$ac_ext
11992cat >>conftest.$ac_ext <<_ACEOF
11993/* end confdefs.h.  */
11994#include <$ac_header>
11995_ACEOF
11996if { (ac_try="$ac_cpp conftest.$ac_ext"
11997case "(($ac_try" in
11998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999  *) ac_try_echo=$ac_try;;
12000esac
12001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12002$as_echo "$ac_try_echo") >&5
12003  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12004  ac_status=$?
12005  grep -v '^ *+' conftest.er1 >conftest.err
12006  rm -f conftest.er1
12007  cat conftest.err >&5
12008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009  (exit $ac_status); } >/dev/null && {
12010	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12011	 test ! -s conftest.err
12012       }; then
12013  ac_header_preproc=yes
12014else
12015  $as_echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018  ac_header_preproc=no
12019fi
12020
12021rm -f conftest.err conftest.$ac_ext
12022{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12023$as_echo "$ac_header_preproc" >&6; }
12024
12025# So?  What about this header?
12026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12027  yes:no: )
12028    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12029$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12030    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12031$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12032    ac_header_preproc=yes
12033    ;;
12034  no:yes:* )
12035    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12036$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12037    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12038$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12039    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12040$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12041    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12042$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12043    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12044$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12045    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12046$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12047    ( cat <<\_ASBOX
12048## ------------------------------------ ##
12049## Report this to suzhe@tsinghua.org.cn ##
12050## ------------------------------------ ##
12051_ASBOX
12052     ) | sed "s/^/$as_me: WARNING:     /" >&2
12053    ;;
12054esac
12055{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12056$as_echo_n "checking for $ac_header... " >&6; }
12057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12058  $as_echo_n "(cached) " >&6
12059else
12060  eval "$as_ac_Header=\$ac_header_preproc"
12061fi
12062ac_res=`eval 'as_val=${'$as_ac_Header'}
12063		 $as_echo "$as_val"'`
12064	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12065$as_echo "$ac_res" >&6; }
12066
12067fi
12068as_val=`eval 'as_val=${'$as_ac_Header'}
12069		 $as_echo "$as_val"'`
12070   if test "x$as_val" = x""yes; then
12071  cat >>confdefs.h <<_ACEOF
12072#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12073_ACEOF
12074
12075fi
12076
12077done
12078
12079ac_ext=cpp
12080ac_cpp='$CXXCPP $CPPFLAGS'
12081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12084if test -z "$CXX"; then
12085  if test -n "$CCC"; then
12086    CXX=$CCC
12087  else
12088    if test -n "$ac_tool_prefix"; then
12089  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12090  do
12091    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12092set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12093{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12094$as_echo_n "checking for $ac_word... " >&6; }
12095if test "${ac_cv_prog_CXX+set}" = set; then
12096  $as_echo_n "(cached) " >&6
12097else
12098  if test -n "$CXX"; then
12099  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12100else
12101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102for as_dir in $PATH
12103do
12104  IFS=$as_save_IFS
12105  test -z "$as_dir" && as_dir=.
12106  for ac_exec_ext in '' $ac_executable_extensions; do
12107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12108    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12109    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12110    break 2
12111  fi
12112done
12113done
12114IFS=$as_save_IFS
12115
12116fi
12117fi
12118CXX=$ac_cv_prog_CXX
12119if test -n "$CXX"; then
12120  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12121$as_echo "$CXX" >&6; }
12122else
12123  { $as_echo "$as_me:$LINENO: result: no" >&5
12124$as_echo "no" >&6; }
12125fi
12126
12127
12128    test -n "$CXX" && break
12129  done
12130fi
12131if test -z "$CXX"; then
12132  ac_ct_CXX=$CXX
12133  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12134do
12135  # Extract the first word of "$ac_prog", so it can be a program name with args.
12136set dummy $ac_prog; ac_word=$2
12137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12138$as_echo_n "checking for $ac_word... " >&6; }
12139if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12140  $as_echo_n "(cached) " >&6
12141else
12142  if test -n "$ac_ct_CXX"; then
12143  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12144else
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148  IFS=$as_save_IFS
12149  test -z "$as_dir" && as_dir=.
12150  for ac_exec_ext in '' $ac_executable_extensions; do
12151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12152    ac_cv_prog_ac_ct_CXX="$ac_prog"
12153    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12154    break 2
12155  fi
12156done
12157done
12158IFS=$as_save_IFS
12159
12160fi
12161fi
12162ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12163if test -n "$ac_ct_CXX"; then
12164  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12165$as_echo "$ac_ct_CXX" >&6; }
12166else
12167  { $as_echo "$as_me:$LINENO: result: no" >&5
12168$as_echo "no" >&6; }
12169fi
12170
12171
12172  test -n "$ac_ct_CXX" && break
12173done
12174
12175  if test "x$ac_ct_CXX" = x; then
12176    CXX="g++"
12177  else
12178    case $cross_compiling:$ac_tool_warned in
12179yes:)
12180{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12182ac_tool_warned=yes ;;
12183esac
12184    CXX=$ac_ct_CXX
12185  fi
12186fi
12187
12188  fi
12189fi
12190# Provide some information about the compiler.
12191$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12192set X $ac_compile
12193ac_compiler=$2
12194{ (ac_try="$ac_compiler --version >&5"
12195case "(($ac_try" in
12196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197  *) ac_try_echo=$ac_try;;
12198esac
12199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12200$as_echo "$ac_try_echo") >&5
12201  (eval "$ac_compiler --version >&5") 2>&5
12202  ac_status=$?
12203  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204  (exit $ac_status); }
12205{ (ac_try="$ac_compiler -v >&5"
12206case "(($ac_try" in
12207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208  *) ac_try_echo=$ac_try;;
12209esac
12210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12211$as_echo "$ac_try_echo") >&5
12212  (eval "$ac_compiler -v >&5") 2>&5
12213  ac_status=$?
12214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215  (exit $ac_status); }
12216{ (ac_try="$ac_compiler -V >&5"
12217case "(($ac_try" in
12218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219  *) ac_try_echo=$ac_try;;
12220esac
12221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12222$as_echo "$ac_try_echo") >&5
12223  (eval "$ac_compiler -V >&5") 2>&5
12224  ac_status=$?
12225  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226  (exit $ac_status); }
12227
12228{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12229$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12230if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12231  $as_echo_n "(cached) " >&6
12232else
12233  cat >conftest.$ac_ext <<_ACEOF
12234/* confdefs.h.  */
12235_ACEOF
12236cat confdefs.h >>conftest.$ac_ext
12237cat >>conftest.$ac_ext <<_ACEOF
12238/* end confdefs.h.  */
12239
12240int
12241main ()
12242{
12243#ifndef __GNUC__
12244       choke me
12245#endif
12246
12247  ;
12248  return 0;
12249}
12250_ACEOF
12251rm -f conftest.$ac_objext
12252if { (ac_try="$ac_compile"
12253case "(($ac_try" in
12254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255  *) ac_try_echo=$ac_try;;
12256esac
12257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12258$as_echo "$ac_try_echo") >&5
12259  (eval "$ac_compile") 2>conftest.er1
12260  ac_status=$?
12261  grep -v '^ *+' conftest.er1 >conftest.err
12262  rm -f conftest.er1
12263  cat conftest.err >&5
12264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265  (exit $ac_status); } && {
12266	 test -z "$ac_cxx_werror_flag" ||
12267	 test ! -s conftest.err
12268       } && test -s conftest.$ac_objext; then
12269  ac_compiler_gnu=yes
12270else
12271  $as_echo "$as_me: failed program was:" >&5
12272sed 's/^/| /' conftest.$ac_ext >&5
12273
12274	ac_compiler_gnu=no
12275fi
12276
12277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12279
12280fi
12281{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12282$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12283if test $ac_compiler_gnu = yes; then
12284  GXX=yes
12285else
12286  GXX=
12287fi
12288ac_test_CXXFLAGS=${CXXFLAGS+set}
12289ac_save_CXXFLAGS=$CXXFLAGS
12290{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12291$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12292if test "${ac_cv_prog_cxx_g+set}" = set; then
12293  $as_echo_n "(cached) " >&6
12294else
12295  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12296   ac_cxx_werror_flag=yes
12297   ac_cv_prog_cxx_g=no
12298   CXXFLAGS="-g"
12299   cat >conftest.$ac_ext <<_ACEOF
12300/* confdefs.h.  */
12301_ACEOF
12302cat confdefs.h >>conftest.$ac_ext
12303cat >>conftest.$ac_ext <<_ACEOF
12304/* end confdefs.h.  */
12305
12306int
12307main ()
12308{
12309
12310  ;
12311  return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext
12315if { (ac_try="$ac_compile"
12316case "(($ac_try" in
12317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318  *) ac_try_echo=$ac_try;;
12319esac
12320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12321$as_echo "$ac_try_echo") >&5
12322  (eval "$ac_compile") 2>conftest.er1
12323  ac_status=$?
12324  grep -v '^ *+' conftest.er1 >conftest.err
12325  rm -f conftest.er1
12326  cat conftest.err >&5
12327  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328  (exit $ac_status); } && {
12329	 test -z "$ac_cxx_werror_flag" ||
12330	 test ! -s conftest.err
12331       } && test -s conftest.$ac_objext; then
12332  ac_cv_prog_cxx_g=yes
12333else
12334  $as_echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337	CXXFLAGS=""
12338      cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h.  */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h.  */
12344
12345int
12346main ()
12347{
12348
12349  ;
12350  return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (ac_try="$ac_compile"
12355case "(($ac_try" in
12356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357  *) ac_try_echo=$ac_try;;
12358esac
12359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12360$as_echo "$ac_try_echo") >&5
12361  (eval "$ac_compile") 2>conftest.er1
12362  ac_status=$?
12363  grep -v '^ *+' conftest.er1 >conftest.err
12364  rm -f conftest.er1
12365  cat conftest.err >&5
12366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367  (exit $ac_status); } && {
12368	 test -z "$ac_cxx_werror_flag" ||
12369	 test ! -s conftest.err
12370       } && test -s conftest.$ac_objext; then
12371  :
12372else
12373  $as_echo "$as_me: failed program was:" >&5
12374sed 's/^/| /' conftest.$ac_ext >&5
12375
12376	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12377	 CXXFLAGS="-g"
12378	 cat >conftest.$ac_ext <<_ACEOF
12379/* confdefs.h.  */
12380_ACEOF
12381cat confdefs.h >>conftest.$ac_ext
12382cat >>conftest.$ac_ext <<_ACEOF
12383/* end confdefs.h.  */
12384
12385int
12386main ()
12387{
12388
12389  ;
12390  return 0;
12391}
12392_ACEOF
12393rm -f conftest.$ac_objext
12394if { (ac_try="$ac_compile"
12395case "(($ac_try" in
12396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397  *) ac_try_echo=$ac_try;;
12398esac
12399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12400$as_echo "$ac_try_echo") >&5
12401  (eval "$ac_compile") 2>conftest.er1
12402  ac_status=$?
12403  grep -v '^ *+' conftest.er1 >conftest.err
12404  rm -f conftest.er1
12405  cat conftest.err >&5
12406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407  (exit $ac_status); } && {
12408	 test -z "$ac_cxx_werror_flag" ||
12409	 test ! -s conftest.err
12410       } && test -s conftest.$ac_objext; then
12411  ac_cv_prog_cxx_g=yes
12412else
12413  $as_echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416
12417fi
12418
12419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420fi
12421
12422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423fi
12424
12425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12427fi
12428{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12429$as_echo "$ac_cv_prog_cxx_g" >&6; }
12430if test "$ac_test_CXXFLAGS" = set; then
12431  CXXFLAGS=$ac_save_CXXFLAGS
12432elif test $ac_cv_prog_cxx_g = yes; then
12433  if test "$GXX" = yes; then
12434    CXXFLAGS="-g -O2"
12435  else
12436    CXXFLAGS="-g"
12437  fi
12438else
12439  if test "$GXX" = yes; then
12440    CXXFLAGS="-O2"
12441  else
12442    CXXFLAGS=
12443  fi
12444fi
12445ac_ext=cpp
12446ac_cpp='$CXXCPP $CPPFLAGS'
12447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12450
12451depcc="$CXX"  am_compiler_list=
12452
12453{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12454$as_echo_n "checking dependency style of $depcc... " >&6; }
12455if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12456  $as_echo_n "(cached) " >&6
12457else
12458  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12459  # We make a subdir and do the tests there.  Otherwise we can end up
12460  # making bogus files that we don't know about and never remove.  For
12461  # instance it was reported that on HP-UX the gcc test will end up
12462  # making a dummy file named `D' -- because `-MD' means `put the output
12463  # in D'.
12464  mkdir conftest.dir
12465  # Copy depcomp to subdir because otherwise we won't find it if we're
12466  # using a relative directory.
12467  cp "$am_depcomp" conftest.dir
12468  cd conftest.dir
12469  # We will build objects and dependencies in a subdirectory because
12470  # it helps to detect inapplicable dependency modes.  For instance
12471  # both Tru64's cc and ICC support -MD to output dependencies as a
12472  # side effect of compilation, but ICC will put the dependencies in
12473  # the current directory while Tru64 will put them in the object
12474  # directory.
12475  mkdir sub
12476
12477  am_cv_CXX_dependencies_compiler_type=none
12478  if test "$am_compiler_list" = ""; then
12479     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12480  fi
12481  for depmode in $am_compiler_list; do
12482    # Setup a source with many dependencies, because some compilers
12483    # like to wrap large dependency lists on column 80 (with \), and
12484    # we should not choose a depcomp mode which is confused by this.
12485    #
12486    # We need to recreate these files for each test, as the compiler may
12487    # overwrite some of them when testing with obscure command lines.
12488    # This happens at least with the AIX C compiler.
12489    : > sub/conftest.c
12490    for i in 1 2 3 4 5 6; do
12491      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12492      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12493      # Solaris 8's {/usr,}/bin/sh.
12494      touch sub/conftst$i.h
12495    done
12496    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12497
12498    case $depmode in
12499    nosideeffect)
12500      # after this tag, mechanisms are not by side-effect, so they'll
12501      # only be used when explicitly requested
12502      if test "x$enable_dependency_tracking" = xyes; then
12503	continue
12504      else
12505	break
12506      fi
12507      ;;
12508    none) break ;;
12509    esac
12510    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12511    # mode.  It turns out that the SunPro C++ compiler does not properly
12512    # handle `-M -o', and we need to detect this.
12513    if depmode=$depmode \
12514       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12515       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12516       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12517         >/dev/null 2>conftest.err &&
12518       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12519       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12520       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12521       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12522      # icc doesn't choke on unknown options, it will just issue warnings
12523      # or remarks (even with -Werror).  So we grep stderr for any message
12524      # that says an option was ignored or not supported.
12525      # When given -MP, icc 7.0 and 7.1 complain thusly:
12526      #   icc: Command line warning: ignoring option '-M'; no argument required
12527      # The diagnosis changed in icc 8.0:
12528      #   icc: Command line remark: option '-MP' not supported
12529      if (grep 'ignoring option' conftest.err ||
12530          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12531        am_cv_CXX_dependencies_compiler_type=$depmode
12532        break
12533      fi
12534    fi
12535  done
12536
12537  cd ..
12538  rm -rf conftest.dir
12539else
12540  am_cv_CXX_dependencies_compiler_type=none
12541fi
12542
12543fi
12544{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12545$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12546CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12547
12548 if
12549  test "x$enable_dependency_tracking" != xno \
12550  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12551  am__fastdepCXX_TRUE=
12552  am__fastdepCXX_FALSE='#'
12553else
12554  am__fastdepCXX_TRUE='#'
12555  am__fastdepCXX_FALSE=
12556fi
12557
12558
12559
12560
12561if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12562    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12563    (test "X$CXX" != "Xg++"))) ; then
12564  ac_ext=cpp
12565ac_cpp='$CXXCPP $CPPFLAGS'
12566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12569{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12570$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12571if test -z "$CXXCPP"; then
12572  if test "${ac_cv_prog_CXXCPP+set}" = set; then
12573  $as_echo_n "(cached) " >&6
12574else
12575      # Double quotes because CXXCPP needs to be expanded
12576    for CXXCPP in "$CXX -E" "/lib/cpp"
12577    do
12578      ac_preproc_ok=false
12579for ac_cxx_preproc_warn_flag in '' yes
12580do
12581  # Use a header file that comes with gcc, so configuring glibc
12582  # with a fresh cross-compiler works.
12583  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584  # <limits.h> exists even on freestanding compilers.
12585  # On the NeXT, cc -E runs the code through the compiler's parser,
12586  # not just through cpp. "Syntax error" is here to catch this case.
12587  cat >conftest.$ac_ext <<_ACEOF
12588/* confdefs.h.  */
12589_ACEOF
12590cat confdefs.h >>conftest.$ac_ext
12591cat >>conftest.$ac_ext <<_ACEOF
12592/* end confdefs.h.  */
12593#ifdef __STDC__
12594# include <limits.h>
12595#else
12596# include <assert.h>
12597#endif
12598		     Syntax error
12599_ACEOF
12600if { (ac_try="$ac_cpp conftest.$ac_ext"
12601case "(($ac_try" in
12602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603  *) ac_try_echo=$ac_try;;
12604esac
12605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12606$as_echo "$ac_try_echo") >&5
12607  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12608  ac_status=$?
12609  grep -v '^ *+' conftest.er1 >conftest.err
12610  rm -f conftest.er1
12611  cat conftest.err >&5
12612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613  (exit $ac_status); } >/dev/null && {
12614	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12615	 test ! -s conftest.err
12616       }; then
12617  :
12618else
12619  $as_echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622  # Broken: fails on valid input.
12623continue
12624fi
12625
12626rm -f conftest.err conftest.$ac_ext
12627
12628  # OK, works on sane cases.  Now check whether nonexistent headers
12629  # can be detected and how.
12630  cat >conftest.$ac_ext <<_ACEOF
12631/* confdefs.h.  */
12632_ACEOF
12633cat confdefs.h >>conftest.$ac_ext
12634cat >>conftest.$ac_ext <<_ACEOF
12635/* end confdefs.h.  */
12636#include <ac_nonexistent.h>
12637_ACEOF
12638if { (ac_try="$ac_cpp conftest.$ac_ext"
12639case "(($ac_try" in
12640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641  *) ac_try_echo=$ac_try;;
12642esac
12643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12644$as_echo "$ac_try_echo") >&5
12645  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12646  ac_status=$?
12647  grep -v '^ *+' conftest.er1 >conftest.err
12648  rm -f conftest.er1
12649  cat conftest.err >&5
12650  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651  (exit $ac_status); } >/dev/null && {
12652	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12653	 test ! -s conftest.err
12654       }; then
12655  # Broken: success on invalid input.
12656continue
12657else
12658  $as_echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661  # Passes both tests.
12662ac_preproc_ok=:
12663break
12664fi
12665
12666rm -f conftest.err conftest.$ac_ext
12667
12668done
12669# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12670rm -f conftest.err conftest.$ac_ext
12671if $ac_preproc_ok; then
12672  break
12673fi
12674
12675    done
12676    ac_cv_prog_CXXCPP=$CXXCPP
12677
12678fi
12679  CXXCPP=$ac_cv_prog_CXXCPP
12680else
12681  ac_cv_prog_CXXCPP=$CXXCPP
12682fi
12683{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
12684$as_echo "$CXXCPP" >&6; }
12685ac_preproc_ok=false
12686for ac_cxx_preproc_warn_flag in '' yes
12687do
12688  # Use a header file that comes with gcc, so configuring glibc
12689  # with a fresh cross-compiler works.
12690  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12691  # <limits.h> exists even on freestanding compilers.
12692  # On the NeXT, cc -E runs the code through the compiler's parser,
12693  # not just through cpp. "Syntax error" is here to catch this case.
12694  cat >conftest.$ac_ext <<_ACEOF
12695/* confdefs.h.  */
12696_ACEOF
12697cat confdefs.h >>conftest.$ac_ext
12698cat >>conftest.$ac_ext <<_ACEOF
12699/* end confdefs.h.  */
12700#ifdef __STDC__
12701# include <limits.h>
12702#else
12703# include <assert.h>
12704#endif
12705		     Syntax error
12706_ACEOF
12707if { (ac_try="$ac_cpp conftest.$ac_ext"
12708case "(($ac_try" in
12709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710  *) ac_try_echo=$ac_try;;
12711esac
12712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12713$as_echo "$ac_try_echo") >&5
12714  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12715  ac_status=$?
12716  grep -v '^ *+' conftest.er1 >conftest.err
12717  rm -f conftest.er1
12718  cat conftest.err >&5
12719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720  (exit $ac_status); } >/dev/null && {
12721	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12722	 test ! -s conftest.err
12723       }; then
12724  :
12725else
12726  $as_echo "$as_me: failed program was:" >&5
12727sed 's/^/| /' conftest.$ac_ext >&5
12728
12729  # Broken: fails on valid input.
12730continue
12731fi
12732
12733rm -f conftest.err conftest.$ac_ext
12734
12735  # OK, works on sane cases.  Now check whether nonexistent headers
12736  # can be detected and how.
12737  cat >conftest.$ac_ext <<_ACEOF
12738/* confdefs.h.  */
12739_ACEOF
12740cat confdefs.h >>conftest.$ac_ext
12741cat >>conftest.$ac_ext <<_ACEOF
12742/* end confdefs.h.  */
12743#include <ac_nonexistent.h>
12744_ACEOF
12745if { (ac_try="$ac_cpp conftest.$ac_ext"
12746case "(($ac_try" in
12747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748  *) ac_try_echo=$ac_try;;
12749esac
12750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12751$as_echo "$ac_try_echo") >&5
12752  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12753  ac_status=$?
12754  grep -v '^ *+' conftest.er1 >conftest.err
12755  rm -f conftest.er1
12756  cat conftest.err >&5
12757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758  (exit $ac_status); } >/dev/null && {
12759	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12760	 test ! -s conftest.err
12761       }; then
12762  # Broken: success on invalid input.
12763continue
12764else
12765  $as_echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
12768  # Passes both tests.
12769ac_preproc_ok=:
12770break
12771fi
12772
12773rm -f conftest.err conftest.$ac_ext
12774
12775done
12776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12777rm -f conftest.err conftest.$ac_ext
12778if $ac_preproc_ok; then
12779  :
12780else
12781  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12783{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12784See \`config.log' for more details." >&5
12785$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12786See \`config.log' for more details." >&2;}
12787   { (exit 1); exit 1; }; }; }
12788fi
12789
12790ac_ext=cpp
12791ac_cpp='$CXXCPP $CPPFLAGS'
12792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12795
12796fi
12797
12798
12799ac_ext=f
12800ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12801ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12802ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12803if test -n "$ac_tool_prefix"; then
12804  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
12805  do
12806    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12809$as_echo_n "checking for $ac_word... " >&6; }
12810if test "${ac_cv_prog_F77+set}" = set; then
12811  $as_echo_n "(cached) " >&6
12812else
12813  if test -n "$F77"; then
12814  ac_cv_prog_F77="$F77" # Let the user override the test.
12815else
12816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817for as_dir in $PATH
12818do
12819  IFS=$as_save_IFS
12820  test -z "$as_dir" && as_dir=.
12821  for ac_exec_ext in '' $ac_executable_extensions; do
12822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12823    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12824    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12825    break 2
12826  fi
12827done
12828done
12829IFS=$as_save_IFS
12830
12831fi
12832fi
12833F77=$ac_cv_prog_F77
12834if test -n "$F77"; then
12835  { $as_echo "$as_me:$LINENO: result: $F77" >&5
12836$as_echo "$F77" >&6; }
12837else
12838  { $as_echo "$as_me:$LINENO: result: no" >&5
12839$as_echo "no" >&6; }
12840fi
12841
12842
12843    test -n "$F77" && break
12844  done
12845fi
12846if test -z "$F77"; then
12847  ac_ct_F77=$F77
12848  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
12849do
12850  # Extract the first word of "$ac_prog", so it can be a program name with args.
12851set dummy $ac_prog; ac_word=$2
12852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12853$as_echo_n "checking for $ac_word... " >&6; }
12854if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12855  $as_echo_n "(cached) " >&6
12856else
12857  if test -n "$ac_ct_F77"; then
12858  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12859else
12860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $PATH
12862do
12863  IFS=$as_save_IFS
12864  test -z "$as_dir" && as_dir=.
12865  for ac_exec_ext in '' $ac_executable_extensions; do
12866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12867    ac_cv_prog_ac_ct_F77="$ac_prog"
12868    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12869    break 2
12870  fi
12871done
12872done
12873IFS=$as_save_IFS
12874
12875fi
12876fi
12877ac_ct_F77=$ac_cv_prog_ac_ct_F77
12878if test -n "$ac_ct_F77"; then
12879  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12880$as_echo "$ac_ct_F77" >&6; }
12881else
12882  { $as_echo "$as_me:$LINENO: result: no" >&5
12883$as_echo "no" >&6; }
12884fi
12885
12886
12887  test -n "$ac_ct_F77" && break
12888done
12889
12890  if test "x$ac_ct_F77" = x; then
12891    F77=""
12892  else
12893    case $cross_compiling:$ac_tool_warned in
12894yes:)
12895{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12897ac_tool_warned=yes ;;
12898esac
12899    F77=$ac_ct_F77
12900  fi
12901fi
12902
12903
12904# Provide some information about the compiler.
12905$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12906set X $ac_compile
12907ac_compiler=$2
12908{ (ac_try="$ac_compiler --version >&5"
12909case "(($ac_try" in
12910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911  *) ac_try_echo=$ac_try;;
12912esac
12913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12914$as_echo "$ac_try_echo") >&5
12915  (eval "$ac_compiler --version >&5") 2>&5
12916  ac_status=$?
12917  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918  (exit $ac_status); }
12919{ (ac_try="$ac_compiler -v >&5"
12920case "(($ac_try" in
12921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922  *) ac_try_echo=$ac_try;;
12923esac
12924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12925$as_echo "$ac_try_echo") >&5
12926  (eval "$ac_compiler -v >&5") 2>&5
12927  ac_status=$?
12928  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929  (exit $ac_status); }
12930{ (ac_try="$ac_compiler -V >&5"
12931case "(($ac_try" in
12932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933  *) ac_try_echo=$ac_try;;
12934esac
12935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12936$as_echo "$ac_try_echo") >&5
12937  (eval "$ac_compiler -V >&5") 2>&5
12938  ac_status=$?
12939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940  (exit $ac_status); }
12941rm -f a.out
12942
12943# If we don't use `.F' as extension, the preprocessor is not run on the
12944# input file.  (Note that this only needs to work for GNU compilers.)
12945ac_save_ext=$ac_ext
12946ac_ext=F
12947{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12948$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
12949if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12950  $as_echo_n "(cached) " >&6
12951else
12952  cat >conftest.$ac_ext <<_ACEOF
12953      program main
12954#ifndef __GNUC__
12955       choke me
12956#endif
12957
12958      end
12959_ACEOF
12960rm -f conftest.$ac_objext
12961if { (ac_try="$ac_compile"
12962case "(($ac_try" in
12963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964  *) ac_try_echo=$ac_try;;
12965esac
12966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12967$as_echo "$ac_try_echo") >&5
12968  (eval "$ac_compile") 2>conftest.er1
12969  ac_status=$?
12970  grep -v '^ *+' conftest.er1 >conftest.err
12971  rm -f conftest.er1
12972  cat conftest.err >&5
12973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974  (exit $ac_status); } && {
12975	 test -z "$ac_f77_werror_flag" ||
12976	 test ! -s conftest.err
12977       } && test -s conftest.$ac_objext; then
12978  ac_compiler_gnu=yes
12979else
12980  $as_echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
12983	ac_compiler_gnu=no
12984fi
12985
12986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12988
12989fi
12990{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12991$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
12992ac_ext=$ac_save_ext
12993ac_test_FFLAGS=${FFLAGS+set}
12994ac_save_FFLAGS=$FFLAGS
12995FFLAGS=
12996{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12997$as_echo_n "checking whether $F77 accepts -g... " >&6; }
12998if test "${ac_cv_prog_f77_g+set}" = set; then
12999  $as_echo_n "(cached) " >&6
13000else
13001  FFLAGS=-g
13002cat >conftest.$ac_ext <<_ACEOF
13003      program main
13004
13005      end
13006_ACEOF
13007rm -f conftest.$ac_objext
13008if { (ac_try="$ac_compile"
13009case "(($ac_try" in
13010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011  *) ac_try_echo=$ac_try;;
13012esac
13013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13014$as_echo "$ac_try_echo") >&5
13015  (eval "$ac_compile") 2>conftest.er1
13016  ac_status=$?
13017  grep -v '^ *+' conftest.er1 >conftest.err
13018  rm -f conftest.er1
13019  cat conftest.err >&5
13020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021  (exit $ac_status); } && {
13022	 test -z "$ac_f77_werror_flag" ||
13023	 test ! -s conftest.err
13024       } && test -s conftest.$ac_objext; then
13025  ac_cv_prog_f77_g=yes
13026else
13027  $as_echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
13030	ac_cv_prog_f77_g=no
13031fi
13032
13033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034
13035fi
13036{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13037$as_echo "$ac_cv_prog_f77_g" >&6; }
13038if test "$ac_test_FFLAGS" = set; then
13039  FFLAGS=$ac_save_FFLAGS
13040elif test $ac_cv_prog_f77_g = yes; then
13041  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13042    FFLAGS="-g -O2"
13043  else
13044    FFLAGS="-g"
13045  fi
13046else
13047  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13048    FFLAGS="-O2"
13049  else
13050    FFLAGS=
13051  fi
13052fi
13053
13054if test $ac_compiler_gnu = yes; then
13055  G77=yes
13056else
13057  G77=
13058fi
13059ac_ext=c
13060ac_cpp='$CPP $CPPFLAGS'
13061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13063ac_compiler_gnu=$ac_cv_c_compiler_gnu
13064
13065
13066
13067# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13068# find the maximum length of command line arguments
13069{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13070$as_echo_n "checking the maximum length of command line arguments... " >&6; }
13071if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13072  $as_echo_n "(cached) " >&6
13073else
13074    i=0
13075  teststring="ABCD"
13076
13077  case $build_os in
13078  msdosdjgpp*)
13079    # On DJGPP, this test can blow up pretty badly due to problems in libc
13080    # (any single argument exceeding 2000 bytes causes a buffer overrun
13081    # during glob expansion).  Even if it were fixed, the result of this
13082    # check would be larger than it should be.
13083    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13084    ;;
13085
13086  gnu*)
13087    # Under GNU Hurd, this test is not required because there is
13088    # no limit to the length of command line arguments.
13089    # Libtool will interpret -1 as no limit whatsoever
13090    lt_cv_sys_max_cmd_len=-1;
13091    ;;
13092
13093  cygwin* | mingw*)
13094    # On Win9x/ME, this test blows up -- it succeeds, but takes
13095    # about 5 minutes as the teststring grows exponentially.
13096    # Worse, since 9x/ME are not pre-emptively multitasking,
13097    # you end up with a "frozen" computer, even though with patience
13098    # the test eventually succeeds (with a max line length of 256k).
13099    # Instead, let's just punt: use the minimum linelength reported by
13100    # all of the supported platforms: 8192 (on NT/2K/XP).
13101    lt_cv_sys_max_cmd_len=8192;
13102    ;;
13103
13104  amigaos*)
13105    # On AmigaOS with pdksh, this test takes hours, literally.
13106    # So we just punt and use a minimum line length of 8192.
13107    lt_cv_sys_max_cmd_len=8192;
13108    ;;
13109
13110  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13111    # This has been around since 386BSD, at least.  Likely further.
13112    if test -x /sbin/sysctl; then
13113      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13114    elif test -x /usr/sbin/sysctl; then
13115      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13116    else
13117      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13118    fi
13119    # And add a safety zone
13120    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13121    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13122    ;;
13123
13124  interix*)
13125    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13126    lt_cv_sys_max_cmd_len=196608
13127    ;;
13128
13129  osf*)
13130    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13131    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13132    # nice to cause kernel panics so lets avoid the loop below.
13133    # First set a reasonable default.
13134    lt_cv_sys_max_cmd_len=16384
13135    #
13136    if test -x /sbin/sysconfig; then
13137      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13138        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13139      esac
13140    fi
13141    ;;
13142  sco3.2v5*)
13143    lt_cv_sys_max_cmd_len=102400
13144    ;;
13145  sysv5* | sco5v6* | sysv4.2uw2*)
13146    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13147    if test -n "$kargmax"; then
13148      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13149    else
13150      lt_cv_sys_max_cmd_len=32768
13151    fi
13152    ;;
13153  *)
13154    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13155    if test -n "$lt_cv_sys_max_cmd_len"; then
13156      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13157      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13158    else
13159      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13160      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13161	       = "XX$teststring") >/dev/null 2>&1 &&
13162	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
13163	      lt_cv_sys_max_cmd_len=$new_result &&
13164	      test $i != 17 # 1/2 MB should be enough
13165      do
13166        i=`expr $i + 1`
13167        teststring=$teststring$teststring
13168      done
13169      teststring=
13170      # Add a significant safety factor because C++ compilers can tack on massive
13171      # amounts of additional arguments before passing them to the linker.
13172      # It appears as though 1/2 is a usable value.
13173      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13174    fi
13175    ;;
13176  esac
13177
13178fi
13179
13180if test -n $lt_cv_sys_max_cmd_len ; then
13181  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13182$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13183else
13184  { $as_echo "$as_me:$LINENO: result: none" >&5
13185$as_echo "none" >&6; }
13186fi
13187
13188
13189
13190
13191
13192# Check for command to grab the raw symbol name followed by C symbol from nm.
13193{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13194$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13195if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13196  $as_echo_n "(cached) " >&6
13197else
13198
13199# These are sane defaults that work on at least a few old systems.
13200# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13201
13202# Character class describing NM global symbol codes.
13203symcode='[BCDEGRST]'
13204
13205# Regexp to match symbols that can be accessed directly from C.
13206sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13207
13208# Transform an extracted symbol line into a proper C declaration
13209lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13210
13211# Transform an extracted symbol line into symbol name and symbol address
13212lt_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'"
13213
13214# Define system-specific variables.
13215case $host_os in
13216aix*)
13217  symcode='[BCDT]'
13218  ;;
13219cygwin* | mingw* | pw32*)
13220  symcode='[ABCDGISTW]'
13221  ;;
13222hpux*) # Its linker distinguishes data from code symbols
13223  if test "$host_cpu" = ia64; then
13224    symcode='[ABCDEGRST]'
13225  fi
13226  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13227  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'"
13228  ;;
13229linux* | k*bsd*-gnu)
13230  if test "$host_cpu" = ia64; then
13231    symcode='[ABCDGIRSTW]'
13232    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13233    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'"
13234  fi
13235  ;;
13236irix* | nonstopux*)
13237  symcode='[BCDEGRST]'
13238  ;;
13239osf*)
13240  symcode='[BCDEGQRST]'
13241  ;;
13242solaris*)
13243  symcode='[BDRT]'
13244  ;;
13245sco3.2v5*)
13246  symcode='[DT]'
13247  ;;
13248sysv4.2uw2*)
13249  symcode='[DT]'
13250  ;;
13251sysv5* | sco5v6* | unixware* | OpenUNIX*)
13252  symcode='[ABDT]'
13253  ;;
13254sysv4)
13255  symcode='[DFNSTU]'
13256  ;;
13257esac
13258
13259# Handle CRLF in mingw tool chain
13260opt_cr=
13261case $build_os in
13262mingw*)
13263  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13264  ;;
13265esac
13266
13267# If we're using GNU nm, then use its standard symbol codes.
13268case `$NM -V 2>&1` in
13269*GNU* | *'with BFD'*)
13270  symcode='[ABCDGIRSTW]' ;;
13271esac
13272
13273# Try without a prefix undercore, then with it.
13274for ac_symprfx in "" "_"; do
13275
13276  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13277  symxfrm="\\1 $ac_symprfx\\2 \\2"
13278
13279  # Write the raw and C identifiers.
13280  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13281
13282  # Check to see that the pipe works correctly.
13283  pipe_works=no
13284
13285  rm -f conftest*
13286  cat > conftest.$ac_ext <<EOF
13287#ifdef __cplusplus
13288extern "C" {
13289#endif
13290char nm_test_var;
13291void nm_test_func(){}
13292#ifdef __cplusplus
13293}
13294#endif
13295int main(){nm_test_var='a';nm_test_func();return(0);}
13296EOF
13297
13298  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299  (eval $ac_compile) 2>&5
13300  ac_status=$?
13301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302  (exit $ac_status); }; then
13303    # Now try to grab the symbols.
13304    nlist=conftest.nm
13305    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13306  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13307  ac_status=$?
13308  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309  (exit $ac_status); } && test -s "$nlist"; then
13310      # Try sorting and uniquifying the output.
13311      if sort "$nlist" | uniq > "$nlist"T; then
13312	mv -f "$nlist"T "$nlist"
13313      else
13314	rm -f "$nlist"T
13315      fi
13316
13317      # Make sure that we snagged all the symbols we need.
13318      if grep ' nm_test_var$' "$nlist" >/dev/null; then
13319	if grep ' nm_test_func$' "$nlist" >/dev/null; then
13320	  cat <<EOF > conftest.$ac_ext
13321#ifdef __cplusplus
13322extern "C" {
13323#endif
13324
13325EOF
13326	  # Now generate the symbol file.
13327	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13328
13329	  cat <<EOF >> conftest.$ac_ext
13330#if defined (__STDC__) && __STDC__
13331# define lt_ptr_t void *
13332#else
13333# define lt_ptr_t char *
13334# define const
13335#endif
13336
13337/* The mapping between symbol names and symbols. */
13338const struct {
13339  const char *name;
13340  lt_ptr_t address;
13341}
13342lt_preloaded_symbols[] =
13343{
13344EOF
13345	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13346	  cat <<\EOF >> conftest.$ac_ext
13347  {0, (lt_ptr_t) 0}
13348};
13349
13350#ifdef __cplusplus
13351}
13352#endif
13353EOF
13354	  # Now try linking the two files.
13355	  mv conftest.$ac_objext conftstm.$ac_objext
13356	  lt_save_LIBS="$LIBS"
13357	  lt_save_CFLAGS="$CFLAGS"
13358	  LIBS="conftstm.$ac_objext"
13359	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13360	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361  (eval $ac_link) 2>&5
13362  ac_status=$?
13363  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364  (exit $ac_status); } && test -s conftest${ac_exeext}; then
13365	    pipe_works=yes
13366	  fi
13367	  LIBS="$lt_save_LIBS"
13368	  CFLAGS="$lt_save_CFLAGS"
13369	else
13370	  echo "cannot find nm_test_func in $nlist" >&5
13371	fi
13372      else
13373	echo "cannot find nm_test_var in $nlist" >&5
13374      fi
13375    else
13376      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13377    fi
13378  else
13379    echo "$progname: failed program was:" >&5
13380    cat conftest.$ac_ext >&5
13381  fi
13382  rm -rf conftest* conftst*
13383
13384  # Do not use the global_symbol_pipe unless it works.
13385  if test "$pipe_works" = yes; then
13386    break
13387  else
13388    lt_cv_sys_global_symbol_pipe=
13389  fi
13390done
13391
13392fi
13393
13394if test -z "$lt_cv_sys_global_symbol_pipe"; then
13395  lt_cv_sys_global_symbol_to_cdecl=
13396fi
13397if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13398  { $as_echo "$as_me:$LINENO: result: failed" >&5
13399$as_echo "failed" >&6; }
13400else
13401  { $as_echo "$as_me:$LINENO: result: ok" >&5
13402$as_echo "ok" >&6; }
13403fi
13404
13405{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
13406$as_echo_n "checking for objdir... " >&6; }
13407if test "${lt_cv_objdir+set}" = set; then
13408  $as_echo_n "(cached) " >&6
13409else
13410  rm -f .libs 2>/dev/null
13411mkdir .libs 2>/dev/null
13412if test -d .libs; then
13413  lt_cv_objdir=.libs
13414else
13415  # MS-DOS does not allow filenames that begin with a dot.
13416  lt_cv_objdir=_libs
13417fi
13418rmdir .libs 2>/dev/null
13419fi
13420{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13421$as_echo "$lt_cv_objdir" >&6; }
13422objdir=$lt_cv_objdir
13423
13424
13425
13426
13427
13428case $host_os in
13429aix3*)
13430  # AIX sometimes has problems with the GCC collect2 program.  For some
13431  # reason, if we set the COLLECT_NAMES environment variable, the problems
13432  # vanish in a puff of smoke.
13433  if test "X${COLLECT_NAMES+set}" != Xset; then
13434    COLLECT_NAMES=
13435    export COLLECT_NAMES
13436  fi
13437  ;;
13438esac
13439
13440# Sed substitution that helps us do robust quoting.  It backslashifies
13441# metacharacters that are still active within double-quoted strings.
13442Xsed='sed -e 1s/^X//'
13443sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13444
13445# Same as above, but do not quote variable references.
13446double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13447
13448# Sed substitution to delay expansion of an escaped shell variable in a
13449# double_quote_subst'ed string.
13450delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13451
13452# Sed substitution to avoid accidental globbing in evaled expressions
13453no_glob_subst='s/\*/\\\*/g'
13454
13455# Constants:
13456rm="rm -f"
13457
13458# Global variables:
13459default_ofile=libtool
13460can_build_shared=yes
13461
13462# All known linkers require a `.a' archive for static linking (except MSVC,
13463# which needs '.lib').
13464libext=a
13465ltmain="$ac_aux_dir/ltmain.sh"
13466ofile="$default_ofile"
13467with_gnu_ld="$lt_cv_prog_gnu_ld"
13468
13469if test -n "$ac_tool_prefix"; then
13470  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13471set dummy ${ac_tool_prefix}ar; ac_word=$2
13472{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13473$as_echo_n "checking for $ac_word... " >&6; }
13474if test "${ac_cv_prog_AR+set}" = set; then
13475  $as_echo_n "(cached) " >&6
13476else
13477  if test -n "$AR"; then
13478  ac_cv_prog_AR="$AR" # Let the user override the test.
13479else
13480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481for as_dir in $PATH
13482do
13483  IFS=$as_save_IFS
13484  test -z "$as_dir" && as_dir=.
13485  for ac_exec_ext in '' $ac_executable_extensions; do
13486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13487    ac_cv_prog_AR="${ac_tool_prefix}ar"
13488    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13489    break 2
13490  fi
13491done
13492done
13493IFS=$as_save_IFS
13494
13495fi
13496fi
13497AR=$ac_cv_prog_AR
13498if test -n "$AR"; then
13499  { $as_echo "$as_me:$LINENO: result: $AR" >&5
13500$as_echo "$AR" >&6; }
13501else
13502  { $as_echo "$as_me:$LINENO: result: no" >&5
13503$as_echo "no" >&6; }
13504fi
13505
13506
13507fi
13508if test -z "$ac_cv_prog_AR"; then
13509  ac_ct_AR=$AR
13510  # Extract the first word of "ar", so it can be a program name with args.
13511set dummy ar; ac_word=$2
13512{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13513$as_echo_n "checking for $ac_word... " >&6; }
13514if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13515  $as_echo_n "(cached) " >&6
13516else
13517  if test -n "$ac_ct_AR"; then
13518  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13519else
13520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521for as_dir in $PATH
13522do
13523  IFS=$as_save_IFS
13524  test -z "$as_dir" && as_dir=.
13525  for ac_exec_ext in '' $ac_executable_extensions; do
13526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13527    ac_cv_prog_ac_ct_AR="ar"
13528    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13529    break 2
13530  fi
13531done
13532done
13533IFS=$as_save_IFS
13534
13535fi
13536fi
13537ac_ct_AR=$ac_cv_prog_ac_ct_AR
13538if test -n "$ac_ct_AR"; then
13539  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13540$as_echo "$ac_ct_AR" >&6; }
13541else
13542  { $as_echo "$as_me:$LINENO: result: no" >&5
13543$as_echo "no" >&6; }
13544fi
13545
13546  if test "x$ac_ct_AR" = x; then
13547    AR="false"
13548  else
13549    case $cross_compiling:$ac_tool_warned in
13550yes:)
13551{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13553ac_tool_warned=yes ;;
13554esac
13555    AR=$ac_ct_AR
13556  fi
13557else
13558  AR="$ac_cv_prog_AR"
13559fi
13560
13561if test -n "$ac_tool_prefix"; then
13562  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13563set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13565$as_echo_n "checking for $ac_word... " >&6; }
13566if test "${ac_cv_prog_RANLIB+set}" = set; then
13567  $as_echo_n "(cached) " >&6
13568else
13569  if test -n "$RANLIB"; then
13570  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13571else
13572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573for as_dir in $PATH
13574do
13575  IFS=$as_save_IFS
13576  test -z "$as_dir" && as_dir=.
13577  for ac_exec_ext in '' $ac_executable_extensions; do
13578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13579    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13580    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13581    break 2
13582  fi
13583done
13584done
13585IFS=$as_save_IFS
13586
13587fi
13588fi
13589RANLIB=$ac_cv_prog_RANLIB
13590if test -n "$RANLIB"; then
13591  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
13592$as_echo "$RANLIB" >&6; }
13593else
13594  { $as_echo "$as_me:$LINENO: result: no" >&5
13595$as_echo "no" >&6; }
13596fi
13597
13598
13599fi
13600if test -z "$ac_cv_prog_RANLIB"; then
13601  ac_ct_RANLIB=$RANLIB
13602  # Extract the first word of "ranlib", so it can be a program name with args.
13603set dummy ranlib; ac_word=$2
13604{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13605$as_echo_n "checking for $ac_word... " >&6; }
13606if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13607  $as_echo_n "(cached) " >&6
13608else
13609  if test -n "$ac_ct_RANLIB"; then
13610  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13611else
13612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613for as_dir in $PATH
13614do
13615  IFS=$as_save_IFS
13616  test -z "$as_dir" && as_dir=.
13617  for ac_exec_ext in '' $ac_executable_extensions; do
13618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13619    ac_cv_prog_ac_ct_RANLIB="ranlib"
13620    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13621    break 2
13622  fi
13623done
13624done
13625IFS=$as_save_IFS
13626
13627fi
13628fi
13629ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13630if test -n "$ac_ct_RANLIB"; then
13631  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13632$as_echo "$ac_ct_RANLIB" >&6; }
13633else
13634  { $as_echo "$as_me:$LINENO: result: no" >&5
13635$as_echo "no" >&6; }
13636fi
13637
13638  if test "x$ac_ct_RANLIB" = x; then
13639    RANLIB=":"
13640  else
13641    case $cross_compiling:$ac_tool_warned in
13642yes:)
13643{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13645ac_tool_warned=yes ;;
13646esac
13647    RANLIB=$ac_ct_RANLIB
13648  fi
13649else
13650  RANLIB="$ac_cv_prog_RANLIB"
13651fi
13652
13653if test -n "$ac_tool_prefix"; then
13654  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13655set dummy ${ac_tool_prefix}strip; ac_word=$2
13656{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13657$as_echo_n "checking for $ac_word... " >&6; }
13658if test "${ac_cv_prog_STRIP+set}" = set; then
13659  $as_echo_n "(cached) " >&6
13660else
13661  if test -n "$STRIP"; then
13662  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13663else
13664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665for as_dir in $PATH
13666do
13667  IFS=$as_save_IFS
13668  test -z "$as_dir" && as_dir=.
13669  for ac_exec_ext in '' $ac_executable_extensions; do
13670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13671    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13672    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13673    break 2
13674  fi
13675done
13676done
13677IFS=$as_save_IFS
13678
13679fi
13680fi
13681STRIP=$ac_cv_prog_STRIP
13682if test -n "$STRIP"; then
13683  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
13684$as_echo "$STRIP" >&6; }
13685else
13686  { $as_echo "$as_me:$LINENO: result: no" >&5
13687$as_echo "no" >&6; }
13688fi
13689
13690
13691fi
13692if test -z "$ac_cv_prog_STRIP"; then
13693  ac_ct_STRIP=$STRIP
13694  # Extract the first word of "strip", so it can be a program name with args.
13695set dummy strip; ac_word=$2
13696{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13697$as_echo_n "checking for $ac_word... " >&6; }
13698if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13699  $as_echo_n "(cached) " >&6
13700else
13701  if test -n "$ac_ct_STRIP"; then
13702  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13703else
13704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705for as_dir in $PATH
13706do
13707  IFS=$as_save_IFS
13708  test -z "$as_dir" && as_dir=.
13709  for ac_exec_ext in '' $ac_executable_extensions; do
13710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13711    ac_cv_prog_ac_ct_STRIP="strip"
13712    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13713    break 2
13714  fi
13715done
13716done
13717IFS=$as_save_IFS
13718
13719fi
13720fi
13721ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13722if test -n "$ac_ct_STRIP"; then
13723  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13724$as_echo "$ac_ct_STRIP" >&6; }
13725else
13726  { $as_echo "$as_me:$LINENO: result: no" >&5
13727$as_echo "no" >&6; }
13728fi
13729
13730  if test "x$ac_ct_STRIP" = x; then
13731    STRIP=":"
13732  else
13733    case $cross_compiling:$ac_tool_warned in
13734yes:)
13735{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13737ac_tool_warned=yes ;;
13738esac
13739    STRIP=$ac_ct_STRIP
13740  fi
13741else
13742  STRIP="$ac_cv_prog_STRIP"
13743fi
13744
13745
13746old_CC="$CC"
13747old_CFLAGS="$CFLAGS"
13748
13749# Set sane defaults for various variables
13750test -z "$AR" && AR=ar
13751test -z "$AR_FLAGS" && AR_FLAGS=cru
13752test -z "$AS" && AS=as
13753test -z "$CC" && CC=cc
13754test -z "$LTCC" && LTCC=$CC
13755test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13756test -z "$DLLTOOL" && DLLTOOL=dlltool
13757test -z "$LD" && LD=ld
13758test -z "$LN_S" && LN_S="ln -s"
13759test -z "$MAGIC_CMD" && MAGIC_CMD=file
13760test -z "$NM" && NM=nm
13761test -z "$SED" && SED=sed
13762test -z "$OBJDUMP" && OBJDUMP=objdump
13763test -z "$RANLIB" && RANLIB=:
13764test -z "$STRIP" && STRIP=:
13765test -z "$ac_objext" && ac_objext=o
13766
13767# Determine commands to create old-style static archives.
13768old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13769old_postinstall_cmds='chmod 644 $oldlib'
13770old_postuninstall_cmds=
13771
13772if test -n "$RANLIB"; then
13773  case $host_os in
13774  openbsd*)
13775    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13776    ;;
13777  *)
13778    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13779    ;;
13780  esac
13781  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13782fi
13783
13784for cc_temp in $compiler""; do
13785  case $cc_temp in
13786    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13787    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13788    \-*) ;;
13789    *) break;;
13790  esac
13791done
13792cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13793
13794
13795# Only perform the check for file, if the check method requires it
13796case $deplibs_check_method in
13797file_magic*)
13798  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13799    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13800$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13801if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13802  $as_echo_n "(cached) " >&6
13803else
13804  case $MAGIC_CMD in
13805[\\/*] |  ?:[\\/]*)
13806  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13807  ;;
13808*)
13809  lt_save_MAGIC_CMD="$MAGIC_CMD"
13810  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13811  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13812  for ac_dir in $ac_dummy; do
13813    IFS="$lt_save_ifs"
13814    test -z "$ac_dir" && ac_dir=.
13815    if test -f $ac_dir/${ac_tool_prefix}file; then
13816      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13817      if test -n "$file_magic_test_file"; then
13818	case $deplibs_check_method in
13819	"file_magic "*)
13820	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13821	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13822	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13823	    $EGREP "$file_magic_regex" > /dev/null; then
13824	    :
13825	  else
13826	    cat <<EOF 1>&2
13827
13828*** Warning: the command libtool uses to detect shared libraries,
13829*** $file_magic_cmd, produces output that libtool cannot recognize.
13830*** The result is that libtool may fail to recognize shared libraries
13831*** as such.  This will affect the creation of libtool libraries that
13832*** depend on shared libraries, but programs linked with such libtool
13833*** libraries will work regardless of this problem.  Nevertheless, you
13834*** may want to report the problem to your system manager and/or to
13835*** bug-libtool@gnu.org
13836
13837EOF
13838	  fi ;;
13839	esac
13840      fi
13841      break
13842    fi
13843  done
13844  IFS="$lt_save_ifs"
13845  MAGIC_CMD="$lt_save_MAGIC_CMD"
13846  ;;
13847esac
13848fi
13849
13850MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13851if test -n "$MAGIC_CMD"; then
13852  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13853$as_echo "$MAGIC_CMD" >&6; }
13854else
13855  { $as_echo "$as_me:$LINENO: result: no" >&5
13856$as_echo "no" >&6; }
13857fi
13858
13859if test -z "$lt_cv_path_MAGIC_CMD"; then
13860  if test -n "$ac_tool_prefix"; then
13861    { $as_echo "$as_me:$LINENO: checking for file" >&5
13862$as_echo_n "checking for file... " >&6; }
13863if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13864  $as_echo_n "(cached) " >&6
13865else
13866  case $MAGIC_CMD in
13867[\\/*] |  ?:[\\/]*)
13868  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13869  ;;
13870*)
13871  lt_save_MAGIC_CMD="$MAGIC_CMD"
13872  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13873  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13874  for ac_dir in $ac_dummy; do
13875    IFS="$lt_save_ifs"
13876    test -z "$ac_dir" && ac_dir=.
13877    if test -f $ac_dir/file; then
13878      lt_cv_path_MAGIC_CMD="$ac_dir/file"
13879      if test -n "$file_magic_test_file"; then
13880	case $deplibs_check_method in
13881	"file_magic "*)
13882	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13883	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13884	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13885	    $EGREP "$file_magic_regex" > /dev/null; then
13886	    :
13887	  else
13888	    cat <<EOF 1>&2
13889
13890*** Warning: the command libtool uses to detect shared libraries,
13891*** $file_magic_cmd, produces output that libtool cannot recognize.
13892*** The result is that libtool may fail to recognize shared libraries
13893*** as such.  This will affect the creation of libtool libraries that
13894*** depend on shared libraries, but programs linked with such libtool
13895*** libraries will work regardless of this problem.  Nevertheless, you
13896*** may want to report the problem to your system manager and/or to
13897*** bug-libtool@gnu.org
13898
13899EOF
13900	  fi ;;
13901	esac
13902      fi
13903      break
13904    fi
13905  done
13906  IFS="$lt_save_ifs"
13907  MAGIC_CMD="$lt_save_MAGIC_CMD"
13908  ;;
13909esac
13910fi
13911
13912MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13913if test -n "$MAGIC_CMD"; then
13914  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13915$as_echo "$MAGIC_CMD" >&6; }
13916else
13917  { $as_echo "$as_me:$LINENO: result: no" >&5
13918$as_echo "no" >&6; }
13919fi
13920
13921  else
13922    MAGIC_CMD=:
13923  fi
13924fi
13925
13926  fi
13927  ;;
13928esac
13929
13930
13931  case $host_os in
13932    rhapsody* | darwin*)
13933    if test -n "$ac_tool_prefix"; then
13934  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13935set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13936{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13937$as_echo_n "checking for $ac_word... " >&6; }
13938if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
13939  $as_echo_n "(cached) " >&6
13940else
13941  if test -n "$DSYMUTIL"; then
13942  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13943else
13944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945for as_dir in $PATH
13946do
13947  IFS=$as_save_IFS
13948  test -z "$as_dir" && as_dir=.
13949  for ac_exec_ext in '' $ac_executable_extensions; do
13950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13951    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13952    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13953    break 2
13954  fi
13955done
13956done
13957IFS=$as_save_IFS
13958
13959fi
13960fi
13961DSYMUTIL=$ac_cv_prog_DSYMUTIL
13962if test -n "$DSYMUTIL"; then
13963  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
13964$as_echo "$DSYMUTIL" >&6; }
13965else
13966  { $as_echo "$as_me:$LINENO: result: no" >&5
13967$as_echo "no" >&6; }
13968fi
13969
13970
13971fi
13972if test -z "$ac_cv_prog_DSYMUTIL"; then
13973  ac_ct_DSYMUTIL=$DSYMUTIL
13974  # Extract the first word of "dsymutil", so it can be a program name with args.
13975set dummy dsymutil; ac_word=$2
13976{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13977$as_echo_n "checking for $ac_word... " >&6; }
13978if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
13979  $as_echo_n "(cached) " >&6
13980else
13981  if test -n "$ac_ct_DSYMUTIL"; then
13982  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13983else
13984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985for as_dir in $PATH
13986do
13987  IFS=$as_save_IFS
13988  test -z "$as_dir" && as_dir=.
13989  for ac_exec_ext in '' $ac_executable_extensions; do
13990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13991    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13992    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13993    break 2
13994  fi
13995done
13996done
13997IFS=$as_save_IFS
13998
13999fi
14000fi
14001ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14002if test -n "$ac_ct_DSYMUTIL"; then
14003  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
14004$as_echo "$ac_ct_DSYMUTIL" >&6; }
14005else
14006  { $as_echo "$as_me:$LINENO: result: no" >&5
14007$as_echo "no" >&6; }
14008fi
14009
14010  if test "x$ac_ct_DSYMUTIL" = x; then
14011    DSYMUTIL=":"
14012  else
14013    case $cross_compiling:$ac_tool_warned in
14014yes:)
14015{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
14016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14017ac_tool_warned=yes ;;
14018esac
14019    DSYMUTIL=$ac_ct_DSYMUTIL
14020  fi
14021else
14022  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14023fi
14024
14025    if test -n "$ac_tool_prefix"; then
14026  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14027set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14029$as_echo_n "checking for $ac_word... " >&6; }
14030if test "${ac_cv_prog_NMEDIT+set}" = set; then
14031  $as_echo_n "(cached) " >&6
14032else
14033  if test -n "$NMEDIT"; then
14034  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14035else
14036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037for as_dir in $PATH
14038do
14039  IFS=$as_save_IFS
14040  test -z "$as_dir" && as_dir=.
14041  for ac_exec_ext in '' $ac_executable_extensions; do
14042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14043    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14044    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14045    break 2
14046  fi
14047done
14048done
14049IFS=$as_save_IFS
14050
14051fi
14052fi
14053NMEDIT=$ac_cv_prog_NMEDIT
14054if test -n "$NMEDIT"; then
14055  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
14056$as_echo "$NMEDIT" >&6; }
14057else
14058  { $as_echo "$as_me:$LINENO: result: no" >&5
14059$as_echo "no" >&6; }
14060fi
14061
14062
14063fi
14064if test -z "$ac_cv_prog_NMEDIT"; then
14065  ac_ct_NMEDIT=$NMEDIT
14066  # Extract the first word of "nmedit", so it can be a program name with args.
14067set dummy nmedit; ac_word=$2
14068{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14069$as_echo_n "checking for $ac_word... " >&6; }
14070if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
14071  $as_echo_n "(cached) " >&6
14072else
14073  if test -n "$ac_ct_NMEDIT"; then
14074  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14075else
14076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077for as_dir in $PATH
14078do
14079  IFS=$as_save_IFS
14080  test -z "$as_dir" && as_dir=.
14081  for ac_exec_ext in '' $ac_executable_extensions; do
14082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14083    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14084    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14085    break 2
14086  fi
14087done
14088done
14089IFS=$as_save_IFS
14090
14091fi
14092fi
14093ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14094if test -n "$ac_ct_NMEDIT"; then
14095  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
14096$as_echo "$ac_ct_NMEDIT" >&6; }
14097else
14098  { $as_echo "$as_me:$LINENO: result: no" >&5
14099$as_echo "no" >&6; }
14100fi
14101
14102  if test "x$ac_ct_NMEDIT" = x; then
14103    NMEDIT=":"
14104  else
14105    case $cross_compiling:$ac_tool_warned in
14106yes:)
14107{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
14108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14109ac_tool_warned=yes ;;
14110esac
14111    NMEDIT=$ac_ct_NMEDIT
14112  fi
14113else
14114  NMEDIT="$ac_cv_prog_NMEDIT"
14115fi
14116
14117
14118    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
14119$as_echo_n "checking for -single_module linker flag... " >&6; }
14120if test "${lt_cv_apple_cc_single_mod+set}" = set; then
14121  $as_echo_n "(cached) " >&6
14122else
14123  lt_cv_apple_cc_single_mod=no
14124      if test -z "${LT_MULTI_MODULE}"; then
14125   # By default we will add the -single_module flag. You can override
14126   # by either setting the environment variable LT_MULTI_MODULE
14127   # non-empty at configure time, or by adding -multi_module to the
14128   # link flags.
14129   echo "int foo(void){return 1;}" > conftest.c
14130   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14131     -dynamiclib ${wl}-single_module conftest.c
14132   if test -f libconftest.dylib; then
14133     lt_cv_apple_cc_single_mod=yes
14134     rm -rf libconftest.dylib*
14135   fi
14136   rm conftest.c
14137      fi
14138fi
14139{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
14140$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14141    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
14142$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14143if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
14144  $as_echo_n "(cached) " >&6
14145else
14146  lt_cv_ld_exported_symbols_list=no
14147      save_LDFLAGS=$LDFLAGS
14148      echo "_main" > conftest.sym
14149      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14150      cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h.  */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h.  */
14156
14157int
14158main ()
14159{
14160
14161  ;
14162  return 0;
14163}
14164_ACEOF
14165rm -f conftest.$ac_objext conftest$ac_exeext
14166if { (ac_try="$ac_link"
14167case "(($ac_try" in
14168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169  *) ac_try_echo=$ac_try;;
14170esac
14171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14172$as_echo "$ac_try_echo") >&5
14173  (eval "$ac_link") 2>conftest.er1
14174  ac_status=$?
14175  grep -v '^ *+' conftest.er1 >conftest.err
14176  rm -f conftest.er1
14177  cat conftest.err >&5
14178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179  (exit $ac_status); } && {
14180	 test -z "$ac_c_werror_flag" ||
14181	 test ! -s conftest.err
14182       } && test -s conftest$ac_exeext && {
14183	 test "$cross_compiling" = yes ||
14184	 $as_test_x conftest$ac_exeext
14185       }; then
14186  lt_cv_ld_exported_symbols_list=yes
14187else
14188  $as_echo "$as_me: failed program was:" >&5
14189sed 's/^/| /' conftest.$ac_ext >&5
14190
14191	lt_cv_ld_exported_symbols_list=no
14192fi
14193
14194rm -rf conftest.dSYM
14195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14196      conftest$ac_exeext conftest.$ac_ext
14197   LDFLAGS="$save_LDFLAGS"
14198
14199fi
14200{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
14201$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14202    case $host_os in
14203    rhapsody* | darwin1.[0123])
14204      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14205    darwin1.*)
14206     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14207    darwin*)
14208      # if running on 10.5 or later, the deployment target defaults
14209      # to the OS version, if on x86, and 10.4, the deployment
14210      # target defaults to 10.4. Don't you love it?
14211      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14212   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14213     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14214   10.[012]*)
14215     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14216   10.*)
14217     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14218      esac
14219    ;;
14220  esac
14221    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14222      _lt_dar_single_mod='$single_module'
14223    fi
14224    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14225      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14226    else
14227      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
14228    fi
14229    if test "$DSYMUTIL" != ":"; then
14230      _lt_dsymutil="~$DSYMUTIL \$lib || :"
14231    else
14232      _lt_dsymutil=
14233    fi
14234    ;;
14235  esac
14236
14237
14238enable_dlopen=yes
14239enable_win32_dll=no
14240
14241# Check whether --enable-libtool-lock was given.
14242if test "${enable_libtool_lock+set}" = set; then
14243  enableval=$enable_libtool_lock;
14244fi
14245
14246test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14247
14248
14249# Check whether --with-pic was given.
14250if test "${with_pic+set}" = set; then
14251  withval=$with_pic; pic_mode="$withval"
14252else
14253  pic_mode=default
14254fi
14255
14256test -z "$pic_mode" && pic_mode=default
14257
14258# Use C for the default configuration in the libtool script
14259tagname=
14260lt_save_CC="$CC"
14261ac_ext=c
14262ac_cpp='$CPP $CPPFLAGS'
14263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14265ac_compiler_gnu=$ac_cv_c_compiler_gnu
14266
14267
14268# Source file extension for C test sources.
14269ac_ext=c
14270
14271# Object file extension for compiled C test sources.
14272objext=o
14273objext=$objext
14274
14275# Code to be used in simple compile tests
14276lt_simple_compile_test_code="int some_variable = 0;"
14277
14278# Code to be used in simple link tests
14279lt_simple_link_test_code='int main(){return(0);}'
14280
14281
14282# If no C compiler was specified, use CC.
14283LTCC=${LTCC-"$CC"}
14284
14285# If no C compiler flags were specified, use CFLAGS.
14286LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14287
14288# Allow CC to be a program name with arguments.
14289compiler=$CC
14290
14291
14292# save warnings/boilerplate of simple test code
14293ac_outfile=conftest.$ac_objext
14294echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14295eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14296_lt_compiler_boilerplate=`cat conftest.err`
14297$rm conftest*
14298
14299ac_outfile=conftest.$ac_objext
14300echo "$lt_simple_link_test_code" >conftest.$ac_ext
14301eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14302_lt_linker_boilerplate=`cat conftest.err`
14303$rm -r conftest*
14304
14305
14306
14307lt_prog_compiler_no_builtin_flag=
14308
14309if test "$GCC" = yes; then
14310  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14311
14312
14313{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14314$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14315if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14316  $as_echo_n "(cached) " >&6
14317else
14318  lt_cv_prog_compiler_rtti_exceptions=no
14319  ac_outfile=conftest.$ac_objext
14320   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14321   lt_compiler_flag="-fno-rtti -fno-exceptions"
14322   # Insert the option either (1) after the last *FLAGS variable, or
14323   # (2) before a word containing "conftest.", or (3) at the end.
14324   # Note that $ac_compile itself does not contain backslashes and begins
14325   # with a dollar sign (not a hyphen), so the echo should work correctly.
14326   # The option is referenced via a variable to avoid confusing sed.
14327   lt_compile=`echo "$ac_compile" | $SED \
14328   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14329   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14330   -e 's:$: $lt_compiler_flag:'`
14331   (eval echo "\"\$as_me:14331: $lt_compile\"" >&5)
14332   (eval "$lt_compile" 2>conftest.err)
14333   ac_status=$?
14334   cat conftest.err >&5
14335   echo "$as_me:14335: \$? = $ac_status" >&5
14336   if (exit $ac_status) && test -s "$ac_outfile"; then
14337     # The compiler can only warn and ignore the option if not recognized
14338     # So say no if there are warnings other than the usual output.
14339     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14340     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14341     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14342       lt_cv_prog_compiler_rtti_exceptions=yes
14343     fi
14344   fi
14345   $rm conftest*
14346
14347fi
14348{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14349$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14350
14351if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14352    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14353else
14354    :
14355fi
14356
14357fi
14358
14359lt_prog_compiler_wl=
14360lt_prog_compiler_pic=
14361lt_prog_compiler_static=
14362
14363{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14364$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14365
14366  if test "$GCC" = yes; then
14367    lt_prog_compiler_wl='-Wl,'
14368    lt_prog_compiler_static='-static'
14369
14370    case $host_os in
14371      aix*)
14372      # All AIX code is PIC.
14373      if test "$host_cpu" = ia64; then
14374	# AIX 5 now supports IA64 processor
14375	lt_prog_compiler_static='-Bstatic'
14376      fi
14377      ;;
14378
14379    amigaos*)
14380      # FIXME: we need at least 68020 code to build shared libraries, but
14381      # adding the `-m68020' flag to GCC prevents building anything better,
14382      # like `-m68040'.
14383      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14384      ;;
14385
14386    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14387      # PIC is the default for these OSes.
14388      ;;
14389
14390    mingw* | cygwin* | pw32* | os2*)
14391      # This hack is so that the source file can tell whether it is being
14392      # built for inclusion in a dll (and should export symbols for example).
14393      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14394      # (--disable-auto-import) libraries
14395      lt_prog_compiler_pic='-DDLL_EXPORT'
14396      ;;
14397
14398    darwin* | rhapsody*)
14399      # PIC is the default on this platform
14400      # Common symbols not allowed in MH_DYLIB files
14401      lt_prog_compiler_pic='-fno-common'
14402      ;;
14403
14404    interix[3-9]*)
14405      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14406      # Instead, we relocate shared libraries at runtime.
14407      ;;
14408
14409    msdosdjgpp*)
14410      # Just because we use GCC doesn't mean we suddenly get shared libraries
14411      # on systems that don't support them.
14412      lt_prog_compiler_can_build_shared=no
14413      enable_shared=no
14414      ;;
14415
14416    sysv4*MP*)
14417      if test -d /usr/nec; then
14418	lt_prog_compiler_pic=-Kconform_pic
14419      fi
14420      ;;
14421
14422    hpux*)
14423      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14424      # not for PA HP-UX.
14425      case $host_cpu in
14426      hppa*64*|ia64*)
14427	# +Z the default
14428	;;
14429      *)
14430	lt_prog_compiler_pic='-fPIC'
14431	;;
14432      esac
14433      ;;
14434
14435    *)
14436      lt_prog_compiler_pic='-fPIC'
14437      ;;
14438    esac
14439  else
14440    # PORTME Check for flag to pass linker flags through the system compiler.
14441    case $host_os in
14442    aix*)
14443      lt_prog_compiler_wl='-Wl,'
14444      if test "$host_cpu" = ia64; then
14445	# AIX 5 now supports IA64 processor
14446	lt_prog_compiler_static='-Bstatic'
14447      else
14448	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14449      fi
14450      ;;
14451      darwin*)
14452        # PIC is the default on this platform
14453        # Common symbols not allowed in MH_DYLIB files
14454       case $cc_basename in
14455         xlc*)
14456         lt_prog_compiler_pic='-qnocommon'
14457         lt_prog_compiler_wl='-Wl,'
14458         ;;
14459       esac
14460       ;;
14461
14462    mingw* | cygwin* | pw32* | os2*)
14463      # This hack is so that the source file can tell whether it is being
14464      # built for inclusion in a dll (and should export symbols for example).
14465      lt_prog_compiler_pic='-DDLL_EXPORT'
14466      ;;
14467
14468    hpux9* | hpux10* | hpux11*)
14469      lt_prog_compiler_wl='-Wl,'
14470      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14471      # not for PA HP-UX.
14472      case $host_cpu in
14473      hppa*64*|ia64*)
14474	# +Z the default
14475	;;
14476      *)
14477	lt_prog_compiler_pic='+Z'
14478	;;
14479      esac
14480      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14481      lt_prog_compiler_static='${wl}-a ${wl}archive'
14482      ;;
14483
14484    irix5* | irix6* | nonstopux*)
14485      lt_prog_compiler_wl='-Wl,'
14486      # PIC (with -KPIC) is the default.
14487      lt_prog_compiler_static='-non_shared'
14488      ;;
14489
14490    newsos6)
14491      lt_prog_compiler_pic='-KPIC'
14492      lt_prog_compiler_static='-Bstatic'
14493      ;;
14494
14495    linux* | k*bsd*-gnu)
14496      case $cc_basename in
14497      icc* | ecc*)
14498	lt_prog_compiler_wl='-Wl,'
14499	lt_prog_compiler_pic='-KPIC'
14500	lt_prog_compiler_static='-static'
14501        ;;
14502      pgcc* | pgf77* | pgf90* | pgf95*)
14503        # Portland Group compilers (*not* the Pentium gcc compiler,
14504	# which looks to be a dead project)
14505	lt_prog_compiler_wl='-Wl,'
14506	lt_prog_compiler_pic='-fpic'
14507	lt_prog_compiler_static='-Bstatic'
14508        ;;
14509      ccc*)
14510        lt_prog_compiler_wl='-Wl,'
14511        # All Alpha code is PIC.
14512        lt_prog_compiler_static='-non_shared'
14513        ;;
14514      *)
14515        case `$CC -V 2>&1 | sed 5q` in
14516	*Sun\ C*)
14517	  # Sun C 5.9
14518	  lt_prog_compiler_pic='-KPIC'
14519	  lt_prog_compiler_static='-Bstatic'
14520	  lt_prog_compiler_wl='-Wl,'
14521	  ;;
14522	*Sun\ F*)
14523	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14524	  lt_prog_compiler_pic='-KPIC'
14525	  lt_prog_compiler_static='-Bstatic'
14526	  lt_prog_compiler_wl=''
14527	  ;;
14528	esac
14529	;;
14530      esac
14531      ;;
14532
14533    osf3* | osf4* | osf5*)
14534      lt_prog_compiler_wl='-Wl,'
14535      # All OSF/1 code is PIC.
14536      lt_prog_compiler_static='-non_shared'
14537      ;;
14538
14539    rdos*)
14540      lt_prog_compiler_static='-non_shared'
14541      ;;
14542
14543    solaris*)
14544      lt_prog_compiler_pic='-KPIC'
14545      lt_prog_compiler_static='-Bstatic'
14546      case $cc_basename in
14547      f77* | f90* | f95*)
14548	lt_prog_compiler_wl='-Qoption ld ';;
14549      *)
14550	lt_prog_compiler_wl='-Wl,';;
14551      esac
14552      ;;
14553
14554    sunos4*)
14555      lt_prog_compiler_wl='-Qoption ld '
14556      lt_prog_compiler_pic='-PIC'
14557      lt_prog_compiler_static='-Bstatic'
14558      ;;
14559
14560    sysv4 | sysv4.2uw2* | sysv4.3*)
14561      lt_prog_compiler_wl='-Wl,'
14562      lt_prog_compiler_pic='-KPIC'
14563      lt_prog_compiler_static='-Bstatic'
14564      ;;
14565
14566    sysv4*MP*)
14567      if test -d /usr/nec ;then
14568	lt_prog_compiler_pic='-Kconform_pic'
14569	lt_prog_compiler_static='-Bstatic'
14570      fi
14571      ;;
14572
14573    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14574      lt_prog_compiler_wl='-Wl,'
14575      lt_prog_compiler_pic='-KPIC'
14576      lt_prog_compiler_static='-Bstatic'
14577      ;;
14578
14579    unicos*)
14580      lt_prog_compiler_wl='-Wl,'
14581      lt_prog_compiler_can_build_shared=no
14582      ;;
14583
14584    uts4*)
14585      lt_prog_compiler_pic='-pic'
14586      lt_prog_compiler_static='-Bstatic'
14587      ;;
14588
14589    *)
14590      lt_prog_compiler_can_build_shared=no
14591      ;;
14592    esac
14593  fi
14594
14595{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14596$as_echo "$lt_prog_compiler_pic" >&6; }
14597
14598#
14599# Check to make sure the PIC flag actually works.
14600#
14601if test -n "$lt_prog_compiler_pic"; then
14602
14603{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14604$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14605if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
14606  $as_echo_n "(cached) " >&6
14607else
14608  lt_cv_prog_compiler_pic_works=no
14609  ac_outfile=conftest.$ac_objext
14610   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14611   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14612   # Insert the option either (1) after the last *FLAGS variable, or
14613   # (2) before a word containing "conftest.", or (3) at the end.
14614   # Note that $ac_compile itself does not contain backslashes and begins
14615   # with a dollar sign (not a hyphen), so the echo should work correctly.
14616   # The option is referenced via a variable to avoid confusing sed.
14617   lt_compile=`echo "$ac_compile" | $SED \
14618   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14619   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14620   -e 's:$: $lt_compiler_flag:'`
14621   (eval echo "\"\$as_me:14621: $lt_compile\"" >&5)
14622   (eval "$lt_compile" 2>conftest.err)
14623   ac_status=$?
14624   cat conftest.err >&5
14625   echo "$as_me:14625: \$? = $ac_status" >&5
14626   if (exit $ac_status) && test -s "$ac_outfile"; then
14627     # The compiler can only warn and ignore the option if not recognized
14628     # So say no if there are warnings other than the usual output.
14629     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14630     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14631     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14632       lt_cv_prog_compiler_pic_works=yes
14633     fi
14634   fi
14635   $rm conftest*
14636
14637fi
14638{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
14639$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14640
14641if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14642    case $lt_prog_compiler_pic in
14643     "" | " "*) ;;
14644     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14645     esac
14646else
14647    lt_prog_compiler_pic=
14648     lt_prog_compiler_can_build_shared=no
14649fi
14650
14651fi
14652case $host_os in
14653  # For platforms which do not support PIC, -DPIC is meaningless:
14654  *djgpp*)
14655    lt_prog_compiler_pic=
14656    ;;
14657  *)
14658    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14659    ;;
14660esac
14661
14662#
14663# Check to make sure the static flag actually works.
14664#
14665wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14666{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14667$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14668if test "${lt_cv_prog_compiler_static_works+set}" = set; then
14669  $as_echo_n "(cached) " >&6
14670else
14671  lt_cv_prog_compiler_static_works=no
14672   save_LDFLAGS="$LDFLAGS"
14673   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14674   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14675   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14676     # The linker can only warn and ignore the option if not recognized
14677     # So say no if there are warnings
14678     if test -s conftest.err; then
14679       # Append any errors to the config.log.
14680       cat conftest.err 1>&5
14681       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14682       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14683       if diff conftest.exp conftest.er2 >/dev/null; then
14684         lt_cv_prog_compiler_static_works=yes
14685       fi
14686     else
14687       lt_cv_prog_compiler_static_works=yes
14688     fi
14689   fi
14690   $rm -r conftest*
14691   LDFLAGS="$save_LDFLAGS"
14692
14693fi
14694{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
14695$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14696
14697if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14698    :
14699else
14700    lt_prog_compiler_static=
14701fi
14702
14703
14704{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14705$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14706if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14707  $as_echo_n "(cached) " >&6
14708else
14709  lt_cv_prog_compiler_c_o=no
14710   $rm -r conftest 2>/dev/null
14711   mkdir conftest
14712   cd conftest
14713   mkdir out
14714   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14715
14716   lt_compiler_flag="-o out/conftest2.$ac_objext"
14717   # Insert the option either (1) after the last *FLAGS variable, or
14718   # (2) before a word containing "conftest.", or (3) at the end.
14719   # Note that $ac_compile itself does not contain backslashes and begins
14720   # with a dollar sign (not a hyphen), so the echo should work correctly.
14721   lt_compile=`echo "$ac_compile" | $SED \
14722   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14723   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14724   -e 's:$: $lt_compiler_flag:'`
14725   (eval echo "\"\$as_me:14725: $lt_compile\"" >&5)
14726   (eval "$lt_compile" 2>out/conftest.err)
14727   ac_status=$?
14728   cat out/conftest.err >&5
14729   echo "$as_me:14729: \$? = $ac_status" >&5
14730   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14731   then
14732     # The compiler can only warn and ignore the option if not recognized
14733     # So say no if there are warnings
14734     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14735     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14736     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14737       lt_cv_prog_compiler_c_o=yes
14738     fi
14739   fi
14740   chmod u+w . 2>&5
14741   $rm conftest*
14742   # SGI C++ compiler will create directory out/ii_files/ for
14743   # template instantiation
14744   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14745   $rm out/* && rmdir out
14746   cd ..
14747   rmdir conftest
14748   $rm conftest*
14749
14750fi
14751{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14752$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14753
14754
14755hard_links="nottested"
14756if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14757  # do not overwrite the value of need_locks provided by the user
14758  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14759$as_echo_n "checking if we can lock with hard links... " >&6; }
14760  hard_links=yes
14761  $rm conftest*
14762  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14763  touch conftest.a
14764  ln conftest.a conftest.b 2>&5 || hard_links=no
14765  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14766  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14767$as_echo "$hard_links" >&6; }
14768  if test "$hard_links" = no; then
14769    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14770$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14771    need_locks=warn
14772  fi
14773else
14774  need_locks=no
14775fi
14776
14777{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14778$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14779
14780  runpath_var=
14781  allow_undefined_flag=
14782  enable_shared_with_static_runtimes=no
14783  archive_cmds=
14784  archive_expsym_cmds=
14785  old_archive_From_new_cmds=
14786  old_archive_from_expsyms_cmds=
14787  export_dynamic_flag_spec=
14788  whole_archive_flag_spec=
14789  thread_safe_flag_spec=
14790  hardcode_libdir_flag_spec=
14791  hardcode_libdir_flag_spec_ld=
14792  hardcode_libdir_separator=
14793  hardcode_direct=no
14794  hardcode_minus_L=no
14795  hardcode_shlibpath_var=unsupported
14796  link_all_deplibs=unknown
14797  hardcode_automatic=no
14798  module_cmds=
14799  module_expsym_cmds=
14800  always_export_symbols=no
14801  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14802  # include_expsyms should be a list of space-separated symbols to be *always*
14803  # included in the symbol list
14804  include_expsyms=
14805  # exclude_expsyms can be an extended regexp of symbols to exclude
14806  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14807  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14808  # as well as any symbol that contains `d'.
14809  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14810  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14811  # platforms (ab)use it in PIC code, but their linkers get confused if
14812  # the symbol is explicitly referenced.  Since portable code cannot
14813  # rely on this symbol name, it's probably fine to never include it in
14814  # preloaded symbol tables.
14815  # Exclude shared library initialization/finalization symbols.
14816  extract_expsyms_cmds=
14817  # Just being paranoid about ensuring that cc_basename is set.
14818  for cc_temp in $compiler""; do
14819  case $cc_temp in
14820    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14821    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14822    \-*) ;;
14823    *) break;;
14824  esac
14825done
14826cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14827
14828  case $host_os in
14829  cygwin* | mingw* | pw32*)
14830    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14831    # When not using gcc, we currently assume that we are using
14832    # Microsoft Visual C++.
14833    if test "$GCC" != yes; then
14834      with_gnu_ld=no
14835    fi
14836    ;;
14837  interix*)
14838    # we just hope/assume this is gcc and not c89 (= MSVC++)
14839    with_gnu_ld=yes
14840    ;;
14841  openbsd*)
14842    with_gnu_ld=no
14843    ;;
14844  esac
14845
14846  ld_shlibs=yes
14847  if test "$with_gnu_ld" = yes; then
14848    # If archive_cmds runs LD, not CC, wlarc should be empty
14849    wlarc='${wl}'
14850
14851    # Set some defaults for GNU ld with shared library support. These
14852    # are reset later if shared libraries are not supported. Putting them
14853    # here allows them to be overridden if necessary.
14854    runpath_var=LD_RUN_PATH
14855    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14856    export_dynamic_flag_spec='${wl}--export-dynamic'
14857    # ancient GNU ld didn't support --whole-archive et. al.
14858    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14859	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14860      else
14861  	whole_archive_flag_spec=
14862    fi
14863    supports_anon_versioning=no
14864    case `$LD -v 2>/dev/null` in
14865      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14866      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14867      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14868      *\ 2.11.*) ;; # other 2.11 versions
14869      *) supports_anon_versioning=yes ;;
14870    esac
14871
14872    # See if GNU ld supports shared libraries.
14873    case $host_os in
14874    aix[3-9]*)
14875      # On AIX/PPC, the GNU linker is very broken
14876      if test "$host_cpu" != ia64; then
14877	ld_shlibs=no
14878	cat <<EOF 1>&2
14879
14880*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14881*** to be unable to reliably create shared libraries on AIX.
14882*** Therefore, libtool is disabling shared libraries support.  If you
14883*** really care for shared libraries, you may want to modify your PATH
14884*** so that a non-GNU linker is found, and then restart.
14885
14886EOF
14887      fi
14888      ;;
14889
14890    amigaos*)
14891      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)'
14892      hardcode_libdir_flag_spec='-L$libdir'
14893      hardcode_minus_L=yes
14894
14895      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14896      # that the semantics of dynamic libraries on AmigaOS, at least up
14897      # to version 4, is to share data among multiple programs linked
14898      # with the same dynamic library.  Since this doesn't match the
14899      # behavior of shared libraries on other platforms, we can't use
14900      # them.
14901      ld_shlibs=no
14902      ;;
14903
14904    beos*)
14905      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14906	allow_undefined_flag=unsupported
14907	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14908	# support --undefined.  This deserves some investigation.  FIXME
14909	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14910      else
14911	ld_shlibs=no
14912      fi
14913      ;;
14914
14915    cygwin* | mingw* | pw32*)
14916      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14917      # as there is no search path for DLLs.
14918      hardcode_libdir_flag_spec='-L$libdir'
14919      allow_undefined_flag=unsupported
14920      always_export_symbols=no
14921      enable_shared_with_static_runtimes=yes
14922      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14923
14924      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14925        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14926	# If the export-symbols file already is a .def file (1st line
14927	# is EXPORTS), use it as is; otherwise, prepend...
14928	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14929	  cp $export_symbols $output_objdir/$soname.def;
14930	else
14931	  echo EXPORTS > $output_objdir/$soname.def;
14932	  cat $export_symbols >> $output_objdir/$soname.def;
14933	fi~
14934	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14935      else
14936	ld_shlibs=no
14937      fi
14938      ;;
14939
14940    interix[3-9]*)
14941      hardcode_direct=no
14942      hardcode_shlibpath_var=no
14943      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14944      export_dynamic_flag_spec='${wl}-E'
14945      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14946      # Instead, shared libraries are loaded at an image base (0x10000000 by
14947      # default) and relocated if they conflict, which is a slow very memory
14948      # consuming and fragmenting process.  To avoid this, we pick a random,
14949      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14950      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14951      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14952      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'
14953      ;;
14954
14955    gnu* | linux* | k*bsd*-gnu)
14956      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14957	tmp_addflag=
14958	case $cc_basename,$host_cpu in
14959	pgcc*)				# Portland Group C compiler
14960	  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'
14961	  tmp_addflag=' $pic_flag'
14962	  ;;
14963	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14964	  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'
14965	  tmp_addflag=' $pic_flag -Mnomain' ;;
14966	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14967	  tmp_addflag=' -i_dynamic' ;;
14968	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14969	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14970	ifc* | ifort*)			# Intel Fortran compiler
14971	  tmp_addflag=' -nofor_main' ;;
14972	esac
14973	case `$CC -V 2>&1 | sed 5q` in
14974	*Sun\ C*)			# Sun C 5.9
14975	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14976	  tmp_sharedflag='-G' ;;
14977	*Sun\ F*)			# Sun Fortran 8.3
14978	  tmp_sharedflag='-G' ;;
14979	*)
14980	  tmp_sharedflag='-shared' ;;
14981	esac
14982	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14983
14984	if test $supports_anon_versioning = yes; then
14985	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14986  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14987  $echo "local: *; };" >> $output_objdir/$libname.ver~
14988	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14989	fi
14990      else
14991	ld_shlibs=no
14992      fi
14993      ;;
14994
14995    netbsd*)
14996      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14997	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14998	wlarc=
14999      else
15000	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15001	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15002      fi
15003      ;;
15004
15005    solaris*)
15006      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15007	ld_shlibs=no
15008	cat <<EOF 1>&2
15009
15010*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15011*** create shared libraries on Solaris systems.  Therefore, libtool
15012*** is disabling shared libraries support.  We urge you to upgrade GNU
15013*** binutils to release 2.9.1 or newer.  Another option is to modify
15014*** your PATH or compiler configuration so that the native linker is
15015*** used, and then restart.
15016
15017EOF
15018      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15019	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15020	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15021      else
15022	ld_shlibs=no
15023      fi
15024      ;;
15025
15026    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15027      case `$LD -v 2>&1` in
15028        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15029	ld_shlibs=no
15030	cat <<_LT_EOF 1>&2
15031
15032*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15033*** reliably create shared libraries on SCO systems.  Therefore, libtool
15034*** is disabling shared libraries support.  We urge you to upgrade GNU
15035*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15036*** your PATH or compiler configuration so that the native linker is
15037*** used, and then restart.
15038
15039_LT_EOF
15040	;;
15041	*)
15042	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15043	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15044	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15045	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15046	  else
15047	    ld_shlibs=no
15048	  fi
15049	;;
15050      esac
15051      ;;
15052
15053    sunos4*)
15054      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15055      wlarc=
15056      hardcode_direct=yes
15057      hardcode_shlibpath_var=no
15058      ;;
15059
15060    *)
15061      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15062	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15063	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15064      else
15065	ld_shlibs=no
15066      fi
15067      ;;
15068    esac
15069
15070    if test "$ld_shlibs" = no; then
15071      runpath_var=
15072      hardcode_libdir_flag_spec=
15073      export_dynamic_flag_spec=
15074      whole_archive_flag_spec=
15075    fi
15076  else
15077    # PORTME fill in a description of your system's linker (not GNU ld)
15078    case $host_os in
15079    aix3*)
15080      allow_undefined_flag=unsupported
15081      always_export_symbols=yes
15082      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'
15083      # Note: this linker hardcodes the directories in LIBPATH if there
15084      # are no directories specified by -L.
15085      hardcode_minus_L=yes
15086      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15087	# Neither direct hardcoding nor static linking is supported with a
15088	# broken collect2.
15089	hardcode_direct=unsupported
15090      fi
15091      ;;
15092
15093    aix[4-9]*)
15094      if test "$host_cpu" = ia64; then
15095	# On IA64, the linker does run time linking by default, so we don't
15096	# have to do anything special.
15097	aix_use_runtimelinking=no
15098	exp_sym_flag='-Bexport'
15099	no_entry_flag=""
15100      else
15101	# If we're using GNU nm, then we don't want the "-C" option.
15102	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15103	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15104	  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'
15105	else
15106	  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'
15107	fi
15108	aix_use_runtimelinking=no
15109
15110	# Test if we are trying to use run time linking or normal
15111	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15112	# need to do runtime linking.
15113	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15114	  for ld_flag in $LDFLAGS; do
15115  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15116  	    aix_use_runtimelinking=yes
15117  	    break
15118  	  fi
15119	  done
15120	  ;;
15121	esac
15122
15123	exp_sym_flag='-bexport'
15124	no_entry_flag='-bnoentry'
15125      fi
15126
15127      # When large executables or shared objects are built, AIX ld can
15128      # have problems creating the table of contents.  If linking a library
15129      # or program results in "error TOC overflow" add -mminimal-toc to
15130      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15131      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15132
15133      archive_cmds=''
15134      hardcode_direct=yes
15135      hardcode_libdir_separator=':'
15136      link_all_deplibs=yes
15137
15138      if test "$GCC" = yes; then
15139	case $host_os in aix4.[012]|aix4.[012].*)
15140	# We only want to do this on AIX 4.2 and lower, the check
15141	# below for broken collect2 doesn't work under 4.3+
15142	  collect2name=`${CC} -print-prog-name=collect2`
15143	  if test -f "$collect2name" && \
15144  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15145	  then
15146  	  # We have reworked collect2
15147  	  :
15148	  else
15149  	  # We have old collect2
15150  	  hardcode_direct=unsupported
15151  	  # It fails to find uninstalled libraries when the uninstalled
15152  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15153  	  # to unsupported forces relinking
15154  	  hardcode_minus_L=yes
15155  	  hardcode_libdir_flag_spec='-L$libdir'
15156  	  hardcode_libdir_separator=
15157	  fi
15158	  ;;
15159	esac
15160	shared_flag='-shared'
15161	if test "$aix_use_runtimelinking" = yes; then
15162	  shared_flag="$shared_flag "'${wl}-G'
15163	fi
15164      else
15165	# not using gcc
15166	if test "$host_cpu" = ia64; then
15167  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15168  	# chokes on -Wl,-G. The following line is correct:
15169	  shared_flag='-G'
15170	else
15171	  if test "$aix_use_runtimelinking" = yes; then
15172	    shared_flag='${wl}-G'
15173	  else
15174	    shared_flag='${wl}-bM:SRE'
15175	  fi
15176	fi
15177      fi
15178
15179      # It seems that -bexpall does not export symbols beginning with
15180      # underscore (_), so it is better to generate a list of symbols to export.
15181      always_export_symbols=yes
15182      if test "$aix_use_runtimelinking" = yes; then
15183	# Warning - without using the other runtime loading flags (-brtl),
15184	# -berok will link without error, but may produce a broken library.
15185	allow_undefined_flag='-berok'
15186       # Determine the default libpath from the value encoded in an empty executable.
15187       cat >conftest.$ac_ext <<_ACEOF
15188/* confdefs.h.  */
15189_ACEOF
15190cat confdefs.h >>conftest.$ac_ext
15191cat >>conftest.$ac_ext <<_ACEOF
15192/* end confdefs.h.  */
15193
15194int
15195main ()
15196{
15197
15198  ;
15199  return 0;
15200}
15201_ACEOF
15202rm -f conftest.$ac_objext conftest$ac_exeext
15203if { (ac_try="$ac_link"
15204case "(($ac_try" in
15205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206  *) ac_try_echo=$ac_try;;
15207esac
15208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15209$as_echo "$ac_try_echo") >&5
15210  (eval "$ac_link") 2>conftest.er1
15211  ac_status=$?
15212  grep -v '^ *+' conftest.er1 >conftest.err
15213  rm -f conftest.er1
15214  cat conftest.err >&5
15215  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216  (exit $ac_status); } && {
15217	 test -z "$ac_c_werror_flag" ||
15218	 test ! -s conftest.err
15219       } && test -s conftest$ac_exeext && {
15220	 test "$cross_compiling" = yes ||
15221	 $as_test_x conftest$ac_exeext
15222       }; then
15223
15224lt_aix_libpath_sed='
15225    /Import File Strings/,/^$/ {
15226	/^0/ {
15227	    s/^0  *\(.*\)$/\1/
15228	    p
15229	}
15230    }'
15231aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15232# Check for a 64-bit object if we didn't find anything.
15233if test -z "$aix_libpath"; then
15234  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15235fi
15236else
15237  $as_echo "$as_me: failed program was:" >&5
15238sed 's/^/| /' conftest.$ac_ext >&5
15239
15240
15241fi
15242
15243rm -rf conftest.dSYM
15244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15245      conftest$ac_exeext conftest.$ac_ext
15246if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15247
15248       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15249	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"
15250       else
15251	if test "$host_cpu" = ia64; then
15252	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15253	  allow_undefined_flag="-z nodefs"
15254	  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"
15255	else
15256	 # Determine the default libpath from the value encoded in an empty executable.
15257	 cat >conftest.$ac_ext <<_ACEOF
15258/* confdefs.h.  */
15259_ACEOF
15260cat confdefs.h >>conftest.$ac_ext
15261cat >>conftest.$ac_ext <<_ACEOF
15262/* end confdefs.h.  */
15263
15264int
15265main ()
15266{
15267
15268  ;
15269  return 0;
15270}
15271_ACEOF
15272rm -f conftest.$ac_objext conftest$ac_exeext
15273if { (ac_try="$ac_link"
15274case "(($ac_try" in
15275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276  *) ac_try_echo=$ac_try;;
15277esac
15278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15279$as_echo "$ac_try_echo") >&5
15280  (eval "$ac_link") 2>conftest.er1
15281  ac_status=$?
15282  grep -v '^ *+' conftest.er1 >conftest.err
15283  rm -f conftest.er1
15284  cat conftest.err >&5
15285  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286  (exit $ac_status); } && {
15287	 test -z "$ac_c_werror_flag" ||
15288	 test ! -s conftest.err
15289       } && test -s conftest$ac_exeext && {
15290	 test "$cross_compiling" = yes ||
15291	 $as_test_x conftest$ac_exeext
15292       }; then
15293
15294lt_aix_libpath_sed='
15295    /Import File Strings/,/^$/ {
15296	/^0/ {
15297	    s/^0  *\(.*\)$/\1/
15298	    p
15299	}
15300    }'
15301aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15302# Check for a 64-bit object if we didn't find anything.
15303if test -z "$aix_libpath"; then
15304  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15305fi
15306else
15307  $as_echo "$as_me: failed program was:" >&5
15308sed 's/^/| /' conftest.$ac_ext >&5
15309
15310
15311fi
15312
15313rm -rf conftest.dSYM
15314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15315      conftest$ac_exeext conftest.$ac_ext
15316if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15317
15318	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15319	  # Warning - without using the other run time loading flags,
15320	  # -berok will link without error, but may produce a broken library.
15321	  no_undefined_flag=' ${wl}-bernotok'
15322	  allow_undefined_flag=' ${wl}-berok'
15323	  # Exported symbols can be pulled into shared objects from archives
15324	  whole_archive_flag_spec='$convenience'
15325	  archive_cmds_need_lc=yes
15326	  # This is similar to how AIX traditionally builds its shared libraries.
15327	  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'
15328	fi
15329      fi
15330      ;;
15331
15332    amigaos*)
15333      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)'
15334      hardcode_libdir_flag_spec='-L$libdir'
15335      hardcode_minus_L=yes
15336      # see comment about different semantics on the GNU ld section
15337      ld_shlibs=no
15338      ;;
15339
15340    bsdi[45]*)
15341      export_dynamic_flag_spec=-rdynamic
15342      ;;
15343
15344    cygwin* | mingw* | pw32*)
15345      # When not using gcc, we currently assume that we are using
15346      # Microsoft Visual C++.
15347      # hardcode_libdir_flag_spec is actually meaningless, as there is
15348      # no search path for DLLs.
15349      hardcode_libdir_flag_spec=' '
15350      allow_undefined_flag=unsupported
15351      # Tell ltmain to make .lib files, not .a files.
15352      libext=lib
15353      # Tell ltmain to make .dll files, not .so files.
15354      shrext_cmds=".dll"
15355      # FIXME: Setting linknames here is a bad hack.
15356      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15357      # The linker will automatically build a .lib file if we build a DLL.
15358      old_archive_From_new_cmds='true'
15359      # FIXME: Should let the user specify the lib program.
15360      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15361      fix_srcfile_path='`cygpath -w "$srcfile"`'
15362      enable_shared_with_static_runtimes=yes
15363      ;;
15364
15365    darwin* | rhapsody*)
15366      case $host_os in
15367        rhapsody* | darwin1.[012])
15368         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15369         ;;
15370       *) # Darwin 1.3 on
15371         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15372           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15373         else
15374           case ${MACOSX_DEPLOYMENT_TARGET} in
15375             10.[012])
15376               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15377               ;;
15378             10.*)
15379               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15380               ;;
15381           esac
15382         fi
15383         ;;
15384      esac
15385      archive_cmds_need_lc=no
15386      hardcode_direct=no
15387      hardcode_automatic=yes
15388      hardcode_shlibpath_var=unsupported
15389      whole_archive_flag_spec=''
15390      link_all_deplibs=yes
15391    if test "$GCC" = yes ; then
15392    	output_verbose_link_cmd='echo'
15393        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15394        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15395        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15396        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15397    else
15398      case $cc_basename in
15399        xlc*)
15400         output_verbose_link_cmd='echo'
15401         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15402         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15403          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15404         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15405          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}'
15406          ;;
15407       *)
15408         ld_shlibs=no
15409          ;;
15410      esac
15411    fi
15412      ;;
15413
15414    dgux*)
15415      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15416      hardcode_libdir_flag_spec='-L$libdir'
15417      hardcode_shlibpath_var=no
15418      ;;
15419
15420    freebsd1*)
15421      ld_shlibs=no
15422      ;;
15423
15424    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15425    # support.  Future versions do this automatically, but an explicit c++rt0.o
15426    # does not break anything, and helps significantly (at the cost of a little
15427    # extra space).
15428    freebsd2.2*)
15429      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15430      hardcode_libdir_flag_spec='-R$libdir'
15431      hardcode_direct=yes
15432      hardcode_shlibpath_var=no
15433      ;;
15434
15435    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15436    freebsd2*)
15437      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15438      hardcode_direct=yes
15439      hardcode_minus_L=yes
15440      hardcode_shlibpath_var=no
15441      ;;
15442
15443    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15444    freebsd* | dragonfly*)
15445      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15446      hardcode_libdir_flag_spec='-R$libdir'
15447      hardcode_direct=yes
15448      hardcode_shlibpath_var=no
15449      ;;
15450
15451    hpux9*)
15452      if test "$GCC" = yes; then
15453	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'
15454      else
15455	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'
15456      fi
15457      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15458      hardcode_libdir_separator=:
15459      hardcode_direct=yes
15460
15461      # hardcode_minus_L: Not really in the search PATH,
15462      # but as the default location of the library.
15463      hardcode_minus_L=yes
15464      export_dynamic_flag_spec='${wl}-E'
15465      ;;
15466
15467    hpux10*)
15468      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15469	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15470      else
15471	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15472      fi
15473      if test "$with_gnu_ld" = no; then
15474	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15475	hardcode_libdir_separator=:
15476
15477	hardcode_direct=yes
15478	export_dynamic_flag_spec='${wl}-E'
15479
15480	# hardcode_minus_L: Not really in the search PATH,
15481	# but as the default location of the library.
15482	hardcode_minus_L=yes
15483      fi
15484      ;;
15485
15486    hpux11*)
15487      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15488	case $host_cpu in
15489	hppa*64*)
15490	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15491	  ;;
15492	ia64*)
15493	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15494	  ;;
15495	*)
15496	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15497	  ;;
15498	esac
15499      else
15500	case $host_cpu in
15501	hppa*64*)
15502	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15503	  ;;
15504	ia64*)
15505	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15506	  ;;
15507	*)
15508	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15509	  ;;
15510	esac
15511      fi
15512      if test "$with_gnu_ld" = no; then
15513	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15514	hardcode_libdir_separator=:
15515
15516	case $host_cpu in
15517	hppa*64*|ia64*)
15518	  hardcode_libdir_flag_spec_ld='+b $libdir'
15519	  hardcode_direct=no
15520	  hardcode_shlibpath_var=no
15521	  ;;
15522	*)
15523	  hardcode_direct=yes
15524	  export_dynamic_flag_spec='${wl}-E'
15525
15526	  # hardcode_minus_L: Not really in the search PATH,
15527	  # but as the default location of the library.
15528	  hardcode_minus_L=yes
15529	  ;;
15530	esac
15531      fi
15532      ;;
15533
15534    irix5* | irix6* | nonstopux*)
15535      if test "$GCC" = yes; then
15536	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'
15537      else
15538	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'
15539	hardcode_libdir_flag_spec_ld='-rpath $libdir'
15540      fi
15541      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15542      hardcode_libdir_separator=:
15543      link_all_deplibs=yes
15544      ;;
15545
15546    netbsd*)
15547      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15548	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15549      else
15550	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15551      fi
15552      hardcode_libdir_flag_spec='-R$libdir'
15553      hardcode_direct=yes
15554      hardcode_shlibpath_var=no
15555      ;;
15556
15557    newsos6)
15558      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15559      hardcode_direct=yes
15560      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15561      hardcode_libdir_separator=:
15562      hardcode_shlibpath_var=no
15563      ;;
15564
15565    openbsd*)
15566      if test -f /usr/libexec/ld.so; then
15567	hardcode_direct=yes
15568	hardcode_shlibpath_var=no
15569	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15570	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15571	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15572	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15573	  export_dynamic_flag_spec='${wl}-E'
15574	else
15575	  case $host_os in
15576	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15577	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15578	     hardcode_libdir_flag_spec='-R$libdir'
15579	     ;;
15580	   *)
15581	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15582	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15583	     ;;
15584	  esac
15585        fi
15586      else
15587	ld_shlibs=no
15588      fi
15589      ;;
15590
15591    os2*)
15592      hardcode_libdir_flag_spec='-L$libdir'
15593      hardcode_minus_L=yes
15594      allow_undefined_flag=unsupported
15595      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'
15596      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15597      ;;
15598
15599    osf3*)
15600      if test "$GCC" = yes; then
15601	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15602	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'
15603      else
15604	allow_undefined_flag=' -expect_unresolved \*'
15605	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'
15606      fi
15607      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15608      hardcode_libdir_separator=:
15609      ;;
15610
15611    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15612      if test "$GCC" = yes; then
15613	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15614	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'
15615	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15616      else
15617	allow_undefined_flag=' -expect_unresolved \*'
15618	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'
15619	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15620	$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'
15621
15622	# Both c and cxx compiler support -rpath directly
15623	hardcode_libdir_flag_spec='-rpath $libdir'
15624      fi
15625      hardcode_libdir_separator=:
15626      ;;
15627
15628    solaris*)
15629      no_undefined_flag=' -z text'
15630      if test "$GCC" = yes; then
15631	wlarc='${wl}'
15632	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15633	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15634	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15635      else
15636	wlarc=''
15637	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15638	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15639  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15640      fi
15641      hardcode_libdir_flag_spec='-R$libdir'
15642      hardcode_shlibpath_var=no
15643      case $host_os in
15644      solaris2.[0-5] | solaris2.[0-5].*) ;;
15645      *)
15646	# The compiler driver will combine and reorder linker options,
15647	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15648	# but is careful enough not to reorder.
15649 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15650	if test "$GCC" = yes; then
15651	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15652	else
15653	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15654	fi
15655	;;
15656      esac
15657      link_all_deplibs=yes
15658      ;;
15659
15660    sunos4*)
15661      if test "x$host_vendor" = xsequent; then
15662	# Use $CC to link under sequent, because it throws in some extra .o
15663	# files that make .init and .fini sections work.
15664	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15665      else
15666	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15667      fi
15668      hardcode_libdir_flag_spec='-L$libdir'
15669      hardcode_direct=yes
15670      hardcode_minus_L=yes
15671      hardcode_shlibpath_var=no
15672      ;;
15673
15674    sysv4)
15675      case $host_vendor in
15676	sni)
15677	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15678	  hardcode_direct=yes # is this really true???
15679	;;
15680	siemens)
15681	  ## LD is ld it makes a PLAMLIB
15682	  ## CC just makes a GrossModule.
15683	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15684	  reload_cmds='$CC -r -o $output$reload_objs'
15685	  hardcode_direct=no
15686        ;;
15687	motorola)
15688	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15689	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15690	;;
15691      esac
15692      runpath_var='LD_RUN_PATH'
15693      hardcode_shlibpath_var=no
15694      ;;
15695
15696    sysv4.3*)
15697      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698      hardcode_shlibpath_var=no
15699      export_dynamic_flag_spec='-Bexport'
15700      ;;
15701
15702    sysv4*MP*)
15703      if test -d /usr/nec; then
15704	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705	hardcode_shlibpath_var=no
15706	runpath_var=LD_RUN_PATH
15707	hardcode_runpath_var=yes
15708	ld_shlibs=yes
15709      fi
15710      ;;
15711
15712    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15713      no_undefined_flag='${wl}-z,text'
15714      archive_cmds_need_lc=no
15715      hardcode_shlibpath_var=no
15716      runpath_var='LD_RUN_PATH'
15717
15718      if test "$GCC" = yes; then
15719	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15720	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721      else
15722	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724      fi
15725      ;;
15726
15727    sysv5* | sco3.2v5* | sco5v6*)
15728      # Note: We can NOT use -z defs as we might desire, because we do not
15729      # link with -lc, and that would cause any symbols used from libc to
15730      # always be unresolved, which means just about no library would
15731      # ever link correctly.  If we're not using GNU ld we use -z text
15732      # though, which does catch some bad symbols but isn't as heavy-handed
15733      # as -z defs.
15734      no_undefined_flag='${wl}-z,text'
15735      allow_undefined_flag='${wl}-z,nodefs'
15736      archive_cmds_need_lc=no
15737      hardcode_shlibpath_var=no
15738      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15739      hardcode_libdir_separator=':'
15740      link_all_deplibs=yes
15741      export_dynamic_flag_spec='${wl}-Bexport'
15742      runpath_var='LD_RUN_PATH'
15743
15744      if test "$GCC" = yes; then
15745	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15746	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15747      else
15748	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15749	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750      fi
15751      ;;
15752
15753    uts4*)
15754      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15755      hardcode_libdir_flag_spec='-L$libdir'
15756      hardcode_shlibpath_var=no
15757      ;;
15758
15759    *)
15760      ld_shlibs=no
15761      ;;
15762    esac
15763  fi
15764
15765{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15766$as_echo "$ld_shlibs" >&6; }
15767test "$ld_shlibs" = no && can_build_shared=no
15768
15769#
15770# Do we need to explicitly link libc?
15771#
15772case "x$archive_cmds_need_lc" in
15773x|xyes)
15774  # Assume -lc should be added
15775  archive_cmds_need_lc=yes
15776
15777  if test "$enable_shared" = yes && test "$GCC" = yes; then
15778    case $archive_cmds in
15779    *'~'*)
15780      # FIXME: we may have to deal with multi-command sequences.
15781      ;;
15782    '$CC '*)
15783      # Test whether the compiler implicitly links with -lc since on some
15784      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15785      # to ld, don't add -lc before -lgcc.
15786      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15787$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15788      $rm conftest*
15789      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15790
15791      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15792  (eval $ac_compile) 2>&5
15793  ac_status=$?
15794  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795  (exit $ac_status); } 2>conftest.err; then
15796        soname=conftest
15797        lib=conftest
15798        libobjs=conftest.$ac_objext
15799        deplibs=
15800        wl=$lt_prog_compiler_wl
15801	pic_flag=$lt_prog_compiler_pic
15802        compiler_flags=-v
15803        linker_flags=-v
15804        verstring=
15805        output_objdir=.
15806        libname=conftest
15807        lt_save_allow_undefined_flag=$allow_undefined_flag
15808        allow_undefined_flag=
15809        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15810  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15811  ac_status=$?
15812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813  (exit $ac_status); }
15814        then
15815	  archive_cmds_need_lc=no
15816        else
15817	  archive_cmds_need_lc=yes
15818        fi
15819        allow_undefined_flag=$lt_save_allow_undefined_flag
15820      else
15821        cat conftest.err 1>&5
15822      fi
15823      $rm conftest*
15824      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15825$as_echo "$archive_cmds_need_lc" >&6; }
15826      ;;
15827    esac
15828  fi
15829  ;;
15830esac
15831
15832{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15833$as_echo_n "checking dynamic linker characteristics... " >&6; }
15834library_names_spec=
15835libname_spec='lib$name'
15836soname_spec=
15837shrext_cmds=".so"
15838postinstall_cmds=
15839postuninstall_cmds=
15840finish_cmds=
15841finish_eval=
15842shlibpath_var=
15843shlibpath_overrides_runpath=unknown
15844version_type=none
15845dynamic_linker="$host_os ld.so"
15846sys_lib_dlsearch_path_spec="/lib /usr/lib"
15847
15848if test "$GCC" = yes; then
15849  case $host_os in
15850    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15851    *) lt_awk_arg="/^libraries:/" ;;
15852  esac
15853  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15854  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
15855    # if the path contains ";" then we assume it to be the separator
15856    # otherwise default to the standard path separator (i.e. ":") - it is
15857    # assumed that no part of a normal pathname contains ";" but that should
15858    # okay in the real world where ";" in dirpaths is itself problematic.
15859    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15860  else
15861    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15862  fi
15863  # Ok, now we have the path, separated by spaces, we can step through it
15864  # and add multilib dir if necessary.
15865  lt_tmp_lt_search_path_spec=
15866  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15867  for lt_sys_path in $lt_search_path_spec; do
15868    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15869      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15870    else
15871      test -d "$lt_sys_path" && \
15872	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15873    fi
15874  done
15875  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
15876BEGIN {RS=" "; FS="/|\n";} {
15877  lt_foo="";
15878  lt_count=0;
15879  for (lt_i = NF; lt_i > 0; lt_i--) {
15880    if ($lt_i != "" && $lt_i != ".") {
15881      if ($lt_i == "..") {
15882        lt_count++;
15883      } else {
15884        if (lt_count == 0) {
15885          lt_foo="/" $lt_i lt_foo;
15886        } else {
15887          lt_count--;
15888        }
15889      }
15890    }
15891  }
15892  if (lt_foo != "") { lt_freq[lt_foo]++; }
15893  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15894}'`
15895  sys_lib_search_path_spec=`echo $lt_search_path_spec`
15896else
15897  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15898fi
15899need_lib_prefix=unknown
15900hardcode_into_libs=no
15901
15902# when you set need_version to no, make sure it does not cause -set_version
15903# flags to be left without arguments
15904need_version=unknown
15905
15906case $host_os in
15907aix3*)
15908  version_type=linux
15909  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15910  shlibpath_var=LIBPATH
15911
15912  # AIX 3 has no versioning support, so we append a major version to the name.
15913  soname_spec='${libname}${release}${shared_ext}$major'
15914  ;;
15915
15916aix[4-9]*)
15917  version_type=linux
15918  need_lib_prefix=no
15919  need_version=no
15920  hardcode_into_libs=yes
15921  if test "$host_cpu" = ia64; then
15922    # AIX 5 supports IA64
15923    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15924    shlibpath_var=LD_LIBRARY_PATH
15925  else
15926    # With GCC up to 2.95.x, collect2 would create an import file
15927    # for dependence libraries.  The import file would start with
15928    # the line `#! .'.  This would cause the generated library to
15929    # depend on `.', always an invalid library.  This was fixed in
15930    # development snapshots of GCC prior to 3.0.
15931    case $host_os in
15932      aix4 | aix4.[01] | aix4.[01].*)
15933      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15934	   echo ' yes '
15935	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15936	:
15937      else
15938	can_build_shared=no
15939      fi
15940      ;;
15941    esac
15942    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15943    # soname into executable. Probably we can add versioning support to
15944    # collect2, so additional links can be useful in future.
15945    if test "$aix_use_runtimelinking" = yes; then
15946      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15947      # instead of lib<name>.a to let people know that these are not
15948      # typical AIX shared libraries.
15949      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950    else
15951      # We preserve .a as extension for shared libraries through AIX4.2
15952      # and later when we are not doing run time linking.
15953      library_names_spec='${libname}${release}.a $libname.a'
15954      soname_spec='${libname}${release}${shared_ext}$major'
15955    fi
15956    shlibpath_var=LIBPATH
15957  fi
15958  ;;
15959
15960amigaos*)
15961  library_names_spec='$libname.ixlibrary $libname.a'
15962  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15963  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'
15964  ;;
15965
15966beos*)
15967  library_names_spec='${libname}${shared_ext}'
15968  dynamic_linker="$host_os ld.so"
15969  shlibpath_var=LIBRARY_PATH
15970  ;;
15971
15972bsdi[45]*)
15973  version_type=linux
15974  need_version=no
15975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976  soname_spec='${libname}${release}${shared_ext}$major'
15977  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15978  shlibpath_var=LD_LIBRARY_PATH
15979  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15980  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15981  # the default ld.so.conf also contains /usr/contrib/lib and
15982  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15983  # libtool to hard-code these into programs
15984  ;;
15985
15986cygwin* | mingw* | pw32*)
15987  version_type=windows
15988  shrext_cmds=".dll"
15989  need_version=no
15990  need_lib_prefix=no
15991
15992  case $GCC,$host_os in
15993  yes,cygwin* | yes,mingw* | yes,pw32*)
15994    library_names_spec='$libname.dll.a'
15995    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15996    postinstall_cmds='base_file=`basename \${file}`~
15997      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15998      dldir=$destdir/`dirname \$dlpath`~
15999      test -d \$dldir || mkdir -p \$dldir~
16000      $install_prog $dir/$dlname \$dldir/$dlname~
16001      chmod a+x \$dldir/$dlname'
16002    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16003      dlpath=$dir/\$dldll~
16004       $rm \$dlpath'
16005    shlibpath_overrides_runpath=yes
16006
16007    case $host_os in
16008    cygwin*)
16009      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16010      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16011      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16012      ;;
16013    mingw*)
16014      # MinGW DLLs use traditional 'lib' prefix
16015      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16016      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16017      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16018        # It is most probably a Windows format PATH printed by
16019        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16020        # path with ; separators, and with drive letters. We can handle the
16021        # drive letters (cygwin fileutils understands them), so leave them,
16022        # especially as we might pass files found there to a mingw objdump,
16023        # which wouldn't understand a cygwinified path. Ahh.
16024        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16025      else
16026        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16027      fi
16028      ;;
16029    pw32*)
16030      # pw32 DLLs use 'pw' prefix rather than 'lib'
16031      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16032      ;;
16033    esac
16034    ;;
16035
16036  *)
16037    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16038    ;;
16039  esac
16040  dynamic_linker='Win32 ld.exe'
16041  # FIXME: first we should search . and the directory the executable is in
16042  shlibpath_var=PATH
16043  ;;
16044
16045darwin* | rhapsody*)
16046  dynamic_linker="$host_os dyld"
16047  version_type=darwin
16048  need_lib_prefix=no
16049  need_version=no
16050  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16051  soname_spec='${libname}${release}${major}$shared_ext'
16052  shlibpath_overrides_runpath=yes
16053  shlibpath_var=DYLD_LIBRARY_PATH
16054  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16055
16056  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16057  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16058  ;;
16059
16060dgux*)
16061  version_type=linux
16062  need_lib_prefix=no
16063  need_version=no
16064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16065  soname_spec='${libname}${release}${shared_ext}$major'
16066  shlibpath_var=LD_LIBRARY_PATH
16067  ;;
16068
16069freebsd1*)
16070  dynamic_linker=no
16071  ;;
16072
16073freebsd* | dragonfly*)
16074  # DragonFly does not have aout.  When/if they implement a new
16075  # versioning mechanism, adjust this.
16076  if test -x /usr/bin/objformat; then
16077    objformat=`/usr/bin/objformat`
16078  else
16079    case $host_os in
16080    freebsd[123]*) objformat=aout ;;
16081    *) objformat=elf ;;
16082    esac
16083  fi
16084  version_type=freebsd-$objformat
16085  case $version_type in
16086    freebsd-elf*)
16087      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16088      need_version=no
16089      need_lib_prefix=no
16090      ;;
16091    freebsd-*)
16092      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16093      need_version=yes
16094      ;;
16095  esac
16096  shlibpath_var=LD_LIBRARY_PATH
16097  case $host_os in
16098  freebsd2*)
16099    shlibpath_overrides_runpath=yes
16100    ;;
16101  freebsd3.[01]* | freebsdelf3.[01]*)
16102    shlibpath_overrides_runpath=yes
16103    hardcode_into_libs=yes
16104    ;;
16105  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16106  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16107    shlibpath_overrides_runpath=no
16108    hardcode_into_libs=yes
16109    ;;
16110  *) # from 4.6 on, and DragonFly
16111    shlibpath_overrides_runpath=yes
16112    hardcode_into_libs=yes
16113    ;;
16114  esac
16115  ;;
16116
16117gnu*)
16118  version_type=linux
16119  need_lib_prefix=no
16120  need_version=no
16121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16122  soname_spec='${libname}${release}${shared_ext}$major'
16123  shlibpath_var=LD_LIBRARY_PATH
16124  hardcode_into_libs=yes
16125  ;;
16126
16127hpux9* | hpux10* | hpux11*)
16128  # Give a soname corresponding to the major version so that dld.sl refuses to
16129  # link against other versions.
16130  version_type=sunos
16131  need_lib_prefix=no
16132  need_version=no
16133  case $host_cpu in
16134  ia64*)
16135    shrext_cmds='.so'
16136    hardcode_into_libs=yes
16137    dynamic_linker="$host_os dld.so"
16138    shlibpath_var=LD_LIBRARY_PATH
16139    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16140    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141    soname_spec='${libname}${release}${shared_ext}$major'
16142    if test "X$HPUX_IA64_MODE" = X32; then
16143      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16144    else
16145      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16146    fi
16147    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16148    ;;
16149   hppa*64*)
16150     shrext_cmds='.sl'
16151     hardcode_into_libs=yes
16152     dynamic_linker="$host_os dld.sl"
16153     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16154     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156     soname_spec='${libname}${release}${shared_ext}$major'
16157     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16158     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16159     ;;
16160   *)
16161    shrext_cmds='.sl'
16162    dynamic_linker="$host_os dld.sl"
16163    shlibpath_var=SHLIB_PATH
16164    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16165    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166    soname_spec='${libname}${release}${shared_ext}$major'
16167    ;;
16168  esac
16169  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16170  postinstall_cmds='chmod 555 $lib'
16171  ;;
16172
16173interix[3-9]*)
16174  version_type=linux
16175  need_lib_prefix=no
16176  need_version=no
16177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16178  soname_spec='${libname}${release}${shared_ext}$major'
16179  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16180  shlibpath_var=LD_LIBRARY_PATH
16181  shlibpath_overrides_runpath=no
16182  hardcode_into_libs=yes
16183  ;;
16184
16185irix5* | irix6* | nonstopux*)
16186  case $host_os in
16187    nonstopux*) version_type=nonstopux ;;
16188    *)
16189	if test "$lt_cv_prog_gnu_ld" = yes; then
16190		version_type=linux
16191	else
16192		version_type=irix
16193	fi ;;
16194  esac
16195  need_lib_prefix=no
16196  need_version=no
16197  soname_spec='${libname}${release}${shared_ext}$major'
16198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16199  case $host_os in
16200  irix5* | nonstopux*)
16201    libsuff= shlibsuff=
16202    ;;
16203  *)
16204    case $LD in # libtool.m4 will add one of these switches to LD
16205    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16206      libsuff= shlibsuff= libmagic=32-bit;;
16207    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16208      libsuff=32 shlibsuff=N32 libmagic=N32;;
16209    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16210      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16211    *) libsuff= shlibsuff= libmagic=never-match;;
16212    esac
16213    ;;
16214  esac
16215  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16216  shlibpath_overrides_runpath=no
16217  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16218  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16219  hardcode_into_libs=yes
16220  ;;
16221
16222# No shared lib support for Linux oldld, aout, or coff.
16223linux*oldld* | linux*aout* | linux*coff*)
16224  dynamic_linker=no
16225  ;;
16226
16227# This must be Linux ELF.
16228linux* | k*bsd*-gnu)
16229  version_type=linux
16230  need_lib_prefix=no
16231  need_version=no
16232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233  soname_spec='${libname}${release}${shared_ext}$major'
16234  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16235  shlibpath_var=LD_LIBRARY_PATH
16236  shlibpath_overrides_runpath=no
16237  # This implies no fast_install, which is unacceptable.
16238  # Some rework will be needed to allow for fast_install
16239  # before this can be enabled.
16240  hardcode_into_libs=yes
16241  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16242  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16243
16244  # Append ld.so.conf contents to the search path
16245  if test -f /etc/ld.so.conf; then
16246    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16247    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16248  fi
16249
16250  # We used to test for /lib/ld.so.1 and disable shared libraries on
16251  # powerpc, because MkLinux only supported shared libraries with the
16252  # GNU dynamic linker.  Since this was broken with cross compilers,
16253  # most powerpc-linux boxes support dynamic linking these days and
16254  # people can always --disable-shared, the test was removed, and we
16255  # assume the GNU/Linux dynamic linker is in use.
16256  dynamic_linker='GNU/Linux ld.so'
16257  ;;
16258
16259netbsd*)
16260  version_type=sunos
16261  need_lib_prefix=no
16262  need_version=no
16263  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16264    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16265    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16266    dynamic_linker='NetBSD (a.out) ld.so'
16267  else
16268    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16269    soname_spec='${libname}${release}${shared_ext}$major'
16270    dynamic_linker='NetBSD ld.elf_so'
16271  fi
16272  shlibpath_var=LD_LIBRARY_PATH
16273  shlibpath_overrides_runpath=yes
16274  hardcode_into_libs=yes
16275  ;;
16276
16277newsos6)
16278  version_type=linux
16279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280  shlibpath_var=LD_LIBRARY_PATH
16281  shlibpath_overrides_runpath=yes
16282  ;;
16283
16284nto-qnx*)
16285  version_type=linux
16286  need_lib_prefix=no
16287  need_version=no
16288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289  soname_spec='${libname}${release}${shared_ext}$major'
16290  shlibpath_var=LD_LIBRARY_PATH
16291  shlibpath_overrides_runpath=yes
16292  ;;
16293
16294openbsd*)
16295  version_type=sunos
16296  sys_lib_dlsearch_path_spec="/usr/lib"
16297  need_lib_prefix=no
16298  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16299  case $host_os in
16300    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16301    *)                         need_version=no  ;;
16302  esac
16303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16304  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16305  shlibpath_var=LD_LIBRARY_PATH
16306  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16307    case $host_os in
16308      openbsd2.[89] | openbsd2.[89].*)
16309	shlibpath_overrides_runpath=no
16310	;;
16311      *)
16312	shlibpath_overrides_runpath=yes
16313	;;
16314      esac
16315  else
16316    shlibpath_overrides_runpath=yes
16317  fi
16318  ;;
16319
16320os2*)
16321  libname_spec='$name'
16322  shrext_cmds=".dll"
16323  need_lib_prefix=no
16324  library_names_spec='$libname${shared_ext} $libname.a'
16325  dynamic_linker='OS/2 ld.exe'
16326  shlibpath_var=LIBPATH
16327  ;;
16328
16329osf3* | osf4* | osf5*)
16330  version_type=osf
16331  need_lib_prefix=no
16332  need_version=no
16333  soname_spec='${libname}${release}${shared_ext}$major'
16334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335  shlibpath_var=LD_LIBRARY_PATH
16336  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16337  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16338  ;;
16339
16340rdos*)
16341  dynamic_linker=no
16342  ;;
16343
16344solaris*)
16345  version_type=linux
16346  need_lib_prefix=no
16347  need_version=no
16348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349  soname_spec='${libname}${release}${shared_ext}$major'
16350  shlibpath_var=LD_LIBRARY_PATH
16351  shlibpath_overrides_runpath=yes
16352  hardcode_into_libs=yes
16353  # ldd complains unless libraries are executable
16354  postinstall_cmds='chmod +x $lib'
16355  ;;
16356
16357sunos4*)
16358  version_type=sunos
16359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16360  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16361  shlibpath_var=LD_LIBRARY_PATH
16362  shlibpath_overrides_runpath=yes
16363  if test "$with_gnu_ld" = yes; then
16364    need_lib_prefix=no
16365  fi
16366  need_version=yes
16367  ;;
16368
16369sysv4 | sysv4.3*)
16370  version_type=linux
16371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372  soname_spec='${libname}${release}${shared_ext}$major'
16373  shlibpath_var=LD_LIBRARY_PATH
16374  case $host_vendor in
16375    sni)
16376      shlibpath_overrides_runpath=no
16377      need_lib_prefix=no
16378      export_dynamic_flag_spec='${wl}-Blargedynsym'
16379      runpath_var=LD_RUN_PATH
16380      ;;
16381    siemens)
16382      need_lib_prefix=no
16383      ;;
16384    motorola)
16385      need_lib_prefix=no
16386      need_version=no
16387      shlibpath_overrides_runpath=no
16388      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16389      ;;
16390  esac
16391  ;;
16392
16393sysv4*MP*)
16394  if test -d /usr/nec ;then
16395    version_type=linux
16396    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16397    soname_spec='$libname${shared_ext}.$major'
16398    shlibpath_var=LD_LIBRARY_PATH
16399  fi
16400  ;;
16401
16402sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16403  version_type=freebsd-elf
16404  need_lib_prefix=no
16405  need_version=no
16406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16407  soname_spec='${libname}${release}${shared_ext}$major'
16408  shlibpath_var=LD_LIBRARY_PATH
16409  hardcode_into_libs=yes
16410  if test "$with_gnu_ld" = yes; then
16411    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16412    shlibpath_overrides_runpath=no
16413  else
16414    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16415    shlibpath_overrides_runpath=yes
16416    case $host_os in
16417      sco3.2v5*)
16418        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16419	;;
16420    esac
16421  fi
16422  sys_lib_dlsearch_path_spec='/usr/lib'
16423  ;;
16424
16425uts4*)
16426  version_type=linux
16427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428  soname_spec='${libname}${release}${shared_ext}$major'
16429  shlibpath_var=LD_LIBRARY_PATH
16430  ;;
16431
16432*)
16433  dynamic_linker=no
16434  ;;
16435esac
16436{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16437$as_echo "$dynamic_linker" >&6; }
16438test "$dynamic_linker" = no && can_build_shared=no
16439
16440if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16441  $as_echo_n "(cached) " >&6
16442else
16443  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16444fi
16445
16446sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16447if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16448  $as_echo_n "(cached) " >&6
16449else
16450  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16451fi
16452
16453sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16454
16455variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16456if test "$GCC" = yes; then
16457  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16458fi
16459
16460{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16461$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16462hardcode_action=
16463if test -n "$hardcode_libdir_flag_spec" || \
16464   test -n "$runpath_var" || \
16465   test "X$hardcode_automatic" = "Xyes" ; then
16466
16467  # We can hardcode non-existant directories.
16468  if test "$hardcode_direct" != no &&
16469     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16470     # have to relink, otherwise we might link with an installed library
16471     # when we should be linking with a yet-to-be-installed one
16472     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16473     test "$hardcode_minus_L" != no; then
16474    # Linking always hardcodes the temporary library directory.
16475    hardcode_action=relink
16476  else
16477    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16478    hardcode_action=immediate
16479  fi
16480else
16481  # We cannot hardcode anything, or else we can only hardcode existing
16482  # directories.
16483  hardcode_action=unsupported
16484fi
16485{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
16486$as_echo "$hardcode_action" >&6; }
16487
16488if test "$hardcode_action" = relink; then
16489  # Fast installation is not supported
16490  enable_fast_install=no
16491elif test "$shlibpath_overrides_runpath" = yes ||
16492     test "$enable_shared" = no; then
16493  # Fast installation is not necessary
16494  enable_fast_install=needless
16495fi
16496
16497striplib=
16498old_striplib=
16499{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16500$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16501if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16502  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16503  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16504  { $as_echo "$as_me:$LINENO: result: yes" >&5
16505$as_echo "yes" >&6; }
16506else
16507# FIXME - insert some real tests, host_os isn't really good enough
16508  case $host_os in
16509   darwin*)
16510       if test -n "$STRIP" ; then
16511         striplib="$STRIP -x"
16512         old_striplib="$STRIP -S"
16513         { $as_echo "$as_me:$LINENO: result: yes" >&5
16514$as_echo "yes" >&6; }
16515       else
16516  { $as_echo "$as_me:$LINENO: result: no" >&5
16517$as_echo "no" >&6; }
16518fi
16519       ;;
16520   *)
16521  { $as_echo "$as_me:$LINENO: result: no" >&5
16522$as_echo "no" >&6; }
16523    ;;
16524  esac
16525fi
16526
16527if test "x$enable_dlopen" != xyes; then
16528  enable_dlopen=unknown
16529  enable_dlopen_self=unknown
16530  enable_dlopen_self_static=unknown
16531else
16532  lt_cv_dlopen=no
16533  lt_cv_dlopen_libs=
16534
16535  case $host_os in
16536  beos*)
16537    lt_cv_dlopen="load_add_on"
16538    lt_cv_dlopen_libs=
16539    lt_cv_dlopen_self=yes
16540    ;;
16541
16542  mingw* | pw32*)
16543    lt_cv_dlopen="LoadLibrary"
16544    lt_cv_dlopen_libs=
16545   ;;
16546
16547  cygwin*)
16548    lt_cv_dlopen="dlopen"
16549    lt_cv_dlopen_libs=
16550   ;;
16551
16552  darwin*)
16553  # if libdl is installed we need to link against it
16554    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16555$as_echo_n "checking for dlopen in -ldl... " >&6; }
16556if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16557  $as_echo_n "(cached) " >&6
16558else
16559  ac_check_lib_save_LIBS=$LIBS
16560LIBS="-ldl  $LIBS"
16561cat >conftest.$ac_ext <<_ACEOF
16562/* confdefs.h.  */
16563_ACEOF
16564cat confdefs.h >>conftest.$ac_ext
16565cat >>conftest.$ac_ext <<_ACEOF
16566/* end confdefs.h.  */
16567
16568/* Override any GCC internal prototype to avoid an error.
16569   Use char because int might match the return type of a GCC
16570   builtin and then its argument prototype would still apply.  */
16571#ifdef __cplusplus
16572extern "C"
16573#endif
16574char dlopen ();
16575int
16576main ()
16577{
16578return dlopen ();
16579  ;
16580  return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext conftest$ac_exeext
16584if { (ac_try="$ac_link"
16585case "(($ac_try" in
16586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587  *) ac_try_echo=$ac_try;;
16588esac
16589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16590$as_echo "$ac_try_echo") >&5
16591  (eval "$ac_link") 2>conftest.er1
16592  ac_status=$?
16593  grep -v '^ *+' conftest.er1 >conftest.err
16594  rm -f conftest.er1
16595  cat conftest.err >&5
16596  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597  (exit $ac_status); } && {
16598	 test -z "$ac_c_werror_flag" ||
16599	 test ! -s conftest.err
16600       } && test -s conftest$ac_exeext && {
16601	 test "$cross_compiling" = yes ||
16602	 $as_test_x conftest$ac_exeext
16603       }; then
16604  ac_cv_lib_dl_dlopen=yes
16605else
16606  $as_echo "$as_me: failed program was:" >&5
16607sed 's/^/| /' conftest.$ac_ext >&5
16608
16609	ac_cv_lib_dl_dlopen=no
16610fi
16611
16612rm -rf conftest.dSYM
16613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16614      conftest$ac_exeext conftest.$ac_ext
16615LIBS=$ac_check_lib_save_LIBS
16616fi
16617{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16618$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16619if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
16620  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16621else
16622
16623    lt_cv_dlopen="dyld"
16624    lt_cv_dlopen_libs=
16625    lt_cv_dlopen_self=yes
16626
16627fi
16628
16629   ;;
16630
16631  *)
16632    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
16633$as_echo_n "checking for shl_load... " >&6; }
16634if test "${ac_cv_func_shl_load+set}" = set; then
16635  $as_echo_n "(cached) " >&6
16636else
16637  cat >conftest.$ac_ext <<_ACEOF
16638/* confdefs.h.  */
16639_ACEOF
16640cat confdefs.h >>conftest.$ac_ext
16641cat >>conftest.$ac_ext <<_ACEOF
16642/* end confdefs.h.  */
16643/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16644   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16645#define shl_load innocuous_shl_load
16646
16647/* System header to define __stub macros and hopefully few prototypes,
16648    which can conflict with char shl_load (); below.
16649    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16650    <limits.h> exists even on freestanding compilers.  */
16651
16652#ifdef __STDC__
16653# include <limits.h>
16654#else
16655# include <assert.h>
16656#endif
16657
16658#undef shl_load
16659
16660/* Override any GCC internal prototype to avoid an error.
16661   Use char because int might match the return type of a GCC
16662   builtin and then its argument prototype would still apply.  */
16663#ifdef __cplusplus
16664extern "C"
16665#endif
16666char shl_load ();
16667/* The GNU C library defines this for functions which it implements
16668    to always fail with ENOSYS.  Some functions are actually named
16669    something starting with __ and the normal name is an alias.  */
16670#if defined __stub_shl_load || defined __stub___shl_load
16671choke me
16672#endif
16673
16674int
16675main ()
16676{
16677return shl_load ();
16678  ;
16679  return 0;
16680}
16681_ACEOF
16682rm -f conftest.$ac_objext conftest$ac_exeext
16683if { (ac_try="$ac_link"
16684case "(($ac_try" in
16685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686  *) ac_try_echo=$ac_try;;
16687esac
16688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16689$as_echo "$ac_try_echo") >&5
16690  (eval "$ac_link") 2>conftest.er1
16691  ac_status=$?
16692  grep -v '^ *+' conftest.er1 >conftest.err
16693  rm -f conftest.er1
16694  cat conftest.err >&5
16695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696  (exit $ac_status); } && {
16697	 test -z "$ac_c_werror_flag" ||
16698	 test ! -s conftest.err
16699       } && test -s conftest$ac_exeext && {
16700	 test "$cross_compiling" = yes ||
16701	 $as_test_x conftest$ac_exeext
16702       }; then
16703  ac_cv_func_shl_load=yes
16704else
16705  $as_echo "$as_me: failed program was:" >&5
16706sed 's/^/| /' conftest.$ac_ext >&5
16707
16708	ac_cv_func_shl_load=no
16709fi
16710
16711rm -rf conftest.dSYM
16712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16713      conftest$ac_exeext conftest.$ac_ext
16714fi
16715{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16716$as_echo "$ac_cv_func_shl_load" >&6; }
16717if test "x$ac_cv_func_shl_load" = x""yes; then
16718  lt_cv_dlopen="shl_load"
16719else
16720  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16721$as_echo_n "checking for shl_load in -ldld... " >&6; }
16722if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16723  $as_echo_n "(cached) " >&6
16724else
16725  ac_check_lib_save_LIBS=$LIBS
16726LIBS="-ldld  $LIBS"
16727cat >conftest.$ac_ext <<_ACEOF
16728/* confdefs.h.  */
16729_ACEOF
16730cat confdefs.h >>conftest.$ac_ext
16731cat >>conftest.$ac_ext <<_ACEOF
16732/* end confdefs.h.  */
16733
16734/* Override any GCC internal prototype to avoid an error.
16735   Use char because int might match the return type of a GCC
16736   builtin and then its argument prototype would still apply.  */
16737#ifdef __cplusplus
16738extern "C"
16739#endif
16740char shl_load ();
16741int
16742main ()
16743{
16744return shl_load ();
16745  ;
16746  return 0;
16747}
16748_ACEOF
16749rm -f conftest.$ac_objext conftest$ac_exeext
16750if { (ac_try="$ac_link"
16751case "(($ac_try" in
16752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753  *) ac_try_echo=$ac_try;;
16754esac
16755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16756$as_echo "$ac_try_echo") >&5
16757  (eval "$ac_link") 2>conftest.er1
16758  ac_status=$?
16759  grep -v '^ *+' conftest.er1 >conftest.err
16760  rm -f conftest.er1
16761  cat conftest.err >&5
16762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763  (exit $ac_status); } && {
16764	 test -z "$ac_c_werror_flag" ||
16765	 test ! -s conftest.err
16766       } && test -s conftest$ac_exeext && {
16767	 test "$cross_compiling" = yes ||
16768	 $as_test_x conftest$ac_exeext
16769       }; then
16770  ac_cv_lib_dld_shl_load=yes
16771else
16772  $as_echo "$as_me: failed program was:" >&5
16773sed 's/^/| /' conftest.$ac_ext >&5
16774
16775	ac_cv_lib_dld_shl_load=no
16776fi
16777
16778rm -rf conftest.dSYM
16779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16780      conftest$ac_exeext conftest.$ac_ext
16781LIBS=$ac_check_lib_save_LIBS
16782fi
16783{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16784$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16785if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
16786  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16787else
16788  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
16789$as_echo_n "checking for dlopen... " >&6; }
16790if test "${ac_cv_func_dlopen+set}" = set; then
16791  $as_echo_n "(cached) " >&6
16792else
16793  cat >conftest.$ac_ext <<_ACEOF
16794/* confdefs.h.  */
16795_ACEOF
16796cat confdefs.h >>conftest.$ac_ext
16797cat >>conftest.$ac_ext <<_ACEOF
16798/* end confdefs.h.  */
16799/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16800   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16801#define dlopen innocuous_dlopen
16802
16803/* System header to define __stub macros and hopefully few prototypes,
16804    which can conflict with char dlopen (); below.
16805    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16806    <limits.h> exists even on freestanding compilers.  */
16807
16808#ifdef __STDC__
16809# include <limits.h>
16810#else
16811# include <assert.h>
16812#endif
16813
16814#undef dlopen
16815
16816/* Override any GCC internal prototype to avoid an error.
16817   Use char because int might match the return type of a GCC
16818   builtin and then its argument prototype would still apply.  */
16819#ifdef __cplusplus
16820extern "C"
16821#endif
16822char dlopen ();
16823/* The GNU C library defines this for functions which it implements
16824    to always fail with ENOSYS.  Some functions are actually named
16825    something starting with __ and the normal name is an alias.  */
16826#if defined __stub_dlopen || defined __stub___dlopen
16827choke me
16828#endif
16829
16830int
16831main ()
16832{
16833return dlopen ();
16834  ;
16835  return 0;
16836}
16837_ACEOF
16838rm -f conftest.$ac_objext conftest$ac_exeext
16839if { (ac_try="$ac_link"
16840case "(($ac_try" in
16841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842  *) ac_try_echo=$ac_try;;
16843esac
16844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16845$as_echo "$ac_try_echo") >&5
16846  (eval "$ac_link") 2>conftest.er1
16847  ac_status=$?
16848  grep -v '^ *+' conftest.er1 >conftest.err
16849  rm -f conftest.er1
16850  cat conftest.err >&5
16851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852  (exit $ac_status); } && {
16853	 test -z "$ac_c_werror_flag" ||
16854	 test ! -s conftest.err
16855       } && test -s conftest$ac_exeext && {
16856	 test "$cross_compiling" = yes ||
16857	 $as_test_x conftest$ac_exeext
16858       }; then
16859  ac_cv_func_dlopen=yes
16860else
16861  $as_echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
16864	ac_cv_func_dlopen=no
16865fi
16866
16867rm -rf conftest.dSYM
16868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16869      conftest$ac_exeext conftest.$ac_ext
16870fi
16871{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16872$as_echo "$ac_cv_func_dlopen" >&6; }
16873if test "x$ac_cv_func_dlopen" = x""yes; then
16874  lt_cv_dlopen="dlopen"
16875else
16876  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16877$as_echo_n "checking for dlopen in -ldl... " >&6; }
16878if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16879  $as_echo_n "(cached) " >&6
16880else
16881  ac_check_lib_save_LIBS=$LIBS
16882LIBS="-ldl  $LIBS"
16883cat >conftest.$ac_ext <<_ACEOF
16884/* confdefs.h.  */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h.  */
16889
16890/* Override any GCC internal prototype to avoid an error.
16891   Use char because int might match the return type of a GCC
16892   builtin and then its argument prototype would still apply.  */
16893#ifdef __cplusplus
16894extern "C"
16895#endif
16896char dlopen ();
16897int
16898main ()
16899{
16900return dlopen ();
16901  ;
16902  return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext conftest$ac_exeext
16906if { (ac_try="$ac_link"
16907case "(($ac_try" in
16908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909  *) ac_try_echo=$ac_try;;
16910esac
16911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16912$as_echo "$ac_try_echo") >&5
16913  (eval "$ac_link") 2>conftest.er1
16914  ac_status=$?
16915  grep -v '^ *+' conftest.er1 >conftest.err
16916  rm -f conftest.er1
16917  cat conftest.err >&5
16918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919  (exit $ac_status); } && {
16920	 test -z "$ac_c_werror_flag" ||
16921	 test ! -s conftest.err
16922       } && test -s conftest$ac_exeext && {
16923	 test "$cross_compiling" = yes ||
16924	 $as_test_x conftest$ac_exeext
16925       }; then
16926  ac_cv_lib_dl_dlopen=yes
16927else
16928  $as_echo "$as_me: failed program was:" >&5
16929sed 's/^/| /' conftest.$ac_ext >&5
16930
16931	ac_cv_lib_dl_dlopen=no
16932fi
16933
16934rm -rf conftest.dSYM
16935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16936      conftest$ac_exeext conftest.$ac_ext
16937LIBS=$ac_check_lib_save_LIBS
16938fi
16939{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16940$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16941if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
16942  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16943else
16944  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16945$as_echo_n "checking for dlopen in -lsvld... " >&6; }
16946if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16947  $as_echo_n "(cached) " >&6
16948else
16949  ac_check_lib_save_LIBS=$LIBS
16950LIBS="-lsvld  $LIBS"
16951cat >conftest.$ac_ext <<_ACEOF
16952/* confdefs.h.  */
16953_ACEOF
16954cat confdefs.h >>conftest.$ac_ext
16955cat >>conftest.$ac_ext <<_ACEOF
16956/* end confdefs.h.  */
16957
16958/* Override any GCC internal prototype to avoid an error.
16959   Use char because int might match the return type of a GCC
16960   builtin and then its argument prototype would still apply.  */
16961#ifdef __cplusplus
16962extern "C"
16963#endif
16964char dlopen ();
16965int
16966main ()
16967{
16968return dlopen ();
16969  ;
16970  return 0;
16971}
16972_ACEOF
16973rm -f conftest.$ac_objext conftest$ac_exeext
16974if { (ac_try="$ac_link"
16975case "(($ac_try" in
16976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977  *) ac_try_echo=$ac_try;;
16978esac
16979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16980$as_echo "$ac_try_echo") >&5
16981  (eval "$ac_link") 2>conftest.er1
16982  ac_status=$?
16983  grep -v '^ *+' conftest.er1 >conftest.err
16984  rm -f conftest.er1
16985  cat conftest.err >&5
16986  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987  (exit $ac_status); } && {
16988	 test -z "$ac_c_werror_flag" ||
16989	 test ! -s conftest.err
16990       } && test -s conftest$ac_exeext && {
16991	 test "$cross_compiling" = yes ||
16992	 $as_test_x conftest$ac_exeext
16993       }; then
16994  ac_cv_lib_svld_dlopen=yes
16995else
16996  $as_echo "$as_me: failed program was:" >&5
16997sed 's/^/| /' conftest.$ac_ext >&5
16998
16999	ac_cv_lib_svld_dlopen=no
17000fi
17001
17002rm -rf conftest.dSYM
17003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17004      conftest$ac_exeext conftest.$ac_ext
17005LIBS=$ac_check_lib_save_LIBS
17006fi
17007{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17008$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17009if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
17010  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17011else
17012  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17013$as_echo_n "checking for dld_link in -ldld... " >&6; }
17014if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17015  $as_echo_n "(cached) " >&6
17016else
17017  ac_check_lib_save_LIBS=$LIBS
17018LIBS="-ldld  $LIBS"
17019cat >conftest.$ac_ext <<_ACEOF
17020/* confdefs.h.  */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h.  */
17025
17026/* Override any GCC internal prototype to avoid an error.
17027   Use char because int might match the return type of a GCC
17028   builtin and then its argument prototype would still apply.  */
17029#ifdef __cplusplus
17030extern "C"
17031#endif
17032char dld_link ();
17033int
17034main ()
17035{
17036return dld_link ();
17037  ;
17038  return 0;
17039}
17040_ACEOF
17041rm -f conftest.$ac_objext conftest$ac_exeext
17042if { (ac_try="$ac_link"
17043case "(($ac_try" in
17044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045  *) ac_try_echo=$ac_try;;
17046esac
17047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17048$as_echo "$ac_try_echo") >&5
17049  (eval "$ac_link") 2>conftest.er1
17050  ac_status=$?
17051  grep -v '^ *+' conftest.er1 >conftest.err
17052  rm -f conftest.er1
17053  cat conftest.err >&5
17054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055  (exit $ac_status); } && {
17056	 test -z "$ac_c_werror_flag" ||
17057	 test ! -s conftest.err
17058       } && test -s conftest$ac_exeext && {
17059	 test "$cross_compiling" = yes ||
17060	 $as_test_x conftest$ac_exeext
17061       }; then
17062  ac_cv_lib_dld_dld_link=yes
17063else
17064  $as_echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067	ac_cv_lib_dld_dld_link=no
17068fi
17069
17070rm -rf conftest.dSYM
17071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17072      conftest$ac_exeext conftest.$ac_ext
17073LIBS=$ac_check_lib_save_LIBS
17074fi
17075{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17076$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17077if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
17078  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17079fi
17080
17081
17082fi
17083
17084
17085fi
17086
17087
17088fi
17089
17090
17091fi
17092
17093
17094fi
17095
17096    ;;
17097  esac
17098
17099  if test "x$lt_cv_dlopen" != xno; then
17100    enable_dlopen=yes
17101  else
17102    enable_dlopen=no
17103  fi
17104
17105  case $lt_cv_dlopen in
17106  dlopen)
17107    save_CPPFLAGS="$CPPFLAGS"
17108    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17109
17110    save_LDFLAGS="$LDFLAGS"
17111    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17112
17113    save_LIBS="$LIBS"
17114    LIBS="$lt_cv_dlopen_libs $LIBS"
17115
17116    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17117$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17118if test "${lt_cv_dlopen_self+set}" = set; then
17119  $as_echo_n "(cached) " >&6
17120else
17121  	  if test "$cross_compiling" = yes; then :
17122  lt_cv_dlopen_self=cross
17123else
17124  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17125  lt_status=$lt_dlunknown
17126  cat > conftest.$ac_ext <<EOF
17127#line 17127 "configure"
17128#include "confdefs.h"
17129
17130#if HAVE_DLFCN_H
17131#include <dlfcn.h>
17132#endif
17133
17134#include <stdio.h>
17135
17136#ifdef RTLD_GLOBAL
17137#  define LT_DLGLOBAL		RTLD_GLOBAL
17138#else
17139#  ifdef DL_GLOBAL
17140#    define LT_DLGLOBAL		DL_GLOBAL
17141#  else
17142#    define LT_DLGLOBAL		0
17143#  endif
17144#endif
17145
17146/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17147   find out it does not work in some platform. */
17148#ifndef LT_DLLAZY_OR_NOW
17149#  ifdef RTLD_LAZY
17150#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17151#  else
17152#    ifdef DL_LAZY
17153#      define LT_DLLAZY_OR_NOW		DL_LAZY
17154#    else
17155#      ifdef RTLD_NOW
17156#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17157#      else
17158#        ifdef DL_NOW
17159#          define LT_DLLAZY_OR_NOW	DL_NOW
17160#        else
17161#          define LT_DLLAZY_OR_NOW	0
17162#        endif
17163#      endif
17164#    endif
17165#  endif
17166#endif
17167
17168#ifdef __cplusplus
17169extern "C" void exit (int);
17170#endif
17171
17172void fnord() { int i=42;}
17173int main ()
17174{
17175  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17176  int status = $lt_dlunknown;
17177
17178  if (self)
17179    {
17180      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17181      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17182      /* dlclose (self); */
17183    }
17184  else
17185    puts (dlerror ());
17186
17187    exit (status);
17188}
17189EOF
17190  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191  (eval $ac_link) 2>&5
17192  ac_status=$?
17193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17195    (./conftest; exit; ) >&5 2>/dev/null
17196    lt_status=$?
17197    case x$lt_status in
17198      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17199      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17200      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17201    esac
17202  else :
17203    # compilation failed
17204    lt_cv_dlopen_self=no
17205  fi
17206fi
17207rm -fr conftest*
17208
17209
17210fi
17211{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17212$as_echo "$lt_cv_dlopen_self" >&6; }
17213
17214    if test "x$lt_cv_dlopen_self" = xyes; then
17215      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17216      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17217$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17218if test "${lt_cv_dlopen_self_static+set}" = set; then
17219  $as_echo_n "(cached) " >&6
17220else
17221  	  if test "$cross_compiling" = yes; then :
17222  lt_cv_dlopen_self_static=cross
17223else
17224  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17225  lt_status=$lt_dlunknown
17226  cat > conftest.$ac_ext <<EOF
17227#line 17227 "configure"
17228#include "confdefs.h"
17229
17230#if HAVE_DLFCN_H
17231#include <dlfcn.h>
17232#endif
17233
17234#include <stdio.h>
17235
17236#ifdef RTLD_GLOBAL
17237#  define LT_DLGLOBAL		RTLD_GLOBAL
17238#else
17239#  ifdef DL_GLOBAL
17240#    define LT_DLGLOBAL		DL_GLOBAL
17241#  else
17242#    define LT_DLGLOBAL		0
17243#  endif
17244#endif
17245
17246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17247   find out it does not work in some platform. */
17248#ifndef LT_DLLAZY_OR_NOW
17249#  ifdef RTLD_LAZY
17250#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17251#  else
17252#    ifdef DL_LAZY
17253#      define LT_DLLAZY_OR_NOW		DL_LAZY
17254#    else
17255#      ifdef RTLD_NOW
17256#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17257#      else
17258#        ifdef DL_NOW
17259#          define LT_DLLAZY_OR_NOW	DL_NOW
17260#        else
17261#          define LT_DLLAZY_OR_NOW	0
17262#        endif
17263#      endif
17264#    endif
17265#  endif
17266#endif
17267
17268#ifdef __cplusplus
17269extern "C" void exit (int);
17270#endif
17271
17272void fnord() { int i=42;}
17273int main ()
17274{
17275  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17276  int status = $lt_dlunknown;
17277
17278  if (self)
17279    {
17280      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17281      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17282      /* dlclose (self); */
17283    }
17284  else
17285    puts (dlerror ());
17286
17287    exit (status);
17288}
17289EOF
17290  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17291  (eval $ac_link) 2>&5
17292  ac_status=$?
17293  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17295    (./conftest; exit; ) >&5 2>/dev/null
17296    lt_status=$?
17297    case x$lt_status in
17298      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17299      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17300      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17301    esac
17302  else :
17303    # compilation failed
17304    lt_cv_dlopen_self_static=no
17305  fi
17306fi
17307rm -fr conftest*
17308
17309
17310fi
17311{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17312$as_echo "$lt_cv_dlopen_self_static" >&6; }
17313    fi
17314
17315    CPPFLAGS="$save_CPPFLAGS"
17316    LDFLAGS="$save_LDFLAGS"
17317    LIBS="$save_LIBS"
17318    ;;
17319  esac
17320
17321  case $lt_cv_dlopen_self in
17322  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17323  *) enable_dlopen_self=unknown ;;
17324  esac
17325
17326  case $lt_cv_dlopen_self_static in
17327  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17328  *) enable_dlopen_self_static=unknown ;;
17329  esac
17330fi
17331
17332
17333# Report which library types will actually be built
17334{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17335$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17336{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
17337$as_echo "$can_build_shared" >&6; }
17338
17339{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17340$as_echo_n "checking whether to build shared libraries... " >&6; }
17341test "$can_build_shared" = "no" && enable_shared=no
17342
17343# On AIX, shared libraries and static libraries use the same namespace, and
17344# are all built from PIC.
17345case $host_os in
17346aix3*)
17347  test "$enable_shared" = yes && enable_static=no
17348  if test -n "$RANLIB"; then
17349    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17350    postinstall_cmds='$RANLIB $lib'
17351  fi
17352  ;;
17353
17354aix[4-9]*)
17355  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17356    test "$enable_shared" = yes && enable_static=no
17357  fi
17358    ;;
17359esac
17360{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
17361$as_echo "$enable_shared" >&6; }
17362
17363{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17364$as_echo_n "checking whether to build static libraries... " >&6; }
17365# Make sure either enable_shared or enable_static is yes.
17366test "$enable_shared" = yes || enable_static=yes
17367{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
17368$as_echo "$enable_static" >&6; }
17369
17370# The else clause should only fire when bootstrapping the
17371# libtool distribution, otherwise you forgot to ship ltmain.sh
17372# with your package, and you will get complaints that there are
17373# no rules to generate ltmain.sh.
17374if test -f "$ltmain"; then
17375  # See if we are running on zsh, and set the options which allow our commands through
17376  # without removal of \ escapes.
17377  if test -n "${ZSH_VERSION+set}" ; then
17378    setopt NO_GLOB_SUBST
17379  fi
17380  # Now quote all the things that may contain metacharacters while being
17381  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17382  # variables and quote the copies for generation of the libtool script.
17383  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17384    SED SHELL STRIP \
17385    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17386    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17387    deplibs_check_method reload_flag reload_cmds need_locks \
17388    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17389    lt_cv_sys_global_symbol_to_c_name_address \
17390    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17391    old_postinstall_cmds old_postuninstall_cmds \
17392    compiler \
17393    CC \
17394    LD \
17395    lt_prog_compiler_wl \
17396    lt_prog_compiler_pic \
17397    lt_prog_compiler_static \
17398    lt_prog_compiler_no_builtin_flag \
17399    export_dynamic_flag_spec \
17400    thread_safe_flag_spec \
17401    whole_archive_flag_spec \
17402    enable_shared_with_static_runtimes \
17403    old_archive_cmds \
17404    old_archive_from_new_cmds \
17405    predep_objects \
17406    postdep_objects \
17407    predeps \
17408    postdeps \
17409    compiler_lib_search_path \
17410    compiler_lib_search_dirs \
17411    archive_cmds \
17412    archive_expsym_cmds \
17413    postinstall_cmds \
17414    postuninstall_cmds \
17415    old_archive_from_expsyms_cmds \
17416    allow_undefined_flag \
17417    no_undefined_flag \
17418    export_symbols_cmds \
17419    hardcode_libdir_flag_spec \
17420    hardcode_libdir_flag_spec_ld \
17421    hardcode_libdir_separator \
17422    hardcode_automatic \
17423    module_cmds \
17424    module_expsym_cmds \
17425    lt_cv_prog_compiler_c_o \
17426    fix_srcfile_path \
17427    exclude_expsyms \
17428    include_expsyms; do
17429
17430    case $var in
17431    old_archive_cmds | \
17432    old_archive_from_new_cmds | \
17433    archive_cmds | \
17434    archive_expsym_cmds | \
17435    module_cmds | \
17436    module_expsym_cmds | \
17437    old_archive_from_expsyms_cmds | \
17438    export_symbols_cmds | \
17439    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17440    postinstall_cmds | postuninstall_cmds | \
17441    old_postinstall_cmds | old_postuninstall_cmds | \
17442    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17443      # Double-quote double-evaled strings.
17444      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17445      ;;
17446    *)
17447      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17448      ;;
17449    esac
17450  done
17451
17452  case $lt_echo in
17453  *'\$0 --fallback-echo"')
17454    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17455    ;;
17456  esac
17457
17458cfgfile="${ofile}T"
17459  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17460  $rm -f "$cfgfile"
17461  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
17462$as_echo "$as_me: creating $ofile" >&6;}
17463
17464  cat <<__EOF__ >> "$cfgfile"
17465#! $SHELL
17466
17467# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17468# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17469# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17470#
17471# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
17472# Free Software Foundation, Inc.
17473#
17474# This file is part of GNU Libtool:
17475# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17476#
17477# This program is free software; you can redistribute it and/or modify
17478# it under the terms of the GNU General Public License as published by
17479# the Free Software Foundation; either version 2 of the License, or
17480# (at your option) any later version.
17481#
17482# This program is distributed in the hope that it will be useful, but
17483# WITHOUT ANY WARRANTY; without even the implied warranty of
17484# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17485# General Public License for more details.
17486#
17487# You should have received a copy of the GNU General Public License
17488# along with this program; if not, write to the Free Software
17489# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17490#
17491# As a special exception to the GNU General Public License, if you
17492# distribute this file as part of a program that contains a
17493# configuration script generated by Autoconf, you may include it under
17494# the same distribution terms that you use for the rest of that program.
17495
17496# A sed program that does not truncate output.
17497SED=$lt_SED
17498
17499# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17500Xsed="$SED -e 1s/^X//"
17501
17502# The HP-UX ksh and POSIX shell print the target directory to stdout
17503# if CDPATH is set.
17504(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17505
17506# The names of the tagged configurations supported by this script.
17507available_tags=
17508
17509# ### BEGIN LIBTOOL CONFIG
17510
17511# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17512
17513# Shell to use when invoking shell scripts.
17514SHELL=$lt_SHELL
17515
17516# Whether or not to build shared libraries.
17517build_libtool_libs=$enable_shared
17518
17519# Whether or not to build static libraries.
17520build_old_libs=$enable_static
17521
17522# Whether or not to add -lc for building shared libraries.
17523build_libtool_need_lc=$archive_cmds_need_lc
17524
17525# Whether or not to disallow shared libs when runtime libs are static
17526allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17527
17528# Whether or not to optimize for fast installation.
17529fast_install=$enable_fast_install
17530
17531# The host system.
17532host_alias=$host_alias
17533host=$host
17534host_os=$host_os
17535
17536# The build system.
17537build_alias=$build_alias
17538build=$build
17539build_os=$build_os
17540
17541# An echo program that does not interpret backslashes.
17542echo=$lt_echo
17543
17544# The archiver.
17545AR=$lt_AR
17546AR_FLAGS=$lt_AR_FLAGS
17547
17548# A C compiler.
17549LTCC=$lt_LTCC
17550
17551# LTCC compiler flags.
17552LTCFLAGS=$lt_LTCFLAGS
17553
17554# A language-specific compiler.
17555CC=$lt_compiler
17556
17557# Is the compiler the GNU C compiler?
17558with_gcc=$GCC
17559
17560# An ERE matcher.
17561EGREP=$lt_EGREP
17562
17563# The linker used to build libraries.
17564LD=$lt_LD
17565
17566# Whether we need hard or soft links.
17567LN_S=$lt_LN_S
17568
17569# A BSD-compatible nm program.
17570NM=$lt_NM
17571
17572# A symbol stripping program
17573STRIP=$lt_STRIP
17574
17575# Used to examine libraries when file_magic_cmd begins "file"
17576MAGIC_CMD=$MAGIC_CMD
17577
17578# Used on cygwin: DLL creation program.
17579DLLTOOL="$DLLTOOL"
17580
17581# Used on cygwin: object dumper.
17582OBJDUMP="$OBJDUMP"
17583
17584# Used on cygwin: assembler.
17585AS="$AS"
17586
17587# The name of the directory that contains temporary libtool files.
17588objdir=$objdir
17589
17590# How to create reloadable object files.
17591reload_flag=$lt_reload_flag
17592reload_cmds=$lt_reload_cmds
17593
17594# How to pass a linker flag through the compiler.
17595wl=$lt_lt_prog_compiler_wl
17596
17597# Object file suffix (normally "o").
17598objext="$ac_objext"
17599
17600# Old archive suffix (normally "a").
17601libext="$libext"
17602
17603# Shared library suffix (normally ".so").
17604shrext_cmds='$shrext_cmds'
17605
17606# Executable file suffix (normally "").
17607exeext="$exeext"
17608
17609# Additional compiler flags for building library objects.
17610pic_flag=$lt_lt_prog_compiler_pic
17611pic_mode=$pic_mode
17612
17613# What is the maximum length of a command?
17614max_cmd_len=$lt_cv_sys_max_cmd_len
17615
17616# Does compiler simultaneously support -c and -o options?
17617compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17618
17619# Must we lock files when doing compilation?
17620need_locks=$lt_need_locks
17621
17622# Do we need the lib prefix for modules?
17623need_lib_prefix=$need_lib_prefix
17624
17625# Do we need a version for libraries?
17626need_version=$need_version
17627
17628# Whether dlopen is supported.
17629dlopen_support=$enable_dlopen
17630
17631# Whether dlopen of programs is supported.
17632dlopen_self=$enable_dlopen_self
17633
17634# Whether dlopen of statically linked programs is supported.
17635dlopen_self_static=$enable_dlopen_self_static
17636
17637# Compiler flag to prevent dynamic linking.
17638link_static_flag=$lt_lt_prog_compiler_static
17639
17640# Compiler flag to turn off builtin functions.
17641no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17642
17643# Compiler flag to allow reflexive dlopens.
17644export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17645
17646# Compiler flag to generate shared objects directly from archives.
17647whole_archive_flag_spec=$lt_whole_archive_flag_spec
17648
17649# Compiler flag to generate thread-safe objects.
17650thread_safe_flag_spec=$lt_thread_safe_flag_spec
17651
17652# Library versioning type.
17653version_type=$version_type
17654
17655# Format of library name prefix.
17656libname_spec=$lt_libname_spec
17657
17658# List of archive names.  First name is the real one, the rest are links.
17659# The last name is the one that the linker finds with -lNAME.
17660library_names_spec=$lt_library_names_spec
17661
17662# The coded name of the library, if different from the real name.
17663soname_spec=$lt_soname_spec
17664
17665# Commands used to build and install an old-style archive.
17666RANLIB=$lt_RANLIB
17667old_archive_cmds=$lt_old_archive_cmds
17668old_postinstall_cmds=$lt_old_postinstall_cmds
17669old_postuninstall_cmds=$lt_old_postuninstall_cmds
17670
17671# Create an old-style archive from a shared archive.
17672old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17673
17674# Create a temporary old-style archive to link instead of a shared archive.
17675old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17676
17677# Commands used to build and install a shared archive.
17678archive_cmds=$lt_archive_cmds
17679archive_expsym_cmds=$lt_archive_expsym_cmds
17680postinstall_cmds=$lt_postinstall_cmds
17681postuninstall_cmds=$lt_postuninstall_cmds
17682
17683# Commands used to build a loadable module (assumed same as above if empty)
17684module_cmds=$lt_module_cmds
17685module_expsym_cmds=$lt_module_expsym_cmds
17686
17687# Commands to strip libraries.
17688old_striplib=$lt_old_striplib
17689striplib=$lt_striplib
17690
17691# Dependencies to place before the objects being linked to create a
17692# shared library.
17693predep_objects=$lt_predep_objects
17694
17695# Dependencies to place after the objects being linked to create a
17696# shared library.
17697postdep_objects=$lt_postdep_objects
17698
17699# Dependencies to place before the objects being linked to create a
17700# shared library.
17701predeps=$lt_predeps
17702
17703# Dependencies to place after the objects being linked to create a
17704# shared library.
17705postdeps=$lt_postdeps
17706
17707# The directories searched by this compiler when creating a shared
17708# library
17709compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17710
17711# The library search path used internally by the compiler when linking
17712# a shared library.
17713compiler_lib_search_path=$lt_compiler_lib_search_path
17714
17715# Method to check whether dependent libraries are shared objects.
17716deplibs_check_method=$lt_deplibs_check_method
17717
17718# Command to use when deplibs_check_method == file_magic.
17719file_magic_cmd=$lt_file_magic_cmd
17720
17721# Flag that allows shared libraries with undefined symbols to be built.
17722allow_undefined_flag=$lt_allow_undefined_flag
17723
17724# Flag that forces no undefined symbols.
17725no_undefined_flag=$lt_no_undefined_flag
17726
17727# Commands used to finish a libtool library installation in a directory.
17728finish_cmds=$lt_finish_cmds
17729
17730# Same as above, but a single script fragment to be evaled but not shown.
17731finish_eval=$lt_finish_eval
17732
17733# Take the output of nm and produce a listing of raw symbols and C names.
17734global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17735
17736# Transform the output of nm in a proper C declaration
17737global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17738
17739# Transform the output of nm in a C name address pair
17740global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17741
17742# This is the shared library runtime path variable.
17743runpath_var=$runpath_var
17744
17745# This is the shared library path variable.
17746shlibpath_var=$shlibpath_var
17747
17748# Is shlibpath searched before the hard-coded library search path?
17749shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17750
17751# How to hardcode a shared library path into an executable.
17752hardcode_action=$hardcode_action
17753
17754# Whether we should hardcode library paths into libraries.
17755hardcode_into_libs=$hardcode_into_libs
17756
17757# Flag to hardcode \$libdir into a binary during linking.
17758# This must work even if \$libdir does not exist.
17759hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17760
17761# If ld is used when linking, flag to hardcode \$libdir into
17762# a binary during linking. This must work even if \$libdir does
17763# not exist.
17764hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17765
17766# Whether we need a single -rpath flag with a separated argument.
17767hardcode_libdir_separator=$lt_hardcode_libdir_separator
17768
17769# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17770# resulting binary.
17771hardcode_direct=$hardcode_direct
17772
17773# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17774# resulting binary.
17775hardcode_minus_L=$hardcode_minus_L
17776
17777# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17778# the resulting binary.
17779hardcode_shlibpath_var=$hardcode_shlibpath_var
17780
17781# Set to yes if building a shared library automatically hardcodes DIR into the library
17782# and all subsequent libraries and executables linked against it.
17783hardcode_automatic=$hardcode_automatic
17784
17785# Variables whose values should be saved in libtool wrapper scripts and
17786# restored at relink time.
17787variables_saved_for_relink="$variables_saved_for_relink"
17788
17789# Whether libtool must link a program against all its dependency libraries.
17790link_all_deplibs=$link_all_deplibs
17791
17792# Compile-time system search path for libraries
17793sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17794
17795# Run-time system search path for libraries
17796sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17797
17798# Fix the shell variable \$srcfile for the compiler.
17799fix_srcfile_path=$lt_fix_srcfile_path
17800
17801# Set to yes if exported symbols are required.
17802always_export_symbols=$always_export_symbols
17803
17804# The commands to list exported symbols.
17805export_symbols_cmds=$lt_export_symbols_cmds
17806
17807# The commands to extract the exported symbol list from a shared archive.
17808extract_expsyms_cmds=$lt_extract_expsyms_cmds
17809
17810# Symbols that should not be listed in the preloaded symbols.
17811exclude_expsyms=$lt_exclude_expsyms
17812
17813# Symbols that must always be exported.
17814include_expsyms=$lt_include_expsyms
17815
17816# ### END LIBTOOL CONFIG
17817
17818__EOF__
17819
17820
17821  case $host_os in
17822  aix3*)
17823    cat <<\EOF >> "$cfgfile"
17824
17825# AIX sometimes has problems with the GCC collect2 program.  For some
17826# reason, if we set the COLLECT_NAMES environment variable, the problems
17827# vanish in a puff of smoke.
17828if test "X${COLLECT_NAMES+set}" != Xset; then
17829  COLLECT_NAMES=
17830  export COLLECT_NAMES
17831fi
17832EOF
17833    ;;
17834  esac
17835
17836  # We use sed instead of cat because bash on DJGPP gets confused if
17837  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17838  # text mode, it properly converts lines to CR/LF.  This bash problem
17839  # is reportedly fixed, but why not run on old versions too?
17840  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17841
17842  mv -f "$cfgfile" "$ofile" || \
17843    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17844  chmod +x "$ofile"
17845
17846else
17847  # If there is no Makefile yet, we rely on a make rule to execute
17848  # `config.status --recheck' to rerun these tests and create the
17849  # libtool script then.
17850  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17851  if test -f "$ltmain_in"; then
17852    test -f Makefile && make "$ltmain"
17853  fi
17854fi
17855
17856
17857ac_ext=c
17858ac_cpp='$CPP $CPPFLAGS'
17859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17861ac_compiler_gnu=$ac_cv_c_compiler_gnu
17862
17863CC="$lt_save_CC"
17864
17865
17866# Check whether --with-tags was given.
17867if test "${with_tags+set}" = set; then
17868  withval=$with_tags; tagnames="$withval"
17869fi
17870
17871
17872if test -f "$ltmain" && test -n "$tagnames"; then
17873  if test ! -f "${ofile}"; then
17874    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17875$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17876  fi
17877
17878  if test -z "$LTCC"; then
17879    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17880    if test -z "$LTCC"; then
17881      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17882$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17883    else
17884      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17885$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17886    fi
17887  fi
17888  if test -z "$LTCFLAGS"; then
17889    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17890  fi
17891
17892  # Extract list of available tagged configurations in $ofile.
17893  # Note that this assumes the entire list is on one line.
17894  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17895
17896  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17897  for tagname in $tagnames; do
17898    IFS="$lt_save_ifs"
17899    # Check whether tagname contains only valid characters
17900    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17901    "") ;;
17902    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17903$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
17904   { (exit 1); exit 1; }; }
17905	;;
17906    esac
17907
17908    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17909    then
17910      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17911$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17912   { (exit 1); exit 1; }; }
17913    fi
17914
17915    # Update the list of available tags.
17916    if test -n "$tagname"; then
17917      echo appending configuration tag \"$tagname\" to $ofile
17918
17919      case $tagname in
17920      CXX)
17921	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17922	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17923	    (test "X$CXX" != "Xg++"))) ; then
17924	  ac_ext=cpp
17925ac_cpp='$CXXCPP $CPPFLAGS'
17926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17929
17930
17931
17932
17933archive_cmds_need_lc_CXX=no
17934allow_undefined_flag_CXX=
17935always_export_symbols_CXX=no
17936archive_expsym_cmds_CXX=
17937export_dynamic_flag_spec_CXX=
17938hardcode_direct_CXX=no
17939hardcode_libdir_flag_spec_CXX=
17940hardcode_libdir_flag_spec_ld_CXX=
17941hardcode_libdir_separator_CXX=
17942hardcode_minus_L_CXX=no
17943hardcode_shlibpath_var_CXX=unsupported
17944hardcode_automatic_CXX=no
17945module_cmds_CXX=
17946module_expsym_cmds_CXX=
17947link_all_deplibs_CXX=unknown
17948old_archive_cmds_CXX=$old_archive_cmds
17949no_undefined_flag_CXX=
17950whole_archive_flag_spec_CXX=
17951enable_shared_with_static_runtimes_CXX=no
17952
17953# Dependencies to place before and after the object being linked:
17954predep_objects_CXX=
17955postdep_objects_CXX=
17956predeps_CXX=
17957postdeps_CXX=
17958compiler_lib_search_path_CXX=
17959compiler_lib_search_dirs_CXX=
17960
17961# Source file extension for C++ test sources.
17962ac_ext=cpp
17963
17964# Object file extension for compiled C++ test sources.
17965objext=o
17966objext_CXX=$objext
17967
17968# Code to be used in simple compile tests
17969lt_simple_compile_test_code="int some_variable = 0;"
17970
17971# Code to be used in simple link tests
17972lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17973
17974# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17975
17976# If no C compiler was specified, use CC.
17977LTCC=${LTCC-"$CC"}
17978
17979# If no C compiler flags were specified, use CFLAGS.
17980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17981
17982# Allow CC to be a program name with arguments.
17983compiler=$CC
17984
17985
17986# save warnings/boilerplate of simple test code
17987ac_outfile=conftest.$ac_objext
17988echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17990_lt_compiler_boilerplate=`cat conftest.err`
17991$rm conftest*
17992
17993ac_outfile=conftest.$ac_objext
17994echo "$lt_simple_link_test_code" >conftest.$ac_ext
17995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17996_lt_linker_boilerplate=`cat conftest.err`
17997$rm -r conftest*
17998
17999
18000# Allow CC to be a program name with arguments.
18001lt_save_CC=$CC
18002lt_save_LD=$LD
18003lt_save_GCC=$GCC
18004GCC=$GXX
18005lt_save_with_gnu_ld=$with_gnu_ld
18006lt_save_path_LD=$lt_cv_path_LD
18007if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18008  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18009else
18010  $as_unset lt_cv_prog_gnu_ld
18011fi
18012if test -n "${lt_cv_path_LDCXX+set}"; then
18013  lt_cv_path_LD=$lt_cv_path_LDCXX
18014else
18015  $as_unset lt_cv_path_LD
18016fi
18017test -z "${LDCXX+set}" || LD=$LDCXX
18018CC=${CXX-"c++"}
18019compiler=$CC
18020compiler_CXX=$CC
18021for cc_temp in $compiler""; do
18022  case $cc_temp in
18023    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18024    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18025    \-*) ;;
18026    *) break;;
18027  esac
18028done
18029cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18030
18031
18032# We don't want -fno-exception wen compiling C++ code, so set the
18033# no_builtin_flag separately
18034if test "$GXX" = yes; then
18035  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18036else
18037  lt_prog_compiler_no_builtin_flag_CXX=
18038fi
18039
18040if test "$GXX" = yes; then
18041  # Set up default GNU C++ configuration
18042
18043
18044# Check whether --with-gnu-ld was given.
18045if test "${with_gnu_ld+set}" = set; then
18046  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18047else
18048  with_gnu_ld=no
18049fi
18050
18051ac_prog=ld
18052if test "$GCC" = yes; then
18053  # Check if gcc -print-prog-name=ld gives a path.
18054  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18055$as_echo_n "checking for ld used by $CC... " >&6; }
18056  case $host in
18057  *-*-mingw*)
18058    # gcc leaves a trailing carriage return which upsets mingw
18059    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18060  *)
18061    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18062  esac
18063  case $ac_prog in
18064    # Accept absolute paths.
18065    [\\/]* | ?:[\\/]*)
18066      re_direlt='/[^/][^/]*/\.\./'
18067      # Canonicalize the pathname of ld
18068      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18069      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18070	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18071      done
18072      test -z "$LD" && LD="$ac_prog"
18073      ;;
18074  "")
18075    # If it fails, then pretend we aren't using GCC.
18076    ac_prog=ld
18077    ;;
18078  *)
18079    # If it is relative, then search for the first ld in PATH.
18080    with_gnu_ld=unknown
18081    ;;
18082  esac
18083elif test "$with_gnu_ld" = yes; then
18084  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
18085$as_echo_n "checking for GNU ld... " >&6; }
18086else
18087  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18088$as_echo_n "checking for non-GNU ld... " >&6; }
18089fi
18090if test "${lt_cv_path_LD+set}" = set; then
18091  $as_echo_n "(cached) " >&6
18092else
18093  if test -z "$LD"; then
18094  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18095  for ac_dir in $PATH; do
18096    IFS="$lt_save_ifs"
18097    test -z "$ac_dir" && ac_dir=.
18098    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18099      lt_cv_path_LD="$ac_dir/$ac_prog"
18100      # Check to see if the program is GNU ld.  I'd rather use --version,
18101      # but apparently some variants of GNU ld only accept -v.
18102      # Break only if it was the GNU/non-GNU ld that we prefer.
18103      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18104      *GNU* | *'with BFD'*)
18105	test "$with_gnu_ld" != no && break
18106	;;
18107      *)
18108	test "$with_gnu_ld" != yes && break
18109	;;
18110      esac
18111    fi
18112  done
18113  IFS="$lt_save_ifs"
18114else
18115  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18116fi
18117fi
18118
18119LD="$lt_cv_path_LD"
18120if test -n "$LD"; then
18121  { $as_echo "$as_me:$LINENO: result: $LD" >&5
18122$as_echo "$LD" >&6; }
18123else
18124  { $as_echo "$as_me:$LINENO: result: no" >&5
18125$as_echo "no" >&6; }
18126fi
18127test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18128$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18129   { (exit 1); exit 1; }; }
18130{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18131$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18132if test "${lt_cv_prog_gnu_ld+set}" = set; then
18133  $as_echo_n "(cached) " >&6
18134else
18135  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18136case `$LD -v 2>&1 </dev/null` in
18137*GNU* | *'with BFD'*)
18138  lt_cv_prog_gnu_ld=yes
18139  ;;
18140*)
18141  lt_cv_prog_gnu_ld=no
18142  ;;
18143esac
18144fi
18145{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18146$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18147with_gnu_ld=$lt_cv_prog_gnu_ld
18148
18149
18150
18151  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18152  # archiving commands below assume that GNU ld is being used.
18153  if test "$with_gnu_ld" = yes; then
18154    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18155    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'
18156
18157    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18158    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18159
18160    # If archive_cmds runs LD, not CC, wlarc should be empty
18161    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18162    #     investigate it a little bit more. (MM)
18163    wlarc='${wl}'
18164
18165    # ancient GNU ld didn't support --whole-archive et. al.
18166    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18167	grep 'no-whole-archive' > /dev/null; then
18168      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18169    else
18170      whole_archive_flag_spec_CXX=
18171    fi
18172  else
18173    with_gnu_ld=no
18174    wlarc=
18175
18176    # A generic and very simple default shared library creation
18177    # command for GNU C++ for the case where it uses the native
18178    # linker, instead of GNU ld.  If possible, this setting should
18179    # overridden to take advantage of the native linker features on
18180    # the platform it is being used on.
18181    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18182  fi
18183
18184  # Commands to make compiler produce verbose output that lists
18185  # what "hidden" libraries, object files and flags are used when
18186  # linking a shared library.
18187  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18188
18189else
18190  GXX=no
18191  with_gnu_ld=no
18192  wlarc=
18193fi
18194
18195# PORTME: fill in a description of your system's C++ link characteristics
18196{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18197$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18198ld_shlibs_CXX=yes
18199case $host_os in
18200  aix3*)
18201    # FIXME: insert proper C++ library support
18202    ld_shlibs_CXX=no
18203    ;;
18204  aix[4-9]*)
18205    if test "$host_cpu" = ia64; then
18206      # On IA64, the linker does run time linking by default, so we don't
18207      # have to do anything special.
18208      aix_use_runtimelinking=no
18209      exp_sym_flag='-Bexport'
18210      no_entry_flag=""
18211    else
18212      aix_use_runtimelinking=no
18213
18214      # Test if we are trying to use run time linking or normal
18215      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18216      # need to do runtime linking.
18217      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18218	for ld_flag in $LDFLAGS; do
18219	  case $ld_flag in
18220	  *-brtl*)
18221	    aix_use_runtimelinking=yes
18222	    break
18223	    ;;
18224	  esac
18225	done
18226	;;
18227      esac
18228
18229      exp_sym_flag='-bexport'
18230      no_entry_flag='-bnoentry'
18231    fi
18232
18233    # When large executables or shared objects are built, AIX ld can
18234    # have problems creating the table of contents.  If linking a library
18235    # or program results in "error TOC overflow" add -mminimal-toc to
18236    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18237    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18238
18239    archive_cmds_CXX=''
18240    hardcode_direct_CXX=yes
18241    hardcode_libdir_separator_CXX=':'
18242    link_all_deplibs_CXX=yes
18243
18244    if test "$GXX" = yes; then
18245      case $host_os in aix4.[012]|aix4.[012].*)
18246      # We only want to do this on AIX 4.2 and lower, the check
18247      # below for broken collect2 doesn't work under 4.3+
18248	collect2name=`${CC} -print-prog-name=collect2`
18249	if test -f "$collect2name" && \
18250	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18251	then
18252	  # We have reworked collect2
18253	  :
18254	else
18255	  # We have old collect2
18256	  hardcode_direct_CXX=unsupported
18257	  # It fails to find uninstalled libraries when the uninstalled
18258	  # path is not listed in the libpath.  Setting hardcode_minus_L
18259	  # to unsupported forces relinking
18260	  hardcode_minus_L_CXX=yes
18261	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18262	  hardcode_libdir_separator_CXX=
18263	fi
18264	;;
18265      esac
18266      shared_flag='-shared'
18267      if test "$aix_use_runtimelinking" = yes; then
18268	shared_flag="$shared_flag "'${wl}-G'
18269      fi
18270    else
18271      # not using gcc
18272      if test "$host_cpu" = ia64; then
18273	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18274	# chokes on -Wl,-G. The following line is correct:
18275	shared_flag='-G'
18276      else
18277	if test "$aix_use_runtimelinking" = yes; then
18278	  shared_flag='${wl}-G'
18279	else
18280	  shared_flag='${wl}-bM:SRE'
18281	fi
18282      fi
18283    fi
18284
18285    # It seems that -bexpall does not export symbols beginning with
18286    # underscore (_), so it is better to generate a list of symbols to export.
18287    always_export_symbols_CXX=yes
18288    if test "$aix_use_runtimelinking" = yes; then
18289      # Warning - without using the other runtime loading flags (-brtl),
18290      # -berok will link without error, but may produce a broken library.
18291      allow_undefined_flag_CXX='-berok'
18292      # Determine the default libpath from the value encoded in an empty executable.
18293      cat >conftest.$ac_ext <<_ACEOF
18294/* confdefs.h.  */
18295_ACEOF
18296cat confdefs.h >>conftest.$ac_ext
18297cat >>conftest.$ac_ext <<_ACEOF
18298/* end confdefs.h.  */
18299
18300int
18301main ()
18302{
18303
18304  ;
18305  return 0;
18306}
18307_ACEOF
18308rm -f conftest.$ac_objext conftest$ac_exeext
18309if { (ac_try="$ac_link"
18310case "(($ac_try" in
18311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312  *) ac_try_echo=$ac_try;;
18313esac
18314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18315$as_echo "$ac_try_echo") >&5
18316  (eval "$ac_link") 2>conftest.er1
18317  ac_status=$?
18318  grep -v '^ *+' conftest.er1 >conftest.err
18319  rm -f conftest.er1
18320  cat conftest.err >&5
18321  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322  (exit $ac_status); } && {
18323	 test -z "$ac_cxx_werror_flag" ||
18324	 test ! -s conftest.err
18325       } && test -s conftest$ac_exeext && {
18326	 test "$cross_compiling" = yes ||
18327	 $as_test_x conftest$ac_exeext
18328       }; then
18329
18330lt_aix_libpath_sed='
18331    /Import File Strings/,/^$/ {
18332	/^0/ {
18333	    s/^0  *\(.*\)$/\1/
18334	    p
18335	}
18336    }'
18337aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18338# Check for a 64-bit object if we didn't find anything.
18339if test -z "$aix_libpath"; then
18340  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18341fi
18342else
18343  $as_echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346
18347fi
18348
18349rm -rf conftest.dSYM
18350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18351      conftest$ac_exeext conftest.$ac_ext
18352if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18353
18354      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18355
18356      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"
18357     else
18358      if test "$host_cpu" = ia64; then
18359	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18360	allow_undefined_flag_CXX="-z nodefs"
18361	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"
18362      else
18363	# Determine the default libpath from the value encoded in an empty executable.
18364	cat >conftest.$ac_ext <<_ACEOF
18365/* confdefs.h.  */
18366_ACEOF
18367cat confdefs.h >>conftest.$ac_ext
18368cat >>conftest.$ac_ext <<_ACEOF
18369/* end confdefs.h.  */
18370
18371int
18372main ()
18373{
18374
18375  ;
18376  return 0;
18377}
18378_ACEOF
18379rm -f conftest.$ac_objext conftest$ac_exeext
18380if { (ac_try="$ac_link"
18381case "(($ac_try" in
18382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383  *) ac_try_echo=$ac_try;;
18384esac
18385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18386$as_echo "$ac_try_echo") >&5
18387  (eval "$ac_link") 2>conftest.er1
18388  ac_status=$?
18389  grep -v '^ *+' conftest.er1 >conftest.err
18390  rm -f conftest.er1
18391  cat conftest.err >&5
18392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393  (exit $ac_status); } && {
18394	 test -z "$ac_cxx_werror_flag" ||
18395	 test ! -s conftest.err
18396       } && test -s conftest$ac_exeext && {
18397	 test "$cross_compiling" = yes ||
18398	 $as_test_x conftest$ac_exeext
18399       }; then
18400
18401lt_aix_libpath_sed='
18402    /Import File Strings/,/^$/ {
18403	/^0/ {
18404	    s/^0  *\(.*\)$/\1/
18405	    p
18406	}
18407    }'
18408aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18409# Check for a 64-bit object if we didn't find anything.
18410if test -z "$aix_libpath"; then
18411  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18412fi
18413else
18414  $as_echo "$as_me: failed program was:" >&5
18415sed 's/^/| /' conftest.$ac_ext >&5
18416
18417
18418fi
18419
18420rm -rf conftest.dSYM
18421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18422      conftest$ac_exeext conftest.$ac_ext
18423if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18424
18425	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18426	# Warning - without using the other run time loading flags,
18427	# -berok will link without error, but may produce a broken library.
18428	no_undefined_flag_CXX=' ${wl}-bernotok'
18429	allow_undefined_flag_CXX=' ${wl}-berok'
18430	# Exported symbols can be pulled into shared objects from archives
18431	whole_archive_flag_spec_CXX='$convenience'
18432	archive_cmds_need_lc_CXX=yes
18433	# This is similar to how AIX traditionally builds its shared libraries.
18434	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'
18435      fi
18436    fi
18437    ;;
18438
18439  beos*)
18440    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18441      allow_undefined_flag_CXX=unsupported
18442      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18443      # support --undefined.  This deserves some investigation.  FIXME
18444      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18445    else
18446      ld_shlibs_CXX=no
18447    fi
18448    ;;
18449
18450  chorus*)
18451    case $cc_basename in
18452      *)
18453	# FIXME: insert proper C++ library support
18454	ld_shlibs_CXX=no
18455	;;
18456    esac
18457    ;;
18458
18459  cygwin* | mingw* | pw32*)
18460    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18461    # as there is no search path for DLLs.
18462    hardcode_libdir_flag_spec_CXX='-L$libdir'
18463    allow_undefined_flag_CXX=unsupported
18464    always_export_symbols_CXX=no
18465    enable_shared_with_static_runtimes_CXX=yes
18466
18467    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18468      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'
18469      # If the export-symbols file already is a .def file (1st line
18470      # is EXPORTS), use it as is; otherwise, prepend...
18471      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18472	cp $export_symbols $output_objdir/$soname.def;
18473      else
18474	echo EXPORTS > $output_objdir/$soname.def;
18475	cat $export_symbols >> $output_objdir/$soname.def;
18476      fi~
18477      $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'
18478    else
18479      ld_shlibs_CXX=no
18480    fi
18481  ;;
18482      darwin* | rhapsody*)
18483      archive_cmds_need_lc_CXX=no
18484      hardcode_direct_CXX=no
18485      hardcode_automatic_CXX=yes
18486      hardcode_shlibpath_var_CXX=unsupported
18487      whole_archive_flag_spec_CXX=''
18488      link_all_deplibs_CXX=yes
18489      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18490      if test "$GXX" = yes ; then
18491      output_verbose_link_cmd='echo'
18492      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18493      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18494      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18495      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18496      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18497        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
18498        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
18499      fi
18500      else
18501      case $cc_basename in
18502        xlc*)
18503         output_verbose_link_cmd='echo'
18504          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18505          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18506          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18507          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18508          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}'
18509          ;;
18510       *)
18511         ld_shlibs_CXX=no
18512          ;;
18513      esac
18514      fi
18515        ;;
18516
18517  dgux*)
18518    case $cc_basename in
18519      ec++*)
18520	# FIXME: insert proper C++ library support
18521	ld_shlibs_CXX=no
18522	;;
18523      ghcx*)
18524	# Green Hills C++ Compiler
18525	# FIXME: insert proper C++ library support
18526	ld_shlibs_CXX=no
18527	;;
18528      *)
18529	# FIXME: insert proper C++ library support
18530	ld_shlibs_CXX=no
18531	;;
18532    esac
18533    ;;
18534  freebsd[12]*)
18535    # C++ shared libraries reported to be fairly broken before switch to ELF
18536    ld_shlibs_CXX=no
18537    ;;
18538  freebsd-elf*)
18539    archive_cmds_need_lc_CXX=no
18540    ;;
18541  freebsd* | dragonfly*)
18542    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18543    # conventions
18544    ld_shlibs_CXX=yes
18545    ;;
18546  gnu*)
18547    ;;
18548  hpux9*)
18549    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18550    hardcode_libdir_separator_CXX=:
18551    export_dynamic_flag_spec_CXX='${wl}-E'
18552    hardcode_direct_CXX=yes
18553    hardcode_minus_L_CXX=yes # Not in the search PATH,
18554				# but as the default
18555				# location of the library.
18556
18557    case $cc_basename in
18558    CC*)
18559      # FIXME: insert proper C++ library support
18560      ld_shlibs_CXX=no
18561      ;;
18562    aCC*)
18563      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'
18564      # Commands to make compiler produce verbose output that lists
18565      # what "hidden" libraries, object files and flags are used when
18566      # linking a shared library.
18567      #
18568      # There doesn't appear to be a way to prevent this compiler from
18569      # explicitly linking system object files so we need to strip them
18570      # from the output so that they don't get included in the library
18571      # dependencies.
18572      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'
18573      ;;
18574    *)
18575      if test "$GXX" = yes; then
18576        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'
18577      else
18578        # FIXME: insert proper C++ library support
18579        ld_shlibs_CXX=no
18580      fi
18581      ;;
18582    esac
18583    ;;
18584  hpux10*|hpux11*)
18585    if test $with_gnu_ld = no; then
18586      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18587      hardcode_libdir_separator_CXX=:
18588
18589      case $host_cpu in
18590      hppa*64*|ia64*) ;;
18591      *)
18592	export_dynamic_flag_spec_CXX='${wl}-E'
18593        ;;
18594      esac
18595    fi
18596    case $host_cpu in
18597    hppa*64*|ia64*)
18598      hardcode_direct_CXX=no
18599      hardcode_shlibpath_var_CXX=no
18600      ;;
18601    *)
18602      hardcode_direct_CXX=yes
18603      hardcode_minus_L_CXX=yes # Not in the search PATH,
18604					      # but as the default
18605					      # location of the library.
18606      ;;
18607    esac
18608
18609    case $cc_basename in
18610      CC*)
18611	# FIXME: insert proper C++ library support
18612	ld_shlibs_CXX=no
18613	;;
18614      aCC*)
18615	case $host_cpu in
18616	hppa*64*)
18617	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18618	  ;;
18619	ia64*)
18620	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18621	  ;;
18622	*)
18623	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18624	  ;;
18625	esac
18626	# Commands to make compiler produce verbose output that lists
18627	# what "hidden" libraries, object files and flags are used when
18628	# linking a shared library.
18629	#
18630	# There doesn't appear to be a way to prevent this compiler from
18631	# explicitly linking system object files so we need to strip them
18632	# from the output so that they don't get included in the library
18633	# dependencies.
18634	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'
18635	;;
18636      *)
18637	if test "$GXX" = yes; then
18638	  if test $with_gnu_ld = no; then
18639	    case $host_cpu in
18640	    hppa*64*)
18641	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18642	      ;;
18643	    ia64*)
18644	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18645	      ;;
18646	    *)
18647	      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'
18648	      ;;
18649	    esac
18650	  fi
18651	else
18652	  # FIXME: insert proper C++ library support
18653	  ld_shlibs_CXX=no
18654	fi
18655	;;
18656    esac
18657    ;;
18658  interix[3-9]*)
18659    hardcode_direct_CXX=no
18660    hardcode_shlibpath_var_CXX=no
18661    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18662    export_dynamic_flag_spec_CXX='${wl}-E'
18663    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18664    # Instead, shared libraries are loaded at an image base (0x10000000 by
18665    # default) and relocated if they conflict, which is a slow very memory
18666    # consuming and fragmenting process.  To avoid this, we pick a random,
18667    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18668    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18669    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'
18670    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'
18671    ;;
18672  irix5* | irix6*)
18673    case $cc_basename in
18674      CC*)
18675	# SGI C++
18676	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'
18677
18678	# Archives containing C++ object files must be created using
18679	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18680	# necessary to make sure instantiated templates are included
18681	# in the archive.
18682	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18683	;;
18684      *)
18685	if test "$GXX" = yes; then
18686	  if test "$with_gnu_ld" = no; then
18687	    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'
18688	  else
18689	    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'
18690	  fi
18691	fi
18692	link_all_deplibs_CXX=yes
18693	;;
18694    esac
18695    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18696    hardcode_libdir_separator_CXX=:
18697    ;;
18698  linux* | k*bsd*-gnu)
18699    case $cc_basename in
18700      KCC*)
18701	# Kuck and Associates, Inc. (KAI) C++ Compiler
18702
18703	# KCC will only create a shared library if the output file
18704	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18705	# to its proper name (with version) after linking.
18706	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'
18707	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'
18708	# Commands to make compiler produce verbose output that lists
18709	# what "hidden" libraries, object files and flags are used when
18710	# linking a shared library.
18711	#
18712	# There doesn't appear to be a way to prevent this compiler from
18713	# explicitly linking system object files so we need to strip them
18714	# from the output so that they don't get included in the library
18715	# dependencies.
18716	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'
18717
18718	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18719	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18720
18721	# Archives containing C++ object files must be created using
18722	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18723	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18724	;;
18725      icpc*)
18726	# Intel C++
18727	with_gnu_ld=yes
18728	# version 8.0 and above of icpc choke on multiply defined symbols
18729	# if we add $predep_objects and $postdep_objects, however 7.1 and
18730	# earlier do not add the objects themselves.
18731	case `$CC -V 2>&1` in
18732	*"Version 7."*)
18733  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18734  	  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'
18735	  ;;
18736	*)  # Version 8.0 or newer
18737	  tmp_idyn=
18738	  case $host_cpu in
18739	    ia64*) tmp_idyn=' -i_dynamic';;
18740	  esac
18741  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18742	  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'
18743	  ;;
18744	esac
18745	archive_cmds_need_lc_CXX=no
18746	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18747	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18748	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18749	;;
18750      pgCC* | pgcpp*)
18751        # Portland Group C++ compiler
18752	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18753  	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'
18754
18755	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18756	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18757	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'
18758        ;;
18759      cxx*)
18760	# Compaq C++
18761	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18762	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'
18763
18764	runpath_var=LD_RUN_PATH
18765	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18766	hardcode_libdir_separator_CXX=:
18767
18768	# Commands to make compiler produce verbose output that lists
18769	# what "hidden" libraries, object files and flags are used when
18770	# linking a shared library.
18771	#
18772	# There doesn't appear to be a way to prevent this compiler from
18773	# explicitly linking system object files so we need to strip them
18774	# from the output so that they don't get included in the library
18775	# dependencies.
18776	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'
18777	;;
18778      *)
18779	case `$CC -V 2>&1 | sed 5q` in
18780	*Sun\ C*)
18781	  # Sun C++ 5.9
18782	  no_undefined_flag_CXX=' -zdefs'
18783	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18784	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
18785	  hardcode_libdir_flag_spec_CXX='-R$libdir'
18786	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18787
18788	  # Not sure whether something based on
18789	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18790	  # would be better.
18791	  output_verbose_link_cmd='echo'
18792
18793	  # Archives containing C++ object files must be created using
18794	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18795	  # necessary to make sure instantiated templates are included
18796	  # in the archive.
18797	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18798	  ;;
18799	esac
18800	;;
18801    esac
18802    ;;
18803  lynxos*)
18804    # FIXME: insert proper C++ library support
18805    ld_shlibs_CXX=no
18806    ;;
18807  m88k*)
18808    # FIXME: insert proper C++ library support
18809    ld_shlibs_CXX=no
18810    ;;
18811  mvs*)
18812    case $cc_basename in
18813      cxx*)
18814	# FIXME: insert proper C++ library support
18815	ld_shlibs_CXX=no
18816	;;
18817      *)
18818	# FIXME: insert proper C++ library support
18819	ld_shlibs_CXX=no
18820	;;
18821    esac
18822    ;;
18823  netbsd*)
18824    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18825      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18826      wlarc=
18827      hardcode_libdir_flag_spec_CXX='-R$libdir'
18828      hardcode_direct_CXX=yes
18829      hardcode_shlibpath_var_CXX=no
18830    fi
18831    # Workaround some broken pre-1.5 toolchains
18832    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18833    ;;
18834  openbsd2*)
18835    # C++ shared libraries are fairly broken
18836    ld_shlibs_CXX=no
18837    ;;
18838  openbsd*)
18839    if test -f /usr/libexec/ld.so; then
18840      hardcode_direct_CXX=yes
18841      hardcode_shlibpath_var_CXX=no
18842      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18843      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18844      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18845	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18846	export_dynamic_flag_spec_CXX='${wl}-E'
18847	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18848      fi
18849      output_verbose_link_cmd='echo'
18850    else
18851      ld_shlibs_CXX=no
18852    fi
18853    ;;
18854  osf3*)
18855    case $cc_basename in
18856      KCC*)
18857	# Kuck and Associates, Inc. (KAI) C++ Compiler
18858
18859	# KCC will only create a shared library if the output file
18860	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18861	# to its proper name (with version) after linking.
18862	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'
18863
18864	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18865	hardcode_libdir_separator_CXX=:
18866
18867	# Archives containing C++ object files must be created using
18868	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18869	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18870
18871	;;
18872      RCC*)
18873	# Rational C++ 2.4.1
18874	# FIXME: insert proper C++ library support
18875	ld_shlibs_CXX=no
18876	;;
18877      cxx*)
18878	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18879	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'
18880
18881	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18882	hardcode_libdir_separator_CXX=:
18883
18884	# Commands to make compiler produce verbose output that lists
18885	# what "hidden" libraries, object files and flags are used when
18886	# linking a shared library.
18887	#
18888	# There doesn't appear to be a way to prevent this compiler from
18889	# explicitly linking system object files so we need to strip them
18890	# from the output so that they don't get included in the library
18891	# dependencies.
18892	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'
18893	;;
18894      *)
18895	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18896	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18897	  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'
18898
18899	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18900	  hardcode_libdir_separator_CXX=:
18901
18902	  # Commands to make compiler produce verbose output that lists
18903	  # what "hidden" libraries, object files and flags are used when
18904	  # linking a shared library.
18905	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18906
18907	else
18908	  # FIXME: insert proper C++ library support
18909	  ld_shlibs_CXX=no
18910	fi
18911	;;
18912    esac
18913    ;;
18914  osf4* | osf5*)
18915    case $cc_basename in
18916      KCC*)
18917	# Kuck and Associates, Inc. (KAI) C++ Compiler
18918
18919	# KCC will only create a shared library if the output file
18920	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18921	# to its proper name (with version) after linking.
18922	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'
18923
18924	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18925	hardcode_libdir_separator_CXX=:
18926
18927	# Archives containing C++ object files must be created using
18928	# the KAI C++ compiler.
18929	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18930	;;
18931      RCC*)
18932	# Rational C++ 2.4.1
18933	# FIXME: insert proper C++ library support
18934	ld_shlibs_CXX=no
18935	;;
18936      cxx*)
18937	allow_undefined_flag_CXX=' -expect_unresolved \*'
18938	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'
18939	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18940	  echo "-hidden">> $lib.exp~
18941	  $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~
18942	  $rm $lib.exp'
18943
18944	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18945	hardcode_libdir_separator_CXX=:
18946
18947	# Commands to make compiler produce verbose output that lists
18948	# what "hidden" libraries, object files and flags are used when
18949	# linking a shared library.
18950	#
18951	# There doesn't appear to be a way to prevent this compiler from
18952	# explicitly linking system object files so we need to strip them
18953	# from the output so that they don't get included in the library
18954	# dependencies.
18955	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'
18956	;;
18957      *)
18958	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18959	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18960	 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'
18961
18962	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18963	  hardcode_libdir_separator_CXX=:
18964
18965	  # Commands to make compiler produce verbose output that lists
18966	  # what "hidden" libraries, object files and flags are used when
18967	  # linking a shared library.
18968	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18969
18970	else
18971	  # FIXME: insert proper C++ library support
18972	  ld_shlibs_CXX=no
18973	fi
18974	;;
18975    esac
18976    ;;
18977  psos*)
18978    # FIXME: insert proper C++ library support
18979    ld_shlibs_CXX=no
18980    ;;
18981  sunos4*)
18982    case $cc_basename in
18983      CC*)
18984	# Sun C++ 4.x
18985	# FIXME: insert proper C++ library support
18986	ld_shlibs_CXX=no
18987	;;
18988      lcc*)
18989	# Lucid
18990	# FIXME: insert proper C++ library support
18991	ld_shlibs_CXX=no
18992	;;
18993      *)
18994	# FIXME: insert proper C++ library support
18995	ld_shlibs_CXX=no
18996	;;
18997    esac
18998    ;;
18999  solaris*)
19000    case $cc_basename in
19001      CC*)
19002	# Sun C++ 4.2, 5.x and Centerline C++
19003        archive_cmds_need_lc_CXX=yes
19004	no_undefined_flag_CXX=' -zdefs'
19005	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19006	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19007	$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'
19008
19009	hardcode_libdir_flag_spec_CXX='-R$libdir'
19010	hardcode_shlibpath_var_CXX=no
19011	case $host_os in
19012	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19013	  *)
19014	    # The compiler driver will combine and reorder linker options,
19015	    # but understands `-z linker_flag'.
19016	    # Supported since Solaris 2.6 (maybe 2.5.1?)
19017	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19018	    ;;
19019	esac
19020	link_all_deplibs_CXX=yes
19021
19022	output_verbose_link_cmd='echo'
19023
19024	# Archives containing C++ object files must be created using
19025	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
19026	# necessary to make sure instantiated templates are included
19027	# in the archive.
19028	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19029	;;
19030      gcx*)
19031	# Green Hills C++ Compiler
19032	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19033
19034	# The C++ compiler must be used to create the archive.
19035	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19036	;;
19037      *)
19038	# GNU C++ compiler with Solaris linker
19039	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19040	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19041	  if $CC --version | grep -v '^2\.7' > /dev/null; then
19042	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19043	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19044		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19045
19046	    # Commands to make compiler produce verbose output that lists
19047	    # what "hidden" libraries, object files and flags are used when
19048	    # linking a shared library.
19049	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19050	  else
19051	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
19052	    # platform.
19053	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19054	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19055		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19056
19057	    # Commands to make compiler produce verbose output that lists
19058	    # what "hidden" libraries, object files and flags are used when
19059	    # linking a shared library.
19060	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19061	  fi
19062
19063	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19064	  case $host_os in
19065	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19066	  *)
19067	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19068	    ;;
19069	  esac
19070	fi
19071	;;
19072    esac
19073    ;;
19074  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19075    no_undefined_flag_CXX='${wl}-z,text'
19076    archive_cmds_need_lc_CXX=no
19077    hardcode_shlibpath_var_CXX=no
19078    runpath_var='LD_RUN_PATH'
19079
19080    case $cc_basename in
19081      CC*)
19082	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19083	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19084	;;
19085      *)
19086	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19087	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19088	;;
19089    esac
19090    ;;
19091  sysv5* | sco3.2v5* | sco5v6*)
19092    # Note: We can NOT use -z defs as we might desire, because we do not
19093    # link with -lc, and that would cause any symbols used from libc to
19094    # always be unresolved, which means just about no library would
19095    # ever link correctly.  If we're not using GNU ld we use -z text
19096    # though, which does catch some bad symbols but isn't as heavy-handed
19097    # as -z defs.
19098    # For security reasons, it is highly recommended that you always
19099    # use absolute paths for naming shared libraries, and exclude the
19100    # DT_RUNPATH tag from executables and libraries.  But doing so
19101    # requires that you compile everything twice, which is a pain.
19102    # So that behaviour is only enabled if SCOABSPATH is set to a
19103    # non-empty value in the environment.  Most likely only useful for
19104    # creating official distributions of packages.
19105    # This is a hack until libtool officially supports absolute path
19106    # names for shared libraries.
19107    no_undefined_flag_CXX='${wl}-z,text'
19108    allow_undefined_flag_CXX='${wl}-z,nodefs'
19109    archive_cmds_need_lc_CXX=no
19110    hardcode_shlibpath_var_CXX=no
19111    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19112    hardcode_libdir_separator_CXX=':'
19113    link_all_deplibs_CXX=yes
19114    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19115    runpath_var='LD_RUN_PATH'
19116
19117    case $cc_basename in
19118      CC*)
19119	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19120	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19121	;;
19122      *)
19123	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19124	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19125	;;
19126    esac
19127    ;;
19128  tandem*)
19129    case $cc_basename in
19130      NCC*)
19131	# NonStop-UX NCC 3.20
19132	# FIXME: insert proper C++ library support
19133	ld_shlibs_CXX=no
19134	;;
19135      *)
19136	# FIXME: insert proper C++ library support
19137	ld_shlibs_CXX=no
19138	;;
19139    esac
19140    ;;
19141  vxworks*)
19142    # FIXME: insert proper C++ library support
19143    ld_shlibs_CXX=no
19144    ;;
19145  *)
19146    # FIXME: insert proper C++ library support
19147    ld_shlibs_CXX=no
19148    ;;
19149esac
19150{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19151$as_echo "$ld_shlibs_CXX" >&6; }
19152test "$ld_shlibs_CXX" = no && can_build_shared=no
19153
19154GCC_CXX="$GXX"
19155LD_CXX="$LD"
19156
19157cat > conftest.$ac_ext <<EOF
19158class Foo
19159{
19160public:
19161  Foo (void) { a = 0; }
19162private:
19163  int a;
19164};
19165EOF
19166
19167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19168  (eval $ac_compile) 2>&5
19169  ac_status=$?
19170  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171  (exit $ac_status); }; then
19172  # Parse the compiler output and extract the necessary
19173  # objects, libraries and library flags.
19174
19175  # Sentinel used to keep track of whether or not we are before
19176  # the conftest object file.
19177  pre_test_object_deps_done=no
19178
19179  # The `*' in the case matches for architectures that use `case' in
19180  # $output_verbose_cmd can trigger glob expansion during the loop
19181  # eval without this substitution.
19182  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19183
19184  for p in `eval $output_verbose_link_cmd`; do
19185    case $p in
19186
19187    -L* | -R* | -l*)
19188       # Some compilers place space between "-{L,R}" and the path.
19189       # Remove the space.
19190       if test $p = "-L" \
19191	  || test $p = "-R"; then
19192	 prev=$p
19193	 continue
19194       else
19195	 prev=
19196       fi
19197
19198       if test "$pre_test_object_deps_done" = no; then
19199	 case $p in
19200	 -L* | -R*)
19201	   # Internal compiler library paths should come after those
19202	   # provided the user.  The postdeps already come after the
19203	   # user supplied libs so there is no need to process them.
19204	   if test -z "$compiler_lib_search_path_CXX"; then
19205	     compiler_lib_search_path_CXX="${prev}${p}"
19206	   else
19207	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19208	   fi
19209	   ;;
19210	 # The "-l" case would never come before the object being
19211	 # linked, so don't bother handling this case.
19212	 esac
19213       else
19214	 if test -z "$postdeps_CXX"; then
19215	   postdeps_CXX="${prev}${p}"
19216	 else
19217	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19218	 fi
19219       fi
19220       ;;
19221
19222    *.$objext)
19223       # This assumes that the test object file only shows up
19224       # once in the compiler output.
19225       if test "$p" = "conftest.$objext"; then
19226	 pre_test_object_deps_done=yes
19227	 continue
19228       fi
19229
19230       if test "$pre_test_object_deps_done" = no; then
19231	 if test -z "$predep_objects_CXX"; then
19232	   predep_objects_CXX="$p"
19233	 else
19234	   predep_objects_CXX="$predep_objects_CXX $p"
19235	 fi
19236       else
19237	 if test -z "$postdep_objects_CXX"; then
19238	   postdep_objects_CXX="$p"
19239	 else
19240	   postdep_objects_CXX="$postdep_objects_CXX $p"
19241	 fi
19242       fi
19243       ;;
19244
19245    *) ;; # Ignore the rest.
19246
19247    esac
19248  done
19249
19250  # Clean up.
19251  rm -f a.out a.exe
19252else
19253  echo "libtool.m4: error: problem compiling CXX test program"
19254fi
19255
19256$rm -f confest.$objext
19257
19258compiler_lib_search_dirs_CXX=
19259if test -n "$compiler_lib_search_path_CXX"; then
19260  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19261fi
19262
19263# PORTME: override above test on systems where it is broken
19264case $host_os in
19265interix[3-9]*)
19266  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19267  # hack all around it, let's just trust "g++" to DTRT.
19268  predep_objects_CXX=
19269  postdep_objects_CXX=
19270  postdeps_CXX=
19271  ;;
19272
19273linux*)
19274  case `$CC -V 2>&1 | sed 5q` in
19275  *Sun\ C*)
19276    # Sun C++ 5.9
19277    #
19278    # The more standards-conforming stlport4 library is
19279    # incompatible with the Cstd library. Avoid specifying
19280    # it if it's in CXXFLAGS. Ignore libCrun as
19281    # -library=stlport4 depends on it.
19282    case " $CXX $CXXFLAGS " in
19283    *" -library=stlport4 "*)
19284      solaris_use_stlport4=yes
19285      ;;
19286    esac
19287    if test "$solaris_use_stlport4" != yes; then
19288      postdeps_CXX='-library=Cstd -library=Crun'
19289    fi
19290    ;;
19291  esac
19292  ;;
19293
19294solaris*)
19295  case $cc_basename in
19296  CC*)
19297    # The more standards-conforming stlport4 library is
19298    # incompatible with the Cstd library. Avoid specifying
19299    # it if it's in CXXFLAGS. Ignore libCrun as
19300    # -library=stlport4 depends on it.
19301    case " $CXX $CXXFLAGS " in
19302    *" -library=stlport4 "*)
19303      solaris_use_stlport4=yes
19304      ;;
19305    esac
19306
19307    # Adding this requires a known-good setup of shared libraries for
19308    # Sun compiler versions before 5.6, else PIC objects from an old
19309    # archive will be linked into the output, leading to subtle bugs.
19310    if test "$solaris_use_stlport4" != yes; then
19311      postdeps_CXX='-library=Cstd -library=Crun'
19312    fi
19313    ;;
19314  esac
19315  ;;
19316esac
19317
19318case " $postdeps_CXX " in
19319*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19320esac
19321
19322lt_prog_compiler_wl_CXX=
19323lt_prog_compiler_pic_CXX=
19324lt_prog_compiler_static_CXX=
19325
19326{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19327$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19328
19329  # C++ specific cases for pic, static, wl, etc.
19330  if test "$GXX" = yes; then
19331    lt_prog_compiler_wl_CXX='-Wl,'
19332    lt_prog_compiler_static_CXX='-static'
19333
19334    case $host_os in
19335    aix*)
19336      # All AIX code is PIC.
19337      if test "$host_cpu" = ia64; then
19338	# AIX 5 now supports IA64 processor
19339	lt_prog_compiler_static_CXX='-Bstatic'
19340      fi
19341      ;;
19342    amigaos*)
19343      # FIXME: we need at least 68020 code to build shared libraries, but
19344      # adding the `-m68020' flag to GCC prevents building anything better,
19345      # like `-m68040'.
19346      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19347      ;;
19348    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19349      # PIC is the default for these OSes.
19350      ;;
19351    mingw* | cygwin* | os2* | pw32*)
19352      # This hack is so that the source file can tell whether it is being
19353      # built for inclusion in a dll (and should export symbols for example).
19354      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19355      # (--disable-auto-import) libraries
19356      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19357      ;;
19358    darwin* | rhapsody*)
19359      # PIC is the default on this platform
19360      # Common symbols not allowed in MH_DYLIB files
19361      lt_prog_compiler_pic_CXX='-fno-common'
19362      ;;
19363    *djgpp*)
19364      # DJGPP does not support shared libraries at all
19365      lt_prog_compiler_pic_CXX=
19366      ;;
19367    interix[3-9]*)
19368      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19369      # Instead, we relocate shared libraries at runtime.
19370      ;;
19371    sysv4*MP*)
19372      if test -d /usr/nec; then
19373	lt_prog_compiler_pic_CXX=-Kconform_pic
19374      fi
19375      ;;
19376    hpux*)
19377      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19378      # not for PA HP-UX.
19379      case $host_cpu in
19380      hppa*64*|ia64*)
19381	;;
19382      *)
19383	lt_prog_compiler_pic_CXX='-fPIC'
19384	;;
19385      esac
19386      ;;
19387    *)
19388      lt_prog_compiler_pic_CXX='-fPIC'
19389      ;;
19390    esac
19391  else
19392    case $host_os in
19393      aix[4-9]*)
19394	# All AIX code is PIC.
19395	if test "$host_cpu" = ia64; then
19396	  # AIX 5 now supports IA64 processor
19397	  lt_prog_compiler_static_CXX='-Bstatic'
19398	else
19399	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19400	fi
19401	;;
19402      chorus*)
19403	case $cc_basename in
19404	cxch68*)
19405	  # Green Hills C++ Compiler
19406	  # _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"
19407	  ;;
19408	esac
19409	;;
19410       darwin*)
19411         # PIC is the default on this platform
19412         # Common symbols not allowed in MH_DYLIB files
19413         case $cc_basename in
19414           xlc*)
19415           lt_prog_compiler_pic_CXX='-qnocommon'
19416           lt_prog_compiler_wl_CXX='-Wl,'
19417           ;;
19418         esac
19419       ;;
19420      dgux*)
19421	case $cc_basename in
19422	  ec++*)
19423	    lt_prog_compiler_pic_CXX='-KPIC'
19424	    ;;
19425	  ghcx*)
19426	    # Green Hills C++ Compiler
19427	    lt_prog_compiler_pic_CXX='-pic'
19428	    ;;
19429	  *)
19430	    ;;
19431	esac
19432	;;
19433      freebsd* | dragonfly*)
19434	# FreeBSD uses GNU C++
19435	;;
19436      hpux9* | hpux10* | hpux11*)
19437	case $cc_basename in
19438	  CC*)
19439	    lt_prog_compiler_wl_CXX='-Wl,'
19440	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19441	    if test "$host_cpu" != ia64; then
19442	      lt_prog_compiler_pic_CXX='+Z'
19443	    fi
19444	    ;;
19445	  aCC*)
19446	    lt_prog_compiler_wl_CXX='-Wl,'
19447	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19448	    case $host_cpu in
19449	    hppa*64*|ia64*)
19450	      # +Z the default
19451	      ;;
19452	    *)
19453	      lt_prog_compiler_pic_CXX='+Z'
19454	      ;;
19455	    esac
19456	    ;;
19457	  *)
19458	    ;;
19459	esac
19460	;;
19461      interix*)
19462	# This is c89, which is MS Visual C++ (no shared libs)
19463	# Anyone wants to do a port?
19464	;;
19465      irix5* | irix6* | nonstopux*)
19466	case $cc_basename in
19467	  CC*)
19468	    lt_prog_compiler_wl_CXX='-Wl,'
19469	    lt_prog_compiler_static_CXX='-non_shared'
19470	    # CC pic flag -KPIC is the default.
19471	    ;;
19472	  *)
19473	    ;;
19474	esac
19475	;;
19476      linux* | k*bsd*-gnu)
19477	case $cc_basename in
19478	  KCC*)
19479	    # KAI C++ Compiler
19480	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19481	    lt_prog_compiler_pic_CXX='-fPIC'
19482	    ;;
19483	  icpc* | ecpc*)
19484	    # Intel C++
19485	    lt_prog_compiler_wl_CXX='-Wl,'
19486	    lt_prog_compiler_pic_CXX='-KPIC'
19487	    lt_prog_compiler_static_CXX='-static'
19488	    ;;
19489	  pgCC* | pgcpp*)
19490	    # Portland Group C++ compiler.
19491	    lt_prog_compiler_wl_CXX='-Wl,'
19492	    lt_prog_compiler_pic_CXX='-fpic'
19493	    lt_prog_compiler_static_CXX='-Bstatic'
19494	    ;;
19495	  cxx*)
19496	    # Compaq C++
19497	    # Make sure the PIC flag is empty.  It appears that all Alpha
19498	    # Linux and Compaq Tru64 Unix objects are PIC.
19499	    lt_prog_compiler_pic_CXX=
19500	    lt_prog_compiler_static_CXX='-non_shared'
19501	    ;;
19502	  *)
19503	    case `$CC -V 2>&1 | sed 5q` in
19504	    *Sun\ C*)
19505	      # Sun C++ 5.9
19506	      lt_prog_compiler_pic_CXX='-KPIC'
19507	      lt_prog_compiler_static_CXX='-Bstatic'
19508	      lt_prog_compiler_wl_CXX='-Qoption ld '
19509	      ;;
19510	    esac
19511	    ;;
19512	esac
19513	;;
19514      lynxos*)
19515	;;
19516      m88k*)
19517	;;
19518      mvs*)
19519	case $cc_basename in
19520	  cxx*)
19521	    lt_prog_compiler_pic_CXX='-W c,exportall'
19522	    ;;
19523	  *)
19524	    ;;
19525	esac
19526	;;
19527      netbsd*)
19528	;;
19529      osf3* | osf4* | osf5*)
19530	case $cc_basename in
19531	  KCC*)
19532	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19533	    ;;
19534	  RCC*)
19535	    # Rational C++ 2.4.1
19536	    lt_prog_compiler_pic_CXX='-pic'
19537	    ;;
19538	  cxx*)
19539	    # Digital/Compaq C++
19540	    lt_prog_compiler_wl_CXX='-Wl,'
19541	    # Make sure the PIC flag is empty.  It appears that all Alpha
19542	    # Linux and Compaq Tru64 Unix objects are PIC.
19543	    lt_prog_compiler_pic_CXX=
19544	    lt_prog_compiler_static_CXX='-non_shared'
19545	    ;;
19546	  *)
19547	    ;;
19548	esac
19549	;;
19550      psos*)
19551	;;
19552      solaris*)
19553	case $cc_basename in
19554	  CC*)
19555	    # Sun C++ 4.2, 5.x and Centerline C++
19556	    lt_prog_compiler_pic_CXX='-KPIC'
19557	    lt_prog_compiler_static_CXX='-Bstatic'
19558	    lt_prog_compiler_wl_CXX='-Qoption ld '
19559	    ;;
19560	  gcx*)
19561	    # Green Hills C++ Compiler
19562	    lt_prog_compiler_pic_CXX='-PIC'
19563	    ;;
19564	  *)
19565	    ;;
19566	esac
19567	;;
19568      sunos4*)
19569	case $cc_basename in
19570	  CC*)
19571	    # Sun C++ 4.x
19572	    lt_prog_compiler_pic_CXX='-pic'
19573	    lt_prog_compiler_static_CXX='-Bstatic'
19574	    ;;
19575	  lcc*)
19576	    # Lucid
19577	    lt_prog_compiler_pic_CXX='-pic'
19578	    ;;
19579	  *)
19580	    ;;
19581	esac
19582	;;
19583      tandem*)
19584	case $cc_basename in
19585	  NCC*)
19586	    # NonStop-UX NCC 3.20
19587	    lt_prog_compiler_pic_CXX='-KPIC'
19588	    ;;
19589	  *)
19590	    ;;
19591	esac
19592	;;
19593      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19594	case $cc_basename in
19595	  CC*)
19596	    lt_prog_compiler_wl_CXX='-Wl,'
19597	    lt_prog_compiler_pic_CXX='-KPIC'
19598	    lt_prog_compiler_static_CXX='-Bstatic'
19599	    ;;
19600	esac
19601	;;
19602      vxworks*)
19603	;;
19604      *)
19605	lt_prog_compiler_can_build_shared_CXX=no
19606	;;
19607    esac
19608  fi
19609
19610{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19611$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19612
19613#
19614# Check to make sure the PIC flag actually works.
19615#
19616if test -n "$lt_prog_compiler_pic_CXX"; then
19617
19618{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19619$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19620if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
19621  $as_echo_n "(cached) " >&6
19622else
19623  lt_cv_prog_compiler_pic_works_CXX=no
19624  ac_outfile=conftest.$ac_objext
19625   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19626   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19627   # Insert the option either (1) after the last *FLAGS variable, or
19628   # (2) before a word containing "conftest.", or (3) at the end.
19629   # Note that $ac_compile itself does not contain backslashes and begins
19630   # with a dollar sign (not a hyphen), so the echo should work correctly.
19631   # The option is referenced via a variable to avoid confusing sed.
19632   lt_compile=`echo "$ac_compile" | $SED \
19633   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19634   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19635   -e 's:$: $lt_compiler_flag:'`
19636   (eval echo "\"\$as_me:19636: $lt_compile\"" >&5)
19637   (eval "$lt_compile" 2>conftest.err)
19638   ac_status=$?
19639   cat conftest.err >&5
19640   echo "$as_me:19640: \$? = $ac_status" >&5
19641   if (exit $ac_status) && test -s "$ac_outfile"; then
19642     # The compiler can only warn and ignore the option if not recognized
19643     # So say no if there are warnings other than the usual output.
19644     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19645     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19646     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19647       lt_cv_prog_compiler_pic_works_CXX=yes
19648     fi
19649   fi
19650   $rm conftest*
19651
19652fi
19653{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19654$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19655
19656if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19657    case $lt_prog_compiler_pic_CXX in
19658     "" | " "*) ;;
19659     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19660     esac
19661else
19662    lt_prog_compiler_pic_CXX=
19663     lt_prog_compiler_can_build_shared_CXX=no
19664fi
19665
19666fi
19667case $host_os in
19668  # For platforms which do not support PIC, -DPIC is meaningless:
19669  *djgpp*)
19670    lt_prog_compiler_pic_CXX=
19671    ;;
19672  *)
19673    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19674    ;;
19675esac
19676
19677#
19678# Check to make sure the static flag actually works.
19679#
19680wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19681{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19682$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19683if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
19684  $as_echo_n "(cached) " >&6
19685else
19686  lt_cv_prog_compiler_static_works_CXX=no
19687   save_LDFLAGS="$LDFLAGS"
19688   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19689   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19690   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19691     # The linker can only warn and ignore the option if not recognized
19692     # So say no if there are warnings
19693     if test -s conftest.err; then
19694       # Append any errors to the config.log.
19695       cat conftest.err 1>&5
19696       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19697       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19698       if diff conftest.exp conftest.er2 >/dev/null; then
19699         lt_cv_prog_compiler_static_works_CXX=yes
19700       fi
19701     else
19702       lt_cv_prog_compiler_static_works_CXX=yes
19703     fi
19704   fi
19705   $rm -r conftest*
19706   LDFLAGS="$save_LDFLAGS"
19707
19708fi
19709{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19710$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19711
19712if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19713    :
19714else
19715    lt_prog_compiler_static_CXX=
19716fi
19717
19718
19719{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19720$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19721if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19722  $as_echo_n "(cached) " >&6
19723else
19724  lt_cv_prog_compiler_c_o_CXX=no
19725   $rm -r conftest 2>/dev/null
19726   mkdir conftest
19727   cd conftest
19728   mkdir out
19729   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19730
19731   lt_compiler_flag="-o out/conftest2.$ac_objext"
19732   # Insert the option either (1) after the last *FLAGS variable, or
19733   # (2) before a word containing "conftest.", or (3) at the end.
19734   # Note that $ac_compile itself does not contain backslashes and begins
19735   # with a dollar sign (not a hyphen), so the echo should work correctly.
19736   lt_compile=`echo "$ac_compile" | $SED \
19737   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19738   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19739   -e 's:$: $lt_compiler_flag:'`
19740   (eval echo "\"\$as_me:19740: $lt_compile\"" >&5)
19741   (eval "$lt_compile" 2>out/conftest.err)
19742   ac_status=$?
19743   cat out/conftest.err >&5
19744   echo "$as_me:19744: \$? = $ac_status" >&5
19745   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19746   then
19747     # The compiler can only warn and ignore the option if not recognized
19748     # So say no if there are warnings
19749     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19750     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19751     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19752       lt_cv_prog_compiler_c_o_CXX=yes
19753     fi
19754   fi
19755   chmod u+w . 2>&5
19756   $rm conftest*
19757   # SGI C++ compiler will create directory out/ii_files/ for
19758   # template instantiation
19759   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19760   $rm out/* && rmdir out
19761   cd ..
19762   rmdir conftest
19763   $rm conftest*
19764
19765fi
19766{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19767$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19768
19769
19770hard_links="nottested"
19771if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19772  # do not overwrite the value of need_locks provided by the user
19773  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19774$as_echo_n "checking if we can lock with hard links... " >&6; }
19775  hard_links=yes
19776  $rm conftest*
19777  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19778  touch conftest.a
19779  ln conftest.a conftest.b 2>&5 || hard_links=no
19780  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19781  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19782$as_echo "$hard_links" >&6; }
19783  if test "$hard_links" = no; then
19784    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19785$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19786    need_locks=warn
19787  fi
19788else
19789  need_locks=no
19790fi
19791
19792{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19793$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19794
19795  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19796  case $host_os in
19797  aix[4-9]*)
19798    # If we're using GNU nm, then we don't want the "-C" option.
19799    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19800    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19801      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'
19802    else
19803      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'
19804    fi
19805    ;;
19806  pw32*)
19807    export_symbols_cmds_CXX="$ltdll_cmds"
19808  ;;
19809  cygwin* | mingw*)
19810    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'
19811  ;;
19812  *)
19813    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19814  ;;
19815  esac
19816  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19817
19818{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19819$as_echo "$ld_shlibs_CXX" >&6; }
19820test "$ld_shlibs_CXX" = no && can_build_shared=no
19821
19822#
19823# Do we need to explicitly link libc?
19824#
19825case "x$archive_cmds_need_lc_CXX" in
19826x|xyes)
19827  # Assume -lc should be added
19828  archive_cmds_need_lc_CXX=yes
19829
19830  if test "$enable_shared" = yes && test "$GCC" = yes; then
19831    case $archive_cmds_CXX in
19832    *'~'*)
19833      # FIXME: we may have to deal with multi-command sequences.
19834      ;;
19835    '$CC '*)
19836      # Test whether the compiler implicitly links with -lc since on some
19837      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19838      # to ld, don't add -lc before -lgcc.
19839      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19840$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19841      $rm conftest*
19842      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19843
19844      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19845  (eval $ac_compile) 2>&5
19846  ac_status=$?
19847  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848  (exit $ac_status); } 2>conftest.err; then
19849        soname=conftest
19850        lib=conftest
19851        libobjs=conftest.$ac_objext
19852        deplibs=
19853        wl=$lt_prog_compiler_wl_CXX
19854	pic_flag=$lt_prog_compiler_pic_CXX
19855        compiler_flags=-v
19856        linker_flags=-v
19857        verstring=
19858        output_objdir=.
19859        libname=conftest
19860        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19861        allow_undefined_flag_CXX=
19862        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19863  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19864  ac_status=$?
19865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866  (exit $ac_status); }
19867        then
19868	  archive_cmds_need_lc_CXX=no
19869        else
19870	  archive_cmds_need_lc_CXX=yes
19871        fi
19872        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19873      else
19874        cat conftest.err 1>&5
19875      fi
19876      $rm conftest*
19877      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19878$as_echo "$archive_cmds_need_lc_CXX" >&6; }
19879      ;;
19880    esac
19881  fi
19882  ;;
19883esac
19884
19885{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19886$as_echo_n "checking dynamic linker characteristics... " >&6; }
19887library_names_spec=
19888libname_spec='lib$name'
19889soname_spec=
19890shrext_cmds=".so"
19891postinstall_cmds=
19892postuninstall_cmds=
19893finish_cmds=
19894finish_eval=
19895shlibpath_var=
19896shlibpath_overrides_runpath=unknown
19897version_type=none
19898dynamic_linker="$host_os ld.so"
19899sys_lib_dlsearch_path_spec="/lib /usr/lib"
19900
19901need_lib_prefix=unknown
19902hardcode_into_libs=no
19903
19904# when you set need_version to no, make sure it does not cause -set_version
19905# flags to be left without arguments
19906need_version=unknown
19907
19908case $host_os in
19909aix3*)
19910  version_type=linux
19911  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19912  shlibpath_var=LIBPATH
19913
19914  # AIX 3 has no versioning support, so we append a major version to the name.
19915  soname_spec='${libname}${release}${shared_ext}$major'
19916  ;;
19917
19918aix[4-9]*)
19919  version_type=linux
19920  need_lib_prefix=no
19921  need_version=no
19922  hardcode_into_libs=yes
19923  if test "$host_cpu" = ia64; then
19924    # AIX 5 supports IA64
19925    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19926    shlibpath_var=LD_LIBRARY_PATH
19927  else
19928    # With GCC up to 2.95.x, collect2 would create an import file
19929    # for dependence libraries.  The import file would start with
19930    # the line `#! .'.  This would cause the generated library to
19931    # depend on `.', always an invalid library.  This was fixed in
19932    # development snapshots of GCC prior to 3.0.
19933    case $host_os in
19934      aix4 | aix4.[01] | aix4.[01].*)
19935      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19936	   echo ' yes '
19937	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19938	:
19939      else
19940	can_build_shared=no
19941      fi
19942      ;;
19943    esac
19944    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19945    # soname into executable. Probably we can add versioning support to
19946    # collect2, so additional links can be useful in future.
19947    if test "$aix_use_runtimelinking" = yes; then
19948      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19949      # instead of lib<name>.a to let people know that these are not
19950      # typical AIX shared libraries.
19951      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19952    else
19953      # We preserve .a as extension for shared libraries through AIX4.2
19954      # and later when we are not doing run time linking.
19955      library_names_spec='${libname}${release}.a $libname.a'
19956      soname_spec='${libname}${release}${shared_ext}$major'
19957    fi
19958    shlibpath_var=LIBPATH
19959  fi
19960  ;;
19961
19962amigaos*)
19963  library_names_spec='$libname.ixlibrary $libname.a'
19964  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19965  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'
19966  ;;
19967
19968beos*)
19969  library_names_spec='${libname}${shared_ext}'
19970  dynamic_linker="$host_os ld.so"
19971  shlibpath_var=LIBRARY_PATH
19972  ;;
19973
19974bsdi[45]*)
19975  version_type=linux
19976  need_version=no
19977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19978  soname_spec='${libname}${release}${shared_ext}$major'
19979  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19980  shlibpath_var=LD_LIBRARY_PATH
19981  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19982  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19983  # the default ld.so.conf also contains /usr/contrib/lib and
19984  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19985  # libtool to hard-code these into programs
19986  ;;
19987
19988cygwin* | mingw* | pw32*)
19989  version_type=windows
19990  shrext_cmds=".dll"
19991  need_version=no
19992  need_lib_prefix=no
19993
19994  case $GCC,$host_os in
19995  yes,cygwin* | yes,mingw* | yes,pw32*)
19996    library_names_spec='$libname.dll.a'
19997    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19998    postinstall_cmds='base_file=`basename \${file}`~
19999      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20000      dldir=$destdir/`dirname \$dlpath`~
20001      test -d \$dldir || mkdir -p \$dldir~
20002      $install_prog $dir/$dlname \$dldir/$dlname~
20003      chmod a+x \$dldir/$dlname'
20004    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20005      dlpath=$dir/\$dldll~
20006       $rm \$dlpath'
20007    shlibpath_overrides_runpath=yes
20008
20009    case $host_os in
20010    cygwin*)
20011      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20012      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20013      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20014      ;;
20015    mingw*)
20016      # MinGW DLLs use traditional 'lib' prefix
20017      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20018      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20019      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20020        # It is most probably a Windows format PATH printed by
20021        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20022        # path with ; separators, and with drive letters. We can handle the
20023        # drive letters (cygwin fileutils understands them), so leave them,
20024        # especially as we might pass files found there to a mingw objdump,
20025        # which wouldn't understand a cygwinified path. Ahh.
20026        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20027      else
20028        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20029      fi
20030      ;;
20031    pw32*)
20032      # pw32 DLLs use 'pw' prefix rather than 'lib'
20033      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20034      ;;
20035    esac
20036    ;;
20037
20038  *)
20039    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20040    ;;
20041  esac
20042  dynamic_linker='Win32 ld.exe'
20043  # FIXME: first we should search . and the directory the executable is in
20044  shlibpath_var=PATH
20045  ;;
20046
20047darwin* | rhapsody*)
20048  dynamic_linker="$host_os dyld"
20049  version_type=darwin
20050  need_lib_prefix=no
20051  need_version=no
20052  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20053  soname_spec='${libname}${release}${major}$shared_ext'
20054  shlibpath_overrides_runpath=yes
20055  shlibpath_var=DYLD_LIBRARY_PATH
20056  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20057
20058  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20059  ;;
20060
20061dgux*)
20062  version_type=linux
20063  need_lib_prefix=no
20064  need_version=no
20065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20066  soname_spec='${libname}${release}${shared_ext}$major'
20067  shlibpath_var=LD_LIBRARY_PATH
20068  ;;
20069
20070freebsd1*)
20071  dynamic_linker=no
20072  ;;
20073
20074freebsd* | dragonfly*)
20075  # DragonFly does not have aout.  When/if they implement a new
20076  # versioning mechanism, adjust this.
20077  if test -x /usr/bin/objformat; then
20078    objformat=`/usr/bin/objformat`
20079  else
20080    case $host_os in
20081    freebsd[123]*) objformat=aout ;;
20082    *) objformat=elf ;;
20083    esac
20084  fi
20085  version_type=freebsd-$objformat
20086  case $version_type in
20087    freebsd-elf*)
20088      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20089      need_version=no
20090      need_lib_prefix=no
20091      ;;
20092    freebsd-*)
20093      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20094      need_version=yes
20095      ;;
20096  esac
20097  shlibpath_var=LD_LIBRARY_PATH
20098  case $host_os in
20099  freebsd2*)
20100    shlibpath_overrides_runpath=yes
20101    ;;
20102  freebsd3.[01]* | freebsdelf3.[01]*)
20103    shlibpath_overrides_runpath=yes
20104    hardcode_into_libs=yes
20105    ;;
20106  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20107  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20108    shlibpath_overrides_runpath=no
20109    hardcode_into_libs=yes
20110    ;;
20111  *) # from 4.6 on, and DragonFly
20112    shlibpath_overrides_runpath=yes
20113    hardcode_into_libs=yes
20114    ;;
20115  esac
20116  ;;
20117
20118gnu*)
20119  version_type=linux
20120  need_lib_prefix=no
20121  need_version=no
20122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20123  soname_spec='${libname}${release}${shared_ext}$major'
20124  shlibpath_var=LD_LIBRARY_PATH
20125  hardcode_into_libs=yes
20126  ;;
20127
20128hpux9* | hpux10* | hpux11*)
20129  # Give a soname corresponding to the major version so that dld.sl refuses to
20130  # link against other versions.
20131  version_type=sunos
20132  need_lib_prefix=no
20133  need_version=no
20134  case $host_cpu in
20135  ia64*)
20136    shrext_cmds='.so'
20137    hardcode_into_libs=yes
20138    dynamic_linker="$host_os dld.so"
20139    shlibpath_var=LD_LIBRARY_PATH
20140    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20141    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142    soname_spec='${libname}${release}${shared_ext}$major'
20143    if test "X$HPUX_IA64_MODE" = X32; then
20144      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20145    else
20146      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20147    fi
20148    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20149    ;;
20150   hppa*64*)
20151     shrext_cmds='.sl'
20152     hardcode_into_libs=yes
20153     dynamic_linker="$host_os dld.sl"
20154     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20155     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157     soname_spec='${libname}${release}${shared_ext}$major'
20158     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20159     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20160     ;;
20161   *)
20162    shrext_cmds='.sl'
20163    dynamic_linker="$host_os dld.sl"
20164    shlibpath_var=SHLIB_PATH
20165    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20166    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167    soname_spec='${libname}${release}${shared_ext}$major'
20168    ;;
20169  esac
20170  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20171  postinstall_cmds='chmod 555 $lib'
20172  ;;
20173
20174interix[3-9]*)
20175  version_type=linux
20176  need_lib_prefix=no
20177  need_version=no
20178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20179  soname_spec='${libname}${release}${shared_ext}$major'
20180  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20181  shlibpath_var=LD_LIBRARY_PATH
20182  shlibpath_overrides_runpath=no
20183  hardcode_into_libs=yes
20184  ;;
20185
20186irix5* | irix6* | nonstopux*)
20187  case $host_os in
20188    nonstopux*) version_type=nonstopux ;;
20189    *)
20190	if test "$lt_cv_prog_gnu_ld" = yes; then
20191		version_type=linux
20192	else
20193		version_type=irix
20194	fi ;;
20195  esac
20196  need_lib_prefix=no
20197  need_version=no
20198  soname_spec='${libname}${release}${shared_ext}$major'
20199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20200  case $host_os in
20201  irix5* | nonstopux*)
20202    libsuff= shlibsuff=
20203    ;;
20204  *)
20205    case $LD in # libtool.m4 will add one of these switches to LD
20206    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20207      libsuff= shlibsuff= libmagic=32-bit;;
20208    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20209      libsuff=32 shlibsuff=N32 libmagic=N32;;
20210    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20211      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20212    *) libsuff= shlibsuff= libmagic=never-match;;
20213    esac
20214    ;;
20215  esac
20216  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20217  shlibpath_overrides_runpath=no
20218  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20219  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20220  hardcode_into_libs=yes
20221  ;;
20222
20223# No shared lib support for Linux oldld, aout, or coff.
20224linux*oldld* | linux*aout* | linux*coff*)
20225  dynamic_linker=no
20226  ;;
20227
20228# This must be Linux ELF.
20229linux* | k*bsd*-gnu)
20230  version_type=linux
20231  need_lib_prefix=no
20232  need_version=no
20233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234  soname_spec='${libname}${release}${shared_ext}$major'
20235  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20236  shlibpath_var=LD_LIBRARY_PATH
20237  shlibpath_overrides_runpath=no
20238  # This implies no fast_install, which is unacceptable.
20239  # Some rework will be needed to allow for fast_install
20240  # before this can be enabled.
20241  hardcode_into_libs=yes
20242  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20243  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20244
20245  # Append ld.so.conf contents to the search path
20246  if test -f /etc/ld.so.conf; then
20247    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20248    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20249  fi
20250
20251  # We used to test for /lib/ld.so.1 and disable shared libraries on
20252  # powerpc, because MkLinux only supported shared libraries with the
20253  # GNU dynamic linker.  Since this was broken with cross compilers,
20254  # most powerpc-linux boxes support dynamic linking these days and
20255  # people can always --disable-shared, the test was removed, and we
20256  # assume the GNU/Linux dynamic linker is in use.
20257  dynamic_linker='GNU/Linux ld.so'
20258  ;;
20259
20260netbsd*)
20261  version_type=sunos
20262  need_lib_prefix=no
20263  need_version=no
20264  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20265    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20266    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20267    dynamic_linker='NetBSD (a.out) ld.so'
20268  else
20269    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20270    soname_spec='${libname}${release}${shared_ext}$major'
20271    dynamic_linker='NetBSD ld.elf_so'
20272  fi
20273  shlibpath_var=LD_LIBRARY_PATH
20274  shlibpath_overrides_runpath=yes
20275  hardcode_into_libs=yes
20276  ;;
20277
20278newsos6)
20279  version_type=linux
20280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20281  shlibpath_var=LD_LIBRARY_PATH
20282  shlibpath_overrides_runpath=yes
20283  ;;
20284
20285nto-qnx*)
20286  version_type=linux
20287  need_lib_prefix=no
20288  need_version=no
20289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20290  soname_spec='${libname}${release}${shared_ext}$major'
20291  shlibpath_var=LD_LIBRARY_PATH
20292  shlibpath_overrides_runpath=yes
20293  ;;
20294
20295openbsd*)
20296  version_type=sunos
20297  sys_lib_dlsearch_path_spec="/usr/lib"
20298  need_lib_prefix=no
20299  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20300  case $host_os in
20301    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20302    *)                         need_version=no  ;;
20303  esac
20304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20305  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20306  shlibpath_var=LD_LIBRARY_PATH
20307  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20308    case $host_os in
20309      openbsd2.[89] | openbsd2.[89].*)
20310	shlibpath_overrides_runpath=no
20311	;;
20312      *)
20313	shlibpath_overrides_runpath=yes
20314	;;
20315      esac
20316  else
20317    shlibpath_overrides_runpath=yes
20318  fi
20319  ;;
20320
20321os2*)
20322  libname_spec='$name'
20323  shrext_cmds=".dll"
20324  need_lib_prefix=no
20325  library_names_spec='$libname${shared_ext} $libname.a'
20326  dynamic_linker='OS/2 ld.exe'
20327  shlibpath_var=LIBPATH
20328  ;;
20329
20330osf3* | osf4* | osf5*)
20331  version_type=osf
20332  need_lib_prefix=no
20333  need_version=no
20334  soname_spec='${libname}${release}${shared_ext}$major'
20335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336  shlibpath_var=LD_LIBRARY_PATH
20337  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20338  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20339  ;;
20340
20341rdos*)
20342  dynamic_linker=no
20343  ;;
20344
20345solaris*)
20346  version_type=linux
20347  need_lib_prefix=no
20348  need_version=no
20349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350  soname_spec='${libname}${release}${shared_ext}$major'
20351  shlibpath_var=LD_LIBRARY_PATH
20352  shlibpath_overrides_runpath=yes
20353  hardcode_into_libs=yes
20354  # ldd complains unless libraries are executable
20355  postinstall_cmds='chmod +x $lib'
20356  ;;
20357
20358sunos4*)
20359  version_type=sunos
20360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20361  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20362  shlibpath_var=LD_LIBRARY_PATH
20363  shlibpath_overrides_runpath=yes
20364  if test "$with_gnu_ld" = yes; then
20365    need_lib_prefix=no
20366  fi
20367  need_version=yes
20368  ;;
20369
20370sysv4 | sysv4.3*)
20371  version_type=linux
20372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20373  soname_spec='${libname}${release}${shared_ext}$major'
20374  shlibpath_var=LD_LIBRARY_PATH
20375  case $host_vendor in
20376    sni)
20377      shlibpath_overrides_runpath=no
20378      need_lib_prefix=no
20379      export_dynamic_flag_spec='${wl}-Blargedynsym'
20380      runpath_var=LD_RUN_PATH
20381      ;;
20382    siemens)
20383      need_lib_prefix=no
20384      ;;
20385    motorola)
20386      need_lib_prefix=no
20387      need_version=no
20388      shlibpath_overrides_runpath=no
20389      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20390      ;;
20391  esac
20392  ;;
20393
20394sysv4*MP*)
20395  if test -d /usr/nec ;then
20396    version_type=linux
20397    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20398    soname_spec='$libname${shared_ext}.$major'
20399    shlibpath_var=LD_LIBRARY_PATH
20400  fi
20401  ;;
20402
20403sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20404  version_type=freebsd-elf
20405  need_lib_prefix=no
20406  need_version=no
20407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20408  soname_spec='${libname}${release}${shared_ext}$major'
20409  shlibpath_var=LD_LIBRARY_PATH
20410  hardcode_into_libs=yes
20411  if test "$with_gnu_ld" = yes; then
20412    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20413    shlibpath_overrides_runpath=no
20414  else
20415    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20416    shlibpath_overrides_runpath=yes
20417    case $host_os in
20418      sco3.2v5*)
20419        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20420	;;
20421    esac
20422  fi
20423  sys_lib_dlsearch_path_spec='/usr/lib'
20424  ;;
20425
20426uts4*)
20427  version_type=linux
20428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20429  soname_spec='${libname}${release}${shared_ext}$major'
20430  shlibpath_var=LD_LIBRARY_PATH
20431  ;;
20432
20433*)
20434  dynamic_linker=no
20435  ;;
20436esac
20437{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20438$as_echo "$dynamic_linker" >&6; }
20439test "$dynamic_linker" = no && can_build_shared=no
20440
20441if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20442  $as_echo_n "(cached) " >&6
20443else
20444  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20445fi
20446
20447sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20448if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20449  $as_echo_n "(cached) " >&6
20450else
20451  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20452fi
20453
20454sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20455
20456variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20457if test "$GCC" = yes; then
20458  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20459fi
20460
20461{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20462$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20463hardcode_action_CXX=
20464if test -n "$hardcode_libdir_flag_spec_CXX" || \
20465   test -n "$runpath_var_CXX" || \
20466   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20467
20468  # We can hardcode non-existant directories.
20469  if test "$hardcode_direct_CXX" != no &&
20470     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20471     # have to relink, otherwise we might link with an installed library
20472     # when we should be linking with a yet-to-be-installed one
20473     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20474     test "$hardcode_minus_L_CXX" != no; then
20475    # Linking always hardcodes the temporary library directory.
20476    hardcode_action_CXX=relink
20477  else
20478    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20479    hardcode_action_CXX=immediate
20480  fi
20481else
20482  # We cannot hardcode anything, or else we can only hardcode existing
20483  # directories.
20484  hardcode_action_CXX=unsupported
20485fi
20486{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20487$as_echo "$hardcode_action_CXX" >&6; }
20488
20489if test "$hardcode_action_CXX" = relink; then
20490  # Fast installation is not supported
20491  enable_fast_install=no
20492elif test "$shlibpath_overrides_runpath" = yes ||
20493     test "$enable_shared" = no; then
20494  # Fast installation is not necessary
20495  enable_fast_install=needless
20496fi
20497
20498
20499# The else clause should only fire when bootstrapping the
20500# libtool distribution, otherwise you forgot to ship ltmain.sh
20501# with your package, and you will get complaints that there are
20502# no rules to generate ltmain.sh.
20503if test -f "$ltmain"; then
20504  # See if we are running on zsh, and set the options which allow our commands through
20505  # without removal of \ escapes.
20506  if test -n "${ZSH_VERSION+set}" ; then
20507    setopt NO_GLOB_SUBST
20508  fi
20509  # Now quote all the things that may contain metacharacters while being
20510  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20511  # variables and quote the copies for generation of the libtool script.
20512  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20513    SED SHELL STRIP \
20514    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20515    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20516    deplibs_check_method reload_flag reload_cmds need_locks \
20517    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20518    lt_cv_sys_global_symbol_to_c_name_address \
20519    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20520    old_postinstall_cmds old_postuninstall_cmds \
20521    compiler_CXX \
20522    CC_CXX \
20523    LD_CXX \
20524    lt_prog_compiler_wl_CXX \
20525    lt_prog_compiler_pic_CXX \
20526    lt_prog_compiler_static_CXX \
20527    lt_prog_compiler_no_builtin_flag_CXX \
20528    export_dynamic_flag_spec_CXX \
20529    thread_safe_flag_spec_CXX \
20530    whole_archive_flag_spec_CXX \
20531    enable_shared_with_static_runtimes_CXX \
20532    old_archive_cmds_CXX \
20533    old_archive_from_new_cmds_CXX \
20534    predep_objects_CXX \
20535    postdep_objects_CXX \
20536    predeps_CXX \
20537    postdeps_CXX \
20538    compiler_lib_search_path_CXX \
20539    compiler_lib_search_dirs_CXX \
20540    archive_cmds_CXX \
20541    archive_expsym_cmds_CXX \
20542    postinstall_cmds_CXX \
20543    postuninstall_cmds_CXX \
20544    old_archive_from_expsyms_cmds_CXX \
20545    allow_undefined_flag_CXX \
20546    no_undefined_flag_CXX \
20547    export_symbols_cmds_CXX \
20548    hardcode_libdir_flag_spec_CXX \
20549    hardcode_libdir_flag_spec_ld_CXX \
20550    hardcode_libdir_separator_CXX \
20551    hardcode_automatic_CXX \
20552    module_cmds_CXX \
20553    module_expsym_cmds_CXX \
20554    lt_cv_prog_compiler_c_o_CXX \
20555    fix_srcfile_path_CXX \
20556    exclude_expsyms_CXX \
20557    include_expsyms_CXX; do
20558
20559    case $var in
20560    old_archive_cmds_CXX | \
20561    old_archive_from_new_cmds_CXX | \
20562    archive_cmds_CXX | \
20563    archive_expsym_cmds_CXX | \
20564    module_cmds_CXX | \
20565    module_expsym_cmds_CXX | \
20566    old_archive_from_expsyms_cmds_CXX | \
20567    export_symbols_cmds_CXX | \
20568    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20569    postinstall_cmds | postuninstall_cmds | \
20570    old_postinstall_cmds | old_postuninstall_cmds | \
20571    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20572      # Double-quote double-evaled strings.
20573      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20574      ;;
20575    *)
20576      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20577      ;;
20578    esac
20579  done
20580
20581  case $lt_echo in
20582  *'\$0 --fallback-echo"')
20583    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20584    ;;
20585  esac
20586
20587cfgfile="$ofile"
20588
20589  cat <<__EOF__ >> "$cfgfile"
20590# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20591
20592# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20593
20594# Shell to use when invoking shell scripts.
20595SHELL=$lt_SHELL
20596
20597# Whether or not to build shared libraries.
20598build_libtool_libs=$enable_shared
20599
20600# Whether or not to build static libraries.
20601build_old_libs=$enable_static
20602
20603# Whether or not to add -lc for building shared libraries.
20604build_libtool_need_lc=$archive_cmds_need_lc_CXX
20605
20606# Whether or not to disallow shared libs when runtime libs are static
20607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20608
20609# Whether or not to optimize for fast installation.
20610fast_install=$enable_fast_install
20611
20612# The host system.
20613host_alias=$host_alias
20614host=$host
20615host_os=$host_os
20616
20617# The build system.
20618build_alias=$build_alias
20619build=$build
20620build_os=$build_os
20621
20622# An echo program that does not interpret backslashes.
20623echo=$lt_echo
20624
20625# The archiver.
20626AR=$lt_AR
20627AR_FLAGS=$lt_AR_FLAGS
20628
20629# A C compiler.
20630LTCC=$lt_LTCC
20631
20632# LTCC compiler flags.
20633LTCFLAGS=$lt_LTCFLAGS
20634
20635# A language-specific compiler.
20636CC=$lt_compiler_CXX
20637
20638# Is the compiler the GNU C compiler?
20639with_gcc=$GCC_CXX
20640
20641# An ERE matcher.
20642EGREP=$lt_EGREP
20643
20644# The linker used to build libraries.
20645LD=$lt_LD_CXX
20646
20647# Whether we need hard or soft links.
20648LN_S=$lt_LN_S
20649
20650# A BSD-compatible nm program.
20651NM=$lt_NM
20652
20653# A symbol stripping program
20654STRIP=$lt_STRIP
20655
20656# Used to examine libraries when file_magic_cmd begins "file"
20657MAGIC_CMD=$MAGIC_CMD
20658
20659# Used on cygwin: DLL creation program.
20660DLLTOOL="$DLLTOOL"
20661
20662# Used on cygwin: object dumper.
20663OBJDUMP="$OBJDUMP"
20664
20665# Used on cygwin: assembler.
20666AS="$AS"
20667
20668# The name of the directory that contains temporary libtool files.
20669objdir=$objdir
20670
20671# How to create reloadable object files.
20672reload_flag=$lt_reload_flag
20673reload_cmds=$lt_reload_cmds
20674
20675# How to pass a linker flag through the compiler.
20676wl=$lt_lt_prog_compiler_wl_CXX
20677
20678# Object file suffix (normally "o").
20679objext="$ac_objext"
20680
20681# Old archive suffix (normally "a").
20682libext="$libext"
20683
20684# Shared library suffix (normally ".so").
20685shrext_cmds='$shrext_cmds'
20686
20687# Executable file suffix (normally "").
20688exeext="$exeext"
20689
20690# Additional compiler flags for building library objects.
20691pic_flag=$lt_lt_prog_compiler_pic_CXX
20692pic_mode=$pic_mode
20693
20694# What is the maximum length of a command?
20695max_cmd_len=$lt_cv_sys_max_cmd_len
20696
20697# Does compiler simultaneously support -c and -o options?
20698compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20699
20700# Must we lock files when doing compilation?
20701need_locks=$lt_need_locks
20702
20703# Do we need the lib prefix for modules?
20704need_lib_prefix=$need_lib_prefix
20705
20706# Do we need a version for libraries?
20707need_version=$need_version
20708
20709# Whether dlopen is supported.
20710dlopen_support=$enable_dlopen
20711
20712# Whether dlopen of programs is supported.
20713dlopen_self=$enable_dlopen_self
20714
20715# Whether dlopen of statically linked programs is supported.
20716dlopen_self_static=$enable_dlopen_self_static
20717
20718# Compiler flag to prevent dynamic linking.
20719link_static_flag=$lt_lt_prog_compiler_static_CXX
20720
20721# Compiler flag to turn off builtin functions.
20722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20723
20724# Compiler flag to allow reflexive dlopens.
20725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20726
20727# Compiler flag to generate shared objects directly from archives.
20728whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20729
20730# Compiler flag to generate thread-safe objects.
20731thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20732
20733# Library versioning type.
20734version_type=$version_type
20735
20736# Format of library name prefix.
20737libname_spec=$lt_libname_spec
20738
20739# List of archive names.  First name is the real one, the rest are links.
20740# The last name is the one that the linker finds with -lNAME.
20741library_names_spec=$lt_library_names_spec
20742
20743# The coded name of the library, if different from the real name.
20744soname_spec=$lt_soname_spec
20745
20746# Commands used to build and install an old-style archive.
20747RANLIB=$lt_RANLIB
20748old_archive_cmds=$lt_old_archive_cmds_CXX
20749old_postinstall_cmds=$lt_old_postinstall_cmds
20750old_postuninstall_cmds=$lt_old_postuninstall_cmds
20751
20752# Create an old-style archive from a shared archive.
20753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20754
20755# Create a temporary old-style archive to link instead of a shared archive.
20756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20757
20758# Commands used to build and install a shared archive.
20759archive_cmds=$lt_archive_cmds_CXX
20760archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20761postinstall_cmds=$lt_postinstall_cmds
20762postuninstall_cmds=$lt_postuninstall_cmds
20763
20764# Commands used to build a loadable module (assumed same as above if empty)
20765module_cmds=$lt_module_cmds_CXX
20766module_expsym_cmds=$lt_module_expsym_cmds_CXX
20767
20768# Commands to strip libraries.
20769old_striplib=$lt_old_striplib
20770striplib=$lt_striplib
20771
20772# Dependencies to place before the objects being linked to create a
20773# shared library.
20774predep_objects=$lt_predep_objects_CXX
20775
20776# Dependencies to place after the objects being linked to create a
20777# shared library.
20778postdep_objects=$lt_postdep_objects_CXX
20779
20780# Dependencies to place before the objects being linked to create a
20781# shared library.
20782predeps=$lt_predeps_CXX
20783
20784# Dependencies to place after the objects being linked to create a
20785# shared library.
20786postdeps=$lt_postdeps_CXX
20787
20788# The directories searched by this compiler when creating a shared
20789# library
20790compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20791
20792# The library search path used internally by the compiler when linking
20793# a shared library.
20794compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20795
20796# Method to check whether dependent libraries are shared objects.
20797deplibs_check_method=$lt_deplibs_check_method
20798
20799# Command to use when deplibs_check_method == file_magic.
20800file_magic_cmd=$lt_file_magic_cmd
20801
20802# Flag that allows shared libraries with undefined symbols to be built.
20803allow_undefined_flag=$lt_allow_undefined_flag_CXX
20804
20805# Flag that forces no undefined symbols.
20806no_undefined_flag=$lt_no_undefined_flag_CXX
20807
20808# Commands used to finish a libtool library installation in a directory.
20809finish_cmds=$lt_finish_cmds
20810
20811# Same as above, but a single script fragment to be evaled but not shown.
20812finish_eval=$lt_finish_eval
20813
20814# Take the output of nm and produce a listing of raw symbols and C names.
20815global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20816
20817# Transform the output of nm in a proper C declaration
20818global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20819
20820# Transform the output of nm in a C name address pair
20821global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20822
20823# This is the shared library runtime path variable.
20824runpath_var=$runpath_var
20825
20826# This is the shared library path variable.
20827shlibpath_var=$shlibpath_var
20828
20829# Is shlibpath searched before the hard-coded library search path?
20830shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20831
20832# How to hardcode a shared library path into an executable.
20833hardcode_action=$hardcode_action_CXX
20834
20835# Whether we should hardcode library paths into libraries.
20836hardcode_into_libs=$hardcode_into_libs
20837
20838# Flag to hardcode \$libdir into a binary during linking.
20839# This must work even if \$libdir does not exist.
20840hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20841
20842# If ld is used when linking, flag to hardcode \$libdir into
20843# a binary during linking. This must work even if \$libdir does
20844# not exist.
20845hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20846
20847# Whether we need a single -rpath flag with a separated argument.
20848hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20849
20850# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20851# resulting binary.
20852hardcode_direct=$hardcode_direct_CXX
20853
20854# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20855# resulting binary.
20856hardcode_minus_L=$hardcode_minus_L_CXX
20857
20858# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20859# the resulting binary.
20860hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20861
20862# Set to yes if building a shared library automatically hardcodes DIR into the library
20863# and all subsequent libraries and executables linked against it.
20864hardcode_automatic=$hardcode_automatic_CXX
20865
20866# Variables whose values should be saved in libtool wrapper scripts and
20867# restored at relink time.
20868variables_saved_for_relink="$variables_saved_for_relink"
20869
20870# Whether libtool must link a program against all its dependency libraries.
20871link_all_deplibs=$link_all_deplibs_CXX
20872
20873# Compile-time system search path for libraries
20874sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20875
20876# Run-time system search path for libraries
20877sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20878
20879# Fix the shell variable \$srcfile for the compiler.
20880fix_srcfile_path=$lt_fix_srcfile_path
20881
20882# Set to yes if exported symbols are required.
20883always_export_symbols=$always_export_symbols_CXX
20884
20885# The commands to list exported symbols.
20886export_symbols_cmds=$lt_export_symbols_cmds_CXX
20887
20888# The commands to extract the exported symbol list from a shared archive.
20889extract_expsyms_cmds=$lt_extract_expsyms_cmds
20890
20891# Symbols that should not be listed in the preloaded symbols.
20892exclude_expsyms=$lt_exclude_expsyms_CXX
20893
20894# Symbols that must always be exported.
20895include_expsyms=$lt_include_expsyms_CXX
20896
20897# ### END LIBTOOL TAG CONFIG: $tagname
20898
20899__EOF__
20900
20901
20902else
20903  # If there is no Makefile yet, we rely on a make rule to execute
20904  # `config.status --recheck' to rerun these tests and create the
20905  # libtool script then.
20906  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20907  if test -f "$ltmain_in"; then
20908    test -f Makefile && make "$ltmain"
20909  fi
20910fi
20911
20912
20913ac_ext=c
20914ac_cpp='$CPP $CPPFLAGS'
20915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917ac_compiler_gnu=$ac_cv_c_compiler_gnu
20918
20919CC=$lt_save_CC
20920LDCXX=$LD
20921LD=$lt_save_LD
20922GCC=$lt_save_GCC
20923with_gnu_ldcxx=$with_gnu_ld
20924with_gnu_ld=$lt_save_with_gnu_ld
20925lt_cv_path_LDCXX=$lt_cv_path_LD
20926lt_cv_path_LD=$lt_save_path_LD
20927lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20928lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20929
20930	else
20931	  tagname=""
20932	fi
20933	;;
20934
20935      F77)
20936	if test -n "$F77" && test "X$F77" != "Xno"; then
20937
20938ac_ext=f
20939ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20940ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20941ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20942
20943
20944archive_cmds_need_lc_F77=no
20945allow_undefined_flag_F77=
20946always_export_symbols_F77=no
20947archive_expsym_cmds_F77=
20948export_dynamic_flag_spec_F77=
20949hardcode_direct_F77=no
20950hardcode_libdir_flag_spec_F77=
20951hardcode_libdir_flag_spec_ld_F77=
20952hardcode_libdir_separator_F77=
20953hardcode_minus_L_F77=no
20954hardcode_automatic_F77=no
20955module_cmds_F77=
20956module_expsym_cmds_F77=
20957link_all_deplibs_F77=unknown
20958old_archive_cmds_F77=$old_archive_cmds
20959no_undefined_flag_F77=
20960whole_archive_flag_spec_F77=
20961enable_shared_with_static_runtimes_F77=no
20962
20963# Source file extension for f77 test sources.
20964ac_ext=f
20965
20966# Object file extension for compiled f77 test sources.
20967objext=o
20968objext_F77=$objext
20969
20970# Code to be used in simple compile tests
20971lt_simple_compile_test_code="\
20972      subroutine t
20973      return
20974      end
20975"
20976
20977# Code to be used in simple link tests
20978lt_simple_link_test_code="\
20979      program t
20980      end
20981"
20982
20983# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20984
20985# If no C compiler was specified, use CC.
20986LTCC=${LTCC-"$CC"}
20987
20988# If no C compiler flags were specified, use CFLAGS.
20989LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20990
20991# Allow CC to be a program name with arguments.
20992compiler=$CC
20993
20994
20995# save warnings/boilerplate of simple test code
20996ac_outfile=conftest.$ac_objext
20997echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20998eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20999_lt_compiler_boilerplate=`cat conftest.err`
21000$rm conftest*
21001
21002ac_outfile=conftest.$ac_objext
21003echo "$lt_simple_link_test_code" >conftest.$ac_ext
21004eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21005_lt_linker_boilerplate=`cat conftest.err`
21006$rm -r conftest*
21007
21008
21009# Allow CC to be a program name with arguments.
21010lt_save_CC="$CC"
21011CC=${F77-"f77"}
21012compiler=$CC
21013compiler_F77=$CC
21014for cc_temp in $compiler""; do
21015  case $cc_temp in
21016    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21017    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21018    \-*) ;;
21019    *) break;;
21020  esac
21021done
21022cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21023
21024
21025{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21026$as_echo_n "checking if libtool supports shared libraries... " >&6; }
21027{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
21028$as_echo "$can_build_shared" >&6; }
21029
21030{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21031$as_echo_n "checking whether to build shared libraries... " >&6; }
21032test "$can_build_shared" = "no" && enable_shared=no
21033
21034# On AIX, shared libraries and static libraries use the same namespace, and
21035# are all built from PIC.
21036case $host_os in
21037aix3*)
21038  test "$enable_shared" = yes && enable_static=no
21039  if test -n "$RANLIB"; then
21040    archive_cmds="$archive_cmds~\$RANLIB \$lib"
21041    postinstall_cmds='$RANLIB $lib'
21042  fi
21043  ;;
21044aix[4-9]*)
21045  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21046    test "$enable_shared" = yes && enable_static=no
21047  fi
21048  ;;
21049esac
21050{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
21051$as_echo "$enable_shared" >&6; }
21052
21053{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21054$as_echo_n "checking whether to build static libraries... " >&6; }
21055# Make sure either enable_shared or enable_static is yes.
21056test "$enable_shared" = yes || enable_static=yes
21057{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
21058$as_echo "$enable_static" >&6; }
21059
21060GCC_F77="$G77"
21061LD_F77="$LD"
21062
21063lt_prog_compiler_wl_F77=
21064lt_prog_compiler_pic_F77=
21065lt_prog_compiler_static_F77=
21066
21067{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21068$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21069
21070  if test "$GCC" = yes; then
21071    lt_prog_compiler_wl_F77='-Wl,'
21072    lt_prog_compiler_static_F77='-static'
21073
21074    case $host_os in
21075      aix*)
21076      # All AIX code is PIC.
21077      if test "$host_cpu" = ia64; then
21078	# AIX 5 now supports IA64 processor
21079	lt_prog_compiler_static_F77='-Bstatic'
21080      fi
21081      ;;
21082
21083    amigaos*)
21084      # FIXME: we need at least 68020 code to build shared libraries, but
21085      # adding the `-m68020' flag to GCC prevents building anything better,
21086      # like `-m68040'.
21087      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21088      ;;
21089
21090    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21091      # PIC is the default for these OSes.
21092      ;;
21093
21094    mingw* | cygwin* | pw32* | os2*)
21095      # This hack is so that the source file can tell whether it is being
21096      # built for inclusion in a dll (and should export symbols for example).
21097      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21098      # (--disable-auto-import) libraries
21099      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21100      ;;
21101
21102    darwin* | rhapsody*)
21103      # PIC is the default on this platform
21104      # Common symbols not allowed in MH_DYLIB files
21105      lt_prog_compiler_pic_F77='-fno-common'
21106      ;;
21107
21108    interix[3-9]*)
21109      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21110      # Instead, we relocate shared libraries at runtime.
21111      ;;
21112
21113    msdosdjgpp*)
21114      # Just because we use GCC doesn't mean we suddenly get shared libraries
21115      # on systems that don't support them.
21116      lt_prog_compiler_can_build_shared_F77=no
21117      enable_shared=no
21118      ;;
21119
21120    sysv4*MP*)
21121      if test -d /usr/nec; then
21122	lt_prog_compiler_pic_F77=-Kconform_pic
21123      fi
21124      ;;
21125
21126    hpux*)
21127      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21128      # not for PA HP-UX.
21129      case $host_cpu in
21130      hppa*64*|ia64*)
21131	# +Z the default
21132	;;
21133      *)
21134	lt_prog_compiler_pic_F77='-fPIC'
21135	;;
21136      esac
21137      ;;
21138
21139    *)
21140      lt_prog_compiler_pic_F77='-fPIC'
21141      ;;
21142    esac
21143  else
21144    # PORTME Check for flag to pass linker flags through the system compiler.
21145    case $host_os in
21146    aix*)
21147      lt_prog_compiler_wl_F77='-Wl,'
21148      if test "$host_cpu" = ia64; then
21149	# AIX 5 now supports IA64 processor
21150	lt_prog_compiler_static_F77='-Bstatic'
21151      else
21152	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21153      fi
21154      ;;
21155      darwin*)
21156        # PIC is the default on this platform
21157        # Common symbols not allowed in MH_DYLIB files
21158       case $cc_basename in
21159         xlc*)
21160         lt_prog_compiler_pic_F77='-qnocommon'
21161         lt_prog_compiler_wl_F77='-Wl,'
21162         ;;
21163       esac
21164       ;;
21165
21166    mingw* | cygwin* | pw32* | os2*)
21167      # This hack is so that the source file can tell whether it is being
21168      # built for inclusion in a dll (and should export symbols for example).
21169      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21170      ;;
21171
21172    hpux9* | hpux10* | hpux11*)
21173      lt_prog_compiler_wl_F77='-Wl,'
21174      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21175      # not for PA HP-UX.
21176      case $host_cpu in
21177      hppa*64*|ia64*)
21178	# +Z the default
21179	;;
21180      *)
21181	lt_prog_compiler_pic_F77='+Z'
21182	;;
21183      esac
21184      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21185      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21186      ;;
21187
21188    irix5* | irix6* | nonstopux*)
21189      lt_prog_compiler_wl_F77='-Wl,'
21190      # PIC (with -KPIC) is the default.
21191      lt_prog_compiler_static_F77='-non_shared'
21192      ;;
21193
21194    newsos6)
21195      lt_prog_compiler_pic_F77='-KPIC'
21196      lt_prog_compiler_static_F77='-Bstatic'
21197      ;;
21198
21199    linux* | k*bsd*-gnu)
21200      case $cc_basename in
21201      icc* | ecc*)
21202	lt_prog_compiler_wl_F77='-Wl,'
21203	lt_prog_compiler_pic_F77='-KPIC'
21204	lt_prog_compiler_static_F77='-static'
21205        ;;
21206      pgcc* | pgf77* | pgf90* | pgf95*)
21207        # Portland Group compilers (*not* the Pentium gcc compiler,
21208	# which looks to be a dead project)
21209	lt_prog_compiler_wl_F77='-Wl,'
21210	lt_prog_compiler_pic_F77='-fpic'
21211	lt_prog_compiler_static_F77='-Bstatic'
21212        ;;
21213      ccc*)
21214        lt_prog_compiler_wl_F77='-Wl,'
21215        # All Alpha code is PIC.
21216        lt_prog_compiler_static_F77='-non_shared'
21217        ;;
21218      *)
21219        case `$CC -V 2>&1 | sed 5q` in
21220	*Sun\ C*)
21221	  # Sun C 5.9
21222	  lt_prog_compiler_pic_F77='-KPIC'
21223	  lt_prog_compiler_static_F77='-Bstatic'
21224	  lt_prog_compiler_wl_F77='-Wl,'
21225	  ;;
21226	*Sun\ F*)
21227	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
21228	  lt_prog_compiler_pic_F77='-KPIC'
21229	  lt_prog_compiler_static_F77='-Bstatic'
21230	  lt_prog_compiler_wl_F77=''
21231	  ;;
21232	esac
21233	;;
21234      esac
21235      ;;
21236
21237    osf3* | osf4* | osf5*)
21238      lt_prog_compiler_wl_F77='-Wl,'
21239      # All OSF/1 code is PIC.
21240      lt_prog_compiler_static_F77='-non_shared'
21241      ;;
21242
21243    rdos*)
21244      lt_prog_compiler_static_F77='-non_shared'
21245      ;;
21246
21247    solaris*)
21248      lt_prog_compiler_pic_F77='-KPIC'
21249      lt_prog_compiler_static_F77='-Bstatic'
21250      case $cc_basename in
21251      f77* | f90* | f95*)
21252	lt_prog_compiler_wl_F77='-Qoption ld ';;
21253      *)
21254	lt_prog_compiler_wl_F77='-Wl,';;
21255      esac
21256      ;;
21257
21258    sunos4*)
21259      lt_prog_compiler_wl_F77='-Qoption ld '
21260      lt_prog_compiler_pic_F77='-PIC'
21261      lt_prog_compiler_static_F77='-Bstatic'
21262      ;;
21263
21264    sysv4 | sysv4.2uw2* | sysv4.3*)
21265      lt_prog_compiler_wl_F77='-Wl,'
21266      lt_prog_compiler_pic_F77='-KPIC'
21267      lt_prog_compiler_static_F77='-Bstatic'
21268      ;;
21269
21270    sysv4*MP*)
21271      if test -d /usr/nec ;then
21272	lt_prog_compiler_pic_F77='-Kconform_pic'
21273	lt_prog_compiler_static_F77='-Bstatic'
21274      fi
21275      ;;
21276
21277    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21278      lt_prog_compiler_wl_F77='-Wl,'
21279      lt_prog_compiler_pic_F77='-KPIC'
21280      lt_prog_compiler_static_F77='-Bstatic'
21281      ;;
21282
21283    unicos*)
21284      lt_prog_compiler_wl_F77='-Wl,'
21285      lt_prog_compiler_can_build_shared_F77=no
21286      ;;
21287
21288    uts4*)
21289      lt_prog_compiler_pic_F77='-pic'
21290      lt_prog_compiler_static_F77='-Bstatic'
21291      ;;
21292
21293    *)
21294      lt_prog_compiler_can_build_shared_F77=no
21295      ;;
21296    esac
21297  fi
21298
21299{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21300$as_echo "$lt_prog_compiler_pic_F77" >&6; }
21301
21302#
21303# Check to make sure the PIC flag actually works.
21304#
21305if test -n "$lt_prog_compiler_pic_F77"; then
21306
21307{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21308$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
21309if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
21310  $as_echo_n "(cached) " >&6
21311else
21312  lt_cv_prog_compiler_pic_works_F77=no
21313  ac_outfile=conftest.$ac_objext
21314   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21315   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21316   # Insert the option either (1) after the last *FLAGS variable, or
21317   # (2) before a word containing "conftest.", or (3) at the end.
21318   # Note that $ac_compile itself does not contain backslashes and begins
21319   # with a dollar sign (not a hyphen), so the echo should work correctly.
21320   # The option is referenced via a variable to avoid confusing sed.
21321   lt_compile=`echo "$ac_compile" | $SED \
21322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21324   -e 's:$: $lt_compiler_flag:'`
21325   (eval echo "\"\$as_me:21325: $lt_compile\"" >&5)
21326   (eval "$lt_compile" 2>conftest.err)
21327   ac_status=$?
21328   cat conftest.err >&5
21329   echo "$as_me:21329: \$? = $ac_status" >&5
21330   if (exit $ac_status) && test -s "$ac_outfile"; then
21331     # The compiler can only warn and ignore the option if not recognized
21332     # So say no if there are warnings other than the usual output.
21333     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21334     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21335     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21336       lt_cv_prog_compiler_pic_works_F77=yes
21337     fi
21338   fi
21339   $rm conftest*
21340
21341fi
21342{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
21343$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
21344
21345if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
21346    case $lt_prog_compiler_pic_F77 in
21347     "" | " "*) ;;
21348     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21349     esac
21350else
21351    lt_prog_compiler_pic_F77=
21352     lt_prog_compiler_can_build_shared_F77=no
21353fi
21354
21355fi
21356case $host_os in
21357  # For platforms which do not support PIC, -DPIC is meaningless:
21358  *djgpp*)
21359    lt_prog_compiler_pic_F77=
21360    ;;
21361  *)
21362    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21363    ;;
21364esac
21365
21366#
21367# Check to make sure the static flag actually works.
21368#
21369wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21370{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21371$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21372if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
21373  $as_echo_n "(cached) " >&6
21374else
21375  lt_cv_prog_compiler_static_works_F77=no
21376   save_LDFLAGS="$LDFLAGS"
21377   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21378   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21379   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21380     # The linker can only warn and ignore the option if not recognized
21381     # So say no if there are warnings
21382     if test -s conftest.err; then
21383       # Append any errors to the config.log.
21384       cat conftest.err 1>&5
21385       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21386       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21387       if diff conftest.exp conftest.er2 >/dev/null; then
21388         lt_cv_prog_compiler_static_works_F77=yes
21389       fi
21390     else
21391       lt_cv_prog_compiler_static_works_F77=yes
21392     fi
21393   fi
21394   $rm -r conftest*
21395   LDFLAGS="$save_LDFLAGS"
21396
21397fi
21398{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
21399$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
21400
21401if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
21402    :
21403else
21404    lt_prog_compiler_static_F77=
21405fi
21406
21407
21408{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21409$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21410if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21411  $as_echo_n "(cached) " >&6
21412else
21413  lt_cv_prog_compiler_c_o_F77=no
21414   $rm -r conftest 2>/dev/null
21415   mkdir conftest
21416   cd conftest
21417   mkdir out
21418   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21419
21420   lt_compiler_flag="-o out/conftest2.$ac_objext"
21421   # Insert the option either (1) after the last *FLAGS variable, or
21422   # (2) before a word containing "conftest.", or (3) at the end.
21423   # Note that $ac_compile itself does not contain backslashes and begins
21424   # with a dollar sign (not a hyphen), so the echo should work correctly.
21425   lt_compile=`echo "$ac_compile" | $SED \
21426   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21427   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21428   -e 's:$: $lt_compiler_flag:'`
21429   (eval echo "\"\$as_me:21429: $lt_compile\"" >&5)
21430   (eval "$lt_compile" 2>out/conftest.err)
21431   ac_status=$?
21432   cat out/conftest.err >&5
21433   echo "$as_me:21433: \$? = $ac_status" >&5
21434   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21435   then
21436     # The compiler can only warn and ignore the option if not recognized
21437     # So say no if there are warnings
21438     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21439     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21440     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21441       lt_cv_prog_compiler_c_o_F77=yes
21442     fi
21443   fi
21444   chmod u+w . 2>&5
21445   $rm conftest*
21446   # SGI C++ compiler will create directory out/ii_files/ for
21447   # template instantiation
21448   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21449   $rm out/* && rmdir out
21450   cd ..
21451   rmdir conftest
21452   $rm conftest*
21453
21454fi
21455{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21456$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
21457
21458
21459hard_links="nottested"
21460if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21461  # do not overwrite the value of need_locks provided by the user
21462  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21463$as_echo_n "checking if we can lock with hard links... " >&6; }
21464  hard_links=yes
21465  $rm conftest*
21466  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21467  touch conftest.a
21468  ln conftest.a conftest.b 2>&5 || hard_links=no
21469  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21470  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
21471$as_echo "$hard_links" >&6; }
21472  if test "$hard_links" = no; then
21473    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21474$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21475    need_locks=warn
21476  fi
21477else
21478  need_locks=no
21479fi
21480
21481{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21482$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21483
21484  runpath_var=
21485  allow_undefined_flag_F77=
21486  enable_shared_with_static_runtimes_F77=no
21487  archive_cmds_F77=
21488  archive_expsym_cmds_F77=
21489  old_archive_From_new_cmds_F77=
21490  old_archive_from_expsyms_cmds_F77=
21491  export_dynamic_flag_spec_F77=
21492  whole_archive_flag_spec_F77=
21493  thread_safe_flag_spec_F77=
21494  hardcode_libdir_flag_spec_F77=
21495  hardcode_libdir_flag_spec_ld_F77=
21496  hardcode_libdir_separator_F77=
21497  hardcode_direct_F77=no
21498  hardcode_minus_L_F77=no
21499  hardcode_shlibpath_var_F77=unsupported
21500  link_all_deplibs_F77=unknown
21501  hardcode_automatic_F77=no
21502  module_cmds_F77=
21503  module_expsym_cmds_F77=
21504  always_export_symbols_F77=no
21505  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21506  # include_expsyms should be a list of space-separated symbols to be *always*
21507  # included in the symbol list
21508  include_expsyms_F77=
21509  # exclude_expsyms can be an extended regexp of symbols to exclude
21510  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21511  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21512  # as well as any symbol that contains `d'.
21513  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21514  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21515  # platforms (ab)use it in PIC code, but their linkers get confused if
21516  # the symbol is explicitly referenced.  Since portable code cannot
21517  # rely on this symbol name, it's probably fine to never include it in
21518  # preloaded symbol tables.
21519  # Exclude shared library initialization/finalization symbols.
21520  extract_expsyms_cmds=
21521  # Just being paranoid about ensuring that cc_basename is set.
21522  for cc_temp in $compiler""; do
21523  case $cc_temp in
21524    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21525    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21526    \-*) ;;
21527    *) break;;
21528  esac
21529done
21530cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21531
21532  case $host_os in
21533  cygwin* | mingw* | pw32*)
21534    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21535    # When not using gcc, we currently assume that we are using
21536    # Microsoft Visual C++.
21537    if test "$GCC" != yes; then
21538      with_gnu_ld=no
21539    fi
21540    ;;
21541  interix*)
21542    # we just hope/assume this is gcc and not c89 (= MSVC++)
21543    with_gnu_ld=yes
21544    ;;
21545  openbsd*)
21546    with_gnu_ld=no
21547    ;;
21548  esac
21549
21550  ld_shlibs_F77=yes
21551  if test "$with_gnu_ld" = yes; then
21552    # If archive_cmds runs LD, not CC, wlarc should be empty
21553    wlarc='${wl}'
21554
21555    # Set some defaults for GNU ld with shared library support. These
21556    # are reset later if shared libraries are not supported. Putting them
21557    # here allows them to be overridden if necessary.
21558    runpath_var=LD_RUN_PATH
21559    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21560    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21561    # ancient GNU ld didn't support --whole-archive et. al.
21562    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21563	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21564      else
21565  	whole_archive_flag_spec_F77=
21566    fi
21567    supports_anon_versioning=no
21568    case `$LD -v 2>/dev/null` in
21569      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21570      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21571      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21572      *\ 2.11.*) ;; # other 2.11 versions
21573      *) supports_anon_versioning=yes ;;
21574    esac
21575
21576    # See if GNU ld supports shared libraries.
21577    case $host_os in
21578    aix[3-9]*)
21579      # On AIX/PPC, the GNU linker is very broken
21580      if test "$host_cpu" != ia64; then
21581	ld_shlibs_F77=no
21582	cat <<EOF 1>&2
21583
21584*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21585*** to be unable to reliably create shared libraries on AIX.
21586*** Therefore, libtool is disabling shared libraries support.  If you
21587*** really care for shared libraries, you may want to modify your PATH
21588*** so that a non-GNU linker is found, and then restart.
21589
21590EOF
21591      fi
21592      ;;
21593
21594    amigaos*)
21595      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)'
21596      hardcode_libdir_flag_spec_F77='-L$libdir'
21597      hardcode_minus_L_F77=yes
21598
21599      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21600      # that the semantics of dynamic libraries on AmigaOS, at least up
21601      # to version 4, is to share data among multiple programs linked
21602      # with the same dynamic library.  Since this doesn't match the
21603      # behavior of shared libraries on other platforms, we can't use
21604      # them.
21605      ld_shlibs_F77=no
21606      ;;
21607
21608    beos*)
21609      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21610	allow_undefined_flag_F77=unsupported
21611	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21612	# support --undefined.  This deserves some investigation.  FIXME
21613	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21614      else
21615	ld_shlibs_F77=no
21616      fi
21617      ;;
21618
21619    cygwin* | mingw* | pw32*)
21620      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21621      # as there is no search path for DLLs.
21622      hardcode_libdir_flag_spec_F77='-L$libdir'
21623      allow_undefined_flag_F77=unsupported
21624      always_export_symbols_F77=no
21625      enable_shared_with_static_runtimes_F77=yes
21626      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21627
21628      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21629        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21630	# If the export-symbols file already is a .def file (1st line
21631	# is EXPORTS), use it as is; otherwise, prepend...
21632	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21633	  cp $export_symbols $output_objdir/$soname.def;
21634	else
21635	  echo EXPORTS > $output_objdir/$soname.def;
21636	  cat $export_symbols >> $output_objdir/$soname.def;
21637	fi~
21638	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21639      else
21640	ld_shlibs_F77=no
21641      fi
21642      ;;
21643
21644    interix[3-9]*)
21645      hardcode_direct_F77=no
21646      hardcode_shlibpath_var_F77=no
21647      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21648      export_dynamic_flag_spec_F77='${wl}-E'
21649      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21650      # Instead, shared libraries are loaded at an image base (0x10000000 by
21651      # default) and relocated if they conflict, which is a slow very memory
21652      # consuming and fragmenting process.  To avoid this, we pick a random,
21653      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21654      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21655      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'
21656      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'
21657      ;;
21658
21659    gnu* | linux* | k*bsd*-gnu)
21660      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21661	tmp_addflag=
21662	case $cc_basename,$host_cpu in
21663	pgcc*)				# Portland Group C compiler
21664	  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'
21665	  tmp_addflag=' $pic_flag'
21666	  ;;
21667	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21668	  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'
21669	  tmp_addflag=' $pic_flag -Mnomain' ;;
21670	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21671	  tmp_addflag=' -i_dynamic' ;;
21672	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21673	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21674	ifc* | ifort*)			# Intel Fortran compiler
21675	  tmp_addflag=' -nofor_main' ;;
21676	esac
21677	case `$CC -V 2>&1 | sed 5q` in
21678	*Sun\ C*)			# Sun C 5.9
21679	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21680	  tmp_sharedflag='-G' ;;
21681	*Sun\ F*)			# Sun Fortran 8.3
21682	  tmp_sharedflag='-G' ;;
21683	*)
21684	  tmp_sharedflag='-shared' ;;
21685	esac
21686	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21687
21688	if test $supports_anon_versioning = yes; then
21689	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21690  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21691  $echo "local: *; };" >> $output_objdir/$libname.ver~
21692	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21693	fi
21694      else
21695	ld_shlibs_F77=no
21696      fi
21697      ;;
21698
21699    netbsd*)
21700      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21701	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21702	wlarc=
21703      else
21704	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21705	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21706      fi
21707      ;;
21708
21709    solaris*)
21710      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21711	ld_shlibs_F77=no
21712	cat <<EOF 1>&2
21713
21714*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21715*** create shared libraries on Solaris systems.  Therefore, libtool
21716*** is disabling shared libraries support.  We urge you to upgrade GNU
21717*** binutils to release 2.9.1 or newer.  Another option is to modify
21718*** your PATH or compiler configuration so that the native linker is
21719*** used, and then restart.
21720
21721EOF
21722      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21723	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21724	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21725      else
21726	ld_shlibs_F77=no
21727      fi
21728      ;;
21729
21730    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21731      case `$LD -v 2>&1` in
21732        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21733	ld_shlibs_F77=no
21734	cat <<_LT_EOF 1>&2
21735
21736*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21737*** reliably create shared libraries on SCO systems.  Therefore, libtool
21738*** is disabling shared libraries support.  We urge you to upgrade GNU
21739*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21740*** your PATH or compiler configuration so that the native linker is
21741*** used, and then restart.
21742
21743_LT_EOF
21744	;;
21745	*)
21746	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21747	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21748	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21749	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21750	  else
21751	    ld_shlibs_F77=no
21752	  fi
21753	;;
21754      esac
21755      ;;
21756
21757    sunos4*)
21758      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21759      wlarc=
21760      hardcode_direct_F77=yes
21761      hardcode_shlibpath_var_F77=no
21762      ;;
21763
21764    *)
21765      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21766	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21767	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21768      else
21769	ld_shlibs_F77=no
21770      fi
21771      ;;
21772    esac
21773
21774    if test "$ld_shlibs_F77" = no; then
21775      runpath_var=
21776      hardcode_libdir_flag_spec_F77=
21777      export_dynamic_flag_spec_F77=
21778      whole_archive_flag_spec_F77=
21779    fi
21780  else
21781    # PORTME fill in a description of your system's linker (not GNU ld)
21782    case $host_os in
21783    aix3*)
21784      allow_undefined_flag_F77=unsupported
21785      always_export_symbols_F77=yes
21786      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'
21787      # Note: this linker hardcodes the directories in LIBPATH if there
21788      # are no directories specified by -L.
21789      hardcode_minus_L_F77=yes
21790      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21791	# Neither direct hardcoding nor static linking is supported with a
21792	# broken collect2.
21793	hardcode_direct_F77=unsupported
21794      fi
21795      ;;
21796
21797    aix[4-9]*)
21798      if test "$host_cpu" = ia64; then
21799	# On IA64, the linker does run time linking by default, so we don't
21800	# have to do anything special.
21801	aix_use_runtimelinking=no
21802	exp_sym_flag='-Bexport'
21803	no_entry_flag=""
21804      else
21805	# If we're using GNU nm, then we don't want the "-C" option.
21806	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21807	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21808	  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'
21809	else
21810	  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'
21811	fi
21812	aix_use_runtimelinking=no
21813
21814	# Test if we are trying to use run time linking or normal
21815	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21816	# need to do runtime linking.
21817	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21818	  for ld_flag in $LDFLAGS; do
21819  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21820  	    aix_use_runtimelinking=yes
21821  	    break
21822  	  fi
21823	  done
21824	  ;;
21825	esac
21826
21827	exp_sym_flag='-bexport'
21828	no_entry_flag='-bnoentry'
21829      fi
21830
21831      # When large executables or shared objects are built, AIX ld can
21832      # have problems creating the table of contents.  If linking a library
21833      # or program results in "error TOC overflow" add -mminimal-toc to
21834      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21835      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21836
21837      archive_cmds_F77=''
21838      hardcode_direct_F77=yes
21839      hardcode_libdir_separator_F77=':'
21840      link_all_deplibs_F77=yes
21841
21842      if test "$GCC" = yes; then
21843	case $host_os in aix4.[012]|aix4.[012].*)
21844	# We only want to do this on AIX 4.2 and lower, the check
21845	# below for broken collect2 doesn't work under 4.3+
21846	  collect2name=`${CC} -print-prog-name=collect2`
21847	  if test -f "$collect2name" && \
21848  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21849	  then
21850  	  # We have reworked collect2
21851  	  :
21852	  else
21853  	  # We have old collect2
21854  	  hardcode_direct_F77=unsupported
21855  	  # It fails to find uninstalled libraries when the uninstalled
21856  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21857  	  # to unsupported forces relinking
21858  	  hardcode_minus_L_F77=yes
21859  	  hardcode_libdir_flag_spec_F77='-L$libdir'
21860  	  hardcode_libdir_separator_F77=
21861	  fi
21862	  ;;
21863	esac
21864	shared_flag='-shared'
21865	if test "$aix_use_runtimelinking" = yes; then
21866	  shared_flag="$shared_flag "'${wl}-G'
21867	fi
21868      else
21869	# not using gcc
21870	if test "$host_cpu" = ia64; then
21871  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21872  	# chokes on -Wl,-G. The following line is correct:
21873	  shared_flag='-G'
21874	else
21875	  if test "$aix_use_runtimelinking" = yes; then
21876	    shared_flag='${wl}-G'
21877	  else
21878	    shared_flag='${wl}-bM:SRE'
21879	  fi
21880	fi
21881      fi
21882
21883      # It seems that -bexpall does not export symbols beginning with
21884      # underscore (_), so it is better to generate a list of symbols to export.
21885      always_export_symbols_F77=yes
21886      if test "$aix_use_runtimelinking" = yes; then
21887	# Warning - without using the other runtime loading flags (-brtl),
21888	# -berok will link without error, but may produce a broken library.
21889	allow_undefined_flag_F77='-berok'
21890       # Determine the default libpath from the value encoded in an empty executable.
21891       cat >conftest.$ac_ext <<_ACEOF
21892      program main
21893
21894      end
21895_ACEOF
21896rm -f conftest.$ac_objext conftest$ac_exeext
21897if { (ac_try="$ac_link"
21898case "(($ac_try" in
21899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900  *) ac_try_echo=$ac_try;;
21901esac
21902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21903$as_echo "$ac_try_echo") >&5
21904  (eval "$ac_link") 2>conftest.er1
21905  ac_status=$?
21906  grep -v '^ *+' conftest.er1 >conftest.err
21907  rm -f conftest.er1
21908  cat conftest.err >&5
21909  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910  (exit $ac_status); } && {
21911	 test -z "$ac_f77_werror_flag" ||
21912	 test ! -s conftest.err
21913       } && test -s conftest$ac_exeext && {
21914	 test "$cross_compiling" = yes ||
21915	 $as_test_x conftest$ac_exeext
21916       }; then
21917
21918lt_aix_libpath_sed='
21919    /Import File Strings/,/^$/ {
21920	/^0/ {
21921	    s/^0  *\(.*\)$/\1/
21922	    p
21923	}
21924    }'
21925aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21926# Check for a 64-bit object if we didn't find anything.
21927if test -z "$aix_libpath"; then
21928  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21929fi
21930else
21931  $as_echo "$as_me: failed program was:" >&5
21932sed 's/^/| /' conftest.$ac_ext >&5
21933
21934
21935fi
21936
21937rm -rf conftest.dSYM
21938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21939      conftest$ac_exeext conftest.$ac_ext
21940if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21941
21942       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21943	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"
21944       else
21945	if test "$host_cpu" = ia64; then
21946	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21947	  allow_undefined_flag_F77="-z nodefs"
21948	  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"
21949	else
21950	 # Determine the default libpath from the value encoded in an empty executable.
21951	 cat >conftest.$ac_ext <<_ACEOF
21952      program main
21953
21954      end
21955_ACEOF
21956rm -f conftest.$ac_objext conftest$ac_exeext
21957if { (ac_try="$ac_link"
21958case "(($ac_try" in
21959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960  *) ac_try_echo=$ac_try;;
21961esac
21962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21963$as_echo "$ac_try_echo") >&5
21964  (eval "$ac_link") 2>conftest.er1
21965  ac_status=$?
21966  grep -v '^ *+' conftest.er1 >conftest.err
21967  rm -f conftest.er1
21968  cat conftest.err >&5
21969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970  (exit $ac_status); } && {
21971	 test -z "$ac_f77_werror_flag" ||
21972	 test ! -s conftest.err
21973       } && test -s conftest$ac_exeext && {
21974	 test "$cross_compiling" = yes ||
21975	 $as_test_x conftest$ac_exeext
21976       }; then
21977
21978lt_aix_libpath_sed='
21979    /Import File Strings/,/^$/ {
21980	/^0/ {
21981	    s/^0  *\(.*\)$/\1/
21982	    p
21983	}
21984    }'
21985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21986# Check for a 64-bit object if we didn't find anything.
21987if test -z "$aix_libpath"; then
21988  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21989fi
21990else
21991  $as_echo "$as_me: failed program was:" >&5
21992sed 's/^/| /' conftest.$ac_ext >&5
21993
21994
21995fi
21996
21997rm -rf conftest.dSYM
21998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21999      conftest$ac_exeext conftest.$ac_ext
22000if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22001
22002	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22003	  # Warning - without using the other run time loading flags,
22004	  # -berok will link without error, but may produce a broken library.
22005	  no_undefined_flag_F77=' ${wl}-bernotok'
22006	  allow_undefined_flag_F77=' ${wl}-berok'
22007	  # Exported symbols can be pulled into shared objects from archives
22008	  whole_archive_flag_spec_F77='$convenience'
22009	  archive_cmds_need_lc_F77=yes
22010	  # This is similar to how AIX traditionally builds its shared libraries.
22011	  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'
22012	fi
22013      fi
22014      ;;
22015
22016    amigaos*)
22017      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)'
22018      hardcode_libdir_flag_spec_F77='-L$libdir'
22019      hardcode_minus_L_F77=yes
22020      # see comment about different semantics on the GNU ld section
22021      ld_shlibs_F77=no
22022      ;;
22023
22024    bsdi[45]*)
22025      export_dynamic_flag_spec_F77=-rdynamic
22026      ;;
22027
22028    cygwin* | mingw* | pw32*)
22029      # When not using gcc, we currently assume that we are using
22030      # Microsoft Visual C++.
22031      # hardcode_libdir_flag_spec is actually meaningless, as there is
22032      # no search path for DLLs.
22033      hardcode_libdir_flag_spec_F77=' '
22034      allow_undefined_flag_F77=unsupported
22035      # Tell ltmain to make .lib files, not .a files.
22036      libext=lib
22037      # Tell ltmain to make .dll files, not .so files.
22038      shrext_cmds=".dll"
22039      # FIXME: Setting linknames here is a bad hack.
22040      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22041      # The linker will automatically build a .lib file if we build a DLL.
22042      old_archive_From_new_cmds_F77='true'
22043      # FIXME: Should let the user specify the lib program.
22044      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22045      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22046      enable_shared_with_static_runtimes_F77=yes
22047      ;;
22048
22049    darwin* | rhapsody*)
22050      case $host_os in
22051        rhapsody* | darwin1.[012])
22052         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22053         ;;
22054       *) # Darwin 1.3 on
22055         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22056           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22057         else
22058           case ${MACOSX_DEPLOYMENT_TARGET} in
22059             10.[012])
22060               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22061               ;;
22062             10.*)
22063               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22064               ;;
22065           esac
22066         fi
22067         ;;
22068      esac
22069      archive_cmds_need_lc_F77=no
22070      hardcode_direct_F77=no
22071      hardcode_automatic_F77=yes
22072      hardcode_shlibpath_var_F77=unsupported
22073      whole_archive_flag_spec_F77=''
22074      link_all_deplibs_F77=yes
22075    if test "$GCC" = yes ; then
22076    	output_verbose_link_cmd='echo'
22077        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
22078        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22079        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
22080        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
22081    else
22082      case $cc_basename in
22083        xlc*)
22084         output_verbose_link_cmd='echo'
22085         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22086         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22087          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22088         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22089          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}'
22090          ;;
22091       *)
22092         ld_shlibs_F77=no
22093          ;;
22094      esac
22095    fi
22096      ;;
22097
22098    dgux*)
22099      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22100      hardcode_libdir_flag_spec_F77='-L$libdir'
22101      hardcode_shlibpath_var_F77=no
22102      ;;
22103
22104    freebsd1*)
22105      ld_shlibs_F77=no
22106      ;;
22107
22108    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22109    # support.  Future versions do this automatically, but an explicit c++rt0.o
22110    # does not break anything, and helps significantly (at the cost of a little
22111    # extra space).
22112    freebsd2.2*)
22113      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22114      hardcode_libdir_flag_spec_F77='-R$libdir'
22115      hardcode_direct_F77=yes
22116      hardcode_shlibpath_var_F77=no
22117      ;;
22118
22119    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22120    freebsd2*)
22121      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22122      hardcode_direct_F77=yes
22123      hardcode_minus_L_F77=yes
22124      hardcode_shlibpath_var_F77=no
22125      ;;
22126
22127    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22128    freebsd* | dragonfly*)
22129      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22130      hardcode_libdir_flag_spec_F77='-R$libdir'
22131      hardcode_direct_F77=yes
22132      hardcode_shlibpath_var_F77=no
22133      ;;
22134
22135    hpux9*)
22136      if test "$GCC" = yes; then
22137	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'
22138      else
22139	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'
22140      fi
22141      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22142      hardcode_libdir_separator_F77=:
22143      hardcode_direct_F77=yes
22144
22145      # hardcode_minus_L: Not really in the search PATH,
22146      # but as the default location of the library.
22147      hardcode_minus_L_F77=yes
22148      export_dynamic_flag_spec_F77='${wl}-E'
22149      ;;
22150
22151    hpux10*)
22152      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22153	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22154      else
22155	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22156      fi
22157      if test "$with_gnu_ld" = no; then
22158	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22159	hardcode_libdir_separator_F77=:
22160
22161	hardcode_direct_F77=yes
22162	export_dynamic_flag_spec_F77='${wl}-E'
22163
22164	# hardcode_minus_L: Not really in the search PATH,
22165	# but as the default location of the library.
22166	hardcode_minus_L_F77=yes
22167      fi
22168      ;;
22169
22170    hpux11*)
22171      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22172	case $host_cpu in
22173	hppa*64*)
22174	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22175	  ;;
22176	ia64*)
22177	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22178	  ;;
22179	*)
22180	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22181	  ;;
22182	esac
22183      else
22184	case $host_cpu in
22185	hppa*64*)
22186	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22187	  ;;
22188	ia64*)
22189	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22190	  ;;
22191	*)
22192	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22193	  ;;
22194	esac
22195      fi
22196      if test "$with_gnu_ld" = no; then
22197	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22198	hardcode_libdir_separator_F77=:
22199
22200	case $host_cpu in
22201	hppa*64*|ia64*)
22202	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22203	  hardcode_direct_F77=no
22204	  hardcode_shlibpath_var_F77=no
22205	  ;;
22206	*)
22207	  hardcode_direct_F77=yes
22208	  export_dynamic_flag_spec_F77='${wl}-E'
22209
22210	  # hardcode_minus_L: Not really in the search PATH,
22211	  # but as the default location of the library.
22212	  hardcode_minus_L_F77=yes
22213	  ;;
22214	esac
22215      fi
22216      ;;
22217
22218    irix5* | irix6* | nonstopux*)
22219      if test "$GCC" = yes; then
22220	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'
22221      else
22222	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'
22223	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22224      fi
22225      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22226      hardcode_libdir_separator_F77=:
22227      link_all_deplibs_F77=yes
22228      ;;
22229
22230    netbsd*)
22231      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22232	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22233      else
22234	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22235      fi
22236      hardcode_libdir_flag_spec_F77='-R$libdir'
22237      hardcode_direct_F77=yes
22238      hardcode_shlibpath_var_F77=no
22239      ;;
22240
22241    newsos6)
22242      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22243      hardcode_direct_F77=yes
22244      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22245      hardcode_libdir_separator_F77=:
22246      hardcode_shlibpath_var_F77=no
22247      ;;
22248
22249    openbsd*)
22250      if test -f /usr/libexec/ld.so; then
22251	hardcode_direct_F77=yes
22252	hardcode_shlibpath_var_F77=no
22253	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22254	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22255	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22256	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22257	  export_dynamic_flag_spec_F77='${wl}-E'
22258	else
22259	  case $host_os in
22260	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22261	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22262	     hardcode_libdir_flag_spec_F77='-R$libdir'
22263	     ;;
22264	   *)
22265	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22266	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22267	     ;;
22268	  esac
22269        fi
22270      else
22271	ld_shlibs_F77=no
22272      fi
22273      ;;
22274
22275    os2*)
22276      hardcode_libdir_flag_spec_F77='-L$libdir'
22277      hardcode_minus_L_F77=yes
22278      allow_undefined_flag_F77=unsupported
22279      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'
22280      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22281      ;;
22282
22283    osf3*)
22284      if test "$GCC" = yes; then
22285	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22286	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'
22287      else
22288	allow_undefined_flag_F77=' -expect_unresolved \*'
22289	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'
22290      fi
22291      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22292      hardcode_libdir_separator_F77=:
22293      ;;
22294
22295    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22296      if test "$GCC" = yes; then
22297	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22298	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'
22299	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22300      else
22301	allow_undefined_flag_F77=' -expect_unresolved \*'
22302	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'
22303	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~
22304	$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'
22305
22306	# Both c and cxx compiler support -rpath directly
22307	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22308      fi
22309      hardcode_libdir_separator_F77=:
22310      ;;
22311
22312    solaris*)
22313      no_undefined_flag_F77=' -z text'
22314      if test "$GCC" = yes; then
22315	wlarc='${wl}'
22316	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22317	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22318	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22319      else
22320	wlarc=''
22321	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22322	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22323  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22324      fi
22325      hardcode_libdir_flag_spec_F77='-R$libdir'
22326      hardcode_shlibpath_var_F77=no
22327      case $host_os in
22328      solaris2.[0-5] | solaris2.[0-5].*) ;;
22329      *)
22330	# The compiler driver will combine and reorder linker options,
22331	# but understands `-z linker_flag'.  GCC discards it without `$wl',
22332	# but is careful enough not to reorder.
22333 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22334	if test "$GCC" = yes; then
22335	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22336	else
22337	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
22338	fi
22339	;;
22340      esac
22341      link_all_deplibs_F77=yes
22342      ;;
22343
22344    sunos4*)
22345      if test "x$host_vendor" = xsequent; then
22346	# Use $CC to link under sequent, because it throws in some extra .o
22347	# files that make .init and .fini sections work.
22348	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22349      else
22350	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22351      fi
22352      hardcode_libdir_flag_spec_F77='-L$libdir'
22353      hardcode_direct_F77=yes
22354      hardcode_minus_L_F77=yes
22355      hardcode_shlibpath_var_F77=no
22356      ;;
22357
22358    sysv4)
22359      case $host_vendor in
22360	sni)
22361	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22362	  hardcode_direct_F77=yes # is this really true???
22363	;;
22364	siemens)
22365	  ## LD is ld it makes a PLAMLIB
22366	  ## CC just makes a GrossModule.
22367	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22368	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22369	  hardcode_direct_F77=no
22370        ;;
22371	motorola)
22372	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22373	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22374	;;
22375      esac
22376      runpath_var='LD_RUN_PATH'
22377      hardcode_shlibpath_var_F77=no
22378      ;;
22379
22380    sysv4.3*)
22381      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22382      hardcode_shlibpath_var_F77=no
22383      export_dynamic_flag_spec_F77='-Bexport'
22384      ;;
22385
22386    sysv4*MP*)
22387      if test -d /usr/nec; then
22388	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22389	hardcode_shlibpath_var_F77=no
22390	runpath_var=LD_RUN_PATH
22391	hardcode_runpath_var=yes
22392	ld_shlibs_F77=yes
22393      fi
22394      ;;
22395
22396    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22397      no_undefined_flag_F77='${wl}-z,text'
22398      archive_cmds_need_lc_F77=no
22399      hardcode_shlibpath_var_F77=no
22400      runpath_var='LD_RUN_PATH'
22401
22402      if test "$GCC" = yes; then
22403	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22404	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22405      else
22406	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22407	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22408      fi
22409      ;;
22410
22411    sysv5* | sco3.2v5* | sco5v6*)
22412      # Note: We can NOT use -z defs as we might desire, because we do not
22413      # link with -lc, and that would cause any symbols used from libc to
22414      # always be unresolved, which means just about no library would
22415      # ever link correctly.  If we're not using GNU ld we use -z text
22416      # though, which does catch some bad symbols but isn't as heavy-handed
22417      # as -z defs.
22418      no_undefined_flag_F77='${wl}-z,text'
22419      allow_undefined_flag_F77='${wl}-z,nodefs'
22420      archive_cmds_need_lc_F77=no
22421      hardcode_shlibpath_var_F77=no
22422      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22423      hardcode_libdir_separator_F77=':'
22424      link_all_deplibs_F77=yes
22425      export_dynamic_flag_spec_F77='${wl}-Bexport'
22426      runpath_var='LD_RUN_PATH'
22427
22428      if test "$GCC" = yes; then
22429	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22430	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22431      else
22432	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22433	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22434      fi
22435      ;;
22436
22437    uts4*)
22438      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22439      hardcode_libdir_flag_spec_F77='-L$libdir'
22440      hardcode_shlibpath_var_F77=no
22441      ;;
22442
22443    *)
22444      ld_shlibs_F77=no
22445      ;;
22446    esac
22447  fi
22448
22449{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22450$as_echo "$ld_shlibs_F77" >&6; }
22451test "$ld_shlibs_F77" = no && can_build_shared=no
22452
22453#
22454# Do we need to explicitly link libc?
22455#
22456case "x$archive_cmds_need_lc_F77" in
22457x|xyes)
22458  # Assume -lc should be added
22459  archive_cmds_need_lc_F77=yes
22460
22461  if test "$enable_shared" = yes && test "$GCC" = yes; then
22462    case $archive_cmds_F77 in
22463    *'~'*)
22464      # FIXME: we may have to deal with multi-command sequences.
22465      ;;
22466    '$CC '*)
22467      # Test whether the compiler implicitly links with -lc since on some
22468      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22469      # to ld, don't add -lc before -lgcc.
22470      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22471$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22472      $rm conftest*
22473      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22474
22475      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22476  (eval $ac_compile) 2>&5
22477  ac_status=$?
22478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479  (exit $ac_status); } 2>conftest.err; then
22480        soname=conftest
22481        lib=conftest
22482        libobjs=conftest.$ac_objext
22483        deplibs=
22484        wl=$lt_prog_compiler_wl_F77
22485	pic_flag=$lt_prog_compiler_pic_F77
22486        compiler_flags=-v
22487        linker_flags=-v
22488        verstring=
22489        output_objdir=.
22490        libname=conftest
22491        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22492        allow_undefined_flag_F77=
22493        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22494  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22495  ac_status=$?
22496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497  (exit $ac_status); }
22498        then
22499	  archive_cmds_need_lc_F77=no
22500        else
22501	  archive_cmds_need_lc_F77=yes
22502        fi
22503        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22504      else
22505        cat conftest.err 1>&5
22506      fi
22507      $rm conftest*
22508      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22509$as_echo "$archive_cmds_need_lc_F77" >&6; }
22510      ;;
22511    esac
22512  fi
22513  ;;
22514esac
22515
22516{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22517$as_echo_n "checking dynamic linker characteristics... " >&6; }
22518library_names_spec=
22519libname_spec='lib$name'
22520soname_spec=
22521shrext_cmds=".so"
22522postinstall_cmds=
22523postuninstall_cmds=
22524finish_cmds=
22525finish_eval=
22526shlibpath_var=
22527shlibpath_overrides_runpath=unknown
22528version_type=none
22529dynamic_linker="$host_os ld.so"
22530sys_lib_dlsearch_path_spec="/lib /usr/lib"
22531
22532need_lib_prefix=unknown
22533hardcode_into_libs=no
22534
22535# when you set need_version to no, make sure it does not cause -set_version
22536# flags to be left without arguments
22537need_version=unknown
22538
22539case $host_os in
22540aix3*)
22541  version_type=linux
22542  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22543  shlibpath_var=LIBPATH
22544
22545  # AIX 3 has no versioning support, so we append a major version to the name.
22546  soname_spec='${libname}${release}${shared_ext}$major'
22547  ;;
22548
22549aix[4-9]*)
22550  version_type=linux
22551  need_lib_prefix=no
22552  need_version=no
22553  hardcode_into_libs=yes
22554  if test "$host_cpu" = ia64; then
22555    # AIX 5 supports IA64
22556    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22557    shlibpath_var=LD_LIBRARY_PATH
22558  else
22559    # With GCC up to 2.95.x, collect2 would create an import file
22560    # for dependence libraries.  The import file would start with
22561    # the line `#! .'.  This would cause the generated library to
22562    # depend on `.', always an invalid library.  This was fixed in
22563    # development snapshots of GCC prior to 3.0.
22564    case $host_os in
22565      aix4 | aix4.[01] | aix4.[01].*)
22566      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22567	   echo ' yes '
22568	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22569	:
22570      else
22571	can_build_shared=no
22572      fi
22573      ;;
22574    esac
22575    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22576    # soname into executable. Probably we can add versioning support to
22577    # collect2, so additional links can be useful in future.
22578    if test "$aix_use_runtimelinking" = yes; then
22579      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22580      # instead of lib<name>.a to let people know that these are not
22581      # typical AIX shared libraries.
22582      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22583    else
22584      # We preserve .a as extension for shared libraries through AIX4.2
22585      # and later when we are not doing run time linking.
22586      library_names_spec='${libname}${release}.a $libname.a'
22587      soname_spec='${libname}${release}${shared_ext}$major'
22588    fi
22589    shlibpath_var=LIBPATH
22590  fi
22591  ;;
22592
22593amigaos*)
22594  library_names_spec='$libname.ixlibrary $libname.a'
22595  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22596  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'
22597  ;;
22598
22599beos*)
22600  library_names_spec='${libname}${shared_ext}'
22601  dynamic_linker="$host_os ld.so"
22602  shlibpath_var=LIBRARY_PATH
22603  ;;
22604
22605bsdi[45]*)
22606  version_type=linux
22607  need_version=no
22608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22609  soname_spec='${libname}${release}${shared_ext}$major'
22610  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22611  shlibpath_var=LD_LIBRARY_PATH
22612  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22613  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22614  # the default ld.so.conf also contains /usr/contrib/lib and
22615  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22616  # libtool to hard-code these into programs
22617  ;;
22618
22619cygwin* | mingw* | pw32*)
22620  version_type=windows
22621  shrext_cmds=".dll"
22622  need_version=no
22623  need_lib_prefix=no
22624
22625  case $GCC,$host_os in
22626  yes,cygwin* | yes,mingw* | yes,pw32*)
22627    library_names_spec='$libname.dll.a'
22628    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22629    postinstall_cmds='base_file=`basename \${file}`~
22630      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22631      dldir=$destdir/`dirname \$dlpath`~
22632      test -d \$dldir || mkdir -p \$dldir~
22633      $install_prog $dir/$dlname \$dldir/$dlname~
22634      chmod a+x \$dldir/$dlname'
22635    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22636      dlpath=$dir/\$dldll~
22637       $rm \$dlpath'
22638    shlibpath_overrides_runpath=yes
22639
22640    case $host_os in
22641    cygwin*)
22642      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22643      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22644      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22645      ;;
22646    mingw*)
22647      # MinGW DLLs use traditional 'lib' prefix
22648      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22649      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22650      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22651        # It is most probably a Windows format PATH printed by
22652        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22653        # path with ; separators, and with drive letters. We can handle the
22654        # drive letters (cygwin fileutils understands them), so leave them,
22655        # especially as we might pass files found there to a mingw objdump,
22656        # which wouldn't understand a cygwinified path. Ahh.
22657        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22658      else
22659        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22660      fi
22661      ;;
22662    pw32*)
22663      # pw32 DLLs use 'pw' prefix rather than 'lib'
22664      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22665      ;;
22666    esac
22667    ;;
22668
22669  *)
22670    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22671    ;;
22672  esac
22673  dynamic_linker='Win32 ld.exe'
22674  # FIXME: first we should search . and the directory the executable is in
22675  shlibpath_var=PATH
22676  ;;
22677
22678darwin* | rhapsody*)
22679  dynamic_linker="$host_os dyld"
22680  version_type=darwin
22681  need_lib_prefix=no
22682  need_version=no
22683  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22684  soname_spec='${libname}${release}${major}$shared_ext'
22685  shlibpath_overrides_runpath=yes
22686  shlibpath_var=DYLD_LIBRARY_PATH
22687  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22688
22689  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22690  ;;
22691
22692dgux*)
22693  version_type=linux
22694  need_lib_prefix=no
22695  need_version=no
22696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22697  soname_spec='${libname}${release}${shared_ext}$major'
22698  shlibpath_var=LD_LIBRARY_PATH
22699  ;;
22700
22701freebsd1*)
22702  dynamic_linker=no
22703  ;;
22704
22705freebsd* | dragonfly*)
22706  # DragonFly does not have aout.  When/if they implement a new
22707  # versioning mechanism, adjust this.
22708  if test -x /usr/bin/objformat; then
22709    objformat=`/usr/bin/objformat`
22710  else
22711    case $host_os in
22712    freebsd[123]*) objformat=aout ;;
22713    *) objformat=elf ;;
22714    esac
22715  fi
22716  version_type=freebsd-$objformat
22717  case $version_type in
22718    freebsd-elf*)
22719      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22720      need_version=no
22721      need_lib_prefix=no
22722      ;;
22723    freebsd-*)
22724      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22725      need_version=yes
22726      ;;
22727  esac
22728  shlibpath_var=LD_LIBRARY_PATH
22729  case $host_os in
22730  freebsd2*)
22731    shlibpath_overrides_runpath=yes
22732    ;;
22733  freebsd3.[01]* | freebsdelf3.[01]*)
22734    shlibpath_overrides_runpath=yes
22735    hardcode_into_libs=yes
22736    ;;
22737  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22738  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22739    shlibpath_overrides_runpath=no
22740    hardcode_into_libs=yes
22741    ;;
22742  *) # from 4.6 on, and DragonFly
22743    shlibpath_overrides_runpath=yes
22744    hardcode_into_libs=yes
22745    ;;
22746  esac
22747  ;;
22748
22749gnu*)
22750  version_type=linux
22751  need_lib_prefix=no
22752  need_version=no
22753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22754  soname_spec='${libname}${release}${shared_ext}$major'
22755  shlibpath_var=LD_LIBRARY_PATH
22756  hardcode_into_libs=yes
22757  ;;
22758
22759hpux9* | hpux10* | hpux11*)
22760  # Give a soname corresponding to the major version so that dld.sl refuses to
22761  # link against other versions.
22762  version_type=sunos
22763  need_lib_prefix=no
22764  need_version=no
22765  case $host_cpu in
22766  ia64*)
22767    shrext_cmds='.so'
22768    hardcode_into_libs=yes
22769    dynamic_linker="$host_os dld.so"
22770    shlibpath_var=LD_LIBRARY_PATH
22771    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22772    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773    soname_spec='${libname}${release}${shared_ext}$major'
22774    if test "X$HPUX_IA64_MODE" = X32; then
22775      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22776    else
22777      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22778    fi
22779    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22780    ;;
22781   hppa*64*)
22782     shrext_cmds='.sl'
22783     hardcode_into_libs=yes
22784     dynamic_linker="$host_os dld.sl"
22785     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22788     soname_spec='${libname}${release}${shared_ext}$major'
22789     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22790     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22791     ;;
22792   *)
22793    shrext_cmds='.sl'
22794    dynamic_linker="$host_os dld.sl"
22795    shlibpath_var=SHLIB_PATH
22796    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22797    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22798    soname_spec='${libname}${release}${shared_ext}$major'
22799    ;;
22800  esac
22801  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22802  postinstall_cmds='chmod 555 $lib'
22803  ;;
22804
22805interix[3-9]*)
22806  version_type=linux
22807  need_lib_prefix=no
22808  need_version=no
22809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22810  soname_spec='${libname}${release}${shared_ext}$major'
22811  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22812  shlibpath_var=LD_LIBRARY_PATH
22813  shlibpath_overrides_runpath=no
22814  hardcode_into_libs=yes
22815  ;;
22816
22817irix5* | irix6* | nonstopux*)
22818  case $host_os in
22819    nonstopux*) version_type=nonstopux ;;
22820    *)
22821	if test "$lt_cv_prog_gnu_ld" = yes; then
22822		version_type=linux
22823	else
22824		version_type=irix
22825	fi ;;
22826  esac
22827  need_lib_prefix=no
22828  need_version=no
22829  soname_spec='${libname}${release}${shared_ext}$major'
22830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22831  case $host_os in
22832  irix5* | nonstopux*)
22833    libsuff= shlibsuff=
22834    ;;
22835  *)
22836    case $LD in # libtool.m4 will add one of these switches to LD
22837    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22838      libsuff= shlibsuff= libmagic=32-bit;;
22839    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22840      libsuff=32 shlibsuff=N32 libmagic=N32;;
22841    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22842      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22843    *) libsuff= shlibsuff= libmagic=never-match;;
22844    esac
22845    ;;
22846  esac
22847  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22848  shlibpath_overrides_runpath=no
22849  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22850  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22851  hardcode_into_libs=yes
22852  ;;
22853
22854# No shared lib support for Linux oldld, aout, or coff.
22855linux*oldld* | linux*aout* | linux*coff*)
22856  dynamic_linker=no
22857  ;;
22858
22859# This must be Linux ELF.
22860linux* | k*bsd*-gnu)
22861  version_type=linux
22862  need_lib_prefix=no
22863  need_version=no
22864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22865  soname_spec='${libname}${release}${shared_ext}$major'
22866  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22867  shlibpath_var=LD_LIBRARY_PATH
22868  shlibpath_overrides_runpath=no
22869  # This implies no fast_install, which is unacceptable.
22870  # Some rework will be needed to allow for fast_install
22871  # before this can be enabled.
22872  hardcode_into_libs=yes
22873  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22874  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22875
22876  # Append ld.so.conf contents to the search path
22877  if test -f /etc/ld.so.conf; then
22878    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22879    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
22880  fi
22881
22882  # We used to test for /lib/ld.so.1 and disable shared libraries on
22883  # powerpc, because MkLinux only supported shared libraries with the
22884  # GNU dynamic linker.  Since this was broken with cross compilers,
22885  # most powerpc-linux boxes support dynamic linking these days and
22886  # people can always --disable-shared, the test was removed, and we
22887  # assume the GNU/Linux dynamic linker is in use.
22888  dynamic_linker='GNU/Linux ld.so'
22889  ;;
22890
22891netbsd*)
22892  version_type=sunos
22893  need_lib_prefix=no
22894  need_version=no
22895  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22896    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22897    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22898    dynamic_linker='NetBSD (a.out) ld.so'
22899  else
22900    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22901    soname_spec='${libname}${release}${shared_ext}$major'
22902    dynamic_linker='NetBSD ld.elf_so'
22903  fi
22904  shlibpath_var=LD_LIBRARY_PATH
22905  shlibpath_overrides_runpath=yes
22906  hardcode_into_libs=yes
22907  ;;
22908
22909newsos6)
22910  version_type=linux
22911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22912  shlibpath_var=LD_LIBRARY_PATH
22913  shlibpath_overrides_runpath=yes
22914  ;;
22915
22916nto-qnx*)
22917  version_type=linux
22918  need_lib_prefix=no
22919  need_version=no
22920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22921  soname_spec='${libname}${release}${shared_ext}$major'
22922  shlibpath_var=LD_LIBRARY_PATH
22923  shlibpath_overrides_runpath=yes
22924  ;;
22925
22926openbsd*)
22927  version_type=sunos
22928  sys_lib_dlsearch_path_spec="/usr/lib"
22929  need_lib_prefix=no
22930  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22931  case $host_os in
22932    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22933    *)                         need_version=no  ;;
22934  esac
22935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22936  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22937  shlibpath_var=LD_LIBRARY_PATH
22938  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22939    case $host_os in
22940      openbsd2.[89] | openbsd2.[89].*)
22941	shlibpath_overrides_runpath=no
22942	;;
22943      *)
22944	shlibpath_overrides_runpath=yes
22945	;;
22946      esac
22947  else
22948    shlibpath_overrides_runpath=yes
22949  fi
22950  ;;
22951
22952os2*)
22953  libname_spec='$name'
22954  shrext_cmds=".dll"
22955  need_lib_prefix=no
22956  library_names_spec='$libname${shared_ext} $libname.a'
22957  dynamic_linker='OS/2 ld.exe'
22958  shlibpath_var=LIBPATH
22959  ;;
22960
22961osf3* | osf4* | osf5*)
22962  version_type=osf
22963  need_lib_prefix=no
22964  need_version=no
22965  soname_spec='${libname}${release}${shared_ext}$major'
22966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22967  shlibpath_var=LD_LIBRARY_PATH
22968  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22969  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22970  ;;
22971
22972rdos*)
22973  dynamic_linker=no
22974  ;;
22975
22976solaris*)
22977  version_type=linux
22978  need_lib_prefix=no
22979  need_version=no
22980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22981  soname_spec='${libname}${release}${shared_ext}$major'
22982  shlibpath_var=LD_LIBRARY_PATH
22983  shlibpath_overrides_runpath=yes
22984  hardcode_into_libs=yes
22985  # ldd complains unless libraries are executable
22986  postinstall_cmds='chmod +x $lib'
22987  ;;
22988
22989sunos4*)
22990  version_type=sunos
22991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22992  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22993  shlibpath_var=LD_LIBRARY_PATH
22994  shlibpath_overrides_runpath=yes
22995  if test "$with_gnu_ld" = yes; then
22996    need_lib_prefix=no
22997  fi
22998  need_version=yes
22999  ;;
23000
23001sysv4 | sysv4.3*)
23002  version_type=linux
23003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23004  soname_spec='${libname}${release}${shared_ext}$major'
23005  shlibpath_var=LD_LIBRARY_PATH
23006  case $host_vendor in
23007    sni)
23008      shlibpath_overrides_runpath=no
23009      need_lib_prefix=no
23010      export_dynamic_flag_spec='${wl}-Blargedynsym'
23011      runpath_var=LD_RUN_PATH
23012      ;;
23013    siemens)
23014      need_lib_prefix=no
23015      ;;
23016    motorola)
23017      need_lib_prefix=no
23018      need_version=no
23019      shlibpath_overrides_runpath=no
23020      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23021      ;;
23022  esac
23023  ;;
23024
23025sysv4*MP*)
23026  if test -d /usr/nec ;then
23027    version_type=linux
23028    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23029    soname_spec='$libname${shared_ext}.$major'
23030    shlibpath_var=LD_LIBRARY_PATH
23031  fi
23032  ;;
23033
23034sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23035  version_type=freebsd-elf
23036  need_lib_prefix=no
23037  need_version=no
23038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23039  soname_spec='${libname}${release}${shared_ext}$major'
23040  shlibpath_var=LD_LIBRARY_PATH
23041  hardcode_into_libs=yes
23042  if test "$with_gnu_ld" = yes; then
23043    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23044    shlibpath_overrides_runpath=no
23045  else
23046    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23047    shlibpath_overrides_runpath=yes
23048    case $host_os in
23049      sco3.2v5*)
23050        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23051	;;
23052    esac
23053  fi
23054  sys_lib_dlsearch_path_spec='/usr/lib'
23055  ;;
23056
23057uts4*)
23058  version_type=linux
23059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23060  soname_spec='${libname}${release}${shared_ext}$major'
23061  shlibpath_var=LD_LIBRARY_PATH
23062  ;;
23063
23064*)
23065  dynamic_linker=no
23066  ;;
23067esac
23068{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23069$as_echo "$dynamic_linker" >&6; }
23070test "$dynamic_linker" = no && can_build_shared=no
23071
23072if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23073  $as_echo_n "(cached) " >&6
23074else
23075  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
23076fi
23077
23078sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23079if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23080  $as_echo_n "(cached) " >&6
23081else
23082  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
23083fi
23084
23085sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23086
23087variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23088if test "$GCC" = yes; then
23089  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23090fi
23091
23092{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23093$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23094hardcode_action_F77=
23095if test -n "$hardcode_libdir_flag_spec_F77" || \
23096   test -n "$runpath_var_F77" || \
23097   test "X$hardcode_automatic_F77" = "Xyes" ; then
23098
23099  # We can hardcode non-existant directories.
23100  if test "$hardcode_direct_F77" != no &&
23101     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23102     # have to relink, otherwise we might link with an installed library
23103     # when we should be linking with a yet-to-be-installed one
23104     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23105     test "$hardcode_minus_L_F77" != no; then
23106    # Linking always hardcodes the temporary library directory.
23107    hardcode_action_F77=relink
23108  else
23109    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23110    hardcode_action_F77=immediate
23111  fi
23112else
23113  # We cannot hardcode anything, or else we can only hardcode existing
23114  # directories.
23115  hardcode_action_F77=unsupported
23116fi
23117{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23118$as_echo "$hardcode_action_F77" >&6; }
23119
23120if test "$hardcode_action_F77" = relink; then
23121  # Fast installation is not supported
23122  enable_fast_install=no
23123elif test "$shlibpath_overrides_runpath" = yes ||
23124     test "$enable_shared" = no; then
23125  # Fast installation is not necessary
23126  enable_fast_install=needless
23127fi
23128
23129
23130# The else clause should only fire when bootstrapping the
23131# libtool distribution, otherwise you forgot to ship ltmain.sh
23132# with your package, and you will get complaints that there are
23133# no rules to generate ltmain.sh.
23134if test -f "$ltmain"; then
23135  # See if we are running on zsh, and set the options which allow our commands through
23136  # without removal of \ escapes.
23137  if test -n "${ZSH_VERSION+set}" ; then
23138    setopt NO_GLOB_SUBST
23139  fi
23140  # Now quote all the things that may contain metacharacters while being
23141  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23142  # variables and quote the copies for generation of the libtool script.
23143  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23144    SED SHELL STRIP \
23145    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23146    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23147    deplibs_check_method reload_flag reload_cmds need_locks \
23148    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23149    lt_cv_sys_global_symbol_to_c_name_address \
23150    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23151    old_postinstall_cmds old_postuninstall_cmds \
23152    compiler_F77 \
23153    CC_F77 \
23154    LD_F77 \
23155    lt_prog_compiler_wl_F77 \
23156    lt_prog_compiler_pic_F77 \
23157    lt_prog_compiler_static_F77 \
23158    lt_prog_compiler_no_builtin_flag_F77 \
23159    export_dynamic_flag_spec_F77 \
23160    thread_safe_flag_spec_F77 \
23161    whole_archive_flag_spec_F77 \
23162    enable_shared_with_static_runtimes_F77 \
23163    old_archive_cmds_F77 \
23164    old_archive_from_new_cmds_F77 \
23165    predep_objects_F77 \
23166    postdep_objects_F77 \
23167    predeps_F77 \
23168    postdeps_F77 \
23169    compiler_lib_search_path_F77 \
23170    compiler_lib_search_dirs_F77 \
23171    archive_cmds_F77 \
23172    archive_expsym_cmds_F77 \
23173    postinstall_cmds_F77 \
23174    postuninstall_cmds_F77 \
23175    old_archive_from_expsyms_cmds_F77 \
23176    allow_undefined_flag_F77 \
23177    no_undefined_flag_F77 \
23178    export_symbols_cmds_F77 \
23179    hardcode_libdir_flag_spec_F77 \
23180    hardcode_libdir_flag_spec_ld_F77 \
23181    hardcode_libdir_separator_F77 \
23182    hardcode_automatic_F77 \
23183    module_cmds_F77 \
23184    module_expsym_cmds_F77 \
23185    lt_cv_prog_compiler_c_o_F77 \
23186    fix_srcfile_path_F77 \
23187    exclude_expsyms_F77 \
23188    include_expsyms_F77; do
23189
23190    case $var in
23191    old_archive_cmds_F77 | \
23192    old_archive_from_new_cmds_F77 | \
23193    archive_cmds_F77 | \
23194    archive_expsym_cmds_F77 | \
23195    module_cmds_F77 | \
23196    module_expsym_cmds_F77 | \
23197    old_archive_from_expsyms_cmds_F77 | \
23198    export_symbols_cmds_F77 | \
23199    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23200    postinstall_cmds | postuninstall_cmds | \
23201    old_postinstall_cmds | old_postuninstall_cmds | \
23202    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23203      # Double-quote double-evaled strings.
23204      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23205      ;;
23206    *)
23207      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23208      ;;
23209    esac
23210  done
23211
23212  case $lt_echo in
23213  *'\$0 --fallback-echo"')
23214    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23215    ;;
23216  esac
23217
23218cfgfile="$ofile"
23219
23220  cat <<__EOF__ >> "$cfgfile"
23221# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23222
23223# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23224
23225# Shell to use when invoking shell scripts.
23226SHELL=$lt_SHELL
23227
23228# Whether or not to build shared libraries.
23229build_libtool_libs=$enable_shared
23230
23231# Whether or not to build static libraries.
23232build_old_libs=$enable_static
23233
23234# Whether or not to add -lc for building shared libraries.
23235build_libtool_need_lc=$archive_cmds_need_lc_F77
23236
23237# Whether or not to disallow shared libs when runtime libs are static
23238allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23239
23240# Whether or not to optimize for fast installation.
23241fast_install=$enable_fast_install
23242
23243# The host system.
23244host_alias=$host_alias
23245host=$host
23246host_os=$host_os
23247
23248# The build system.
23249build_alias=$build_alias
23250build=$build
23251build_os=$build_os
23252
23253# An echo program that does not interpret backslashes.
23254echo=$lt_echo
23255
23256# The archiver.
23257AR=$lt_AR
23258AR_FLAGS=$lt_AR_FLAGS
23259
23260# A C compiler.
23261LTCC=$lt_LTCC
23262
23263# LTCC compiler flags.
23264LTCFLAGS=$lt_LTCFLAGS
23265
23266# A language-specific compiler.
23267CC=$lt_compiler_F77
23268
23269# Is the compiler the GNU C compiler?
23270with_gcc=$GCC_F77
23271
23272# An ERE matcher.
23273EGREP=$lt_EGREP
23274
23275# The linker used to build libraries.
23276LD=$lt_LD_F77
23277
23278# Whether we need hard or soft links.
23279LN_S=$lt_LN_S
23280
23281# A BSD-compatible nm program.
23282NM=$lt_NM
23283
23284# A symbol stripping program
23285STRIP=$lt_STRIP
23286
23287# Used to examine libraries when file_magic_cmd begins "file"
23288MAGIC_CMD=$MAGIC_CMD
23289
23290# Used on cygwin: DLL creation program.
23291DLLTOOL="$DLLTOOL"
23292
23293# Used on cygwin: object dumper.
23294OBJDUMP="$OBJDUMP"
23295
23296# Used on cygwin: assembler.
23297AS="$AS"
23298
23299# The name of the directory that contains temporary libtool files.
23300objdir=$objdir
23301
23302# How to create reloadable object files.
23303reload_flag=$lt_reload_flag
23304reload_cmds=$lt_reload_cmds
23305
23306# How to pass a linker flag through the compiler.
23307wl=$lt_lt_prog_compiler_wl_F77
23308
23309# Object file suffix (normally "o").
23310objext="$ac_objext"
23311
23312# Old archive suffix (normally "a").
23313libext="$libext"
23314
23315# Shared library suffix (normally ".so").
23316shrext_cmds='$shrext_cmds'
23317
23318# Executable file suffix (normally "").
23319exeext="$exeext"
23320
23321# Additional compiler flags for building library objects.
23322pic_flag=$lt_lt_prog_compiler_pic_F77
23323pic_mode=$pic_mode
23324
23325# What is the maximum length of a command?
23326max_cmd_len=$lt_cv_sys_max_cmd_len
23327
23328# Does compiler simultaneously support -c and -o options?
23329compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23330
23331# Must we lock files when doing compilation?
23332need_locks=$lt_need_locks
23333
23334# Do we need the lib prefix for modules?
23335need_lib_prefix=$need_lib_prefix
23336
23337# Do we need a version for libraries?
23338need_version=$need_version
23339
23340# Whether dlopen is supported.
23341dlopen_support=$enable_dlopen
23342
23343# Whether dlopen of programs is supported.
23344dlopen_self=$enable_dlopen_self
23345
23346# Whether dlopen of statically linked programs is supported.
23347dlopen_self_static=$enable_dlopen_self_static
23348
23349# Compiler flag to prevent dynamic linking.
23350link_static_flag=$lt_lt_prog_compiler_static_F77
23351
23352# Compiler flag to turn off builtin functions.
23353no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23354
23355# Compiler flag to allow reflexive dlopens.
23356export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23357
23358# Compiler flag to generate shared objects directly from archives.
23359whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23360
23361# Compiler flag to generate thread-safe objects.
23362thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23363
23364# Library versioning type.
23365version_type=$version_type
23366
23367# Format of library name prefix.
23368libname_spec=$lt_libname_spec
23369
23370# List of archive names.  First name is the real one, the rest are links.
23371# The last name is the one that the linker finds with -lNAME.
23372library_names_spec=$lt_library_names_spec
23373
23374# The coded name of the library, if different from the real name.
23375soname_spec=$lt_soname_spec
23376
23377# Commands used to build and install an old-style archive.
23378RANLIB=$lt_RANLIB
23379old_archive_cmds=$lt_old_archive_cmds_F77
23380old_postinstall_cmds=$lt_old_postinstall_cmds
23381old_postuninstall_cmds=$lt_old_postuninstall_cmds
23382
23383# Create an old-style archive from a shared archive.
23384old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23385
23386# Create a temporary old-style archive to link instead of a shared archive.
23387old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23388
23389# Commands used to build and install a shared archive.
23390archive_cmds=$lt_archive_cmds_F77
23391archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23392postinstall_cmds=$lt_postinstall_cmds
23393postuninstall_cmds=$lt_postuninstall_cmds
23394
23395# Commands used to build a loadable module (assumed same as above if empty)
23396module_cmds=$lt_module_cmds_F77
23397module_expsym_cmds=$lt_module_expsym_cmds_F77
23398
23399# Commands to strip libraries.
23400old_striplib=$lt_old_striplib
23401striplib=$lt_striplib
23402
23403# Dependencies to place before the objects being linked to create a
23404# shared library.
23405predep_objects=$lt_predep_objects_F77
23406
23407# Dependencies to place after the objects being linked to create a
23408# shared library.
23409postdep_objects=$lt_postdep_objects_F77
23410
23411# Dependencies to place before the objects being linked to create a
23412# shared library.
23413predeps=$lt_predeps_F77
23414
23415# Dependencies to place after the objects being linked to create a
23416# shared library.
23417postdeps=$lt_postdeps_F77
23418
23419# The directories searched by this compiler when creating a shared
23420# library
23421compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
23422
23423# The library search path used internally by the compiler when linking
23424# a shared library.
23425compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23426
23427# Method to check whether dependent libraries are shared objects.
23428deplibs_check_method=$lt_deplibs_check_method
23429
23430# Command to use when deplibs_check_method == file_magic.
23431file_magic_cmd=$lt_file_magic_cmd
23432
23433# Flag that allows shared libraries with undefined symbols to be built.
23434allow_undefined_flag=$lt_allow_undefined_flag_F77
23435
23436# Flag that forces no undefined symbols.
23437no_undefined_flag=$lt_no_undefined_flag_F77
23438
23439# Commands used to finish a libtool library installation in a directory.
23440finish_cmds=$lt_finish_cmds
23441
23442# Same as above, but a single script fragment to be evaled but not shown.
23443finish_eval=$lt_finish_eval
23444
23445# Take the output of nm and produce a listing of raw symbols and C names.
23446global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23447
23448# Transform the output of nm in a proper C declaration
23449global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23450
23451# Transform the output of nm in a C name address pair
23452global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23453
23454# This is the shared library runtime path variable.
23455runpath_var=$runpath_var
23456
23457# This is the shared library path variable.
23458shlibpath_var=$shlibpath_var
23459
23460# Is shlibpath searched before the hard-coded library search path?
23461shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23462
23463# How to hardcode a shared library path into an executable.
23464hardcode_action=$hardcode_action_F77
23465
23466# Whether we should hardcode library paths into libraries.
23467hardcode_into_libs=$hardcode_into_libs
23468
23469# Flag to hardcode \$libdir into a binary during linking.
23470# This must work even if \$libdir does not exist.
23471hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23472
23473# If ld is used when linking, flag to hardcode \$libdir into
23474# a binary during linking. This must work even if \$libdir does
23475# not exist.
23476hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23477
23478# Whether we need a single -rpath flag with a separated argument.
23479hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23480
23481# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23482# resulting binary.
23483hardcode_direct=$hardcode_direct_F77
23484
23485# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23486# resulting binary.
23487hardcode_minus_L=$hardcode_minus_L_F77
23488
23489# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23490# the resulting binary.
23491hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23492
23493# Set to yes if building a shared library automatically hardcodes DIR into the library
23494# and all subsequent libraries and executables linked against it.
23495hardcode_automatic=$hardcode_automatic_F77
23496
23497# Variables whose values should be saved in libtool wrapper scripts and
23498# restored at relink time.
23499variables_saved_for_relink="$variables_saved_for_relink"
23500
23501# Whether libtool must link a program against all its dependency libraries.
23502link_all_deplibs=$link_all_deplibs_F77
23503
23504# Compile-time system search path for libraries
23505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23506
23507# Run-time system search path for libraries
23508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23509
23510# Fix the shell variable \$srcfile for the compiler.
23511fix_srcfile_path=$lt_fix_srcfile_path
23512
23513# Set to yes if exported symbols are required.
23514always_export_symbols=$always_export_symbols_F77
23515
23516# The commands to list exported symbols.
23517export_symbols_cmds=$lt_export_symbols_cmds_F77
23518
23519# The commands to extract the exported symbol list from a shared archive.
23520extract_expsyms_cmds=$lt_extract_expsyms_cmds
23521
23522# Symbols that should not be listed in the preloaded symbols.
23523exclude_expsyms=$lt_exclude_expsyms_F77
23524
23525# Symbols that must always be exported.
23526include_expsyms=$lt_include_expsyms_F77
23527
23528# ### END LIBTOOL TAG CONFIG: $tagname
23529
23530__EOF__
23531
23532
23533else
23534  # If there is no Makefile yet, we rely on a make rule to execute
23535  # `config.status --recheck' to rerun these tests and create the
23536  # libtool script then.
23537  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23538  if test -f "$ltmain_in"; then
23539    test -f Makefile && make "$ltmain"
23540  fi
23541fi
23542
23543
23544ac_ext=c
23545ac_cpp='$CPP $CPPFLAGS'
23546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23548ac_compiler_gnu=$ac_cv_c_compiler_gnu
23549
23550CC="$lt_save_CC"
23551
23552	else
23553	  tagname=""
23554	fi
23555	;;
23556
23557      GCJ)
23558	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23559
23560
23561# Source file extension for Java test sources.
23562ac_ext=java
23563
23564# Object file extension for compiled Java test sources.
23565objext=o
23566objext_GCJ=$objext
23567
23568# Code to be used in simple compile tests
23569lt_simple_compile_test_code="class foo {}"
23570
23571# Code to be used in simple link tests
23572lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
23573
23574# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23575
23576# If no C compiler was specified, use CC.
23577LTCC=${LTCC-"$CC"}
23578
23579# If no C compiler flags were specified, use CFLAGS.
23580LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23581
23582# Allow CC to be a program name with arguments.
23583compiler=$CC
23584
23585
23586# save warnings/boilerplate of simple test code
23587ac_outfile=conftest.$ac_objext
23588echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23589eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23590_lt_compiler_boilerplate=`cat conftest.err`
23591$rm conftest*
23592
23593ac_outfile=conftest.$ac_objext
23594echo "$lt_simple_link_test_code" >conftest.$ac_ext
23595eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23596_lt_linker_boilerplate=`cat conftest.err`
23597$rm -r conftest*
23598
23599
23600# Allow CC to be a program name with arguments.
23601lt_save_CC="$CC"
23602CC=${GCJ-"gcj"}
23603compiler=$CC
23604compiler_GCJ=$CC
23605for cc_temp in $compiler""; do
23606  case $cc_temp in
23607    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23608    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23609    \-*) ;;
23610    *) break;;
23611  esac
23612done
23613cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23614
23615
23616# GCJ did not exist at the time GCC didn't implicitly link libc in.
23617archive_cmds_need_lc_GCJ=no
23618
23619old_archive_cmds_GCJ=$old_archive_cmds
23620
23621
23622lt_prog_compiler_no_builtin_flag_GCJ=
23623
23624if test "$GCC" = yes; then
23625  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23626
23627
23628{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23629$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
23630if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23631  $as_echo_n "(cached) " >&6
23632else
23633  lt_cv_prog_compiler_rtti_exceptions=no
23634  ac_outfile=conftest.$ac_objext
23635   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23636   lt_compiler_flag="-fno-rtti -fno-exceptions"
23637   # Insert the option either (1) after the last *FLAGS variable, or
23638   # (2) before a word containing "conftest.", or (3) at the end.
23639   # Note that $ac_compile itself does not contain backslashes and begins
23640   # with a dollar sign (not a hyphen), so the echo should work correctly.
23641   # The option is referenced via a variable to avoid confusing sed.
23642   lt_compile=`echo "$ac_compile" | $SED \
23643   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23644   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23645   -e 's:$: $lt_compiler_flag:'`
23646   (eval echo "\"\$as_me:23646: $lt_compile\"" >&5)
23647   (eval "$lt_compile" 2>conftest.err)
23648   ac_status=$?
23649   cat conftest.err >&5
23650   echo "$as_me:23650: \$? = $ac_status" >&5
23651   if (exit $ac_status) && test -s "$ac_outfile"; then
23652     # The compiler can only warn and ignore the option if not recognized
23653     # So say no if there are warnings other than the usual output.
23654     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23655     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23656     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23657       lt_cv_prog_compiler_rtti_exceptions=yes
23658     fi
23659   fi
23660   $rm conftest*
23661
23662fi
23663{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23664$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23665
23666if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23667    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23668else
23669    :
23670fi
23671
23672fi
23673
23674lt_prog_compiler_wl_GCJ=
23675lt_prog_compiler_pic_GCJ=
23676lt_prog_compiler_static_GCJ=
23677
23678{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23679$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23680
23681  if test "$GCC" = yes; then
23682    lt_prog_compiler_wl_GCJ='-Wl,'
23683    lt_prog_compiler_static_GCJ='-static'
23684
23685    case $host_os in
23686      aix*)
23687      # All AIX code is PIC.
23688      if test "$host_cpu" = ia64; then
23689	# AIX 5 now supports IA64 processor
23690	lt_prog_compiler_static_GCJ='-Bstatic'
23691      fi
23692      ;;
23693
23694    amigaos*)
23695      # FIXME: we need at least 68020 code to build shared libraries, but
23696      # adding the `-m68020' flag to GCC prevents building anything better,
23697      # like `-m68040'.
23698      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23699      ;;
23700
23701    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23702      # PIC is the default for these OSes.
23703      ;;
23704
23705    mingw* | cygwin* | pw32* | os2*)
23706      # This hack is so that the source file can tell whether it is being
23707      # built for inclusion in a dll (and should export symbols for example).
23708      # Although the cygwin gcc ignores -fPIC, still need this for old-style
23709      # (--disable-auto-import) libraries
23710
23711      ;;
23712
23713    darwin* | rhapsody*)
23714      # PIC is the default on this platform
23715      # Common symbols not allowed in MH_DYLIB files
23716      lt_prog_compiler_pic_GCJ='-fno-common'
23717      ;;
23718
23719    interix[3-9]*)
23720      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23721      # Instead, we relocate shared libraries at runtime.
23722      ;;
23723
23724    msdosdjgpp*)
23725      # Just because we use GCC doesn't mean we suddenly get shared libraries
23726      # on systems that don't support them.
23727      lt_prog_compiler_can_build_shared_GCJ=no
23728      enable_shared=no
23729      ;;
23730
23731    sysv4*MP*)
23732      if test -d /usr/nec; then
23733	lt_prog_compiler_pic_GCJ=-Kconform_pic
23734      fi
23735      ;;
23736
23737    hpux*)
23738      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23739      # not for PA HP-UX.
23740      case $host_cpu in
23741      hppa*64*|ia64*)
23742	# +Z the default
23743	;;
23744      *)
23745	lt_prog_compiler_pic_GCJ='-fPIC'
23746	;;
23747      esac
23748      ;;
23749
23750    *)
23751      lt_prog_compiler_pic_GCJ='-fPIC'
23752      ;;
23753    esac
23754  else
23755    # PORTME Check for flag to pass linker flags through the system compiler.
23756    case $host_os in
23757    aix*)
23758      lt_prog_compiler_wl_GCJ='-Wl,'
23759      if test "$host_cpu" = ia64; then
23760	# AIX 5 now supports IA64 processor
23761	lt_prog_compiler_static_GCJ='-Bstatic'
23762      else
23763	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23764      fi
23765      ;;
23766      darwin*)
23767        # PIC is the default on this platform
23768        # Common symbols not allowed in MH_DYLIB files
23769       case $cc_basename in
23770         xlc*)
23771         lt_prog_compiler_pic_GCJ='-qnocommon'
23772         lt_prog_compiler_wl_GCJ='-Wl,'
23773         ;;
23774       esac
23775       ;;
23776
23777    mingw* | cygwin* | pw32* | os2*)
23778      # This hack is so that the source file can tell whether it is being
23779      # built for inclusion in a dll (and should export symbols for example).
23780
23781      ;;
23782
23783    hpux9* | hpux10* | hpux11*)
23784      lt_prog_compiler_wl_GCJ='-Wl,'
23785      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23786      # not for PA HP-UX.
23787      case $host_cpu in
23788      hppa*64*|ia64*)
23789	# +Z the default
23790	;;
23791      *)
23792	lt_prog_compiler_pic_GCJ='+Z'
23793	;;
23794      esac
23795      # Is there a better lt_prog_compiler_static that works with the bundled CC?
23796      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23797      ;;
23798
23799    irix5* | irix6* | nonstopux*)
23800      lt_prog_compiler_wl_GCJ='-Wl,'
23801      # PIC (with -KPIC) is the default.
23802      lt_prog_compiler_static_GCJ='-non_shared'
23803      ;;
23804
23805    newsos6)
23806      lt_prog_compiler_pic_GCJ='-KPIC'
23807      lt_prog_compiler_static_GCJ='-Bstatic'
23808      ;;
23809
23810    linux* | k*bsd*-gnu)
23811      case $cc_basename in
23812      icc* | ecc*)
23813	lt_prog_compiler_wl_GCJ='-Wl,'
23814	lt_prog_compiler_pic_GCJ='-KPIC'
23815	lt_prog_compiler_static_GCJ='-static'
23816        ;;
23817      pgcc* | pgf77* | pgf90* | pgf95*)
23818        # Portland Group compilers (*not* the Pentium gcc compiler,
23819	# which looks to be a dead project)
23820	lt_prog_compiler_wl_GCJ='-Wl,'
23821	lt_prog_compiler_pic_GCJ='-fpic'
23822	lt_prog_compiler_static_GCJ='-Bstatic'
23823        ;;
23824      ccc*)
23825        lt_prog_compiler_wl_GCJ='-Wl,'
23826        # All Alpha code is PIC.
23827        lt_prog_compiler_static_GCJ='-non_shared'
23828        ;;
23829      *)
23830        case `$CC -V 2>&1 | sed 5q` in
23831	*Sun\ C*)
23832	  # Sun C 5.9
23833	  lt_prog_compiler_pic_GCJ='-KPIC'
23834	  lt_prog_compiler_static_GCJ='-Bstatic'
23835	  lt_prog_compiler_wl_GCJ='-Wl,'
23836	  ;;
23837	*Sun\ F*)
23838	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
23839	  lt_prog_compiler_pic_GCJ='-KPIC'
23840	  lt_prog_compiler_static_GCJ='-Bstatic'
23841	  lt_prog_compiler_wl_GCJ=''
23842	  ;;
23843	esac
23844	;;
23845      esac
23846      ;;
23847
23848    osf3* | osf4* | osf5*)
23849      lt_prog_compiler_wl_GCJ='-Wl,'
23850      # All OSF/1 code is PIC.
23851      lt_prog_compiler_static_GCJ='-non_shared'
23852      ;;
23853
23854    rdos*)
23855      lt_prog_compiler_static_GCJ='-non_shared'
23856      ;;
23857
23858    solaris*)
23859      lt_prog_compiler_pic_GCJ='-KPIC'
23860      lt_prog_compiler_static_GCJ='-Bstatic'
23861      case $cc_basename in
23862      f77* | f90* | f95*)
23863	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23864      *)
23865	lt_prog_compiler_wl_GCJ='-Wl,';;
23866      esac
23867      ;;
23868
23869    sunos4*)
23870      lt_prog_compiler_wl_GCJ='-Qoption ld '
23871      lt_prog_compiler_pic_GCJ='-PIC'
23872      lt_prog_compiler_static_GCJ='-Bstatic'
23873      ;;
23874
23875    sysv4 | sysv4.2uw2* | sysv4.3*)
23876      lt_prog_compiler_wl_GCJ='-Wl,'
23877      lt_prog_compiler_pic_GCJ='-KPIC'
23878      lt_prog_compiler_static_GCJ='-Bstatic'
23879      ;;
23880
23881    sysv4*MP*)
23882      if test -d /usr/nec ;then
23883	lt_prog_compiler_pic_GCJ='-Kconform_pic'
23884	lt_prog_compiler_static_GCJ='-Bstatic'
23885      fi
23886      ;;
23887
23888    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23889      lt_prog_compiler_wl_GCJ='-Wl,'
23890      lt_prog_compiler_pic_GCJ='-KPIC'
23891      lt_prog_compiler_static_GCJ='-Bstatic'
23892      ;;
23893
23894    unicos*)
23895      lt_prog_compiler_wl_GCJ='-Wl,'
23896      lt_prog_compiler_can_build_shared_GCJ=no
23897      ;;
23898
23899    uts4*)
23900      lt_prog_compiler_pic_GCJ='-pic'
23901      lt_prog_compiler_static_GCJ='-Bstatic'
23902      ;;
23903
23904    *)
23905      lt_prog_compiler_can_build_shared_GCJ=no
23906      ;;
23907    esac
23908  fi
23909
23910{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23911$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
23912
23913#
23914# Check to make sure the PIC flag actually works.
23915#
23916if test -n "$lt_prog_compiler_pic_GCJ"; then
23917
23918{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23919$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
23920if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
23921  $as_echo_n "(cached) " >&6
23922else
23923  lt_cv_prog_compiler_pic_works_GCJ=no
23924  ac_outfile=conftest.$ac_objext
23925   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23926   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23927   # Insert the option either (1) after the last *FLAGS variable, or
23928   # (2) before a word containing "conftest.", or (3) at the end.
23929   # Note that $ac_compile itself does not contain backslashes and begins
23930   # with a dollar sign (not a hyphen), so the echo should work correctly.
23931   # The option is referenced via a variable to avoid confusing sed.
23932   lt_compile=`echo "$ac_compile" | $SED \
23933   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23934   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23935   -e 's:$: $lt_compiler_flag:'`
23936   (eval echo "\"\$as_me:23936: $lt_compile\"" >&5)
23937   (eval "$lt_compile" 2>conftest.err)
23938   ac_status=$?
23939   cat conftest.err >&5
23940   echo "$as_me:23940: \$? = $ac_status" >&5
23941   if (exit $ac_status) && test -s "$ac_outfile"; then
23942     # The compiler can only warn and ignore the option if not recognized
23943     # So say no if there are warnings other than the usual output.
23944     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23945     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23946     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23947       lt_cv_prog_compiler_pic_works_GCJ=yes
23948     fi
23949   fi
23950   $rm conftest*
23951
23952fi
23953{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
23954$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
23955
23956if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
23957    case $lt_prog_compiler_pic_GCJ in
23958     "" | " "*) ;;
23959     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23960     esac
23961else
23962    lt_prog_compiler_pic_GCJ=
23963     lt_prog_compiler_can_build_shared_GCJ=no
23964fi
23965
23966fi
23967case $host_os in
23968  # For platforms which do not support PIC, -DPIC is meaningless:
23969  *djgpp*)
23970    lt_prog_compiler_pic_GCJ=
23971    ;;
23972  *)
23973    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23974    ;;
23975esac
23976
23977#
23978# Check to make sure the static flag actually works.
23979#
23980wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23981{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23982$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23983if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
23984  $as_echo_n "(cached) " >&6
23985else
23986  lt_cv_prog_compiler_static_works_GCJ=no
23987   save_LDFLAGS="$LDFLAGS"
23988   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23989   echo "$lt_simple_link_test_code" > conftest.$ac_ext
23990   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23991     # The linker can only warn and ignore the option if not recognized
23992     # So say no if there are warnings
23993     if test -s conftest.err; then
23994       # Append any errors to the config.log.
23995       cat conftest.err 1>&5
23996       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23997       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23998       if diff conftest.exp conftest.er2 >/dev/null; then
23999         lt_cv_prog_compiler_static_works_GCJ=yes
24000       fi
24001     else
24002       lt_cv_prog_compiler_static_works_GCJ=yes
24003     fi
24004   fi
24005   $rm -r conftest*
24006   LDFLAGS="$save_LDFLAGS"
24007
24008fi
24009{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
24010$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
24011
24012if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
24013    :
24014else
24015    lt_prog_compiler_static_GCJ=
24016fi
24017
24018
24019{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24020$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24021if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24022  $as_echo_n "(cached) " >&6
24023else
24024  lt_cv_prog_compiler_c_o_GCJ=no
24025   $rm -r conftest 2>/dev/null
24026   mkdir conftest
24027   cd conftest
24028   mkdir out
24029   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24030
24031   lt_compiler_flag="-o out/conftest2.$ac_objext"
24032   # Insert the option either (1) after the last *FLAGS variable, or
24033   # (2) before a word containing "conftest.", or (3) at the end.
24034   # Note that $ac_compile itself does not contain backslashes and begins
24035   # with a dollar sign (not a hyphen), so the echo should work correctly.
24036   lt_compile=`echo "$ac_compile" | $SED \
24037   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24038   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24039   -e 's:$: $lt_compiler_flag:'`
24040   (eval echo "\"\$as_me:24040: $lt_compile\"" >&5)
24041   (eval "$lt_compile" 2>out/conftest.err)
24042   ac_status=$?
24043   cat out/conftest.err >&5
24044   echo "$as_me:24044: \$? = $ac_status" >&5
24045   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24046   then
24047     # The compiler can only warn and ignore the option if not recognized
24048     # So say no if there are warnings
24049     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24050     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24051     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24052       lt_cv_prog_compiler_c_o_GCJ=yes
24053     fi
24054   fi
24055   chmod u+w . 2>&5
24056   $rm conftest*
24057   # SGI C++ compiler will create directory out/ii_files/ for
24058   # template instantiation
24059   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24060   $rm out/* && rmdir out
24061   cd ..
24062   rmdir conftest
24063   $rm conftest*
24064
24065fi
24066{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24067$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24068
24069
24070hard_links="nottested"
24071if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24072  # do not overwrite the value of need_locks provided by the user
24073  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24074$as_echo_n "checking if we can lock with hard links... " >&6; }
24075  hard_links=yes
24076  $rm conftest*
24077  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24078  touch conftest.a
24079  ln conftest.a conftest.b 2>&5 || hard_links=no
24080  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24081  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
24082$as_echo "$hard_links" >&6; }
24083  if test "$hard_links" = no; then
24084    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24085$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24086    need_locks=warn
24087  fi
24088else
24089  need_locks=no
24090fi
24091
24092{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24093$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24094
24095  runpath_var=
24096  allow_undefined_flag_GCJ=
24097  enable_shared_with_static_runtimes_GCJ=no
24098  archive_cmds_GCJ=
24099  archive_expsym_cmds_GCJ=
24100  old_archive_From_new_cmds_GCJ=
24101  old_archive_from_expsyms_cmds_GCJ=
24102  export_dynamic_flag_spec_GCJ=
24103  whole_archive_flag_spec_GCJ=
24104  thread_safe_flag_spec_GCJ=
24105  hardcode_libdir_flag_spec_GCJ=
24106  hardcode_libdir_flag_spec_ld_GCJ=
24107  hardcode_libdir_separator_GCJ=
24108  hardcode_direct_GCJ=no
24109  hardcode_minus_L_GCJ=no
24110  hardcode_shlibpath_var_GCJ=unsupported
24111  link_all_deplibs_GCJ=unknown
24112  hardcode_automatic_GCJ=no
24113  module_cmds_GCJ=
24114  module_expsym_cmds_GCJ=
24115  always_export_symbols_GCJ=no
24116  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24117  # include_expsyms should be a list of space-separated symbols to be *always*
24118  # included in the symbol list
24119  include_expsyms_GCJ=
24120  # exclude_expsyms can be an extended regexp of symbols to exclude
24121  # it will be wrapped by ` (' and `)$', so one must not match beginning or
24122  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24123  # as well as any symbol that contains `d'.
24124  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24125  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24126  # platforms (ab)use it in PIC code, but their linkers get confused if
24127  # the symbol is explicitly referenced.  Since portable code cannot
24128  # rely on this symbol name, it's probably fine to never include it in
24129  # preloaded symbol tables.
24130  # Exclude shared library initialization/finalization symbols.
24131  extract_expsyms_cmds=
24132  # Just being paranoid about ensuring that cc_basename is set.
24133  for cc_temp in $compiler""; do
24134  case $cc_temp in
24135    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24136    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24137    \-*) ;;
24138    *) break;;
24139  esac
24140done
24141cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24142
24143  case $host_os in
24144  cygwin* | mingw* | pw32*)
24145    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24146    # When not using gcc, we currently assume that we are using
24147    # Microsoft Visual C++.
24148    if test "$GCC" != yes; then
24149      with_gnu_ld=no
24150    fi
24151    ;;
24152  interix*)
24153    # we just hope/assume this is gcc and not c89 (= MSVC++)
24154    with_gnu_ld=yes
24155    ;;
24156  openbsd*)
24157    with_gnu_ld=no
24158    ;;
24159  esac
24160
24161  ld_shlibs_GCJ=yes
24162  if test "$with_gnu_ld" = yes; then
24163    # If archive_cmds runs LD, not CC, wlarc should be empty
24164    wlarc='${wl}'
24165
24166    # Set some defaults for GNU ld with shared library support. These
24167    # are reset later if shared libraries are not supported. Putting them
24168    # here allows them to be overridden if necessary.
24169    runpath_var=LD_RUN_PATH
24170    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24171    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24172    # ancient GNU ld didn't support --whole-archive et. al.
24173    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24174	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24175      else
24176  	whole_archive_flag_spec_GCJ=
24177    fi
24178    supports_anon_versioning=no
24179    case `$LD -v 2>/dev/null` in
24180      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24181      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24182      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24183      *\ 2.11.*) ;; # other 2.11 versions
24184      *) supports_anon_versioning=yes ;;
24185    esac
24186
24187    # See if GNU ld supports shared libraries.
24188    case $host_os in
24189    aix[3-9]*)
24190      # On AIX/PPC, the GNU linker is very broken
24191      if test "$host_cpu" != ia64; then
24192	ld_shlibs_GCJ=no
24193	cat <<EOF 1>&2
24194
24195*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24196*** to be unable to reliably create shared libraries on AIX.
24197*** Therefore, libtool is disabling shared libraries support.  If you
24198*** really care for shared libraries, you may want to modify your PATH
24199*** so that a non-GNU linker is found, and then restart.
24200
24201EOF
24202      fi
24203      ;;
24204
24205    amigaos*)
24206      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)'
24207      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24208      hardcode_minus_L_GCJ=yes
24209
24210      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24211      # that the semantics of dynamic libraries on AmigaOS, at least up
24212      # to version 4, is to share data among multiple programs linked
24213      # with the same dynamic library.  Since this doesn't match the
24214      # behavior of shared libraries on other platforms, we can't use
24215      # them.
24216      ld_shlibs_GCJ=no
24217      ;;
24218
24219    beos*)
24220      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24221	allow_undefined_flag_GCJ=unsupported
24222	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24223	# support --undefined.  This deserves some investigation.  FIXME
24224	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24225      else
24226	ld_shlibs_GCJ=no
24227      fi
24228      ;;
24229
24230    cygwin* | mingw* | pw32*)
24231      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24232      # as there is no search path for DLLs.
24233      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24234      allow_undefined_flag_GCJ=unsupported
24235      always_export_symbols_GCJ=no
24236      enable_shared_with_static_runtimes_GCJ=yes
24237      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
24238
24239      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24240        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24241	# If the export-symbols file already is a .def file (1st line
24242	# is EXPORTS), use it as is; otherwise, prepend...
24243	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24244	  cp $export_symbols $output_objdir/$soname.def;
24245	else
24246	  echo EXPORTS > $output_objdir/$soname.def;
24247	  cat $export_symbols >> $output_objdir/$soname.def;
24248	fi~
24249	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24250      else
24251	ld_shlibs_GCJ=no
24252      fi
24253      ;;
24254
24255    interix[3-9]*)
24256      hardcode_direct_GCJ=no
24257      hardcode_shlibpath_var_GCJ=no
24258      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24259      export_dynamic_flag_spec_GCJ='${wl}-E'
24260      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24261      # Instead, shared libraries are loaded at an image base (0x10000000 by
24262      # default) and relocated if they conflict, which is a slow very memory
24263      # consuming and fragmenting process.  To avoid this, we pick a random,
24264      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24265      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24266      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'
24267      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'
24268      ;;
24269
24270    gnu* | linux* | k*bsd*-gnu)
24271      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24272	tmp_addflag=
24273	case $cc_basename,$host_cpu in
24274	pgcc*)				# Portland Group C compiler
24275	  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'
24276	  tmp_addflag=' $pic_flag'
24277	  ;;
24278	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24279	  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'
24280	  tmp_addflag=' $pic_flag -Mnomain' ;;
24281	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24282	  tmp_addflag=' -i_dynamic' ;;
24283	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24284	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24285	ifc* | ifort*)			# Intel Fortran compiler
24286	  tmp_addflag=' -nofor_main' ;;
24287	esac
24288	case `$CC -V 2>&1 | sed 5q` in
24289	*Sun\ C*)			# Sun C 5.9
24290	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24291	  tmp_sharedflag='-G' ;;
24292	*Sun\ F*)			# Sun Fortran 8.3
24293	  tmp_sharedflag='-G' ;;
24294	*)
24295	  tmp_sharedflag='-shared' ;;
24296	esac
24297	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24298
24299	if test $supports_anon_versioning = yes; then
24300	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24301  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24302  $echo "local: *; };" >> $output_objdir/$libname.ver~
24303	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24304	fi
24305      else
24306	ld_shlibs_GCJ=no
24307      fi
24308      ;;
24309
24310    netbsd*)
24311      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24312	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24313	wlarc=
24314      else
24315	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24316	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24317      fi
24318      ;;
24319
24320    solaris*)
24321      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24322	ld_shlibs_GCJ=no
24323	cat <<EOF 1>&2
24324
24325*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24326*** create shared libraries on Solaris systems.  Therefore, libtool
24327*** is disabling shared libraries support.  We urge you to upgrade GNU
24328*** binutils to release 2.9.1 or newer.  Another option is to modify
24329*** your PATH or compiler configuration so that the native linker is
24330*** used, and then restart.
24331
24332EOF
24333      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24334	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24335	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24336      else
24337	ld_shlibs_GCJ=no
24338      fi
24339      ;;
24340
24341    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24342      case `$LD -v 2>&1` in
24343        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24344	ld_shlibs_GCJ=no
24345	cat <<_LT_EOF 1>&2
24346
24347*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24348*** reliably create shared libraries on SCO systems.  Therefore, libtool
24349*** is disabling shared libraries support.  We urge you to upgrade GNU
24350*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24351*** your PATH or compiler configuration so that the native linker is
24352*** used, and then restart.
24353
24354_LT_EOF
24355	;;
24356	*)
24357	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24358	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24359	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24360	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24361	  else
24362	    ld_shlibs_GCJ=no
24363	  fi
24364	;;
24365      esac
24366      ;;
24367
24368    sunos4*)
24369      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24370      wlarc=
24371      hardcode_direct_GCJ=yes
24372      hardcode_shlibpath_var_GCJ=no
24373      ;;
24374
24375    *)
24376      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24377	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24378	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24379      else
24380	ld_shlibs_GCJ=no
24381      fi
24382      ;;
24383    esac
24384
24385    if test "$ld_shlibs_GCJ" = no; then
24386      runpath_var=
24387      hardcode_libdir_flag_spec_GCJ=
24388      export_dynamic_flag_spec_GCJ=
24389      whole_archive_flag_spec_GCJ=
24390    fi
24391  else
24392    # PORTME fill in a description of your system's linker (not GNU ld)
24393    case $host_os in
24394    aix3*)
24395      allow_undefined_flag_GCJ=unsupported
24396      always_export_symbols_GCJ=yes
24397      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'
24398      # Note: this linker hardcodes the directories in LIBPATH if there
24399      # are no directories specified by -L.
24400      hardcode_minus_L_GCJ=yes
24401      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24402	# Neither direct hardcoding nor static linking is supported with a
24403	# broken collect2.
24404	hardcode_direct_GCJ=unsupported
24405      fi
24406      ;;
24407
24408    aix[4-9]*)
24409      if test "$host_cpu" = ia64; then
24410	# On IA64, the linker does run time linking by default, so we don't
24411	# have to do anything special.
24412	aix_use_runtimelinking=no
24413	exp_sym_flag='-Bexport'
24414	no_entry_flag=""
24415      else
24416	# If we're using GNU nm, then we don't want the "-C" option.
24417	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24418	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24419	  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'
24420	else
24421	  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'
24422	fi
24423	aix_use_runtimelinking=no
24424
24425	# Test if we are trying to use run time linking or normal
24426	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24427	# need to do runtime linking.
24428	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
24429	  for ld_flag in $LDFLAGS; do
24430  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24431  	    aix_use_runtimelinking=yes
24432  	    break
24433  	  fi
24434	  done
24435	  ;;
24436	esac
24437
24438	exp_sym_flag='-bexport'
24439	no_entry_flag='-bnoentry'
24440      fi
24441
24442      # When large executables or shared objects are built, AIX ld can
24443      # have problems creating the table of contents.  If linking a library
24444      # or program results in "error TOC overflow" add -mminimal-toc to
24445      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24446      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24447
24448      archive_cmds_GCJ=''
24449      hardcode_direct_GCJ=yes
24450      hardcode_libdir_separator_GCJ=':'
24451      link_all_deplibs_GCJ=yes
24452
24453      if test "$GCC" = yes; then
24454	case $host_os in aix4.[012]|aix4.[012].*)
24455	# We only want to do this on AIX 4.2 and lower, the check
24456	# below for broken collect2 doesn't work under 4.3+
24457	  collect2name=`${CC} -print-prog-name=collect2`
24458	  if test -f "$collect2name" && \
24459  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24460	  then
24461  	  # We have reworked collect2
24462  	  :
24463	  else
24464  	  # We have old collect2
24465  	  hardcode_direct_GCJ=unsupported
24466  	  # It fails to find uninstalled libraries when the uninstalled
24467  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24468  	  # to unsupported forces relinking
24469  	  hardcode_minus_L_GCJ=yes
24470  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24471  	  hardcode_libdir_separator_GCJ=
24472	  fi
24473	  ;;
24474	esac
24475	shared_flag='-shared'
24476	if test "$aix_use_runtimelinking" = yes; then
24477	  shared_flag="$shared_flag "'${wl}-G'
24478	fi
24479      else
24480	# not using gcc
24481	if test "$host_cpu" = ia64; then
24482  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24483  	# chokes on -Wl,-G. The following line is correct:
24484	  shared_flag='-G'
24485	else
24486	  if test "$aix_use_runtimelinking" = yes; then
24487	    shared_flag='${wl}-G'
24488	  else
24489	    shared_flag='${wl}-bM:SRE'
24490	  fi
24491	fi
24492      fi
24493
24494      # It seems that -bexpall does not export symbols beginning with
24495      # underscore (_), so it is better to generate a list of symbols to export.
24496      always_export_symbols_GCJ=yes
24497      if test "$aix_use_runtimelinking" = yes; then
24498	# Warning - without using the other runtime loading flags (-brtl),
24499	# -berok will link without error, but may produce a broken library.
24500	allow_undefined_flag_GCJ='-berok'
24501       # Determine the default libpath from the value encoded in an empty executable.
24502       cat >conftest.$ac_ext <<_ACEOF
24503/* confdefs.h.  */
24504_ACEOF
24505cat confdefs.h >>conftest.$ac_ext
24506cat >>conftest.$ac_ext <<_ACEOF
24507/* end confdefs.h.  */
24508
24509int
24510main ()
24511{
24512
24513  ;
24514  return 0;
24515}
24516_ACEOF
24517rm -f conftest.$ac_objext conftest$ac_exeext
24518if { (ac_try="$ac_link"
24519case "(($ac_try" in
24520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24521  *) ac_try_echo=$ac_try;;
24522esac
24523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24524$as_echo "$ac_try_echo") >&5
24525  (eval "$ac_link") 2>conftest.er1
24526  ac_status=$?
24527  grep -v '^ *+' conftest.er1 >conftest.err
24528  rm -f conftest.er1
24529  cat conftest.err >&5
24530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531  (exit $ac_status); } && {
24532	 test -z "$ac_c_werror_flag" ||
24533	 test ! -s conftest.err
24534       } && test -s conftest$ac_exeext && {
24535	 test "$cross_compiling" = yes ||
24536	 $as_test_x conftest$ac_exeext
24537       }; then
24538
24539lt_aix_libpath_sed='
24540    /Import File Strings/,/^$/ {
24541	/^0/ {
24542	    s/^0  *\(.*\)$/\1/
24543	    p
24544	}
24545    }'
24546aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24547# Check for a 64-bit object if we didn't find anything.
24548if test -z "$aix_libpath"; then
24549  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24550fi
24551else
24552  $as_echo "$as_me: failed program was:" >&5
24553sed 's/^/| /' conftest.$ac_ext >&5
24554
24555
24556fi
24557
24558rm -rf conftest.dSYM
24559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24560      conftest$ac_exeext conftest.$ac_ext
24561if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24562
24563       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24564	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"
24565       else
24566	if test "$host_cpu" = ia64; then
24567	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24568	  allow_undefined_flag_GCJ="-z nodefs"
24569	  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"
24570	else
24571	 # Determine the default libpath from the value encoded in an empty executable.
24572	 cat >conftest.$ac_ext <<_ACEOF
24573/* confdefs.h.  */
24574_ACEOF
24575cat confdefs.h >>conftest.$ac_ext
24576cat >>conftest.$ac_ext <<_ACEOF
24577/* end confdefs.h.  */
24578
24579int
24580main ()
24581{
24582
24583  ;
24584  return 0;
24585}
24586_ACEOF
24587rm -f conftest.$ac_objext conftest$ac_exeext
24588if { (ac_try="$ac_link"
24589case "(($ac_try" in
24590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591  *) ac_try_echo=$ac_try;;
24592esac
24593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24594$as_echo "$ac_try_echo") >&5
24595  (eval "$ac_link") 2>conftest.er1
24596  ac_status=$?
24597  grep -v '^ *+' conftest.er1 >conftest.err
24598  rm -f conftest.er1
24599  cat conftest.err >&5
24600  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601  (exit $ac_status); } && {
24602	 test -z "$ac_c_werror_flag" ||
24603	 test ! -s conftest.err
24604       } && test -s conftest$ac_exeext && {
24605	 test "$cross_compiling" = yes ||
24606	 $as_test_x conftest$ac_exeext
24607       }; then
24608
24609lt_aix_libpath_sed='
24610    /Import File Strings/,/^$/ {
24611	/^0/ {
24612	    s/^0  *\(.*\)$/\1/
24613	    p
24614	}
24615    }'
24616aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24617# Check for a 64-bit object if we didn't find anything.
24618if test -z "$aix_libpath"; then
24619  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24620fi
24621else
24622  $as_echo "$as_me: failed program was:" >&5
24623sed 's/^/| /' conftest.$ac_ext >&5
24624
24625
24626fi
24627
24628rm -rf conftest.dSYM
24629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24630      conftest$ac_exeext conftest.$ac_ext
24631if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24632
24633	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24634	  # Warning - without using the other run time loading flags,
24635	  # -berok will link without error, but may produce a broken library.
24636	  no_undefined_flag_GCJ=' ${wl}-bernotok'
24637	  allow_undefined_flag_GCJ=' ${wl}-berok'
24638	  # Exported symbols can be pulled into shared objects from archives
24639	  whole_archive_flag_spec_GCJ='$convenience'
24640	  archive_cmds_need_lc_GCJ=yes
24641	  # This is similar to how AIX traditionally builds its shared libraries.
24642	  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'
24643	fi
24644      fi
24645      ;;
24646
24647    amigaos*)
24648      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)'
24649      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24650      hardcode_minus_L_GCJ=yes
24651      # see comment about different semantics on the GNU ld section
24652      ld_shlibs_GCJ=no
24653      ;;
24654
24655    bsdi[45]*)
24656      export_dynamic_flag_spec_GCJ=-rdynamic
24657      ;;
24658
24659    cygwin* | mingw* | pw32*)
24660      # When not using gcc, we currently assume that we are using
24661      # Microsoft Visual C++.
24662      # hardcode_libdir_flag_spec is actually meaningless, as there is
24663      # no search path for DLLs.
24664      hardcode_libdir_flag_spec_GCJ=' '
24665      allow_undefined_flag_GCJ=unsupported
24666      # Tell ltmain to make .lib files, not .a files.
24667      libext=lib
24668      # Tell ltmain to make .dll files, not .so files.
24669      shrext_cmds=".dll"
24670      # FIXME: Setting linknames here is a bad hack.
24671      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24672      # The linker will automatically build a .lib file if we build a DLL.
24673      old_archive_From_new_cmds_GCJ='true'
24674      # FIXME: Should let the user specify the lib program.
24675      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
24676      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24677      enable_shared_with_static_runtimes_GCJ=yes
24678      ;;
24679
24680    darwin* | rhapsody*)
24681      case $host_os in
24682        rhapsody* | darwin1.[012])
24683         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24684         ;;
24685       *) # Darwin 1.3 on
24686         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24687           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24688         else
24689           case ${MACOSX_DEPLOYMENT_TARGET} in
24690             10.[012])
24691               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24692               ;;
24693             10.*)
24694               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24695               ;;
24696           esac
24697         fi
24698         ;;
24699      esac
24700      archive_cmds_need_lc_GCJ=no
24701      hardcode_direct_GCJ=no
24702      hardcode_automatic_GCJ=yes
24703      hardcode_shlibpath_var_GCJ=unsupported
24704      whole_archive_flag_spec_GCJ=''
24705      link_all_deplibs_GCJ=yes
24706    if test "$GCC" = yes ; then
24707    	output_verbose_link_cmd='echo'
24708        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
24709        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
24710        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
24711        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
24712    else
24713      case $cc_basename in
24714        xlc*)
24715         output_verbose_link_cmd='echo'
24716         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
24717         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24718          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24719         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24720          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}'
24721          ;;
24722       *)
24723         ld_shlibs_GCJ=no
24724          ;;
24725      esac
24726    fi
24727      ;;
24728
24729    dgux*)
24730      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24731      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24732      hardcode_shlibpath_var_GCJ=no
24733      ;;
24734
24735    freebsd1*)
24736      ld_shlibs_GCJ=no
24737      ;;
24738
24739    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24740    # support.  Future versions do this automatically, but an explicit c++rt0.o
24741    # does not break anything, and helps significantly (at the cost of a little
24742    # extra space).
24743    freebsd2.2*)
24744      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24745      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24746      hardcode_direct_GCJ=yes
24747      hardcode_shlibpath_var_GCJ=no
24748      ;;
24749
24750    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24751    freebsd2*)
24752      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24753      hardcode_direct_GCJ=yes
24754      hardcode_minus_L_GCJ=yes
24755      hardcode_shlibpath_var_GCJ=no
24756      ;;
24757
24758    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24759    freebsd* | dragonfly*)
24760      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24761      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24762      hardcode_direct_GCJ=yes
24763      hardcode_shlibpath_var_GCJ=no
24764      ;;
24765
24766    hpux9*)
24767      if test "$GCC" = yes; then
24768	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'
24769      else
24770	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'
24771      fi
24772      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24773      hardcode_libdir_separator_GCJ=:
24774      hardcode_direct_GCJ=yes
24775
24776      # hardcode_minus_L: Not really in the search PATH,
24777      # but as the default location of the library.
24778      hardcode_minus_L_GCJ=yes
24779      export_dynamic_flag_spec_GCJ='${wl}-E'
24780      ;;
24781
24782    hpux10*)
24783      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24784	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24785      else
24786	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24787      fi
24788      if test "$with_gnu_ld" = no; then
24789	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24790	hardcode_libdir_separator_GCJ=:
24791
24792	hardcode_direct_GCJ=yes
24793	export_dynamic_flag_spec_GCJ='${wl}-E'
24794
24795	# hardcode_minus_L: Not really in the search PATH,
24796	# but as the default location of the library.
24797	hardcode_minus_L_GCJ=yes
24798      fi
24799      ;;
24800
24801    hpux11*)
24802      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24803	case $host_cpu in
24804	hppa*64*)
24805	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24806	  ;;
24807	ia64*)
24808	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24809	  ;;
24810	*)
24811	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24812	  ;;
24813	esac
24814      else
24815	case $host_cpu in
24816	hppa*64*)
24817	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24818	  ;;
24819	ia64*)
24820	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24821	  ;;
24822	*)
24823	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24824	  ;;
24825	esac
24826      fi
24827      if test "$with_gnu_ld" = no; then
24828	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24829	hardcode_libdir_separator_GCJ=:
24830
24831	case $host_cpu in
24832	hppa*64*|ia64*)
24833	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24834	  hardcode_direct_GCJ=no
24835	  hardcode_shlibpath_var_GCJ=no
24836	  ;;
24837	*)
24838	  hardcode_direct_GCJ=yes
24839	  export_dynamic_flag_spec_GCJ='${wl}-E'
24840
24841	  # hardcode_minus_L: Not really in the search PATH,
24842	  # but as the default location of the library.
24843	  hardcode_minus_L_GCJ=yes
24844	  ;;
24845	esac
24846      fi
24847      ;;
24848
24849    irix5* | irix6* | nonstopux*)
24850      if test "$GCC" = yes; then
24851	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'
24852      else
24853	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'
24854	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24855      fi
24856      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24857      hardcode_libdir_separator_GCJ=:
24858      link_all_deplibs_GCJ=yes
24859      ;;
24860
24861    netbsd*)
24862      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24863	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24864      else
24865	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24866      fi
24867      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24868      hardcode_direct_GCJ=yes
24869      hardcode_shlibpath_var_GCJ=no
24870      ;;
24871
24872    newsos6)
24873      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24874      hardcode_direct_GCJ=yes
24875      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24876      hardcode_libdir_separator_GCJ=:
24877      hardcode_shlibpath_var_GCJ=no
24878      ;;
24879
24880    openbsd*)
24881      if test -f /usr/libexec/ld.so; then
24882	hardcode_direct_GCJ=yes
24883	hardcode_shlibpath_var_GCJ=no
24884	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24885	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24886	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24887	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24888	  export_dynamic_flag_spec_GCJ='${wl}-E'
24889	else
24890	  case $host_os in
24891	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24892	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24893	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
24894	     ;;
24895	   *)
24896	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24897	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24898	     ;;
24899	  esac
24900        fi
24901      else
24902	ld_shlibs_GCJ=no
24903      fi
24904      ;;
24905
24906    os2*)
24907      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24908      hardcode_minus_L_GCJ=yes
24909      allow_undefined_flag_GCJ=unsupported
24910      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'
24911      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24912      ;;
24913
24914    osf3*)
24915      if test "$GCC" = yes; then
24916	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24917	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'
24918      else
24919	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24920	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'
24921      fi
24922      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24923      hardcode_libdir_separator_GCJ=:
24924      ;;
24925
24926    osf4* | osf5*)	# as osf3* with the addition of -msym flag
24927      if test "$GCC" = yes; then
24928	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24929	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'
24930	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24931      else
24932	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24933	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'
24934	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~
24935	$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'
24936
24937	# Both c and cxx compiler support -rpath directly
24938	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24939      fi
24940      hardcode_libdir_separator_GCJ=:
24941      ;;
24942
24943    solaris*)
24944      no_undefined_flag_GCJ=' -z text'
24945      if test "$GCC" = yes; then
24946	wlarc='${wl}'
24947	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24948	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24949	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24950      else
24951	wlarc=''
24952	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24953	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24954  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24955      fi
24956      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24957      hardcode_shlibpath_var_GCJ=no
24958      case $host_os in
24959      solaris2.[0-5] | solaris2.[0-5].*) ;;
24960      *)
24961	# The compiler driver will combine and reorder linker options,
24962	# but understands `-z linker_flag'.  GCC discards it without `$wl',
24963	# but is careful enough not to reorder.
24964 	# Supported since Solaris 2.6 (maybe 2.5.1?)
24965	if test "$GCC" = yes; then
24966	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
24967	else
24968	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
24969	fi
24970	;;
24971      esac
24972      link_all_deplibs_GCJ=yes
24973      ;;
24974
24975    sunos4*)
24976      if test "x$host_vendor" = xsequent; then
24977	# Use $CC to link under sequent, because it throws in some extra .o
24978	# files that make .init and .fini sections work.
24979	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24980      else
24981	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24982      fi
24983      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24984      hardcode_direct_GCJ=yes
24985      hardcode_minus_L_GCJ=yes
24986      hardcode_shlibpath_var_GCJ=no
24987      ;;
24988
24989    sysv4)
24990      case $host_vendor in
24991	sni)
24992	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24993	  hardcode_direct_GCJ=yes # is this really true???
24994	;;
24995	siemens)
24996	  ## LD is ld it makes a PLAMLIB
24997	  ## CC just makes a GrossModule.
24998	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24999	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25000	  hardcode_direct_GCJ=no
25001        ;;
25002	motorola)
25003	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25004	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25005	;;
25006      esac
25007      runpath_var='LD_RUN_PATH'
25008      hardcode_shlibpath_var_GCJ=no
25009      ;;
25010
25011    sysv4.3*)
25012      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25013      hardcode_shlibpath_var_GCJ=no
25014      export_dynamic_flag_spec_GCJ='-Bexport'
25015      ;;
25016
25017    sysv4*MP*)
25018      if test -d /usr/nec; then
25019	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25020	hardcode_shlibpath_var_GCJ=no
25021	runpath_var=LD_RUN_PATH
25022	hardcode_runpath_var=yes
25023	ld_shlibs_GCJ=yes
25024      fi
25025      ;;
25026
25027    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25028      no_undefined_flag_GCJ='${wl}-z,text'
25029      archive_cmds_need_lc_GCJ=no
25030      hardcode_shlibpath_var_GCJ=no
25031      runpath_var='LD_RUN_PATH'
25032
25033      if test "$GCC" = yes; then
25034	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25035	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25036      else
25037	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25038	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25039      fi
25040      ;;
25041
25042    sysv5* | sco3.2v5* | sco5v6*)
25043      # Note: We can NOT use -z defs as we might desire, because we do not
25044      # link with -lc, and that would cause any symbols used from libc to
25045      # always be unresolved, which means just about no library would
25046      # ever link correctly.  If we're not using GNU ld we use -z text
25047      # though, which does catch some bad symbols but isn't as heavy-handed
25048      # as -z defs.
25049      no_undefined_flag_GCJ='${wl}-z,text'
25050      allow_undefined_flag_GCJ='${wl}-z,nodefs'
25051      archive_cmds_need_lc_GCJ=no
25052      hardcode_shlibpath_var_GCJ=no
25053      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25054      hardcode_libdir_separator_GCJ=':'
25055      link_all_deplibs_GCJ=yes
25056      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25057      runpath_var='LD_RUN_PATH'
25058
25059      if test "$GCC" = yes; then
25060	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25061	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25062      else
25063	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25064	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25065      fi
25066      ;;
25067
25068    uts4*)
25069      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25070      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25071      hardcode_shlibpath_var_GCJ=no
25072      ;;
25073
25074    *)
25075      ld_shlibs_GCJ=no
25076      ;;
25077    esac
25078  fi
25079
25080{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25081$as_echo "$ld_shlibs_GCJ" >&6; }
25082test "$ld_shlibs_GCJ" = no && can_build_shared=no
25083
25084#
25085# Do we need to explicitly link libc?
25086#
25087case "x$archive_cmds_need_lc_GCJ" in
25088x|xyes)
25089  # Assume -lc should be added
25090  archive_cmds_need_lc_GCJ=yes
25091
25092  if test "$enable_shared" = yes && test "$GCC" = yes; then
25093    case $archive_cmds_GCJ in
25094    *'~'*)
25095      # FIXME: we may have to deal with multi-command sequences.
25096      ;;
25097    '$CC '*)
25098      # Test whether the compiler implicitly links with -lc since on some
25099      # systems, -lgcc has to come before -lc. If gcc already passes -lc
25100      # to ld, don't add -lc before -lgcc.
25101      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25102$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
25103      $rm conftest*
25104      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25105
25106      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25107  (eval $ac_compile) 2>&5
25108  ac_status=$?
25109  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110  (exit $ac_status); } 2>conftest.err; then
25111        soname=conftest
25112        lib=conftest
25113        libobjs=conftest.$ac_objext
25114        deplibs=
25115        wl=$lt_prog_compiler_wl_GCJ
25116	pic_flag=$lt_prog_compiler_pic_GCJ
25117        compiler_flags=-v
25118        linker_flags=-v
25119        verstring=
25120        output_objdir=.
25121        libname=conftest
25122        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25123        allow_undefined_flag_GCJ=
25124        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25125  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25126  ac_status=$?
25127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128  (exit $ac_status); }
25129        then
25130	  archive_cmds_need_lc_GCJ=no
25131        else
25132	  archive_cmds_need_lc_GCJ=yes
25133        fi
25134        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25135      else
25136        cat conftest.err 1>&5
25137      fi
25138      $rm conftest*
25139      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25140$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
25141      ;;
25142    esac
25143  fi
25144  ;;
25145esac
25146
25147{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25148$as_echo_n "checking dynamic linker characteristics... " >&6; }
25149library_names_spec=
25150libname_spec='lib$name'
25151soname_spec=
25152shrext_cmds=".so"
25153postinstall_cmds=
25154postuninstall_cmds=
25155finish_cmds=
25156finish_eval=
25157shlibpath_var=
25158shlibpath_overrides_runpath=unknown
25159version_type=none
25160dynamic_linker="$host_os ld.so"
25161sys_lib_dlsearch_path_spec="/lib /usr/lib"
25162
25163need_lib_prefix=unknown
25164hardcode_into_libs=no
25165
25166# when you set need_version to no, make sure it does not cause -set_version
25167# flags to be left without arguments
25168need_version=unknown
25169
25170case $host_os in
25171aix3*)
25172  version_type=linux
25173  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25174  shlibpath_var=LIBPATH
25175
25176  # AIX 3 has no versioning support, so we append a major version to the name.
25177  soname_spec='${libname}${release}${shared_ext}$major'
25178  ;;
25179
25180aix[4-9]*)
25181  version_type=linux
25182  need_lib_prefix=no
25183  need_version=no
25184  hardcode_into_libs=yes
25185  if test "$host_cpu" = ia64; then
25186    # AIX 5 supports IA64
25187    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25188    shlibpath_var=LD_LIBRARY_PATH
25189  else
25190    # With GCC up to 2.95.x, collect2 would create an import file
25191    # for dependence libraries.  The import file would start with
25192    # the line `#! .'.  This would cause the generated library to
25193    # depend on `.', always an invalid library.  This was fixed in
25194    # development snapshots of GCC prior to 3.0.
25195    case $host_os in
25196      aix4 | aix4.[01] | aix4.[01].*)
25197      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25198	   echo ' yes '
25199	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25200	:
25201      else
25202	can_build_shared=no
25203      fi
25204      ;;
25205    esac
25206    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25207    # soname into executable. Probably we can add versioning support to
25208    # collect2, so additional links can be useful in future.
25209    if test "$aix_use_runtimelinking" = yes; then
25210      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25211      # instead of lib<name>.a to let people know that these are not
25212      # typical AIX shared libraries.
25213      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25214    else
25215      # We preserve .a as extension for shared libraries through AIX4.2
25216      # and later when we are not doing run time linking.
25217      library_names_spec='${libname}${release}.a $libname.a'
25218      soname_spec='${libname}${release}${shared_ext}$major'
25219    fi
25220    shlibpath_var=LIBPATH
25221  fi
25222  ;;
25223
25224amigaos*)
25225  library_names_spec='$libname.ixlibrary $libname.a'
25226  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25227  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'
25228  ;;
25229
25230beos*)
25231  library_names_spec='${libname}${shared_ext}'
25232  dynamic_linker="$host_os ld.so"
25233  shlibpath_var=LIBRARY_PATH
25234  ;;
25235
25236bsdi[45]*)
25237  version_type=linux
25238  need_version=no
25239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25240  soname_spec='${libname}${release}${shared_ext}$major'
25241  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25242  shlibpath_var=LD_LIBRARY_PATH
25243  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25244  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25245  # the default ld.so.conf also contains /usr/contrib/lib and
25246  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25247  # libtool to hard-code these into programs
25248  ;;
25249
25250cygwin* | mingw* | pw32*)
25251  version_type=windows
25252  shrext_cmds=".dll"
25253  need_version=no
25254  need_lib_prefix=no
25255
25256  case $GCC,$host_os in
25257  yes,cygwin* | yes,mingw* | yes,pw32*)
25258    library_names_spec='$libname.dll.a'
25259    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25260    postinstall_cmds='base_file=`basename \${file}`~
25261      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25262      dldir=$destdir/`dirname \$dlpath`~
25263      test -d \$dldir || mkdir -p \$dldir~
25264      $install_prog $dir/$dlname \$dldir/$dlname~
25265      chmod a+x \$dldir/$dlname'
25266    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25267      dlpath=$dir/\$dldll~
25268       $rm \$dlpath'
25269    shlibpath_overrides_runpath=yes
25270
25271    case $host_os in
25272    cygwin*)
25273      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25274      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25275      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25276      ;;
25277    mingw*)
25278      # MinGW DLLs use traditional 'lib' prefix
25279      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25280      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25281      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25282        # It is most probably a Windows format PATH printed by
25283        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25284        # path with ; separators, and with drive letters. We can handle the
25285        # drive letters (cygwin fileutils understands them), so leave them,
25286        # especially as we might pass files found there to a mingw objdump,
25287        # which wouldn't understand a cygwinified path. Ahh.
25288        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25289      else
25290        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25291      fi
25292      ;;
25293    pw32*)
25294      # pw32 DLLs use 'pw' prefix rather than 'lib'
25295      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25296      ;;
25297    esac
25298    ;;
25299
25300  *)
25301    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25302    ;;
25303  esac
25304  dynamic_linker='Win32 ld.exe'
25305  # FIXME: first we should search . and the directory the executable is in
25306  shlibpath_var=PATH
25307  ;;
25308
25309darwin* | rhapsody*)
25310  dynamic_linker="$host_os dyld"
25311  version_type=darwin
25312  need_lib_prefix=no
25313  need_version=no
25314  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25315  soname_spec='${libname}${release}${major}$shared_ext'
25316  shlibpath_overrides_runpath=yes
25317  shlibpath_var=DYLD_LIBRARY_PATH
25318  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25319
25320  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25321  ;;
25322
25323dgux*)
25324  version_type=linux
25325  need_lib_prefix=no
25326  need_version=no
25327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25328  soname_spec='${libname}${release}${shared_ext}$major'
25329  shlibpath_var=LD_LIBRARY_PATH
25330  ;;
25331
25332freebsd1*)
25333  dynamic_linker=no
25334  ;;
25335
25336freebsd* | dragonfly*)
25337  # DragonFly does not have aout.  When/if they implement a new
25338  # versioning mechanism, adjust this.
25339  if test -x /usr/bin/objformat; then
25340    objformat=`/usr/bin/objformat`
25341  else
25342    case $host_os in
25343    freebsd[123]*) objformat=aout ;;
25344    *) objformat=elf ;;
25345    esac
25346  fi
25347  version_type=freebsd-$objformat
25348  case $version_type in
25349    freebsd-elf*)
25350      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25351      need_version=no
25352      need_lib_prefix=no
25353      ;;
25354    freebsd-*)
25355      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25356      need_version=yes
25357      ;;
25358  esac
25359  shlibpath_var=LD_LIBRARY_PATH
25360  case $host_os in
25361  freebsd2*)
25362    shlibpath_overrides_runpath=yes
25363    ;;
25364  freebsd3.[01]* | freebsdelf3.[01]*)
25365    shlibpath_overrides_runpath=yes
25366    hardcode_into_libs=yes
25367    ;;
25368  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25369  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25370    shlibpath_overrides_runpath=no
25371    hardcode_into_libs=yes
25372    ;;
25373  *) # from 4.6 on, and DragonFly
25374    shlibpath_overrides_runpath=yes
25375    hardcode_into_libs=yes
25376    ;;
25377  esac
25378  ;;
25379
25380gnu*)
25381  version_type=linux
25382  need_lib_prefix=no
25383  need_version=no
25384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25385  soname_spec='${libname}${release}${shared_ext}$major'
25386  shlibpath_var=LD_LIBRARY_PATH
25387  hardcode_into_libs=yes
25388  ;;
25389
25390hpux9* | hpux10* | hpux11*)
25391  # Give a soname corresponding to the major version so that dld.sl refuses to
25392  # link against other versions.
25393  version_type=sunos
25394  need_lib_prefix=no
25395  need_version=no
25396  case $host_cpu in
25397  ia64*)
25398    shrext_cmds='.so'
25399    hardcode_into_libs=yes
25400    dynamic_linker="$host_os dld.so"
25401    shlibpath_var=LD_LIBRARY_PATH
25402    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25403    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25404    soname_spec='${libname}${release}${shared_ext}$major'
25405    if test "X$HPUX_IA64_MODE" = X32; then
25406      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25407    else
25408      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25409    fi
25410    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25411    ;;
25412   hppa*64*)
25413     shrext_cmds='.sl'
25414     hardcode_into_libs=yes
25415     dynamic_linker="$host_os dld.sl"
25416     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25417     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25419     soname_spec='${libname}${release}${shared_ext}$major'
25420     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25421     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25422     ;;
25423   *)
25424    shrext_cmds='.sl'
25425    dynamic_linker="$host_os dld.sl"
25426    shlibpath_var=SHLIB_PATH
25427    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25429    soname_spec='${libname}${release}${shared_ext}$major'
25430    ;;
25431  esac
25432  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25433  postinstall_cmds='chmod 555 $lib'
25434  ;;
25435
25436interix[3-9]*)
25437  version_type=linux
25438  need_lib_prefix=no
25439  need_version=no
25440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25441  soname_spec='${libname}${release}${shared_ext}$major'
25442  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25443  shlibpath_var=LD_LIBRARY_PATH
25444  shlibpath_overrides_runpath=no
25445  hardcode_into_libs=yes
25446  ;;
25447
25448irix5* | irix6* | nonstopux*)
25449  case $host_os in
25450    nonstopux*) version_type=nonstopux ;;
25451    *)
25452	if test "$lt_cv_prog_gnu_ld" = yes; then
25453		version_type=linux
25454	else
25455		version_type=irix
25456	fi ;;
25457  esac
25458  need_lib_prefix=no
25459  need_version=no
25460  soname_spec='${libname}${release}${shared_ext}$major'
25461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25462  case $host_os in
25463  irix5* | nonstopux*)
25464    libsuff= shlibsuff=
25465    ;;
25466  *)
25467    case $LD in # libtool.m4 will add one of these switches to LD
25468    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25469      libsuff= shlibsuff= libmagic=32-bit;;
25470    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25471      libsuff=32 shlibsuff=N32 libmagic=N32;;
25472    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25473      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25474    *) libsuff= shlibsuff= libmagic=never-match;;
25475    esac
25476    ;;
25477  esac
25478  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25479  shlibpath_overrides_runpath=no
25480  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25481  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25482  hardcode_into_libs=yes
25483  ;;
25484
25485# No shared lib support for Linux oldld, aout, or coff.
25486linux*oldld* | linux*aout* | linux*coff*)
25487  dynamic_linker=no
25488  ;;
25489
25490# This must be Linux ELF.
25491linux* | k*bsd*-gnu)
25492  version_type=linux
25493  need_lib_prefix=no
25494  need_version=no
25495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25496  soname_spec='${libname}${release}${shared_ext}$major'
25497  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25498  shlibpath_var=LD_LIBRARY_PATH
25499  shlibpath_overrides_runpath=no
25500  # This implies no fast_install, which is unacceptable.
25501  # Some rework will be needed to allow for fast_install
25502  # before this can be enabled.
25503  hardcode_into_libs=yes
25504  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25505  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25506
25507  # Append ld.so.conf contents to the search path
25508  if test -f /etc/ld.so.conf; then
25509    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25510    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
25511  fi
25512
25513  # We used to test for /lib/ld.so.1 and disable shared libraries on
25514  # powerpc, because MkLinux only supported shared libraries with the
25515  # GNU dynamic linker.  Since this was broken with cross compilers,
25516  # most powerpc-linux boxes support dynamic linking these days and
25517  # people can always --disable-shared, the test was removed, and we
25518  # assume the GNU/Linux dynamic linker is in use.
25519  dynamic_linker='GNU/Linux ld.so'
25520  ;;
25521
25522netbsd*)
25523  version_type=sunos
25524  need_lib_prefix=no
25525  need_version=no
25526  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25527    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25528    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25529    dynamic_linker='NetBSD (a.out) ld.so'
25530  else
25531    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25532    soname_spec='${libname}${release}${shared_ext}$major'
25533    dynamic_linker='NetBSD ld.elf_so'
25534  fi
25535  shlibpath_var=LD_LIBRARY_PATH
25536  shlibpath_overrides_runpath=yes
25537  hardcode_into_libs=yes
25538  ;;
25539
25540newsos6)
25541  version_type=linux
25542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543  shlibpath_var=LD_LIBRARY_PATH
25544  shlibpath_overrides_runpath=yes
25545  ;;
25546
25547nto-qnx*)
25548  version_type=linux
25549  need_lib_prefix=no
25550  need_version=no
25551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25552  soname_spec='${libname}${release}${shared_ext}$major'
25553  shlibpath_var=LD_LIBRARY_PATH
25554  shlibpath_overrides_runpath=yes
25555  ;;
25556
25557openbsd*)
25558  version_type=sunos
25559  sys_lib_dlsearch_path_spec="/usr/lib"
25560  need_lib_prefix=no
25561  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25562  case $host_os in
25563    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25564    *)                         need_version=no  ;;
25565  esac
25566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25567  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25568  shlibpath_var=LD_LIBRARY_PATH
25569  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25570    case $host_os in
25571      openbsd2.[89] | openbsd2.[89].*)
25572	shlibpath_overrides_runpath=no
25573	;;
25574      *)
25575	shlibpath_overrides_runpath=yes
25576	;;
25577      esac
25578  else
25579    shlibpath_overrides_runpath=yes
25580  fi
25581  ;;
25582
25583os2*)
25584  libname_spec='$name'
25585  shrext_cmds=".dll"
25586  need_lib_prefix=no
25587  library_names_spec='$libname${shared_ext} $libname.a'
25588  dynamic_linker='OS/2 ld.exe'
25589  shlibpath_var=LIBPATH
25590  ;;
25591
25592osf3* | osf4* | osf5*)
25593  version_type=osf
25594  need_lib_prefix=no
25595  need_version=no
25596  soname_spec='${libname}${release}${shared_ext}$major'
25597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25598  shlibpath_var=LD_LIBRARY_PATH
25599  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25600  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25601  ;;
25602
25603rdos*)
25604  dynamic_linker=no
25605  ;;
25606
25607solaris*)
25608  version_type=linux
25609  need_lib_prefix=no
25610  need_version=no
25611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25612  soname_spec='${libname}${release}${shared_ext}$major'
25613  shlibpath_var=LD_LIBRARY_PATH
25614  shlibpath_overrides_runpath=yes
25615  hardcode_into_libs=yes
25616  # ldd complains unless libraries are executable
25617  postinstall_cmds='chmod +x $lib'
25618  ;;
25619
25620sunos4*)
25621  version_type=sunos
25622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25623  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25624  shlibpath_var=LD_LIBRARY_PATH
25625  shlibpath_overrides_runpath=yes
25626  if test "$with_gnu_ld" = yes; then
25627    need_lib_prefix=no
25628  fi
25629  need_version=yes
25630  ;;
25631
25632sysv4 | sysv4.3*)
25633  version_type=linux
25634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25635  soname_spec='${libname}${release}${shared_ext}$major'
25636  shlibpath_var=LD_LIBRARY_PATH
25637  case $host_vendor in
25638    sni)
25639      shlibpath_overrides_runpath=no
25640      need_lib_prefix=no
25641      export_dynamic_flag_spec='${wl}-Blargedynsym'
25642      runpath_var=LD_RUN_PATH
25643      ;;
25644    siemens)
25645      need_lib_prefix=no
25646      ;;
25647    motorola)
25648      need_lib_prefix=no
25649      need_version=no
25650      shlibpath_overrides_runpath=no
25651      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25652      ;;
25653  esac
25654  ;;
25655
25656sysv4*MP*)
25657  if test -d /usr/nec ;then
25658    version_type=linux
25659    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25660    soname_spec='$libname${shared_ext}.$major'
25661    shlibpath_var=LD_LIBRARY_PATH
25662  fi
25663  ;;
25664
25665sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25666  version_type=freebsd-elf
25667  need_lib_prefix=no
25668  need_version=no
25669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25670  soname_spec='${libname}${release}${shared_ext}$major'
25671  shlibpath_var=LD_LIBRARY_PATH
25672  hardcode_into_libs=yes
25673  if test "$with_gnu_ld" = yes; then
25674    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25675    shlibpath_overrides_runpath=no
25676  else
25677    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25678    shlibpath_overrides_runpath=yes
25679    case $host_os in
25680      sco3.2v5*)
25681        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25682	;;
25683    esac
25684  fi
25685  sys_lib_dlsearch_path_spec='/usr/lib'
25686  ;;
25687
25688uts4*)
25689  version_type=linux
25690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25691  soname_spec='${libname}${release}${shared_ext}$major'
25692  shlibpath_var=LD_LIBRARY_PATH
25693  ;;
25694
25695*)
25696  dynamic_linker=no
25697  ;;
25698esac
25699{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25700$as_echo "$dynamic_linker" >&6; }
25701test "$dynamic_linker" = no && can_build_shared=no
25702
25703if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
25704  $as_echo_n "(cached) " >&6
25705else
25706  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
25707fi
25708
25709sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
25710if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
25711  $as_echo_n "(cached) " >&6
25712else
25713  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
25714fi
25715
25716sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
25717
25718variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25719if test "$GCC" = yes; then
25720  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25721fi
25722
25723{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25724$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
25725hardcode_action_GCJ=
25726if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25727   test -n "$runpath_var_GCJ" || \
25728   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25729
25730  # We can hardcode non-existant directories.
25731  if test "$hardcode_direct_GCJ" != no &&
25732     # If the only mechanism to avoid hardcoding is shlibpath_var, we
25733     # have to relink, otherwise we might link with an installed library
25734     # when we should be linking with a yet-to-be-installed one
25735     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25736     test "$hardcode_minus_L_GCJ" != no; then
25737    # Linking always hardcodes the temporary library directory.
25738    hardcode_action_GCJ=relink
25739  else
25740    # We can link without hardcoding, and we can hardcode nonexisting dirs.
25741    hardcode_action_GCJ=immediate
25742  fi
25743else
25744  # We cannot hardcode anything, or else we can only hardcode existing
25745  # directories.
25746  hardcode_action_GCJ=unsupported
25747fi
25748{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25749$as_echo "$hardcode_action_GCJ" >&6; }
25750
25751if test "$hardcode_action_GCJ" = relink; then
25752  # Fast installation is not supported
25753  enable_fast_install=no
25754elif test "$shlibpath_overrides_runpath" = yes ||
25755     test "$enable_shared" = no; then
25756  # Fast installation is not necessary
25757  enable_fast_install=needless
25758fi
25759
25760
25761# The else clause should only fire when bootstrapping the
25762# libtool distribution, otherwise you forgot to ship ltmain.sh
25763# with your package, and you will get complaints that there are
25764# no rules to generate ltmain.sh.
25765if test -f "$ltmain"; then
25766  # See if we are running on zsh, and set the options which allow our commands through
25767  # without removal of \ escapes.
25768  if test -n "${ZSH_VERSION+set}" ; then
25769    setopt NO_GLOB_SUBST
25770  fi
25771  # Now quote all the things that may contain metacharacters while being
25772  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25773  # variables and quote the copies for generation of the libtool script.
25774  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25775    SED SHELL STRIP \
25776    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25777    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25778    deplibs_check_method reload_flag reload_cmds need_locks \
25779    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25780    lt_cv_sys_global_symbol_to_c_name_address \
25781    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25782    old_postinstall_cmds old_postuninstall_cmds \
25783    compiler_GCJ \
25784    CC_GCJ \
25785    LD_GCJ \
25786    lt_prog_compiler_wl_GCJ \
25787    lt_prog_compiler_pic_GCJ \
25788    lt_prog_compiler_static_GCJ \
25789    lt_prog_compiler_no_builtin_flag_GCJ \
25790    export_dynamic_flag_spec_GCJ \
25791    thread_safe_flag_spec_GCJ \
25792    whole_archive_flag_spec_GCJ \
25793    enable_shared_with_static_runtimes_GCJ \
25794    old_archive_cmds_GCJ \
25795    old_archive_from_new_cmds_GCJ \
25796    predep_objects_GCJ \
25797    postdep_objects_GCJ \
25798    predeps_GCJ \
25799    postdeps_GCJ \
25800    compiler_lib_search_path_GCJ \
25801    compiler_lib_search_dirs_GCJ \
25802    archive_cmds_GCJ \
25803    archive_expsym_cmds_GCJ \
25804    postinstall_cmds_GCJ \
25805    postuninstall_cmds_GCJ \
25806    old_archive_from_expsyms_cmds_GCJ \
25807    allow_undefined_flag_GCJ \
25808    no_undefined_flag_GCJ \
25809    export_symbols_cmds_GCJ \
25810    hardcode_libdir_flag_spec_GCJ \
25811    hardcode_libdir_flag_spec_ld_GCJ \
25812    hardcode_libdir_separator_GCJ \
25813    hardcode_automatic_GCJ \
25814    module_cmds_GCJ \
25815    module_expsym_cmds_GCJ \
25816    lt_cv_prog_compiler_c_o_GCJ \
25817    fix_srcfile_path_GCJ \
25818    exclude_expsyms_GCJ \
25819    include_expsyms_GCJ; do
25820
25821    case $var in
25822    old_archive_cmds_GCJ | \
25823    old_archive_from_new_cmds_GCJ | \
25824    archive_cmds_GCJ | \
25825    archive_expsym_cmds_GCJ | \
25826    module_cmds_GCJ | \
25827    module_expsym_cmds_GCJ | \
25828    old_archive_from_expsyms_cmds_GCJ | \
25829    export_symbols_cmds_GCJ | \
25830    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25831    postinstall_cmds | postuninstall_cmds | \
25832    old_postinstall_cmds | old_postuninstall_cmds | \
25833    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25834      # Double-quote double-evaled strings.
25835      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25836      ;;
25837    *)
25838      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25839      ;;
25840    esac
25841  done
25842
25843  case $lt_echo in
25844  *'\$0 --fallback-echo"')
25845    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25846    ;;
25847  esac
25848
25849cfgfile="$ofile"
25850
25851  cat <<__EOF__ >> "$cfgfile"
25852# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25853
25854# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25855
25856# Shell to use when invoking shell scripts.
25857SHELL=$lt_SHELL
25858
25859# Whether or not to build shared libraries.
25860build_libtool_libs=$enable_shared
25861
25862# Whether or not to build static libraries.
25863build_old_libs=$enable_static
25864
25865# Whether or not to add -lc for building shared libraries.
25866build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25867
25868# Whether or not to disallow shared libs when runtime libs are static
25869allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25870
25871# Whether or not to optimize for fast installation.
25872fast_install=$enable_fast_install
25873
25874# The host system.
25875host_alias=$host_alias
25876host=$host
25877host_os=$host_os
25878
25879# The build system.
25880build_alias=$build_alias
25881build=$build
25882build_os=$build_os
25883
25884# An echo program that does not interpret backslashes.
25885echo=$lt_echo
25886
25887# The archiver.
25888AR=$lt_AR
25889AR_FLAGS=$lt_AR_FLAGS
25890
25891# A C compiler.
25892LTCC=$lt_LTCC
25893
25894# LTCC compiler flags.
25895LTCFLAGS=$lt_LTCFLAGS
25896
25897# A language-specific compiler.
25898CC=$lt_compiler_GCJ
25899
25900# Is the compiler the GNU C compiler?
25901with_gcc=$GCC_GCJ
25902
25903# An ERE matcher.
25904EGREP=$lt_EGREP
25905
25906# The linker used to build libraries.
25907LD=$lt_LD_GCJ
25908
25909# Whether we need hard or soft links.
25910LN_S=$lt_LN_S
25911
25912# A BSD-compatible nm program.
25913NM=$lt_NM
25914
25915# A symbol stripping program
25916STRIP=$lt_STRIP
25917
25918# Used to examine libraries when file_magic_cmd begins "file"
25919MAGIC_CMD=$MAGIC_CMD
25920
25921# Used on cygwin: DLL creation program.
25922DLLTOOL="$DLLTOOL"
25923
25924# Used on cygwin: object dumper.
25925OBJDUMP="$OBJDUMP"
25926
25927# Used on cygwin: assembler.
25928AS="$AS"
25929
25930# The name of the directory that contains temporary libtool files.
25931objdir=$objdir
25932
25933# How to create reloadable object files.
25934reload_flag=$lt_reload_flag
25935reload_cmds=$lt_reload_cmds
25936
25937# How to pass a linker flag through the compiler.
25938wl=$lt_lt_prog_compiler_wl_GCJ
25939
25940# Object file suffix (normally "o").
25941objext="$ac_objext"
25942
25943# Old archive suffix (normally "a").
25944libext="$libext"
25945
25946# Shared library suffix (normally ".so").
25947shrext_cmds='$shrext_cmds'
25948
25949# Executable file suffix (normally "").
25950exeext="$exeext"
25951
25952# Additional compiler flags for building library objects.
25953pic_flag=$lt_lt_prog_compiler_pic_GCJ
25954pic_mode=$pic_mode
25955
25956# What is the maximum length of a command?
25957max_cmd_len=$lt_cv_sys_max_cmd_len
25958
25959# Does compiler simultaneously support -c and -o options?
25960compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25961
25962# Must we lock files when doing compilation?
25963need_locks=$lt_need_locks
25964
25965# Do we need the lib prefix for modules?
25966need_lib_prefix=$need_lib_prefix
25967
25968# Do we need a version for libraries?
25969need_version=$need_version
25970
25971# Whether dlopen is supported.
25972dlopen_support=$enable_dlopen
25973
25974# Whether dlopen of programs is supported.
25975dlopen_self=$enable_dlopen_self
25976
25977# Whether dlopen of statically linked programs is supported.
25978dlopen_self_static=$enable_dlopen_self_static
25979
25980# Compiler flag to prevent dynamic linking.
25981link_static_flag=$lt_lt_prog_compiler_static_GCJ
25982
25983# Compiler flag to turn off builtin functions.
25984no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25985
25986# Compiler flag to allow reflexive dlopens.
25987export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25988
25989# Compiler flag to generate shared objects directly from archives.
25990whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25991
25992# Compiler flag to generate thread-safe objects.
25993thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25994
25995# Library versioning type.
25996version_type=$version_type
25997
25998# Format of library name prefix.
25999libname_spec=$lt_libname_spec
26000
26001# List of archive names.  First name is the real one, the rest are links.
26002# The last name is the one that the linker finds with -lNAME.
26003library_names_spec=$lt_library_names_spec
26004
26005# The coded name of the library, if different from the real name.
26006soname_spec=$lt_soname_spec
26007
26008# Commands used to build and install an old-style archive.
26009RANLIB=$lt_RANLIB
26010old_archive_cmds=$lt_old_archive_cmds_GCJ
26011old_postinstall_cmds=$lt_old_postinstall_cmds
26012old_postuninstall_cmds=$lt_old_postuninstall_cmds
26013
26014# Create an old-style archive from a shared archive.
26015old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26016
26017# Create a temporary old-style archive to link instead of a shared archive.
26018old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26019
26020# Commands used to build and install a shared archive.
26021archive_cmds=$lt_archive_cmds_GCJ
26022archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26023postinstall_cmds=$lt_postinstall_cmds
26024postuninstall_cmds=$lt_postuninstall_cmds
26025
26026# Commands used to build a loadable module (assumed same as above if empty)
26027module_cmds=$lt_module_cmds_GCJ
26028module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26029
26030# Commands to strip libraries.
26031old_striplib=$lt_old_striplib
26032striplib=$lt_striplib
26033
26034# Dependencies to place before the objects being linked to create a
26035# shared library.
26036predep_objects=$lt_predep_objects_GCJ
26037
26038# Dependencies to place after the objects being linked to create a
26039# shared library.
26040postdep_objects=$lt_postdep_objects_GCJ
26041
26042# Dependencies to place before the objects being linked to create a
26043# shared library.
26044predeps=$lt_predeps_GCJ
26045
26046# Dependencies to place after the objects being linked to create a
26047# shared library.
26048postdeps=$lt_postdeps_GCJ
26049
26050# The directories searched by this compiler when creating a shared
26051# library
26052compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
26053
26054# The library search path used internally by the compiler when linking
26055# a shared library.
26056compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26057
26058# Method to check whether dependent libraries are shared objects.
26059deplibs_check_method=$lt_deplibs_check_method
26060
26061# Command to use when deplibs_check_method == file_magic.
26062file_magic_cmd=$lt_file_magic_cmd
26063
26064# Flag that allows shared libraries with undefined symbols to be built.
26065allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26066
26067# Flag that forces no undefined symbols.
26068no_undefined_flag=$lt_no_undefined_flag_GCJ
26069
26070# Commands used to finish a libtool library installation in a directory.
26071finish_cmds=$lt_finish_cmds
26072
26073# Same as above, but a single script fragment to be evaled but not shown.
26074finish_eval=$lt_finish_eval
26075
26076# Take the output of nm and produce a listing of raw symbols and C names.
26077global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26078
26079# Transform the output of nm in a proper C declaration
26080global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26081
26082# Transform the output of nm in a C name address pair
26083global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26084
26085# This is the shared library runtime path variable.
26086runpath_var=$runpath_var
26087
26088# This is the shared library path variable.
26089shlibpath_var=$shlibpath_var
26090
26091# Is shlibpath searched before the hard-coded library search path?
26092shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26093
26094# How to hardcode a shared library path into an executable.
26095hardcode_action=$hardcode_action_GCJ
26096
26097# Whether we should hardcode library paths into libraries.
26098hardcode_into_libs=$hardcode_into_libs
26099
26100# Flag to hardcode \$libdir into a binary during linking.
26101# This must work even if \$libdir does not exist.
26102hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26103
26104# If ld is used when linking, flag to hardcode \$libdir into
26105# a binary during linking. This must work even if \$libdir does
26106# not exist.
26107hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26108
26109# Whether we need a single -rpath flag with a separated argument.
26110hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26111
26112# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26113# resulting binary.
26114hardcode_direct=$hardcode_direct_GCJ
26115
26116# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26117# resulting binary.
26118hardcode_minus_L=$hardcode_minus_L_GCJ
26119
26120# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26121# the resulting binary.
26122hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26123
26124# Set to yes if building a shared library automatically hardcodes DIR into the library
26125# and all subsequent libraries and executables linked against it.
26126hardcode_automatic=$hardcode_automatic_GCJ
26127
26128# Variables whose values should be saved in libtool wrapper scripts and
26129# restored at relink time.
26130variables_saved_for_relink="$variables_saved_for_relink"
26131
26132# Whether libtool must link a program against all its dependency libraries.
26133link_all_deplibs=$link_all_deplibs_GCJ
26134
26135# Compile-time system search path for libraries
26136sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26137
26138# Run-time system search path for libraries
26139sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26140
26141# Fix the shell variable \$srcfile for the compiler.
26142fix_srcfile_path=$lt_fix_srcfile_path
26143
26144# Set to yes if exported symbols are required.
26145always_export_symbols=$always_export_symbols_GCJ
26146
26147# The commands to list exported symbols.
26148export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26149
26150# The commands to extract the exported symbol list from a shared archive.
26151extract_expsyms_cmds=$lt_extract_expsyms_cmds
26152
26153# Symbols that should not be listed in the preloaded symbols.
26154exclude_expsyms=$lt_exclude_expsyms_GCJ
26155
26156# Symbols that must always be exported.
26157include_expsyms=$lt_include_expsyms_GCJ
26158
26159# ### END LIBTOOL TAG CONFIG: $tagname
26160
26161__EOF__
26162
26163
26164else
26165  # If there is no Makefile yet, we rely on a make rule to execute
26166  # `config.status --recheck' to rerun these tests and create the
26167  # libtool script then.
26168  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26169  if test -f "$ltmain_in"; then
26170    test -f Makefile && make "$ltmain"
26171  fi
26172fi
26173
26174
26175ac_ext=c
26176ac_cpp='$CPP $CPPFLAGS'
26177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26179ac_compiler_gnu=$ac_cv_c_compiler_gnu
26180
26181CC="$lt_save_CC"
26182
26183	else
26184	  tagname=""
26185	fi
26186	;;
26187
26188      RC)
26189
26190
26191# Source file extension for RC test sources.
26192ac_ext=rc
26193
26194# Object file extension for compiled RC test sources.
26195objext=o
26196objext_RC=$objext
26197
26198# Code to be used in simple compile tests
26199lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
26200
26201# Code to be used in simple link tests
26202lt_simple_link_test_code="$lt_simple_compile_test_code"
26203
26204# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26205
26206# If no C compiler was specified, use CC.
26207LTCC=${LTCC-"$CC"}
26208
26209# If no C compiler flags were specified, use CFLAGS.
26210LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26211
26212# Allow CC to be a program name with arguments.
26213compiler=$CC
26214
26215
26216# save warnings/boilerplate of simple test code
26217ac_outfile=conftest.$ac_objext
26218echo "$lt_simple_compile_test_code" >conftest.$ac_ext
26219eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26220_lt_compiler_boilerplate=`cat conftest.err`
26221$rm conftest*
26222
26223ac_outfile=conftest.$ac_objext
26224echo "$lt_simple_link_test_code" >conftest.$ac_ext
26225eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26226_lt_linker_boilerplate=`cat conftest.err`
26227$rm -r conftest*
26228
26229
26230# Allow CC to be a program name with arguments.
26231lt_save_CC="$CC"
26232CC=${RC-"windres"}
26233compiler=$CC
26234compiler_RC=$CC
26235for cc_temp in $compiler""; do
26236  case $cc_temp in
26237    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26238    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26239    \-*) ;;
26240    *) break;;
26241  esac
26242done
26243cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26244
26245lt_cv_prog_compiler_c_o_RC=yes
26246
26247# The else clause should only fire when bootstrapping the
26248# libtool distribution, otherwise you forgot to ship ltmain.sh
26249# with your package, and you will get complaints that there are
26250# no rules to generate ltmain.sh.
26251if test -f "$ltmain"; then
26252  # See if we are running on zsh, and set the options which allow our commands through
26253  # without removal of \ escapes.
26254  if test -n "${ZSH_VERSION+set}" ; then
26255    setopt NO_GLOB_SUBST
26256  fi
26257  # Now quote all the things that may contain metacharacters while being
26258  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26259  # variables and quote the copies for generation of the libtool script.
26260  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26261    SED SHELL STRIP \
26262    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26263    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26264    deplibs_check_method reload_flag reload_cmds need_locks \
26265    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26266    lt_cv_sys_global_symbol_to_c_name_address \
26267    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26268    old_postinstall_cmds old_postuninstall_cmds \
26269    compiler_RC \
26270    CC_RC \
26271    LD_RC \
26272    lt_prog_compiler_wl_RC \
26273    lt_prog_compiler_pic_RC \
26274    lt_prog_compiler_static_RC \
26275    lt_prog_compiler_no_builtin_flag_RC \
26276    export_dynamic_flag_spec_RC \
26277    thread_safe_flag_spec_RC \
26278    whole_archive_flag_spec_RC \
26279    enable_shared_with_static_runtimes_RC \
26280    old_archive_cmds_RC \
26281    old_archive_from_new_cmds_RC \
26282    predep_objects_RC \
26283    postdep_objects_RC \
26284    predeps_RC \
26285    postdeps_RC \
26286    compiler_lib_search_path_RC \
26287    compiler_lib_search_dirs_RC \
26288    archive_cmds_RC \
26289    archive_expsym_cmds_RC \
26290    postinstall_cmds_RC \
26291    postuninstall_cmds_RC \
26292    old_archive_from_expsyms_cmds_RC \
26293    allow_undefined_flag_RC \
26294    no_undefined_flag_RC \
26295    export_symbols_cmds_RC \
26296    hardcode_libdir_flag_spec_RC \
26297    hardcode_libdir_flag_spec_ld_RC \
26298    hardcode_libdir_separator_RC \
26299    hardcode_automatic_RC \
26300    module_cmds_RC \
26301    module_expsym_cmds_RC \
26302    lt_cv_prog_compiler_c_o_RC \
26303    fix_srcfile_path_RC \
26304    exclude_expsyms_RC \
26305    include_expsyms_RC; do
26306
26307    case $var in
26308    old_archive_cmds_RC | \
26309    old_archive_from_new_cmds_RC | \
26310    archive_cmds_RC | \
26311    archive_expsym_cmds_RC | \
26312    module_cmds_RC | \
26313    module_expsym_cmds_RC | \
26314    old_archive_from_expsyms_cmds_RC | \
26315    export_symbols_cmds_RC | \
26316    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26317    postinstall_cmds | postuninstall_cmds | \
26318    old_postinstall_cmds | old_postuninstall_cmds | \
26319    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26320      # Double-quote double-evaled strings.
26321      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26322      ;;
26323    *)
26324      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26325      ;;
26326    esac
26327  done
26328
26329  case $lt_echo in
26330  *'\$0 --fallback-echo"')
26331    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26332    ;;
26333  esac
26334
26335cfgfile="$ofile"
26336
26337  cat <<__EOF__ >> "$cfgfile"
26338# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26339
26340# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26341
26342# Shell to use when invoking shell scripts.
26343SHELL=$lt_SHELL
26344
26345# Whether or not to build shared libraries.
26346build_libtool_libs=$enable_shared
26347
26348# Whether or not to build static libraries.
26349build_old_libs=$enable_static
26350
26351# Whether or not to add -lc for building shared libraries.
26352build_libtool_need_lc=$archive_cmds_need_lc_RC
26353
26354# Whether or not to disallow shared libs when runtime libs are static
26355allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26356
26357# Whether or not to optimize for fast installation.
26358fast_install=$enable_fast_install
26359
26360# The host system.
26361host_alias=$host_alias
26362host=$host
26363host_os=$host_os
26364
26365# The build system.
26366build_alias=$build_alias
26367build=$build
26368build_os=$build_os
26369
26370# An echo program that does not interpret backslashes.
26371echo=$lt_echo
26372
26373# The archiver.
26374AR=$lt_AR
26375AR_FLAGS=$lt_AR_FLAGS
26376
26377# A C compiler.
26378LTCC=$lt_LTCC
26379
26380# LTCC compiler flags.
26381LTCFLAGS=$lt_LTCFLAGS
26382
26383# A language-specific compiler.
26384CC=$lt_compiler_RC
26385
26386# Is the compiler the GNU C compiler?
26387with_gcc=$GCC_RC
26388
26389# An ERE matcher.
26390EGREP=$lt_EGREP
26391
26392# The linker used to build libraries.
26393LD=$lt_LD_RC
26394
26395# Whether we need hard or soft links.
26396LN_S=$lt_LN_S
26397
26398# A BSD-compatible nm program.
26399NM=$lt_NM
26400
26401# A symbol stripping program
26402STRIP=$lt_STRIP
26403
26404# Used to examine libraries when file_magic_cmd begins "file"
26405MAGIC_CMD=$MAGIC_CMD
26406
26407# Used on cygwin: DLL creation program.
26408DLLTOOL="$DLLTOOL"
26409
26410# Used on cygwin: object dumper.
26411OBJDUMP="$OBJDUMP"
26412
26413# Used on cygwin: assembler.
26414AS="$AS"
26415
26416# The name of the directory that contains temporary libtool files.
26417objdir=$objdir
26418
26419# How to create reloadable object files.
26420reload_flag=$lt_reload_flag
26421reload_cmds=$lt_reload_cmds
26422
26423# How to pass a linker flag through the compiler.
26424wl=$lt_lt_prog_compiler_wl_RC
26425
26426# Object file suffix (normally "o").
26427objext="$ac_objext"
26428
26429# Old archive suffix (normally "a").
26430libext="$libext"
26431
26432# Shared library suffix (normally ".so").
26433shrext_cmds='$shrext_cmds'
26434
26435# Executable file suffix (normally "").
26436exeext="$exeext"
26437
26438# Additional compiler flags for building library objects.
26439pic_flag=$lt_lt_prog_compiler_pic_RC
26440pic_mode=$pic_mode
26441
26442# What is the maximum length of a command?
26443max_cmd_len=$lt_cv_sys_max_cmd_len
26444
26445# Does compiler simultaneously support -c and -o options?
26446compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26447
26448# Must we lock files when doing compilation?
26449need_locks=$lt_need_locks
26450
26451# Do we need the lib prefix for modules?
26452need_lib_prefix=$need_lib_prefix
26453
26454# Do we need a version for libraries?
26455need_version=$need_version
26456
26457# Whether dlopen is supported.
26458dlopen_support=$enable_dlopen
26459
26460# Whether dlopen of programs is supported.
26461dlopen_self=$enable_dlopen_self
26462
26463# Whether dlopen of statically linked programs is supported.
26464dlopen_self_static=$enable_dlopen_self_static
26465
26466# Compiler flag to prevent dynamic linking.
26467link_static_flag=$lt_lt_prog_compiler_static_RC
26468
26469# Compiler flag to turn off builtin functions.
26470no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26471
26472# Compiler flag to allow reflexive dlopens.
26473export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26474
26475# Compiler flag to generate shared objects directly from archives.
26476whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26477
26478# Compiler flag to generate thread-safe objects.
26479thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26480
26481# Library versioning type.
26482version_type=$version_type
26483
26484# Format of library name prefix.
26485libname_spec=$lt_libname_spec
26486
26487# List of archive names.  First name is the real one, the rest are links.
26488# The last name is the one that the linker finds with -lNAME.
26489library_names_spec=$lt_library_names_spec
26490
26491# The coded name of the library, if different from the real name.
26492soname_spec=$lt_soname_spec
26493
26494# Commands used to build and install an old-style archive.
26495RANLIB=$lt_RANLIB
26496old_archive_cmds=$lt_old_archive_cmds_RC
26497old_postinstall_cmds=$lt_old_postinstall_cmds
26498old_postuninstall_cmds=$lt_old_postuninstall_cmds
26499
26500# Create an old-style archive from a shared archive.
26501old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26502
26503# Create a temporary old-style archive to link instead of a shared archive.
26504old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26505
26506# Commands used to build and install a shared archive.
26507archive_cmds=$lt_archive_cmds_RC
26508archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26509postinstall_cmds=$lt_postinstall_cmds
26510postuninstall_cmds=$lt_postuninstall_cmds
26511
26512# Commands used to build a loadable module (assumed same as above if empty)
26513module_cmds=$lt_module_cmds_RC
26514module_expsym_cmds=$lt_module_expsym_cmds_RC
26515
26516# Commands to strip libraries.
26517old_striplib=$lt_old_striplib
26518striplib=$lt_striplib
26519
26520# Dependencies to place before the objects being linked to create a
26521# shared library.
26522predep_objects=$lt_predep_objects_RC
26523
26524# Dependencies to place after the objects being linked to create a
26525# shared library.
26526postdep_objects=$lt_postdep_objects_RC
26527
26528# Dependencies to place before the objects being linked to create a
26529# shared library.
26530predeps=$lt_predeps_RC
26531
26532# Dependencies to place after the objects being linked to create a
26533# shared library.
26534postdeps=$lt_postdeps_RC
26535
26536# The directories searched by this compiler when creating a shared
26537# library
26538compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
26539
26540# The library search path used internally by the compiler when linking
26541# a shared library.
26542compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26543
26544# Method to check whether dependent libraries are shared objects.
26545deplibs_check_method=$lt_deplibs_check_method
26546
26547# Command to use when deplibs_check_method == file_magic.
26548file_magic_cmd=$lt_file_magic_cmd
26549
26550# Flag that allows shared libraries with undefined symbols to be built.
26551allow_undefined_flag=$lt_allow_undefined_flag_RC
26552
26553# Flag that forces no undefined symbols.
26554no_undefined_flag=$lt_no_undefined_flag_RC
26555
26556# Commands used to finish a libtool library installation in a directory.
26557finish_cmds=$lt_finish_cmds
26558
26559# Same as above, but a single script fragment to be evaled but not shown.
26560finish_eval=$lt_finish_eval
26561
26562# Take the output of nm and produce a listing of raw symbols and C names.
26563global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26564
26565# Transform the output of nm in a proper C declaration
26566global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26567
26568# Transform the output of nm in a C name address pair
26569global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26570
26571# This is the shared library runtime path variable.
26572runpath_var=$runpath_var
26573
26574# This is the shared library path variable.
26575shlibpath_var=$shlibpath_var
26576
26577# Is shlibpath searched before the hard-coded library search path?
26578shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26579
26580# How to hardcode a shared library path into an executable.
26581hardcode_action=$hardcode_action_RC
26582
26583# Whether we should hardcode library paths into libraries.
26584hardcode_into_libs=$hardcode_into_libs
26585
26586# Flag to hardcode \$libdir into a binary during linking.
26587# This must work even if \$libdir does not exist.
26588hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26589
26590# If ld is used when linking, flag to hardcode \$libdir into
26591# a binary during linking. This must work even if \$libdir does
26592# not exist.
26593hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26594
26595# Whether we need a single -rpath flag with a separated argument.
26596hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26597
26598# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26599# resulting binary.
26600hardcode_direct=$hardcode_direct_RC
26601
26602# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26603# resulting binary.
26604hardcode_minus_L=$hardcode_minus_L_RC
26605
26606# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26607# the resulting binary.
26608hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26609
26610# Set to yes if building a shared library automatically hardcodes DIR into the library
26611# and all subsequent libraries and executables linked against it.
26612hardcode_automatic=$hardcode_automatic_RC
26613
26614# Variables whose values should be saved in libtool wrapper scripts and
26615# restored at relink time.
26616variables_saved_for_relink="$variables_saved_for_relink"
26617
26618# Whether libtool must link a program against all its dependency libraries.
26619link_all_deplibs=$link_all_deplibs_RC
26620
26621# Compile-time system search path for libraries
26622sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26623
26624# Run-time system search path for libraries
26625sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26626
26627# Fix the shell variable \$srcfile for the compiler.
26628fix_srcfile_path=$lt_fix_srcfile_path
26629
26630# Set to yes if exported symbols are required.
26631always_export_symbols=$always_export_symbols_RC
26632
26633# The commands to list exported symbols.
26634export_symbols_cmds=$lt_export_symbols_cmds_RC
26635
26636# The commands to extract the exported symbol list from a shared archive.
26637extract_expsyms_cmds=$lt_extract_expsyms_cmds
26638
26639# Symbols that should not be listed in the preloaded symbols.
26640exclude_expsyms=$lt_exclude_expsyms_RC
26641
26642# Symbols that must always be exported.
26643include_expsyms=$lt_include_expsyms_RC
26644
26645# ### END LIBTOOL TAG CONFIG: $tagname
26646
26647__EOF__
26648
26649
26650else
26651  # If there is no Makefile yet, we rely on a make rule to execute
26652  # `config.status --recheck' to rerun these tests and create the
26653  # libtool script then.
26654  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26655  if test -f "$ltmain_in"; then
26656    test -f Makefile && make "$ltmain"
26657  fi
26658fi
26659
26660
26661ac_ext=c
26662ac_cpp='$CPP $CPPFLAGS'
26663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26665ac_compiler_gnu=$ac_cv_c_compiler_gnu
26666
26667CC="$lt_save_CC"
26668
26669	;;
26670
26671      *)
26672	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26673$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26674   { (exit 1); exit 1; }; }
26675	;;
26676      esac
26677
26678      # Append the new tag name to the list of available tags.
26679      if test -n "$tagname" ; then
26680      available_tags="$available_tags $tagname"
26681    fi
26682    fi
26683  done
26684  IFS="$lt_save_ifs"
26685
26686  # Now substitute the updated list of available tags.
26687  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26688    mv "${ofile}T" "$ofile"
26689    chmod +x "$ofile"
26690  else
26691    rm -f "${ofile}T"
26692    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26693$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26694   { (exit 1); exit 1; }; }
26695  fi
26696fi
26697
26698
26699
26700# This can be used to rebuild libtool when needed
26701LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26702
26703# Always use our own libtool.
26704LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26705
26706# Prevent multiple expansion
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732ac_header_dirent=no
26733for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26734  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26735{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26736$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26738  $as_echo_n "(cached) " >&6
26739else
26740  cat >conftest.$ac_ext <<_ACEOF
26741/* confdefs.h.  */
26742_ACEOF
26743cat confdefs.h >>conftest.$ac_ext
26744cat >>conftest.$ac_ext <<_ACEOF
26745/* end confdefs.h.  */
26746#include <sys/types.h>
26747#include <$ac_hdr>
26748
26749int
26750main ()
26751{
26752if ((DIR *) 0)
26753return 0;
26754  ;
26755  return 0;
26756}
26757_ACEOF
26758rm -f conftest.$ac_objext
26759if { (ac_try="$ac_compile"
26760case "(($ac_try" in
26761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762  *) ac_try_echo=$ac_try;;
26763esac
26764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26765$as_echo "$ac_try_echo") >&5
26766  (eval "$ac_compile") 2>conftest.er1
26767  ac_status=$?
26768  grep -v '^ *+' conftest.er1 >conftest.err
26769  rm -f conftest.er1
26770  cat conftest.err >&5
26771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772  (exit $ac_status); } && {
26773	 test -z "$ac_c_werror_flag" ||
26774	 test ! -s conftest.err
26775       } && test -s conftest.$ac_objext; then
26776  eval "$as_ac_Header=yes"
26777else
26778  $as_echo "$as_me: failed program was:" >&5
26779sed 's/^/| /' conftest.$ac_ext >&5
26780
26781	eval "$as_ac_Header=no"
26782fi
26783
26784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26785fi
26786ac_res=`eval 'as_val=${'$as_ac_Header'}
26787		 $as_echo "$as_val"'`
26788	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26789$as_echo "$ac_res" >&6; }
26790as_val=`eval 'as_val=${'$as_ac_Header'}
26791		 $as_echo "$as_val"'`
26792   if test "x$as_val" = x""yes; then
26793  cat >>confdefs.h <<_ACEOF
26794#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26795_ACEOF
26796
26797ac_header_dirent=$ac_hdr; break
26798fi
26799
26800done
26801# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26802if test $ac_header_dirent = dirent.h; then
26803  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26804$as_echo_n "checking for library containing opendir... " >&6; }
26805if test "${ac_cv_search_opendir+set}" = set; then
26806  $as_echo_n "(cached) " >&6
26807else
26808  ac_func_search_save_LIBS=$LIBS
26809cat >conftest.$ac_ext <<_ACEOF
26810/* confdefs.h.  */
26811_ACEOF
26812cat confdefs.h >>conftest.$ac_ext
26813cat >>conftest.$ac_ext <<_ACEOF
26814/* end confdefs.h.  */
26815
26816/* Override any GCC internal prototype to avoid an error.
26817   Use char because int might match the return type of a GCC
26818   builtin and then its argument prototype would still apply.  */
26819#ifdef __cplusplus
26820extern "C"
26821#endif
26822char opendir ();
26823int
26824main ()
26825{
26826return opendir ();
26827  ;
26828  return 0;
26829}
26830_ACEOF
26831for ac_lib in '' dir; do
26832  if test -z "$ac_lib"; then
26833    ac_res="none required"
26834  else
26835    ac_res=-l$ac_lib
26836    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26837  fi
26838  rm -f conftest.$ac_objext conftest$ac_exeext
26839if { (ac_try="$ac_link"
26840case "(($ac_try" in
26841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842  *) ac_try_echo=$ac_try;;
26843esac
26844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26845$as_echo "$ac_try_echo") >&5
26846  (eval "$ac_link") 2>conftest.er1
26847  ac_status=$?
26848  grep -v '^ *+' conftest.er1 >conftest.err
26849  rm -f conftest.er1
26850  cat conftest.err >&5
26851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852  (exit $ac_status); } && {
26853	 test -z "$ac_c_werror_flag" ||
26854	 test ! -s conftest.err
26855       } && test -s conftest$ac_exeext && {
26856	 test "$cross_compiling" = yes ||
26857	 $as_test_x conftest$ac_exeext
26858       }; then
26859  ac_cv_search_opendir=$ac_res
26860else
26861  $as_echo "$as_me: failed program was:" >&5
26862sed 's/^/| /' conftest.$ac_ext >&5
26863
26864
26865fi
26866
26867rm -rf conftest.dSYM
26868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26869      conftest$ac_exeext
26870  if test "${ac_cv_search_opendir+set}" = set; then
26871  break
26872fi
26873done
26874if test "${ac_cv_search_opendir+set}" = set; then
26875  :
26876else
26877  ac_cv_search_opendir=no
26878fi
26879rm conftest.$ac_ext
26880LIBS=$ac_func_search_save_LIBS
26881fi
26882{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26883$as_echo "$ac_cv_search_opendir" >&6; }
26884ac_res=$ac_cv_search_opendir
26885if test "$ac_res" != no; then
26886  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26887
26888fi
26889
26890else
26891  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26892$as_echo_n "checking for library containing opendir... " >&6; }
26893if test "${ac_cv_search_opendir+set}" = set; then
26894  $as_echo_n "(cached) " >&6
26895else
26896  ac_func_search_save_LIBS=$LIBS
26897cat >conftest.$ac_ext <<_ACEOF
26898/* confdefs.h.  */
26899_ACEOF
26900cat confdefs.h >>conftest.$ac_ext
26901cat >>conftest.$ac_ext <<_ACEOF
26902/* end confdefs.h.  */
26903
26904/* Override any GCC internal prototype to avoid an error.
26905   Use char because int might match the return type of a GCC
26906   builtin and then its argument prototype would still apply.  */
26907#ifdef __cplusplus
26908extern "C"
26909#endif
26910char opendir ();
26911int
26912main ()
26913{
26914return opendir ();
26915  ;
26916  return 0;
26917}
26918_ACEOF
26919for ac_lib in '' x; do
26920  if test -z "$ac_lib"; then
26921    ac_res="none required"
26922  else
26923    ac_res=-l$ac_lib
26924    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26925  fi
26926  rm -f conftest.$ac_objext conftest$ac_exeext
26927if { (ac_try="$ac_link"
26928case "(($ac_try" in
26929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930  *) ac_try_echo=$ac_try;;
26931esac
26932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26933$as_echo "$ac_try_echo") >&5
26934  (eval "$ac_link") 2>conftest.er1
26935  ac_status=$?
26936  grep -v '^ *+' conftest.er1 >conftest.err
26937  rm -f conftest.er1
26938  cat conftest.err >&5
26939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940  (exit $ac_status); } && {
26941	 test -z "$ac_c_werror_flag" ||
26942	 test ! -s conftest.err
26943       } && test -s conftest$ac_exeext && {
26944	 test "$cross_compiling" = yes ||
26945	 $as_test_x conftest$ac_exeext
26946       }; then
26947  ac_cv_search_opendir=$ac_res
26948else
26949  $as_echo "$as_me: failed program was:" >&5
26950sed 's/^/| /' conftest.$ac_ext >&5
26951
26952
26953fi
26954
26955rm -rf conftest.dSYM
26956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26957      conftest$ac_exeext
26958  if test "${ac_cv_search_opendir+set}" = set; then
26959  break
26960fi
26961done
26962if test "${ac_cv_search_opendir+set}" = set; then
26963  :
26964else
26965  ac_cv_search_opendir=no
26966fi
26967rm conftest.$ac_ext
26968LIBS=$ac_func_search_save_LIBS
26969fi
26970{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26971$as_echo "$ac_cv_search_opendir" >&6; }
26972ac_res=$ac_cv_search_opendir
26973if test "$ac_res" != no; then
26974  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26975
26976fi
26977
26978fi
26979
26980# Check whether --enable-ltdl-install was given.
26981if test "${enable_ltdl_install+set}" = set; then
26982  enableval=$enable_ltdl_install;
26983fi
26984
26985
26986 if test x"${enable_ltdl_install-no}" != xno; then
26987  INSTALL_LTDL_TRUE=
26988  INSTALL_LTDL_FALSE='#'
26989else
26990  INSTALL_LTDL_TRUE='#'
26991  INSTALL_LTDL_FALSE=
26992fi
26993
26994 if test x"${enable_ltdl_convenience-no}" != xno; then
26995  CONVENIENCE_LTDL_TRUE=
26996  CONVENIENCE_LTDL_FALSE='#'
26997else
26998  CONVENIENCE_LTDL_TRUE='#'
26999  CONVENIENCE_LTDL_FALSE=
27000fi
27001
27002
27003
27004{ $as_echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
27005$as_echo_n "checking which extension is used for loadable modules... " >&6; }
27006if test "${libltdl_cv_shlibext+set}" = set; then
27007  $as_echo_n "(cached) " >&6
27008else
27009
27010module=yes
27011eval libltdl_cv_shlibext=$shrext_cmds
27012
27013fi
27014{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
27015$as_echo "$libltdl_cv_shlibext" >&6; }
27016if test -n "$libltdl_cv_shlibext"; then
27017
27018cat >>confdefs.h <<_ACEOF
27019#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
27020_ACEOF
27021
27022fi
27023
27024
27025{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
27026$as_echo_n "checking which variable specifies run-time library path... " >&6; }
27027if test "${libltdl_cv_shlibpath_var+set}" = set; then
27028  $as_echo_n "(cached) " >&6
27029else
27030  libltdl_cv_shlibpath_var="$shlibpath_var"
27031fi
27032{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
27033$as_echo "$libltdl_cv_shlibpath_var" >&6; }
27034if test -n "$libltdl_cv_shlibpath_var"; then
27035
27036cat >>confdefs.h <<_ACEOF
27037#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
27038_ACEOF
27039
27040fi
27041
27042
27043{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
27044$as_echo_n "checking for the default library search path... " >&6; }
27045if test "${libltdl_cv_sys_search_path+set}" = set; then
27046  $as_echo_n "(cached) " >&6
27047else
27048  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
27049fi
27050{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
27051$as_echo "$libltdl_cv_sys_search_path" >&6; }
27052if test -n "$libltdl_cv_sys_search_path"; then
27053  sys_search_path=
27054  for dir in $libltdl_cv_sys_search_path; do
27055    if test -z "$sys_search_path"; then
27056      sys_search_path="$dir"
27057    else
27058      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
27059    fi
27060  done
27061
27062cat >>confdefs.h <<_ACEOF
27063#define LTDL_SYSSEARCHPATH "$sys_search_path"
27064_ACEOF
27065
27066fi
27067
27068{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
27069$as_echo_n "checking for objdir... " >&6; }
27070if test "${libltdl_cv_objdir+set}" = set; then
27071  $as_echo_n "(cached) " >&6
27072else
27073  libltdl_cv_objdir="$objdir"
27074  if test -n "$objdir"; then
27075    :
27076  else
27077    rm -f .libs 2>/dev/null
27078    mkdir .libs 2>/dev/null
27079    if test -d .libs; then
27080      libltdl_cv_objdir=.libs
27081    else
27082      # MS-DOS does not allow filenames that begin with a dot.
27083      libltdl_cv_objdir=_libs
27084    fi
27085  rmdir .libs 2>/dev/null
27086  fi
27087
27088fi
27089{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
27090$as_echo "$libltdl_cv_objdir" >&6; }
27091
27092cat >>confdefs.h <<_ACEOF
27093#define LTDL_OBJDIR "$libltdl_cv_objdir/"
27094_ACEOF
27095
27096
27097
27098{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
27099$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
27100if test "${libltdl_cv_preloaded_symbols+set}" = set; then
27101  $as_echo_n "(cached) " >&6
27102else
27103  if test -n "$lt_cv_sys_global_symbol_pipe"; then
27104    libltdl_cv_preloaded_symbols=yes
27105  else
27106    libltdl_cv_preloaded_symbols=no
27107  fi
27108
27109fi
27110{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
27111$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
27112if test x"$libltdl_cv_preloaded_symbols" = xyes; then
27113
27114cat >>confdefs.h <<\_ACEOF
27115#define HAVE_PRELOADED_SYMBOLS 1
27116_ACEOF
27117
27118fi
27119
27120LIBADD_DL=
27121
27122ac_ext=c
27123ac_cpp='$CPP $CPPFLAGS'
27124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27126ac_compiler_gnu=$ac_cv_c_compiler_gnu
27127
27128
27129{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
27130$as_echo_n "checking for shl_load... " >&6; }
27131if test "${ac_cv_func_shl_load+set}" = set; then
27132  $as_echo_n "(cached) " >&6
27133else
27134  cat >conftest.$ac_ext <<_ACEOF
27135/* confdefs.h.  */
27136_ACEOF
27137cat confdefs.h >>conftest.$ac_ext
27138cat >>conftest.$ac_ext <<_ACEOF
27139/* end confdefs.h.  */
27140/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
27141   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27142#define shl_load innocuous_shl_load
27143
27144/* System header to define __stub macros and hopefully few prototypes,
27145    which can conflict with char shl_load (); below.
27146    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27147    <limits.h> exists even on freestanding compilers.  */
27148
27149#ifdef __STDC__
27150# include <limits.h>
27151#else
27152# include <assert.h>
27153#endif
27154
27155#undef shl_load
27156
27157/* Override any GCC internal prototype to avoid an error.
27158   Use char because int might match the return type of a GCC
27159   builtin and then its argument prototype would still apply.  */
27160#ifdef __cplusplus
27161extern "C"
27162#endif
27163char shl_load ();
27164/* The GNU C library defines this for functions which it implements
27165    to always fail with ENOSYS.  Some functions are actually named
27166    something starting with __ and the normal name is an alias.  */
27167#if defined __stub_shl_load || defined __stub___shl_load
27168choke me
27169#endif
27170
27171int
27172main ()
27173{
27174return shl_load ();
27175  ;
27176  return 0;
27177}
27178_ACEOF
27179rm -f conftest.$ac_objext conftest$ac_exeext
27180if { (ac_try="$ac_link"
27181case "(($ac_try" in
27182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183  *) ac_try_echo=$ac_try;;
27184esac
27185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27186$as_echo "$ac_try_echo") >&5
27187  (eval "$ac_link") 2>conftest.er1
27188  ac_status=$?
27189  grep -v '^ *+' conftest.er1 >conftest.err
27190  rm -f conftest.er1
27191  cat conftest.err >&5
27192  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193  (exit $ac_status); } && {
27194	 test -z "$ac_c_werror_flag" ||
27195	 test ! -s conftest.err
27196       } && test -s conftest$ac_exeext && {
27197	 test "$cross_compiling" = yes ||
27198	 $as_test_x conftest$ac_exeext
27199       }; then
27200  ac_cv_func_shl_load=yes
27201else
27202  $as_echo "$as_me: failed program was:" >&5
27203sed 's/^/| /' conftest.$ac_ext >&5
27204
27205	ac_cv_func_shl_load=no
27206fi
27207
27208rm -rf conftest.dSYM
27209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27210      conftest$ac_exeext conftest.$ac_ext
27211fi
27212{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
27213$as_echo "$ac_cv_func_shl_load" >&6; }
27214if test "x$ac_cv_func_shl_load" = x""yes; then
27215
27216cat >>confdefs.h <<\_ACEOF
27217#define HAVE_SHL_LOAD 1
27218_ACEOF
27219
27220else
27221  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
27222$as_echo_n "checking for shl_load in -ldld... " >&6; }
27223if test "${ac_cv_lib_dld_shl_load+set}" = set; then
27224  $as_echo_n "(cached) " >&6
27225else
27226  ac_check_lib_save_LIBS=$LIBS
27227LIBS="-ldld  $LIBS"
27228cat >conftest.$ac_ext <<_ACEOF
27229/* confdefs.h.  */
27230_ACEOF
27231cat confdefs.h >>conftest.$ac_ext
27232cat >>conftest.$ac_ext <<_ACEOF
27233/* end confdefs.h.  */
27234
27235/* Override any GCC internal prototype to avoid an error.
27236   Use char because int might match the return type of a GCC
27237   builtin and then its argument prototype would still apply.  */
27238#ifdef __cplusplus
27239extern "C"
27240#endif
27241char shl_load ();
27242int
27243main ()
27244{
27245return shl_load ();
27246  ;
27247  return 0;
27248}
27249_ACEOF
27250rm -f conftest.$ac_objext conftest$ac_exeext
27251if { (ac_try="$ac_link"
27252case "(($ac_try" in
27253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254  *) ac_try_echo=$ac_try;;
27255esac
27256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27257$as_echo "$ac_try_echo") >&5
27258  (eval "$ac_link") 2>conftest.er1
27259  ac_status=$?
27260  grep -v '^ *+' conftest.er1 >conftest.err
27261  rm -f conftest.er1
27262  cat conftest.err >&5
27263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264  (exit $ac_status); } && {
27265	 test -z "$ac_c_werror_flag" ||
27266	 test ! -s conftest.err
27267       } && test -s conftest$ac_exeext && {
27268	 test "$cross_compiling" = yes ||
27269	 $as_test_x conftest$ac_exeext
27270       }; then
27271  ac_cv_lib_dld_shl_load=yes
27272else
27273  $as_echo "$as_me: failed program was:" >&5
27274sed 's/^/| /' conftest.$ac_ext >&5
27275
27276	ac_cv_lib_dld_shl_load=no
27277fi
27278
27279rm -rf conftest.dSYM
27280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27281      conftest$ac_exeext conftest.$ac_ext
27282LIBS=$ac_check_lib_save_LIBS
27283fi
27284{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
27285$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
27286if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
27287
27288cat >>confdefs.h <<\_ACEOF
27289#define HAVE_SHL_LOAD 1
27290_ACEOF
27291
27292	LIBADD_DL="$LIBADD_DL -ldld"
27293else
27294  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27295$as_echo_n "checking for dlopen in -ldl... " >&6; }
27296if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27297  $as_echo_n "(cached) " >&6
27298else
27299  ac_check_lib_save_LIBS=$LIBS
27300LIBS="-ldl  $LIBS"
27301cat >conftest.$ac_ext <<_ACEOF
27302/* confdefs.h.  */
27303_ACEOF
27304cat confdefs.h >>conftest.$ac_ext
27305cat >>conftest.$ac_ext <<_ACEOF
27306/* end confdefs.h.  */
27307
27308/* Override any GCC internal prototype to avoid an error.
27309   Use char because int might match the return type of a GCC
27310   builtin and then its argument prototype would still apply.  */
27311#ifdef __cplusplus
27312extern "C"
27313#endif
27314char dlopen ();
27315int
27316main ()
27317{
27318return dlopen ();
27319  ;
27320  return 0;
27321}
27322_ACEOF
27323rm -f conftest.$ac_objext conftest$ac_exeext
27324if { (ac_try="$ac_link"
27325case "(($ac_try" in
27326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327  *) ac_try_echo=$ac_try;;
27328esac
27329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27330$as_echo "$ac_try_echo") >&5
27331  (eval "$ac_link") 2>conftest.er1
27332  ac_status=$?
27333  grep -v '^ *+' conftest.er1 >conftest.err
27334  rm -f conftest.er1
27335  cat conftest.err >&5
27336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337  (exit $ac_status); } && {
27338	 test -z "$ac_c_werror_flag" ||
27339	 test ! -s conftest.err
27340       } && test -s conftest$ac_exeext && {
27341	 test "$cross_compiling" = yes ||
27342	 $as_test_x conftest$ac_exeext
27343       }; then
27344  ac_cv_lib_dl_dlopen=yes
27345else
27346  $as_echo "$as_me: failed program was:" >&5
27347sed 's/^/| /' conftest.$ac_ext >&5
27348
27349	ac_cv_lib_dl_dlopen=no
27350fi
27351
27352rm -rf conftest.dSYM
27353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27354      conftest$ac_exeext conftest.$ac_ext
27355LIBS=$ac_check_lib_save_LIBS
27356fi
27357{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27358$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27359if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
27360
27361cat >>confdefs.h <<\_ACEOF
27362#define HAVE_LIBDL 1
27363_ACEOF
27364
27365	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
27366else
27367  cat >conftest.$ac_ext <<_ACEOF
27368/* confdefs.h.  */
27369_ACEOF
27370cat confdefs.h >>conftest.$ac_ext
27371cat >>conftest.$ac_ext <<_ACEOF
27372/* end confdefs.h.  */
27373#if HAVE_DLFCN_H
27374#  include <dlfcn.h>
27375#endif
27376
27377int
27378main ()
27379{
27380dlopen(0, 0);
27381  ;
27382  return 0;
27383}
27384_ACEOF
27385rm -f conftest.$ac_objext conftest$ac_exeext
27386if { (ac_try="$ac_link"
27387case "(($ac_try" in
27388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389  *) ac_try_echo=$ac_try;;
27390esac
27391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27392$as_echo "$ac_try_echo") >&5
27393  (eval "$ac_link") 2>conftest.er1
27394  ac_status=$?
27395  grep -v '^ *+' conftest.er1 >conftest.err
27396  rm -f conftest.er1
27397  cat conftest.err >&5
27398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399  (exit $ac_status); } && {
27400	 test -z "$ac_c_werror_flag" ||
27401	 test ! -s conftest.err
27402       } && test -s conftest$ac_exeext && {
27403	 test "$cross_compiling" = yes ||
27404	 $as_test_x conftest$ac_exeext
27405       }; then
27406
27407cat >>confdefs.h <<\_ACEOF
27408#define HAVE_LIBDL 1
27409_ACEOF
27410 libltdl_cv_func_dlopen="yes"
27411else
27412  $as_echo "$as_me: failed program was:" >&5
27413sed 's/^/| /' conftest.$ac_ext >&5
27414
27415	{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
27416$as_echo_n "checking for dlopen in -lsvld... " >&6; }
27417if test "${ac_cv_lib_svld_dlopen+set}" = set; then
27418  $as_echo_n "(cached) " >&6
27419else
27420  ac_check_lib_save_LIBS=$LIBS
27421LIBS="-lsvld  $LIBS"
27422cat >conftest.$ac_ext <<_ACEOF
27423/* confdefs.h.  */
27424_ACEOF
27425cat confdefs.h >>conftest.$ac_ext
27426cat >>conftest.$ac_ext <<_ACEOF
27427/* end confdefs.h.  */
27428
27429/* Override any GCC internal prototype to avoid an error.
27430   Use char because int might match the return type of a GCC
27431   builtin and then its argument prototype would still apply.  */
27432#ifdef __cplusplus
27433extern "C"
27434#endif
27435char dlopen ();
27436int
27437main ()
27438{
27439return dlopen ();
27440  ;
27441  return 0;
27442}
27443_ACEOF
27444rm -f conftest.$ac_objext conftest$ac_exeext
27445if { (ac_try="$ac_link"
27446case "(($ac_try" in
27447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448  *) ac_try_echo=$ac_try;;
27449esac
27450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27451$as_echo "$ac_try_echo") >&5
27452  (eval "$ac_link") 2>conftest.er1
27453  ac_status=$?
27454  grep -v '^ *+' conftest.er1 >conftest.err
27455  rm -f conftest.er1
27456  cat conftest.err >&5
27457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458  (exit $ac_status); } && {
27459	 test -z "$ac_c_werror_flag" ||
27460	 test ! -s conftest.err
27461       } && test -s conftest$ac_exeext && {
27462	 test "$cross_compiling" = yes ||
27463	 $as_test_x conftest$ac_exeext
27464       }; then
27465  ac_cv_lib_svld_dlopen=yes
27466else
27467  $as_echo "$as_me: failed program was:" >&5
27468sed 's/^/| /' conftest.$ac_ext >&5
27469
27470	ac_cv_lib_svld_dlopen=no
27471fi
27472
27473rm -rf conftest.dSYM
27474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27475      conftest$ac_exeext conftest.$ac_ext
27476LIBS=$ac_check_lib_save_LIBS
27477fi
27478{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
27479$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
27480if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
27481
27482cat >>confdefs.h <<\_ACEOF
27483#define HAVE_LIBDL 1
27484_ACEOF
27485
27486	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
27487else
27488  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
27489$as_echo_n "checking for dld_link in -ldld... " >&6; }
27490if test "${ac_cv_lib_dld_dld_link+set}" = set; then
27491  $as_echo_n "(cached) " >&6
27492else
27493  ac_check_lib_save_LIBS=$LIBS
27494LIBS="-ldld  $LIBS"
27495cat >conftest.$ac_ext <<_ACEOF
27496/* confdefs.h.  */
27497_ACEOF
27498cat confdefs.h >>conftest.$ac_ext
27499cat >>conftest.$ac_ext <<_ACEOF
27500/* end confdefs.h.  */
27501
27502/* Override any GCC internal prototype to avoid an error.
27503   Use char because int might match the return type of a GCC
27504   builtin and then its argument prototype would still apply.  */
27505#ifdef __cplusplus
27506extern "C"
27507#endif
27508char dld_link ();
27509int
27510main ()
27511{
27512return dld_link ();
27513  ;
27514  return 0;
27515}
27516_ACEOF
27517rm -f conftest.$ac_objext conftest$ac_exeext
27518if { (ac_try="$ac_link"
27519case "(($ac_try" in
27520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521  *) ac_try_echo=$ac_try;;
27522esac
27523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27524$as_echo "$ac_try_echo") >&5
27525  (eval "$ac_link") 2>conftest.er1
27526  ac_status=$?
27527  grep -v '^ *+' conftest.er1 >conftest.err
27528  rm -f conftest.er1
27529  cat conftest.err >&5
27530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531  (exit $ac_status); } && {
27532	 test -z "$ac_c_werror_flag" ||
27533	 test ! -s conftest.err
27534       } && test -s conftest$ac_exeext && {
27535	 test "$cross_compiling" = yes ||
27536	 $as_test_x conftest$ac_exeext
27537       }; then
27538  ac_cv_lib_dld_dld_link=yes
27539else
27540  $as_echo "$as_me: failed program was:" >&5
27541sed 's/^/| /' conftest.$ac_ext >&5
27542
27543	ac_cv_lib_dld_dld_link=no
27544fi
27545
27546rm -rf conftest.dSYM
27547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27548      conftest$ac_exeext conftest.$ac_ext
27549LIBS=$ac_check_lib_save_LIBS
27550fi
27551{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
27552$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
27553if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
27554
27555cat >>confdefs.h <<\_ACEOF
27556#define HAVE_DLD 1
27557_ACEOF
27558
27559	 	LIBADD_DL="$LIBADD_DL -ldld"
27560else
27561  { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
27562$as_echo_n "checking for _dyld_func_lookup... " >&6; }
27563if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
27564  $as_echo_n "(cached) " >&6
27565else
27566  cat >conftest.$ac_ext <<_ACEOF
27567/* confdefs.h.  */
27568_ACEOF
27569cat confdefs.h >>conftest.$ac_ext
27570cat >>conftest.$ac_ext <<_ACEOF
27571/* end confdefs.h.  */
27572/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
27573   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27574#define _dyld_func_lookup innocuous__dyld_func_lookup
27575
27576/* System header to define __stub macros and hopefully few prototypes,
27577    which can conflict with char _dyld_func_lookup (); below.
27578    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27579    <limits.h> exists even on freestanding compilers.  */
27580
27581#ifdef __STDC__
27582# include <limits.h>
27583#else
27584# include <assert.h>
27585#endif
27586
27587#undef _dyld_func_lookup
27588
27589/* Override any GCC internal prototype to avoid an error.
27590   Use char because int might match the return type of a GCC
27591   builtin and then its argument prototype would still apply.  */
27592#ifdef __cplusplus
27593extern "C"
27594#endif
27595char _dyld_func_lookup ();
27596/* The GNU C library defines this for functions which it implements
27597    to always fail with ENOSYS.  Some functions are actually named
27598    something starting with __ and the normal name is an alias.  */
27599#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
27600choke me
27601#endif
27602
27603int
27604main ()
27605{
27606return _dyld_func_lookup ();
27607  ;
27608  return 0;
27609}
27610_ACEOF
27611rm -f conftest.$ac_objext conftest$ac_exeext
27612if { (ac_try="$ac_link"
27613case "(($ac_try" in
27614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27615  *) ac_try_echo=$ac_try;;
27616esac
27617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27618$as_echo "$ac_try_echo") >&5
27619  (eval "$ac_link") 2>conftest.er1
27620  ac_status=$?
27621  grep -v '^ *+' conftest.er1 >conftest.err
27622  rm -f conftest.er1
27623  cat conftest.err >&5
27624  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625  (exit $ac_status); } && {
27626	 test -z "$ac_c_werror_flag" ||
27627	 test ! -s conftest.err
27628       } && test -s conftest$ac_exeext && {
27629	 test "$cross_compiling" = yes ||
27630	 $as_test_x conftest$ac_exeext
27631       }; then
27632  ac_cv_func__dyld_func_lookup=yes
27633else
27634  $as_echo "$as_me: failed program was:" >&5
27635sed 's/^/| /' conftest.$ac_ext >&5
27636
27637	ac_cv_func__dyld_func_lookup=no
27638fi
27639
27640rm -rf conftest.dSYM
27641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27642      conftest$ac_exeext conftest.$ac_ext
27643fi
27644{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
27645$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
27646if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
27647
27648cat >>confdefs.h <<\_ACEOF
27649#define HAVE_DYLD 1
27650_ACEOF
27651
27652fi
27653
27654
27655fi
27656
27657
27658fi
27659
27660
27661fi
27662
27663rm -rf conftest.dSYM
27664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27665      conftest$ac_exeext conftest.$ac_ext
27666
27667fi
27668
27669
27670fi
27671
27672
27673fi
27674
27675
27676if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
27677then
27678  lt_save_LIBS="$LIBS"
27679  LIBS="$LIBS $LIBADD_DL"
27680
27681for ac_func in dlerror
27682do
27683as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27684{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27685$as_echo_n "checking for $ac_func... " >&6; }
27686if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27687  $as_echo_n "(cached) " >&6
27688else
27689  cat >conftest.$ac_ext <<_ACEOF
27690/* confdefs.h.  */
27691_ACEOF
27692cat confdefs.h >>conftest.$ac_ext
27693cat >>conftest.$ac_ext <<_ACEOF
27694/* end confdefs.h.  */
27695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27696   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27697#define $ac_func innocuous_$ac_func
27698
27699/* System header to define __stub macros and hopefully few prototypes,
27700    which can conflict with char $ac_func (); below.
27701    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27702    <limits.h> exists even on freestanding compilers.  */
27703
27704#ifdef __STDC__
27705# include <limits.h>
27706#else
27707# include <assert.h>
27708#endif
27709
27710#undef $ac_func
27711
27712/* Override any GCC internal prototype to avoid an error.
27713   Use char because int might match the return type of a GCC
27714   builtin and then its argument prototype would still apply.  */
27715#ifdef __cplusplus
27716extern "C"
27717#endif
27718char $ac_func ();
27719/* The GNU C library defines this for functions which it implements
27720    to always fail with ENOSYS.  Some functions are actually named
27721    something starting with __ and the normal name is an alias.  */
27722#if defined __stub_$ac_func || defined __stub___$ac_func
27723choke me
27724#endif
27725
27726int
27727main ()
27728{
27729return $ac_func ();
27730  ;
27731  return 0;
27732}
27733_ACEOF
27734rm -f conftest.$ac_objext conftest$ac_exeext
27735if { (ac_try="$ac_link"
27736case "(($ac_try" in
27737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27738  *) ac_try_echo=$ac_try;;
27739esac
27740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27741$as_echo "$ac_try_echo") >&5
27742  (eval "$ac_link") 2>conftest.er1
27743  ac_status=$?
27744  grep -v '^ *+' conftest.er1 >conftest.err
27745  rm -f conftest.er1
27746  cat conftest.err >&5
27747  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748  (exit $ac_status); } && {
27749	 test -z "$ac_c_werror_flag" ||
27750	 test ! -s conftest.err
27751       } && test -s conftest$ac_exeext && {
27752	 test "$cross_compiling" = yes ||
27753	 $as_test_x conftest$ac_exeext
27754       }; then
27755  eval "$as_ac_var=yes"
27756else
27757  $as_echo "$as_me: failed program was:" >&5
27758sed 's/^/| /' conftest.$ac_ext >&5
27759
27760	eval "$as_ac_var=no"
27761fi
27762
27763rm -rf conftest.dSYM
27764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27765      conftest$ac_exeext conftest.$ac_ext
27766fi
27767ac_res=`eval 'as_val=${'$as_ac_var'}
27768		 $as_echo "$as_val"'`
27769	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27770$as_echo "$ac_res" >&6; }
27771as_val=`eval 'as_val=${'$as_ac_var'}
27772		 $as_echo "$as_val"'`
27773   if test "x$as_val" = x""yes; then
27774  cat >>confdefs.h <<_ACEOF
27775#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27776_ACEOF
27777
27778fi
27779done
27780
27781  LIBS="$lt_save_LIBS"
27782fi
27783ac_ext=c
27784ac_cpp='$CPP $CPPFLAGS'
27785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27787ac_compiler_gnu=$ac_cv_c_compiler_gnu
27788
27789
27790
27791{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
27792$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
27793if test "${ac_cv_sys_symbol_underscore+set}" = set; then
27794  $as_echo_n "(cached) " >&6
27795else
27796  ac_cv_sys_symbol_underscore=no
27797  cat > conftest.$ac_ext <<EOF
27798void nm_test_func(){}
27799int main(){nm_test_func;return 0;}
27800EOF
27801  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27802  (eval $ac_compile) 2>&5
27803  ac_status=$?
27804  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805  (exit $ac_status); }; then
27806    # Now try to grab the symbols.
27807    ac_nlist=conftest.nm
27808    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
27809  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
27810  ac_status=$?
27811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812  (exit $ac_status); } && test -s "$ac_nlist"; then
27813      # See whether the symbols have a leading underscore.
27814      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
27815        ac_cv_sys_symbol_underscore=yes
27816      else
27817        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
27818	  :
27819        else
27820	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
27821        fi
27822      fi
27823    else
27824      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
27825    fi
27826  else
27827    echo "configure: failed program was:" >&5
27828    cat conftest.c >&5
27829  fi
27830  rm -rf conftest*
27831
27832fi
27833{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
27834$as_echo "$ac_cv_sys_symbol_underscore" >&6; }
27835
27836
27837if test x"$ac_cv_sys_symbol_underscore" = xyes; then
27838  if test x"$libltdl_cv_func_dlopen" = xyes ||
27839     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
27840	{ $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
27841$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
27842if test "${libltdl_cv_need_uscore+set}" = set; then
27843  $as_echo_n "(cached) " >&6
27844else
27845  libltdl_cv_need_uscore=unknown
27846          save_LIBS="$LIBS"
27847          LIBS="$LIBS $LIBADD_DL"
27848	  if test "$cross_compiling" = yes; then :
27849  libltdl_cv_need_uscore=cross
27850else
27851  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27852  lt_status=$lt_dlunknown
27853  cat > conftest.$ac_ext <<EOF
27854#line 27854 "configure"
27855#include "confdefs.h"
27856
27857#if HAVE_DLFCN_H
27858#include <dlfcn.h>
27859#endif
27860
27861#include <stdio.h>
27862
27863#ifdef RTLD_GLOBAL
27864#  define LT_DLGLOBAL		RTLD_GLOBAL
27865#else
27866#  ifdef DL_GLOBAL
27867#    define LT_DLGLOBAL		DL_GLOBAL
27868#  else
27869#    define LT_DLGLOBAL		0
27870#  endif
27871#endif
27872
27873/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27874   find out it does not work in some platform. */
27875#ifndef LT_DLLAZY_OR_NOW
27876#  ifdef RTLD_LAZY
27877#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
27878#  else
27879#    ifdef DL_LAZY
27880#      define LT_DLLAZY_OR_NOW		DL_LAZY
27881#    else
27882#      ifdef RTLD_NOW
27883#        define LT_DLLAZY_OR_NOW	RTLD_NOW
27884#      else
27885#        ifdef DL_NOW
27886#          define LT_DLLAZY_OR_NOW	DL_NOW
27887#        else
27888#          define LT_DLLAZY_OR_NOW	0
27889#        endif
27890#      endif
27891#    endif
27892#  endif
27893#endif
27894
27895#ifdef __cplusplus
27896extern "C" void exit (int);
27897#endif
27898
27899void fnord() { int i=42;}
27900int main ()
27901{
27902  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27903  int status = $lt_dlunknown;
27904
27905  if (self)
27906    {
27907      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
27908      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27909      /* dlclose (self); */
27910    }
27911  else
27912    puts (dlerror ());
27913
27914    exit (status);
27915}
27916EOF
27917  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27918  (eval $ac_link) 2>&5
27919  ac_status=$?
27920  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27922    (./conftest; exit; ) >&5 2>/dev/null
27923    lt_status=$?
27924    case x$lt_status in
27925      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
27926      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
27927      x$lt_dlunknown|x*)  ;;
27928    esac
27929  else :
27930    # compilation failed
27931
27932  fi
27933fi
27934rm -fr conftest*
27935
27936	  LIBS="$save_LIBS"
27937
27938fi
27939{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
27940$as_echo "$libltdl_cv_need_uscore" >&6; }
27941  fi
27942fi
27943
27944if test x"$libltdl_cv_need_uscore" = xyes; then
27945
27946cat >>confdefs.h <<\_ACEOF
27947#define NEED_USCORE 1
27948_ACEOF
27949
27950fi
27951
27952
27953{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
27954$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
27955if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
27956  $as_echo_n "(cached) " >&6
27957else
27958  # PORTME does your system automatically load deplibs for dlopen?
27959  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
27960  # For now, we just catch OSes we know something about -- in the
27961  # future, we'll try test this programmatically.
27962  libltdl_cv_sys_dlopen_deplibs=unknown
27963  case "$host_os" in
27964  aix3*|aix4.1.*|aix4.2.*)
27965    # Unknown whether this is true for these versions of AIX, but
27966    # we want this `case' here to explicitly catch those versions.
27967    libltdl_cv_sys_dlopen_deplibs=unknown
27968    ;;
27969  aix[4-9]*)
27970    libltdl_cv_sys_dlopen_deplibs=yes
27971    ;;
27972  darwin*)
27973    # Assuming the user has installed a libdl from somewhere, this is true
27974    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
27975    libltdl_cv_sys_dlopen_deplibs=yes
27976    ;;
27977  freebsd* | dragonfly*)
27978    libltdl_cv_sys_dlopen_deplibs=yes
27979    ;;
27980  gnu* | linux* | k*bsd*-gnu)
27981    # GNU and its variants, using gnu ld.so (Glibc)
27982    libltdl_cv_sys_dlopen_deplibs=yes
27983    ;;
27984  hpux10*|hpux11*)
27985    libltdl_cv_sys_dlopen_deplibs=yes
27986    ;;
27987  interix*)
27988    libltdl_cv_sys_dlopen_deplibs=yes
27989    ;;
27990  irix[12345]*|irix6.[01]*)
27991    # Catch all versions of IRIX before 6.2, and indicate that we don't
27992    # know how it worked for any of those versions.
27993    libltdl_cv_sys_dlopen_deplibs=unknown
27994    ;;
27995  irix*)
27996    # The case above catches anything before 6.2, and it's known that
27997    # at 6.2 and later dlopen does load deplibs.
27998    libltdl_cv_sys_dlopen_deplibs=yes
27999    ;;
28000  netbsd*)
28001    libltdl_cv_sys_dlopen_deplibs=yes
28002    ;;
28003  openbsd*)
28004    libltdl_cv_sys_dlopen_deplibs=yes
28005    ;;
28006  osf[1234]*)
28007    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
28008    # it did *not* use an RPATH in a shared library to find objects the
28009    # library depends on, so we explictly say `no'.
28010    libltdl_cv_sys_dlopen_deplibs=no
28011    ;;
28012  osf5.0|osf5.0a|osf5.1)
28013    # dlopen *does* load deplibs and with the right loader patch applied
28014    # it even uses RPATH in a shared library to search for shared objects
28015    # that the library depends on, but there's no easy way to know if that
28016    # patch is installed.  Since this is the case, all we can really
28017    # say is unknown -- it depends on the patch being installed.  If
28018    # it is, this changes to `yes'.  Without it, it would be `no'.
28019    libltdl_cv_sys_dlopen_deplibs=unknown
28020    ;;
28021  osf*)
28022    # the two cases above should catch all versions of osf <= 5.1.  Read
28023    # the comments above for what we know about them.
28024    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
28025    # is used to find them so we can finally say `yes'.
28026    libltdl_cv_sys_dlopen_deplibs=yes
28027    ;;
28028  solaris*)
28029    libltdl_cv_sys_dlopen_deplibs=yes
28030    ;;
28031  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
28032    libltdl_cv_sys_dlopen_deplibs=yes
28033    ;;
28034  esac
28035
28036fi
28037{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
28038$as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
28039if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
28040
28041cat >>confdefs.h <<\_ACEOF
28042#define LTDL_DLOPEN_DEPLIBS 1
28043_ACEOF
28044
28045fi
28046
28047
28048for ac_header in argz.h
28049do
28050as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28052  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28053$as_echo_n "checking for $ac_header... " >&6; }
28054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28055  $as_echo_n "(cached) " >&6
28056fi
28057ac_res=`eval 'as_val=${'$as_ac_Header'}
28058		 $as_echo "$as_val"'`
28059	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28060$as_echo "$ac_res" >&6; }
28061else
28062  # Is the header compilable?
28063{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28064$as_echo_n "checking $ac_header usability... " >&6; }
28065cat >conftest.$ac_ext <<_ACEOF
28066/* confdefs.h.  */
28067_ACEOF
28068cat confdefs.h >>conftest.$ac_ext
28069cat >>conftest.$ac_ext <<_ACEOF
28070/* end confdefs.h.  */
28071$ac_includes_default
28072#include <$ac_header>
28073_ACEOF
28074rm -f conftest.$ac_objext
28075if { (ac_try="$ac_compile"
28076case "(($ac_try" in
28077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078  *) ac_try_echo=$ac_try;;
28079esac
28080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28081$as_echo "$ac_try_echo") >&5
28082  (eval "$ac_compile") 2>conftest.er1
28083  ac_status=$?
28084  grep -v '^ *+' conftest.er1 >conftest.err
28085  rm -f conftest.er1
28086  cat conftest.err >&5
28087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088  (exit $ac_status); } && {
28089	 test -z "$ac_c_werror_flag" ||
28090	 test ! -s conftest.err
28091       } && test -s conftest.$ac_objext; then
28092  ac_header_compiler=yes
28093else
28094  $as_echo "$as_me: failed program was:" >&5
28095sed 's/^/| /' conftest.$ac_ext >&5
28096
28097	ac_header_compiler=no
28098fi
28099
28100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28101{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28102$as_echo "$ac_header_compiler" >&6; }
28103
28104# Is the header present?
28105{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28106$as_echo_n "checking $ac_header presence... " >&6; }
28107cat >conftest.$ac_ext <<_ACEOF
28108/* confdefs.h.  */
28109_ACEOF
28110cat confdefs.h >>conftest.$ac_ext
28111cat >>conftest.$ac_ext <<_ACEOF
28112/* end confdefs.h.  */
28113#include <$ac_header>
28114_ACEOF
28115if { (ac_try="$ac_cpp conftest.$ac_ext"
28116case "(($ac_try" in
28117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118  *) ac_try_echo=$ac_try;;
28119esac
28120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28121$as_echo "$ac_try_echo") >&5
28122  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28123  ac_status=$?
28124  grep -v '^ *+' conftest.er1 >conftest.err
28125  rm -f conftest.er1
28126  cat conftest.err >&5
28127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128  (exit $ac_status); } >/dev/null && {
28129	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28130	 test ! -s conftest.err
28131       }; then
28132  ac_header_preproc=yes
28133else
28134  $as_echo "$as_me: failed program was:" >&5
28135sed 's/^/| /' conftest.$ac_ext >&5
28136
28137  ac_header_preproc=no
28138fi
28139
28140rm -f conftest.err conftest.$ac_ext
28141{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28142$as_echo "$ac_header_preproc" >&6; }
28143
28144# So?  What about this header?
28145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28146  yes:no: )
28147    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28148$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28149    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28150$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28151    ac_header_preproc=yes
28152    ;;
28153  no:yes:* )
28154    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28155$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28156    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28157$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28158    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28159$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28160    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28161$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28162    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28163$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28164    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28165$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28166    ( cat <<\_ASBOX
28167## ------------------------------------ ##
28168## Report this to suzhe@tsinghua.org.cn ##
28169## ------------------------------------ ##
28170_ASBOX
28171     ) | sed "s/^/$as_me: WARNING:     /" >&2
28172    ;;
28173esac
28174{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28175$as_echo_n "checking for $ac_header... " >&6; }
28176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28177  $as_echo_n "(cached) " >&6
28178else
28179  eval "$as_ac_Header=\$ac_header_preproc"
28180fi
28181ac_res=`eval 'as_val=${'$as_ac_Header'}
28182		 $as_echo "$as_val"'`
28183	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28184$as_echo "$ac_res" >&6; }
28185
28186fi
28187as_val=`eval 'as_val=${'$as_ac_Header'}
28188		 $as_echo "$as_val"'`
28189   if test "x$as_val" = x""yes; then
28190  cat >>confdefs.h <<_ACEOF
28191#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28192_ACEOF
28193
28194fi
28195
28196done
28197
28198
28199{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
28200$as_echo_n "checking for error_t... " >&6; }
28201if test "${ac_cv_type_error_t+set}" = set; then
28202  $as_echo_n "(cached) " >&6
28203else
28204  ac_cv_type_error_t=no
28205cat >conftest.$ac_ext <<_ACEOF
28206/* confdefs.h.  */
28207_ACEOF
28208cat confdefs.h >>conftest.$ac_ext
28209cat >>conftest.$ac_ext <<_ACEOF
28210/* end confdefs.h.  */
28211#if HAVE_ARGZ_H
28212#  include <argz.h>
28213#endif
28214
28215int
28216main ()
28217{
28218if (sizeof (error_t))
28219       return 0;
28220  ;
28221  return 0;
28222}
28223_ACEOF
28224rm -f conftest.$ac_objext
28225if { (ac_try="$ac_compile"
28226case "(($ac_try" in
28227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228  *) ac_try_echo=$ac_try;;
28229esac
28230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28231$as_echo "$ac_try_echo") >&5
28232  (eval "$ac_compile") 2>conftest.er1
28233  ac_status=$?
28234  grep -v '^ *+' conftest.er1 >conftest.err
28235  rm -f conftest.er1
28236  cat conftest.err >&5
28237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238  (exit $ac_status); } && {
28239	 test -z "$ac_c_werror_flag" ||
28240	 test ! -s conftest.err
28241       } && test -s conftest.$ac_objext; then
28242  cat >conftest.$ac_ext <<_ACEOF
28243/* confdefs.h.  */
28244_ACEOF
28245cat confdefs.h >>conftest.$ac_ext
28246cat >>conftest.$ac_ext <<_ACEOF
28247/* end confdefs.h.  */
28248#if HAVE_ARGZ_H
28249#  include <argz.h>
28250#endif
28251
28252int
28253main ()
28254{
28255if (sizeof ((error_t)))
28256	  return 0;
28257  ;
28258  return 0;
28259}
28260_ACEOF
28261rm -f conftest.$ac_objext
28262if { (ac_try="$ac_compile"
28263case "(($ac_try" in
28264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265  *) ac_try_echo=$ac_try;;
28266esac
28267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28268$as_echo "$ac_try_echo") >&5
28269  (eval "$ac_compile") 2>conftest.er1
28270  ac_status=$?
28271  grep -v '^ *+' conftest.er1 >conftest.err
28272  rm -f conftest.er1
28273  cat conftest.err >&5
28274  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275  (exit $ac_status); } && {
28276	 test -z "$ac_c_werror_flag" ||
28277	 test ! -s conftest.err
28278       } && test -s conftest.$ac_objext; then
28279  :
28280else
28281  $as_echo "$as_me: failed program was:" >&5
28282sed 's/^/| /' conftest.$ac_ext >&5
28283
28284	ac_cv_type_error_t=yes
28285fi
28286
28287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28288else
28289  $as_echo "$as_me: failed program was:" >&5
28290sed 's/^/| /' conftest.$ac_ext >&5
28291
28292
28293fi
28294
28295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28296fi
28297{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
28298$as_echo "$ac_cv_type_error_t" >&6; }
28299if test "x$ac_cv_type_error_t" = x""yes; then
28300
28301cat >>confdefs.h <<_ACEOF
28302#define HAVE_ERROR_T 1
28303_ACEOF
28304
28305
28306else
28307
28308cat >>confdefs.h <<\_ACEOF
28309#define error_t int
28310_ACEOF
28311
28312fi
28313
28314
28315
28316
28317
28318
28319
28320for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
28321do
28322as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28323{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28324$as_echo_n "checking for $ac_func... " >&6; }
28325if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28326  $as_echo_n "(cached) " >&6
28327else
28328  cat >conftest.$ac_ext <<_ACEOF
28329/* confdefs.h.  */
28330_ACEOF
28331cat confdefs.h >>conftest.$ac_ext
28332cat >>conftest.$ac_ext <<_ACEOF
28333/* end confdefs.h.  */
28334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28335   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28336#define $ac_func innocuous_$ac_func
28337
28338/* System header to define __stub macros and hopefully few prototypes,
28339    which can conflict with char $ac_func (); below.
28340    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28341    <limits.h> exists even on freestanding compilers.  */
28342
28343#ifdef __STDC__
28344# include <limits.h>
28345#else
28346# include <assert.h>
28347#endif
28348
28349#undef $ac_func
28350
28351/* Override any GCC internal prototype to avoid an error.
28352   Use char because int might match the return type of a GCC
28353   builtin and then its argument prototype would still apply.  */
28354#ifdef __cplusplus
28355extern "C"
28356#endif
28357char $ac_func ();
28358/* The GNU C library defines this for functions which it implements
28359    to always fail with ENOSYS.  Some functions are actually named
28360    something starting with __ and the normal name is an alias.  */
28361#if defined __stub_$ac_func || defined __stub___$ac_func
28362choke me
28363#endif
28364
28365int
28366main ()
28367{
28368return $ac_func ();
28369  ;
28370  return 0;
28371}
28372_ACEOF
28373rm -f conftest.$ac_objext conftest$ac_exeext
28374if { (ac_try="$ac_link"
28375case "(($ac_try" in
28376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28377  *) ac_try_echo=$ac_try;;
28378esac
28379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28380$as_echo "$ac_try_echo") >&5
28381  (eval "$ac_link") 2>conftest.er1
28382  ac_status=$?
28383  grep -v '^ *+' conftest.er1 >conftest.err
28384  rm -f conftest.er1
28385  cat conftest.err >&5
28386  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387  (exit $ac_status); } && {
28388	 test -z "$ac_c_werror_flag" ||
28389	 test ! -s conftest.err
28390       } && test -s conftest$ac_exeext && {
28391	 test "$cross_compiling" = yes ||
28392	 $as_test_x conftest$ac_exeext
28393       }; then
28394  eval "$as_ac_var=yes"
28395else
28396  $as_echo "$as_me: failed program was:" >&5
28397sed 's/^/| /' conftest.$ac_ext >&5
28398
28399	eval "$as_ac_var=no"
28400fi
28401
28402rm -rf conftest.dSYM
28403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28404      conftest$ac_exeext conftest.$ac_ext
28405fi
28406ac_res=`eval 'as_val=${'$as_ac_var'}
28407		 $as_echo "$as_val"'`
28408	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28409$as_echo "$ac_res" >&6; }
28410as_val=`eval 'as_val=${'$as_ac_var'}
28411		 $as_echo "$as_val"'`
28412   if test "x$as_val" = x""yes; then
28413  cat >>confdefs.h <<_ACEOF
28414#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28415_ACEOF
28416
28417fi
28418done
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
28448		  stdio.h unistd.h
28449do
28450as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28452  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28453$as_echo_n "checking for $ac_header... " >&6; }
28454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28455  $as_echo_n "(cached) " >&6
28456fi
28457ac_res=`eval 'as_val=${'$as_ac_Header'}
28458		 $as_echo "$as_val"'`
28459	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28460$as_echo "$ac_res" >&6; }
28461else
28462  # Is the header compilable?
28463{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28464$as_echo_n "checking $ac_header usability... " >&6; }
28465cat >conftest.$ac_ext <<_ACEOF
28466/* confdefs.h.  */
28467_ACEOF
28468cat confdefs.h >>conftest.$ac_ext
28469cat >>conftest.$ac_ext <<_ACEOF
28470/* end confdefs.h.  */
28471$ac_includes_default
28472#include <$ac_header>
28473_ACEOF
28474rm -f conftest.$ac_objext
28475if { (ac_try="$ac_compile"
28476case "(($ac_try" in
28477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478  *) ac_try_echo=$ac_try;;
28479esac
28480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28481$as_echo "$ac_try_echo") >&5
28482  (eval "$ac_compile") 2>conftest.er1
28483  ac_status=$?
28484  grep -v '^ *+' conftest.er1 >conftest.err
28485  rm -f conftest.er1
28486  cat conftest.err >&5
28487  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488  (exit $ac_status); } && {
28489	 test -z "$ac_c_werror_flag" ||
28490	 test ! -s conftest.err
28491       } && test -s conftest.$ac_objext; then
28492  ac_header_compiler=yes
28493else
28494  $as_echo "$as_me: failed program was:" >&5
28495sed 's/^/| /' conftest.$ac_ext >&5
28496
28497	ac_header_compiler=no
28498fi
28499
28500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28501{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28502$as_echo "$ac_header_compiler" >&6; }
28503
28504# Is the header present?
28505{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28506$as_echo_n "checking $ac_header presence... " >&6; }
28507cat >conftest.$ac_ext <<_ACEOF
28508/* confdefs.h.  */
28509_ACEOF
28510cat confdefs.h >>conftest.$ac_ext
28511cat >>conftest.$ac_ext <<_ACEOF
28512/* end confdefs.h.  */
28513#include <$ac_header>
28514_ACEOF
28515if { (ac_try="$ac_cpp conftest.$ac_ext"
28516case "(($ac_try" in
28517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28518  *) ac_try_echo=$ac_try;;
28519esac
28520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28521$as_echo "$ac_try_echo") >&5
28522  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28523  ac_status=$?
28524  grep -v '^ *+' conftest.er1 >conftest.err
28525  rm -f conftest.er1
28526  cat conftest.err >&5
28527  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528  (exit $ac_status); } >/dev/null && {
28529	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28530	 test ! -s conftest.err
28531       }; then
28532  ac_header_preproc=yes
28533else
28534  $as_echo "$as_me: failed program was:" >&5
28535sed 's/^/| /' conftest.$ac_ext >&5
28536
28537  ac_header_preproc=no
28538fi
28539
28540rm -f conftest.err conftest.$ac_ext
28541{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28542$as_echo "$ac_header_preproc" >&6; }
28543
28544# So?  What about this header?
28545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28546  yes:no: )
28547    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28548$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28549    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28550$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28551    ac_header_preproc=yes
28552    ;;
28553  no:yes:* )
28554    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28555$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28556    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28557$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28558    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28559$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28560    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28561$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28562    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28563$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28564    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28565$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28566    ( cat <<\_ASBOX
28567## ------------------------------------ ##
28568## Report this to suzhe@tsinghua.org.cn ##
28569## ------------------------------------ ##
28570_ASBOX
28571     ) | sed "s/^/$as_me: WARNING:     /" >&2
28572    ;;
28573esac
28574{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28575$as_echo_n "checking for $ac_header... " >&6; }
28576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28577  $as_echo_n "(cached) " >&6
28578else
28579  eval "$as_ac_Header=\$ac_header_preproc"
28580fi
28581ac_res=`eval 'as_val=${'$as_ac_Header'}
28582		 $as_echo "$as_val"'`
28583	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28584$as_echo "$ac_res" >&6; }
28585
28586fi
28587as_val=`eval 'as_val=${'$as_ac_Header'}
28588		 $as_echo "$as_val"'`
28589   if test "x$as_val" = x""yes; then
28590  cat >>confdefs.h <<_ACEOF
28591#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28592_ACEOF
28593
28594fi
28595
28596done
28597
28598
28599
28600
28601
28602for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
28603do
28604as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28606  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28607$as_echo_n "checking for $ac_header... " >&6; }
28608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28609  $as_echo_n "(cached) " >&6
28610fi
28611ac_res=`eval 'as_val=${'$as_ac_Header'}
28612		 $as_echo "$as_val"'`
28613	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28614$as_echo "$ac_res" >&6; }
28615else
28616  # Is the header compilable?
28617{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28618$as_echo_n "checking $ac_header usability... " >&6; }
28619cat >conftest.$ac_ext <<_ACEOF
28620/* confdefs.h.  */
28621_ACEOF
28622cat confdefs.h >>conftest.$ac_ext
28623cat >>conftest.$ac_ext <<_ACEOF
28624/* end confdefs.h.  */
28625$ac_includes_default
28626#include <$ac_header>
28627_ACEOF
28628rm -f conftest.$ac_objext
28629if { (ac_try="$ac_compile"
28630case "(($ac_try" in
28631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632  *) ac_try_echo=$ac_try;;
28633esac
28634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28635$as_echo "$ac_try_echo") >&5
28636  (eval "$ac_compile") 2>conftest.er1
28637  ac_status=$?
28638  grep -v '^ *+' conftest.er1 >conftest.err
28639  rm -f conftest.er1
28640  cat conftest.err >&5
28641  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642  (exit $ac_status); } && {
28643	 test -z "$ac_c_werror_flag" ||
28644	 test ! -s conftest.err
28645       } && test -s conftest.$ac_objext; then
28646  ac_header_compiler=yes
28647else
28648  $as_echo "$as_me: failed program was:" >&5
28649sed 's/^/| /' conftest.$ac_ext >&5
28650
28651	ac_header_compiler=no
28652fi
28653
28654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28655{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28656$as_echo "$ac_header_compiler" >&6; }
28657
28658# Is the header present?
28659{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28660$as_echo_n "checking $ac_header presence... " >&6; }
28661cat >conftest.$ac_ext <<_ACEOF
28662/* confdefs.h.  */
28663_ACEOF
28664cat confdefs.h >>conftest.$ac_ext
28665cat >>conftest.$ac_ext <<_ACEOF
28666/* end confdefs.h.  */
28667#include <$ac_header>
28668_ACEOF
28669if { (ac_try="$ac_cpp conftest.$ac_ext"
28670case "(($ac_try" in
28671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28672  *) ac_try_echo=$ac_try;;
28673esac
28674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28675$as_echo "$ac_try_echo") >&5
28676  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28677  ac_status=$?
28678  grep -v '^ *+' conftest.er1 >conftest.err
28679  rm -f conftest.er1
28680  cat conftest.err >&5
28681  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682  (exit $ac_status); } >/dev/null && {
28683	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28684	 test ! -s conftest.err
28685       }; then
28686  ac_header_preproc=yes
28687else
28688  $as_echo "$as_me: failed program was:" >&5
28689sed 's/^/| /' conftest.$ac_ext >&5
28690
28691  ac_header_preproc=no
28692fi
28693
28694rm -f conftest.err conftest.$ac_ext
28695{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28696$as_echo "$ac_header_preproc" >&6; }
28697
28698# So?  What about this header?
28699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28700  yes:no: )
28701    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28702$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28703    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28704$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28705    ac_header_preproc=yes
28706    ;;
28707  no:yes:* )
28708    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28709$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28710    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28711$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28712    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28713$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28714    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28715$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28716    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28717$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28718    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28719$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28720    ( cat <<\_ASBOX
28721## ------------------------------------ ##
28722## Report this to suzhe@tsinghua.org.cn ##
28723## ------------------------------------ ##
28724_ASBOX
28725     ) | sed "s/^/$as_me: WARNING:     /" >&2
28726    ;;
28727esac
28728{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28729$as_echo_n "checking for $ac_header... " >&6; }
28730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28731  $as_echo_n "(cached) " >&6
28732else
28733  eval "$as_ac_Header=\$ac_header_preproc"
28734fi
28735ac_res=`eval 'as_val=${'$as_ac_Header'}
28736		 $as_echo "$as_val"'`
28737	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28738$as_echo "$ac_res" >&6; }
28739
28740fi
28741as_val=`eval 'as_val=${'$as_ac_Header'}
28742		 $as_echo "$as_val"'`
28743   if test "x$as_val" = x""yes; then
28744  cat >>confdefs.h <<_ACEOF
28745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28746_ACEOF
28747
28748fi
28749
28750done
28751
28752
28753
28754for ac_header in string.h strings.h
28755do
28756as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28758  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28759$as_echo_n "checking for $ac_header... " >&6; }
28760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28761  $as_echo_n "(cached) " >&6
28762fi
28763ac_res=`eval 'as_val=${'$as_ac_Header'}
28764		 $as_echo "$as_val"'`
28765	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28766$as_echo "$ac_res" >&6; }
28767else
28768  # Is the header compilable?
28769{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28770$as_echo_n "checking $ac_header usability... " >&6; }
28771cat >conftest.$ac_ext <<_ACEOF
28772/* confdefs.h.  */
28773_ACEOF
28774cat confdefs.h >>conftest.$ac_ext
28775cat >>conftest.$ac_ext <<_ACEOF
28776/* end confdefs.h.  */
28777$ac_includes_default
28778#include <$ac_header>
28779_ACEOF
28780rm -f conftest.$ac_objext
28781if { (ac_try="$ac_compile"
28782case "(($ac_try" in
28783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28784  *) ac_try_echo=$ac_try;;
28785esac
28786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28787$as_echo "$ac_try_echo") >&5
28788  (eval "$ac_compile") 2>conftest.er1
28789  ac_status=$?
28790  grep -v '^ *+' conftest.er1 >conftest.err
28791  rm -f conftest.er1
28792  cat conftest.err >&5
28793  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794  (exit $ac_status); } && {
28795	 test -z "$ac_c_werror_flag" ||
28796	 test ! -s conftest.err
28797       } && test -s conftest.$ac_objext; then
28798  ac_header_compiler=yes
28799else
28800  $as_echo "$as_me: failed program was:" >&5
28801sed 's/^/| /' conftest.$ac_ext >&5
28802
28803	ac_header_compiler=no
28804fi
28805
28806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28807{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28808$as_echo "$ac_header_compiler" >&6; }
28809
28810# Is the header present?
28811{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28812$as_echo_n "checking $ac_header presence... " >&6; }
28813cat >conftest.$ac_ext <<_ACEOF
28814/* confdefs.h.  */
28815_ACEOF
28816cat confdefs.h >>conftest.$ac_ext
28817cat >>conftest.$ac_ext <<_ACEOF
28818/* end confdefs.h.  */
28819#include <$ac_header>
28820_ACEOF
28821if { (ac_try="$ac_cpp conftest.$ac_ext"
28822case "(($ac_try" in
28823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824  *) ac_try_echo=$ac_try;;
28825esac
28826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28827$as_echo "$ac_try_echo") >&5
28828  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28829  ac_status=$?
28830  grep -v '^ *+' conftest.er1 >conftest.err
28831  rm -f conftest.er1
28832  cat conftest.err >&5
28833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834  (exit $ac_status); } >/dev/null && {
28835	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28836	 test ! -s conftest.err
28837       }; then
28838  ac_header_preproc=yes
28839else
28840  $as_echo "$as_me: failed program was:" >&5
28841sed 's/^/| /' conftest.$ac_ext >&5
28842
28843  ac_header_preproc=no
28844fi
28845
28846rm -f conftest.err conftest.$ac_ext
28847{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28848$as_echo "$ac_header_preproc" >&6; }
28849
28850# So?  What about this header?
28851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28852  yes:no: )
28853    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28854$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28855    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28856$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28857    ac_header_preproc=yes
28858    ;;
28859  no:yes:* )
28860    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28861$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28862    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28863$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28864    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28865$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28866    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28867$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28868    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28869$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28870    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28871$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28872    ( cat <<\_ASBOX
28873## ------------------------------------ ##
28874## Report this to suzhe@tsinghua.org.cn ##
28875## ------------------------------------ ##
28876_ASBOX
28877     ) | sed "s/^/$as_me: WARNING:     /" >&2
28878    ;;
28879esac
28880{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28881$as_echo_n "checking for $ac_header... " >&6; }
28882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28883  $as_echo_n "(cached) " >&6
28884else
28885  eval "$as_ac_Header=\$ac_header_preproc"
28886fi
28887ac_res=`eval 'as_val=${'$as_ac_Header'}
28888		 $as_echo "$as_val"'`
28889	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28890$as_echo "$ac_res" >&6; }
28891
28892fi
28893as_val=`eval 'as_val=${'$as_ac_Header'}
28894		 $as_echo "$as_val"'`
28895   if test "x$as_val" = x""yes; then
28896  cat >>confdefs.h <<_ACEOF
28897#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28898_ACEOF
28899 break
28900fi
28901
28902done
28903
28904
28905
28906
28907for ac_func in strchr index
28908do
28909as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28910{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28911$as_echo_n "checking for $ac_func... " >&6; }
28912if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28913  $as_echo_n "(cached) " >&6
28914else
28915  cat >conftest.$ac_ext <<_ACEOF
28916/* confdefs.h.  */
28917_ACEOF
28918cat confdefs.h >>conftest.$ac_ext
28919cat >>conftest.$ac_ext <<_ACEOF
28920/* end confdefs.h.  */
28921/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28922   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28923#define $ac_func innocuous_$ac_func
28924
28925/* System header to define __stub macros and hopefully few prototypes,
28926    which can conflict with char $ac_func (); below.
28927    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28928    <limits.h> exists even on freestanding compilers.  */
28929
28930#ifdef __STDC__
28931# include <limits.h>
28932#else
28933# include <assert.h>
28934#endif
28935
28936#undef $ac_func
28937
28938/* Override any GCC internal prototype to avoid an error.
28939   Use char because int might match the return type of a GCC
28940   builtin and then its argument prototype would still apply.  */
28941#ifdef __cplusplus
28942extern "C"
28943#endif
28944char $ac_func ();
28945/* The GNU C library defines this for functions which it implements
28946    to always fail with ENOSYS.  Some functions are actually named
28947    something starting with __ and the normal name is an alias.  */
28948#if defined __stub_$ac_func || defined __stub___$ac_func
28949choke me
28950#endif
28951
28952int
28953main ()
28954{
28955return $ac_func ();
28956  ;
28957  return 0;
28958}
28959_ACEOF
28960rm -f conftest.$ac_objext conftest$ac_exeext
28961if { (ac_try="$ac_link"
28962case "(($ac_try" in
28963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964  *) ac_try_echo=$ac_try;;
28965esac
28966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28967$as_echo "$ac_try_echo") >&5
28968  (eval "$ac_link") 2>conftest.er1
28969  ac_status=$?
28970  grep -v '^ *+' conftest.er1 >conftest.err
28971  rm -f conftest.er1
28972  cat conftest.err >&5
28973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974  (exit $ac_status); } && {
28975	 test -z "$ac_c_werror_flag" ||
28976	 test ! -s conftest.err
28977       } && test -s conftest$ac_exeext && {
28978	 test "$cross_compiling" = yes ||
28979	 $as_test_x conftest$ac_exeext
28980       }; then
28981  eval "$as_ac_var=yes"
28982else
28983  $as_echo "$as_me: failed program was:" >&5
28984sed 's/^/| /' conftest.$ac_ext >&5
28985
28986	eval "$as_ac_var=no"
28987fi
28988
28989rm -rf conftest.dSYM
28990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28991      conftest$ac_exeext conftest.$ac_ext
28992fi
28993ac_res=`eval 'as_val=${'$as_ac_var'}
28994		 $as_echo "$as_val"'`
28995	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28996$as_echo "$ac_res" >&6; }
28997as_val=`eval 'as_val=${'$as_ac_var'}
28998		 $as_echo "$as_val"'`
28999   if test "x$as_val" = x""yes; then
29000  cat >>confdefs.h <<_ACEOF
29001#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29002_ACEOF
29003 break
29004fi
29005done
29006
29007
29008
29009for ac_func in strrchr rindex
29010do
29011as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29012{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29013$as_echo_n "checking for $ac_func... " >&6; }
29014if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29015  $as_echo_n "(cached) " >&6
29016else
29017  cat >conftest.$ac_ext <<_ACEOF
29018/* confdefs.h.  */
29019_ACEOF
29020cat confdefs.h >>conftest.$ac_ext
29021cat >>conftest.$ac_ext <<_ACEOF
29022/* end confdefs.h.  */
29023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29024   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29025#define $ac_func innocuous_$ac_func
29026
29027/* System header to define __stub macros and hopefully few prototypes,
29028    which can conflict with char $ac_func (); below.
29029    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29030    <limits.h> exists even on freestanding compilers.  */
29031
29032#ifdef __STDC__
29033# include <limits.h>
29034#else
29035# include <assert.h>
29036#endif
29037
29038#undef $ac_func
29039
29040/* Override any GCC internal prototype to avoid an error.
29041   Use char because int might match the return type of a GCC
29042   builtin and then its argument prototype would still apply.  */
29043#ifdef __cplusplus
29044extern "C"
29045#endif
29046char $ac_func ();
29047/* The GNU C library defines this for functions which it implements
29048    to always fail with ENOSYS.  Some functions are actually named
29049    something starting with __ and the normal name is an alias.  */
29050#if defined __stub_$ac_func || defined __stub___$ac_func
29051choke me
29052#endif
29053
29054int
29055main ()
29056{
29057return $ac_func ();
29058  ;
29059  return 0;
29060}
29061_ACEOF
29062rm -f conftest.$ac_objext conftest$ac_exeext
29063if { (ac_try="$ac_link"
29064case "(($ac_try" in
29065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066  *) ac_try_echo=$ac_try;;
29067esac
29068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29069$as_echo "$ac_try_echo") >&5
29070  (eval "$ac_link") 2>conftest.er1
29071  ac_status=$?
29072  grep -v '^ *+' conftest.er1 >conftest.err
29073  rm -f conftest.er1
29074  cat conftest.err >&5
29075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076  (exit $ac_status); } && {
29077	 test -z "$ac_c_werror_flag" ||
29078	 test ! -s conftest.err
29079       } && test -s conftest$ac_exeext && {
29080	 test "$cross_compiling" = yes ||
29081	 $as_test_x conftest$ac_exeext
29082       }; then
29083  eval "$as_ac_var=yes"
29084else
29085  $as_echo "$as_me: failed program was:" >&5
29086sed 's/^/| /' conftest.$ac_ext >&5
29087
29088	eval "$as_ac_var=no"
29089fi
29090
29091rm -rf conftest.dSYM
29092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29093      conftest$ac_exeext conftest.$ac_ext
29094fi
29095ac_res=`eval 'as_val=${'$as_ac_var'}
29096		 $as_echo "$as_val"'`
29097	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29098$as_echo "$ac_res" >&6; }
29099as_val=`eval 'as_val=${'$as_ac_var'}
29100		 $as_echo "$as_val"'`
29101   if test "x$as_val" = x""yes; then
29102  cat >>confdefs.h <<_ACEOF
29103#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29104_ACEOF
29105 break
29106fi
29107done
29108
29109
29110
29111for ac_func in memcpy bcopy
29112do
29113as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29114{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29115$as_echo_n "checking for $ac_func... " >&6; }
29116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29117  $as_echo_n "(cached) " >&6
29118else
29119  cat >conftest.$ac_ext <<_ACEOF
29120/* confdefs.h.  */
29121_ACEOF
29122cat confdefs.h >>conftest.$ac_ext
29123cat >>conftest.$ac_ext <<_ACEOF
29124/* end confdefs.h.  */
29125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29126   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29127#define $ac_func innocuous_$ac_func
29128
29129/* System header to define __stub macros and hopefully few prototypes,
29130    which can conflict with char $ac_func (); below.
29131    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29132    <limits.h> exists even on freestanding compilers.  */
29133
29134#ifdef __STDC__
29135# include <limits.h>
29136#else
29137# include <assert.h>
29138#endif
29139
29140#undef $ac_func
29141
29142/* Override any GCC internal prototype to avoid an error.
29143   Use char because int might match the return type of a GCC
29144   builtin and then its argument prototype would still apply.  */
29145#ifdef __cplusplus
29146extern "C"
29147#endif
29148char $ac_func ();
29149/* The GNU C library defines this for functions which it implements
29150    to always fail with ENOSYS.  Some functions are actually named
29151    something starting with __ and the normal name is an alias.  */
29152#if defined __stub_$ac_func || defined __stub___$ac_func
29153choke me
29154#endif
29155
29156int
29157main ()
29158{
29159return $ac_func ();
29160  ;
29161  return 0;
29162}
29163_ACEOF
29164rm -f conftest.$ac_objext conftest$ac_exeext
29165if { (ac_try="$ac_link"
29166case "(($ac_try" in
29167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168  *) ac_try_echo=$ac_try;;
29169esac
29170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29171$as_echo "$ac_try_echo") >&5
29172  (eval "$ac_link") 2>conftest.er1
29173  ac_status=$?
29174  grep -v '^ *+' conftest.er1 >conftest.err
29175  rm -f conftest.er1
29176  cat conftest.err >&5
29177  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178  (exit $ac_status); } && {
29179	 test -z "$ac_c_werror_flag" ||
29180	 test ! -s conftest.err
29181       } && test -s conftest$ac_exeext && {
29182	 test "$cross_compiling" = yes ||
29183	 $as_test_x conftest$ac_exeext
29184       }; then
29185  eval "$as_ac_var=yes"
29186else
29187  $as_echo "$as_me: failed program was:" >&5
29188sed 's/^/| /' conftest.$ac_ext >&5
29189
29190	eval "$as_ac_var=no"
29191fi
29192
29193rm -rf conftest.dSYM
29194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29195      conftest$ac_exeext conftest.$ac_ext
29196fi
29197ac_res=`eval 'as_val=${'$as_ac_var'}
29198		 $as_echo "$as_val"'`
29199	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29200$as_echo "$ac_res" >&6; }
29201as_val=`eval 'as_val=${'$as_ac_var'}
29202		 $as_echo "$as_val"'`
29203   if test "x$as_val" = x""yes; then
29204  cat >>confdefs.h <<_ACEOF
29205#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29206_ACEOF
29207 break
29208fi
29209done
29210
29211
29212
29213for ac_func in memmove strcmp
29214do
29215as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29216{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29217$as_echo_n "checking for $ac_func... " >&6; }
29218if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29219  $as_echo_n "(cached) " >&6
29220else
29221  cat >conftest.$ac_ext <<_ACEOF
29222/* confdefs.h.  */
29223_ACEOF
29224cat confdefs.h >>conftest.$ac_ext
29225cat >>conftest.$ac_ext <<_ACEOF
29226/* end confdefs.h.  */
29227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29228   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29229#define $ac_func innocuous_$ac_func
29230
29231/* System header to define __stub macros and hopefully few prototypes,
29232    which can conflict with char $ac_func (); below.
29233    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29234    <limits.h> exists even on freestanding compilers.  */
29235
29236#ifdef __STDC__
29237# include <limits.h>
29238#else
29239# include <assert.h>
29240#endif
29241
29242#undef $ac_func
29243
29244/* Override any GCC internal prototype to avoid an error.
29245   Use char because int might match the return type of a GCC
29246   builtin and then its argument prototype would still apply.  */
29247#ifdef __cplusplus
29248extern "C"
29249#endif
29250char $ac_func ();
29251/* The GNU C library defines this for functions which it implements
29252    to always fail with ENOSYS.  Some functions are actually named
29253    something starting with __ and the normal name is an alias.  */
29254#if defined __stub_$ac_func || defined __stub___$ac_func
29255choke me
29256#endif
29257
29258int
29259main ()
29260{
29261return $ac_func ();
29262  ;
29263  return 0;
29264}
29265_ACEOF
29266rm -f conftest.$ac_objext conftest$ac_exeext
29267if { (ac_try="$ac_link"
29268case "(($ac_try" in
29269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270  *) ac_try_echo=$ac_try;;
29271esac
29272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29273$as_echo "$ac_try_echo") >&5
29274  (eval "$ac_link") 2>conftest.er1
29275  ac_status=$?
29276  grep -v '^ *+' conftest.er1 >conftest.err
29277  rm -f conftest.er1
29278  cat conftest.err >&5
29279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280  (exit $ac_status); } && {
29281	 test -z "$ac_c_werror_flag" ||
29282	 test ! -s conftest.err
29283       } && test -s conftest$ac_exeext && {
29284	 test "$cross_compiling" = yes ||
29285	 $as_test_x conftest$ac_exeext
29286       }; then
29287  eval "$as_ac_var=yes"
29288else
29289  $as_echo "$as_me: failed program was:" >&5
29290sed 's/^/| /' conftest.$ac_ext >&5
29291
29292	eval "$as_ac_var=no"
29293fi
29294
29295rm -rf conftest.dSYM
29296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29297      conftest$ac_exeext conftest.$ac_ext
29298fi
29299ac_res=`eval 'as_val=${'$as_ac_var'}
29300		 $as_echo "$as_val"'`
29301	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29302$as_echo "$ac_res" >&6; }
29303as_val=`eval 'as_val=${'$as_ac_var'}
29304		 $as_echo "$as_val"'`
29305   if test "x$as_val" = x""yes; then
29306  cat >>confdefs.h <<_ACEOF
29307#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29308_ACEOF
29309
29310fi
29311done
29312
29313
29314
29315
29316for ac_func in closedir opendir readdir
29317do
29318as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29319{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29320$as_echo_n "checking for $ac_func... " >&6; }
29321if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29322  $as_echo_n "(cached) " >&6
29323else
29324  cat >conftest.$ac_ext <<_ACEOF
29325/* confdefs.h.  */
29326_ACEOF
29327cat confdefs.h >>conftest.$ac_ext
29328cat >>conftest.$ac_ext <<_ACEOF
29329/* end confdefs.h.  */
29330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29331   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29332#define $ac_func innocuous_$ac_func
29333
29334/* System header to define __stub macros and hopefully few prototypes,
29335    which can conflict with char $ac_func (); below.
29336    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29337    <limits.h> exists even on freestanding compilers.  */
29338
29339#ifdef __STDC__
29340# include <limits.h>
29341#else
29342# include <assert.h>
29343#endif
29344
29345#undef $ac_func
29346
29347/* Override any GCC internal prototype to avoid an error.
29348   Use char because int might match the return type of a GCC
29349   builtin and then its argument prototype would still apply.  */
29350#ifdef __cplusplus
29351extern "C"
29352#endif
29353char $ac_func ();
29354/* The GNU C library defines this for functions which it implements
29355    to always fail with ENOSYS.  Some functions are actually named
29356    something starting with __ and the normal name is an alias.  */
29357#if defined __stub_$ac_func || defined __stub___$ac_func
29358choke me
29359#endif
29360
29361int
29362main ()
29363{
29364return $ac_func ();
29365  ;
29366  return 0;
29367}
29368_ACEOF
29369rm -f conftest.$ac_objext conftest$ac_exeext
29370if { (ac_try="$ac_link"
29371case "(($ac_try" in
29372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29373  *) ac_try_echo=$ac_try;;
29374esac
29375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29376$as_echo "$ac_try_echo") >&5
29377  (eval "$ac_link") 2>conftest.er1
29378  ac_status=$?
29379  grep -v '^ *+' conftest.er1 >conftest.err
29380  rm -f conftest.er1
29381  cat conftest.err >&5
29382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383  (exit $ac_status); } && {
29384	 test -z "$ac_c_werror_flag" ||
29385	 test ! -s conftest.err
29386       } && test -s conftest$ac_exeext && {
29387	 test "$cross_compiling" = yes ||
29388	 $as_test_x conftest$ac_exeext
29389       }; then
29390  eval "$as_ac_var=yes"
29391else
29392  $as_echo "$as_me: failed program was:" >&5
29393sed 's/^/| /' conftest.$ac_ext >&5
29394
29395	eval "$as_ac_var=no"
29396fi
29397
29398rm -rf conftest.dSYM
29399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29400      conftest$ac_exeext conftest.$ac_ext
29401fi
29402ac_res=`eval 'as_val=${'$as_ac_var'}
29403		 $as_echo "$as_val"'`
29404	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29405$as_echo "$ac_res" >&6; }
29406as_val=`eval 'as_val=${'$as_ac_var'}
29407		 $as_echo "$as_val"'`
29408   if test "x$as_val" = x""yes; then
29409  cat >>confdefs.h <<_ACEOF
29410#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29411_ACEOF
29412
29413fi
29414done
29415
29416
29417
29418
29419# libtool option to control which symbols are exported
29420# right now, symbols starting with _ are not exported
29421# !!! DO NOT USE IT !!!
29422LIBTOOL_EXPORT_OPTIONS=''
29423
29424
29425# Checks for programs.
29426ac_ext=cpp
29427ac_cpp='$CXXCPP $CPPFLAGS'
29428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29431if test -z "$CXX"; then
29432  if test -n "$CCC"; then
29433    CXX=$CCC
29434  else
29435    if test -n "$ac_tool_prefix"; then
29436  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
29437  do
29438    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29441$as_echo_n "checking for $ac_word... " >&6; }
29442if test "${ac_cv_prog_CXX+set}" = set; then
29443  $as_echo_n "(cached) " >&6
29444else
29445  if test -n "$CXX"; then
29446  ac_cv_prog_CXX="$CXX" # Let the user override the test.
29447else
29448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29449for as_dir in $PATH
29450do
29451  IFS=$as_save_IFS
29452  test -z "$as_dir" && as_dir=.
29453  for ac_exec_ext in '' $ac_executable_extensions; do
29454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29455    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
29456    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29457    break 2
29458  fi
29459done
29460done
29461IFS=$as_save_IFS
29462
29463fi
29464fi
29465CXX=$ac_cv_prog_CXX
29466if test -n "$CXX"; then
29467  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
29468$as_echo "$CXX" >&6; }
29469else
29470  { $as_echo "$as_me:$LINENO: result: no" >&5
29471$as_echo "no" >&6; }
29472fi
29473
29474
29475    test -n "$CXX" && break
29476  done
29477fi
29478if test -z "$CXX"; then
29479  ac_ct_CXX=$CXX
29480  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
29481do
29482  # Extract the first word of "$ac_prog", so it can be a program name with args.
29483set dummy $ac_prog; ac_word=$2
29484{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29485$as_echo_n "checking for $ac_word... " >&6; }
29486if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
29487  $as_echo_n "(cached) " >&6
29488else
29489  if test -n "$ac_ct_CXX"; then
29490  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
29491else
29492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29493for as_dir in $PATH
29494do
29495  IFS=$as_save_IFS
29496  test -z "$as_dir" && as_dir=.
29497  for ac_exec_ext in '' $ac_executable_extensions; do
29498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29499    ac_cv_prog_ac_ct_CXX="$ac_prog"
29500    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29501    break 2
29502  fi
29503done
29504done
29505IFS=$as_save_IFS
29506
29507fi
29508fi
29509ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
29510if test -n "$ac_ct_CXX"; then
29511  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
29512$as_echo "$ac_ct_CXX" >&6; }
29513else
29514  { $as_echo "$as_me:$LINENO: result: no" >&5
29515$as_echo "no" >&6; }
29516fi
29517
29518
29519  test -n "$ac_ct_CXX" && break
29520done
29521
29522  if test "x$ac_ct_CXX" = x; then
29523    CXX="g++"
29524  else
29525    case $cross_compiling:$ac_tool_warned in
29526yes:)
29527{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
29528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29529ac_tool_warned=yes ;;
29530esac
29531    CXX=$ac_ct_CXX
29532  fi
29533fi
29534
29535  fi
29536fi
29537# Provide some information about the compiler.
29538$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
29539set X $ac_compile
29540ac_compiler=$2
29541{ (ac_try="$ac_compiler --version >&5"
29542case "(($ac_try" in
29543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544  *) ac_try_echo=$ac_try;;
29545esac
29546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29547$as_echo "$ac_try_echo") >&5
29548  (eval "$ac_compiler --version >&5") 2>&5
29549  ac_status=$?
29550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551  (exit $ac_status); }
29552{ (ac_try="$ac_compiler -v >&5"
29553case "(($ac_try" in
29554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29555  *) ac_try_echo=$ac_try;;
29556esac
29557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29558$as_echo "$ac_try_echo") >&5
29559  (eval "$ac_compiler -v >&5") 2>&5
29560  ac_status=$?
29561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562  (exit $ac_status); }
29563{ (ac_try="$ac_compiler -V >&5"
29564case "(($ac_try" in
29565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29566  *) ac_try_echo=$ac_try;;
29567esac
29568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29569$as_echo "$ac_try_echo") >&5
29570  (eval "$ac_compiler -V >&5") 2>&5
29571  ac_status=$?
29572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573  (exit $ac_status); }
29574
29575{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
29576$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
29577if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
29578  $as_echo_n "(cached) " >&6
29579else
29580  cat >conftest.$ac_ext <<_ACEOF
29581/* confdefs.h.  */
29582_ACEOF
29583cat confdefs.h >>conftest.$ac_ext
29584cat >>conftest.$ac_ext <<_ACEOF
29585/* end confdefs.h.  */
29586
29587int
29588main ()
29589{
29590#ifndef __GNUC__
29591       choke me
29592#endif
29593
29594  ;
29595  return 0;
29596}
29597_ACEOF
29598rm -f conftest.$ac_objext
29599if { (ac_try="$ac_compile"
29600case "(($ac_try" in
29601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29602  *) ac_try_echo=$ac_try;;
29603esac
29604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29605$as_echo "$ac_try_echo") >&5
29606  (eval "$ac_compile") 2>conftest.er1
29607  ac_status=$?
29608  grep -v '^ *+' conftest.er1 >conftest.err
29609  rm -f conftest.er1
29610  cat conftest.err >&5
29611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612  (exit $ac_status); } && {
29613	 test -z "$ac_cxx_werror_flag" ||
29614	 test ! -s conftest.err
29615       } && test -s conftest.$ac_objext; then
29616  ac_compiler_gnu=yes
29617else
29618  $as_echo "$as_me: failed program was:" >&5
29619sed 's/^/| /' conftest.$ac_ext >&5
29620
29621	ac_compiler_gnu=no
29622fi
29623
29624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
29626
29627fi
29628{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
29629$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
29630if test $ac_compiler_gnu = yes; then
29631  GXX=yes
29632else
29633  GXX=
29634fi
29635ac_test_CXXFLAGS=${CXXFLAGS+set}
29636ac_save_CXXFLAGS=$CXXFLAGS
29637{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
29638$as_echo_n "checking whether $CXX accepts -g... " >&6; }
29639if test "${ac_cv_prog_cxx_g+set}" = set; then
29640  $as_echo_n "(cached) " >&6
29641else
29642  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
29643   ac_cxx_werror_flag=yes
29644   ac_cv_prog_cxx_g=no
29645   CXXFLAGS="-g"
29646   cat >conftest.$ac_ext <<_ACEOF
29647/* confdefs.h.  */
29648_ACEOF
29649cat confdefs.h >>conftest.$ac_ext
29650cat >>conftest.$ac_ext <<_ACEOF
29651/* end confdefs.h.  */
29652
29653int
29654main ()
29655{
29656
29657  ;
29658  return 0;
29659}
29660_ACEOF
29661rm -f conftest.$ac_objext
29662if { (ac_try="$ac_compile"
29663case "(($ac_try" in
29664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665  *) ac_try_echo=$ac_try;;
29666esac
29667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29668$as_echo "$ac_try_echo") >&5
29669  (eval "$ac_compile") 2>conftest.er1
29670  ac_status=$?
29671  grep -v '^ *+' conftest.er1 >conftest.err
29672  rm -f conftest.er1
29673  cat conftest.err >&5
29674  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675  (exit $ac_status); } && {
29676	 test -z "$ac_cxx_werror_flag" ||
29677	 test ! -s conftest.err
29678       } && test -s conftest.$ac_objext; then
29679  ac_cv_prog_cxx_g=yes
29680else
29681  $as_echo "$as_me: failed program was:" >&5
29682sed 's/^/| /' conftest.$ac_ext >&5
29683
29684	CXXFLAGS=""
29685      cat >conftest.$ac_ext <<_ACEOF
29686/* confdefs.h.  */
29687_ACEOF
29688cat confdefs.h >>conftest.$ac_ext
29689cat >>conftest.$ac_ext <<_ACEOF
29690/* end confdefs.h.  */
29691
29692int
29693main ()
29694{
29695
29696  ;
29697  return 0;
29698}
29699_ACEOF
29700rm -f conftest.$ac_objext
29701if { (ac_try="$ac_compile"
29702case "(($ac_try" in
29703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704  *) ac_try_echo=$ac_try;;
29705esac
29706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29707$as_echo "$ac_try_echo") >&5
29708  (eval "$ac_compile") 2>conftest.er1
29709  ac_status=$?
29710  grep -v '^ *+' conftest.er1 >conftest.err
29711  rm -f conftest.er1
29712  cat conftest.err >&5
29713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714  (exit $ac_status); } && {
29715	 test -z "$ac_cxx_werror_flag" ||
29716	 test ! -s conftest.err
29717       } && test -s conftest.$ac_objext; then
29718  :
29719else
29720  $as_echo "$as_me: failed program was:" >&5
29721sed 's/^/| /' conftest.$ac_ext >&5
29722
29723	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
29724	 CXXFLAGS="-g"
29725	 cat >conftest.$ac_ext <<_ACEOF
29726/* confdefs.h.  */
29727_ACEOF
29728cat confdefs.h >>conftest.$ac_ext
29729cat >>conftest.$ac_ext <<_ACEOF
29730/* end confdefs.h.  */
29731
29732int
29733main ()
29734{
29735
29736  ;
29737  return 0;
29738}
29739_ACEOF
29740rm -f conftest.$ac_objext
29741if { (ac_try="$ac_compile"
29742case "(($ac_try" in
29743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744  *) ac_try_echo=$ac_try;;
29745esac
29746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29747$as_echo "$ac_try_echo") >&5
29748  (eval "$ac_compile") 2>conftest.er1
29749  ac_status=$?
29750  grep -v '^ *+' conftest.er1 >conftest.err
29751  rm -f conftest.er1
29752  cat conftest.err >&5
29753  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754  (exit $ac_status); } && {
29755	 test -z "$ac_cxx_werror_flag" ||
29756	 test ! -s conftest.err
29757       } && test -s conftest.$ac_objext; then
29758  ac_cv_prog_cxx_g=yes
29759else
29760  $as_echo "$as_me: failed program was:" >&5
29761sed 's/^/| /' conftest.$ac_ext >&5
29762
29763
29764fi
29765
29766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29767fi
29768
29769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29770fi
29771
29772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29773   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
29774fi
29775{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
29776$as_echo "$ac_cv_prog_cxx_g" >&6; }
29777if test "$ac_test_CXXFLAGS" = set; then
29778  CXXFLAGS=$ac_save_CXXFLAGS
29779elif test $ac_cv_prog_cxx_g = yes; then
29780  if test "$GXX" = yes; then
29781    CXXFLAGS="-g -O2"
29782  else
29783    CXXFLAGS="-g"
29784  fi
29785else
29786  if test "$GXX" = yes; then
29787    CXXFLAGS="-O2"
29788  else
29789    CXXFLAGS=
29790  fi
29791fi
29792ac_ext=c
29793ac_cpp='$CPP $CPPFLAGS'
29794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29796ac_compiler_gnu=$ac_cv_c_compiler_gnu
29797
29798depcc="$CXX"  am_compiler_list=
29799
29800{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29801$as_echo_n "checking dependency style of $depcc... " >&6; }
29802if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
29803  $as_echo_n "(cached) " >&6
29804else
29805  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
29806  # We make a subdir and do the tests there.  Otherwise we can end up
29807  # making bogus files that we don't know about and never remove.  For
29808  # instance it was reported that on HP-UX the gcc test will end up
29809  # making a dummy file named `D' -- because `-MD' means `put the output
29810  # in D'.
29811  mkdir conftest.dir
29812  # Copy depcomp to subdir because otherwise we won't find it if we're
29813  # using a relative directory.
29814  cp "$am_depcomp" conftest.dir
29815  cd conftest.dir
29816  # We will build objects and dependencies in a subdirectory because
29817  # it helps to detect inapplicable dependency modes.  For instance
29818  # both Tru64's cc and ICC support -MD to output dependencies as a
29819  # side effect of compilation, but ICC will put the dependencies in
29820  # the current directory while Tru64 will put them in the object
29821  # directory.
29822  mkdir sub
29823
29824  am_cv_CXX_dependencies_compiler_type=none
29825  if test "$am_compiler_list" = ""; then
29826     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
29827  fi
29828  for depmode in $am_compiler_list; do
29829    # Setup a source with many dependencies, because some compilers
29830    # like to wrap large dependency lists on column 80 (with \), and
29831    # we should not choose a depcomp mode which is confused by this.
29832    #
29833    # We need to recreate these files for each test, as the compiler may
29834    # overwrite some of them when testing with obscure command lines.
29835    # This happens at least with the AIX C compiler.
29836    : > sub/conftest.c
29837    for i in 1 2 3 4 5 6; do
29838      echo '#include "conftst'$i'.h"' >> sub/conftest.c
29839      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
29840      # Solaris 8's {/usr,}/bin/sh.
29841      touch sub/conftst$i.h
29842    done
29843    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
29844
29845    case $depmode in
29846    nosideeffect)
29847      # after this tag, mechanisms are not by side-effect, so they'll
29848      # only be used when explicitly requested
29849      if test "x$enable_dependency_tracking" = xyes; then
29850	continue
29851      else
29852	break
29853      fi
29854      ;;
29855    none) break ;;
29856    esac
29857    # We check with `-c' and `-o' for the sake of the "dashmstdout"
29858    # mode.  It turns out that the SunPro C++ compiler does not properly
29859    # handle `-M -o', and we need to detect this.
29860    if depmode=$depmode \
29861       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
29862       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
29863       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
29864         >/dev/null 2>conftest.err &&
29865       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
29866       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
29867       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
29868       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
29869      # icc doesn't choke on unknown options, it will just issue warnings
29870      # or remarks (even with -Werror).  So we grep stderr for any message
29871      # that says an option was ignored or not supported.
29872      # When given -MP, icc 7.0 and 7.1 complain thusly:
29873      #   icc: Command line warning: ignoring option '-M'; no argument required
29874      # The diagnosis changed in icc 8.0:
29875      #   icc: Command line remark: option '-MP' not supported
29876      if (grep 'ignoring option' conftest.err ||
29877          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
29878        am_cv_CXX_dependencies_compiler_type=$depmode
29879        break
29880      fi
29881    fi
29882  done
29883
29884  cd ..
29885  rm -rf conftest.dir
29886else
29887  am_cv_CXX_dependencies_compiler_type=none
29888fi
29889
29890fi
29891{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
29892$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
29893CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
29894
29895 if
29896  test "x$enable_dependency_tracking" != xno \
29897  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
29898  am__fastdepCXX_TRUE=
29899  am__fastdepCXX_FALSE='#'
29900else
29901  am__fastdepCXX_TRUE='#'
29902  am__fastdepCXX_FALSE=
29903fi
29904
29905
29906ac_ext=c
29907ac_cpp='$CPP $CPPFLAGS'
29908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29910ac_compiler_gnu=$ac_cv_c_compiler_gnu
29911if test -n "$ac_tool_prefix"; then
29912  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
29913set dummy ${ac_tool_prefix}gcc; ac_word=$2
29914{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29915$as_echo_n "checking for $ac_word... " >&6; }
29916if test "${ac_cv_prog_CC+set}" = set; then
29917  $as_echo_n "(cached) " >&6
29918else
29919  if test -n "$CC"; then
29920  ac_cv_prog_CC="$CC" # Let the user override the test.
29921else
29922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29923for as_dir in $PATH
29924do
29925  IFS=$as_save_IFS
29926  test -z "$as_dir" && as_dir=.
29927  for ac_exec_ext in '' $ac_executable_extensions; do
29928  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29929    ac_cv_prog_CC="${ac_tool_prefix}gcc"
29930    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29931    break 2
29932  fi
29933done
29934done
29935IFS=$as_save_IFS
29936
29937fi
29938fi
29939CC=$ac_cv_prog_CC
29940if test -n "$CC"; then
29941  { $as_echo "$as_me:$LINENO: result: $CC" >&5
29942$as_echo "$CC" >&6; }
29943else
29944  { $as_echo "$as_me:$LINENO: result: no" >&5
29945$as_echo "no" >&6; }
29946fi
29947
29948
29949fi
29950if test -z "$ac_cv_prog_CC"; then
29951  ac_ct_CC=$CC
29952  # Extract the first word of "gcc", so it can be a program name with args.
29953set dummy gcc; ac_word=$2
29954{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29955$as_echo_n "checking for $ac_word... " >&6; }
29956if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
29957  $as_echo_n "(cached) " >&6
29958else
29959  if test -n "$ac_ct_CC"; then
29960  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29961else
29962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29963for as_dir in $PATH
29964do
29965  IFS=$as_save_IFS
29966  test -z "$as_dir" && as_dir=.
29967  for ac_exec_ext in '' $ac_executable_extensions; do
29968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29969    ac_cv_prog_ac_ct_CC="gcc"
29970    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29971    break 2
29972  fi
29973done
29974done
29975IFS=$as_save_IFS
29976
29977fi
29978fi
29979ac_ct_CC=$ac_cv_prog_ac_ct_CC
29980if test -n "$ac_ct_CC"; then
29981  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
29982$as_echo "$ac_ct_CC" >&6; }
29983else
29984  { $as_echo "$as_me:$LINENO: result: no" >&5
29985$as_echo "no" >&6; }
29986fi
29987
29988  if test "x$ac_ct_CC" = x; then
29989    CC=""
29990  else
29991    case $cross_compiling:$ac_tool_warned in
29992yes:)
29993{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
29994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29995ac_tool_warned=yes ;;
29996esac
29997    CC=$ac_ct_CC
29998  fi
29999else
30000  CC="$ac_cv_prog_CC"
30001fi
30002
30003if test -z "$CC"; then
30004          if test -n "$ac_tool_prefix"; then
30005    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30006set dummy ${ac_tool_prefix}cc; ac_word=$2
30007{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30008$as_echo_n "checking for $ac_word... " >&6; }
30009if test "${ac_cv_prog_CC+set}" = set; then
30010  $as_echo_n "(cached) " >&6
30011else
30012  if test -n "$CC"; then
30013  ac_cv_prog_CC="$CC" # Let the user override the test.
30014else
30015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30016for as_dir in $PATH
30017do
30018  IFS=$as_save_IFS
30019  test -z "$as_dir" && as_dir=.
30020  for ac_exec_ext in '' $ac_executable_extensions; do
30021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30022    ac_cv_prog_CC="${ac_tool_prefix}cc"
30023    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30024    break 2
30025  fi
30026done
30027done
30028IFS=$as_save_IFS
30029
30030fi
30031fi
30032CC=$ac_cv_prog_CC
30033if test -n "$CC"; then
30034  { $as_echo "$as_me:$LINENO: result: $CC" >&5
30035$as_echo "$CC" >&6; }
30036else
30037  { $as_echo "$as_me:$LINENO: result: no" >&5
30038$as_echo "no" >&6; }
30039fi
30040
30041
30042  fi
30043fi
30044if test -z "$CC"; then
30045  # Extract the first word of "cc", so it can be a program name with args.
30046set dummy cc; ac_word=$2
30047{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30048$as_echo_n "checking for $ac_word... " >&6; }
30049if test "${ac_cv_prog_CC+set}" = set; then
30050  $as_echo_n "(cached) " >&6
30051else
30052  if test -n "$CC"; then
30053  ac_cv_prog_CC="$CC" # Let the user override the test.
30054else
30055  ac_prog_rejected=no
30056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30057for as_dir in $PATH
30058do
30059  IFS=$as_save_IFS
30060  test -z "$as_dir" && as_dir=.
30061  for ac_exec_ext in '' $ac_executable_extensions; do
30062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30063    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
30064       ac_prog_rejected=yes
30065       continue
30066     fi
30067    ac_cv_prog_CC="cc"
30068    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30069    break 2
30070  fi
30071done
30072done
30073IFS=$as_save_IFS
30074
30075if test $ac_prog_rejected = yes; then
30076  # We found a bogon in the path, so make sure we never use it.
30077  set dummy $ac_cv_prog_CC
30078  shift
30079  if test $# != 0; then
30080    # We chose a different compiler from the bogus one.
30081    # However, it has the same basename, so the bogon will be chosen
30082    # first if we set CC to just the basename; use the full file name.
30083    shift
30084    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
30085  fi
30086fi
30087fi
30088fi
30089CC=$ac_cv_prog_CC
30090if test -n "$CC"; then
30091  { $as_echo "$as_me:$LINENO: result: $CC" >&5
30092$as_echo "$CC" >&6; }
30093else
30094  { $as_echo "$as_me:$LINENO: result: no" >&5
30095$as_echo "no" >&6; }
30096fi
30097
30098
30099fi
30100if test -z "$CC"; then
30101  if test -n "$ac_tool_prefix"; then
30102  for ac_prog in cl.exe
30103  do
30104    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30105set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30106{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30107$as_echo_n "checking for $ac_word... " >&6; }
30108if test "${ac_cv_prog_CC+set}" = set; then
30109  $as_echo_n "(cached) " >&6
30110else
30111  if test -n "$CC"; then
30112  ac_cv_prog_CC="$CC" # Let the user override the test.
30113else
30114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30115for as_dir in $PATH
30116do
30117  IFS=$as_save_IFS
30118  test -z "$as_dir" && as_dir=.
30119  for ac_exec_ext in '' $ac_executable_extensions; do
30120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30121    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
30122    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30123    break 2
30124  fi
30125done
30126done
30127IFS=$as_save_IFS
30128
30129fi
30130fi
30131CC=$ac_cv_prog_CC
30132if test -n "$CC"; then
30133  { $as_echo "$as_me:$LINENO: result: $CC" >&5
30134$as_echo "$CC" >&6; }
30135else
30136  { $as_echo "$as_me:$LINENO: result: no" >&5
30137$as_echo "no" >&6; }
30138fi
30139
30140
30141    test -n "$CC" && break
30142  done
30143fi
30144if test -z "$CC"; then
30145  ac_ct_CC=$CC
30146  for ac_prog in cl.exe
30147do
30148  # Extract the first word of "$ac_prog", so it can be a program name with args.
30149set dummy $ac_prog; ac_word=$2
30150{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30151$as_echo_n "checking for $ac_word... " >&6; }
30152if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30153  $as_echo_n "(cached) " >&6
30154else
30155  if test -n "$ac_ct_CC"; then
30156  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30157else
30158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30159for as_dir in $PATH
30160do
30161  IFS=$as_save_IFS
30162  test -z "$as_dir" && as_dir=.
30163  for ac_exec_ext in '' $ac_executable_extensions; do
30164  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30165    ac_cv_prog_ac_ct_CC="$ac_prog"
30166    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30167    break 2
30168  fi
30169done
30170done
30171IFS=$as_save_IFS
30172
30173fi
30174fi
30175ac_ct_CC=$ac_cv_prog_ac_ct_CC
30176if test -n "$ac_ct_CC"; then
30177  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30178$as_echo "$ac_ct_CC" >&6; }
30179else
30180  { $as_echo "$as_me:$LINENO: result: no" >&5
30181$as_echo "no" >&6; }
30182fi
30183
30184
30185  test -n "$ac_ct_CC" && break
30186done
30187
30188  if test "x$ac_ct_CC" = x; then
30189    CC=""
30190  else
30191    case $cross_compiling:$ac_tool_warned in
30192yes:)
30193{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30195ac_tool_warned=yes ;;
30196esac
30197    CC=$ac_ct_CC
30198  fi
30199fi
30200
30201fi
30202
30203
30204test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30206{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
30207See \`config.log' for more details." >&5
30208$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
30209See \`config.log' for more details." >&2;}
30210   { (exit 1); exit 1; }; }; }
30211
30212# Provide some information about the compiler.
30213$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
30214set X $ac_compile
30215ac_compiler=$2
30216{ (ac_try="$ac_compiler --version >&5"
30217case "(($ac_try" in
30218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30219  *) ac_try_echo=$ac_try;;
30220esac
30221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30222$as_echo "$ac_try_echo") >&5
30223  (eval "$ac_compiler --version >&5") 2>&5
30224  ac_status=$?
30225  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226  (exit $ac_status); }
30227{ (ac_try="$ac_compiler -v >&5"
30228case "(($ac_try" in
30229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230  *) ac_try_echo=$ac_try;;
30231esac
30232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30233$as_echo "$ac_try_echo") >&5
30234  (eval "$ac_compiler -v >&5") 2>&5
30235  ac_status=$?
30236  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237  (exit $ac_status); }
30238{ (ac_try="$ac_compiler -V >&5"
30239case "(($ac_try" in
30240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30241  *) ac_try_echo=$ac_try;;
30242esac
30243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30244$as_echo "$ac_try_echo") >&5
30245  (eval "$ac_compiler -V >&5") 2>&5
30246  ac_status=$?
30247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248  (exit $ac_status); }
30249
30250{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30251$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
30252if test "${ac_cv_c_compiler_gnu+set}" = set; then
30253  $as_echo_n "(cached) " >&6
30254else
30255  cat >conftest.$ac_ext <<_ACEOF
30256/* confdefs.h.  */
30257_ACEOF
30258cat confdefs.h >>conftest.$ac_ext
30259cat >>conftest.$ac_ext <<_ACEOF
30260/* end confdefs.h.  */
30261
30262int
30263main ()
30264{
30265#ifndef __GNUC__
30266       choke me
30267#endif
30268
30269  ;
30270  return 0;
30271}
30272_ACEOF
30273rm -f conftest.$ac_objext
30274if { (ac_try="$ac_compile"
30275case "(($ac_try" in
30276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277  *) ac_try_echo=$ac_try;;
30278esac
30279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30280$as_echo "$ac_try_echo") >&5
30281  (eval "$ac_compile") 2>conftest.er1
30282  ac_status=$?
30283  grep -v '^ *+' conftest.er1 >conftest.err
30284  rm -f conftest.er1
30285  cat conftest.err >&5
30286  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287  (exit $ac_status); } && {
30288	 test -z "$ac_c_werror_flag" ||
30289	 test ! -s conftest.err
30290       } && test -s conftest.$ac_objext; then
30291  ac_compiler_gnu=yes
30292else
30293  $as_echo "$as_me: failed program was:" >&5
30294sed 's/^/| /' conftest.$ac_ext >&5
30295
30296	ac_compiler_gnu=no
30297fi
30298
30299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30300ac_cv_c_compiler_gnu=$ac_compiler_gnu
30301
30302fi
30303{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
30304$as_echo "$ac_cv_c_compiler_gnu" >&6; }
30305if test $ac_compiler_gnu = yes; then
30306  GCC=yes
30307else
30308  GCC=
30309fi
30310ac_test_CFLAGS=${CFLAGS+set}
30311ac_save_CFLAGS=$CFLAGS
30312{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
30313$as_echo_n "checking whether $CC accepts -g... " >&6; }
30314if test "${ac_cv_prog_cc_g+set}" = set; then
30315  $as_echo_n "(cached) " >&6
30316else
30317  ac_save_c_werror_flag=$ac_c_werror_flag
30318   ac_c_werror_flag=yes
30319   ac_cv_prog_cc_g=no
30320   CFLAGS="-g"
30321   cat >conftest.$ac_ext <<_ACEOF
30322/* confdefs.h.  */
30323_ACEOF
30324cat confdefs.h >>conftest.$ac_ext
30325cat >>conftest.$ac_ext <<_ACEOF
30326/* end confdefs.h.  */
30327
30328int
30329main ()
30330{
30331
30332  ;
30333  return 0;
30334}
30335_ACEOF
30336rm -f conftest.$ac_objext
30337if { (ac_try="$ac_compile"
30338case "(($ac_try" in
30339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30340  *) ac_try_echo=$ac_try;;
30341esac
30342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30343$as_echo "$ac_try_echo") >&5
30344  (eval "$ac_compile") 2>conftest.er1
30345  ac_status=$?
30346  grep -v '^ *+' conftest.er1 >conftest.err
30347  rm -f conftest.er1
30348  cat conftest.err >&5
30349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350  (exit $ac_status); } && {
30351	 test -z "$ac_c_werror_flag" ||
30352	 test ! -s conftest.err
30353       } && test -s conftest.$ac_objext; then
30354  ac_cv_prog_cc_g=yes
30355else
30356  $as_echo "$as_me: failed program was:" >&5
30357sed 's/^/| /' conftest.$ac_ext >&5
30358
30359	CFLAGS=""
30360      cat >conftest.$ac_ext <<_ACEOF
30361/* confdefs.h.  */
30362_ACEOF
30363cat confdefs.h >>conftest.$ac_ext
30364cat >>conftest.$ac_ext <<_ACEOF
30365/* end confdefs.h.  */
30366
30367int
30368main ()
30369{
30370
30371  ;
30372  return 0;
30373}
30374_ACEOF
30375rm -f conftest.$ac_objext
30376if { (ac_try="$ac_compile"
30377case "(($ac_try" in
30378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379  *) ac_try_echo=$ac_try;;
30380esac
30381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30382$as_echo "$ac_try_echo") >&5
30383  (eval "$ac_compile") 2>conftest.er1
30384  ac_status=$?
30385  grep -v '^ *+' conftest.er1 >conftest.err
30386  rm -f conftest.er1
30387  cat conftest.err >&5
30388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30389  (exit $ac_status); } && {
30390	 test -z "$ac_c_werror_flag" ||
30391	 test ! -s conftest.err
30392       } && test -s conftest.$ac_objext; then
30393  :
30394else
30395  $as_echo "$as_me: failed program was:" >&5
30396sed 's/^/| /' conftest.$ac_ext >&5
30397
30398	ac_c_werror_flag=$ac_save_c_werror_flag
30399	 CFLAGS="-g"
30400	 cat >conftest.$ac_ext <<_ACEOF
30401/* confdefs.h.  */
30402_ACEOF
30403cat confdefs.h >>conftest.$ac_ext
30404cat >>conftest.$ac_ext <<_ACEOF
30405/* end confdefs.h.  */
30406
30407int
30408main ()
30409{
30410
30411  ;
30412  return 0;
30413}
30414_ACEOF
30415rm -f conftest.$ac_objext
30416if { (ac_try="$ac_compile"
30417case "(($ac_try" in
30418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419  *) ac_try_echo=$ac_try;;
30420esac
30421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30422$as_echo "$ac_try_echo") >&5
30423  (eval "$ac_compile") 2>conftest.er1
30424  ac_status=$?
30425  grep -v '^ *+' conftest.er1 >conftest.err
30426  rm -f conftest.er1
30427  cat conftest.err >&5
30428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429  (exit $ac_status); } && {
30430	 test -z "$ac_c_werror_flag" ||
30431	 test ! -s conftest.err
30432       } && test -s conftest.$ac_objext; then
30433  ac_cv_prog_cc_g=yes
30434else
30435  $as_echo "$as_me: failed program was:" >&5
30436sed 's/^/| /' conftest.$ac_ext >&5
30437
30438
30439fi
30440
30441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30442fi
30443
30444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30445fi
30446
30447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30448   ac_c_werror_flag=$ac_save_c_werror_flag
30449fi
30450{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
30451$as_echo "$ac_cv_prog_cc_g" >&6; }
30452if test "$ac_test_CFLAGS" = set; then
30453  CFLAGS=$ac_save_CFLAGS
30454elif test $ac_cv_prog_cc_g = yes; then
30455  if test "$GCC" = yes; then
30456    CFLAGS="-g -O2"
30457  else
30458    CFLAGS="-g"
30459  fi
30460else
30461  if test "$GCC" = yes; then
30462    CFLAGS="-O2"
30463  else
30464    CFLAGS=
30465  fi
30466fi
30467{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
30468$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
30469if test "${ac_cv_prog_cc_c89+set}" = set; then
30470  $as_echo_n "(cached) " >&6
30471else
30472  ac_cv_prog_cc_c89=no
30473ac_save_CC=$CC
30474cat >conftest.$ac_ext <<_ACEOF
30475/* confdefs.h.  */
30476_ACEOF
30477cat confdefs.h >>conftest.$ac_ext
30478cat >>conftest.$ac_ext <<_ACEOF
30479/* end confdefs.h.  */
30480#include <stdarg.h>
30481#include <stdio.h>
30482#include <sys/types.h>
30483#include <sys/stat.h>
30484/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
30485struct buf { int x; };
30486FILE * (*rcsopen) (struct buf *, struct stat *, int);
30487static char *e (p, i)
30488     char **p;
30489     int i;
30490{
30491  return p[i];
30492}
30493static char *f (char * (*g) (char **, int), char **p, ...)
30494{
30495  char *s;
30496  va_list v;
30497  va_start (v,p);
30498  s = g (p, va_arg (v,int));
30499  va_end (v);
30500  return s;
30501}
30502
30503/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
30504   function prototypes and stuff, but not '\xHH' hex character constants.
30505   These don't provoke an error unfortunately, instead are silently treated
30506   as 'x'.  The following induces an error, until -std is added to get
30507   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
30508   array size at least.  It's necessary to write '\x00'==0 to get something
30509   that's true only with -std.  */
30510int osf4_cc_array ['\x00' == 0 ? 1 : -1];
30511
30512/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
30513   inside strings and character constants.  */
30514#define FOO(x) 'x'
30515int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
30516
30517int test (int i, double x);
30518struct s1 {int (*f) (int a);};
30519struct s2 {int (*f) (double a);};
30520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30521int argc;
30522char **argv;
30523int
30524main ()
30525{
30526return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
30527  ;
30528  return 0;
30529}
30530_ACEOF
30531for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
30532	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30533do
30534  CC="$ac_save_CC $ac_arg"
30535  rm -f conftest.$ac_objext
30536if { (ac_try="$ac_compile"
30537case "(($ac_try" in
30538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539  *) ac_try_echo=$ac_try;;
30540esac
30541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30542$as_echo "$ac_try_echo") >&5
30543  (eval "$ac_compile") 2>conftest.er1
30544  ac_status=$?
30545  grep -v '^ *+' conftest.er1 >conftest.err
30546  rm -f conftest.er1
30547  cat conftest.err >&5
30548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549  (exit $ac_status); } && {
30550	 test -z "$ac_c_werror_flag" ||
30551	 test ! -s conftest.err
30552       } && test -s conftest.$ac_objext; then
30553  ac_cv_prog_cc_c89=$ac_arg
30554else
30555  $as_echo "$as_me: failed program was:" >&5
30556sed 's/^/| /' conftest.$ac_ext >&5
30557
30558
30559fi
30560
30561rm -f core conftest.err conftest.$ac_objext
30562  test "x$ac_cv_prog_cc_c89" != "xno" && break
30563done
30564rm -f conftest.$ac_ext
30565CC=$ac_save_CC
30566
30567fi
30568# AC_CACHE_VAL
30569case "x$ac_cv_prog_cc_c89" in
30570  x)
30571    { $as_echo "$as_me:$LINENO: result: none needed" >&5
30572$as_echo "none needed" >&6; } ;;
30573  xno)
30574    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
30575$as_echo "unsupported" >&6; } ;;
30576  *)
30577    CC="$CC $ac_cv_prog_cc_c89"
30578    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
30579$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
30580esac
30581
30582
30583ac_ext=c
30584ac_cpp='$CPP $CPPFLAGS'
30585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30587ac_compiler_gnu=$ac_cv_c_compiler_gnu
30588
30589depcc="$CC"   am_compiler_list=
30590
30591{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
30592$as_echo_n "checking dependency style of $depcc... " >&6; }
30593if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
30594  $as_echo_n "(cached) " >&6
30595else
30596  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30597  # We make a subdir and do the tests there.  Otherwise we can end up
30598  # making bogus files that we don't know about and never remove.  For
30599  # instance it was reported that on HP-UX the gcc test will end up
30600  # making a dummy file named `D' -- because `-MD' means `put the output
30601  # in D'.
30602  mkdir conftest.dir
30603  # Copy depcomp to subdir because otherwise we won't find it if we're
30604  # using a relative directory.
30605  cp "$am_depcomp" conftest.dir
30606  cd conftest.dir
30607  # We will build objects and dependencies in a subdirectory because
30608  # it helps to detect inapplicable dependency modes.  For instance
30609  # both Tru64's cc and ICC support -MD to output dependencies as a
30610  # side effect of compilation, but ICC will put the dependencies in
30611  # the current directory while Tru64 will put them in the object
30612  # directory.
30613  mkdir sub
30614
30615  am_cv_CC_dependencies_compiler_type=none
30616  if test "$am_compiler_list" = ""; then
30617     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
30618  fi
30619  for depmode in $am_compiler_list; do
30620    # Setup a source with many dependencies, because some compilers
30621    # like to wrap large dependency lists on column 80 (with \), and
30622    # we should not choose a depcomp mode which is confused by this.
30623    #
30624    # We need to recreate these files for each test, as the compiler may
30625    # overwrite some of them when testing with obscure command lines.
30626    # This happens at least with the AIX C compiler.
30627    : > sub/conftest.c
30628    for i in 1 2 3 4 5 6; do
30629      echo '#include "conftst'$i'.h"' >> sub/conftest.c
30630      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
30631      # Solaris 8's {/usr,}/bin/sh.
30632      touch sub/conftst$i.h
30633    done
30634    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
30635
30636    case $depmode in
30637    nosideeffect)
30638      # after this tag, mechanisms are not by side-effect, so they'll
30639      # only be used when explicitly requested
30640      if test "x$enable_dependency_tracking" = xyes; then
30641	continue
30642      else
30643	break
30644      fi
30645      ;;
30646    none) break ;;
30647    esac
30648    # We check with `-c' and `-o' for the sake of the "dashmstdout"
30649    # mode.  It turns out that the SunPro C++ compiler does not properly
30650    # handle `-M -o', and we need to detect this.
30651    if depmode=$depmode \
30652       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
30653       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
30654       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
30655         >/dev/null 2>conftest.err &&
30656       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
30657       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
30658       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
30659       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
30660      # icc doesn't choke on unknown options, it will just issue warnings
30661      # or remarks (even with -Werror).  So we grep stderr for any message
30662      # that says an option was ignored or not supported.
30663      # When given -MP, icc 7.0 and 7.1 complain thusly:
30664      #   icc: Command line warning: ignoring option '-M'; no argument required
30665      # The diagnosis changed in icc 8.0:
30666      #   icc: Command line remark: option '-MP' not supported
30667      if (grep 'ignoring option' conftest.err ||
30668          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
30669        am_cv_CC_dependencies_compiler_type=$depmode
30670        break
30671      fi
30672    fi
30673  done
30674
30675  cd ..
30676  rm -rf conftest.dir
30677else
30678  am_cv_CC_dependencies_compiler_type=none
30679fi
30680
30681fi
30682{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
30683$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
30684CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
30685
30686 if
30687  test "x$enable_dependency_tracking" != xno \
30688  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
30689  am__fastdepCC_TRUE=
30690  am__fastdepCC_FALSE='#'
30691else
30692  am__fastdepCC_TRUE='#'
30693  am__fastdepCC_FALSE=
30694fi
30695
30696
30697ac_ext=cpp
30698ac_cpp='$CXXCPP $CPPFLAGS'
30699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30702
30703
30704# Checks if doxygen is avaiable
30705
30706
30707# Check whether --with-doxygen was given.
30708if test "${with_doxygen+set}" = set; then
30709  withval=$with_doxygen;
30710fi
30711
30712
30713DOXYGEN=no
30714if test "x$with_doxygen" != "xno"; then
30715  # Extract the first word of "doxygen", so it can be a program name with args.
30716set dummy doxygen; ac_word=$2
30717{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30718$as_echo_n "checking for $ac_word... " >&6; }
30719if test "${ac_cv_path_DOXYGEN+set}" = set; then
30720  $as_echo_n "(cached) " >&6
30721else
30722  case $DOXYGEN in
30723  [\\/]* | ?:[\\/]*)
30724  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
30725  ;;
30726  *)
30727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30728for as_dir in $PATH
30729do
30730  IFS=$as_save_IFS
30731  test -z "$as_dir" && as_dir=.
30732  for ac_exec_ext in '' $ac_executable_extensions; do
30733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30734    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
30735    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30736    break 2
30737  fi
30738done
30739done
30740IFS=$as_save_IFS
30741
30742  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
30743  ;;
30744esac
30745fi
30746DOXYGEN=$ac_cv_path_DOXYGEN
30747if test -n "$DOXYGEN"; then
30748  { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5
30749$as_echo "$DOXYGEN" >&6; }
30750else
30751  { $as_echo "$as_me:$LINENO: result: no" >&5
30752$as_echo "no" >&6; }
30753fi
30754
30755
30756fi
30757
30758 if test x$DOXYGEN != xno; then
30759  HAVE_DOXYGEN_TRUE=
30760  HAVE_DOXYGEN_FALSE='#'
30761else
30762  HAVE_DOXYGEN_TRUE='#'
30763  HAVE_DOXYGEN_FALSE=
30764fi
30765
30766
30767
30768# Checks if graphviz is available
30769# Extract the first word of "dot", so it can be a program name with args.
30770set dummy dot; ac_word=$2
30771{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30772$as_echo_n "checking for $ac_word... " >&6; }
30773if test "${ac_cv_prog_HAVE_GRAPHVIZ+set}" = set; then
30774  $as_echo_n "(cached) " >&6
30775else
30776  if test -n "$HAVE_GRAPHVIZ"; then
30777  ac_cv_prog_HAVE_GRAPHVIZ="$HAVE_GRAPHVIZ" # Let the user override the test.
30778else
30779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30780for as_dir in $PATH
30781do
30782  IFS=$as_save_IFS
30783  test -z "$as_dir" && as_dir=.
30784  for ac_exec_ext in '' $ac_executable_extensions; do
30785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30786    ac_cv_prog_HAVE_GRAPHVIZ="YES"
30787    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30788    break 2
30789  fi
30790done
30791done
30792IFS=$as_save_IFS
30793
30794  test -z "$ac_cv_prog_HAVE_GRAPHVIZ" && ac_cv_prog_HAVE_GRAPHVIZ="NO"
30795fi
30796fi
30797HAVE_GRAPHVIZ=$ac_cv_prog_HAVE_GRAPHVIZ
30798if test -n "$HAVE_GRAPHVIZ"; then
30799  { $as_echo "$as_me:$LINENO: result: $HAVE_GRAPHVIZ" >&5
30800$as_echo "$HAVE_GRAPHVIZ" >&6; }
30801else
30802  { $as_echo "$as_me:$LINENO: result: no" >&5
30803$as_echo "no" >&6; }
30804fi
30805
30806
30807# Extract the first word of "dot", so it can be a program name with args.
30808set dummy dot; ac_word=$2
30809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30810$as_echo_n "checking for $ac_word... " >&6; }
30811if test "${ac_cv_path_DOT+set}" = set; then
30812  $as_echo_n "(cached) " >&6
30813else
30814  case $DOT in
30815  [\\/]* | ?:[\\/]*)
30816  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
30817  ;;
30818  *)
30819  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30820for as_dir in $PATH
30821do
30822  IFS=$as_save_IFS
30823  test -z "$as_dir" && as_dir=.
30824  for ac_exec_ext in '' $ac_executable_extensions; do
30825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30826    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
30827    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30828    break 2
30829  fi
30830done
30831done
30832IFS=$as_save_IFS
30833
30834  ;;
30835esac
30836fi
30837DOT=$ac_cv_path_DOT
30838if test -n "$DOT"; then
30839  { $as_echo "$as_me:$LINENO: result: $DOT" >&5
30840$as_echo "$DOT" >&6; }
30841else
30842  { $as_echo "$as_me:$LINENO: result: no" >&5
30843$as_echo "no" >&6; }
30844fi
30845
30846
30847DOT=`dirname $DOT`
30848
30849
30850# Extract the first word of "perl", so it can be a program name with args.
30851set dummy perl; ac_word=$2
30852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30853$as_echo_n "checking for $ac_word... " >&6; }
30854if test "${ac_cv_path_PERL+set}" = set; then
30855  $as_echo_n "(cached) " >&6
30856else
30857  case $PERL in
30858  [\\/]* | ?:[\\/]*)
30859  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30860  ;;
30861  *)
30862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30863for as_dir in $PATH
30864do
30865  IFS=$as_save_IFS
30866  test -z "$as_dir" && as_dir=.
30867  for ac_exec_ext in '' $ac_executable_extensions; do
30868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30869    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
30870    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30871    break 2
30872  fi
30873done
30874done
30875IFS=$as_save_IFS
30876
30877  ;;
30878esac
30879fi
30880PERL=$ac_cv_path_PERL
30881if test -n "$PERL"; then
30882  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
30883$as_echo "$PERL" >&6; }
30884else
30885  { $as_echo "$as_me:$LINENO: result: no" >&5
30886$as_echo "no" >&6; }
30887fi
30888
30889
30890
30891
30892# Checks if xsltproc is available
30893# Extract the first word of "xsltproc", so it can be a program name with args.
30894set dummy xsltproc; ac_word=$2
30895{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30896$as_echo_n "checking for $ac_word... " >&6; }
30897if test "${ac_cv_path_XSLTPROC+set}" = set; then
30898  $as_echo_n "(cached) " >&6
30899else
30900  case $XSLTPROC in
30901  [\\/]* | ?:[\\/]*)
30902  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
30903  ;;
30904  *)
30905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30906for as_dir in $PATH
30907do
30908  IFS=$as_save_IFS
30909  test -z "$as_dir" && as_dir=.
30910  for ac_exec_ext in '' $ac_executable_extensions; do
30911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30912    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
30913    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30914    break 2
30915  fi
30916done
30917done
30918IFS=$as_save_IFS
30919
30920  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
30921  ;;
30922esac
30923fi
30924XSLTPROC=$ac_cv_path_XSLTPROC
30925if test -n "$XSLTPROC"; then
30926  { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
30927$as_echo "$XSLTPROC" >&6; }
30928else
30929  { $as_echo "$as_me:$LINENO: result: no" >&5
30930$as_echo "no" >&6; }
30931fi
30932
30933
30934 if test x$XSLTPROC != xno; then
30935  HAVE_XSLTPROC_TRUE=
30936  HAVE_XSLTPROC_FALSE='#'
30937else
30938  HAVE_XSLTPROC_TRUE='#'
30939  HAVE_XSLTPROC_FALSE=
30940fi
30941
30942
30943
30944# Checks if docbook-style-xsl is available
30945{ $as_echo "$as_me:$LINENO: checking for /usr/share/sgml/docbook/xsl-stylesheets/html/tldp-html.xsl" >&5
30946$as_echo_n "checking for /usr/share/sgml/docbook/xsl-stylesheets/html/tldp-html.xsl... " >&6; }
30947if test "${ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_tldp_html_xsl+set}" = set; then
30948  $as_echo_n "(cached) " >&6
30949else
30950  test "$cross_compiling" = yes &&
30951  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30952$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30953   { (exit 1); exit 1; }; }
30954if test -r "/usr/share/sgml/docbook/xsl-stylesheets/html/tldp-html.xsl"; then
30955  ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_tldp_html_xsl=yes
30956else
30957  ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_tldp_html_xsl=no
30958fi
30959fi
30960{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_tldp_html_xsl" >&5
30961$as_echo "$ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_tldp_html_xsl" >&6; }
30962if test "x$ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_tldp_html_xsl" = x""yes; then
30963  DOCBOOK_XSL=/usr/share/sgml/docbook/xsl-stylesheets/html/tldp-html.xsl
30964else
30965  { $as_echo "$as_me:$LINENO: checking for /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl" >&5
30966$as_echo_n "checking for /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl... " >&6; }
30967if test "${ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_docbook_xsl+set}" = set; then
30968  $as_echo_n "(cached) " >&6
30969else
30970  test "$cross_compiling" = yes &&
30971  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30972$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30973   { (exit 1); exit 1; }; }
30974if test -r "/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl"; then
30975  ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_docbook_xsl=yes
30976else
30977  ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_docbook_xsl=no
30978fi
30979fi
30980{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_docbook_xsl" >&5
30981$as_echo "$ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_docbook_xsl" >&6; }
30982if test "x$ac_cv_file__usr_share_sgml_docbook_xsl_stylesheets_html_docbook_xsl" = x""yes; then
30983  DOCBOOK_XSL=/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl
30984else
30985  { $as_echo "$as_me:$LINENO: checking for /usr/share/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl" >&5
30986$as_echo_n "checking for /usr/share/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl... " >&6; }
30987if test "${ac_cv_file__usr_share_xml_docbook_stylesheet_nwalsh_current_html_docbook_xsl+set}" = set; then
30988  $as_echo_n "(cached) " >&6
30989else
30990  test "$cross_compiling" = yes &&
30991  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30992$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30993   { (exit 1); exit 1; }; }
30994if test -r "/usr/share/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl"; then
30995  ac_cv_file__usr_share_xml_docbook_stylesheet_nwalsh_current_html_docbook_xsl=yes
30996else
30997  ac_cv_file__usr_share_xml_docbook_stylesheet_nwalsh_current_html_docbook_xsl=no
30998fi
30999fi
31000{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_xml_docbook_stylesheet_nwalsh_current_html_docbook_xsl" >&5
31001$as_echo "$ac_cv_file__usr_share_xml_docbook_stylesheet_nwalsh_current_html_docbook_xsl" >&6; }
31002if test "x$ac_cv_file__usr_share_xml_docbook_stylesheet_nwalsh_current_html_docbook_xsl" = x""yes; then
31003  DOCBOOK_XSL=/usr/share/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl
31004else
31005  DOCBOOK_XSL=no
31006
31007fi
31008
31009
31010fi
31011
31012
31013fi
31014
31015
31016
31017
31018 if test x$DOCBOOK_XSL != xno; then
31019  HAVE_DOCBOOK_TRUE=
31020  HAVE_DOCBOOK_FALSE='#'
31021else
31022  HAVE_DOCBOOK_TRUE='#'
31023  HAVE_DOCBOOK_FALSE=
31024fi
31025
31026 if test x$XSLTPROC != xno -a x$DOCBOOK_XSL != xno; then
31027  BUILD_MANUAL_TRUE=
31028  BUILD_MANUAL_FALSE='#'
31029else
31030  BUILD_MANUAL_TRUE='#'
31031  BUILD_MANUAL_FALSE=
31032fi
31033
31034
31035# Check intltool
31036
31037
31038if test -n "0.33"; then
31039    { $as_echo "$as_me:$LINENO: checking for intltool >= 0.33" >&5
31040$as_echo_n "checking for intltool >= 0.33... " >&6; }
31041
31042    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.33 | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
31043    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${ac_aux_dir}/intltool-update.in`
31044
31045    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
31046
31047
31048    if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
31049	{ $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
31050$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
31051    else
31052	{ $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool 0.33 or later." >&5
31053$as_echo "$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool 0.33 or later." >&6; }
31054	exit 1
31055    fi
31056fi
31057
31058  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31059INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31060     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31061     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31062      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
31063     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31064   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31065    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31066INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31067       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31068      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31069      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
31070      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31071      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31072    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31073  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31074    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
31075
31076
31077
31078
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094# Use the tools built into the package, not the ones that are installed.
31095
31096INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
31097INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
31098INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
31099
31100
31101
31102
31103
31104# Extract the first word of "perl", so it can be a program name with args.
31105set dummy perl; ac_word=$2
31106{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31107$as_echo_n "checking for $ac_word... " >&6; }
31108if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
31109  $as_echo_n "(cached) " >&6
31110else
31111  case $INTLTOOL_PERL in
31112  [\\/]* | ?:[\\/]*)
31113  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
31114  ;;
31115  *)
31116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31117for as_dir in $PATH
31118do
31119  IFS=$as_save_IFS
31120  test -z "$as_dir" && as_dir=.
31121  for ac_exec_ext in '' $ac_executable_extensions; do
31122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31123    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
31124    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31125    break 2
31126  fi
31127done
31128done
31129IFS=$as_save_IFS
31130
31131  ;;
31132esac
31133fi
31134INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
31135if test -n "$INTLTOOL_PERL"; then
31136  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
31137$as_echo "$INTLTOOL_PERL" >&6; }
31138else
31139  { $as_echo "$as_me:$LINENO: result: no" >&5
31140$as_echo "no" >&6; }
31141fi
31142
31143
31144if test -z "$INTLTOOL_PERL"; then
31145   { { $as_echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
31146$as_echo "$as_me: error: perl not found; required for intltool" >&2;}
31147   { (exit 1); exit 1; }; }
31148fi
31149if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
31150   { { $as_echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
31151$as_echo "$as_me: error: perl 5.x required for intltool" >&2;}
31152   { (exit 1); exit 1; }; }
31153fi
31154if test "xno-xml" != "xno-xml"; then
31155   { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
31156$as_echo_n "checking for XML::Parser... " >&6; }
31157   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
31158       { $as_echo "$as_me:$LINENO: result: ok" >&5
31159$as_echo "ok" >&6; }
31160   else
31161       { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
31162$as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
31163   { (exit 1); exit 1; }; }
31164   fi
31165fi
31166
31167# Extract the first word of "iconv", so it can be a program name with args.
31168set dummy iconv; ac_word=$2
31169{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31170$as_echo_n "checking for $ac_word... " >&6; }
31171if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
31172  $as_echo_n "(cached) " >&6
31173else
31174  case $INTLTOOL_ICONV in
31175  [\\/]* | ?:[\\/]*)
31176  ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
31177  ;;
31178  *)
31179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31180for as_dir in $PATH
31181do
31182  IFS=$as_save_IFS
31183  test -z "$as_dir" && as_dir=.
31184  for ac_exec_ext in '' $ac_executable_extensions; do
31185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31186    ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
31187    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31188    break 2
31189  fi
31190done
31191done
31192IFS=$as_save_IFS
31193
31194  test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
31195  ;;
31196esac
31197fi
31198INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
31199if test -n "$INTLTOOL_ICONV"; then
31200  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
31201$as_echo "$INTLTOOL_ICONV" >&6; }
31202else
31203  { $as_echo "$as_me:$LINENO: result: no" >&5
31204$as_echo "no" >&6; }
31205fi
31206
31207
31208# Extract the first word of "msgfmt", so it can be a program name with args.
31209set dummy msgfmt; ac_word=$2
31210{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31211$as_echo_n "checking for $ac_word... " >&6; }
31212if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
31213  $as_echo_n "(cached) " >&6
31214else
31215  case $INTLTOOL_MSGFMT in
31216  [\\/]* | ?:[\\/]*)
31217  ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
31218  ;;
31219  *)
31220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31221for as_dir in $PATH
31222do
31223  IFS=$as_save_IFS
31224  test -z "$as_dir" && as_dir=.
31225  for ac_exec_ext in '' $ac_executable_extensions; do
31226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31227    ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
31228    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31229    break 2
31230  fi
31231done
31232done
31233IFS=$as_save_IFS
31234
31235  test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
31236  ;;
31237esac
31238fi
31239INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
31240if test -n "$INTLTOOL_MSGFMT"; then
31241  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
31242$as_echo "$INTLTOOL_MSGFMT" >&6; }
31243else
31244  { $as_echo "$as_me:$LINENO: result: no" >&5
31245$as_echo "no" >&6; }
31246fi
31247
31248
31249# Extract the first word of "msgmerge", so it can be a program name with args.
31250set dummy msgmerge; ac_word=$2
31251{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31252$as_echo_n "checking for $ac_word... " >&6; }
31253if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
31254  $as_echo_n "(cached) " >&6
31255else
31256  case $INTLTOOL_MSGMERGE in
31257  [\\/]* | ?:[\\/]*)
31258  ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
31259  ;;
31260  *)
31261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31262for as_dir in $PATH
31263do
31264  IFS=$as_save_IFS
31265  test -z "$as_dir" && as_dir=.
31266  for ac_exec_ext in '' $ac_executable_extensions; do
31267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31268    ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
31269    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31270    break 2
31271  fi
31272done
31273done
31274IFS=$as_save_IFS
31275
31276  test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
31277  ;;
31278esac
31279fi
31280INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
31281if test -n "$INTLTOOL_MSGMERGE"; then
31282  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
31283$as_echo "$INTLTOOL_MSGMERGE" >&6; }
31284else
31285  { $as_echo "$as_me:$LINENO: result: no" >&5
31286$as_echo "no" >&6; }
31287fi
31288
31289
31290# Extract the first word of "xgettext", so it can be a program name with args.
31291set dummy xgettext; ac_word=$2
31292{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31293$as_echo_n "checking for $ac_word... " >&6; }
31294if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
31295  $as_echo_n "(cached) " >&6
31296else
31297  case $INTLTOOL_XGETTEXT in
31298  [\\/]* | ?:[\\/]*)
31299  ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
31300  ;;
31301  *)
31302  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31303for as_dir in $PATH
31304do
31305  IFS=$as_save_IFS
31306  test -z "$as_dir" && as_dir=.
31307  for ac_exec_ext in '' $ac_executable_extensions; do
31308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31309    ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
31310    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31311    break 2
31312  fi
31313done
31314done
31315IFS=$as_save_IFS
31316
31317  test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
31318  ;;
31319esac
31320fi
31321INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
31322if test -n "$INTLTOOL_XGETTEXT"; then
31323  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
31324$as_echo "$INTLTOOL_XGETTEXT" >&6; }
31325else
31326  { $as_echo "$as_me:$LINENO: result: no" >&5
31327$as_echo "no" >&6; }
31328fi
31329
31330
31331
31332# Remove file type tags (using []) from po/POTFILES.
31333
31334
31335
31336
31337
31338
31339############################################################################
31340## Take this bit from AM_PROG_MKDIR_P to set mkdir_p for automake 1.4 users
31341############################################################################
31342if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
31343  # Keeping the `.' argument allows $(mkdir_p) to be used without
31344  # argument.  Indeed, we sometimes output rules like
31345  #   $(mkdir_p) $(somedir)
31346  # where $(somedir) is conditionally defined.
31347  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
31348  # expensive solution, as it forces Make to start a sub-shell.)
31349  mkdir_p='mkdir -p -- .'
31350else
31351  # On NextStep and OpenStep, the `mkdir' command does not
31352  # recognize any option.  It will interpret all options as
31353  # directories to create, and then abort because `.' already
31354  # exists.
31355  for d in ./-p ./--version;
31356  do
31357    test -d $d && rmdir $d
31358  done
31359  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
31360  if test -f "$ac_aux_dir/mkinstalldirs"; then
31361    mkdir_p='$(mkinstalldirs)'
31362  else
31363    mkdir_p='$(install_sh) -d'
31364  fi
31365fi
31366
31367
31368
31369# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
31370
31371ac_config_commands="$ac_config_commands intltool"
31372
31373
31374
31375
31376# Checks for libraries.
31377
31378{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31379$as_echo_n "checking for ANSI C header files... " >&6; }
31380if test "${ac_cv_header_stdc+set}" = set; then
31381  $as_echo_n "(cached) " >&6
31382else
31383  cat >conftest.$ac_ext <<_ACEOF
31384/* confdefs.h.  */
31385_ACEOF
31386cat confdefs.h >>conftest.$ac_ext
31387cat >>conftest.$ac_ext <<_ACEOF
31388/* end confdefs.h.  */
31389#include <stdlib.h>
31390#include <stdarg.h>
31391#include <string.h>
31392#include <float.h>
31393
31394int
31395main ()
31396{
31397
31398  ;
31399  return 0;
31400}
31401_ACEOF
31402rm -f conftest.$ac_objext
31403if { (ac_try="$ac_compile"
31404case "(($ac_try" in
31405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406  *) ac_try_echo=$ac_try;;
31407esac
31408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31409$as_echo "$ac_try_echo") >&5
31410  (eval "$ac_compile") 2>conftest.er1
31411  ac_status=$?
31412  grep -v '^ *+' conftest.er1 >conftest.err
31413  rm -f conftest.er1
31414  cat conftest.err >&5
31415  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416  (exit $ac_status); } && {
31417	 test -z "$ac_cxx_werror_flag" ||
31418	 test ! -s conftest.err
31419       } && test -s conftest.$ac_objext; then
31420  ac_cv_header_stdc=yes
31421else
31422  $as_echo "$as_me: failed program was:" >&5
31423sed 's/^/| /' conftest.$ac_ext >&5
31424
31425	ac_cv_header_stdc=no
31426fi
31427
31428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31429
31430if test $ac_cv_header_stdc = yes; then
31431  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31432  cat >conftest.$ac_ext <<_ACEOF
31433/* confdefs.h.  */
31434_ACEOF
31435cat confdefs.h >>conftest.$ac_ext
31436cat >>conftest.$ac_ext <<_ACEOF
31437/* end confdefs.h.  */
31438#include <string.h>
31439
31440_ACEOF
31441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31442  $EGREP "memchr" >/dev/null 2>&1; then
31443  :
31444else
31445  ac_cv_header_stdc=no
31446fi
31447rm -f conftest*
31448
31449fi
31450
31451if test $ac_cv_header_stdc = yes; then
31452  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31453  cat >conftest.$ac_ext <<_ACEOF
31454/* confdefs.h.  */
31455_ACEOF
31456cat confdefs.h >>conftest.$ac_ext
31457cat >>conftest.$ac_ext <<_ACEOF
31458/* end confdefs.h.  */
31459#include <stdlib.h>
31460
31461_ACEOF
31462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31463  $EGREP "free" >/dev/null 2>&1; then
31464  :
31465else
31466  ac_cv_header_stdc=no
31467fi
31468rm -f conftest*
31469
31470fi
31471
31472if test $ac_cv_header_stdc = yes; then
31473  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31474  if test "$cross_compiling" = yes; then
31475  :
31476else
31477  cat >conftest.$ac_ext <<_ACEOF
31478/* confdefs.h.  */
31479_ACEOF
31480cat confdefs.h >>conftest.$ac_ext
31481cat >>conftest.$ac_ext <<_ACEOF
31482/* end confdefs.h.  */
31483#include <ctype.h>
31484#include <stdlib.h>
31485#if ((' ' & 0x0FF) == 0x020)
31486# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31487# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31488#else
31489# define ISLOWER(c) \
31490		   (('a' <= (c) && (c) <= 'i') \
31491		     || ('j' <= (c) && (c) <= 'r') \
31492		     || ('s' <= (c) && (c) <= 'z'))
31493# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31494#endif
31495
31496#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31497int
31498main ()
31499{
31500  int i;
31501  for (i = 0; i < 256; i++)
31502    if (XOR (islower (i), ISLOWER (i))
31503	|| toupper (i) != TOUPPER (i))
31504      return 2;
31505  return 0;
31506}
31507_ACEOF
31508rm -f conftest$ac_exeext
31509if { (ac_try="$ac_link"
31510case "(($ac_try" in
31511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512  *) ac_try_echo=$ac_try;;
31513esac
31514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31515$as_echo "$ac_try_echo") >&5
31516  (eval "$ac_link") 2>&5
31517  ac_status=$?
31518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31520  { (case "(($ac_try" in
31521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31522  *) ac_try_echo=$ac_try;;
31523esac
31524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31525$as_echo "$ac_try_echo") >&5
31526  (eval "$ac_try") 2>&5
31527  ac_status=$?
31528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529  (exit $ac_status); }; }; then
31530  :
31531else
31532  $as_echo "$as_me: program exited with status $ac_status" >&5
31533$as_echo "$as_me: failed program was:" >&5
31534sed 's/^/| /' conftest.$ac_ext >&5
31535
31536( exit $ac_status )
31537ac_cv_header_stdc=no
31538fi
31539rm -rf conftest.dSYM
31540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31541fi
31542
31543
31544fi
31545fi
31546{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31547$as_echo "$ac_cv_header_stdc" >&6; }
31548if test $ac_cv_header_stdc = yes; then
31549
31550cat >>confdefs.h <<\_ACEOF
31551#define STDC_HEADERS 1
31552_ACEOF
31553
31554fi
31555
31556{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31557$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
31558if test "${ac_cv_header_time+set}" = set; then
31559  $as_echo_n "(cached) " >&6
31560else
31561  cat >conftest.$ac_ext <<_ACEOF
31562/* confdefs.h.  */
31563_ACEOF
31564cat confdefs.h >>conftest.$ac_ext
31565cat >>conftest.$ac_ext <<_ACEOF
31566/* end confdefs.h.  */
31567#include <sys/types.h>
31568#include <sys/time.h>
31569#include <time.h>
31570
31571int
31572main ()
31573{
31574if ((struct tm *) 0)
31575return 0;
31576  ;
31577  return 0;
31578}
31579_ACEOF
31580rm -f conftest.$ac_objext
31581if { (ac_try="$ac_compile"
31582case "(($ac_try" in
31583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31584  *) ac_try_echo=$ac_try;;
31585esac
31586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31587$as_echo "$ac_try_echo") >&5
31588  (eval "$ac_compile") 2>conftest.er1
31589  ac_status=$?
31590  grep -v '^ *+' conftest.er1 >conftest.err
31591  rm -f conftest.er1
31592  cat conftest.err >&5
31593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594  (exit $ac_status); } && {
31595	 test -z "$ac_cxx_werror_flag" ||
31596	 test ! -s conftest.err
31597       } && test -s conftest.$ac_objext; then
31598  ac_cv_header_time=yes
31599else
31600  $as_echo "$as_me: failed program was:" >&5
31601sed 's/^/| /' conftest.$ac_ext >&5
31602
31603	ac_cv_header_time=no
31604fi
31605
31606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31607fi
31608{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31609$as_echo "$ac_cv_header_time" >&6; }
31610if test $ac_cv_header_time = yes; then
31611
31612cat >>confdefs.h <<\_ACEOF
31613#define TIME_WITH_SYS_TIME 1
31614_ACEOF
31615
31616fi
31617
31618
31619
31620
31621
31622
31623
31624for ac_header in langinfo.h libintl.h string.h dirent.h hash_map ext/hash_map
31625do
31626as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31628  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31629$as_echo_n "checking for $ac_header... " >&6; }
31630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31631  $as_echo_n "(cached) " >&6
31632fi
31633ac_res=`eval 'as_val=${'$as_ac_Header'}
31634		 $as_echo "$as_val"'`
31635	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31636$as_echo "$ac_res" >&6; }
31637else
31638  # Is the header compilable?
31639{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31640$as_echo_n "checking $ac_header usability... " >&6; }
31641cat >conftest.$ac_ext <<_ACEOF
31642/* confdefs.h.  */
31643_ACEOF
31644cat confdefs.h >>conftest.$ac_ext
31645cat >>conftest.$ac_ext <<_ACEOF
31646/* end confdefs.h.  */
31647$ac_includes_default
31648#include <$ac_header>
31649_ACEOF
31650rm -f conftest.$ac_objext
31651if { (ac_try="$ac_compile"
31652case "(($ac_try" in
31653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654  *) ac_try_echo=$ac_try;;
31655esac
31656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31657$as_echo "$ac_try_echo") >&5
31658  (eval "$ac_compile") 2>conftest.er1
31659  ac_status=$?
31660  grep -v '^ *+' conftest.er1 >conftest.err
31661  rm -f conftest.er1
31662  cat conftest.err >&5
31663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664  (exit $ac_status); } && {
31665	 test -z "$ac_cxx_werror_flag" ||
31666	 test ! -s conftest.err
31667       } && test -s conftest.$ac_objext; then
31668  ac_header_compiler=yes
31669else
31670  $as_echo "$as_me: failed program was:" >&5
31671sed 's/^/| /' conftest.$ac_ext >&5
31672
31673	ac_header_compiler=no
31674fi
31675
31676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31677{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31678$as_echo "$ac_header_compiler" >&6; }
31679
31680# Is the header present?
31681{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31682$as_echo_n "checking $ac_header presence... " >&6; }
31683cat >conftest.$ac_ext <<_ACEOF
31684/* confdefs.h.  */
31685_ACEOF
31686cat confdefs.h >>conftest.$ac_ext
31687cat >>conftest.$ac_ext <<_ACEOF
31688/* end confdefs.h.  */
31689#include <$ac_header>
31690_ACEOF
31691if { (ac_try="$ac_cpp conftest.$ac_ext"
31692case "(($ac_try" in
31693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694  *) ac_try_echo=$ac_try;;
31695esac
31696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31697$as_echo "$ac_try_echo") >&5
31698  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31699  ac_status=$?
31700  grep -v '^ *+' conftest.er1 >conftest.err
31701  rm -f conftest.er1
31702  cat conftest.err >&5
31703  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704  (exit $ac_status); } >/dev/null && {
31705	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31706	 test ! -s conftest.err
31707       }; then
31708  ac_header_preproc=yes
31709else
31710  $as_echo "$as_me: failed program was:" >&5
31711sed 's/^/| /' conftest.$ac_ext >&5
31712
31713  ac_header_preproc=no
31714fi
31715
31716rm -f conftest.err conftest.$ac_ext
31717{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31718$as_echo "$ac_header_preproc" >&6; }
31719
31720# So?  What about this header?
31721case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31722  yes:no: )
31723    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31724$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31725    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31726$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31727    ac_header_preproc=yes
31728    ;;
31729  no:yes:* )
31730    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31731$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31732    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31733$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31734    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31735$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31736    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31737$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31738    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31739$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31740    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31741$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31742    ( cat <<\_ASBOX
31743## ------------------------------------ ##
31744## Report this to suzhe@tsinghua.org.cn ##
31745## ------------------------------------ ##
31746_ASBOX
31747     ) | sed "s/^/$as_me: WARNING:     /" >&2
31748    ;;
31749esac
31750{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31751$as_echo_n "checking for $ac_header... " >&6; }
31752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31753  $as_echo_n "(cached) " >&6
31754else
31755  eval "$as_ac_Header=\$ac_header_preproc"
31756fi
31757ac_res=`eval 'as_val=${'$as_ac_Header'}
31758		 $as_echo "$as_val"'`
31759	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31760$as_echo "$ac_res" >&6; }
31761
31762fi
31763as_val=`eval 'as_val=${'$as_ac_Header'}
31764		 $as_echo "$as_val"'`
31765   if test "x$as_val" = x""yes; then
31766  cat >>confdefs.h <<_ACEOF
31767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31768_ACEOF
31769
31770fi
31771
31772done
31773
31774
31775# Checks for typedefs, structures, and compiler characteristics.
31776{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31777$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
31778if test "${ac_cv_c_const+set}" = set; then
31779  $as_echo_n "(cached) " >&6
31780else
31781  cat >conftest.$ac_ext <<_ACEOF
31782/* confdefs.h.  */
31783_ACEOF
31784cat confdefs.h >>conftest.$ac_ext
31785cat >>conftest.$ac_ext <<_ACEOF
31786/* end confdefs.h.  */
31787
31788int
31789main ()
31790{
31791/* FIXME: Include the comments suggested by Paul. */
31792#ifndef __cplusplus
31793  /* Ultrix mips cc rejects this.  */
31794  typedef int charset[2];
31795  const charset cs;
31796  /* SunOS 4.1.1 cc rejects this.  */
31797  char const *const *pcpcc;
31798  char **ppc;
31799  /* NEC SVR4.0.2 mips cc rejects this.  */
31800  struct point {int x, y;};
31801  static struct point const zero = {0,0};
31802  /* AIX XL C 1.02.0.0 rejects this.
31803     It does not let you subtract one const X* pointer from another in
31804     an arm of an if-expression whose if-part is not a constant
31805     expression */
31806  const char *g = "string";
31807  pcpcc = &g + (g ? g-g : 0);
31808  /* HPUX 7.0 cc rejects these. */
31809  ++pcpcc;
31810  ppc = (char**) pcpcc;
31811  pcpcc = (char const *const *) ppc;
31812  { /* SCO 3.2v4 cc rejects this.  */
31813    char *t;
31814    char const *s = 0 ? (char *) 0 : (char const *) 0;
31815
31816    *t++ = 0;
31817    if (s) return 0;
31818  }
31819  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
31820    int x[] = {25, 17};
31821    const int *foo = &x[0];
31822    ++foo;
31823  }
31824  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31825    typedef const int *iptr;
31826    iptr p = 0;
31827    ++p;
31828  }
31829  { /* AIX XL C 1.02.0.0 rejects this saying
31830       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31831    struct s { int j; const int *ap[3]; };
31832    struct s *b; b->j = 5;
31833  }
31834  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31835    const int foo = 10;
31836    if (!foo) return 0;
31837  }
31838  return !cs[0] && !zero.x;
31839#endif
31840
31841  ;
31842  return 0;
31843}
31844_ACEOF
31845rm -f conftest.$ac_objext
31846if { (ac_try="$ac_compile"
31847case "(($ac_try" in
31848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31849  *) ac_try_echo=$ac_try;;
31850esac
31851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31852$as_echo "$ac_try_echo") >&5
31853  (eval "$ac_compile") 2>conftest.er1
31854  ac_status=$?
31855  grep -v '^ *+' conftest.er1 >conftest.err
31856  rm -f conftest.er1
31857  cat conftest.err >&5
31858  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859  (exit $ac_status); } && {
31860	 test -z "$ac_cxx_werror_flag" ||
31861	 test ! -s conftest.err
31862       } && test -s conftest.$ac_objext; then
31863  ac_cv_c_const=yes
31864else
31865  $as_echo "$as_me: failed program was:" >&5
31866sed 's/^/| /' conftest.$ac_ext >&5
31867
31868	ac_cv_c_const=no
31869fi
31870
31871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31872fi
31873{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31874$as_echo "$ac_cv_c_const" >&6; }
31875if test $ac_cv_c_const = no; then
31876
31877cat >>confdefs.h <<\_ACEOF
31878#define const /**/
31879_ACEOF
31880
31881fi
31882
31883{ $as_echo "$as_me:$LINENO: checking for inline" >&5
31884$as_echo_n "checking for inline... " >&6; }
31885if test "${ac_cv_c_inline+set}" = set; then
31886  $as_echo_n "(cached) " >&6
31887else
31888  ac_cv_c_inline=no
31889for ac_kw in inline __inline__ __inline; do
31890  cat >conftest.$ac_ext <<_ACEOF
31891/* confdefs.h.  */
31892_ACEOF
31893cat confdefs.h >>conftest.$ac_ext
31894cat >>conftest.$ac_ext <<_ACEOF
31895/* end confdefs.h.  */
31896#ifndef __cplusplus
31897typedef int foo_t;
31898static $ac_kw foo_t static_foo () {return 0; }
31899$ac_kw foo_t foo () {return 0; }
31900#endif
31901
31902_ACEOF
31903rm -f conftest.$ac_objext
31904if { (ac_try="$ac_compile"
31905case "(($ac_try" in
31906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31907  *) ac_try_echo=$ac_try;;
31908esac
31909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31910$as_echo "$ac_try_echo") >&5
31911  (eval "$ac_compile") 2>conftest.er1
31912  ac_status=$?
31913  grep -v '^ *+' conftest.er1 >conftest.err
31914  rm -f conftest.er1
31915  cat conftest.err >&5
31916  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917  (exit $ac_status); } && {
31918	 test -z "$ac_cxx_werror_flag" ||
31919	 test ! -s conftest.err
31920       } && test -s conftest.$ac_objext; then
31921  ac_cv_c_inline=$ac_kw
31922else
31923  $as_echo "$as_me: failed program was:" >&5
31924sed 's/^/| /' conftest.$ac_ext >&5
31925
31926
31927fi
31928
31929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31930  test "$ac_cv_c_inline" != no && break
31931done
31932
31933fi
31934{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
31935$as_echo "$ac_cv_c_inline" >&6; }
31936
31937
31938case $ac_cv_c_inline in
31939  inline | yes) ;;
31940  *)
31941    case $ac_cv_c_inline in
31942      no) ac_val=;;
31943      *) ac_val=$ac_cv_c_inline;;
31944    esac
31945    cat >>confdefs.h <<_ACEOF
31946#ifndef __cplusplus
31947#define inline $ac_val
31948#endif
31949_ACEOF
31950    ;;
31951esac
31952
31953{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
31954$as_echo_n "checking for size_t... " >&6; }
31955if test "${ac_cv_type_size_t+set}" = set; then
31956  $as_echo_n "(cached) " >&6
31957else
31958  ac_cv_type_size_t=no
31959cat >conftest.$ac_ext <<_ACEOF
31960/* confdefs.h.  */
31961_ACEOF
31962cat confdefs.h >>conftest.$ac_ext
31963cat >>conftest.$ac_ext <<_ACEOF
31964/* end confdefs.h.  */
31965$ac_includes_default
31966int
31967main ()
31968{
31969if (sizeof (size_t))
31970       return 0;
31971  ;
31972  return 0;
31973}
31974_ACEOF
31975rm -f conftest.$ac_objext
31976if { (ac_try="$ac_compile"
31977case "(($ac_try" in
31978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31979  *) ac_try_echo=$ac_try;;
31980esac
31981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31982$as_echo "$ac_try_echo") >&5
31983  (eval "$ac_compile") 2>conftest.er1
31984  ac_status=$?
31985  grep -v '^ *+' conftest.er1 >conftest.err
31986  rm -f conftest.er1
31987  cat conftest.err >&5
31988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989  (exit $ac_status); } && {
31990	 test -z "$ac_cxx_werror_flag" ||
31991	 test ! -s conftest.err
31992       } && test -s conftest.$ac_objext; then
31993  cat >conftest.$ac_ext <<_ACEOF
31994/* confdefs.h.  */
31995_ACEOF
31996cat confdefs.h >>conftest.$ac_ext
31997cat >>conftest.$ac_ext <<_ACEOF
31998/* end confdefs.h.  */
31999$ac_includes_default
32000int
32001main ()
32002{
32003if (sizeof ((size_t)))
32004	  return 0;
32005  ;
32006  return 0;
32007}
32008_ACEOF
32009rm -f conftest.$ac_objext
32010if { (ac_try="$ac_compile"
32011case "(($ac_try" in
32012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013  *) ac_try_echo=$ac_try;;
32014esac
32015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32016$as_echo "$ac_try_echo") >&5
32017  (eval "$ac_compile") 2>conftest.er1
32018  ac_status=$?
32019  grep -v '^ *+' conftest.er1 >conftest.err
32020  rm -f conftest.er1
32021  cat conftest.err >&5
32022  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023  (exit $ac_status); } && {
32024	 test -z "$ac_cxx_werror_flag" ||
32025	 test ! -s conftest.err
32026       } && test -s conftest.$ac_objext; then
32027  :
32028else
32029  $as_echo "$as_me: failed program was:" >&5
32030sed 's/^/| /' conftest.$ac_ext >&5
32031
32032	ac_cv_type_size_t=yes
32033fi
32034
32035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32036else
32037  $as_echo "$as_me: failed program was:" >&5
32038sed 's/^/| /' conftest.$ac_ext >&5
32039
32040
32041fi
32042
32043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32044fi
32045{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32046$as_echo "$ac_cv_type_size_t" >&6; }
32047if test "x$ac_cv_type_size_t" = x""yes; then
32048  :
32049else
32050
32051cat >>confdefs.h <<_ACEOF
32052#define size_t unsigned int
32053_ACEOF
32054
32055fi
32056
32057
32058if test x$ac_cv_type_size_t != xyes; then
32059  { { $as_echo "$as_me:$LINENO: error: No type size_t, but SCIM needs it!" >&5
32060$as_echo "$as_me: error: No type size_t, but SCIM needs it!" >&2;}
32061   { (exit 1); exit 1; }; }
32062fi
32063
32064# The cast to long int works around a bug in the HP C Compiler
32065# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32066# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32067# This bug is HP SR number 8606223364.
32068{ $as_echo "$as_me:$LINENO: checking size of char" >&5
32069$as_echo_n "checking size of char... " >&6; }
32070if test "${ac_cv_sizeof_char+set}" = set; then
32071  $as_echo_n "(cached) " >&6
32072else
32073  if test "$cross_compiling" = yes; then
32074  # Depending upon the size, compute the lo and hi bounds.
32075cat >conftest.$ac_ext <<_ACEOF
32076/* confdefs.h.  */
32077_ACEOF
32078cat confdefs.h >>conftest.$ac_ext
32079cat >>conftest.$ac_ext <<_ACEOF
32080/* end confdefs.h.  */
32081$ac_includes_default
32082int
32083main ()
32084{
32085static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
32086test_array [0] = 0
32087
32088  ;
32089  return 0;
32090}
32091_ACEOF
32092rm -f conftest.$ac_objext
32093if { (ac_try="$ac_compile"
32094case "(($ac_try" in
32095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32096  *) ac_try_echo=$ac_try;;
32097esac
32098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32099$as_echo "$ac_try_echo") >&5
32100  (eval "$ac_compile") 2>conftest.er1
32101  ac_status=$?
32102  grep -v '^ *+' conftest.er1 >conftest.err
32103  rm -f conftest.er1
32104  cat conftest.err >&5
32105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106  (exit $ac_status); } && {
32107	 test -z "$ac_cxx_werror_flag" ||
32108	 test ! -s conftest.err
32109       } && test -s conftest.$ac_objext; then
32110  ac_lo=0 ac_mid=0
32111  while :; do
32112    cat >conftest.$ac_ext <<_ACEOF
32113/* confdefs.h.  */
32114_ACEOF
32115cat confdefs.h >>conftest.$ac_ext
32116cat >>conftest.$ac_ext <<_ACEOF
32117/* end confdefs.h.  */
32118$ac_includes_default
32119int
32120main ()
32121{
32122static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
32123test_array [0] = 0
32124
32125  ;
32126  return 0;
32127}
32128_ACEOF
32129rm -f conftest.$ac_objext
32130if { (ac_try="$ac_compile"
32131case "(($ac_try" in
32132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133  *) ac_try_echo=$ac_try;;
32134esac
32135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32136$as_echo "$ac_try_echo") >&5
32137  (eval "$ac_compile") 2>conftest.er1
32138  ac_status=$?
32139  grep -v '^ *+' conftest.er1 >conftest.err
32140  rm -f conftest.er1
32141  cat conftest.err >&5
32142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143  (exit $ac_status); } && {
32144	 test -z "$ac_cxx_werror_flag" ||
32145	 test ! -s conftest.err
32146       } && test -s conftest.$ac_objext; then
32147  ac_hi=$ac_mid; break
32148else
32149  $as_echo "$as_me: failed program was:" >&5
32150sed 's/^/| /' conftest.$ac_ext >&5
32151
32152	ac_lo=`expr $ac_mid + 1`
32153			if test $ac_lo -le $ac_mid; then
32154			  ac_lo= ac_hi=
32155			  break
32156			fi
32157			ac_mid=`expr 2 '*' $ac_mid + 1`
32158fi
32159
32160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32161  done
32162else
32163  $as_echo "$as_me: failed program was:" >&5
32164sed 's/^/| /' conftest.$ac_ext >&5
32165
32166	cat >conftest.$ac_ext <<_ACEOF
32167/* confdefs.h.  */
32168_ACEOF
32169cat confdefs.h >>conftest.$ac_ext
32170cat >>conftest.$ac_ext <<_ACEOF
32171/* end confdefs.h.  */
32172$ac_includes_default
32173int
32174main ()
32175{
32176static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
32177test_array [0] = 0
32178
32179  ;
32180  return 0;
32181}
32182_ACEOF
32183rm -f conftest.$ac_objext
32184if { (ac_try="$ac_compile"
32185case "(($ac_try" in
32186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187  *) ac_try_echo=$ac_try;;
32188esac
32189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32190$as_echo "$ac_try_echo") >&5
32191  (eval "$ac_compile") 2>conftest.er1
32192  ac_status=$?
32193  grep -v '^ *+' conftest.er1 >conftest.err
32194  rm -f conftest.er1
32195  cat conftest.err >&5
32196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197  (exit $ac_status); } && {
32198	 test -z "$ac_cxx_werror_flag" ||
32199	 test ! -s conftest.err
32200       } && test -s conftest.$ac_objext; then
32201  ac_hi=-1 ac_mid=-1
32202  while :; do
32203    cat >conftest.$ac_ext <<_ACEOF
32204/* confdefs.h.  */
32205_ACEOF
32206cat confdefs.h >>conftest.$ac_ext
32207cat >>conftest.$ac_ext <<_ACEOF
32208/* end confdefs.h.  */
32209$ac_includes_default
32210int
32211main ()
32212{
32213static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
32214test_array [0] = 0
32215
32216  ;
32217  return 0;
32218}
32219_ACEOF
32220rm -f conftest.$ac_objext
32221if { (ac_try="$ac_compile"
32222case "(($ac_try" in
32223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32224  *) ac_try_echo=$ac_try;;
32225esac
32226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32227$as_echo "$ac_try_echo") >&5
32228  (eval "$ac_compile") 2>conftest.er1
32229  ac_status=$?
32230  grep -v '^ *+' conftest.er1 >conftest.err
32231  rm -f conftest.er1
32232  cat conftest.err >&5
32233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234  (exit $ac_status); } && {
32235	 test -z "$ac_cxx_werror_flag" ||
32236	 test ! -s conftest.err
32237       } && test -s conftest.$ac_objext; then
32238  ac_lo=$ac_mid; break
32239else
32240  $as_echo "$as_me: failed program was:" >&5
32241sed 's/^/| /' conftest.$ac_ext >&5
32242
32243	ac_hi=`expr '(' $ac_mid ')' - 1`
32244			if test $ac_mid -le $ac_hi; then
32245			  ac_lo= ac_hi=
32246			  break
32247			fi
32248			ac_mid=`expr 2 '*' $ac_mid`
32249fi
32250
32251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32252  done
32253else
32254  $as_echo "$as_me: failed program was:" >&5
32255sed 's/^/| /' conftest.$ac_ext >&5
32256
32257	ac_lo= ac_hi=
32258fi
32259
32260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32261fi
32262
32263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32264# Binary search between lo and hi bounds.
32265while test "x$ac_lo" != "x$ac_hi"; do
32266  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32267  cat >conftest.$ac_ext <<_ACEOF
32268/* confdefs.h.  */
32269_ACEOF
32270cat confdefs.h >>conftest.$ac_ext
32271cat >>conftest.$ac_ext <<_ACEOF
32272/* end confdefs.h.  */
32273$ac_includes_default
32274int
32275main ()
32276{
32277static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
32278test_array [0] = 0
32279
32280  ;
32281  return 0;
32282}
32283_ACEOF
32284rm -f conftest.$ac_objext
32285if { (ac_try="$ac_compile"
32286case "(($ac_try" in
32287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288  *) ac_try_echo=$ac_try;;
32289esac
32290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32291$as_echo "$ac_try_echo") >&5
32292  (eval "$ac_compile") 2>conftest.er1
32293  ac_status=$?
32294  grep -v '^ *+' conftest.er1 >conftest.err
32295  rm -f conftest.er1
32296  cat conftest.err >&5
32297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298  (exit $ac_status); } && {
32299	 test -z "$ac_cxx_werror_flag" ||
32300	 test ! -s conftest.err
32301       } && test -s conftest.$ac_objext; then
32302  ac_hi=$ac_mid
32303else
32304  $as_echo "$as_me: failed program was:" >&5
32305sed 's/^/| /' conftest.$ac_ext >&5
32306
32307	ac_lo=`expr '(' $ac_mid ')' + 1`
32308fi
32309
32310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311done
32312case $ac_lo in
32313?*) ac_cv_sizeof_char=$ac_lo;;
32314'') if test "$ac_cv_type_char" = yes; then
32315     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32317{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
32318See \`config.log' for more details." >&5
32319$as_echo "$as_me: error: cannot compute sizeof (char)
32320See \`config.log' for more details." >&2;}
32321   { (exit 77); exit 77; }; }; }
32322   else
32323     ac_cv_sizeof_char=0
32324   fi ;;
32325esac
32326else
32327  cat >conftest.$ac_ext <<_ACEOF
32328/* confdefs.h.  */
32329_ACEOF
32330cat confdefs.h >>conftest.$ac_ext
32331cat >>conftest.$ac_ext <<_ACEOF
32332/* end confdefs.h.  */
32333$ac_includes_default
32334static long int longval () { return (long int) (sizeof (char)); }
32335static unsigned long int ulongval () { return (long int) (sizeof (char)); }
32336#include <stdio.h>
32337#include <stdlib.h>
32338int
32339main ()
32340{
32341
32342  FILE *f = fopen ("conftest.val", "w");
32343  if (! f)
32344    return 1;
32345  if (((long int) (sizeof (char))) < 0)
32346    {
32347      long int i = longval ();
32348      if (i != ((long int) (sizeof (char))))
32349	return 1;
32350      fprintf (f, "%ld", i);
32351    }
32352  else
32353    {
32354      unsigned long int i = ulongval ();
32355      if (i != ((long int) (sizeof (char))))
32356	return 1;
32357      fprintf (f, "%lu", i);
32358    }
32359  /* Do not output a trailing newline, as this causes \r\n confusion
32360     on some platforms.  */
32361  return ferror (f) || fclose (f) != 0;
32362
32363  ;
32364  return 0;
32365}
32366_ACEOF
32367rm -f conftest$ac_exeext
32368if { (ac_try="$ac_link"
32369case "(($ac_try" in
32370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371  *) ac_try_echo=$ac_try;;
32372esac
32373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32374$as_echo "$ac_try_echo") >&5
32375  (eval "$ac_link") 2>&5
32376  ac_status=$?
32377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32379  { (case "(($ac_try" in
32380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32381  *) ac_try_echo=$ac_try;;
32382esac
32383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32384$as_echo "$ac_try_echo") >&5
32385  (eval "$ac_try") 2>&5
32386  ac_status=$?
32387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388  (exit $ac_status); }; }; then
32389  ac_cv_sizeof_char=`cat conftest.val`
32390else
32391  $as_echo "$as_me: program exited with status $ac_status" >&5
32392$as_echo "$as_me: failed program was:" >&5
32393sed 's/^/| /' conftest.$ac_ext >&5
32394
32395( exit $ac_status )
32396if test "$ac_cv_type_char" = yes; then
32397     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32399{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
32400See \`config.log' for more details." >&5
32401$as_echo "$as_me: error: cannot compute sizeof (char)
32402See \`config.log' for more details." >&2;}
32403   { (exit 77); exit 77; }; }; }
32404   else
32405     ac_cv_sizeof_char=0
32406   fi
32407fi
32408rm -rf conftest.dSYM
32409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32410fi
32411rm -f conftest.val
32412fi
32413{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
32414$as_echo "$ac_cv_sizeof_char" >&6; }
32415
32416
32417
32418cat >>confdefs.h <<_ACEOF
32419#define SIZEOF_CHAR $ac_cv_sizeof_char
32420_ACEOF
32421
32422
32423# The cast to long int works around a bug in the HP C Compiler
32424# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32425# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32426# This bug is HP SR number 8606223364.
32427{ $as_echo "$as_me:$LINENO: checking size of unsigned short int" >&5
32428$as_echo_n "checking size of unsigned short int... " >&6; }
32429if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
32430  $as_echo_n "(cached) " >&6
32431else
32432  if test "$cross_compiling" = yes; then
32433  # Depending upon the size, compute the lo and hi bounds.
32434cat >conftest.$ac_ext <<_ACEOF
32435/* confdefs.h.  */
32436_ACEOF
32437cat confdefs.h >>conftest.$ac_ext
32438cat >>conftest.$ac_ext <<_ACEOF
32439/* end confdefs.h.  */
32440$ac_includes_default
32441int
32442main ()
32443{
32444static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) >= 0)];
32445test_array [0] = 0
32446
32447  ;
32448  return 0;
32449}
32450_ACEOF
32451rm -f conftest.$ac_objext
32452if { (ac_try="$ac_compile"
32453case "(($ac_try" in
32454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455  *) ac_try_echo=$ac_try;;
32456esac
32457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32458$as_echo "$ac_try_echo") >&5
32459  (eval "$ac_compile") 2>conftest.er1
32460  ac_status=$?
32461  grep -v '^ *+' conftest.er1 >conftest.err
32462  rm -f conftest.er1
32463  cat conftest.err >&5
32464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465  (exit $ac_status); } && {
32466	 test -z "$ac_cxx_werror_flag" ||
32467	 test ! -s conftest.err
32468       } && test -s conftest.$ac_objext; then
32469  ac_lo=0 ac_mid=0
32470  while :; do
32471    cat >conftest.$ac_ext <<_ACEOF
32472/* confdefs.h.  */
32473_ACEOF
32474cat confdefs.h >>conftest.$ac_ext
32475cat >>conftest.$ac_ext <<_ACEOF
32476/* end confdefs.h.  */
32477$ac_includes_default
32478int
32479main ()
32480{
32481static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) <= $ac_mid)];
32482test_array [0] = 0
32483
32484  ;
32485  return 0;
32486}
32487_ACEOF
32488rm -f conftest.$ac_objext
32489if { (ac_try="$ac_compile"
32490case "(($ac_try" in
32491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492  *) ac_try_echo=$ac_try;;
32493esac
32494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32495$as_echo "$ac_try_echo") >&5
32496  (eval "$ac_compile") 2>conftest.er1
32497  ac_status=$?
32498  grep -v '^ *+' conftest.er1 >conftest.err
32499  rm -f conftest.er1
32500  cat conftest.err >&5
32501  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502  (exit $ac_status); } && {
32503	 test -z "$ac_cxx_werror_flag" ||
32504	 test ! -s conftest.err
32505       } && test -s conftest.$ac_objext; then
32506  ac_hi=$ac_mid; break
32507else
32508  $as_echo "$as_me: failed program was:" >&5
32509sed 's/^/| /' conftest.$ac_ext >&5
32510
32511	ac_lo=`expr $ac_mid + 1`
32512			if test $ac_lo -le $ac_mid; then
32513			  ac_lo= ac_hi=
32514			  break
32515			fi
32516			ac_mid=`expr 2 '*' $ac_mid + 1`
32517fi
32518
32519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32520  done
32521else
32522  $as_echo "$as_me: failed program was:" >&5
32523sed 's/^/| /' conftest.$ac_ext >&5
32524
32525	cat >conftest.$ac_ext <<_ACEOF
32526/* confdefs.h.  */
32527_ACEOF
32528cat confdefs.h >>conftest.$ac_ext
32529cat >>conftest.$ac_ext <<_ACEOF
32530/* end confdefs.h.  */
32531$ac_includes_default
32532int
32533main ()
32534{
32535static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) < 0)];
32536test_array [0] = 0
32537
32538  ;
32539  return 0;
32540}
32541_ACEOF
32542rm -f conftest.$ac_objext
32543if { (ac_try="$ac_compile"
32544case "(($ac_try" in
32545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32546  *) ac_try_echo=$ac_try;;
32547esac
32548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32549$as_echo "$ac_try_echo") >&5
32550  (eval "$ac_compile") 2>conftest.er1
32551  ac_status=$?
32552  grep -v '^ *+' conftest.er1 >conftest.err
32553  rm -f conftest.er1
32554  cat conftest.err >&5
32555  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556  (exit $ac_status); } && {
32557	 test -z "$ac_cxx_werror_flag" ||
32558	 test ! -s conftest.err
32559       } && test -s conftest.$ac_objext; then
32560  ac_hi=-1 ac_mid=-1
32561  while :; do
32562    cat >conftest.$ac_ext <<_ACEOF
32563/* confdefs.h.  */
32564_ACEOF
32565cat confdefs.h >>conftest.$ac_ext
32566cat >>conftest.$ac_ext <<_ACEOF
32567/* end confdefs.h.  */
32568$ac_includes_default
32569int
32570main ()
32571{
32572static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) >= $ac_mid)];
32573test_array [0] = 0
32574
32575  ;
32576  return 0;
32577}
32578_ACEOF
32579rm -f conftest.$ac_objext
32580if { (ac_try="$ac_compile"
32581case "(($ac_try" in
32582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583  *) ac_try_echo=$ac_try;;
32584esac
32585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32586$as_echo "$ac_try_echo") >&5
32587  (eval "$ac_compile") 2>conftest.er1
32588  ac_status=$?
32589  grep -v '^ *+' conftest.er1 >conftest.err
32590  rm -f conftest.er1
32591  cat conftest.err >&5
32592  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593  (exit $ac_status); } && {
32594	 test -z "$ac_cxx_werror_flag" ||
32595	 test ! -s conftest.err
32596       } && test -s conftest.$ac_objext; then
32597  ac_lo=$ac_mid; break
32598else
32599  $as_echo "$as_me: failed program was:" >&5
32600sed 's/^/| /' conftest.$ac_ext >&5
32601
32602	ac_hi=`expr '(' $ac_mid ')' - 1`
32603			if test $ac_mid -le $ac_hi; then
32604			  ac_lo= ac_hi=
32605			  break
32606			fi
32607			ac_mid=`expr 2 '*' $ac_mid`
32608fi
32609
32610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32611  done
32612else
32613  $as_echo "$as_me: failed program was:" >&5
32614sed 's/^/| /' conftest.$ac_ext >&5
32615
32616	ac_lo= ac_hi=
32617fi
32618
32619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32620fi
32621
32622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32623# Binary search between lo and hi bounds.
32624while test "x$ac_lo" != "x$ac_hi"; do
32625  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32626  cat >conftest.$ac_ext <<_ACEOF
32627/* confdefs.h.  */
32628_ACEOF
32629cat confdefs.h >>conftest.$ac_ext
32630cat >>conftest.$ac_ext <<_ACEOF
32631/* end confdefs.h.  */
32632$ac_includes_default
32633int
32634main ()
32635{
32636static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) <= $ac_mid)];
32637test_array [0] = 0
32638
32639  ;
32640  return 0;
32641}
32642_ACEOF
32643rm -f conftest.$ac_objext
32644if { (ac_try="$ac_compile"
32645case "(($ac_try" in
32646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647  *) ac_try_echo=$ac_try;;
32648esac
32649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32650$as_echo "$ac_try_echo") >&5
32651  (eval "$ac_compile") 2>conftest.er1
32652  ac_status=$?
32653  grep -v '^ *+' conftest.er1 >conftest.err
32654  rm -f conftest.er1
32655  cat conftest.err >&5
32656  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657  (exit $ac_status); } && {
32658	 test -z "$ac_cxx_werror_flag" ||
32659	 test ! -s conftest.err
32660       } && test -s conftest.$ac_objext; then
32661  ac_hi=$ac_mid
32662else
32663  $as_echo "$as_me: failed program was:" >&5
32664sed 's/^/| /' conftest.$ac_ext >&5
32665
32666	ac_lo=`expr '(' $ac_mid ')' + 1`
32667fi
32668
32669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32670done
32671case $ac_lo in
32672?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
32673'') if test "$ac_cv_type_unsigned_short_int" = yes; then
32674     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32676{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
32677See \`config.log' for more details." >&5
32678$as_echo "$as_me: error: cannot compute sizeof (unsigned short int)
32679See \`config.log' for more details." >&2;}
32680   { (exit 77); exit 77; }; }; }
32681   else
32682     ac_cv_sizeof_unsigned_short_int=0
32683   fi ;;
32684esac
32685else
32686  cat >conftest.$ac_ext <<_ACEOF
32687/* confdefs.h.  */
32688_ACEOF
32689cat confdefs.h >>conftest.$ac_ext
32690cat >>conftest.$ac_ext <<_ACEOF
32691/* end confdefs.h.  */
32692$ac_includes_default
32693static long int longval () { return (long int) (sizeof (unsigned short int)); }
32694static unsigned long int ulongval () { return (long int) (sizeof (unsigned short int)); }
32695#include <stdio.h>
32696#include <stdlib.h>
32697int
32698main ()
32699{
32700
32701  FILE *f = fopen ("conftest.val", "w");
32702  if (! f)
32703    return 1;
32704  if (((long int) (sizeof (unsigned short int))) < 0)
32705    {
32706      long int i = longval ();
32707      if (i != ((long int) (sizeof (unsigned short int))))
32708	return 1;
32709      fprintf (f, "%ld", i);
32710    }
32711  else
32712    {
32713      unsigned long int i = ulongval ();
32714      if (i != ((long int) (sizeof (unsigned short int))))
32715	return 1;
32716      fprintf (f, "%lu", i);
32717    }
32718  /* Do not output a trailing newline, as this causes \r\n confusion
32719     on some platforms.  */
32720  return ferror (f) || fclose (f) != 0;
32721
32722  ;
32723  return 0;
32724}
32725_ACEOF
32726rm -f conftest$ac_exeext
32727if { (ac_try="$ac_link"
32728case "(($ac_try" in
32729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730  *) ac_try_echo=$ac_try;;
32731esac
32732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32733$as_echo "$ac_try_echo") >&5
32734  (eval "$ac_link") 2>&5
32735  ac_status=$?
32736  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32738  { (case "(($ac_try" in
32739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32740  *) ac_try_echo=$ac_try;;
32741esac
32742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32743$as_echo "$ac_try_echo") >&5
32744  (eval "$ac_try") 2>&5
32745  ac_status=$?
32746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747  (exit $ac_status); }; }; then
32748  ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
32749else
32750  $as_echo "$as_me: program exited with status $ac_status" >&5
32751$as_echo "$as_me: failed program was:" >&5
32752sed 's/^/| /' conftest.$ac_ext >&5
32753
32754( exit $ac_status )
32755if test "$ac_cv_type_unsigned_short_int" = yes; then
32756     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32758{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
32759See \`config.log' for more details." >&5
32760$as_echo "$as_me: error: cannot compute sizeof (unsigned short int)
32761See \`config.log' for more details." >&2;}
32762   { (exit 77); exit 77; }; }; }
32763   else
32764     ac_cv_sizeof_unsigned_short_int=0
32765   fi
32766fi
32767rm -rf conftest.dSYM
32768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32769fi
32770rm -f conftest.val
32771fi
32772{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
32773$as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
32774
32775
32776
32777cat >>confdefs.h <<_ACEOF
32778#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
32779_ACEOF
32780
32781
32782# The cast to long int works around a bug in the HP C Compiler
32783# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32784# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32785# This bug is HP SR number 8606223364.
32786{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
32787$as_echo_n "checking size of unsigned int... " >&6; }
32788if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
32789  $as_echo_n "(cached) " >&6
32790else
32791  if test "$cross_compiling" = yes; then
32792  # Depending upon the size, compute the lo and hi bounds.
32793cat >conftest.$ac_ext <<_ACEOF
32794/* confdefs.h.  */
32795_ACEOF
32796cat confdefs.h >>conftest.$ac_ext
32797cat >>conftest.$ac_ext <<_ACEOF
32798/* end confdefs.h.  */
32799$ac_includes_default
32800int
32801main ()
32802{
32803static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
32804test_array [0] = 0
32805
32806  ;
32807  return 0;
32808}
32809_ACEOF
32810rm -f conftest.$ac_objext
32811if { (ac_try="$ac_compile"
32812case "(($ac_try" in
32813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814  *) ac_try_echo=$ac_try;;
32815esac
32816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32817$as_echo "$ac_try_echo") >&5
32818  (eval "$ac_compile") 2>conftest.er1
32819  ac_status=$?
32820  grep -v '^ *+' conftest.er1 >conftest.err
32821  rm -f conftest.er1
32822  cat conftest.err >&5
32823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824  (exit $ac_status); } && {
32825	 test -z "$ac_cxx_werror_flag" ||
32826	 test ! -s conftest.err
32827       } && test -s conftest.$ac_objext; then
32828  ac_lo=0 ac_mid=0
32829  while :; do
32830    cat >conftest.$ac_ext <<_ACEOF
32831/* confdefs.h.  */
32832_ACEOF
32833cat confdefs.h >>conftest.$ac_ext
32834cat >>conftest.$ac_ext <<_ACEOF
32835/* end confdefs.h.  */
32836$ac_includes_default
32837int
32838main ()
32839{
32840static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
32841test_array [0] = 0
32842
32843  ;
32844  return 0;
32845}
32846_ACEOF
32847rm -f conftest.$ac_objext
32848if { (ac_try="$ac_compile"
32849case "(($ac_try" in
32850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32851  *) ac_try_echo=$ac_try;;
32852esac
32853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32854$as_echo "$ac_try_echo") >&5
32855  (eval "$ac_compile") 2>conftest.er1
32856  ac_status=$?
32857  grep -v '^ *+' conftest.er1 >conftest.err
32858  rm -f conftest.er1
32859  cat conftest.err >&5
32860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861  (exit $ac_status); } && {
32862	 test -z "$ac_cxx_werror_flag" ||
32863	 test ! -s conftest.err
32864       } && test -s conftest.$ac_objext; then
32865  ac_hi=$ac_mid; break
32866else
32867  $as_echo "$as_me: failed program was:" >&5
32868sed 's/^/| /' conftest.$ac_ext >&5
32869
32870	ac_lo=`expr $ac_mid + 1`
32871			if test $ac_lo -le $ac_mid; then
32872			  ac_lo= ac_hi=
32873			  break
32874			fi
32875			ac_mid=`expr 2 '*' $ac_mid + 1`
32876fi
32877
32878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32879  done
32880else
32881  $as_echo "$as_me: failed program was:" >&5
32882sed 's/^/| /' conftest.$ac_ext >&5
32883
32884	cat >conftest.$ac_ext <<_ACEOF
32885/* confdefs.h.  */
32886_ACEOF
32887cat confdefs.h >>conftest.$ac_ext
32888cat >>conftest.$ac_ext <<_ACEOF
32889/* end confdefs.h.  */
32890$ac_includes_default
32891int
32892main ()
32893{
32894static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
32895test_array [0] = 0
32896
32897  ;
32898  return 0;
32899}
32900_ACEOF
32901rm -f conftest.$ac_objext
32902if { (ac_try="$ac_compile"
32903case "(($ac_try" in
32904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32905  *) ac_try_echo=$ac_try;;
32906esac
32907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32908$as_echo "$ac_try_echo") >&5
32909  (eval "$ac_compile") 2>conftest.er1
32910  ac_status=$?
32911  grep -v '^ *+' conftest.er1 >conftest.err
32912  rm -f conftest.er1
32913  cat conftest.err >&5
32914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915  (exit $ac_status); } && {
32916	 test -z "$ac_cxx_werror_flag" ||
32917	 test ! -s conftest.err
32918       } && test -s conftest.$ac_objext; then
32919  ac_hi=-1 ac_mid=-1
32920  while :; do
32921    cat >conftest.$ac_ext <<_ACEOF
32922/* confdefs.h.  */
32923_ACEOF
32924cat confdefs.h >>conftest.$ac_ext
32925cat >>conftest.$ac_ext <<_ACEOF
32926/* end confdefs.h.  */
32927$ac_includes_default
32928int
32929main ()
32930{
32931static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
32932test_array [0] = 0
32933
32934  ;
32935  return 0;
32936}
32937_ACEOF
32938rm -f conftest.$ac_objext
32939if { (ac_try="$ac_compile"
32940case "(($ac_try" in
32941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32942  *) ac_try_echo=$ac_try;;
32943esac
32944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32945$as_echo "$ac_try_echo") >&5
32946  (eval "$ac_compile") 2>conftest.er1
32947  ac_status=$?
32948  grep -v '^ *+' conftest.er1 >conftest.err
32949  rm -f conftest.er1
32950  cat conftest.err >&5
32951  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952  (exit $ac_status); } && {
32953	 test -z "$ac_cxx_werror_flag" ||
32954	 test ! -s conftest.err
32955       } && test -s conftest.$ac_objext; then
32956  ac_lo=$ac_mid; break
32957else
32958  $as_echo "$as_me: failed program was:" >&5
32959sed 's/^/| /' conftest.$ac_ext >&5
32960
32961	ac_hi=`expr '(' $ac_mid ')' - 1`
32962			if test $ac_mid -le $ac_hi; then
32963			  ac_lo= ac_hi=
32964			  break
32965			fi
32966			ac_mid=`expr 2 '*' $ac_mid`
32967fi
32968
32969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32970  done
32971else
32972  $as_echo "$as_me: failed program was:" >&5
32973sed 's/^/| /' conftest.$ac_ext >&5
32974
32975	ac_lo= ac_hi=
32976fi
32977
32978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32979fi
32980
32981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32982# Binary search between lo and hi bounds.
32983while test "x$ac_lo" != "x$ac_hi"; do
32984  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32985  cat >conftest.$ac_ext <<_ACEOF
32986/* confdefs.h.  */
32987_ACEOF
32988cat confdefs.h >>conftest.$ac_ext
32989cat >>conftest.$ac_ext <<_ACEOF
32990/* end confdefs.h.  */
32991$ac_includes_default
32992int
32993main ()
32994{
32995static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
32996test_array [0] = 0
32997
32998  ;
32999  return 0;
33000}
33001_ACEOF
33002rm -f conftest.$ac_objext
33003if { (ac_try="$ac_compile"
33004case "(($ac_try" in
33005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006  *) ac_try_echo=$ac_try;;
33007esac
33008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33009$as_echo "$ac_try_echo") >&5
33010  (eval "$ac_compile") 2>conftest.er1
33011  ac_status=$?
33012  grep -v '^ *+' conftest.er1 >conftest.err
33013  rm -f conftest.er1
33014  cat conftest.err >&5
33015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016  (exit $ac_status); } && {
33017	 test -z "$ac_cxx_werror_flag" ||
33018	 test ! -s conftest.err
33019       } && test -s conftest.$ac_objext; then
33020  ac_hi=$ac_mid
33021else
33022  $as_echo "$as_me: failed program was:" >&5
33023sed 's/^/| /' conftest.$ac_ext >&5
33024
33025	ac_lo=`expr '(' $ac_mid ')' + 1`
33026fi
33027
33028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33029done
33030case $ac_lo in
33031?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
33032'') if test "$ac_cv_type_unsigned_int" = yes; then
33033     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33035{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
33036See \`config.log' for more details." >&5
33037$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
33038See \`config.log' for more details." >&2;}
33039   { (exit 77); exit 77; }; }; }
33040   else
33041     ac_cv_sizeof_unsigned_int=0
33042   fi ;;
33043esac
33044else
33045  cat >conftest.$ac_ext <<_ACEOF
33046/* confdefs.h.  */
33047_ACEOF
33048cat confdefs.h >>conftest.$ac_ext
33049cat >>conftest.$ac_ext <<_ACEOF
33050/* end confdefs.h.  */
33051$ac_includes_default
33052static long int longval () { return (long int) (sizeof (unsigned int)); }
33053static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
33054#include <stdio.h>
33055#include <stdlib.h>
33056int
33057main ()
33058{
33059
33060  FILE *f = fopen ("conftest.val", "w");
33061  if (! f)
33062    return 1;
33063  if (((long int) (sizeof (unsigned int))) < 0)
33064    {
33065      long int i = longval ();
33066      if (i != ((long int) (sizeof (unsigned int))))
33067	return 1;
33068      fprintf (f, "%ld", i);
33069    }
33070  else
33071    {
33072      unsigned long int i = ulongval ();
33073      if (i != ((long int) (sizeof (unsigned int))))
33074	return 1;
33075      fprintf (f, "%lu", i);
33076    }
33077  /* Do not output a trailing newline, as this causes \r\n confusion
33078     on some platforms.  */
33079  return ferror (f) || fclose (f) != 0;
33080
33081  ;
33082  return 0;
33083}
33084_ACEOF
33085rm -f conftest$ac_exeext
33086if { (ac_try="$ac_link"
33087case "(($ac_try" in
33088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089  *) ac_try_echo=$ac_try;;
33090esac
33091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33092$as_echo "$ac_try_echo") >&5
33093  (eval "$ac_link") 2>&5
33094  ac_status=$?
33095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33097  { (case "(($ac_try" in
33098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099  *) ac_try_echo=$ac_try;;
33100esac
33101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33102$as_echo "$ac_try_echo") >&5
33103  (eval "$ac_try") 2>&5
33104  ac_status=$?
33105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106  (exit $ac_status); }; }; then
33107  ac_cv_sizeof_unsigned_int=`cat conftest.val`
33108else
33109  $as_echo "$as_me: program exited with status $ac_status" >&5
33110$as_echo "$as_me: failed program was:" >&5
33111sed 's/^/| /' conftest.$ac_ext >&5
33112
33113( exit $ac_status )
33114if test "$ac_cv_type_unsigned_int" = yes; then
33115     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33117{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
33118See \`config.log' for more details." >&5
33119$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
33120See \`config.log' for more details." >&2;}
33121   { (exit 77); exit 77; }; }; }
33122   else
33123     ac_cv_sizeof_unsigned_int=0
33124   fi
33125fi
33126rm -rf conftest.dSYM
33127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33128fi
33129rm -f conftest.val
33130fi
33131{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
33132$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
33133
33134
33135
33136cat >>confdefs.h <<_ACEOF
33137#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
33138_ACEOF
33139
33140
33141# The cast to long int works around a bug in the HP C Compiler
33142# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33143# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33144# This bug is HP SR number 8606223364.
33145{ $as_echo "$as_me:$LINENO: checking size of unsigned long int" >&5
33146$as_echo_n "checking size of unsigned long int... " >&6; }
33147if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
33148  $as_echo_n "(cached) " >&6
33149else
33150  if test "$cross_compiling" = yes; then
33151  # Depending upon the size, compute the lo and hi bounds.
33152cat >conftest.$ac_ext <<_ACEOF
33153/* confdefs.h.  */
33154_ACEOF
33155cat confdefs.h >>conftest.$ac_ext
33156cat >>conftest.$ac_ext <<_ACEOF
33157/* end confdefs.h.  */
33158$ac_includes_default
33159int
33160main ()
33161{
33162static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) >= 0)];
33163test_array [0] = 0
33164
33165  ;
33166  return 0;
33167}
33168_ACEOF
33169rm -f conftest.$ac_objext
33170if { (ac_try="$ac_compile"
33171case "(($ac_try" in
33172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33173  *) ac_try_echo=$ac_try;;
33174esac
33175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33176$as_echo "$ac_try_echo") >&5
33177  (eval "$ac_compile") 2>conftest.er1
33178  ac_status=$?
33179  grep -v '^ *+' conftest.er1 >conftest.err
33180  rm -f conftest.er1
33181  cat conftest.err >&5
33182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183  (exit $ac_status); } && {
33184	 test -z "$ac_cxx_werror_flag" ||
33185	 test ! -s conftest.err
33186       } && test -s conftest.$ac_objext; then
33187  ac_lo=0 ac_mid=0
33188  while :; do
33189    cat >conftest.$ac_ext <<_ACEOF
33190/* confdefs.h.  */
33191_ACEOF
33192cat confdefs.h >>conftest.$ac_ext
33193cat >>conftest.$ac_ext <<_ACEOF
33194/* end confdefs.h.  */
33195$ac_includes_default
33196int
33197main ()
33198{
33199static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) <= $ac_mid)];
33200test_array [0] = 0
33201
33202  ;
33203  return 0;
33204}
33205_ACEOF
33206rm -f conftest.$ac_objext
33207if { (ac_try="$ac_compile"
33208case "(($ac_try" in
33209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33210  *) ac_try_echo=$ac_try;;
33211esac
33212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33213$as_echo "$ac_try_echo") >&5
33214  (eval "$ac_compile") 2>conftest.er1
33215  ac_status=$?
33216  grep -v '^ *+' conftest.er1 >conftest.err
33217  rm -f conftest.er1
33218  cat conftest.err >&5
33219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220  (exit $ac_status); } && {
33221	 test -z "$ac_cxx_werror_flag" ||
33222	 test ! -s conftest.err
33223       } && test -s conftest.$ac_objext; then
33224  ac_hi=$ac_mid; break
33225else
33226  $as_echo "$as_me: failed program was:" >&5
33227sed 's/^/| /' conftest.$ac_ext >&5
33228
33229	ac_lo=`expr $ac_mid + 1`
33230			if test $ac_lo -le $ac_mid; then
33231			  ac_lo= ac_hi=
33232			  break
33233			fi
33234			ac_mid=`expr 2 '*' $ac_mid + 1`
33235fi
33236
33237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33238  done
33239else
33240  $as_echo "$as_me: failed program was:" >&5
33241sed 's/^/| /' conftest.$ac_ext >&5
33242
33243	cat >conftest.$ac_ext <<_ACEOF
33244/* confdefs.h.  */
33245_ACEOF
33246cat confdefs.h >>conftest.$ac_ext
33247cat >>conftest.$ac_ext <<_ACEOF
33248/* end confdefs.h.  */
33249$ac_includes_default
33250int
33251main ()
33252{
33253static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) < 0)];
33254test_array [0] = 0
33255
33256  ;
33257  return 0;
33258}
33259_ACEOF
33260rm -f conftest.$ac_objext
33261if { (ac_try="$ac_compile"
33262case "(($ac_try" in
33263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264  *) ac_try_echo=$ac_try;;
33265esac
33266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33267$as_echo "$ac_try_echo") >&5
33268  (eval "$ac_compile") 2>conftest.er1
33269  ac_status=$?
33270  grep -v '^ *+' conftest.er1 >conftest.err
33271  rm -f conftest.er1
33272  cat conftest.err >&5
33273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274  (exit $ac_status); } && {
33275	 test -z "$ac_cxx_werror_flag" ||
33276	 test ! -s conftest.err
33277       } && test -s conftest.$ac_objext; then
33278  ac_hi=-1 ac_mid=-1
33279  while :; do
33280    cat >conftest.$ac_ext <<_ACEOF
33281/* confdefs.h.  */
33282_ACEOF
33283cat confdefs.h >>conftest.$ac_ext
33284cat >>conftest.$ac_ext <<_ACEOF
33285/* end confdefs.h.  */
33286$ac_includes_default
33287int
33288main ()
33289{
33290static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) >= $ac_mid)];
33291test_array [0] = 0
33292
33293  ;
33294  return 0;
33295}
33296_ACEOF
33297rm -f conftest.$ac_objext
33298if { (ac_try="$ac_compile"
33299case "(($ac_try" in
33300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33301  *) ac_try_echo=$ac_try;;
33302esac
33303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33304$as_echo "$ac_try_echo") >&5
33305  (eval "$ac_compile") 2>conftest.er1
33306  ac_status=$?
33307  grep -v '^ *+' conftest.er1 >conftest.err
33308  rm -f conftest.er1
33309  cat conftest.err >&5
33310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311  (exit $ac_status); } && {
33312	 test -z "$ac_cxx_werror_flag" ||
33313	 test ! -s conftest.err
33314       } && test -s conftest.$ac_objext; then
33315  ac_lo=$ac_mid; break
33316else
33317  $as_echo "$as_me: failed program was:" >&5
33318sed 's/^/| /' conftest.$ac_ext >&5
33319
33320	ac_hi=`expr '(' $ac_mid ')' - 1`
33321			if test $ac_mid -le $ac_hi; then
33322			  ac_lo= ac_hi=
33323			  break
33324			fi
33325			ac_mid=`expr 2 '*' $ac_mid`
33326fi
33327
33328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33329  done
33330else
33331  $as_echo "$as_me: failed program was:" >&5
33332sed 's/^/| /' conftest.$ac_ext >&5
33333
33334	ac_lo= ac_hi=
33335fi
33336
33337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33338fi
33339
33340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33341# Binary search between lo and hi bounds.
33342while test "x$ac_lo" != "x$ac_hi"; do
33343  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33344  cat >conftest.$ac_ext <<_ACEOF
33345/* confdefs.h.  */
33346_ACEOF
33347cat confdefs.h >>conftest.$ac_ext
33348cat >>conftest.$ac_ext <<_ACEOF
33349/* end confdefs.h.  */
33350$ac_includes_default
33351int
33352main ()
33353{
33354static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) <= $ac_mid)];
33355test_array [0] = 0
33356
33357  ;
33358  return 0;
33359}
33360_ACEOF
33361rm -f conftest.$ac_objext
33362if { (ac_try="$ac_compile"
33363case "(($ac_try" in
33364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33365  *) ac_try_echo=$ac_try;;
33366esac
33367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33368$as_echo "$ac_try_echo") >&5
33369  (eval "$ac_compile") 2>conftest.er1
33370  ac_status=$?
33371  grep -v '^ *+' conftest.er1 >conftest.err
33372  rm -f conftest.er1
33373  cat conftest.err >&5
33374  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375  (exit $ac_status); } && {
33376	 test -z "$ac_cxx_werror_flag" ||
33377	 test ! -s conftest.err
33378       } && test -s conftest.$ac_objext; then
33379  ac_hi=$ac_mid
33380else
33381  $as_echo "$as_me: failed program was:" >&5
33382sed 's/^/| /' conftest.$ac_ext >&5
33383
33384	ac_lo=`expr '(' $ac_mid ')' + 1`
33385fi
33386
33387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33388done
33389case $ac_lo in
33390?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
33391'') if test "$ac_cv_type_unsigned_long_int" = yes; then
33392     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33394{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
33395See \`config.log' for more details." >&5
33396$as_echo "$as_me: error: cannot compute sizeof (unsigned long int)
33397See \`config.log' for more details." >&2;}
33398   { (exit 77); exit 77; }; }; }
33399   else
33400     ac_cv_sizeof_unsigned_long_int=0
33401   fi ;;
33402esac
33403else
33404  cat >conftest.$ac_ext <<_ACEOF
33405/* confdefs.h.  */
33406_ACEOF
33407cat confdefs.h >>conftest.$ac_ext
33408cat >>conftest.$ac_ext <<_ACEOF
33409/* end confdefs.h.  */
33410$ac_includes_default
33411static long int longval () { return (long int) (sizeof (unsigned long int)); }
33412static unsigned long int ulongval () { return (long int) (sizeof (unsigned long int)); }
33413#include <stdio.h>
33414#include <stdlib.h>
33415int
33416main ()
33417{
33418
33419  FILE *f = fopen ("conftest.val", "w");
33420  if (! f)
33421    return 1;
33422  if (((long int) (sizeof (unsigned long int))) < 0)
33423    {
33424      long int i = longval ();
33425      if (i != ((long int) (sizeof (unsigned long int))))
33426	return 1;
33427      fprintf (f, "%ld", i);
33428    }
33429  else
33430    {
33431      unsigned long int i = ulongval ();
33432      if (i != ((long int) (sizeof (unsigned long int))))
33433	return 1;
33434      fprintf (f, "%lu", i);
33435    }
33436  /* Do not output a trailing newline, as this causes \r\n confusion
33437     on some platforms.  */
33438  return ferror (f) || fclose (f) != 0;
33439
33440  ;
33441  return 0;
33442}
33443_ACEOF
33444rm -f conftest$ac_exeext
33445if { (ac_try="$ac_link"
33446case "(($ac_try" in
33447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33448  *) ac_try_echo=$ac_try;;
33449esac
33450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33451$as_echo "$ac_try_echo") >&5
33452  (eval "$ac_link") 2>&5
33453  ac_status=$?
33454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33456  { (case "(($ac_try" in
33457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33458  *) ac_try_echo=$ac_try;;
33459esac
33460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33461$as_echo "$ac_try_echo") >&5
33462  (eval "$ac_try") 2>&5
33463  ac_status=$?
33464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465  (exit $ac_status); }; }; then
33466  ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
33467else
33468  $as_echo "$as_me: program exited with status $ac_status" >&5
33469$as_echo "$as_me: failed program was:" >&5
33470sed 's/^/| /' conftest.$ac_ext >&5
33471
33472( exit $ac_status )
33473if test "$ac_cv_type_unsigned_long_int" = yes; then
33474     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33476{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
33477See \`config.log' for more details." >&5
33478$as_echo "$as_me: error: cannot compute sizeof (unsigned long int)
33479See \`config.log' for more details." >&2;}
33480   { (exit 77); exit 77; }; }; }
33481   else
33482     ac_cv_sizeof_unsigned_long_int=0
33483   fi
33484fi
33485rm -rf conftest.dSYM
33486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33487fi
33488rm -f conftest.val
33489fi
33490{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
33491$as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
33492
33493
33494
33495cat >>confdefs.h <<_ACEOF
33496#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
33497_ACEOF
33498
33499
33500# The cast to long int works around a bug in the HP C Compiler
33501# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33502# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33503# This bug is HP SR number 8606223364.
33504{ $as_echo "$as_me:$LINENO: checking size of unsigned long long int" >&5
33505$as_echo_n "checking size of unsigned long long int... " >&6; }
33506if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
33507  $as_echo_n "(cached) " >&6
33508else
33509  if test "$cross_compiling" = yes; then
33510  # Depending upon the size, compute the lo and hi bounds.
33511cat >conftest.$ac_ext <<_ACEOF
33512/* confdefs.h.  */
33513_ACEOF
33514cat confdefs.h >>conftest.$ac_ext
33515cat >>conftest.$ac_ext <<_ACEOF
33516/* end confdefs.h.  */
33517$ac_includes_default
33518int
33519main ()
33520{
33521static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) >= 0)];
33522test_array [0] = 0
33523
33524  ;
33525  return 0;
33526}
33527_ACEOF
33528rm -f conftest.$ac_objext
33529if { (ac_try="$ac_compile"
33530case "(($ac_try" in
33531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532  *) ac_try_echo=$ac_try;;
33533esac
33534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33535$as_echo "$ac_try_echo") >&5
33536  (eval "$ac_compile") 2>conftest.er1
33537  ac_status=$?
33538  grep -v '^ *+' conftest.er1 >conftest.err
33539  rm -f conftest.er1
33540  cat conftest.err >&5
33541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542  (exit $ac_status); } && {
33543	 test -z "$ac_cxx_werror_flag" ||
33544	 test ! -s conftest.err
33545       } && test -s conftest.$ac_objext; then
33546  ac_lo=0 ac_mid=0
33547  while :; do
33548    cat >conftest.$ac_ext <<_ACEOF
33549/* confdefs.h.  */
33550_ACEOF
33551cat confdefs.h >>conftest.$ac_ext
33552cat >>conftest.$ac_ext <<_ACEOF
33553/* end confdefs.h.  */
33554$ac_includes_default
33555int
33556main ()
33557{
33558static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) <= $ac_mid)];
33559test_array [0] = 0
33560
33561  ;
33562  return 0;
33563}
33564_ACEOF
33565rm -f conftest.$ac_objext
33566if { (ac_try="$ac_compile"
33567case "(($ac_try" in
33568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33569  *) ac_try_echo=$ac_try;;
33570esac
33571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33572$as_echo "$ac_try_echo") >&5
33573  (eval "$ac_compile") 2>conftest.er1
33574  ac_status=$?
33575  grep -v '^ *+' conftest.er1 >conftest.err
33576  rm -f conftest.er1
33577  cat conftest.err >&5
33578  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33579  (exit $ac_status); } && {
33580	 test -z "$ac_cxx_werror_flag" ||
33581	 test ! -s conftest.err
33582       } && test -s conftest.$ac_objext; then
33583  ac_hi=$ac_mid; break
33584else
33585  $as_echo "$as_me: failed program was:" >&5
33586sed 's/^/| /' conftest.$ac_ext >&5
33587
33588	ac_lo=`expr $ac_mid + 1`
33589			if test $ac_lo -le $ac_mid; then
33590			  ac_lo= ac_hi=
33591			  break
33592			fi
33593			ac_mid=`expr 2 '*' $ac_mid + 1`
33594fi
33595
33596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33597  done
33598else
33599  $as_echo "$as_me: failed program was:" >&5
33600sed 's/^/| /' conftest.$ac_ext >&5
33601
33602	cat >conftest.$ac_ext <<_ACEOF
33603/* confdefs.h.  */
33604_ACEOF
33605cat confdefs.h >>conftest.$ac_ext
33606cat >>conftest.$ac_ext <<_ACEOF
33607/* end confdefs.h.  */
33608$ac_includes_default
33609int
33610main ()
33611{
33612static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) < 0)];
33613test_array [0] = 0
33614
33615  ;
33616  return 0;
33617}
33618_ACEOF
33619rm -f conftest.$ac_objext
33620if { (ac_try="$ac_compile"
33621case "(($ac_try" in
33622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33623  *) ac_try_echo=$ac_try;;
33624esac
33625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33626$as_echo "$ac_try_echo") >&5
33627  (eval "$ac_compile") 2>conftest.er1
33628  ac_status=$?
33629  grep -v '^ *+' conftest.er1 >conftest.err
33630  rm -f conftest.er1
33631  cat conftest.err >&5
33632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633  (exit $ac_status); } && {
33634	 test -z "$ac_cxx_werror_flag" ||
33635	 test ! -s conftest.err
33636       } && test -s conftest.$ac_objext; then
33637  ac_hi=-1 ac_mid=-1
33638  while :; do
33639    cat >conftest.$ac_ext <<_ACEOF
33640/* confdefs.h.  */
33641_ACEOF
33642cat confdefs.h >>conftest.$ac_ext
33643cat >>conftest.$ac_ext <<_ACEOF
33644/* end confdefs.h.  */
33645$ac_includes_default
33646int
33647main ()
33648{
33649static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) >= $ac_mid)];
33650test_array [0] = 0
33651
33652  ;
33653  return 0;
33654}
33655_ACEOF
33656rm -f conftest.$ac_objext
33657if { (ac_try="$ac_compile"
33658case "(($ac_try" in
33659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33660  *) ac_try_echo=$ac_try;;
33661esac
33662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33663$as_echo "$ac_try_echo") >&5
33664  (eval "$ac_compile") 2>conftest.er1
33665  ac_status=$?
33666  grep -v '^ *+' conftest.er1 >conftest.err
33667  rm -f conftest.er1
33668  cat conftest.err >&5
33669  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670  (exit $ac_status); } && {
33671	 test -z "$ac_cxx_werror_flag" ||
33672	 test ! -s conftest.err
33673       } && test -s conftest.$ac_objext; then
33674  ac_lo=$ac_mid; break
33675else
33676  $as_echo "$as_me: failed program was:" >&5
33677sed 's/^/| /' conftest.$ac_ext >&5
33678
33679	ac_hi=`expr '(' $ac_mid ')' - 1`
33680			if test $ac_mid -le $ac_hi; then
33681			  ac_lo= ac_hi=
33682			  break
33683			fi
33684			ac_mid=`expr 2 '*' $ac_mid`
33685fi
33686
33687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33688  done
33689else
33690  $as_echo "$as_me: failed program was:" >&5
33691sed 's/^/| /' conftest.$ac_ext >&5
33692
33693	ac_lo= ac_hi=
33694fi
33695
33696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33697fi
33698
33699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33700# Binary search between lo and hi bounds.
33701while test "x$ac_lo" != "x$ac_hi"; do
33702  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33703  cat >conftest.$ac_ext <<_ACEOF
33704/* confdefs.h.  */
33705_ACEOF
33706cat confdefs.h >>conftest.$ac_ext
33707cat >>conftest.$ac_ext <<_ACEOF
33708/* end confdefs.h.  */
33709$ac_includes_default
33710int
33711main ()
33712{
33713static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) <= $ac_mid)];
33714test_array [0] = 0
33715
33716  ;
33717  return 0;
33718}
33719_ACEOF
33720rm -f conftest.$ac_objext
33721if { (ac_try="$ac_compile"
33722case "(($ac_try" in
33723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33724  *) ac_try_echo=$ac_try;;
33725esac
33726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33727$as_echo "$ac_try_echo") >&5
33728  (eval "$ac_compile") 2>conftest.er1
33729  ac_status=$?
33730  grep -v '^ *+' conftest.er1 >conftest.err
33731  rm -f conftest.er1
33732  cat conftest.err >&5
33733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734  (exit $ac_status); } && {
33735	 test -z "$ac_cxx_werror_flag" ||
33736	 test ! -s conftest.err
33737       } && test -s conftest.$ac_objext; then
33738  ac_hi=$ac_mid
33739else
33740  $as_echo "$as_me: failed program was:" >&5
33741sed 's/^/| /' conftest.$ac_ext >&5
33742
33743	ac_lo=`expr '(' $ac_mid ')' + 1`
33744fi
33745
33746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33747done
33748case $ac_lo in
33749?*) ac_cv_sizeof_unsigned_long_long_int=$ac_lo;;
33750'') if test "$ac_cv_type_unsigned_long_long_int" = yes; then
33751     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33753{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
33754See \`config.log' for more details." >&5
33755$as_echo "$as_me: error: cannot compute sizeof (unsigned long long int)
33756See \`config.log' for more details." >&2;}
33757   { (exit 77); exit 77; }; }; }
33758   else
33759     ac_cv_sizeof_unsigned_long_long_int=0
33760   fi ;;
33761esac
33762else
33763  cat >conftest.$ac_ext <<_ACEOF
33764/* confdefs.h.  */
33765_ACEOF
33766cat confdefs.h >>conftest.$ac_ext
33767cat >>conftest.$ac_ext <<_ACEOF
33768/* end confdefs.h.  */
33769$ac_includes_default
33770static long int longval () { return (long int) (sizeof (unsigned long long int)); }
33771static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long int)); }
33772#include <stdio.h>
33773#include <stdlib.h>
33774int
33775main ()
33776{
33777
33778  FILE *f = fopen ("conftest.val", "w");
33779  if (! f)
33780    return 1;
33781  if (((long int) (sizeof (unsigned long long int))) < 0)
33782    {
33783      long int i = longval ();
33784      if (i != ((long int) (sizeof (unsigned long long int))))
33785	return 1;
33786      fprintf (f, "%ld", i);
33787    }
33788  else
33789    {
33790      unsigned long int i = ulongval ();
33791      if (i != ((long int) (sizeof (unsigned long long int))))
33792	return 1;
33793      fprintf (f, "%lu", i);
33794    }
33795  /* Do not output a trailing newline, as this causes \r\n confusion
33796     on some platforms.  */
33797  return ferror (f) || fclose (f) != 0;
33798
33799  ;
33800  return 0;
33801}
33802_ACEOF
33803rm -f conftest$ac_exeext
33804if { (ac_try="$ac_link"
33805case "(($ac_try" in
33806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33807  *) ac_try_echo=$ac_try;;
33808esac
33809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33810$as_echo "$ac_try_echo") >&5
33811  (eval "$ac_link") 2>&5
33812  ac_status=$?
33813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33815  { (case "(($ac_try" in
33816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33817  *) ac_try_echo=$ac_try;;
33818esac
33819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33820$as_echo "$ac_try_echo") >&5
33821  (eval "$ac_try") 2>&5
33822  ac_status=$?
33823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824  (exit $ac_status); }; }; then
33825  ac_cv_sizeof_unsigned_long_long_int=`cat conftest.val`
33826else
33827  $as_echo "$as_me: program exited with status $ac_status" >&5
33828$as_echo "$as_me: failed program was:" >&5
33829sed 's/^/| /' conftest.$ac_ext >&5
33830
33831( exit $ac_status )
33832if test "$ac_cv_type_unsigned_long_long_int" = yes; then
33833     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33835{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
33836See \`config.log' for more details." >&5
33837$as_echo "$as_me: error: cannot compute sizeof (unsigned long long int)
33838See \`config.log' for more details." >&2;}
33839   { (exit 77); exit 77; }; }; }
33840   else
33841     ac_cv_sizeof_unsigned_long_long_int=0
33842   fi
33843fi
33844rm -rf conftest.dSYM
33845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33846fi
33847rm -f conftest.val
33848fi
33849{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
33850$as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
33851
33852
33853
33854cat >>confdefs.h <<_ACEOF
33855#define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
33856_ACEOF
33857
33858
33859
33860for ac_header in stdint.h
33861do
33862as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33864  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33865$as_echo_n "checking for $ac_header... " >&6; }
33866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33867  $as_echo_n "(cached) " >&6
33868fi
33869ac_res=`eval 'as_val=${'$as_ac_Header'}
33870		 $as_echo "$as_val"'`
33871	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33872$as_echo "$ac_res" >&6; }
33873else
33874  # Is the header compilable?
33875{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33876$as_echo_n "checking $ac_header usability... " >&6; }
33877cat >conftest.$ac_ext <<_ACEOF
33878/* confdefs.h.  */
33879_ACEOF
33880cat confdefs.h >>conftest.$ac_ext
33881cat >>conftest.$ac_ext <<_ACEOF
33882/* end confdefs.h.  */
33883$ac_includes_default
33884#include <$ac_header>
33885_ACEOF
33886rm -f conftest.$ac_objext
33887if { (ac_try="$ac_compile"
33888case "(($ac_try" in
33889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890  *) ac_try_echo=$ac_try;;
33891esac
33892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33893$as_echo "$ac_try_echo") >&5
33894  (eval "$ac_compile") 2>conftest.er1
33895  ac_status=$?
33896  grep -v '^ *+' conftest.er1 >conftest.err
33897  rm -f conftest.er1
33898  cat conftest.err >&5
33899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900  (exit $ac_status); } && {
33901	 test -z "$ac_cxx_werror_flag" ||
33902	 test ! -s conftest.err
33903       } && test -s conftest.$ac_objext; then
33904  ac_header_compiler=yes
33905else
33906  $as_echo "$as_me: failed program was:" >&5
33907sed 's/^/| /' conftest.$ac_ext >&5
33908
33909	ac_header_compiler=no
33910fi
33911
33912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33913{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33914$as_echo "$ac_header_compiler" >&6; }
33915
33916# Is the header present?
33917{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33918$as_echo_n "checking $ac_header presence... " >&6; }
33919cat >conftest.$ac_ext <<_ACEOF
33920/* confdefs.h.  */
33921_ACEOF
33922cat confdefs.h >>conftest.$ac_ext
33923cat >>conftest.$ac_ext <<_ACEOF
33924/* end confdefs.h.  */
33925#include <$ac_header>
33926_ACEOF
33927if { (ac_try="$ac_cpp conftest.$ac_ext"
33928case "(($ac_try" in
33929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930  *) ac_try_echo=$ac_try;;
33931esac
33932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33933$as_echo "$ac_try_echo") >&5
33934  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33935  ac_status=$?
33936  grep -v '^ *+' conftest.er1 >conftest.err
33937  rm -f conftest.er1
33938  cat conftest.err >&5
33939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940  (exit $ac_status); } >/dev/null && {
33941	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33942	 test ! -s conftest.err
33943       }; then
33944  ac_header_preproc=yes
33945else
33946  $as_echo "$as_me: failed program was:" >&5
33947sed 's/^/| /' conftest.$ac_ext >&5
33948
33949  ac_header_preproc=no
33950fi
33951
33952rm -f conftest.err conftest.$ac_ext
33953{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33954$as_echo "$ac_header_preproc" >&6; }
33955
33956# So?  What about this header?
33957case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
33958  yes:no: )
33959    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33960$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33961    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33962$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33963    ac_header_preproc=yes
33964    ;;
33965  no:yes:* )
33966    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33967$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33968    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33969$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33970    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33971$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33972    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33973$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33974    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33975$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33976    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33977$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33978    ( cat <<\_ASBOX
33979## ------------------------------------ ##
33980## Report this to suzhe@tsinghua.org.cn ##
33981## ------------------------------------ ##
33982_ASBOX
33983     ) | sed "s/^/$as_me: WARNING:     /" >&2
33984    ;;
33985esac
33986{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33987$as_echo_n "checking for $ac_header... " >&6; }
33988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33989  $as_echo_n "(cached) " >&6
33990else
33991  eval "$as_ac_Header=\$ac_header_preproc"
33992fi
33993ac_res=`eval 'as_val=${'$as_ac_Header'}
33994		 $as_echo "$as_val"'`
33995	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33996$as_echo "$ac_res" >&6; }
33997
33998fi
33999as_val=`eval 'as_val=${'$as_ac_Header'}
34000		 $as_echo "$as_val"'`
34001   if test "x$as_val" = x""yes; then
34002  cat >>confdefs.h <<_ACEOF
34003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34004_ACEOF
34005 has_stdint=yes
34006else
34007  has_stdint=no
34008fi
34009
34010done
34011
34012
34013if test x$ac_cv_sizeof_unsigned_short_int = x2 && test x$ac_cv_sizeof_char = x1 ; then
34014  :
34015else
34016  { { $as_echo "$as_me:$LINENO: error:
34017*** SCIM requires
34018***      sizeof (unsigned short int)  == 2
34019***      sizeof (char)                == 1
34020*** You might want to consider using the GNU C compiler.
34021" >&5
34022$as_echo "$as_me: error:
34023*** SCIM requires
34024***      sizeof (unsigned short int)  == 2
34025***      sizeof (char)                == 1
34026*** You might want to consider using the GNU C compiler.
34027" >&2;}
34028   { (exit 1); exit 1; }; }
34029fi
34030
34031if test x$ac_cv_sizeof_wchar_t = x0 ; then
34032  { { $as_echo "$as_me:$LINENO: error:
34033*** SCIM requires a compiler that supports wchar_t,
34034*** You might want to consider using the GNU C compiler.
34035" >&5
34036$as_echo "$as_me: error:
34037*** SCIM requires a compiler that supports wchar_t,
34038*** You might want to consider using the GNU C compiler.
34039" >&2;}
34040   { (exit 1); exit 1; }; }
34041fi
34042
34043if test x$has_stdint = xyes; then
34044  INCLUDE_STDINT="#include <stdint.h>"
34045  UINT16="uint16_t"
34046  UINT32="uint32_t"
34047  UINT64="uint64_t"
34048else
34049  INCLUDE_STDINT="//#include <stdint.h>"
34050  UINT16="unsigned short int"
34051  if test x$ac_cv_sizeof_unsigned_int = x4; then
34052    UINT32="unsigned int"
34053  else
34054    if test x$ac_cv_sizeof_unsigned_long_int = x4; then
34055      UINT32="unsigned long int"
34056    else
34057      { { $as_echo "$as_me:$LINENO: error: *** No suitable integer type for uint32 found." >&5
34058$as_echo "$as_me: error: *** No suitable integer type for uint32 found." >&2;}
34059   { (exit 1); exit 1; }; }
34060    fi
34061  fi
34062  if test x$ac_cv_sizeof_unsigned_long_long_int = x8; then
34063    UINT64="unsigned long long int"
34064  else
34065    { { $as_echo "$as_me:$LINENO: error: *** No suitable integer type for uint64 found." >&5
34066$as_echo "$as_me: error: *** No suitable integer type for uint64 found." >&2;}
34067   { (exit 1); exit 1; }; }
34068  fi
34069fi
34070
34071
34072
34073
34074
34075# Checks for library functions.
34076
34077for ac_header in stdlib.h
34078do
34079as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34081  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34082$as_echo_n "checking for $ac_header... " >&6; }
34083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34084  $as_echo_n "(cached) " >&6
34085fi
34086ac_res=`eval 'as_val=${'$as_ac_Header'}
34087		 $as_echo "$as_val"'`
34088	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34089$as_echo "$ac_res" >&6; }
34090else
34091  # Is the header compilable?
34092{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34093$as_echo_n "checking $ac_header usability... " >&6; }
34094cat >conftest.$ac_ext <<_ACEOF
34095/* confdefs.h.  */
34096_ACEOF
34097cat confdefs.h >>conftest.$ac_ext
34098cat >>conftest.$ac_ext <<_ACEOF
34099/* end confdefs.h.  */
34100$ac_includes_default
34101#include <$ac_header>
34102_ACEOF
34103rm -f conftest.$ac_objext
34104if { (ac_try="$ac_compile"
34105case "(($ac_try" in
34106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34107  *) ac_try_echo=$ac_try;;
34108esac
34109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34110$as_echo "$ac_try_echo") >&5
34111  (eval "$ac_compile") 2>conftest.er1
34112  ac_status=$?
34113  grep -v '^ *+' conftest.er1 >conftest.err
34114  rm -f conftest.er1
34115  cat conftest.err >&5
34116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117  (exit $ac_status); } && {
34118	 test -z "$ac_cxx_werror_flag" ||
34119	 test ! -s conftest.err
34120       } && test -s conftest.$ac_objext; then
34121  ac_header_compiler=yes
34122else
34123  $as_echo "$as_me: failed program was:" >&5
34124sed 's/^/| /' conftest.$ac_ext >&5
34125
34126	ac_header_compiler=no
34127fi
34128
34129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34130{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34131$as_echo "$ac_header_compiler" >&6; }
34132
34133# Is the header present?
34134{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34135$as_echo_n "checking $ac_header presence... " >&6; }
34136cat >conftest.$ac_ext <<_ACEOF
34137/* confdefs.h.  */
34138_ACEOF
34139cat confdefs.h >>conftest.$ac_ext
34140cat >>conftest.$ac_ext <<_ACEOF
34141/* end confdefs.h.  */
34142#include <$ac_header>
34143_ACEOF
34144if { (ac_try="$ac_cpp conftest.$ac_ext"
34145case "(($ac_try" in
34146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34147  *) ac_try_echo=$ac_try;;
34148esac
34149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34150$as_echo "$ac_try_echo") >&5
34151  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34152  ac_status=$?
34153  grep -v '^ *+' conftest.er1 >conftest.err
34154  rm -f conftest.er1
34155  cat conftest.err >&5
34156  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157  (exit $ac_status); } >/dev/null && {
34158	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
34159	 test ! -s conftest.err
34160       }; then
34161  ac_header_preproc=yes
34162else
34163  $as_echo "$as_me: failed program was:" >&5
34164sed 's/^/| /' conftest.$ac_ext >&5
34165
34166  ac_header_preproc=no
34167fi
34168
34169rm -f conftest.err conftest.$ac_ext
34170{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34171$as_echo "$ac_header_preproc" >&6; }
34172
34173# So?  What about this header?
34174case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
34175  yes:no: )
34176    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34177$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34178    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34179$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34180    ac_header_preproc=yes
34181    ;;
34182  no:yes:* )
34183    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34184$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34185    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34186$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34187    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34188$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34189    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34190$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34191    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34192$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34193    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34194$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34195    ( cat <<\_ASBOX
34196## ------------------------------------ ##
34197## Report this to suzhe@tsinghua.org.cn ##
34198## ------------------------------------ ##
34199_ASBOX
34200     ) | sed "s/^/$as_me: WARNING:     /" >&2
34201    ;;
34202esac
34203{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34204$as_echo_n "checking for $ac_header... " >&6; }
34205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34206  $as_echo_n "(cached) " >&6
34207else
34208  eval "$as_ac_Header=\$ac_header_preproc"
34209fi
34210ac_res=`eval 'as_val=${'$as_ac_Header'}
34211		 $as_echo "$as_val"'`
34212	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34213$as_echo "$ac_res" >&6; }
34214
34215fi
34216as_val=`eval 'as_val=${'$as_ac_Header'}
34217		 $as_echo "$as_val"'`
34218   if test "x$as_val" = x""yes; then
34219  cat >>confdefs.h <<_ACEOF
34220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34221_ACEOF
34222
34223fi
34224
34225done
34226
34227{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
34228$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
34229if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
34230  $as_echo_n "(cached) " >&6
34231else
34232  if test "$cross_compiling" = yes; then
34233  ac_cv_func_malloc_0_nonnull=no
34234else
34235  cat >conftest.$ac_ext <<_ACEOF
34236/* confdefs.h.  */
34237_ACEOF
34238cat confdefs.h >>conftest.$ac_ext
34239cat >>conftest.$ac_ext <<_ACEOF
34240/* end confdefs.h.  */
34241#if defined STDC_HEADERS || defined HAVE_STDLIB_H
34242# include <stdlib.h>
34243#else
34244char *malloc ();
34245#endif
34246
34247int
34248main ()
34249{
34250return ! malloc (0);
34251  ;
34252  return 0;
34253}
34254_ACEOF
34255rm -f conftest$ac_exeext
34256if { (ac_try="$ac_link"
34257case "(($ac_try" in
34258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259  *) ac_try_echo=$ac_try;;
34260esac
34261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34262$as_echo "$ac_try_echo") >&5
34263  (eval "$ac_link") 2>&5
34264  ac_status=$?
34265  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34267  { (case "(($ac_try" in
34268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34269  *) ac_try_echo=$ac_try;;
34270esac
34271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34272$as_echo "$ac_try_echo") >&5
34273  (eval "$ac_try") 2>&5
34274  ac_status=$?
34275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276  (exit $ac_status); }; }; then
34277  ac_cv_func_malloc_0_nonnull=yes
34278else
34279  $as_echo "$as_me: program exited with status $ac_status" >&5
34280$as_echo "$as_me: failed program was:" >&5
34281sed 's/^/| /' conftest.$ac_ext >&5
34282
34283( exit $ac_status )
34284ac_cv_func_malloc_0_nonnull=no
34285fi
34286rm -rf conftest.dSYM
34287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34288fi
34289
34290
34291fi
34292{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
34293$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
34294if test $ac_cv_func_malloc_0_nonnull = yes; then
34295
34296cat >>confdefs.h <<\_ACEOF
34297#define HAVE_MALLOC 1
34298_ACEOF
34299
34300else
34301  cat >>confdefs.h <<\_ACEOF
34302#define HAVE_MALLOC 0
34303_ACEOF
34304
34305   case " $LIBOBJS " in
34306  *" malloc.$ac_objext "* ) ;;
34307  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
34308 ;;
34309esac
34310
34311
34312cat >>confdefs.h <<\_ACEOF
34313#define malloc rpl_malloc
34314_ACEOF
34315
34316fi
34317
34318
34319
34320
34321
34322
34323
34324
34325
34326for ac_func in gettimeofday memmove memset nl_langinfo setlocale daemon
34327do
34328as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34329{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34330$as_echo_n "checking for $ac_func... " >&6; }
34331if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34332  $as_echo_n "(cached) " >&6
34333else
34334  cat >conftest.$ac_ext <<_ACEOF
34335/* confdefs.h.  */
34336_ACEOF
34337cat confdefs.h >>conftest.$ac_ext
34338cat >>conftest.$ac_ext <<_ACEOF
34339/* end confdefs.h.  */
34340/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34341   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34342#define $ac_func innocuous_$ac_func
34343
34344/* System header to define __stub macros and hopefully few prototypes,
34345    which can conflict with char $ac_func (); below.
34346    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34347    <limits.h> exists even on freestanding compilers.  */
34348
34349#ifdef __STDC__
34350# include <limits.h>
34351#else
34352# include <assert.h>
34353#endif
34354
34355#undef $ac_func
34356
34357/* Override any GCC internal prototype to avoid an error.
34358   Use char because int might match the return type of a GCC
34359   builtin and then its argument prototype would still apply.  */
34360#ifdef __cplusplus
34361extern "C"
34362#endif
34363char $ac_func ();
34364/* The GNU C library defines this for functions which it implements
34365    to always fail with ENOSYS.  Some functions are actually named
34366    something starting with __ and the normal name is an alias.  */
34367#if defined __stub_$ac_func || defined __stub___$ac_func
34368choke me
34369#endif
34370
34371int
34372main ()
34373{
34374return $ac_func ();
34375  ;
34376  return 0;
34377}
34378_ACEOF
34379rm -f conftest.$ac_objext conftest$ac_exeext
34380if { (ac_try="$ac_link"
34381case "(($ac_try" in
34382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34383  *) ac_try_echo=$ac_try;;
34384esac
34385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34386$as_echo "$ac_try_echo") >&5
34387  (eval "$ac_link") 2>conftest.er1
34388  ac_status=$?
34389  grep -v '^ *+' conftest.er1 >conftest.err
34390  rm -f conftest.er1
34391  cat conftest.err >&5
34392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393  (exit $ac_status); } && {
34394	 test -z "$ac_cxx_werror_flag" ||
34395	 test ! -s conftest.err
34396       } && test -s conftest$ac_exeext && {
34397	 test "$cross_compiling" = yes ||
34398	 $as_test_x conftest$ac_exeext
34399       }; then
34400  eval "$as_ac_var=yes"
34401else
34402  $as_echo "$as_me: failed program was:" >&5
34403sed 's/^/| /' conftest.$ac_ext >&5
34404
34405	eval "$as_ac_var=no"
34406fi
34407
34408rm -rf conftest.dSYM
34409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34410      conftest$ac_exeext conftest.$ac_ext
34411fi
34412ac_res=`eval 'as_val=${'$as_ac_var'}
34413		 $as_echo "$as_val"'`
34414	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34415$as_echo "$ac_res" >&6; }
34416as_val=`eval 'as_val=${'$as_ac_var'}
34417		 $as_echo "$as_val"'`
34418   if test "x$as_val" = x""yes; then
34419  cat >>confdefs.h <<_ACEOF
34420#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34421_ACEOF
34422
34423fi
34424done
34425
34426
34427
34428
34429for ac_func in opendir closedir readdir
34430do
34431as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34432{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34433$as_echo_n "checking for $ac_func... " >&6; }
34434if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34435  $as_echo_n "(cached) " >&6
34436else
34437  cat >conftest.$ac_ext <<_ACEOF
34438/* confdefs.h.  */
34439_ACEOF
34440cat confdefs.h >>conftest.$ac_ext
34441cat >>conftest.$ac_ext <<_ACEOF
34442/* end confdefs.h.  */
34443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34444   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34445#define $ac_func innocuous_$ac_func
34446
34447/* System header to define __stub macros and hopefully few prototypes,
34448    which can conflict with char $ac_func (); below.
34449    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34450    <limits.h> exists even on freestanding compilers.  */
34451
34452#ifdef __STDC__
34453# include <limits.h>
34454#else
34455# include <assert.h>
34456#endif
34457
34458#undef $ac_func
34459
34460/* Override any GCC internal prototype to avoid an error.
34461   Use char because int might match the return type of a GCC
34462   builtin and then its argument prototype would still apply.  */
34463#ifdef __cplusplus
34464extern "C"
34465#endif
34466char $ac_func ();
34467/* The GNU C library defines this for functions which it implements
34468    to always fail with ENOSYS.  Some functions are actually named
34469    something starting with __ and the normal name is an alias.  */
34470#if defined __stub_$ac_func || defined __stub___$ac_func
34471choke me
34472#endif
34473
34474int
34475main ()
34476{
34477return $ac_func ();
34478  ;
34479  return 0;
34480}
34481_ACEOF
34482rm -f conftest.$ac_objext conftest$ac_exeext
34483if { (ac_try="$ac_link"
34484case "(($ac_try" in
34485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486  *) ac_try_echo=$ac_try;;
34487esac
34488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34489$as_echo "$ac_try_echo") >&5
34490  (eval "$ac_link") 2>conftest.er1
34491  ac_status=$?
34492  grep -v '^ *+' conftest.er1 >conftest.err
34493  rm -f conftest.er1
34494  cat conftest.err >&5
34495  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34496  (exit $ac_status); } && {
34497	 test -z "$ac_cxx_werror_flag" ||
34498	 test ! -s conftest.err
34499       } && test -s conftest$ac_exeext && {
34500	 test "$cross_compiling" = yes ||
34501	 $as_test_x conftest$ac_exeext
34502       }; then
34503  eval "$as_ac_var=yes"
34504else
34505  $as_echo "$as_me: failed program was:" >&5
34506sed 's/^/| /' conftest.$ac_ext >&5
34507
34508	eval "$as_ac_var=no"
34509fi
34510
34511rm -rf conftest.dSYM
34512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34513      conftest$ac_exeext conftest.$ac_ext
34514fi
34515ac_res=`eval 'as_val=${'$as_ac_var'}
34516		 $as_echo "$as_val"'`
34517	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34518$as_echo "$ac_res" >&6; }
34519as_val=`eval 'as_val=${'$as_ac_var'}
34520		 $as_echo "$as_val"'`
34521   if test "x$as_val" = x""yes; then
34522  cat >>confdefs.h <<_ACEOF
34523#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34524_ACEOF
34525
34526fi
34527done
34528
34529
34530
34531for ac_func in usleep nanosleep
34532do
34533as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34534{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34535$as_echo_n "checking for $ac_func... " >&6; }
34536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34537  $as_echo_n "(cached) " >&6
34538else
34539  cat >conftest.$ac_ext <<_ACEOF
34540/* confdefs.h.  */
34541_ACEOF
34542cat confdefs.h >>conftest.$ac_ext
34543cat >>conftest.$ac_ext <<_ACEOF
34544/* end confdefs.h.  */
34545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34546   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34547#define $ac_func innocuous_$ac_func
34548
34549/* System header to define __stub macros and hopefully few prototypes,
34550    which can conflict with char $ac_func (); below.
34551    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34552    <limits.h> exists even on freestanding compilers.  */
34553
34554#ifdef __STDC__
34555# include <limits.h>
34556#else
34557# include <assert.h>
34558#endif
34559
34560#undef $ac_func
34561
34562/* Override any GCC internal prototype to avoid an error.
34563   Use char because int might match the return type of a GCC
34564   builtin and then its argument prototype would still apply.  */
34565#ifdef __cplusplus
34566extern "C"
34567#endif
34568char $ac_func ();
34569/* The GNU C library defines this for functions which it implements
34570    to always fail with ENOSYS.  Some functions are actually named
34571    something starting with __ and the normal name is an alias.  */
34572#if defined __stub_$ac_func || defined __stub___$ac_func
34573choke me
34574#endif
34575
34576int
34577main ()
34578{
34579return $ac_func ();
34580  ;
34581  return 0;
34582}
34583_ACEOF
34584rm -f conftest.$ac_objext conftest$ac_exeext
34585if { (ac_try="$ac_link"
34586case "(($ac_try" in
34587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34588  *) ac_try_echo=$ac_try;;
34589esac
34590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34591$as_echo "$ac_try_echo") >&5
34592  (eval "$ac_link") 2>conftest.er1
34593  ac_status=$?
34594  grep -v '^ *+' conftest.er1 >conftest.err
34595  rm -f conftest.er1
34596  cat conftest.err >&5
34597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598  (exit $ac_status); } && {
34599	 test -z "$ac_cxx_werror_flag" ||
34600	 test ! -s conftest.err
34601       } && test -s conftest$ac_exeext && {
34602	 test "$cross_compiling" = yes ||
34603	 $as_test_x conftest$ac_exeext
34604       }; then
34605  eval "$as_ac_var=yes"
34606else
34607  $as_echo "$as_me: failed program was:" >&5
34608sed 's/^/| /' conftest.$ac_ext >&5
34609
34610	eval "$as_ac_var=no"
34611fi
34612
34613rm -rf conftest.dSYM
34614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34615      conftest$ac_exeext conftest.$ac_ext
34616fi
34617ac_res=`eval 'as_val=${'$as_ac_var'}
34618		 $as_echo "$as_val"'`
34619	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34620$as_echo "$ac_res" >&6; }
34621as_val=`eval 'as_val=${'$as_ac_var'}
34622		 $as_echo "$as_val"'`
34623   if test "x$as_val" = x""yes; then
34624  cat >>confdefs.h <<_ACEOF
34625#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34626_ACEOF
34627
34628fi
34629done
34630
34631
34632
34633
34634
34635
34636
34637
34638for ac_func in gethostbyname gethostbyname_r socket bind accept connect listen
34639do
34640as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34641{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34642$as_echo_n "checking for $ac_func... " >&6; }
34643if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34644  $as_echo_n "(cached) " >&6
34645else
34646  cat >conftest.$ac_ext <<_ACEOF
34647/* confdefs.h.  */
34648_ACEOF
34649cat confdefs.h >>conftest.$ac_ext
34650cat >>conftest.$ac_ext <<_ACEOF
34651/* end confdefs.h.  */
34652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34653   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34654#define $ac_func innocuous_$ac_func
34655
34656/* System header to define __stub macros and hopefully few prototypes,
34657    which can conflict with char $ac_func (); below.
34658    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34659    <limits.h> exists even on freestanding compilers.  */
34660
34661#ifdef __STDC__
34662# include <limits.h>
34663#else
34664# include <assert.h>
34665#endif
34666
34667#undef $ac_func
34668
34669/* Override any GCC internal prototype to avoid an error.
34670   Use char because int might match the return type of a GCC
34671   builtin and then its argument prototype would still apply.  */
34672#ifdef __cplusplus
34673extern "C"
34674#endif
34675char $ac_func ();
34676/* The GNU C library defines this for functions which it implements
34677    to always fail with ENOSYS.  Some functions are actually named
34678    something starting with __ and the normal name is an alias.  */
34679#if defined __stub_$ac_func || defined __stub___$ac_func
34680choke me
34681#endif
34682
34683int
34684main ()
34685{
34686return $ac_func ();
34687  ;
34688  return 0;
34689}
34690_ACEOF
34691rm -f conftest.$ac_objext conftest$ac_exeext
34692if { (ac_try="$ac_link"
34693case "(($ac_try" in
34694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34695  *) ac_try_echo=$ac_try;;
34696esac
34697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34698$as_echo "$ac_try_echo") >&5
34699  (eval "$ac_link") 2>conftest.er1
34700  ac_status=$?
34701  grep -v '^ *+' conftest.er1 >conftest.err
34702  rm -f conftest.er1
34703  cat conftest.err >&5
34704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705  (exit $ac_status); } && {
34706	 test -z "$ac_cxx_werror_flag" ||
34707	 test ! -s conftest.err
34708       } && test -s conftest$ac_exeext && {
34709	 test "$cross_compiling" = yes ||
34710	 $as_test_x conftest$ac_exeext
34711       }; then
34712  eval "$as_ac_var=yes"
34713else
34714  $as_echo "$as_me: failed program was:" >&5
34715sed 's/^/| /' conftest.$ac_ext >&5
34716
34717	eval "$as_ac_var=no"
34718fi
34719
34720rm -rf conftest.dSYM
34721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34722      conftest$ac_exeext conftest.$ac_ext
34723fi
34724ac_res=`eval 'as_val=${'$as_ac_var'}
34725		 $as_echo "$as_val"'`
34726	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34727$as_echo "$ac_res" >&6; }
34728as_val=`eval 'as_val=${'$as_ac_var'}
34729		 $as_echo "$as_val"'`
34730   if test "x$as_val" = x""yes; then
34731  cat >>confdefs.h <<_ACEOF
34732#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34733_ACEOF
34734 socket_ok=yes
34735else
34736  socket_ok=no
34737fi
34738done
34739
34740
34741
34742
34743
34744
34745
34746          am_save_CPPFLAGS="$CPPFLAGS"
34747
34748  for element in $INCICONV; do
34749    haveit=
34750    for x in $CPPFLAGS; do
34751
34752  acl_save_prefix="$prefix"
34753  prefix="$acl_final_prefix"
34754  acl_save_exec_prefix="$exec_prefix"
34755  exec_prefix="$acl_final_exec_prefix"
34756  eval x=\"$x\"
34757  exec_prefix="$acl_save_exec_prefix"
34758  prefix="$acl_save_prefix"
34759
34760      if test "X$x" = "X$element"; then
34761        haveit=yes
34762        break
34763      fi
34764    done
34765    if test -z "$haveit"; then
34766      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
34767    fi
34768  done
34769
34770
34771  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
34772$as_echo_n "checking for iconv... " >&6; }
34773if test "${am_cv_func_iconv+set}" = set; then
34774  $as_echo_n "(cached) " >&6
34775else
34776
34777    am_cv_func_iconv="no, consider installing GNU libiconv"
34778    am_cv_lib_iconv=no
34779    cat >conftest.$ac_ext <<_ACEOF
34780/* confdefs.h.  */
34781_ACEOF
34782cat confdefs.h >>conftest.$ac_ext
34783cat >>conftest.$ac_ext <<_ACEOF
34784/* end confdefs.h.  */
34785#include <stdlib.h>
34786#include <iconv.h>
34787int
34788main ()
34789{
34790iconv_t cd = iconv_open("","");
34791       iconv(cd,NULL,NULL,NULL,NULL);
34792       iconv_close(cd);
34793  ;
34794  return 0;
34795}
34796_ACEOF
34797rm -f conftest.$ac_objext conftest$ac_exeext
34798if { (ac_try="$ac_link"
34799case "(($ac_try" in
34800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34801  *) ac_try_echo=$ac_try;;
34802esac
34803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34804$as_echo "$ac_try_echo") >&5
34805  (eval "$ac_link") 2>conftest.er1
34806  ac_status=$?
34807  grep -v '^ *+' conftest.er1 >conftest.err
34808  rm -f conftest.er1
34809  cat conftest.err >&5
34810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811  (exit $ac_status); } && {
34812	 test -z "$ac_cxx_werror_flag" ||
34813	 test ! -s conftest.err
34814       } && test -s conftest$ac_exeext && {
34815	 test "$cross_compiling" = yes ||
34816	 $as_test_x conftest$ac_exeext
34817       }; then
34818  am_cv_func_iconv=yes
34819else
34820  $as_echo "$as_me: failed program was:" >&5
34821sed 's/^/| /' conftest.$ac_ext >&5
34822
34823
34824fi
34825
34826rm -rf conftest.dSYM
34827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34828      conftest$ac_exeext conftest.$ac_ext
34829    if test "$am_cv_func_iconv" != yes; then
34830      am_save_LIBS="$LIBS"
34831      LIBS="$LIBS $LIBICONV"
34832      cat >conftest.$ac_ext <<_ACEOF
34833/* confdefs.h.  */
34834_ACEOF
34835cat confdefs.h >>conftest.$ac_ext
34836cat >>conftest.$ac_ext <<_ACEOF
34837/* end confdefs.h.  */
34838#include <stdlib.h>
34839#include <iconv.h>
34840int
34841main ()
34842{
34843iconv_t cd = iconv_open("","");
34844         iconv(cd,NULL,NULL,NULL,NULL);
34845         iconv_close(cd);
34846  ;
34847  return 0;
34848}
34849_ACEOF
34850rm -f conftest.$ac_objext conftest$ac_exeext
34851if { (ac_try="$ac_link"
34852case "(($ac_try" in
34853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854  *) ac_try_echo=$ac_try;;
34855esac
34856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34857$as_echo "$ac_try_echo") >&5
34858  (eval "$ac_link") 2>conftest.er1
34859  ac_status=$?
34860  grep -v '^ *+' conftest.er1 >conftest.err
34861  rm -f conftest.er1
34862  cat conftest.err >&5
34863  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864  (exit $ac_status); } && {
34865	 test -z "$ac_cxx_werror_flag" ||
34866	 test ! -s conftest.err
34867       } && test -s conftest$ac_exeext && {
34868	 test "$cross_compiling" = yes ||
34869	 $as_test_x conftest$ac_exeext
34870       }; then
34871  am_cv_lib_iconv=yes
34872        am_cv_func_iconv=yes
34873else
34874  $as_echo "$as_me: failed program was:" >&5
34875sed 's/^/| /' conftest.$ac_ext >&5
34876
34877
34878fi
34879
34880rm -rf conftest.dSYM
34881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34882      conftest$ac_exeext conftest.$ac_ext
34883      LIBS="$am_save_LIBS"
34884    fi
34885
34886fi
34887{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34888$as_echo "$am_cv_func_iconv" >&6; }
34889  if test "$am_cv_func_iconv" = yes; then
34890
34891cat >>confdefs.h <<\_ACEOF
34892#define HAVE_ICONV 1
34893_ACEOF
34894
34895  fi
34896  if test "$am_cv_lib_iconv" = yes; then
34897    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34898$as_echo_n "checking how to link with libiconv... " >&6; }
34899    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
34900$as_echo "$LIBICONV" >&6; }
34901  else
34902            CPPFLAGS="$am_save_CPPFLAGS"
34903    LIBICONV=
34904    LTLIBICONV=
34905  fi
34906
34907
34908
34909  if test "$am_cv_func_iconv" = yes; then
34910    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
34911$as_echo_n "checking for iconv declaration... " >&6; }
34912    if test "${am_cv_proto_iconv+set}" = set; then
34913  $as_echo_n "(cached) " >&6
34914else
34915
34916      cat >conftest.$ac_ext <<_ACEOF
34917/* confdefs.h.  */
34918_ACEOF
34919cat confdefs.h >>conftest.$ac_ext
34920cat >>conftest.$ac_ext <<_ACEOF
34921/* end confdefs.h.  */
34922
34923#include <stdlib.h>
34924#include <iconv.h>
34925extern
34926#ifdef __cplusplus
34927"C"
34928#endif
34929#if defined(__STDC__) || defined(__cplusplus)
34930size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34931#else
34932size_t iconv();
34933#endif
34934
34935int
34936main ()
34937{
34938
34939  ;
34940  return 0;
34941}
34942_ACEOF
34943rm -f conftest.$ac_objext
34944if { (ac_try="$ac_compile"
34945case "(($ac_try" in
34946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34947  *) ac_try_echo=$ac_try;;
34948esac
34949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34950$as_echo "$ac_try_echo") >&5
34951  (eval "$ac_compile") 2>conftest.er1
34952  ac_status=$?
34953  grep -v '^ *+' conftest.er1 >conftest.err
34954  rm -f conftest.er1
34955  cat conftest.err >&5
34956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957  (exit $ac_status); } && {
34958	 test -z "$ac_cxx_werror_flag" ||
34959	 test ! -s conftest.err
34960       } && test -s conftest.$ac_objext; then
34961  am_cv_proto_iconv_arg1=""
34962else
34963  $as_echo "$as_me: failed program was:" >&5
34964sed 's/^/| /' conftest.$ac_ext >&5
34965
34966	am_cv_proto_iconv_arg1="const"
34967fi
34968
34969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34970      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
34971fi
34972
34973    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
34974    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
34975         }$am_cv_proto_iconv" >&5
34976$as_echo "${ac_t:-
34977         }$am_cv_proto_iconv" >&6; }
34978
34979cat >>confdefs.h <<_ACEOF
34980#define ICONV_CONST $am_cv_proto_iconv_arg1
34981_ACEOF
34982
34983  fi
34984
34985
34986
34987
34988if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
34989	if test -n "$ac_tool_prefix"; then
34990  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34991set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34992{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34993$as_echo_n "checking for $ac_word... " >&6; }
34994if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34995  $as_echo_n "(cached) " >&6
34996else
34997  case $PKG_CONFIG in
34998  [\\/]* | ?:[\\/]*)
34999  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35000  ;;
35001  *)
35002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35003for as_dir in $PATH
35004do
35005  IFS=$as_save_IFS
35006  test -z "$as_dir" && as_dir=.
35007  for ac_exec_ext in '' $ac_executable_extensions; do
35008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35009    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35010    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35011    break 2
35012  fi
35013done
35014done
35015IFS=$as_save_IFS
35016
35017  ;;
35018esac
35019fi
35020PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35021if test -n "$PKG_CONFIG"; then
35022  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35023$as_echo "$PKG_CONFIG" >&6; }
35024else
35025  { $as_echo "$as_me:$LINENO: result: no" >&5
35026$as_echo "no" >&6; }
35027fi
35028
35029
35030fi
35031if test -z "$ac_cv_path_PKG_CONFIG"; then
35032  ac_pt_PKG_CONFIG=$PKG_CONFIG
35033  # Extract the first word of "pkg-config", so it can be a program name with args.
35034set dummy pkg-config; ac_word=$2
35035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35036$as_echo_n "checking for $ac_word... " >&6; }
35037if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35038  $as_echo_n "(cached) " >&6
35039else
35040  case $ac_pt_PKG_CONFIG in
35041  [\\/]* | ?:[\\/]*)
35042  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35043  ;;
35044  *)
35045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35046for as_dir in $PATH
35047do
35048  IFS=$as_save_IFS
35049  test -z "$as_dir" && as_dir=.
35050  for ac_exec_ext in '' $ac_executable_extensions; do
35051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35052    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35053    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35054    break 2
35055  fi
35056done
35057done
35058IFS=$as_save_IFS
35059
35060  ;;
35061esac
35062fi
35063ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35064if test -n "$ac_pt_PKG_CONFIG"; then
35065  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35066$as_echo "$ac_pt_PKG_CONFIG" >&6; }
35067else
35068  { $as_echo "$as_me:$LINENO: result: no" >&5
35069$as_echo "no" >&6; }
35070fi
35071
35072  if test "x$ac_pt_PKG_CONFIG" = x; then
35073    PKG_CONFIG=""
35074  else
35075    case $cross_compiling:$ac_tool_warned in
35076yes:)
35077{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
35078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35079ac_tool_warned=yes ;;
35080esac
35081    PKG_CONFIG=$ac_pt_PKG_CONFIG
35082  fi
35083else
35084  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35085fi
35086
35087fi
35088if test -n "$PKG_CONFIG"; then
35089	_pkg_min_version=0.9.0
35090	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35091$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
35092	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35093		{ $as_echo "$as_me:$LINENO: result: yes" >&5
35094$as_echo "yes" >&6; }
35095	else
35096		{ $as_echo "$as_me:$LINENO: result: no" >&5
35097$as_echo "no" >&6; }
35098		PKG_CONFIG=""
35099	fi
35100
35101fi
35102
35103# Check if we should build scim-panel-gtk daemon
35104
35105pkg_failed=no
35106{ $as_echo "$as_me:$LINENO: checking for GTK2" >&5
35107$as_echo_n "checking for GTK2... " >&6; }
35108
35109if test -n "$GTK2_CFLAGS"; then
35110    pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
35111 elif test -n "$PKG_CONFIG"; then
35112    if test -n "$PKG_CONFIG" && \
35113    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0\"") >&5
35114  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0") 2>&5
35115  ac_status=$?
35116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117  (exit $ac_status); }; then
35118  pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0" 2>/dev/null`
35119else
35120  pkg_failed=yes
35121fi
35122 else
35123    pkg_failed=untried
35124fi
35125if test -n "$GTK2_LIBS"; then
35126    pkg_cv_GTK2_LIBS="$GTK2_LIBS"
35127 elif test -n "$PKG_CONFIG"; then
35128    if test -n "$PKG_CONFIG" && \
35129    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0\"") >&5
35130  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0") 2>&5
35131  ac_status=$?
35132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133  (exit $ac_status); }; then
35134  pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0" 2>/dev/null`
35135else
35136  pkg_failed=yes
35137fi
35138 else
35139    pkg_failed=untried
35140fi
35141
35142
35143
35144if test $pkg_failed = yes; then
35145
35146if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35147        _pkg_short_errors_supported=yes
35148else
35149        _pkg_short_errors_supported=no
35150fi
35151        if test $_pkg_short_errors_supported = yes; then
35152	        GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0" 2>&1`
35153        else
35154	        GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0" 2>&1`
35155        fi
35156	# Put the nasty error message in config.log where it belongs
35157	echo "$GTK2_PKG_ERRORS" >&5
35158
35159	{ $as_echo "$as_me:$LINENO: result: no" >&5
35160$as_echo "no" >&6; }
35161                SCIM_HAS_GTK2=no
35162elif test $pkg_failed = untried; then
35163	SCIM_HAS_GTK2=no
35164else
35165	GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
35166	GTK2_LIBS=$pkg_cv_GTK2_LIBS
35167        { $as_echo "$as_me:$LINENO: result: yes" >&5
35168$as_echo "yes" >&6; }
35169	SCIM_HAS_GTK2=yes
35170fi
35171
35172SCIM_HAS_GTK2_2=no
35173if test "$SCIM_HAS_GTK2" = "yes"; then
35174  if $PKG_CONFIG --exists "gtk+-2.0 >= 2.2" ; then
35175    SCIM_HAS_GTK2_2=yes
35176    GTK_VERSION=2.2.0
35177
35178cat >>confdefs.h <<\_ACEOF
35179#define GDK_MULTIHEAD_SAFE 1
35180_ACEOF
35181
35182  fi
35183  if $PKG_CONFIG --exists "gtk+-2.0 >= 2.3.5" ; then
35184    SCIM_HAS_GTK2_4=yes
35185    GTK_VERSION=2.3.5
35186
35187cat >>confdefs.h <<\_ACEOF
35188#define HAVE_GTK_DRAW_INSERTION_CURSOR 1
35189_ACEOF
35190
35191  fi
35192  GTK_BINARY_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
35193  GTK_LIBDIR=`$PKG_CONFIG --variable=libdir gtk+-2.0`
35194  if test -z "$GTK_LIBDIR)"; then
35195    GTK_LIBDIR="$libdir"
35196  fi
35197  GTK_IM_MODULEDIR=$GTK_LIBDIR/gtk-2.0/immodules
35198
35199
35200
35201
35202fi
35203
35204# Check if we have gthread
35205
35206pkg_failed=no
35207{ $as_echo "$as_me:$LINENO: checking for GTHREAD2" >&5
35208$as_echo_n "checking for GTHREAD2... " >&6; }
35209
35210if test -n "$GTHREAD2_CFLAGS"; then
35211    pkg_cv_GTHREAD2_CFLAGS="$GTHREAD2_CFLAGS"
35212 elif test -n "$PKG_CONFIG"; then
35213    if test -n "$PKG_CONFIG" && \
35214    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.0.0\"") >&5
35215  ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.0.0") 2>&5
35216  ac_status=$?
35217  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218  (exit $ac_status); }; then
35219  pkg_cv_GTHREAD2_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.0.0" 2>/dev/null`
35220else
35221  pkg_failed=yes
35222fi
35223 else
35224    pkg_failed=untried
35225fi
35226if test -n "$GTHREAD2_LIBS"; then
35227    pkg_cv_GTHREAD2_LIBS="$GTHREAD2_LIBS"
35228 elif test -n "$PKG_CONFIG"; then
35229    if test -n "$PKG_CONFIG" && \
35230    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.0.0\"") >&5
35231  ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.0.0") 2>&5
35232  ac_status=$?
35233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234  (exit $ac_status); }; then
35235  pkg_cv_GTHREAD2_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.0.0" 2>/dev/null`
35236else
35237  pkg_failed=yes
35238fi
35239 else
35240    pkg_failed=untried
35241fi
35242
35243
35244
35245if test $pkg_failed = yes; then
35246
35247if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35248        _pkg_short_errors_supported=yes
35249else
35250        _pkg_short_errors_supported=no
35251fi
35252        if test $_pkg_short_errors_supported = yes; then
35253	        GTHREAD2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0 >= 2.0.0" 2>&1`
35254        else
35255	        GTHREAD2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0 >= 2.0.0" 2>&1`
35256        fi
35257	# Put the nasty error message in config.log where it belongs
35258	echo "$GTHREAD2_PKG_ERRORS" >&5
35259
35260	{ $as_echo "$as_me:$LINENO: result: no" >&5
35261$as_echo "no" >&6; }
35262                SCIM_HAS_GTHREAD2=no
35263elif test $pkg_failed = untried; then
35264	SCIM_HAS_GTHREAD2=no
35265else
35266	GTHREAD2_CFLAGS=$pkg_cv_GTHREAD2_CFLAGS
35267	GTHREAD2_LIBS=$pkg_cv_GTHREAD2_LIBS
35268        { $as_echo "$as_me:$LINENO: result: yes" >&5
35269$as_echo "yes" >&6; }
35270	SCIM_HAS_GTHREAD2=yes
35271fi
35272
35273# Checks for X11 header files.
35274{ $as_echo "$as_me:$LINENO: checking for X" >&5
35275$as_echo_n "checking for X... " >&6; }
35276
35277
35278# Check whether --with-x was given.
35279if test "${with_x+set}" = set; then
35280  withval=$with_x;
35281fi
35282
35283# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
35284if test "x$with_x" = xno; then
35285  # The user explicitly disabled X.
35286  have_x=disabled
35287else
35288  case $x_includes,$x_libraries in #(
35289    *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
35290$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
35291   { (exit 1); exit 1; }; };; #(
35292    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
35293  $as_echo_n "(cached) " >&6
35294else
35295  # One or both of the vars are not set, and there is no cached value.
35296ac_x_includes=no ac_x_libraries=no
35297rm -f -r conftest.dir
35298if mkdir conftest.dir; then
35299  cd conftest.dir
35300  cat >Imakefile <<'_ACEOF'
35301incroot:
35302	@echo incroot='${INCROOT}'
35303usrlibdir:
35304	@echo usrlibdir='${USRLIBDIR}'
35305libdir:
35306	@echo libdir='${LIBDIR}'
35307_ACEOF
35308  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
35309    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35310    for ac_var in incroot usrlibdir libdir; do
35311      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
35312    done
35313    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
35314    for ac_extension in a so sl dylib la dll; do
35315      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
35316	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
35317	ac_im_usrlibdir=$ac_im_libdir; break
35318      fi
35319    done
35320    # Screen out bogus values from the imake configuration.  They are
35321    # bogus both because they are the default anyway, and because
35322    # using them would break gcc on systems where it needs fixed includes.
35323    case $ac_im_incroot in
35324	/usr/include) ac_x_includes= ;;
35325	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
35326    esac
35327    case $ac_im_usrlibdir in
35328	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
35329	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
35330    esac
35331  fi
35332  cd ..
35333  rm -f -r conftest.dir
35334fi
35335
35336# Standard set of common directories for X headers.
35337# Check X11 before X11Rn because it is often a symlink to the current release.
35338ac_x_header_dirs='
35339/usr/X11/include
35340/usr/X11R6/include
35341/usr/X11R5/include
35342/usr/X11R4/include
35343
35344/usr/include/X11
35345/usr/include/X11R6
35346/usr/include/X11R5
35347/usr/include/X11R4
35348
35349/usr/local/X11/include
35350/usr/local/X11R6/include
35351/usr/local/X11R5/include
35352/usr/local/X11R4/include
35353
35354/usr/local/include/X11
35355/usr/local/include/X11R6
35356/usr/local/include/X11R5
35357/usr/local/include/X11R4
35358
35359/usr/X386/include
35360/usr/x386/include
35361/usr/XFree86/include/X11
35362
35363/usr/include
35364/usr/local/include
35365/usr/unsupported/include
35366/usr/athena/include
35367/usr/local/x11r5/include
35368/usr/lpp/Xamples/include
35369
35370/usr/openwin/include
35371/usr/openwin/share/include'
35372
35373if test "$ac_x_includes" = no; then
35374  # Guess where to find include files, by looking for Xlib.h.
35375  # First, try using that file with no special directory specified.
35376  cat >conftest.$ac_ext <<_ACEOF
35377/* confdefs.h.  */
35378_ACEOF
35379cat confdefs.h >>conftest.$ac_ext
35380cat >>conftest.$ac_ext <<_ACEOF
35381/* end confdefs.h.  */
35382#include <X11/Xlib.h>
35383_ACEOF
35384if { (ac_try="$ac_cpp conftest.$ac_ext"
35385case "(($ac_try" in
35386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35387  *) ac_try_echo=$ac_try;;
35388esac
35389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35390$as_echo "$ac_try_echo") >&5
35391  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35392  ac_status=$?
35393  grep -v '^ *+' conftest.er1 >conftest.err
35394  rm -f conftest.er1
35395  cat conftest.err >&5
35396  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35397  (exit $ac_status); } >/dev/null && {
35398	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
35399	 test ! -s conftest.err
35400       }; then
35401  # We can compile using X headers with no special include directory.
35402ac_x_includes=
35403else
35404  $as_echo "$as_me: failed program was:" >&5
35405sed 's/^/| /' conftest.$ac_ext >&5
35406
35407  for ac_dir in $ac_x_header_dirs; do
35408  if test -r "$ac_dir/X11/Xlib.h"; then
35409    ac_x_includes=$ac_dir
35410    break
35411  fi
35412done
35413fi
35414
35415rm -f conftest.err conftest.$ac_ext
35416fi # $ac_x_includes = no
35417
35418if test "$ac_x_libraries" = no; then
35419  # Check for the libraries.
35420  # See if we find them without any special options.
35421  # Don't add to $LIBS permanently.
35422  ac_save_LIBS=$LIBS
35423  LIBS="-lX11 $LIBS"
35424  cat >conftest.$ac_ext <<_ACEOF
35425/* confdefs.h.  */
35426_ACEOF
35427cat confdefs.h >>conftest.$ac_ext
35428cat >>conftest.$ac_ext <<_ACEOF
35429/* end confdefs.h.  */
35430#include <X11/Xlib.h>
35431int
35432main ()
35433{
35434XrmInitialize ()
35435  ;
35436  return 0;
35437}
35438_ACEOF
35439rm -f conftest.$ac_objext conftest$ac_exeext
35440if { (ac_try="$ac_link"
35441case "(($ac_try" in
35442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35443  *) ac_try_echo=$ac_try;;
35444esac
35445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35446$as_echo "$ac_try_echo") >&5
35447  (eval "$ac_link") 2>conftest.er1
35448  ac_status=$?
35449  grep -v '^ *+' conftest.er1 >conftest.err
35450  rm -f conftest.er1
35451  cat conftest.err >&5
35452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453  (exit $ac_status); } && {
35454	 test -z "$ac_cxx_werror_flag" ||
35455	 test ! -s conftest.err
35456       } && test -s conftest$ac_exeext && {
35457	 test "$cross_compiling" = yes ||
35458	 $as_test_x conftest$ac_exeext
35459       }; then
35460  LIBS=$ac_save_LIBS
35461# We can link X programs with no special library path.
35462ac_x_libraries=
35463else
35464  $as_echo "$as_me: failed program was:" >&5
35465sed 's/^/| /' conftest.$ac_ext >&5
35466
35467	LIBS=$ac_save_LIBS
35468for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
35469do
35470  # Don't even attempt the hair of trying to link an X program!
35471  for ac_extension in a so sl dylib la dll; do
35472    if test -r "$ac_dir/libX11.$ac_extension"; then
35473      ac_x_libraries=$ac_dir
35474      break 2
35475    fi
35476  done
35477done
35478fi
35479
35480rm -rf conftest.dSYM
35481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35482      conftest$ac_exeext conftest.$ac_ext
35483fi # $ac_x_libraries = no
35484
35485case $ac_x_includes,$ac_x_libraries in #(
35486  no,* | *,no | *\'*)
35487    # Didn't find X, or a directory has "'" in its name.
35488    ac_cv_have_x="have_x=no";; #(
35489  *)
35490    # Record where we found X for the cache.
35491    ac_cv_have_x="have_x=yes\
35492	ac_x_includes='$ac_x_includes'\
35493	ac_x_libraries='$ac_x_libraries'"
35494esac
35495fi
35496;; #(
35497    *) have_x=yes;;
35498  esac
35499  eval "$ac_cv_have_x"
35500fi # $with_x != no
35501
35502if test "$have_x" != yes; then
35503  { $as_echo "$as_me:$LINENO: result: $have_x" >&5
35504$as_echo "$have_x" >&6; }
35505  no_x=yes
35506else
35507  # If each of the values was on the command line, it overrides each guess.
35508  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
35509  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
35510  # Update the cache value to reflect the command line values.
35511  ac_cv_have_x="have_x=yes\
35512	ac_x_includes='$x_includes'\
35513	ac_x_libraries='$x_libraries'"
35514  { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
35515$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
35516fi
35517
35518if test "$no_x" = yes; then
35519  # Not all programs may use this symbol, but it does not hurt to define it.
35520
35521cat >>confdefs.h <<\_ACEOF
35522#define X_DISPLAY_MISSING 1
35523_ACEOF
35524
35525  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
35526else
35527  if test -n "$x_includes"; then
35528    X_CFLAGS="$X_CFLAGS -I$x_includes"
35529  fi
35530
35531  # It would also be nice to do this for all -L options, not just this one.
35532  if test -n "$x_libraries"; then
35533    X_LIBS="$X_LIBS -L$x_libraries"
35534    # For Solaris; some versions of Sun CC require a space after -R and
35535    # others require no space.  Words are not sufficient . . . .
35536    { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
35537$as_echo_n "checking whether -R must be followed by a space... " >&6; }
35538    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
35539    ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
35540    ac_cxx_werror_flag=yes
35541    cat >conftest.$ac_ext <<_ACEOF
35542/* confdefs.h.  */
35543_ACEOF
35544cat confdefs.h >>conftest.$ac_ext
35545cat >>conftest.$ac_ext <<_ACEOF
35546/* end confdefs.h.  */
35547
35548int
35549main ()
35550{
35551
35552  ;
35553  return 0;
35554}
35555_ACEOF
35556rm -f conftest.$ac_objext conftest$ac_exeext
35557if { (ac_try="$ac_link"
35558case "(($ac_try" in
35559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35560  *) ac_try_echo=$ac_try;;
35561esac
35562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35563$as_echo "$ac_try_echo") >&5
35564  (eval "$ac_link") 2>conftest.er1
35565  ac_status=$?
35566  grep -v '^ *+' conftest.er1 >conftest.err
35567  rm -f conftest.er1
35568  cat conftest.err >&5
35569  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570  (exit $ac_status); } && {
35571	 test -z "$ac_cxx_werror_flag" ||
35572	 test ! -s conftest.err
35573       } && test -s conftest$ac_exeext && {
35574	 test "$cross_compiling" = yes ||
35575	 $as_test_x conftest$ac_exeext
35576       }; then
35577  { $as_echo "$as_me:$LINENO: result: no" >&5
35578$as_echo "no" >&6; }
35579       X_LIBS="$X_LIBS -R$x_libraries"
35580else
35581  $as_echo "$as_me: failed program was:" >&5
35582sed 's/^/| /' conftest.$ac_ext >&5
35583
35584	LIBS="$ac_xsave_LIBS -R $x_libraries"
35585       cat >conftest.$ac_ext <<_ACEOF
35586/* confdefs.h.  */
35587_ACEOF
35588cat confdefs.h >>conftest.$ac_ext
35589cat >>conftest.$ac_ext <<_ACEOF
35590/* end confdefs.h.  */
35591
35592int
35593main ()
35594{
35595
35596  ;
35597  return 0;
35598}
35599_ACEOF
35600rm -f conftest.$ac_objext conftest$ac_exeext
35601if { (ac_try="$ac_link"
35602case "(($ac_try" in
35603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604  *) ac_try_echo=$ac_try;;
35605esac
35606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35607$as_echo "$ac_try_echo") >&5
35608  (eval "$ac_link") 2>conftest.er1
35609  ac_status=$?
35610  grep -v '^ *+' conftest.er1 >conftest.err
35611  rm -f conftest.er1
35612  cat conftest.err >&5
35613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614  (exit $ac_status); } && {
35615	 test -z "$ac_cxx_werror_flag" ||
35616	 test ! -s conftest.err
35617       } && test -s conftest$ac_exeext && {
35618	 test "$cross_compiling" = yes ||
35619	 $as_test_x conftest$ac_exeext
35620       }; then
35621  { $as_echo "$as_me:$LINENO: result: yes" >&5
35622$as_echo "yes" >&6; }
35623	  X_LIBS="$X_LIBS -R $x_libraries"
35624else
35625  $as_echo "$as_me: failed program was:" >&5
35626sed 's/^/| /' conftest.$ac_ext >&5
35627
35628	{ $as_echo "$as_me:$LINENO: result: neither works" >&5
35629$as_echo "neither works" >&6; }
35630fi
35631
35632rm -rf conftest.dSYM
35633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35634      conftest$ac_exeext conftest.$ac_ext
35635fi
35636
35637rm -rf conftest.dSYM
35638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35639      conftest$ac_exeext conftest.$ac_ext
35640    ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
35641    LIBS=$ac_xsave_LIBS
35642  fi
35643
35644  # Check for system-dependent libraries X programs must link with.
35645  # Do this before checking for the system-independent R6 libraries
35646  # (-lICE), since we may need -lsocket or whatever for X linking.
35647
35648  if test "$ISC" = yes; then
35649    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
35650  else
35651    # Martyn Johnson says this is needed for Ultrix, if the X
35652    # libraries were built with DECnet support.  And Karl Berry says
35653    # the Alpha needs dnet_stub (dnet does not exist).
35654    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
35655    cat >conftest.$ac_ext <<_ACEOF
35656/* confdefs.h.  */
35657_ACEOF
35658cat confdefs.h >>conftest.$ac_ext
35659cat >>conftest.$ac_ext <<_ACEOF
35660/* end confdefs.h.  */
35661
35662/* Override any GCC internal prototype to avoid an error.
35663   Use char because int might match the return type of a GCC
35664   builtin and then its argument prototype would still apply.  */
35665#ifdef __cplusplus
35666extern "C"
35667#endif
35668char XOpenDisplay ();
35669int
35670main ()
35671{
35672return XOpenDisplay ();
35673  ;
35674  return 0;
35675}
35676_ACEOF
35677rm -f conftest.$ac_objext conftest$ac_exeext
35678if { (ac_try="$ac_link"
35679case "(($ac_try" in
35680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35681  *) ac_try_echo=$ac_try;;
35682esac
35683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35684$as_echo "$ac_try_echo") >&5
35685  (eval "$ac_link") 2>conftest.er1
35686  ac_status=$?
35687  grep -v '^ *+' conftest.er1 >conftest.err
35688  rm -f conftest.er1
35689  cat conftest.err >&5
35690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691  (exit $ac_status); } && {
35692	 test -z "$ac_cxx_werror_flag" ||
35693	 test ! -s conftest.err
35694       } && test -s conftest$ac_exeext && {
35695	 test "$cross_compiling" = yes ||
35696	 $as_test_x conftest$ac_exeext
35697       }; then
35698  :
35699else
35700  $as_echo "$as_me: failed program was:" >&5
35701sed 's/^/| /' conftest.$ac_ext >&5
35702
35703	{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
35704$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
35705if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
35706  $as_echo_n "(cached) " >&6
35707else
35708  ac_check_lib_save_LIBS=$LIBS
35709LIBS="-ldnet  $LIBS"
35710cat >conftest.$ac_ext <<_ACEOF
35711/* confdefs.h.  */
35712_ACEOF
35713cat confdefs.h >>conftest.$ac_ext
35714cat >>conftest.$ac_ext <<_ACEOF
35715/* end confdefs.h.  */
35716
35717/* Override any GCC internal prototype to avoid an error.
35718   Use char because int might match the return type of a GCC
35719   builtin and then its argument prototype would still apply.  */
35720#ifdef __cplusplus
35721extern "C"
35722#endif
35723char dnet_ntoa ();
35724int
35725main ()
35726{
35727return dnet_ntoa ();
35728  ;
35729  return 0;
35730}
35731_ACEOF
35732rm -f conftest.$ac_objext conftest$ac_exeext
35733if { (ac_try="$ac_link"
35734case "(($ac_try" in
35735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35736  *) ac_try_echo=$ac_try;;
35737esac
35738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35739$as_echo "$ac_try_echo") >&5
35740  (eval "$ac_link") 2>conftest.er1
35741  ac_status=$?
35742  grep -v '^ *+' conftest.er1 >conftest.err
35743  rm -f conftest.er1
35744  cat conftest.err >&5
35745  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746  (exit $ac_status); } && {
35747	 test -z "$ac_cxx_werror_flag" ||
35748	 test ! -s conftest.err
35749       } && test -s conftest$ac_exeext && {
35750	 test "$cross_compiling" = yes ||
35751	 $as_test_x conftest$ac_exeext
35752       }; then
35753  ac_cv_lib_dnet_dnet_ntoa=yes
35754else
35755  $as_echo "$as_me: failed program was:" >&5
35756sed 's/^/| /' conftest.$ac_ext >&5
35757
35758	ac_cv_lib_dnet_dnet_ntoa=no
35759fi
35760
35761rm -rf conftest.dSYM
35762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35763      conftest$ac_exeext conftest.$ac_ext
35764LIBS=$ac_check_lib_save_LIBS
35765fi
35766{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
35767$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
35768if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
35769  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
35770fi
35771
35772    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
35773      { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
35774$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
35775if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
35776  $as_echo_n "(cached) " >&6
35777else
35778  ac_check_lib_save_LIBS=$LIBS
35779LIBS="-ldnet_stub  $LIBS"
35780cat >conftest.$ac_ext <<_ACEOF
35781/* confdefs.h.  */
35782_ACEOF
35783cat confdefs.h >>conftest.$ac_ext
35784cat >>conftest.$ac_ext <<_ACEOF
35785/* end confdefs.h.  */
35786
35787/* Override any GCC internal prototype to avoid an error.
35788   Use char because int might match the return type of a GCC
35789   builtin and then its argument prototype would still apply.  */
35790#ifdef __cplusplus
35791extern "C"
35792#endif
35793char dnet_ntoa ();
35794int
35795main ()
35796{
35797return dnet_ntoa ();
35798  ;
35799  return 0;
35800}
35801_ACEOF
35802rm -f conftest.$ac_objext conftest$ac_exeext
35803if { (ac_try="$ac_link"
35804case "(($ac_try" in
35805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35806  *) ac_try_echo=$ac_try;;
35807esac
35808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35809$as_echo "$ac_try_echo") >&5
35810  (eval "$ac_link") 2>conftest.er1
35811  ac_status=$?
35812  grep -v '^ *+' conftest.er1 >conftest.err
35813  rm -f conftest.er1
35814  cat conftest.err >&5
35815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816  (exit $ac_status); } && {
35817	 test -z "$ac_cxx_werror_flag" ||
35818	 test ! -s conftest.err
35819       } && test -s conftest$ac_exeext && {
35820	 test "$cross_compiling" = yes ||
35821	 $as_test_x conftest$ac_exeext
35822       }; then
35823  ac_cv_lib_dnet_stub_dnet_ntoa=yes
35824else
35825  $as_echo "$as_me: failed program was:" >&5
35826sed 's/^/| /' conftest.$ac_ext >&5
35827
35828	ac_cv_lib_dnet_stub_dnet_ntoa=no
35829fi
35830
35831rm -rf conftest.dSYM
35832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35833      conftest$ac_exeext conftest.$ac_ext
35834LIBS=$ac_check_lib_save_LIBS
35835fi
35836{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
35837$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
35838if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
35839  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
35840fi
35841
35842    fi
35843fi
35844
35845rm -rf conftest.dSYM
35846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35847      conftest$ac_exeext conftest.$ac_ext
35848    LIBS="$ac_xsave_LIBS"
35849
35850    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
35851    # to get the SysV transport functions.
35852    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
35853    # needs -lnsl.
35854    # The nsl library prevents programs from opening the X display
35855    # on Irix 5.2, according to T.E. Dickey.
35856    # The functions gethostbyname, getservbyname, and inet_addr are
35857    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
35858    { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
35859$as_echo_n "checking for gethostbyname... " >&6; }
35860if test "${ac_cv_func_gethostbyname+set}" = set; then
35861  $as_echo_n "(cached) " >&6
35862else
35863  cat >conftest.$ac_ext <<_ACEOF
35864/* confdefs.h.  */
35865_ACEOF
35866cat confdefs.h >>conftest.$ac_ext
35867cat >>conftest.$ac_ext <<_ACEOF
35868/* end confdefs.h.  */
35869/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
35870   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35871#define gethostbyname innocuous_gethostbyname
35872
35873/* System header to define __stub macros and hopefully few prototypes,
35874    which can conflict with char gethostbyname (); below.
35875    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35876    <limits.h> exists even on freestanding compilers.  */
35877
35878#ifdef __STDC__
35879# include <limits.h>
35880#else
35881# include <assert.h>
35882#endif
35883
35884#undef gethostbyname
35885
35886/* Override any GCC internal prototype to avoid an error.
35887   Use char because int might match the return type of a GCC
35888   builtin and then its argument prototype would still apply.  */
35889#ifdef __cplusplus
35890extern "C"
35891#endif
35892char gethostbyname ();
35893/* The GNU C library defines this for functions which it implements
35894    to always fail with ENOSYS.  Some functions are actually named
35895    something starting with __ and the normal name is an alias.  */
35896#if defined __stub_gethostbyname || defined __stub___gethostbyname
35897choke me
35898#endif
35899
35900int
35901main ()
35902{
35903return gethostbyname ();
35904  ;
35905  return 0;
35906}
35907_ACEOF
35908rm -f conftest.$ac_objext conftest$ac_exeext
35909if { (ac_try="$ac_link"
35910case "(($ac_try" in
35911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35912  *) ac_try_echo=$ac_try;;
35913esac
35914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35915$as_echo "$ac_try_echo") >&5
35916  (eval "$ac_link") 2>conftest.er1
35917  ac_status=$?
35918  grep -v '^ *+' conftest.er1 >conftest.err
35919  rm -f conftest.er1
35920  cat conftest.err >&5
35921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35922  (exit $ac_status); } && {
35923	 test -z "$ac_cxx_werror_flag" ||
35924	 test ! -s conftest.err
35925       } && test -s conftest$ac_exeext && {
35926	 test "$cross_compiling" = yes ||
35927	 $as_test_x conftest$ac_exeext
35928       }; then
35929  ac_cv_func_gethostbyname=yes
35930else
35931  $as_echo "$as_me: failed program was:" >&5
35932sed 's/^/| /' conftest.$ac_ext >&5
35933
35934	ac_cv_func_gethostbyname=no
35935fi
35936
35937rm -rf conftest.dSYM
35938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35939      conftest$ac_exeext conftest.$ac_ext
35940fi
35941{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
35942$as_echo "$ac_cv_func_gethostbyname" >&6; }
35943
35944    if test $ac_cv_func_gethostbyname = no; then
35945      { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
35946$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
35947if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
35948  $as_echo_n "(cached) " >&6
35949else
35950  ac_check_lib_save_LIBS=$LIBS
35951LIBS="-lnsl  $LIBS"
35952cat >conftest.$ac_ext <<_ACEOF
35953/* confdefs.h.  */
35954_ACEOF
35955cat confdefs.h >>conftest.$ac_ext
35956cat >>conftest.$ac_ext <<_ACEOF
35957/* end confdefs.h.  */
35958
35959/* Override any GCC internal prototype to avoid an error.
35960   Use char because int might match the return type of a GCC
35961   builtin and then its argument prototype would still apply.  */
35962#ifdef __cplusplus
35963extern "C"
35964#endif
35965char gethostbyname ();
35966int
35967main ()
35968{
35969return gethostbyname ();
35970  ;
35971  return 0;
35972}
35973_ACEOF
35974rm -f conftest.$ac_objext conftest$ac_exeext
35975if { (ac_try="$ac_link"
35976case "(($ac_try" in
35977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35978  *) ac_try_echo=$ac_try;;
35979esac
35980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35981$as_echo "$ac_try_echo") >&5
35982  (eval "$ac_link") 2>conftest.er1
35983  ac_status=$?
35984  grep -v '^ *+' conftest.er1 >conftest.err
35985  rm -f conftest.er1
35986  cat conftest.err >&5
35987  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35988  (exit $ac_status); } && {
35989	 test -z "$ac_cxx_werror_flag" ||
35990	 test ! -s conftest.err
35991       } && test -s conftest$ac_exeext && {
35992	 test "$cross_compiling" = yes ||
35993	 $as_test_x conftest$ac_exeext
35994       }; then
35995  ac_cv_lib_nsl_gethostbyname=yes
35996else
35997  $as_echo "$as_me: failed program was:" >&5
35998sed 's/^/| /' conftest.$ac_ext >&5
35999
36000	ac_cv_lib_nsl_gethostbyname=no
36001fi
36002
36003rm -rf conftest.dSYM
36004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36005      conftest$ac_exeext conftest.$ac_ext
36006LIBS=$ac_check_lib_save_LIBS
36007fi
36008{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
36009$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
36010if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
36011  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
36012fi
36013
36014      if test $ac_cv_lib_nsl_gethostbyname = no; then
36015	{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
36016$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
36017if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
36018  $as_echo_n "(cached) " >&6
36019else
36020  ac_check_lib_save_LIBS=$LIBS
36021LIBS="-lbsd  $LIBS"
36022cat >conftest.$ac_ext <<_ACEOF
36023/* confdefs.h.  */
36024_ACEOF
36025cat confdefs.h >>conftest.$ac_ext
36026cat >>conftest.$ac_ext <<_ACEOF
36027/* end confdefs.h.  */
36028
36029/* Override any GCC internal prototype to avoid an error.
36030   Use char because int might match the return type of a GCC
36031   builtin and then its argument prototype would still apply.  */
36032#ifdef __cplusplus
36033extern "C"
36034#endif
36035char gethostbyname ();
36036int
36037main ()
36038{
36039return gethostbyname ();
36040  ;
36041  return 0;
36042}
36043_ACEOF
36044rm -f conftest.$ac_objext conftest$ac_exeext
36045if { (ac_try="$ac_link"
36046case "(($ac_try" in
36047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36048  *) ac_try_echo=$ac_try;;
36049esac
36050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36051$as_echo "$ac_try_echo") >&5
36052  (eval "$ac_link") 2>conftest.er1
36053  ac_status=$?
36054  grep -v '^ *+' conftest.er1 >conftest.err
36055  rm -f conftest.er1
36056  cat conftest.err >&5
36057  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36058  (exit $ac_status); } && {
36059	 test -z "$ac_cxx_werror_flag" ||
36060	 test ! -s conftest.err
36061       } && test -s conftest$ac_exeext && {
36062	 test "$cross_compiling" = yes ||
36063	 $as_test_x conftest$ac_exeext
36064       }; then
36065  ac_cv_lib_bsd_gethostbyname=yes
36066else
36067  $as_echo "$as_me: failed program was:" >&5
36068sed 's/^/| /' conftest.$ac_ext >&5
36069
36070	ac_cv_lib_bsd_gethostbyname=no
36071fi
36072
36073rm -rf conftest.dSYM
36074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36075      conftest$ac_exeext conftest.$ac_ext
36076LIBS=$ac_check_lib_save_LIBS
36077fi
36078{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
36079$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
36080if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
36081  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
36082fi
36083
36084      fi
36085    fi
36086
36087    # lieder@skyler.mavd.honeywell.com says without -lsocket,
36088    # socket/setsockopt and other routines are undefined under SCO ODT
36089    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
36090    # on later versions), says Simon Leinen: it contains gethostby*
36091    # variants that don't use the name server (or something).  -lsocket
36092    # must be given before -lnsl if both are needed.  We assume that
36093    # if connect needs -lnsl, so does gethostbyname.
36094    { $as_echo "$as_me:$LINENO: checking for connect" >&5
36095$as_echo_n "checking for connect... " >&6; }
36096if test "${ac_cv_func_connect+set}" = set; then
36097  $as_echo_n "(cached) " >&6
36098else
36099  cat >conftest.$ac_ext <<_ACEOF
36100/* confdefs.h.  */
36101_ACEOF
36102cat confdefs.h >>conftest.$ac_ext
36103cat >>conftest.$ac_ext <<_ACEOF
36104/* end confdefs.h.  */
36105/* Define connect to an innocuous variant, in case <limits.h> declares connect.
36106   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36107#define connect innocuous_connect
36108
36109/* System header to define __stub macros and hopefully few prototypes,
36110    which can conflict with char connect (); below.
36111    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36112    <limits.h> exists even on freestanding compilers.  */
36113
36114#ifdef __STDC__
36115# include <limits.h>
36116#else
36117# include <assert.h>
36118#endif
36119
36120#undef connect
36121
36122/* Override any GCC internal prototype to avoid an error.
36123   Use char because int might match the return type of a GCC
36124   builtin and then its argument prototype would still apply.  */
36125#ifdef __cplusplus
36126extern "C"
36127#endif
36128char connect ();
36129/* The GNU C library defines this for functions which it implements
36130    to always fail with ENOSYS.  Some functions are actually named
36131    something starting with __ and the normal name is an alias.  */
36132#if defined __stub_connect || defined __stub___connect
36133choke me
36134#endif
36135
36136int
36137main ()
36138{
36139return connect ();
36140  ;
36141  return 0;
36142}
36143_ACEOF
36144rm -f conftest.$ac_objext conftest$ac_exeext
36145if { (ac_try="$ac_link"
36146case "(($ac_try" in
36147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36148  *) ac_try_echo=$ac_try;;
36149esac
36150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36151$as_echo "$ac_try_echo") >&5
36152  (eval "$ac_link") 2>conftest.er1
36153  ac_status=$?
36154  grep -v '^ *+' conftest.er1 >conftest.err
36155  rm -f conftest.er1
36156  cat conftest.err >&5
36157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158  (exit $ac_status); } && {
36159	 test -z "$ac_cxx_werror_flag" ||
36160	 test ! -s conftest.err
36161       } && test -s conftest$ac_exeext && {
36162	 test "$cross_compiling" = yes ||
36163	 $as_test_x conftest$ac_exeext
36164       }; then
36165  ac_cv_func_connect=yes
36166else
36167  $as_echo "$as_me: failed program was:" >&5
36168sed 's/^/| /' conftest.$ac_ext >&5
36169
36170	ac_cv_func_connect=no
36171fi
36172
36173rm -rf conftest.dSYM
36174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36175      conftest$ac_exeext conftest.$ac_ext
36176fi
36177{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
36178$as_echo "$ac_cv_func_connect" >&6; }
36179
36180    if test $ac_cv_func_connect = no; then
36181      { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
36182$as_echo_n "checking for connect in -lsocket... " >&6; }
36183if test "${ac_cv_lib_socket_connect+set}" = set; then
36184  $as_echo_n "(cached) " >&6
36185else
36186  ac_check_lib_save_LIBS=$LIBS
36187LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
36188cat >conftest.$ac_ext <<_ACEOF
36189/* confdefs.h.  */
36190_ACEOF
36191cat confdefs.h >>conftest.$ac_ext
36192cat >>conftest.$ac_ext <<_ACEOF
36193/* end confdefs.h.  */
36194
36195/* Override any GCC internal prototype to avoid an error.
36196   Use char because int might match the return type of a GCC
36197   builtin and then its argument prototype would still apply.  */
36198#ifdef __cplusplus
36199extern "C"
36200#endif
36201char connect ();
36202int
36203main ()
36204{
36205return connect ();
36206  ;
36207  return 0;
36208}
36209_ACEOF
36210rm -f conftest.$ac_objext conftest$ac_exeext
36211if { (ac_try="$ac_link"
36212case "(($ac_try" in
36213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36214  *) ac_try_echo=$ac_try;;
36215esac
36216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36217$as_echo "$ac_try_echo") >&5
36218  (eval "$ac_link") 2>conftest.er1
36219  ac_status=$?
36220  grep -v '^ *+' conftest.er1 >conftest.err
36221  rm -f conftest.er1
36222  cat conftest.err >&5
36223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36224  (exit $ac_status); } && {
36225	 test -z "$ac_cxx_werror_flag" ||
36226	 test ! -s conftest.err
36227       } && test -s conftest$ac_exeext && {
36228	 test "$cross_compiling" = yes ||
36229	 $as_test_x conftest$ac_exeext
36230       }; then
36231  ac_cv_lib_socket_connect=yes
36232else
36233  $as_echo "$as_me: failed program was:" >&5
36234sed 's/^/| /' conftest.$ac_ext >&5
36235
36236	ac_cv_lib_socket_connect=no
36237fi
36238
36239rm -rf conftest.dSYM
36240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36241      conftest$ac_exeext conftest.$ac_ext
36242LIBS=$ac_check_lib_save_LIBS
36243fi
36244{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
36245$as_echo "$ac_cv_lib_socket_connect" >&6; }
36246if test "x$ac_cv_lib_socket_connect" = x""yes; then
36247  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
36248fi
36249
36250    fi
36251
36252    # Guillermo Gomez says -lposix is necessary on A/UX.
36253    { $as_echo "$as_me:$LINENO: checking for remove" >&5
36254$as_echo_n "checking for remove... " >&6; }
36255if test "${ac_cv_func_remove+set}" = set; then
36256  $as_echo_n "(cached) " >&6
36257else
36258  cat >conftest.$ac_ext <<_ACEOF
36259/* confdefs.h.  */
36260_ACEOF
36261cat confdefs.h >>conftest.$ac_ext
36262cat >>conftest.$ac_ext <<_ACEOF
36263/* end confdefs.h.  */
36264/* Define remove to an innocuous variant, in case <limits.h> declares remove.
36265   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36266#define remove innocuous_remove
36267
36268/* System header to define __stub macros and hopefully few prototypes,
36269    which can conflict with char remove (); below.
36270    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36271    <limits.h> exists even on freestanding compilers.  */
36272
36273#ifdef __STDC__
36274# include <limits.h>
36275#else
36276# include <assert.h>
36277#endif
36278
36279#undef remove
36280
36281/* Override any GCC internal prototype to avoid an error.
36282   Use char because int might match the return type of a GCC
36283   builtin and then its argument prototype would still apply.  */
36284#ifdef __cplusplus
36285extern "C"
36286#endif
36287char remove ();
36288/* The GNU C library defines this for functions which it implements
36289    to always fail with ENOSYS.  Some functions are actually named
36290    something starting with __ and the normal name is an alias.  */
36291#if defined __stub_remove || defined __stub___remove
36292choke me
36293#endif
36294
36295int
36296main ()
36297{
36298return remove ();
36299  ;
36300  return 0;
36301}
36302_ACEOF
36303rm -f conftest.$ac_objext conftest$ac_exeext
36304if { (ac_try="$ac_link"
36305case "(($ac_try" in
36306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36307  *) ac_try_echo=$ac_try;;
36308esac
36309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36310$as_echo "$ac_try_echo") >&5
36311  (eval "$ac_link") 2>conftest.er1
36312  ac_status=$?
36313  grep -v '^ *+' conftest.er1 >conftest.err
36314  rm -f conftest.er1
36315  cat conftest.err >&5
36316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36317  (exit $ac_status); } && {
36318	 test -z "$ac_cxx_werror_flag" ||
36319	 test ! -s conftest.err
36320       } && test -s conftest$ac_exeext && {
36321	 test "$cross_compiling" = yes ||
36322	 $as_test_x conftest$ac_exeext
36323       }; then
36324  ac_cv_func_remove=yes
36325else
36326  $as_echo "$as_me: failed program was:" >&5
36327sed 's/^/| /' conftest.$ac_ext >&5
36328
36329	ac_cv_func_remove=no
36330fi
36331
36332rm -rf conftest.dSYM
36333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36334      conftest$ac_exeext conftest.$ac_ext
36335fi
36336{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
36337$as_echo "$ac_cv_func_remove" >&6; }
36338
36339    if test $ac_cv_func_remove = no; then
36340      { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
36341$as_echo_n "checking for remove in -lposix... " >&6; }
36342if test "${ac_cv_lib_posix_remove+set}" = set; then
36343  $as_echo_n "(cached) " >&6
36344else
36345  ac_check_lib_save_LIBS=$LIBS
36346LIBS="-lposix  $LIBS"
36347cat >conftest.$ac_ext <<_ACEOF
36348/* confdefs.h.  */
36349_ACEOF
36350cat confdefs.h >>conftest.$ac_ext
36351cat >>conftest.$ac_ext <<_ACEOF
36352/* end confdefs.h.  */
36353
36354/* Override any GCC internal prototype to avoid an error.
36355   Use char because int might match the return type of a GCC
36356   builtin and then its argument prototype would still apply.  */
36357#ifdef __cplusplus
36358extern "C"
36359#endif
36360char remove ();
36361int
36362main ()
36363{
36364return remove ();
36365  ;
36366  return 0;
36367}
36368_ACEOF
36369rm -f conftest.$ac_objext conftest$ac_exeext
36370if { (ac_try="$ac_link"
36371case "(($ac_try" in
36372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36373  *) ac_try_echo=$ac_try;;
36374esac
36375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36376$as_echo "$ac_try_echo") >&5
36377  (eval "$ac_link") 2>conftest.er1
36378  ac_status=$?
36379  grep -v '^ *+' conftest.er1 >conftest.err
36380  rm -f conftest.er1
36381  cat conftest.err >&5
36382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383  (exit $ac_status); } && {
36384	 test -z "$ac_cxx_werror_flag" ||
36385	 test ! -s conftest.err
36386       } && test -s conftest$ac_exeext && {
36387	 test "$cross_compiling" = yes ||
36388	 $as_test_x conftest$ac_exeext
36389       }; then
36390  ac_cv_lib_posix_remove=yes
36391else
36392  $as_echo "$as_me: failed program was:" >&5
36393sed 's/^/| /' conftest.$ac_ext >&5
36394
36395	ac_cv_lib_posix_remove=no
36396fi
36397
36398rm -rf conftest.dSYM
36399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36400      conftest$ac_exeext conftest.$ac_ext
36401LIBS=$ac_check_lib_save_LIBS
36402fi
36403{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
36404$as_echo "$ac_cv_lib_posix_remove" >&6; }
36405if test "x$ac_cv_lib_posix_remove" = x""yes; then
36406  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
36407fi
36408
36409    fi
36410
36411    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
36412    { $as_echo "$as_me:$LINENO: checking for shmat" >&5
36413$as_echo_n "checking for shmat... " >&6; }
36414if test "${ac_cv_func_shmat+set}" = set; then
36415  $as_echo_n "(cached) " >&6
36416else
36417  cat >conftest.$ac_ext <<_ACEOF
36418/* confdefs.h.  */
36419_ACEOF
36420cat confdefs.h >>conftest.$ac_ext
36421cat >>conftest.$ac_ext <<_ACEOF
36422/* end confdefs.h.  */
36423/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
36424   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36425#define shmat innocuous_shmat
36426
36427/* System header to define __stub macros and hopefully few prototypes,
36428    which can conflict with char shmat (); below.
36429    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36430    <limits.h> exists even on freestanding compilers.  */
36431
36432#ifdef __STDC__
36433# include <limits.h>
36434#else
36435# include <assert.h>
36436#endif
36437
36438#undef shmat
36439
36440/* Override any GCC internal prototype to avoid an error.
36441   Use char because int might match the return type of a GCC
36442   builtin and then its argument prototype would still apply.  */
36443#ifdef __cplusplus
36444extern "C"
36445#endif
36446char shmat ();
36447/* The GNU C library defines this for functions which it implements
36448    to always fail with ENOSYS.  Some functions are actually named
36449    something starting with __ and the normal name is an alias.  */
36450#if defined __stub_shmat || defined __stub___shmat
36451choke me
36452#endif
36453
36454int
36455main ()
36456{
36457return shmat ();
36458  ;
36459  return 0;
36460}
36461_ACEOF
36462rm -f conftest.$ac_objext conftest$ac_exeext
36463if { (ac_try="$ac_link"
36464case "(($ac_try" in
36465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36466  *) ac_try_echo=$ac_try;;
36467esac
36468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36469$as_echo "$ac_try_echo") >&5
36470  (eval "$ac_link") 2>conftest.er1
36471  ac_status=$?
36472  grep -v '^ *+' conftest.er1 >conftest.err
36473  rm -f conftest.er1
36474  cat conftest.err >&5
36475  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36476  (exit $ac_status); } && {
36477	 test -z "$ac_cxx_werror_flag" ||
36478	 test ! -s conftest.err
36479       } && test -s conftest$ac_exeext && {
36480	 test "$cross_compiling" = yes ||
36481	 $as_test_x conftest$ac_exeext
36482       }; then
36483  ac_cv_func_shmat=yes
36484else
36485  $as_echo "$as_me: failed program was:" >&5
36486sed 's/^/| /' conftest.$ac_ext >&5
36487
36488	ac_cv_func_shmat=no
36489fi
36490
36491rm -rf conftest.dSYM
36492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36493      conftest$ac_exeext conftest.$ac_ext
36494fi
36495{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
36496$as_echo "$ac_cv_func_shmat" >&6; }
36497
36498    if test $ac_cv_func_shmat = no; then
36499      { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
36500$as_echo_n "checking for shmat in -lipc... " >&6; }
36501if test "${ac_cv_lib_ipc_shmat+set}" = set; then
36502  $as_echo_n "(cached) " >&6
36503else
36504  ac_check_lib_save_LIBS=$LIBS
36505LIBS="-lipc  $LIBS"
36506cat >conftest.$ac_ext <<_ACEOF
36507/* confdefs.h.  */
36508_ACEOF
36509cat confdefs.h >>conftest.$ac_ext
36510cat >>conftest.$ac_ext <<_ACEOF
36511/* end confdefs.h.  */
36512
36513/* Override any GCC internal prototype to avoid an error.
36514   Use char because int might match the return type of a GCC
36515   builtin and then its argument prototype would still apply.  */
36516#ifdef __cplusplus
36517extern "C"
36518#endif
36519char shmat ();
36520int
36521main ()
36522{
36523return shmat ();
36524  ;
36525  return 0;
36526}
36527_ACEOF
36528rm -f conftest.$ac_objext conftest$ac_exeext
36529if { (ac_try="$ac_link"
36530case "(($ac_try" in
36531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36532  *) ac_try_echo=$ac_try;;
36533esac
36534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36535$as_echo "$ac_try_echo") >&5
36536  (eval "$ac_link") 2>conftest.er1
36537  ac_status=$?
36538  grep -v '^ *+' conftest.er1 >conftest.err
36539  rm -f conftest.er1
36540  cat conftest.err >&5
36541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542  (exit $ac_status); } && {
36543	 test -z "$ac_cxx_werror_flag" ||
36544	 test ! -s conftest.err
36545       } && test -s conftest$ac_exeext && {
36546	 test "$cross_compiling" = yes ||
36547	 $as_test_x conftest$ac_exeext
36548       }; then
36549  ac_cv_lib_ipc_shmat=yes
36550else
36551  $as_echo "$as_me: failed program was:" >&5
36552sed 's/^/| /' conftest.$ac_ext >&5
36553
36554	ac_cv_lib_ipc_shmat=no
36555fi
36556
36557rm -rf conftest.dSYM
36558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36559      conftest$ac_exeext conftest.$ac_ext
36560LIBS=$ac_check_lib_save_LIBS
36561fi
36562{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
36563$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
36564if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
36565  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
36566fi
36567
36568    fi
36569  fi
36570
36571  # Check for libraries that X11R6 Xt/Xaw programs need.
36572  ac_save_LDFLAGS=$LDFLAGS
36573  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
36574  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
36575  # check for ICE first), but we must link in the order -lSM -lICE or
36576  # we get undefined symbols.  So assume we have SM if we have ICE.
36577  # These have to be linked with before -lX11, unlike the other
36578  # libraries we check for below, so use a different variable.
36579  # John Interrante, Karl Berry
36580  { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
36581$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
36582if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
36583  $as_echo_n "(cached) " >&6
36584else
36585  ac_check_lib_save_LIBS=$LIBS
36586LIBS="-lICE $X_EXTRA_LIBS $LIBS"
36587cat >conftest.$ac_ext <<_ACEOF
36588/* confdefs.h.  */
36589_ACEOF
36590cat confdefs.h >>conftest.$ac_ext
36591cat >>conftest.$ac_ext <<_ACEOF
36592/* end confdefs.h.  */
36593
36594/* Override any GCC internal prototype to avoid an error.
36595   Use char because int might match the return type of a GCC
36596   builtin and then its argument prototype would still apply.  */
36597#ifdef __cplusplus
36598extern "C"
36599#endif
36600char IceConnectionNumber ();
36601int
36602main ()
36603{
36604return IceConnectionNumber ();
36605  ;
36606  return 0;
36607}
36608_ACEOF
36609rm -f conftest.$ac_objext conftest$ac_exeext
36610if { (ac_try="$ac_link"
36611case "(($ac_try" in
36612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36613  *) ac_try_echo=$ac_try;;
36614esac
36615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36616$as_echo "$ac_try_echo") >&5
36617  (eval "$ac_link") 2>conftest.er1
36618  ac_status=$?
36619  grep -v '^ *+' conftest.er1 >conftest.err
36620  rm -f conftest.er1
36621  cat conftest.err >&5
36622  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623  (exit $ac_status); } && {
36624	 test -z "$ac_cxx_werror_flag" ||
36625	 test ! -s conftest.err
36626       } && test -s conftest$ac_exeext && {
36627	 test "$cross_compiling" = yes ||
36628	 $as_test_x conftest$ac_exeext
36629       }; then
36630  ac_cv_lib_ICE_IceConnectionNumber=yes
36631else
36632  $as_echo "$as_me: failed program was:" >&5
36633sed 's/^/| /' conftest.$ac_ext >&5
36634
36635	ac_cv_lib_ICE_IceConnectionNumber=no
36636fi
36637
36638rm -rf conftest.dSYM
36639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36640      conftest$ac_exeext conftest.$ac_ext
36641LIBS=$ac_check_lib_save_LIBS
36642fi
36643{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
36644$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
36645if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
36646  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
36647fi
36648
36649  LDFLAGS=$ac_save_LDFLAGS
36650
36651fi
36652
36653
36654# Add -lX11 to X_LIBS
36655if test "$have_x" = "yes"; then
36656  X_LIBS="$X_LIBS -lX11"
36657fi
36658
36659###########################################################
36660##             Definiation of compile args.              ##
36661###########################################################
36662
36663# Check whether --with-gtk-im-module-dir was given.
36664if test "${with_gtk_im_module_dir+set}" = set; then
36665  withval=$with_gtk_im_module_dir; GTK_IM_MODULEDIR=$with_gtk_im_module_dir
36666fi
36667
36668
36669# Check whether --enable-ld-version-script was given.
36670if test "${enable_ld_version_script+set}" = set; then
36671  enableval=$enable_ld_version_script;
36672else
36673  enable_ld_version_script=no
36674fi
36675
36676
36677# Check whether --enable-debug was given.
36678if test "${enable_debug+set}" = set; then
36679  enableval=$enable_debug;
36680else
36681  enable_debug=no
36682fi
36683
36684
36685# Check whether --enable-tests was given.
36686if test "${enable_tests+set}" = set; then
36687  enableval=$enable_tests;
36688else
36689  enable_tests=no
36690fi
36691
36692
36693# Check whether --enable-hash-map was given.
36694if test "${enable_hash_map+set}" = set; then
36695  enableval=$enable_hash_map;
36696else
36697  enable_hash_map=no
36698fi
36699
36700
36701# Check whether --enable-config-simple was given.
36702if test "${enable_config_simple+set}" = set; then
36703  enableval=$enable_config_simple;
36704else
36705  enable_config_simple=yes
36706fi
36707
36708
36709# Check whether --enable-config-socket was given.
36710if test "${enable_config_socket+set}" = set; then
36711  enableval=$enable_config_socket;
36712else
36713  enable_config_socket=yes
36714fi
36715
36716
36717# Check whether --enable-frontend-x11 was given.
36718if test "${enable_frontend_x11+set}" = set; then
36719  enableval=$enable_frontend_x11;
36720else
36721  enable_frontend_x11=yes
36722fi
36723
36724
36725# Check whether --enable-frontend-socket was given.
36726if test "${enable_frontend_socket+set}" = set; then
36727  enableval=$enable_frontend_socket;
36728else
36729  enable_frontend_socket=yes
36730fi
36731
36732
36733# Check whether --enable-im-rawcode was given.
36734if test "${enable_im_rawcode+set}" = set; then
36735  enableval=$enable_im_rawcode;
36736else
36737  enable_im_rawcode=yes
36738fi
36739
36740
36741# Check whether --enable-im-socket was given.
36742if test "${enable_im_socket+set}" = set; then
36743  enableval=$enable_im_socket;
36744else
36745  enable_im_socket=yes
36746fi
36747
36748
36749# Check whether --enable-filter-sctc was given.
36750if test "${enable_filter_sctc+set}" = set; then
36751  enableval=$enable_filter_sctc;
36752else
36753  enable_filter_sctc=yes
36754fi
36755
36756
36757# Check whether --enable-gtk2-immodule was given.
36758if test "${enable_gtk2_immodule+set}" = set; then
36759  enableval=$enable_gtk2_immodule;
36760else
36761  enable_gtk2_immodule=yes
36762fi
36763
36764
36765# Check whether --enable-panel-gtk was given.
36766if test "${enable_panel_gtk+set}" = set; then
36767  enableval=$enable_panel_gtk;
36768else
36769  enable_panel_gtk=check
36770fi
36771
36772
36773# Check whether --enable-setup-ui was given.
36774if test "${enable_setup_ui+set}" = set; then
36775  enableval=$enable_setup_ui;
36776else
36777  enable_setup_ui=yes
36778fi
36779
36780
36781if test "$have_x" = "yes"; then
36782  SCIM_BUILD_X11_UTILS=1
36783  enable_x11_utils=yes
36784else
36785  SCIM_BUILD_X11_UTILS=0
36786  enable_x11_utils=no
36787fi
36788
36789if test "$enable_hash_map" = "yes"; then
36790
36791cat >>confdefs.h <<\_ACEOF
36792#define ENABLE_HASH_MAP 1
36793_ACEOF
36794
36795fi
36796
36797if test "$enable_debug" = "yes"; then
36798
36799cat >>confdefs.h <<\_ACEOF
36800#define ENABLE_DEBUG 1
36801_ACEOF
36802
36803  CFLAGS="$CFLAGS -g"
36804  CXXFLAGS="$CXXFLAGS -g"
36805fi
36806
36807if test "$enable_tests" = "yes"; then
36808  SCIM_BUILD_TESTS=1
36809else
36810  SCIM_BUILD_TESTS=0
36811  enable_tests=no
36812fi
36813
36814if test "$enable_config_simple" = "yes"; then
36815  SCIM_BUILD_CONFIG_SIMPLE=1
36816else
36817  SCIM_BUILD_CONFIG_SIMPLE=0
36818  enable_config_simple=no
36819fi
36820
36821if test "$enable_config_socket" = "yes" -a "$socket_ok" = "yes"; then
36822  SCIM_BUILD_CONFIG_SOCKET=1
36823else
36824  SCIM_BUILD_CONFIG_SOCKET=0
36825  enable_config_socket=no
36826fi
36827
36828if test "$enable_frontend_x11" = "yes" -a "$have_x" = "yes"; then
36829  SCIM_BUILD_FRONTEND_X11=1
36830else
36831  SCIM_BUILD_FRONTEND_X11=0
36832  enable_frontend_x11=no
36833fi
36834
36835if test "$enable_frontend_socket" = "yes" -a "$socket_ok" = "yes"; then
36836  SCIM_BUILD_FRONTEND_SOCKET=1
36837else
36838  SCIM_BUILD_FRONTEND_SOCKET=0
36839  enable_frontend_socket=no
36840fi
36841
36842if test "$enable_im_rawcode" = "yes"; then
36843  SCIM_BUILD_IMENGINE_RAWCODE=1
36844else
36845  SCIM_BUILD_IMENGINE_RAWCODE=0
36846  enable_im_rawcode=no
36847fi
36848
36849if test "$enable_im_socket" = "yes" -a "$socket_ok" = "yes"; then
36850  SCIM_BUILD_IMENGINE_SOCKET=1
36851else
36852  SCIM_BUILD_IMENGINE_SOCKET=0
36853  enable_im_socket=no
36854fi
36855
36856if test "$enable_filter_sctc" = "yes"; then
36857  SCIM_BUILD_FILTER_SCTC=1
36858else
36859  SCIM_BUILD_FILTER_SCTC=0
36860  enable_filter_sctc=no
36861fi
36862
36863if test "$enable_gtk2_immodule" = "yes" -a "$SCIM_HAS_GTK2" = "yes"; then
36864  SCIM_BUILD_GTK2_IMMODULE=1
36865else
36866  SCIM_BUILD_GTK2_IMMODULE=0
36867  enable_gtk2_immodule=no
36868fi
36869
36870if test "$enable_setup_ui" = "yes" -a "$SCIM_HAS_GTK2" = "yes"; then
36871  SCIM_BUILD_SCIM_SETUP=1
36872
36873cat >>confdefs.h <<\_ACEOF
36874#define HAVE_SCIM_SETUP 1
36875_ACEOF
36876
36877else
36878  SCIM_BUILD_SCIM_SETUP=0
36879  enable_setup_ui=no
36880fi
36881
36882if test "$SCIM_HAS_GTK2" = "yes"; then
36883  enable_gtk_utils=yes
36884  SCIM_BUILD_GTK_UTILS=1
36885else
36886  enable_gtk_utils=no
36887  SCIM_BUILD_GTK_UTILS=0
36888fi
36889
36890enable_tray_icon=no
36891if test "$SCIM_HAS_GTK2_2" = "yes" -a "$no_x" != "yes"; then
36892  enable_tray_icon=yes
36893
36894cat >>confdefs.h <<\_ACEOF
36895#define ENABLE_TRAY_ICON 1
36896_ACEOF
36897
36898fi
36899
36900SCIM_BUILD_PANEL_GTK=0
36901if test "$enable_panel_gtk" != "no"; then
36902  enable_panel_gtk=no
36903  if test "$SCIM_HAS_GTHREAD2" = "yes" -a "$SCIM_HAS_GTK2" = "yes"; then
36904    SCIM_BUILD_PANEL_GTK=1
36905    enable_panel_gtk=yes
36906  fi
36907fi
36908
36909#if nothing needs libscim-gtkutils, just disable it
36910if test "$enable_panel_gtk" != "yes" -a "$enable_setup_ui" != "yes"; then
36911  enable_gtk_utils=no
36912  SCIM_BUILD_GTK_UTILS=0
36913fi
36914
36915 if test "$enable_ld_version_script" = "yes"; then
36916  SCIM_LD_VERSION_SCRIPT_TRUE=
36917  SCIM_LD_VERSION_SCRIPT_FALSE='#'
36918else
36919  SCIM_LD_VERSION_SCRIPT_TRUE='#'
36920  SCIM_LD_VERSION_SCRIPT_FALSE=
36921fi
36922
36923
36924 if test "$enable_tests" = "yes"; then
36925  SCIM_BUILD_TESTS_TRUE=
36926  SCIM_BUILD_TESTS_FALSE='#'
36927else
36928  SCIM_BUILD_TESTS_TRUE='#'
36929  SCIM_BUILD_TESTS_FALSE=
36930fi
36931
36932
36933 if test "$enable_config_simple" = "yes"; then
36934  SCIM_BUILD_CONFIG_SIMPLE_TRUE=
36935  SCIM_BUILD_CONFIG_SIMPLE_FALSE='#'
36936else
36937  SCIM_BUILD_CONFIG_SIMPLE_TRUE='#'
36938  SCIM_BUILD_CONFIG_SIMPLE_FALSE=
36939fi
36940
36941
36942 if test "$enable_config_socket" = "yes"; then
36943  SCIM_BUILD_CONFIG_SOCKET_TRUE=
36944  SCIM_BUILD_CONFIG_SOCKET_FALSE='#'
36945else
36946  SCIM_BUILD_CONFIG_SOCKET_TRUE='#'
36947  SCIM_BUILD_CONFIG_SOCKET_FALSE=
36948fi
36949
36950
36951 if test "$enable_frontend_x11" = "yes"; then
36952  SCIM_BUILD_FRONTEND_X11_TRUE=
36953  SCIM_BUILD_FRONTEND_X11_FALSE='#'
36954else
36955  SCIM_BUILD_FRONTEND_X11_TRUE='#'
36956  SCIM_BUILD_FRONTEND_X11_FALSE=
36957fi
36958
36959
36960 if test "$enable_frontend_socket" = "yes"; then
36961  SCIM_BUILD_FRONTEND_SOCKET_TRUE=
36962  SCIM_BUILD_FRONTEND_SOCKET_FALSE='#'
36963else
36964  SCIM_BUILD_FRONTEND_SOCKET_TRUE='#'
36965  SCIM_BUILD_FRONTEND_SOCKET_FALSE=
36966fi
36967
36968
36969 if test "$enable_im_socket" = "yes"; then
36970  SCIM_BUILD_IMENGINE_SOCKET_TRUE=
36971  SCIM_BUILD_IMENGINE_SOCKET_FALSE='#'
36972else
36973  SCIM_BUILD_IMENGINE_SOCKET_TRUE='#'
36974  SCIM_BUILD_IMENGINE_SOCKET_FALSE=
36975fi
36976
36977
36978 if test "$enable_im_rawcode" = "yes"; then
36979  SCIM_BUILD_IMENGINE_RAWCODE_TRUE=
36980  SCIM_BUILD_IMENGINE_RAWCODE_FALSE='#'
36981else
36982  SCIM_BUILD_IMENGINE_RAWCODE_TRUE='#'
36983  SCIM_BUILD_IMENGINE_RAWCODE_FALSE=
36984fi
36985
36986
36987 if test "$enable_gtk2_immodule" = "yes"; then
36988  SCIM_BUILD_GTK2_IMMODULE_TRUE=
36989  SCIM_BUILD_GTK2_IMMODULE_FALSE='#'
36990else
36991  SCIM_BUILD_GTK2_IMMODULE_TRUE='#'
36992  SCIM_BUILD_GTK2_IMMODULE_FALSE=
36993fi
36994
36995
36996 if test "$enable_filter_sctc" = "yes"; then
36997  SCIM_BUILD_FILTER_SCTC_TRUE=
36998  SCIM_BUILD_FILTER_SCTC_FALSE='#'
36999else
37000  SCIM_BUILD_FILTER_SCTC_TRUE='#'
37001  SCIM_BUILD_FILTER_SCTC_FALSE=
37002fi
37003
37004
37005 if test "$enable_setup_ui" = "yes"; then
37006  SCIM_BUILD_SCIM_SETUP_TRUE=
37007  SCIM_BUILD_SCIM_SETUP_FALSE='#'
37008else
37009  SCIM_BUILD_SCIM_SETUP_TRUE='#'
37010  SCIM_BUILD_SCIM_SETUP_FALSE=
37011fi
37012
37013
37014 if test "$enable_gtk_utils" = "yes"; then
37015  SCIM_BUILD_GTK_UTILS_TRUE=
37016  SCIM_BUILD_GTK_UTILS_FALSE='#'
37017else
37018  SCIM_BUILD_GTK_UTILS_TRUE='#'
37019  SCIM_BUILD_GTK_UTILS_FALSE=
37020fi
37021
37022
37023 if test "$enable_x11_utils" = "yes"; then
37024  SCIM_BUILD_X11_UTILS_TRUE=
37025  SCIM_BUILD_X11_UTILS_FALSE='#'
37026else
37027  SCIM_BUILD_X11_UTILS_TRUE='#'
37028  SCIM_BUILD_X11_UTILS_FALSE=
37029fi
37030
37031
37032 if test "$enable_tray_icon" = "yes"; then
37033  SCIM_BUILD_TRAY_ICON_TRUE=
37034  SCIM_BUILD_TRAY_ICON_FALSE='#'
37035else
37036  SCIM_BUILD_TRAY_ICON_TRUE='#'
37037  SCIM_BUILD_TRAY_ICON_FALSE=
37038fi
37039
37040
37041 if test "$enable_panel_gtk" = "yes"; then
37042  SCIM_BUILD_PANEL_GTK_TRUE=
37043  SCIM_BUILD_PANEL_GTK_FALSE='#'
37044else
37045  SCIM_BUILD_PANEL_GTK_TRUE='#'
37046  SCIM_BUILD_PANEL_GTK_FALSE=
37047fi
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065# Output All necessary Paths.
37066SCIM_DATADIR="$datadir/scim"
37067SCIM_SYSCONFDIR="$sysconfdir"
37068SCIM_ICONDIR="$datadir/scim/icons"
37069SCIM_MODULE_PATH="$libdir/scim$SCIM_EPOCH"
37070SCIM_LIBEXECDIR="$libdir/scim$SCIM_EPOCH"
37071SCIM_LOCALEDIR="$datadir/locale"
37072SCIM_TEMPDIR="/tmp"
37073
37074
37075
37076
37077
37078
37079
37080
37081
37082###########################################################
37083##                      Output files.                    ##
37084###########################################################
37085
37086ac_config_files="$ac_config_files Makefile m4/Makefile intl/Makefile po/Makefile.in src/Makefile src/scim_types.h utils/Makefile data/Makefile data/icons/Makefile data/pixmaps/Makefile modules/Makefile modules/FrontEnd/IMdkit/Makefile modules/FrontEnd/Makefile modules/IMEngine/Makefile modules/Filter/Makefile modules/Config/Makefile modules/SetupUI/Makefile docs/scim.cfg docs/Makefile docs/manual/Makefile docs/manual/zh_CN/Makefile docs/manual/zh_CN/figures/Makefile configs/Makefile extras/Makefile extras/gtk2_immodule/Makefile extras/setup/Makefile extras/setup/scim-setup extras/panel/Makefile tests/Makefile intltool-extract intltool-merge intltool-update scim.pc scim-gtkutils.pc scim-x11utils.pc scim.spec"
37087
37088cat >confcache <<\_ACEOF
37089# This file is a shell script that caches the results of configure
37090# tests run on this system so they can be shared between configure
37091# scripts and configure runs, see configure's option --config-cache.
37092# It is not useful on other systems.  If it contains results you don't
37093# want to keep, you may remove or edit it.
37094#
37095# config.status only pays attention to the cache file if you give it
37096# the --recheck option to rerun configure.
37097#
37098# `ac_cv_env_foo' variables (set or unset) will be overridden when
37099# loading this file, other *unset* `ac_cv_foo' will be assigned the
37100# following values.
37101
37102_ACEOF
37103
37104# The following way of writing the cache mishandles newlines in values,
37105# but we know of no workaround that is simple, portable, and efficient.
37106# So, we kill variables containing newlines.
37107# Ultrix sh set writes to stderr and can't be redirected directly,
37108# and sets the high bit in the cache file unless we assign to the vars.
37109(
37110  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37111    eval ac_val=\$$ac_var
37112    case $ac_val in #(
37113    *${as_nl}*)
37114      case $ac_var in #(
37115      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
37116$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37117      esac
37118      case $ac_var in #(
37119      _ | IFS | as_nl) ;; #(
37120      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37121      *) $as_unset $ac_var ;;
37122      esac ;;
37123    esac
37124  done
37125
37126  (set) 2>&1 |
37127    case $as_nl`(ac_space=' '; set) 2>&1` in #(
37128    *${as_nl}ac_space=\ *)
37129      # `set' does not quote correctly, so add quotes (double-quote
37130      # substitution turns \\\\ into \\, and sed turns \\ into \).
37131      sed -n \
37132	"s/'/'\\\\''/g;
37133	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37134      ;; #(
37135    *)
37136      # `set' quotes correctly as required by POSIX, so do not add quotes.
37137      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37138      ;;
37139    esac |
37140    sort
37141) |
37142  sed '
37143     /^ac_cv_env_/b end
37144     t clear
37145     :clear
37146     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37147     t end
37148     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37149     :end' >>confcache
37150if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37151  if test -w "$cache_file"; then
37152    test "x$cache_file" != "x/dev/null" &&
37153      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
37154$as_echo "$as_me: updating cache $cache_file" >&6;}
37155    cat confcache >$cache_file
37156  else
37157    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
37158$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37159  fi
37160fi
37161rm -f confcache
37162
37163test "x$prefix" = xNONE && prefix=$ac_default_prefix
37164# Let make expand exec_prefix.
37165test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37166
37167DEFS=-DHAVE_CONFIG_H
37168
37169ac_libobjs=
37170ac_ltlibobjs=
37171for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37172  # 1. Remove the extension, and $U if already installed.
37173  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37174  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37175  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
37176  #    will be set to the directory where LIBOBJS objects are built.
37177  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37178  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
37179done
37180LIBOBJS=$ac_libobjs
37181
37182LTLIBOBJS=$ac_ltlibobjs
37183
37184
37185if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37186  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
37187Usually this means the macro was only invoked conditionally." >&5
37188$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
37189Usually this means the macro was only invoked conditionally." >&2;}
37190   { (exit 1); exit 1; }; }
37191fi
37192if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37193  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
37194Usually this means the macro was only invoked conditionally." >&5
37195$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
37196Usually this means the macro was only invoked conditionally." >&2;}
37197   { (exit 1); exit 1; }; }
37198fi
37199if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37200  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
37201Usually this means the macro was only invoked conditionally." >&5
37202$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
37203Usually this means the macro was only invoked conditionally." >&2;}
37204   { (exit 1); exit 1; }; }
37205fi
37206if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
37207  { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
37208Usually this means the macro was only invoked conditionally." >&5
37209$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
37210Usually this means the macro was only invoked conditionally." >&2;}
37211   { (exit 1); exit 1; }; }
37212fi
37213if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
37214  { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
37215Usually this means the macro was only invoked conditionally." >&5
37216$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
37217Usually this means the macro was only invoked conditionally." >&2;}
37218   { (exit 1); exit 1; }; }
37219fi
37220if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37221  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
37222Usually this means the macro was only invoked conditionally." >&5
37223$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
37224Usually this means the macro was only invoked conditionally." >&2;}
37225   { (exit 1); exit 1; }; }
37226fi
37227if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37228  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
37229Usually this means the macro was only invoked conditionally." >&5
37230$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
37231Usually this means the macro was only invoked conditionally." >&2;}
37232   { (exit 1); exit 1; }; }
37233fi
37234if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
37235  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
37236Usually this means the macro was only invoked conditionally." >&5
37237$as_echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
37238Usually this means the macro was only invoked conditionally." >&2;}
37239   { (exit 1); exit 1; }; }
37240fi
37241if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
37242  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
37243Usually this means the macro was only invoked conditionally." >&5
37244$as_echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
37245Usually this means the macro was only invoked conditionally." >&2;}
37246   { (exit 1); exit 1; }; }
37247fi
37248if test -z "${HAVE_DOCBOOK_TRUE}" && test -z "${HAVE_DOCBOOK_FALSE}"; then
37249  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOCBOOK\" was never defined.
37250Usually this means the macro was only invoked conditionally." >&5
37251$as_echo "$as_me: error: conditional \"HAVE_DOCBOOK\" was never defined.
37252Usually this means the macro was only invoked conditionally." >&2;}
37253   { (exit 1); exit 1; }; }
37254fi
37255if test -z "${BUILD_MANUAL_TRUE}" && test -z "${BUILD_MANUAL_FALSE}"; then
37256  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MANUAL\" was never defined.
37257Usually this means the macro was only invoked conditionally." >&5
37258$as_echo "$as_me: error: conditional \"BUILD_MANUAL\" was never defined.
37259Usually this means the macro was only invoked conditionally." >&2;}
37260   { (exit 1); exit 1; }; }
37261fi
37262
37263
37264        mv -f po/POTFILES po/POTFILES.tmp
37265        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
37266        rm -f po/POTFILES.tmp
37267
37268
37269if test -z "${SCIM_LD_VERSION_SCRIPT_TRUE}" && test -z "${SCIM_LD_VERSION_SCRIPT_FALSE}"; then
37270  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_LD_VERSION_SCRIPT\" was never defined.
37271Usually this means the macro was only invoked conditionally." >&5
37272$as_echo "$as_me: error: conditional \"SCIM_LD_VERSION_SCRIPT\" was never defined.
37273Usually this means the macro was only invoked conditionally." >&2;}
37274   { (exit 1); exit 1; }; }
37275fi
37276if test -z "${SCIM_BUILD_TESTS_TRUE}" && test -z "${SCIM_BUILD_TESTS_FALSE}"; then
37277  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_TESTS\" was never defined.
37278Usually this means the macro was only invoked conditionally." >&5
37279$as_echo "$as_me: error: conditional \"SCIM_BUILD_TESTS\" was never defined.
37280Usually this means the macro was only invoked conditionally." >&2;}
37281   { (exit 1); exit 1; }; }
37282fi
37283if test -z "${SCIM_BUILD_CONFIG_SIMPLE_TRUE}" && test -z "${SCIM_BUILD_CONFIG_SIMPLE_FALSE}"; then
37284  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_CONFIG_SIMPLE\" was never defined.
37285Usually this means the macro was only invoked conditionally." >&5
37286$as_echo "$as_me: error: conditional \"SCIM_BUILD_CONFIG_SIMPLE\" was never defined.
37287Usually this means the macro was only invoked conditionally." >&2;}
37288   { (exit 1); exit 1; }; }
37289fi
37290if test -z "${SCIM_BUILD_CONFIG_SOCKET_TRUE}" && test -z "${SCIM_BUILD_CONFIG_SOCKET_FALSE}"; then
37291  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_CONFIG_SOCKET\" was never defined.
37292Usually this means the macro was only invoked conditionally." >&5
37293$as_echo "$as_me: error: conditional \"SCIM_BUILD_CONFIG_SOCKET\" was never defined.
37294Usually this means the macro was only invoked conditionally." >&2;}
37295   { (exit 1); exit 1; }; }
37296fi
37297if test -z "${SCIM_BUILD_FRONTEND_X11_TRUE}" && test -z "${SCIM_BUILD_FRONTEND_X11_FALSE}"; then
37298  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_FRONTEND_X11\" was never defined.
37299Usually this means the macro was only invoked conditionally." >&5
37300$as_echo "$as_me: error: conditional \"SCIM_BUILD_FRONTEND_X11\" was never defined.
37301Usually this means the macro was only invoked conditionally." >&2;}
37302   { (exit 1); exit 1; }; }
37303fi
37304if test -z "${SCIM_BUILD_FRONTEND_SOCKET_TRUE}" && test -z "${SCIM_BUILD_FRONTEND_SOCKET_FALSE}"; then
37305  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_FRONTEND_SOCKET\" was never defined.
37306Usually this means the macro was only invoked conditionally." >&5
37307$as_echo "$as_me: error: conditional \"SCIM_BUILD_FRONTEND_SOCKET\" was never defined.
37308Usually this means the macro was only invoked conditionally." >&2;}
37309   { (exit 1); exit 1; }; }
37310fi
37311if test -z "${SCIM_BUILD_IMENGINE_SOCKET_TRUE}" && test -z "${SCIM_BUILD_IMENGINE_SOCKET_FALSE}"; then
37312  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_IMENGINE_SOCKET\" was never defined.
37313Usually this means the macro was only invoked conditionally." >&5
37314$as_echo "$as_me: error: conditional \"SCIM_BUILD_IMENGINE_SOCKET\" was never defined.
37315Usually this means the macro was only invoked conditionally." >&2;}
37316   { (exit 1); exit 1; }; }
37317fi
37318if test -z "${SCIM_BUILD_IMENGINE_RAWCODE_TRUE}" && test -z "${SCIM_BUILD_IMENGINE_RAWCODE_FALSE}"; then
37319  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_IMENGINE_RAWCODE\" was never defined.
37320Usually this means the macro was only invoked conditionally." >&5
37321$as_echo "$as_me: error: conditional \"SCIM_BUILD_IMENGINE_RAWCODE\" was never defined.
37322Usually this means the macro was only invoked conditionally." >&2;}
37323   { (exit 1); exit 1; }; }
37324fi
37325if test -z "${SCIM_BUILD_GTK2_IMMODULE_TRUE}" && test -z "${SCIM_BUILD_GTK2_IMMODULE_FALSE}"; then
37326  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_GTK2_IMMODULE\" was never defined.
37327Usually this means the macro was only invoked conditionally." >&5
37328$as_echo "$as_me: error: conditional \"SCIM_BUILD_GTK2_IMMODULE\" was never defined.
37329Usually this means the macro was only invoked conditionally." >&2;}
37330   { (exit 1); exit 1; }; }
37331fi
37332if test -z "${SCIM_BUILD_FILTER_SCTC_TRUE}" && test -z "${SCIM_BUILD_FILTER_SCTC_FALSE}"; then
37333  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_FILTER_SCTC\" was never defined.
37334Usually this means the macro was only invoked conditionally." >&5
37335$as_echo "$as_me: error: conditional \"SCIM_BUILD_FILTER_SCTC\" was never defined.
37336Usually this means the macro was only invoked conditionally." >&2;}
37337   { (exit 1); exit 1; }; }
37338fi
37339if test -z "${SCIM_BUILD_SCIM_SETUP_TRUE}" && test -z "${SCIM_BUILD_SCIM_SETUP_FALSE}"; then
37340  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_SCIM_SETUP\" was never defined.
37341Usually this means the macro was only invoked conditionally." >&5
37342$as_echo "$as_me: error: conditional \"SCIM_BUILD_SCIM_SETUP\" was never defined.
37343Usually this means the macro was only invoked conditionally." >&2;}
37344   { (exit 1); exit 1; }; }
37345fi
37346if test -z "${SCIM_BUILD_GTK_UTILS_TRUE}" && test -z "${SCIM_BUILD_GTK_UTILS_FALSE}"; then
37347  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_GTK_UTILS\" was never defined.
37348Usually this means the macro was only invoked conditionally." >&5
37349$as_echo "$as_me: error: conditional \"SCIM_BUILD_GTK_UTILS\" was never defined.
37350Usually this means the macro was only invoked conditionally." >&2;}
37351   { (exit 1); exit 1; }; }
37352fi
37353if test -z "${SCIM_BUILD_X11_UTILS_TRUE}" && test -z "${SCIM_BUILD_X11_UTILS_FALSE}"; then
37354  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_X11_UTILS\" was never defined.
37355Usually this means the macro was only invoked conditionally." >&5
37356$as_echo "$as_me: error: conditional \"SCIM_BUILD_X11_UTILS\" was never defined.
37357Usually this means the macro was only invoked conditionally." >&2;}
37358   { (exit 1); exit 1; }; }
37359fi
37360if test -z "${SCIM_BUILD_TRAY_ICON_TRUE}" && test -z "${SCIM_BUILD_TRAY_ICON_FALSE}"; then
37361  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_TRAY_ICON\" was never defined.
37362Usually this means the macro was only invoked conditionally." >&5
37363$as_echo "$as_me: error: conditional \"SCIM_BUILD_TRAY_ICON\" was never defined.
37364Usually this means the macro was only invoked conditionally." >&2;}
37365   { (exit 1); exit 1; }; }
37366fi
37367if test -z "${SCIM_BUILD_PANEL_GTK_TRUE}" && test -z "${SCIM_BUILD_PANEL_GTK_FALSE}"; then
37368  { { $as_echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_PANEL_GTK\" was never defined.
37369Usually this means the macro was only invoked conditionally." >&5
37370$as_echo "$as_me: error: conditional \"SCIM_BUILD_PANEL_GTK\" was never defined.
37371Usually this means the macro was only invoked conditionally." >&2;}
37372   { (exit 1); exit 1; }; }
37373fi
37374
37375: ${CONFIG_STATUS=./config.status}
37376ac_write_fail=0
37377ac_clean_files_save=$ac_clean_files
37378ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37379{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37380$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37381cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37382#! $SHELL
37383# Generated by $as_me.
37384# Run this file to recreate the current configuration.
37385# Compiler output produced by configure, useful for debugging
37386# configure, is in config.log if it exists.
37387
37388debug=false
37389ac_cs_recheck=false
37390ac_cs_silent=false
37391SHELL=\${CONFIG_SHELL-$SHELL}
37392_ACEOF
37393
37394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37395## --------------------- ##
37396## M4sh Initialization.  ##
37397## --------------------- ##
37398
37399# Be more Bourne compatible
37400DUALCASE=1; export DUALCASE # for MKS sh
37401if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37402  emulate sh
37403  NULLCMD=:
37404  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37405  # is contrary to our usage.  Disable this feature.
37406  alias -g '${1+"$@"}'='"$@"'
37407  setopt NO_GLOB_SUBST
37408else
37409  case `(set -o) 2>/dev/null` in
37410  *posix*) set -o posix ;;
37411esac
37412
37413fi
37414
37415
37416
37417
37418# PATH needs CR
37419# Avoid depending upon Character Ranges.
37420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37423as_cr_digits='0123456789'
37424as_cr_alnum=$as_cr_Letters$as_cr_digits
37425
37426as_nl='
37427'
37428export as_nl
37429# Printing a long string crashes Solaris 7 /usr/bin/printf.
37430as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37431as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37432as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37433if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37434  as_echo='printf %s\n'
37435  as_echo_n='printf %s'
37436else
37437  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37438    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37439    as_echo_n='/usr/ucb/echo -n'
37440  else
37441    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37442    as_echo_n_body='eval
37443      arg=$1;
37444      case $arg in
37445      *"$as_nl"*)
37446	expr "X$arg" : "X\\(.*\\)$as_nl";
37447	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37448      esac;
37449      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37450    '
37451    export as_echo_n_body
37452    as_echo_n='sh -c $as_echo_n_body as_echo'
37453  fi
37454  export as_echo_body
37455  as_echo='sh -c $as_echo_body as_echo'
37456fi
37457
37458# The user is always right.
37459if test "${PATH_SEPARATOR+set}" != set; then
37460  PATH_SEPARATOR=:
37461  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37462    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37463      PATH_SEPARATOR=';'
37464  }
37465fi
37466
37467# Support unset when possible.
37468if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
37469  as_unset=unset
37470else
37471  as_unset=false
37472fi
37473
37474
37475# IFS
37476# We need space, tab and new line, in precisely that order.  Quoting is
37477# there to prevent editors from complaining about space-tab.
37478# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37479# splitting by setting IFS to empty value.)
37480IFS=" ""	$as_nl"
37481
37482# Find who we are.  Look in the path if we contain no directory separator.
37483case $0 in
37484  *[\\/]* ) as_myself=$0 ;;
37485  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37486for as_dir in $PATH
37487do
37488  IFS=$as_save_IFS
37489  test -z "$as_dir" && as_dir=.
37490  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37491done
37492IFS=$as_save_IFS
37493
37494     ;;
37495esac
37496# We did not find ourselves, most probably we were run as `sh COMMAND'
37497# in which case we are not to be found in the path.
37498if test "x$as_myself" = x; then
37499  as_myself=$0
37500fi
37501if test ! -f "$as_myself"; then
37502  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37503  { (exit 1); exit 1; }
37504fi
37505
37506# Work around bugs in pre-3.0 UWIN ksh.
37507for as_var in ENV MAIL MAILPATH
37508do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37509done
37510PS1='$ '
37511PS2='> '
37512PS4='+ '
37513
37514# NLS nuisances.
37515LC_ALL=C
37516export LC_ALL
37517LANGUAGE=C
37518export LANGUAGE
37519
37520# Required to use basename.
37521if expr a : '\(a\)' >/dev/null 2>&1 &&
37522   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37523  as_expr=expr
37524else
37525  as_expr=false
37526fi
37527
37528if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37529  as_basename=basename
37530else
37531  as_basename=false
37532fi
37533
37534
37535# Name of the executable.
37536as_me=`$as_basename -- "$0" ||
37537$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37538	 X"$0" : 'X\(//\)$' \| \
37539	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37540$as_echo X/"$0" |
37541    sed '/^.*\/\([^/][^/]*\)\/*$/{
37542	    s//\1/
37543	    q
37544	  }
37545	  /^X\/\(\/\/\)$/{
37546	    s//\1/
37547	    q
37548	  }
37549	  /^X\/\(\/\).*/{
37550	    s//\1/
37551	    q
37552	  }
37553	  s/.*/./; q'`
37554
37555# CDPATH.
37556$as_unset CDPATH
37557
37558
37559
37560  as_lineno_1=$LINENO
37561  as_lineno_2=$LINENO
37562  test "x$as_lineno_1" != "x$as_lineno_2" &&
37563  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
37564
37565  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37566  # uniformly replaced by the line number.  The first 'sed' inserts a
37567  # line-number line after each line using $LINENO; the second 'sed'
37568  # does the real work.  The second script uses 'N' to pair each
37569  # line-number line with the line containing $LINENO, and appends
37570  # trailing '-' during substitution so that $LINENO is not a special
37571  # case at line end.
37572  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37573  # scripts with optimization help from Paolo Bonzini.  Blame Lee
37574  # E. McMahon (1931-1989) for sed's syntax.  :-)
37575  sed -n '
37576    p
37577    /[$]LINENO/=
37578  ' <$as_myself |
37579    sed '
37580      s/[$]LINENO.*/&-/
37581      t lineno
37582      b
37583      :lineno
37584      N
37585      :loop
37586      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
37587      t loop
37588      s/-\n.*//
37589    ' >$as_me.lineno &&
37590  chmod +x "$as_me.lineno" ||
37591    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
37592   { (exit 1); exit 1; }; }
37593
37594  # Don't try to exec as it changes $[0], causing all sort of problems
37595  # (the dirname of $[0] is not the place where we might find the
37596  # original and so on.  Autoconf is especially sensitive to this).
37597  . "./$as_me.lineno"
37598  # Exit status is that of the last command.
37599  exit
37600}
37601
37602
37603if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37604  as_dirname=dirname
37605else
37606  as_dirname=false
37607fi
37608
37609ECHO_C= ECHO_N= ECHO_T=
37610case `echo -n x` in
37611-n*)
37612  case `echo 'x\c'` in
37613  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
37614  *)   ECHO_C='\c';;
37615  esac;;
37616*)
37617  ECHO_N='-n';;
37618esac
37619if expr a : '\(a\)' >/dev/null 2>&1 &&
37620   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37621  as_expr=expr
37622else
37623  as_expr=false
37624fi
37625
37626rm -f conf$$ conf$$.exe conf$$.file
37627if test -d conf$$.dir; then
37628  rm -f conf$$.dir/conf$$.file
37629else
37630  rm -f conf$$.dir
37631  mkdir conf$$.dir 2>/dev/null
37632fi
37633if (echo >conf$$.file) 2>/dev/null; then
37634  if ln -s conf$$.file conf$$ 2>/dev/null; then
37635    as_ln_s='ln -s'
37636    # ... but there are two gotchas:
37637    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37638    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37639    # In both cases, we have to default to `cp -p'.
37640    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37641      as_ln_s='cp -p'
37642  elif ln conf$$.file conf$$ 2>/dev/null; then
37643    as_ln_s=ln
37644  else
37645    as_ln_s='cp -p'
37646  fi
37647else
37648  as_ln_s='cp -p'
37649fi
37650rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37651rmdir conf$$.dir 2>/dev/null
37652
37653if mkdir -p . 2>/dev/null; then
37654  as_mkdir_p=:
37655else
37656  test -d ./-p && rmdir ./-p
37657  as_mkdir_p=false
37658fi
37659
37660if test -x / >/dev/null 2>&1; then
37661  as_test_x='test -x'
37662else
37663  if ls -dL / >/dev/null 2>&1; then
37664    as_ls_L_option=L
37665  else
37666    as_ls_L_option=
37667  fi
37668  as_test_x='
37669    eval sh -c '\''
37670      if test -d "$1"; then
37671	test -d "$1/.";
37672      else
37673	case $1 in
37674	-*)set "./$1";;
37675	esac;
37676	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
37677	???[sx]*):;;*)false;;esac;fi
37678    '\'' sh
37679  '
37680fi
37681as_executable_p=$as_test_x
37682
37683# Sed expression to map a string onto a valid CPP name.
37684as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37685
37686# Sed expression to map a string onto a valid variable name.
37687as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37688
37689
37690exec 6>&1
37691
37692# Save the log message, to keep $[0] and so on meaningful, and to
37693# report actual input values of CONFIG_FILES etc. instead of their
37694# values after options handling.
37695ac_log="
37696This file was extended by scim $as_me 1.4.9, which was
37697generated by GNU Autoconf 2.63.  Invocation command line was
37698
37699  CONFIG_FILES    = $CONFIG_FILES
37700  CONFIG_HEADERS  = $CONFIG_HEADERS
37701  CONFIG_LINKS    = $CONFIG_LINKS
37702  CONFIG_COMMANDS = $CONFIG_COMMANDS
37703  $ $0 $@
37704
37705on `(hostname || uname -n) 2>/dev/null | sed 1q`
37706"
37707
37708_ACEOF
37709
37710case $ac_config_files in *"
37711"*) set x $ac_config_files; shift; ac_config_files=$*;;
37712esac
37713
37714case $ac_config_headers in *"
37715"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37716esac
37717
37718
37719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37720# Files that config.status was made for.
37721config_files="$ac_config_files"
37722config_headers="$ac_config_headers"
37723config_commands="$ac_config_commands"
37724
37725_ACEOF
37726
37727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37728ac_cs_usage="\
37729\`$as_me' instantiates files from templates according to the
37730current configuration.
37731
37732Usage: $0 [OPTION]... [FILE]...
37733
37734  -h, --help       print this help, then exit
37735  -V, --version    print version number and configuration settings, then exit
37736  -q, --quiet, --silent
37737                   do not print progress messages
37738  -d, --debug      don't remove temporary files
37739      --recheck    update $as_me by reconfiguring in the same conditions
37740      --file=FILE[:TEMPLATE]
37741                   instantiate the configuration file FILE
37742      --header=FILE[:TEMPLATE]
37743                   instantiate the configuration header FILE
37744
37745Configuration files:
37746$config_files
37747
37748Configuration headers:
37749$config_headers
37750
37751Configuration commands:
37752$config_commands
37753
37754Report bugs to <bug-autoconf@gnu.org>."
37755
37756_ACEOF
37757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37758ac_cs_version="\\
37759scim config.status 1.4.9
37760configured by $0, generated by GNU Autoconf 2.63,
37761  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
37762
37763Copyright (C) 2008 Free Software Foundation, Inc.
37764This config.status script is free software; the Free Software Foundation
37765gives unlimited permission to copy, distribute and modify it."
37766
37767ac_pwd='$ac_pwd'
37768srcdir='$srcdir'
37769INSTALL='$INSTALL'
37770MKDIR_P='$MKDIR_P'
37771AWK='$AWK'
37772test -n "\$AWK" || AWK=awk
37773_ACEOF
37774
37775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37776# The default lists apply if the user does not specify any file.
37777ac_need_defaults=:
37778while test $# != 0
37779do
37780  case $1 in
37781  --*=*)
37782    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37783    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37784    ac_shift=:
37785    ;;
37786  *)
37787    ac_option=$1
37788    ac_optarg=$2
37789    ac_shift=shift
37790    ;;
37791  esac
37792
37793  case $ac_option in
37794  # Handling of the options.
37795  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37796    ac_cs_recheck=: ;;
37797  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37798    $as_echo "$ac_cs_version"; exit ;;
37799  --debug | --debu | --deb | --de | --d | -d )
37800    debug=: ;;
37801  --file | --fil | --fi | --f )
37802    $ac_shift
37803    case $ac_optarg in
37804    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37805    esac
37806    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
37807    ac_need_defaults=false;;
37808  --header | --heade | --head | --hea )
37809    $ac_shift
37810    case $ac_optarg in
37811    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37812    esac
37813    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
37814    ac_need_defaults=false;;
37815  --he | --h)
37816    # Conflict between --help and --header
37817    { $as_echo "$as_me: error: ambiguous option: $1
37818Try \`$0 --help' for more information." >&2
37819   { (exit 1); exit 1; }; };;
37820  --help | --hel | -h )
37821    $as_echo "$ac_cs_usage"; exit ;;
37822  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37823  | -silent | --silent | --silen | --sile | --sil | --si | --s)
37824    ac_cs_silent=: ;;
37825
37826  # This is an error.
37827  -*) { $as_echo "$as_me: error: unrecognized option: $1
37828Try \`$0 --help' for more information." >&2
37829   { (exit 1); exit 1; }; } ;;
37830
37831  *) ac_config_targets="$ac_config_targets $1"
37832     ac_need_defaults=false ;;
37833
37834  esac
37835  shift
37836done
37837
37838ac_configure_extra_args=
37839
37840if $ac_cs_silent; then
37841  exec 6>/dev/null
37842  ac_configure_extra_args="$ac_configure_extra_args --silent"
37843fi
37844
37845_ACEOF
37846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37847if \$ac_cs_recheck; then
37848  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37849  shift
37850  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37851  CONFIG_SHELL='$SHELL'
37852  export CONFIG_SHELL
37853  exec "\$@"
37854fi
37855
37856_ACEOF
37857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37858exec 5>>config.log
37859{
37860  echo
37861  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37862## Running $as_me. ##
37863_ASBOX
37864  $as_echo "$ac_log"
37865} >&5
37866
37867_ACEOF
37868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37869#
37870# INIT-COMMANDS
37871#
37872# Capture the value of obsolete ALL_LINGUAS because we need it to compute
37873    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
37874    # from automake.
37875    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
37876    # Capture the value of LINGUAS because we need it to compute CATALOGS.
37877    LINGUAS="${LINGUAS-%UNSET%}"
37878
37879AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37880INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
37881INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
37882MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
37883XGETTEXT='${INTLTOOL_XGETTEXT}'
37884
37885_ACEOF
37886
37887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37888
37889# Handling of arguments.
37890for ac_config_target in $ac_config_targets
37891do
37892  case $ac_config_target in
37893    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
37894    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
37895    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37896    "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
37897    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37898    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
37899    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
37900    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
37901    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
37902    "src/scim_types.h") CONFIG_FILES="$CONFIG_FILES src/scim_types.h" ;;
37903    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
37904    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
37905    "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;;
37906    "data/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES data/pixmaps/Makefile" ;;
37907    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
37908    "modules/FrontEnd/IMdkit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FrontEnd/IMdkit/Makefile" ;;
37909    "modules/FrontEnd/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FrontEnd/Makefile" ;;
37910    "modules/IMEngine/Makefile") CONFIG_FILES="$CONFIG_FILES modules/IMEngine/Makefile" ;;
37911    "modules/Filter/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Filter/Makefile" ;;
37912    "modules/Config/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Config/Makefile" ;;
37913    "modules/SetupUI/Makefile") CONFIG_FILES="$CONFIG_FILES modules/SetupUI/Makefile" ;;
37914    "docs/scim.cfg") CONFIG_FILES="$CONFIG_FILES docs/scim.cfg" ;;
37915    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
37916    "docs/manual/Makefile") CONFIG_FILES="$CONFIG_FILES docs/manual/Makefile" ;;
37917    "docs/manual/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES docs/manual/zh_CN/Makefile" ;;
37918    "docs/manual/zh_CN/figures/Makefile") CONFIG_FILES="$CONFIG_FILES docs/manual/zh_CN/figures/Makefile" ;;
37919    "configs/Makefile") CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
37920    "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
37921    "extras/gtk2_immodule/Makefile") CONFIG_FILES="$CONFIG_FILES extras/gtk2_immodule/Makefile" ;;
37922    "extras/setup/Makefile") CONFIG_FILES="$CONFIG_FILES extras/setup/Makefile" ;;
37923    "extras/setup/scim-setup") CONFIG_FILES="$CONFIG_FILES extras/setup/scim-setup" ;;
37924    "extras/panel/Makefile") CONFIG_FILES="$CONFIG_FILES extras/panel/Makefile" ;;
37925    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
37926    "intltool-extract") CONFIG_FILES="$CONFIG_FILES intltool-extract" ;;
37927    "intltool-merge") CONFIG_FILES="$CONFIG_FILES intltool-merge" ;;
37928    "intltool-update") CONFIG_FILES="$CONFIG_FILES intltool-update" ;;
37929    "scim.pc") CONFIG_FILES="$CONFIG_FILES scim.pc" ;;
37930    "scim-gtkutils.pc") CONFIG_FILES="$CONFIG_FILES scim-gtkutils.pc" ;;
37931    "scim-x11utils.pc") CONFIG_FILES="$CONFIG_FILES scim-x11utils.pc" ;;
37932    "scim.spec") CONFIG_FILES="$CONFIG_FILES scim.spec" ;;
37933
37934  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37935$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37936   { (exit 1); exit 1; }; };;
37937  esac
37938done
37939
37940
37941# If the user did not use the arguments to specify the items to instantiate,
37942# then the envvar interface is used.  Set only those that are not.
37943# We use the long form for the default assignment because of an extremely
37944# bizarre bug on SunOS 4.1.3.
37945if $ac_need_defaults; then
37946  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37947  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37948  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37949fi
37950
37951# Have a temporary directory for convenience.  Make it in the build tree
37952# simply because there is no reason against having it here, and in addition,
37953# creating and moving files from /tmp can sometimes cause problems.
37954# Hook for its removal unless debugging.
37955# Note that there is a small window in which the directory will not be cleaned:
37956# after its creation but before its name has been assigned to `$tmp'.
37957$debug ||
37958{
37959  tmp=
37960  trap 'exit_status=$?
37961  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
37962' 0
37963  trap '{ (exit 1); exit 1; }' 1 2 13 15
37964}
37965# Create a (secure) tmp directory for tmp files.
37966
37967{
37968  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37969  test -n "$tmp" && test -d "$tmp"
37970}  ||
37971{
37972  tmp=./conf$$-$RANDOM
37973  (umask 077 && mkdir "$tmp")
37974} ||
37975{
37976   $as_echo "$as_me: cannot create a temporary directory in ." >&2
37977   { (exit 1); exit 1; }
37978}
37979
37980# Set up the scripts for CONFIG_FILES section.
37981# No need to generate them if there are no CONFIG_FILES.
37982# This happens for instance with `./config.status config.h'.
37983if test -n "$CONFIG_FILES"; then
37984
37985
37986ac_cr='
37987'
37988ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37989if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37990  ac_cs_awk_cr='\\r'
37991else
37992  ac_cs_awk_cr=$ac_cr
37993fi
37994
37995echo 'BEGIN {' >"$tmp/subs1.awk" &&
37996_ACEOF
37997
37998
37999{
38000  echo "cat >conf$$subs.awk <<_ACEOF" &&
38001  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38002  echo "_ACEOF"
38003} >conf$$subs.sh ||
38004  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38005$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38006   { (exit 1); exit 1; }; }
38007ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
38008ac_delim='%!_!# '
38009for ac_last_try in false false false false false :; do
38010  . ./conf$$subs.sh ||
38011    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38012$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38013   { (exit 1); exit 1; }; }
38014
38015  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38016  if test $ac_delim_n = $ac_delim_num; then
38017    break
38018  elif $ac_last_try; then
38019    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38020$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38021   { (exit 1); exit 1; }; }
38022  else
38023    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38024  fi
38025done
38026rm -f conf$$subs.sh
38027
38028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38029cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
38030_ACEOF
38031sed -n '
38032h
38033s/^/S["/; s/!.*/"]=/
38034p
38035g
38036s/^[^!]*!//
38037:repl
38038t repl
38039s/'"$ac_delim"'$//
38040t delim
38041:nl
38042h
38043s/\(.\{148\}\).*/\1/
38044t more1
38045s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38046p
38047n
38048b repl
38049:more1
38050s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38051p
38052g
38053s/.\{148\}//
38054t nl
38055:delim
38056h
38057s/\(.\{148\}\).*/\1/
38058t more2
38059s/["\\]/\\&/g; s/^/"/; s/$/"/
38060p
38061b
38062:more2
38063s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38064p
38065g
38066s/.\{148\}//
38067t delim
38068' <conf$$subs.awk | sed '
38069/^[^""]/{
38070  N
38071  s/\n//
38072}
38073' >>$CONFIG_STATUS || ac_write_fail=1
38074rm -f conf$$subs.awk
38075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38076_ACAWK
38077cat >>"\$tmp/subs1.awk" <<_ACAWK &&
38078  for (key in S) S_is_set[key] = 1
38079  FS = ""
38080
38081}
38082{
38083  line = $ 0
38084  nfields = split(line, field, "@")
38085  substed = 0
38086  len = length(field[1])
38087  for (i = 2; i < nfields; i++) {
38088    key = field[i]
38089    keylen = length(key)
38090    if (S_is_set[key]) {
38091      value = S[key]
38092      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38093      len += length(value) + length(field[++i])
38094      substed = 1
38095    } else
38096      len += 1 + keylen
38097  }
38098
38099  print line
38100}
38101
38102_ACAWK
38103_ACEOF
38104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38105if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38106  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38107else
38108  cat
38109fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
38110  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
38111$as_echo "$as_me: error: could not setup config files machinery" >&2;}
38112   { (exit 1); exit 1; }; }
38113_ACEOF
38114
38115# VPATH may cause trouble with some makes, so we remove $(srcdir),
38116# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38117# trailing colons and then remove the whole line if VPATH becomes empty
38118# (actually we leave an empty line to preserve line numbers).
38119if test "x$srcdir" = x.; then
38120  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
38121s/:*\$(srcdir):*/:/
38122s/:*\${srcdir}:*/:/
38123s/:*@srcdir@:*/:/
38124s/^\([^=]*=[	 ]*\):*/\1/
38125s/:*$//
38126s/^[^=]*=[	 ]*$//
38127}'
38128fi
38129
38130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38131fi # test -n "$CONFIG_FILES"
38132
38133# Set up the scripts for CONFIG_HEADERS section.
38134# No need to generate them if there are no CONFIG_HEADERS.
38135# This happens for instance with `./config.status Makefile'.
38136if test -n "$CONFIG_HEADERS"; then
38137cat >"$tmp/defines.awk" <<\_ACAWK ||
38138BEGIN {
38139_ACEOF
38140
38141# Transform confdefs.h into an awk script `defines.awk', embedded as
38142# here-document in config.status, that substitutes the proper values into
38143# config.h.in to produce config.h.
38144
38145# Create a delimiter string that does not exist in confdefs.h, to ease
38146# handling of long lines.
38147ac_delim='%!_!# '
38148for ac_last_try in false false :; do
38149  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
38150  if test -z "$ac_t"; then
38151    break
38152  elif $ac_last_try; then
38153    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
38154$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
38155   { (exit 1); exit 1; }; }
38156  else
38157    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38158  fi
38159done
38160
38161# For the awk script, D is an array of macro values keyed by name,
38162# likewise P contains macro parameters if any.  Preserve backslash
38163# newline sequences.
38164
38165ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38166sed -n '
38167s/.\{148\}/&'"$ac_delim"'/g
38168t rset
38169:rset
38170s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
38171t def
38172d
38173:def
38174s/\\$//
38175t bsnl
38176s/["\\]/\\&/g
38177s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38178D["\1"]=" \3"/p
38179s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
38180d
38181:bsnl
38182s/["\\]/\\&/g
38183s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38184D["\1"]=" \3\\\\\\n"\\/p
38185t cont
38186s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38187t cont
38188d
38189:cont
38190n
38191s/.\{148\}/&'"$ac_delim"'/g
38192t clear
38193:clear
38194s/\\$//
38195t bsnlc
38196s/["\\]/\\&/g; s/^/"/; s/$/"/p
38197d
38198:bsnlc
38199s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38200b cont
38201' <confdefs.h | sed '
38202s/'"$ac_delim"'/"\\\
38203"/g' >>$CONFIG_STATUS || ac_write_fail=1
38204
38205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38206  for (key in D) D_is_set[key] = 1
38207  FS = ""
38208}
38209/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38210  line = \$ 0
38211  split(line, arg, " ")
38212  if (arg[1] == "#") {
38213    defundef = arg[2]
38214    mac1 = arg[3]
38215  } else {
38216    defundef = substr(arg[1], 2)
38217    mac1 = arg[2]
38218  }
38219  split(mac1, mac2, "(") #)
38220  macro = mac2[1]
38221  prefix = substr(line, 1, index(line, defundef) - 1)
38222  if (D_is_set[macro]) {
38223    # Preserve the white space surrounding the "#".
38224    print prefix "define", macro P[macro] D[macro]
38225    next
38226  } else {
38227    # Replace #undef with comments.  This is necessary, for example,
38228    # in the case of _POSIX_SOURCE, which is predefined and required
38229    # on some systems where configure will not decide to define it.
38230    if (defundef == "undef") {
38231      print "/*", prefix defundef, macro, "*/"
38232      next
38233    }
38234  }
38235}
38236{ print }
38237_ACAWK
38238_ACEOF
38239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38240  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
38241$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
38242   { (exit 1); exit 1; }; }
38243fi # test -n "$CONFIG_HEADERS"
38244
38245
38246eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
38247shift
38248for ac_tag
38249do
38250  case $ac_tag in
38251  :[FHLC]) ac_mode=$ac_tag; continue;;
38252  esac
38253  case $ac_mode$ac_tag in
38254  :[FHL]*:*);;
38255  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
38256$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
38257   { (exit 1); exit 1; }; };;
38258  :[FH]-) ac_tag=-:-;;
38259  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38260  esac
38261  ac_save_IFS=$IFS
38262  IFS=:
38263  set x $ac_tag
38264  IFS=$ac_save_IFS
38265  shift
38266  ac_file=$1
38267  shift
38268
38269  case $ac_mode in
38270  :L) ac_source=$1;;
38271  :[FH])
38272    ac_file_inputs=
38273    for ac_f
38274    do
38275      case $ac_f in
38276      -) ac_f="$tmp/stdin";;
38277      *) # Look for the file first in the build tree, then in the source tree
38278	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
38279	 # because $ac_f cannot contain `:'.
38280	 test -f "$ac_f" ||
38281	   case $ac_f in
38282	   [\\/$]*) false;;
38283	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38284	   esac ||
38285	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
38286$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
38287   { (exit 1); exit 1; }; };;
38288      esac
38289      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38290      ac_file_inputs="$ac_file_inputs '$ac_f'"
38291    done
38292
38293    # Let's still pretend it is `configure' which instantiates (i.e., don't
38294    # use $as_me), people would be surprised to read:
38295    #    /* config.h.  Generated by config.status.  */
38296    configure_input='Generated from '`
38297	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38298	`' by configure.'
38299    if test x"$ac_file" != x-; then
38300      configure_input="$ac_file.  $configure_input"
38301      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
38302$as_echo "$as_me: creating $ac_file" >&6;}
38303    fi
38304    # Neutralize special characters interpreted by sed in replacement strings.
38305    case $configure_input in #(
38306    *\&* | *\|* | *\\* )
38307       ac_sed_conf_input=`$as_echo "$configure_input" |
38308       sed 's/[\\\\&|]/\\\\&/g'`;; #(
38309    *) ac_sed_conf_input=$configure_input;;
38310    esac
38311
38312    case $ac_tag in
38313    *:-:* | *:-) cat >"$tmp/stdin" \
38314      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
38315$as_echo "$as_me: error: could not create $ac_file" >&2;}
38316   { (exit 1); exit 1; }; } ;;
38317    esac
38318    ;;
38319  esac
38320
38321  ac_dir=`$as_dirname -- "$ac_file" ||
38322$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38323	 X"$ac_file" : 'X\(//\)[^/]' \| \
38324	 X"$ac_file" : 'X\(//\)$' \| \
38325	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38326$as_echo X"$ac_file" |
38327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38328	    s//\1/
38329	    q
38330	  }
38331	  /^X\(\/\/\)[^/].*/{
38332	    s//\1/
38333	    q
38334	  }
38335	  /^X\(\/\/\)$/{
38336	    s//\1/
38337	    q
38338	  }
38339	  /^X\(\/\).*/{
38340	    s//\1/
38341	    q
38342	  }
38343	  s/.*/./; q'`
38344  { as_dir="$ac_dir"
38345  case $as_dir in #(
38346  -*) as_dir=./$as_dir;;
38347  esac
38348  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
38349    as_dirs=
38350    while :; do
38351      case $as_dir in #(
38352      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
38353      *) as_qdir=$as_dir;;
38354      esac
38355      as_dirs="'$as_qdir' $as_dirs"
38356      as_dir=`$as_dirname -- "$as_dir" ||
38357$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38358	 X"$as_dir" : 'X\(//\)[^/]' \| \
38359	 X"$as_dir" : 'X\(//\)$' \| \
38360	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38361$as_echo X"$as_dir" |
38362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38363	    s//\1/
38364	    q
38365	  }
38366	  /^X\(\/\/\)[^/].*/{
38367	    s//\1/
38368	    q
38369	  }
38370	  /^X\(\/\/\)$/{
38371	    s//\1/
38372	    q
38373	  }
38374	  /^X\(\/\).*/{
38375	    s//\1/
38376	    q
38377	  }
38378	  s/.*/./; q'`
38379      test -d "$as_dir" && break
38380    done
38381    test -z "$as_dirs" || eval "mkdir $as_dirs"
38382  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
38383$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
38384   { (exit 1); exit 1; }; }; }
38385  ac_builddir=.
38386
38387case "$ac_dir" in
38388.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38389*)
38390  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38391  # A ".." for each directory in $ac_dir_suffix.
38392  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38393  case $ac_top_builddir_sub in
38394  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38395  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38396  esac ;;
38397esac
38398ac_abs_top_builddir=$ac_pwd
38399ac_abs_builddir=$ac_pwd$ac_dir_suffix
38400# for backward compatibility:
38401ac_top_builddir=$ac_top_build_prefix
38402
38403case $srcdir in
38404  .)  # We are building in place.
38405    ac_srcdir=.
38406    ac_top_srcdir=$ac_top_builddir_sub
38407    ac_abs_top_srcdir=$ac_pwd ;;
38408  [\\/]* | ?:[\\/]* )  # Absolute name.
38409    ac_srcdir=$srcdir$ac_dir_suffix;
38410    ac_top_srcdir=$srcdir
38411    ac_abs_top_srcdir=$srcdir ;;
38412  *) # Relative name.
38413    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38414    ac_top_srcdir=$ac_top_build_prefix$srcdir
38415    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38416esac
38417ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38418
38419
38420  case $ac_mode in
38421  :F)
38422  #
38423  # CONFIG_FILE
38424  #
38425
38426  case $INSTALL in
38427  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38428  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38429  esac
38430  ac_MKDIR_P=$MKDIR_P
38431  case $MKDIR_P in
38432  [\\/$]* | ?:[\\/]* ) ;;
38433  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38434  esac
38435_ACEOF
38436
38437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38438# If the template does not know about datarootdir, expand it.
38439# FIXME: This hack should be removed a few years after 2.60.
38440ac_datarootdir_hack=; ac_datarootdir_seen=
38441
38442ac_sed_dataroot='
38443/datarootdir/ {
38444  p
38445  q
38446}
38447/@datadir@/p
38448/@docdir@/p
38449/@infodir@/p
38450/@localedir@/p
38451/@mandir@/p
38452'
38453case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38454*datarootdir*) ac_datarootdir_seen=yes;;
38455*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38456  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38457$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38458_ACEOF
38459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38460  ac_datarootdir_hack='
38461  s&@datadir@&$datadir&g
38462  s&@docdir@&$docdir&g
38463  s&@infodir@&$infodir&g
38464  s&@localedir@&$localedir&g
38465  s&@mandir@&$mandir&g
38466    s&\\\${datarootdir}&$datarootdir&g' ;;
38467esac
38468_ACEOF
38469
38470# Neutralize VPATH when `$srcdir' = `.'.
38471# Shell code in configure.ac might set extrasub.
38472# FIXME: do we really want to maintain this feature?
38473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38474ac_sed_extra="$ac_vpsub
38475$extrasub
38476_ACEOF
38477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38478:t
38479/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38480s|@configure_input@|$ac_sed_conf_input|;t t
38481s&@top_builddir@&$ac_top_builddir_sub&;t t
38482s&@top_build_prefix@&$ac_top_build_prefix&;t t
38483s&@srcdir@&$ac_srcdir&;t t
38484s&@abs_srcdir@&$ac_abs_srcdir&;t t
38485s&@top_srcdir@&$ac_top_srcdir&;t t
38486s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38487s&@builddir@&$ac_builddir&;t t
38488s&@abs_builddir@&$ac_abs_builddir&;t t
38489s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38490s&@INSTALL@&$ac_INSTALL&;t t
38491s&@MKDIR_P@&$ac_MKDIR_P&;t t
38492$ac_datarootdir_hack
38493"
38494eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
38495  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
38496$as_echo "$as_me: error: could not create $ac_file" >&2;}
38497   { (exit 1); exit 1; }; }
38498
38499test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38500  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
38501  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
38502  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38503which seems to be undefined.  Please make sure it is defined." >&5
38504$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38505which seems to be undefined.  Please make sure it is defined." >&2;}
38506
38507  rm -f "$tmp/stdin"
38508  case $ac_file in
38509  -) cat "$tmp/out" && rm -f "$tmp/out";;
38510  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
38511  esac \
38512  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
38513$as_echo "$as_me: error: could not create $ac_file" >&2;}
38514   { (exit 1); exit 1; }; }
38515 ;;
38516  :H)
38517  #
38518  # CONFIG_HEADER
38519  #
38520  if test x"$ac_file" != x-; then
38521    {
38522      $as_echo "/* $configure_input  */" \
38523      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
38524    } >"$tmp/config.h" \
38525      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
38526$as_echo "$as_me: error: could not create $ac_file" >&2;}
38527   { (exit 1); exit 1; }; }
38528    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
38529      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38530$as_echo "$as_me: $ac_file is unchanged" >&6;}
38531    else
38532      rm -f "$ac_file"
38533      mv "$tmp/config.h" "$ac_file" \
38534	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
38535$as_echo "$as_me: error: could not create $ac_file" >&2;}
38536   { (exit 1); exit 1; }; }
38537    fi
38538  else
38539    $as_echo "/* $configure_input  */" \
38540      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
38541      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
38542$as_echo "$as_me: error: could not create -" >&2;}
38543   { (exit 1); exit 1; }; }
38544  fi
38545# Compute "$ac_file"'s index in $config_headers.
38546_am_arg="$ac_file"
38547_am_stamp_count=1
38548for _am_header in $config_headers :; do
38549  case $_am_header in
38550    $_am_arg | $_am_arg:* )
38551      break ;;
38552    * )
38553      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38554  esac
38555done
38556echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38557$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38558	 X"$_am_arg" : 'X\(//\)[^/]' \| \
38559	 X"$_am_arg" : 'X\(//\)$' \| \
38560	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38561$as_echo X"$_am_arg" |
38562    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38563	    s//\1/
38564	    q
38565	  }
38566	  /^X\(\/\/\)[^/].*/{
38567	    s//\1/
38568	    q
38569	  }
38570	  /^X\(\/\/\)$/{
38571	    s//\1/
38572	    q
38573	  }
38574	  /^X\(\/\).*/{
38575	    s//\1/
38576	    q
38577	  }
38578	  s/.*/./; q'`/stamp-h$_am_stamp_count
38579 ;;
38580
38581  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
38582$as_echo "$as_me: executing $ac_file commands" >&6;}
38583 ;;
38584  esac
38585
38586
38587  case $ac_file$ac_mode in
38588    "default-1":C)
38589    for ac_file in $CONFIG_FILES; do
38590      # Support "outfile[:infile[:infile...]]"
38591      case "$ac_file" in
38592        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
38593      esac
38594      # PO directories have a Makefile.in generated from Makefile.in.in.
38595      case "$ac_file" in */Makefile.in)
38596        # Adjust a relative srcdir.
38597        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
38598        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
38599        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
38600        # In autoconf-2.13 it is called $ac_given_srcdir.
38601        # In autoconf-2.50 it is called $srcdir.
38602        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
38603        case "$ac_given_srcdir" in
38604          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
38605          /*) top_srcdir="$ac_given_srcdir" ;;
38606          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
38607        esac
38608        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
38609          rm -f "$ac_dir/POTFILES"
38610          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
38611          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
38612          POMAKEFILEDEPS="POTFILES.in"
38613          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
38614          # on $ac_dir but don't depend on user-specified configuration
38615          # parameters.
38616          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
38617            # The LINGUAS file contains the set of available languages.
38618            if test -n "$OBSOLETE_ALL_LINGUAS"; then
38619              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
38620            fi
38621            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
38622            # Hide the ALL_LINGUAS assigment from automake.
38623            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
38624            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
38625          else
38626            # The set of available languages was given in configure.in.
38627            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
38628          fi
38629          # Compute POFILES
38630          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
38631          # Compute UPDATEPOFILES
38632          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
38633          # Compute DUMMYPOFILES
38634          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
38635          # Compute GMOFILES
38636          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
38637          case "$ac_given_srcdir" in
38638            .) srcdirpre= ;;
38639            *) srcdirpre='$(srcdir)/' ;;
38640          esac
38641          POFILES=
38642          UPDATEPOFILES=
38643          DUMMYPOFILES=
38644          GMOFILES=
38645          for lang in $ALL_LINGUAS; do
38646            POFILES="$POFILES $srcdirpre$lang.po"
38647            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
38648            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
38649            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
38650          done
38651          # CATALOGS depends on both $ac_dir and the user's LINGUAS
38652          # environment variable.
38653          INST_LINGUAS=
38654          if test -n "$ALL_LINGUAS"; then
38655            for presentlang in $ALL_LINGUAS; do
38656              useit=no
38657              if test "%UNSET%" != "$LINGUAS"; then
38658                desiredlanguages="$LINGUAS"
38659              else
38660                desiredlanguages="$ALL_LINGUAS"
38661              fi
38662              for desiredlang in $desiredlanguages; do
38663                # Use the presentlang catalog if desiredlang is
38664                #   a. equal to presentlang, or
38665                #   b. a variant of presentlang (because in this case,
38666                #      presentlang can be used as a fallback for messages
38667                #      which are not translated in the desiredlang catalog).
38668                case "$desiredlang" in
38669                  "$presentlang"*) useit=yes;;
38670                esac
38671              done
38672              if test $useit = yes; then
38673                INST_LINGUAS="$INST_LINGUAS $presentlang"
38674              fi
38675            done
38676          fi
38677          CATALOGS=
38678          if test -n "$INST_LINGUAS"; then
38679            for lang in $INST_LINGUAS; do
38680              CATALOGS="$CATALOGS $lang.gmo"
38681            done
38682          fi
38683          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
38684          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
38685          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
38686            if test -f "$f"; then
38687              case "$f" in
38688                *.orig | *.bak | *~) ;;
38689                *) cat "$f" >> "$ac_dir/Makefile" ;;
38690              esac
38691            fi
38692          done
38693        fi
38694        ;;
38695      esac
38696    done ;;
38697    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
38698  # Strip MF so we end up with the name of the file.
38699  mf=`echo "$mf" | sed -e 's/:.*$//'`
38700  # Check whether this is an Automake generated Makefile or not.
38701  # We used to match only the files named `Makefile.in', but
38702  # some people rename them; so instead we look at the file content.
38703  # Grep'ing the first line is not enough: some people post-process
38704  # each Makefile.in and add a new line on top of each file to say so.
38705  # Grep'ing the whole file is not good either: AIX grep has a line
38706  # limit of 2048, but all sed's we know have understand at least 4000.
38707  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38708    dirpart=`$as_dirname -- "$mf" ||
38709$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38710	 X"$mf" : 'X\(//\)[^/]' \| \
38711	 X"$mf" : 'X\(//\)$' \| \
38712	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38713$as_echo X"$mf" |
38714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38715	    s//\1/
38716	    q
38717	  }
38718	  /^X\(\/\/\)[^/].*/{
38719	    s//\1/
38720	    q
38721	  }
38722	  /^X\(\/\/\)$/{
38723	    s//\1/
38724	    q
38725	  }
38726	  /^X\(\/\).*/{
38727	    s//\1/
38728	    q
38729	  }
38730	  s/.*/./; q'`
38731  else
38732    continue
38733  fi
38734  # Extract the definition of DEPDIR, am__include, and am__quote
38735  # from the Makefile without running `make'.
38736  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38737  test -z "$DEPDIR" && continue
38738  am__include=`sed -n 's/^am__include = //p' < "$mf"`
38739  test -z "am__include" && continue
38740  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
38741  # When using ansi2knr, U may be empty or an underscore; expand it
38742  U=`sed -n 's/^U = //p' < "$mf"`
38743  # Find all dependency output files, they are included files with
38744  # $(DEPDIR) in their names.  We invoke sed twice because it is the
38745  # simplest approach to changing $(DEPDIR) to its actual value in the
38746  # expansion.
38747  for file in `sed -n "
38748    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
38749       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
38750    # Make sure the directory exists.
38751    test -f "$dirpart/$file" && continue
38752    fdir=`$as_dirname -- "$file" ||
38753$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38754	 X"$file" : 'X\(//\)[^/]' \| \
38755	 X"$file" : 'X\(//\)$' \| \
38756	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38757$as_echo X"$file" |
38758    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38759	    s//\1/
38760	    q
38761	  }
38762	  /^X\(\/\/\)[^/].*/{
38763	    s//\1/
38764	    q
38765	  }
38766	  /^X\(\/\/\)$/{
38767	    s//\1/
38768	    q
38769	  }
38770	  /^X\(\/\).*/{
38771	    s//\1/
38772	    q
38773	  }
38774	  s/.*/./; q'`
38775    { as_dir=$dirpart/$fdir
38776  case $as_dir in #(
38777  -*) as_dir=./$as_dir;;
38778  esac
38779  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
38780    as_dirs=
38781    while :; do
38782      case $as_dir in #(
38783      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
38784      *) as_qdir=$as_dir;;
38785      esac
38786      as_dirs="'$as_qdir' $as_dirs"
38787      as_dir=`$as_dirname -- "$as_dir" ||
38788$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38789	 X"$as_dir" : 'X\(//\)[^/]' \| \
38790	 X"$as_dir" : 'X\(//\)$' \| \
38791	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38792$as_echo X"$as_dir" |
38793    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38794	    s//\1/
38795	    q
38796	  }
38797	  /^X\(\/\/\)[^/].*/{
38798	    s//\1/
38799	    q
38800	  }
38801	  /^X\(\/\/\)$/{
38802	    s//\1/
38803	    q
38804	  }
38805	  /^X\(\/\).*/{
38806	    s//\1/
38807	    q
38808	  }
38809	  s/.*/./; q'`
38810      test -d "$as_dir" && break
38811    done
38812    test -z "$as_dirs" || eval "mkdir $as_dirs"
38813  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
38814$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
38815   { (exit 1); exit 1; }; }; }
38816    # echo "creating $dirpart/$file"
38817    echo '# dummy' > "$dirpart/$file"
38818  done
38819done
38820 ;;
38821    "intltool":C)
38822
38823intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
38824               -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
38825               -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
38826               -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
38827               -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
38828               -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
38829
38830eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
38831  > intltool-extract.out
38832if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
38833  rm -f intltool-extract.out
38834else
38835  mv -f intltool-extract.out intltool-extract
38836fi
38837chmod ugo+x intltool-extract
38838chmod u+w intltool-extract
38839
38840eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
38841  > intltool-merge.out
38842if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
38843  rm -f intltool-merge.out
38844else
38845  mv -f intltool-merge.out intltool-merge
38846fi
38847chmod ugo+x intltool-merge
38848chmod u+w intltool-merge
38849
38850eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
38851  > intltool-update.out
38852if cmp -s intltool-update intltool-update.out 2>/dev/null; then
38853  rm -f intltool-update.out
38854else
38855  mv -f intltool-update.out intltool-update
38856fi
38857chmod ugo+x intltool-update
38858chmod u+w intltool-update
38859
38860 ;;
38861
38862  esac
38863done # for ac_tag
38864
38865
38866{ (exit 0); exit 0; }
38867_ACEOF
38868chmod +x $CONFIG_STATUS
38869ac_clean_files=$ac_clean_files_save
38870
38871test $ac_write_fail = 0 ||
38872  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
38873$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
38874   { (exit 1); exit 1; }; }
38875
38876
38877# configure is writing to config.log, and then calls config.status.
38878# config.status does its own redirection, appending to config.log.
38879# Unfortunately, on DOS this fails, as config.log is still kept open
38880# by configure, so config.status won't be able to write to it; its
38881# output is simply discarded.  So we exec the FD to /dev/null,
38882# effectively closing config.log, so it can be properly (re)opened and
38883# appended to by config.status.  When coming back to configure, we
38884# need to make the FD available again.
38885if test "$no_create" != yes; then
38886  ac_cs_success=:
38887  ac_config_status_args=
38888  test "$silent" = yes &&
38889    ac_config_status_args="$ac_config_status_args --quiet"
38890  exec 5>/dev/null
38891  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38892  exec 5>>config.log
38893  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38894  # would make configure fail if this is the last instruction.
38895  $ac_cs_success || { (exit 1); exit 1; }
38896fi
38897if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38898  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38899$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38900fi
38901
38902
38903{ $as_echo "$as_me:$LINENO: result:
38904Build options:
38905  Version                  $SCIM_VERSION
38906  Install prefix           $prefix
38907  Build shared libs        $enable_shared
38908  Build static libs        $enable_static
38909  Build tests/*            $enable_tests
38910  Enable debug             $enable_debug
38911  Enable ld version script $enable_ld_version_script
38912
38913Module options:
38914  Simple config module     $enable_config_simple
38915  Socket config module     $enable_config_socket
38916
38917  X11 FrontEnd module      $enable_frontend_x11
38918  Socket FrontEnd module   $enable_frontend_socket
38919
38920  RawCode IMEngine module  $enable_im_rawcode
38921  Socket IMEngine module   $enable_im_socket
38922
38923  SCTC Filter module       $enable_filter_sctc
38924
38925  GTK2 Utility Library     $enable_gtk_utils
38926  X11 Utility Library      $enable_x11_utils
38927
38928  GTK2 IMModule            $enable_gtk2_immodule
38929  GTK2 IMModule dir        $GTK_IM_MODULEDIR
38930
38931  GUI Setup Utility        $enable_setup_ui
38932
38933  GTK2 Panel GUI           $enable_panel_gtk
38934
38935  Enable TrayIcon          $enable_tray_icon
38936" >&5
38937$as_echo "
38938Build options:
38939  Version                  $SCIM_VERSION
38940  Install prefix           $prefix
38941  Build shared libs        $enable_shared
38942  Build static libs        $enable_static
38943  Build tests/*            $enable_tests
38944  Enable debug             $enable_debug
38945  Enable ld version script $enable_ld_version_script
38946
38947Module options:
38948  Simple config module     $enable_config_simple
38949  Socket config module     $enable_config_socket
38950
38951  X11 FrontEnd module      $enable_frontend_x11
38952  Socket FrontEnd module   $enable_frontend_socket
38953
38954  RawCode IMEngine module  $enable_im_rawcode
38955  Socket IMEngine module   $enable_im_socket
38956
38957  SCTC Filter module       $enable_filter_sctc
38958
38959  GTK2 Utility Library     $enable_gtk_utils
38960  X11 Utility Library      $enable_x11_utils
38961
38962  GTK2 IMModule            $enable_gtk2_immodule
38963  GTK2 IMModule dir        $GTK_IM_MODULEDIR
38964
38965  GUI Setup Utility        $enable_setup_ui
38966
38967  GTK2 Panel GUI           $enable_panel_gtk
38968
38969  Enable TrayIcon          $enable_tray_icon
38970" >&6; }
38971
38972