1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580  # Remove one level of quotation (which was required for Make).
581  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582  ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587  # Discard the --no-reexec flag, and continue.
588  shift
589elif test "X$1" = X--fallback-echo; then
590  # Avoid inline document here, it may be left over
591  :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593  # Yippee, $ECHO works!
594  :
595else
596  # Restart under the correct shell.
597  exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601  # used as fallback echo
602  shift
603  cat <<_LT_EOF
604$*
605_LT_EOF
606  exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614  if test "X${echo_test_string+set}" != Xset; then
615    # find a string as large as possible, as long as the shell can cope with it
616    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620      then
621        break
622      fi
623    done
624  fi
625
626  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628     test "X$echo_testing_string" = "X$echo_test_string"; then
629    :
630  else
631    # The Solaris, AIX, and Digital Unix default echo programs unquote
632    # backslashes.  This makes it impossible to quote backslashes using
633    #   echo "$something" | sed 's/\\/\\\\/g'
634    #
635    # So, first we look for a working echo in the user's PATH.
636
637    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638    for dir in $PATH /usr/ucb; do
639      IFS="$lt_save_ifs"
640      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643         test "X$echo_testing_string" = "X$echo_test_string"; then
644        ECHO="$dir/echo"
645        break
646      fi
647    done
648    IFS="$lt_save_ifs"
649
650    if test "X$ECHO" = Xecho; then
651      # We didn't find a better echo, so look for alternatives.
652      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654         test "X$echo_testing_string" = "X$echo_test_string"; then
655        # This shell has a builtin print -r that does the trick.
656        ECHO='print -r'
657      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658	   test "X$CONFIG_SHELL" != X/bin/ksh; then
659        # If we have ksh, try running configure again with it.
660        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661        export ORIGINAL_CONFIG_SHELL
662        CONFIG_SHELL=/bin/ksh
663        export CONFIG_SHELL
664        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665      else
666        # Try using printf.
667        ECHO='printf %s\n'
668        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670	   test "X$echo_testing_string" = "X$echo_test_string"; then
671	  # Cool, printf works
672	  :
673        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674	     test "X$echo_testing_string" = 'X\t' &&
675	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676	     test "X$echo_testing_string" = "X$echo_test_string"; then
677	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678	  export CONFIG_SHELL
679	  SHELL="$CONFIG_SHELL"
680	  export SHELL
681	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
682        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683	     test "X$echo_testing_string" = 'X\t' &&
684	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685	     test "X$echo_testing_string" = "X$echo_test_string"; then
686	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
687        else
688	  # maybe with a smaller string...
689	  prev=:
690
691	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693	    then
694	      break
695	    fi
696	    prev="$cmd"
697	  done
698
699	  if test "$prev" != 'sed 50q "$0"'; then
700	    echo_test_string=`eval $prev`
701	    export echo_test_string
702	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703	  else
704	    # Oops.  We lost completely, so just stick with echo.
705	    ECHO=echo
706	  fi
707        fi
708      fi
709    fi
710  fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME=
745PACKAGE_TARNAME=
746PACKAGE_VERSION=
747PACKAGE_STRING=
748PACKAGE_BUGREPORT=
749
750ac_unique_file="configure.in"
751# Factoring default headers for most tests.
752ac_includes_default="\
753#include <stdio.h>
754#ifdef HAVE_SYS_TYPES_H
755# include <sys/types.h>
756#endif
757#ifdef HAVE_SYS_STAT_H
758# include <sys/stat.h>
759#endif
760#ifdef STDC_HEADERS
761# include <stdlib.h>
762# include <stddef.h>
763#else
764# ifdef HAVE_STDLIB_H
765#  include <stdlib.h>
766# endif
767#endif
768#ifdef HAVE_STRING_H
769# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770#  include <memory.h>
771# endif
772# include <string.h>
773#endif
774#ifdef HAVE_STRINGS_H
775# include <strings.h>
776#endif
777#ifdef HAVE_INTTYPES_H
778# include <inttypes.h>
779#endif
780#ifdef HAVE_STDINT_H
781# include <stdint.h>
782#endif
783#ifdef HAVE_UNISTD_H
784# include <unistd.h>
785#endif"
786
787gt_needs=
788ac_subst_vars='LTLIBOBJS
789LIBOBJS
790PACKAGE_MENU_DIR
791NO_PREFIX_PACKAGE_MENU_DIR
792PACKAGE_HELP_DIR
793NO_PREFIX_PACKAGE_HELP_DIR
794PACKAGE_PIXMAPS_DIR
795NO_PREFIX_PACKAGE_PIXMAPS_DIR
796PACKAGE_DOC_DIR
797NO_PREFIX_PACKAGE_DOC_DIR
798PACKAGE_DATA_DIR
799NO_PREFIX_PACKAGE_DATA_DIR
800LTLIBINTL
801LIBINTL
802INTL_LIBTOOL_SUFFIX_PREFIX
803INTLOBJS
804GENCAT
805USE_INCLUDED_LIBINTL
806BUILD_INCLUDED_LIBINTL
807LTLIBC
808WINDRES
809WOE32
810WOE32DLL
811HAVE_WPRINTF
812HAVE_SNPRINTF
813HAVE_ASPRINTF
814HAVE_POSIX_PRINTF
815INTL_MACOSX_LIBS
816GLIBC21
817INTLBISON
818LTLIBICONV
819LIBICONV
820LTLIBMULTITHREAD
821LIBMULTITHREAD
822LTLIBTHREAD
823LIBTHREAD
824LIBPTH_PREFIX
825LTLIBPTH
826LIBPTH
827PRI_MACROS_BROKEN
828ALLOCA
829HAVE_VISIBILITY
830CFLAG_VISIBILITY
831GLIBC2
832XGETTEXT_EXTRA_OPTIONS
833XGETTEXT_015
834GMSGFMT_015
835MSGFMT_015
836GETTEXT_MACRO_VERSION
837GETTEXT_PACKAGE
838MKINSTALLDIRS
839POSUB
840POFILES
841PO_IN_DATADIR_FALSE
842PO_IN_DATADIR_TRUE
843INTLLIBS
844INSTOBJEXT
845GMOFILES
846CATOBJEXT
847CATALOGS
848MSGFMT_OPTS
849SCIM_DATADIR
850SCIM_BINARY_VERSION
851SCIM_MINOR
852SCIM_MAJOR
853SCIM_LIBS
854SCIM_CFLAGS
855GTK_LIBDIR
856GTK_LIBS
857GTK_CFLAGS
858PKG_CONFIG
859DATADIRNAME
860ALL_LINGUAS
861INTLTOOL_PERL
862GMSGFMT
863MSGFMT
864MSGMERGE
865XGETTEXT
866INTLTOOL_POLICY_RULE
867INTLTOOL_SERVICE_RULE
868INTLTOOL_THEME_RULE
869INTLTOOL_SCHEMAS_RULE
870INTLTOOL_CAVES_RULE
871INTLTOOL_XML_NOMERGE_RULE
872INTLTOOL_XML_RULE
873INTLTOOL_KBD_RULE
874INTLTOOL_XAM_RULE
875INTLTOOL_UI_RULE
876INTLTOOL_SOUNDLIST_RULE
877INTLTOOL_SHEET_RULE
878INTLTOOL_SERVER_RULE
879INTLTOOL_PONG_RULE
880INTLTOOL_OAF_RULE
881INTLTOOL_PROP_RULE
882INTLTOOL_KEYS_RULE
883INTLTOOL_DIRECTORY_RULE
884INTLTOOL_DESKTOP_RULE
885INTLTOOL_EXTRACT
886INTLTOOL_MERGE
887INTLTOOL_UPDATE
888USE_NLS
889CXXCPP
890OTOOL64
891OTOOL
892LIPO
893NMEDIT
894DSYMUTIL
895lt_ECHO
896RANLIB
897AR
898OBJDUMP
899LN_S
900NM
901ac_ct_DUMPBIN
902DUMPBIN
903LD
904FGREP
905SED
906host_os
907host_vendor
908host_cpu
909host
910build_os
911build_vendor
912build_cpu
913build
914LIBTOOL
915am__fastdepCXX_FALSE
916am__fastdepCXX_TRUE
917CXXDEPMODE
918ac_ct_CXX
919CXX
920CXXFLAGS
921EGREP
922GREP
923CPP
924am__fastdepCC_FALSE
925am__fastdepCC_TRUE
926CCDEPMODE
927AMDEPBACKSLASH
928AMDEP_FALSE
929AMDEP_TRUE
930am__quote
931am__include
932DEPDIR
933OBJEXT
934EXEEXT
935ac_ct_CC
936CPPFLAGS
937LDFLAGS
938CFLAGS
939CC
940am__untar
941am__tar
942AMTAR
943am__leading_dot
944SET_MAKE
945AWK
946mkdir_p
947MKDIR_P
948INSTALL_STRIP_PROGRAM
949STRIP
950install_sh
951MAKEINFO
952AUTOHEADER
953AUTOMAKE
954AUTOCONF
955ACLOCAL
956VERSION
957PACKAGE
958CYGPATH_W
959am__isrc
960INSTALL_DATA
961INSTALL_SCRIPT
962INSTALL_PROGRAM
963target_alias
964host_alias
965build_alias
966LIBS
967ECHO_T
968ECHO_N
969ECHO_C
970DEFS
971mandir
972localedir
973libdir
974psdir
975pdfdir
976dvidir
977htmldir
978infodir
979docdir
980oldincludedir
981includedir
982localstatedir
983sharedstatedir
984sysconfdir
985datadir
986datarootdir
987libexecdir
988sbindir
989bindir
990program_transform_name
991prefix
992exec_prefix
993PACKAGE_BUGREPORT
994PACKAGE_STRING
995PACKAGE_VERSION
996PACKAGE_TARNAME
997PACKAGE_NAME
998PATH_SEPARATOR
999SHELL'
1000ac_subst_files=''
1001ac_user_opts='
1002enable_option_checking
1003enable_dependency_tracking
1004enable_shared
1005enable_static
1006with_pic
1007enable_fast_install
1008with_gnu_ld
1009enable_libtool_lock
1010enable_nls
1011enable_threads
1012enable_rpath
1013with_libpth_prefix
1014with_libiconv_prefix
1015with_included_gettext
1016with_libintl_prefix
1017'
1018      ac_precious_vars='build_alias
1019host_alias
1020target_alias
1021CC
1022CFLAGS
1023LDFLAGS
1024LIBS
1025CPPFLAGS
1026CPP
1027CXX
1028CXXFLAGS
1029CCC
1030CXXCPP
1031PKG_CONFIG
1032GTK_CFLAGS
1033GTK_LIBS
1034SCIM_CFLAGS
1035SCIM_LIBS'
1036
1037
1038# Initialize some variables set by options.
1039ac_init_help=
1040ac_init_version=false
1041ac_unrecognized_opts=
1042ac_unrecognized_sep=
1043# The variables have the same names as the options, with
1044# dashes changed to underlines.
1045cache_file=/dev/null
1046exec_prefix=NONE
1047no_create=
1048no_recursion=
1049prefix=NONE
1050program_prefix=NONE
1051program_suffix=NONE
1052program_transform_name=s,x,x,
1053silent=
1054site=
1055srcdir=
1056verbose=
1057x_includes=NONE
1058x_libraries=NONE
1059
1060# Installation directory options.
1061# These are left unexpanded so users can "make install exec_prefix=/foo"
1062# and all the variables that are supposed to be based on exec_prefix
1063# by default will actually change.
1064# Use braces instead of parens because sh, perl, etc. also accept them.
1065# (The list follows the same order as the GNU Coding Standards.)
1066bindir='${exec_prefix}/bin'
1067sbindir='${exec_prefix}/sbin'
1068libexecdir='${exec_prefix}/libexec'
1069datarootdir='${prefix}/share'
1070datadir='${datarootdir}'
1071sysconfdir='${prefix}/etc'
1072sharedstatedir='${prefix}/com'
1073localstatedir='${prefix}/var'
1074includedir='${prefix}/include'
1075oldincludedir='/usr/include'
1076docdir='${datarootdir}/doc/${PACKAGE}'
1077infodir='${datarootdir}/info'
1078htmldir='${docdir}'
1079dvidir='${docdir}'
1080pdfdir='${docdir}'
1081psdir='${docdir}'
1082libdir='${exec_prefix}/lib'
1083localedir='${datarootdir}/locale'
1084mandir='${datarootdir}/man'
1085
1086ac_prev=
1087ac_dashdash=
1088for ac_option
1089do
1090  # If the previous option needs an argument, assign it.
1091  if test -n "$ac_prev"; then
1092    eval $ac_prev=\$ac_option
1093    ac_prev=
1094    continue
1095  fi
1096
1097  case $ac_option in
1098  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1099  *)	ac_optarg=yes ;;
1100  esac
1101
1102  # Accept the important Cygnus configure options, so we can diagnose typos.
1103
1104  case $ac_dashdash$ac_option in
1105  --)
1106    ac_dashdash=yes ;;
1107
1108  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1109    ac_prev=bindir ;;
1110  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1111    bindir=$ac_optarg ;;
1112
1113  -build | --build | --buil | --bui | --bu)
1114    ac_prev=build_alias ;;
1115  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1116    build_alias=$ac_optarg ;;
1117
1118  -cache-file | --cache-file | --cache-fil | --cache-fi \
1119  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1120    ac_prev=cache_file ;;
1121  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1122  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1123    cache_file=$ac_optarg ;;
1124
1125  --config-cache | -C)
1126    cache_file=config.cache ;;
1127
1128  -datadir | --datadir | --datadi | --datad)
1129    ac_prev=datadir ;;
1130  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1131    datadir=$ac_optarg ;;
1132
1133  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1134  | --dataroo | --dataro | --datar)
1135    ac_prev=datarootdir ;;
1136  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1137  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1138    datarootdir=$ac_optarg ;;
1139
1140  -disable-* | --disable-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1145   { (exit 1); exit 1; }; }
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"enable_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval enable_$ac_useropt=no ;;
1156
1157  -docdir | --docdir | --docdi | --doc | --do)
1158    ac_prev=docdir ;;
1159  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1160    docdir=$ac_optarg ;;
1161
1162  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1163    ac_prev=dvidir ;;
1164  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1165    dvidir=$ac_optarg ;;
1166
1167  -enable-* | --enable-*)
1168    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1169    # Reject names that are not valid shell variable names.
1170    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1172   { (exit 1); exit 1; }; }
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"enable_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval enable_$ac_useropt=\$ac_optarg ;;
1183
1184  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1185  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1186  | --exec | --exe | --ex)
1187    ac_prev=exec_prefix ;;
1188  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1189  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1190  | --exec=* | --exe=* | --ex=*)
1191    exec_prefix=$ac_optarg ;;
1192
1193  -gas | --gas | --ga | --g)
1194    # Obsolete; use --with-gas.
1195    with_gas=yes ;;
1196
1197  -help | --help | --hel | --he | -h)
1198    ac_init_help=long ;;
1199  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1200    ac_init_help=recursive ;;
1201  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1202    ac_init_help=short ;;
1203
1204  -host | --host | --hos | --ho)
1205    ac_prev=host_alias ;;
1206  -host=* | --host=* | --hos=* | --ho=*)
1207    host_alias=$ac_optarg ;;
1208
1209  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1210    ac_prev=htmldir ;;
1211  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1212  | --ht=*)
1213    htmldir=$ac_optarg ;;
1214
1215  -includedir | --includedir | --includedi | --included | --include \
1216  | --includ | --inclu | --incl | --inc)
1217    ac_prev=includedir ;;
1218  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1219  | --includ=* | --inclu=* | --incl=* | --inc=*)
1220    includedir=$ac_optarg ;;
1221
1222  -infodir | --infodir | --infodi | --infod | --info | --inf)
1223    ac_prev=infodir ;;
1224  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1225    infodir=$ac_optarg ;;
1226
1227  -libdir | --libdir | --libdi | --libd)
1228    ac_prev=libdir ;;
1229  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1230    libdir=$ac_optarg ;;
1231
1232  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1233  | --libexe | --libex | --libe)
1234    ac_prev=libexecdir ;;
1235  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1236  | --libexe=* | --libex=* | --libe=*)
1237    libexecdir=$ac_optarg ;;
1238
1239  -localedir | --localedir | --localedi | --localed | --locale)
1240    ac_prev=localedir ;;
1241  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1242    localedir=$ac_optarg ;;
1243
1244  -localstatedir | --localstatedir | --localstatedi | --localstated \
1245  | --localstate | --localstat | --localsta | --localst | --locals)
1246    ac_prev=localstatedir ;;
1247  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1248  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1249    localstatedir=$ac_optarg ;;
1250
1251  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1252    ac_prev=mandir ;;
1253  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1254    mandir=$ac_optarg ;;
1255
1256  -nfp | --nfp | --nf)
1257    # Obsolete; use --without-fp.
1258    with_fp=no ;;
1259
1260  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1261  | --no-cr | --no-c | -n)
1262    no_create=yes ;;
1263
1264  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1265  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1266    no_recursion=yes ;;
1267
1268  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1269  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1270  | --oldin | --oldi | --old | --ol | --o)
1271    ac_prev=oldincludedir ;;
1272  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1273  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1274  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1275    oldincludedir=$ac_optarg ;;
1276
1277  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1278    ac_prev=prefix ;;
1279  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1280    prefix=$ac_optarg ;;
1281
1282  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1283  | --program-pre | --program-pr | --program-p)
1284    ac_prev=program_prefix ;;
1285  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1286  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1287    program_prefix=$ac_optarg ;;
1288
1289  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1290  | --program-suf | --program-su | --program-s)
1291    ac_prev=program_suffix ;;
1292  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1293  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1294    program_suffix=$ac_optarg ;;
1295
1296  -program-transform-name | --program-transform-name \
1297  | --program-transform-nam | --program-transform-na \
1298  | --program-transform-n | --program-transform- \
1299  | --program-transform | --program-transfor \
1300  | --program-transfo | --program-transf \
1301  | --program-trans | --program-tran \
1302  | --progr-tra | --program-tr | --program-t)
1303    ac_prev=program_transform_name ;;
1304  -program-transform-name=* | --program-transform-name=* \
1305  | --program-transform-nam=* | --program-transform-na=* \
1306  | --program-transform-n=* | --program-transform-=* \
1307  | --program-transform=* | --program-transfor=* \
1308  | --program-transfo=* | --program-transf=* \
1309  | --program-trans=* | --program-tran=* \
1310  | --progr-tra=* | --program-tr=* | --program-t=*)
1311    program_transform_name=$ac_optarg ;;
1312
1313  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1314    ac_prev=pdfdir ;;
1315  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1316    pdfdir=$ac_optarg ;;
1317
1318  -psdir | --psdir | --psdi | --psd | --ps)
1319    ac_prev=psdir ;;
1320  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1321    psdir=$ac_optarg ;;
1322
1323  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1324  | -silent | --silent | --silen | --sile | --sil)
1325    silent=yes ;;
1326
1327  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1328    ac_prev=sbindir ;;
1329  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1330  | --sbi=* | --sb=*)
1331    sbindir=$ac_optarg ;;
1332
1333  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1334  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1335  | --sharedst | --shareds | --shared | --share | --shar \
1336  | --sha | --sh)
1337    ac_prev=sharedstatedir ;;
1338  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1339  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1340  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1341  | --sha=* | --sh=*)
1342    sharedstatedir=$ac_optarg ;;
1343
1344  -site | --site | --sit)
1345    ac_prev=site ;;
1346  -site=* | --site=* | --sit=*)
1347    site=$ac_optarg ;;
1348
1349  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1350    ac_prev=srcdir ;;
1351  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1352    srcdir=$ac_optarg ;;
1353
1354  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1355  | --syscon | --sysco | --sysc | --sys | --sy)
1356    ac_prev=sysconfdir ;;
1357  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1358  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1359    sysconfdir=$ac_optarg ;;
1360
1361  -target | --target | --targe | --targ | --tar | --ta | --t)
1362    ac_prev=target_alias ;;
1363  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1364    target_alias=$ac_optarg ;;
1365
1366  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1367    verbose=yes ;;
1368
1369  -version | --version | --versio | --versi | --vers | -V)
1370    ac_init_version=: ;;
1371
1372  -with-* | --with-*)
1373    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1374    # Reject names that are not valid shell variable names.
1375    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1377   { (exit 1); exit 1; }; }
1378    ac_useropt_orig=$ac_useropt
1379    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380    case $ac_user_opts in
1381      *"
1382"with_$ac_useropt"
1383"*) ;;
1384      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385	 ac_unrecognized_sep=', ';;
1386    esac
1387    eval with_$ac_useropt=\$ac_optarg ;;
1388
1389  -without-* | --without-*)
1390    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391    # Reject names that are not valid shell variable names.
1392    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1394   { (exit 1); exit 1; }; }
1395    ac_useropt_orig=$ac_useropt
1396    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397    case $ac_user_opts in
1398      *"
1399"with_$ac_useropt"
1400"*) ;;
1401      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1402	 ac_unrecognized_sep=', ';;
1403    esac
1404    eval with_$ac_useropt=no ;;
1405
1406  --x)
1407    # Obsolete; use --with-x.
1408    with_x=yes ;;
1409
1410  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1411  | --x-incl | --x-inc | --x-in | --x-i)
1412    ac_prev=x_includes ;;
1413  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1414  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1415    x_includes=$ac_optarg ;;
1416
1417  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1418  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1419    ac_prev=x_libraries ;;
1420  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1421  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1422    x_libraries=$ac_optarg ;;
1423
1424  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1425Try \`$0 --help' for more information." >&2
1426   { (exit 1); exit 1; }; }
1427    ;;
1428
1429  *=*)
1430    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1431    # Reject names that are not valid shell variable names.
1432    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1433      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1434   { (exit 1); exit 1; }; }
1435    eval $ac_envvar=\$ac_optarg
1436    export $ac_envvar ;;
1437
1438  *)
1439    # FIXME: should be removed in autoconf 3.0.
1440    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1441    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1442      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1443    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1444    ;;
1445
1446  esac
1447done
1448
1449if test -n "$ac_prev"; then
1450  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1451  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1452   { (exit 1); exit 1; }; }
1453fi
1454
1455if test -n "$ac_unrecognized_opts"; then
1456  case $enable_option_checking in
1457    no) ;;
1458    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1459   { (exit 1); exit 1; }; } ;;
1460    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1461  esac
1462fi
1463
1464# Check all directory arguments for consistency.
1465for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1466		datadir sysconfdir sharedstatedir localstatedir includedir \
1467		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1468		libdir localedir mandir
1469do
1470  eval ac_val=\$$ac_var
1471  # Remove trailing slashes.
1472  case $ac_val in
1473    */ )
1474      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1475      eval $ac_var=\$ac_val;;
1476  esac
1477  # Be sure to have absolute directory names.
1478  case $ac_val in
1479    [\\/$]* | ?:[\\/]* )  continue;;
1480    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1481  esac
1482  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1483   { (exit 1); exit 1; }; }
1484done
1485
1486# There might be people who depend on the old broken behavior: `$host'
1487# used to hold the argument of --host etc.
1488# FIXME: To remove some day.
1489build=$build_alias
1490host=$host_alias
1491target=$target_alias
1492
1493# FIXME: To remove some day.
1494if test "x$host_alias" != x; then
1495  if test "x$build_alias" = x; then
1496    cross_compiling=maybe
1497    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1498    If a cross compiler is detected then cross compile mode will be used." >&2
1499  elif test "x$build_alias" != "x$host_alias"; then
1500    cross_compiling=yes
1501  fi
1502fi
1503
1504ac_tool_prefix=
1505test -n "$host_alias" && ac_tool_prefix=$host_alias-
1506
1507test "$silent" = yes && exec 6>/dev/null
1508
1509
1510ac_pwd=`pwd` && test -n "$ac_pwd" &&
1511ac_ls_di=`ls -di .` &&
1512ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1513  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1514   { (exit 1); exit 1; }; }
1515test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1516  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1517   { (exit 1); exit 1; }; }
1518
1519
1520# Find the source files, if location was not specified.
1521if test -z "$srcdir"; then
1522  ac_srcdir_defaulted=yes
1523  # Try the directory containing this script, then the parent directory.
1524  ac_confdir=`$as_dirname -- "$as_myself" ||
1525$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1526	 X"$as_myself" : 'X\(//\)[^/]' \| \
1527	 X"$as_myself" : 'X\(//\)$' \| \
1528	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1529$as_echo X"$as_myself" |
1530    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1531	    s//\1/
1532	    q
1533	  }
1534	  /^X\(\/\/\)[^/].*/{
1535	    s//\1/
1536	    q
1537	  }
1538	  /^X\(\/\/\)$/{
1539	    s//\1/
1540	    q
1541	  }
1542	  /^X\(\/\).*/{
1543	    s//\1/
1544	    q
1545	  }
1546	  s/.*/./; q'`
1547  srcdir=$ac_confdir
1548  if test ! -r "$srcdir/$ac_unique_file"; then
1549    srcdir=..
1550  fi
1551else
1552  ac_srcdir_defaulted=no
1553fi
1554if test ! -r "$srcdir/$ac_unique_file"; then
1555  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1556  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1557   { (exit 1); exit 1; }; }
1558fi
1559ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1560ac_abs_confdir=`(
1561	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1562   { (exit 1); exit 1; }; }
1563	pwd)`
1564# When building in place, set srcdir=.
1565if test "$ac_abs_confdir" = "$ac_pwd"; then
1566  srcdir=.
1567fi
1568# Remove unnecessary trailing slashes from srcdir.
1569# Double slashes in file names in object file debugging info
1570# mess up M-x gdb in Emacs.
1571case $srcdir in
1572*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1573esac
1574for ac_var in $ac_precious_vars; do
1575  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1576  eval ac_env_${ac_var}_value=\$${ac_var}
1577  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1578  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1579done
1580
1581#
1582# Report the --help message.
1583#
1584if test "$ac_init_help" = "long"; then
1585  # Omit some internal or obsolete options to make the list less imposing.
1586  # This message is too long to be a string in the A/UX 3.1 sh.
1587  cat <<_ACEOF
1588\`configure' configures this package to adapt to many kinds of systems.
1589
1590Usage: $0 [OPTION]... [VAR=VALUE]...
1591
1592To assign environment variables (e.g., CC, CFLAGS...), specify them as
1593VAR=VALUE.  See below for descriptions of some of the useful variables.
1594
1595Defaults for the options are specified in brackets.
1596
1597Configuration:
1598  -h, --help              display this help and exit
1599      --help=short        display options specific to this package
1600      --help=recursive    display the short help of all the included packages
1601  -V, --version           display version information and exit
1602  -q, --quiet, --silent   do not print \`checking...' messages
1603      --cache-file=FILE   cache test results in FILE [disabled]
1604  -C, --config-cache      alias for \`--cache-file=config.cache'
1605  -n, --no-create         do not create output files
1606      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1607
1608Installation directories:
1609  --prefix=PREFIX         install architecture-independent files in PREFIX
1610                          [$ac_default_prefix]
1611  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1612                          [PREFIX]
1613
1614By default, \`make install' will install all the files in
1615\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1616an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1617for instance \`--prefix=\$HOME'.
1618
1619For better control, use the options below.
1620
1621Fine tuning of the installation directories:
1622  --bindir=DIR            user executables [EPREFIX/bin]
1623  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1624  --libexecdir=DIR        program executables [EPREFIX/libexec]
1625  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1626  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1627  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1628  --libdir=DIR            object code libraries [EPREFIX/lib]
1629  --includedir=DIR        C header files [PREFIX/include]
1630  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1631  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1632  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1633  --infodir=DIR           info documentation [DATAROOTDIR/info]
1634  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1635  --mandir=DIR            man documentation [DATAROOTDIR/man]
1636  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1637  --htmldir=DIR           html documentation [DOCDIR]
1638  --dvidir=DIR            dvi documentation [DOCDIR]
1639  --pdfdir=DIR            pdf documentation [DOCDIR]
1640  --psdir=DIR             ps documentation [DOCDIR]
1641_ACEOF
1642
1643  cat <<\_ACEOF
1644
1645Program names:
1646  --program-prefix=PREFIX            prepend PREFIX to installed program names
1647  --program-suffix=SUFFIX            append SUFFIX to installed program names
1648  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1649
1650System types:
1651  --build=BUILD     configure for building on BUILD [guessed]
1652  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1653_ACEOF
1654fi
1655
1656if test -n "$ac_init_help"; then
1657
1658  cat <<\_ACEOF
1659
1660Optional Features:
1661  --disable-option-checking  ignore unrecognized --enable/--with options
1662  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1663  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1664  --disable-dependency-tracking  speeds up one-time build
1665  --enable-dependency-tracking   do not reject slow dependency extractors
1666  --enable-shared[=PKGS]  build shared libraries [default=yes]
1667  --enable-static[=PKGS]  build static libraries [default=yes]
1668  --enable-fast-install[=PKGS]
1669                          optimize for fast installation [default=yes]
1670  --disable-libtool-lock  avoid locking (might break parallel builds)
1671  --disable-nls           do not use Native Language Support
1672  --enable-threads={posix|solaris|pth|win32}
1673                          specify multithreading API
1674  --disable-threads       build without multithread safety
1675  --disable-rpath         do not hardcode runtime library paths
1676
1677Optional Packages:
1678  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1679  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1680  --with-pic              try to use only PIC/non-PIC objects [default=use
1681                          both]
1682  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1683  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1684  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1685  --without-libpth-prefix     don't search for libpth in includedir and libdir
1686  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1687  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1688  --with-included-gettext use the GNU gettext library included here
1689  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1690  --without-libintl-prefix     don't search for libintl in includedir and libdir
1691
1692Some influential environment variables:
1693  CC          C compiler command
1694  CFLAGS      C compiler flags
1695  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1696              nonstandard directory <lib dir>
1697  LIBS        libraries to pass to the linker, e.g. -l<library>
1698  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1699              you have headers in a nonstandard directory <include dir>
1700  CPP         C preprocessor
1701  CXX         C++ compiler command
1702  CXXFLAGS    C++ compiler flags
1703  CXXCPP      C++ preprocessor
1704  PKG_CONFIG  path to pkg-config utility
1705  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1706  GTK_LIBS    linker flags for GTK, overriding pkg-config
1707  SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1708  SCIM_LIBS   linker flags for SCIM, overriding pkg-config
1709
1710Use these variables to override the choices made by `configure' or to help
1711it to find libraries and programs with nonstandard names/locations.
1712
1713_ACEOF
1714ac_status=$?
1715fi
1716
1717if test "$ac_init_help" = "recursive"; then
1718  # If there are subdirs, report their specific --help.
1719  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1720    test -d "$ac_dir" ||
1721      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1722      continue
1723    ac_builddir=.
1724
1725case "$ac_dir" in
1726.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727*)
1728  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1729  # A ".." for each directory in $ac_dir_suffix.
1730  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1731  case $ac_top_builddir_sub in
1732  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734  esac ;;
1735esac
1736ac_abs_top_builddir=$ac_pwd
1737ac_abs_builddir=$ac_pwd$ac_dir_suffix
1738# for backward compatibility:
1739ac_top_builddir=$ac_top_build_prefix
1740
1741case $srcdir in
1742  .)  # We are building in place.
1743    ac_srcdir=.
1744    ac_top_srcdir=$ac_top_builddir_sub
1745    ac_abs_top_srcdir=$ac_pwd ;;
1746  [\\/]* | ?:[\\/]* )  # Absolute name.
1747    ac_srcdir=$srcdir$ac_dir_suffix;
1748    ac_top_srcdir=$srcdir
1749    ac_abs_top_srcdir=$srcdir ;;
1750  *) # Relative name.
1751    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1752    ac_top_srcdir=$ac_top_build_prefix$srcdir
1753    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1754esac
1755ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1756
1757    cd "$ac_dir" || { ac_status=$?; continue; }
1758    # Check for guested configure.
1759    if test -f "$ac_srcdir/configure.gnu"; then
1760      echo &&
1761      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1762    elif test -f "$ac_srcdir/configure"; then
1763      echo &&
1764      $SHELL "$ac_srcdir/configure" --help=recursive
1765    else
1766      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767    fi || ac_status=$?
1768    cd "$ac_pwd" || { ac_status=$?; break; }
1769  done
1770fi
1771
1772test -n "$ac_init_help" && exit $ac_status
1773if $ac_init_version; then
1774  cat <<\_ACEOF
1775configure
1776generated by GNU Autoconf 2.63
1777
1778Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17792002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1780This configure script is free software; the Free Software Foundation
1781gives unlimited permission to copy, distribute and modify it.
1782_ACEOF
1783  exit
1784fi
1785cat >config.log <<_ACEOF
1786This file contains any messages produced by compilers while
1787running configure, to aid debugging if configure makes a mistake.
1788
1789It was created by $as_me, which was
1790generated by GNU Autoconf 2.63.  Invocation command line was
1791
1792  $ $0 $@
1793
1794_ACEOF
1795exec 5>>config.log
1796{
1797cat <<_ASUNAME
1798## --------- ##
1799## Platform. ##
1800## --------- ##
1801
1802hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1803uname -m = `(uname -m) 2>/dev/null || echo unknown`
1804uname -r = `(uname -r) 2>/dev/null || echo unknown`
1805uname -s = `(uname -s) 2>/dev/null || echo unknown`
1806uname -v = `(uname -v) 2>/dev/null || echo unknown`
1807
1808/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1809/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1810
1811/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1812/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1813/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1814/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1815/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1816/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1817/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1818
1819_ASUNAME
1820
1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824  IFS=$as_save_IFS
1825  test -z "$as_dir" && as_dir=.
1826  $as_echo "PATH: $as_dir"
1827done
1828IFS=$as_save_IFS
1829
1830} >&5
1831
1832cat >&5 <<_ACEOF
1833
1834
1835## ----------- ##
1836## Core tests. ##
1837## ----------- ##
1838
1839_ACEOF
1840
1841
1842# Keep a trace of the command line.
1843# Strip out --no-create and --no-recursion so they do not pile up.
1844# Strip out --silent because we don't want to record it for future runs.
1845# Also quote any args containing shell meta-characters.
1846# Make two passes to allow for proper duplicate-argument suppression.
1847ac_configure_args=
1848ac_configure_args0=
1849ac_configure_args1=
1850ac_must_keep_next=false
1851for ac_pass in 1 2
1852do
1853  for ac_arg
1854  do
1855    case $ac_arg in
1856    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1857    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1858    | -silent | --silent | --silen | --sile | --sil)
1859      continue ;;
1860    *\'*)
1861      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1862    esac
1863    case $ac_pass in
1864    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1865    2)
1866      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1867      if test $ac_must_keep_next = true; then
1868	ac_must_keep_next=false # Got value, back to normal.
1869      else
1870	case $ac_arg in
1871	  *=* | --config-cache | -C | -disable-* | --disable-* \
1872	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1873	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1874	  | -with-* | --with-* | -without-* | --without-* | --x)
1875	    case "$ac_configure_args0 " in
1876	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1877	    esac
1878	    ;;
1879	  -* ) ac_must_keep_next=true ;;
1880	esac
1881      fi
1882      ac_configure_args="$ac_configure_args '$ac_arg'"
1883      ;;
1884    esac
1885  done
1886done
1887$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1888$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1889
1890# When interrupted or exit'd, cleanup temporary files, and complete
1891# config.log.  We remove comments because anyway the quotes in there
1892# would cause problems or look ugly.
1893# WARNING: Use '\'' to represent an apostrophe within the trap.
1894# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1895trap 'exit_status=$?
1896  # Save into config.log some information that might help in debugging.
1897  {
1898    echo
1899
1900    cat <<\_ASBOX
1901## ---------------- ##
1902## Cache variables. ##
1903## ---------------- ##
1904_ASBOX
1905    echo
1906    # The following way of writing the cache mishandles newlines in values,
1907(
1908  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1909    eval ac_val=\$$ac_var
1910    case $ac_val in #(
1911    *${as_nl}*)
1912      case $ac_var in #(
1913      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1914$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1915      esac
1916      case $ac_var in #(
1917      _ | IFS | as_nl) ;; #(
1918      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1919      *) $as_unset $ac_var ;;
1920      esac ;;
1921    esac
1922  done
1923  (set) 2>&1 |
1924    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1925    *${as_nl}ac_space=\ *)
1926      sed -n \
1927	"s/'\''/'\''\\\\'\'''\''/g;
1928	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1929      ;; #(
1930    *)
1931      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1932      ;;
1933    esac |
1934    sort
1935)
1936    echo
1937
1938    cat <<\_ASBOX
1939## ----------------- ##
1940## Output variables. ##
1941## ----------------- ##
1942_ASBOX
1943    echo
1944    for ac_var in $ac_subst_vars
1945    do
1946      eval ac_val=\$$ac_var
1947      case $ac_val in
1948      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949      esac
1950      $as_echo "$ac_var='\''$ac_val'\''"
1951    done | sort
1952    echo
1953
1954    if test -n "$ac_subst_files"; then
1955      cat <<\_ASBOX
1956## ------------------- ##
1957## File substitutions. ##
1958## ------------------- ##
1959_ASBOX
1960      echo
1961      for ac_var in $ac_subst_files
1962      do
1963	eval ac_val=\$$ac_var
1964	case $ac_val in
1965	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966	esac
1967	$as_echo "$ac_var='\''$ac_val'\''"
1968      done | sort
1969      echo
1970    fi
1971
1972    if test -s confdefs.h; then
1973      cat <<\_ASBOX
1974## ----------- ##
1975## confdefs.h. ##
1976## ----------- ##
1977_ASBOX
1978      echo
1979      cat confdefs.h
1980      echo
1981    fi
1982    test "$ac_signal" != 0 &&
1983      $as_echo "$as_me: caught signal $ac_signal"
1984    $as_echo "$as_me: exit $exit_status"
1985  } >&5
1986  rm -f core *.core core.conftest.* &&
1987    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988    exit $exit_status
1989' 0
1990for ac_signal in 1 2 13 15; do
1991  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1992done
1993ac_signal=0
1994
1995# confdefs.h avoids OS command line length limits that DEFS can exceed.
1996rm -f -r conftest* confdefs.h
1997
1998# Predefined preprocessor variables.
1999
2000cat >>confdefs.h <<_ACEOF
2001#define PACKAGE_NAME "$PACKAGE_NAME"
2002_ACEOF
2003
2004
2005cat >>confdefs.h <<_ACEOF
2006#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2007_ACEOF
2008
2009
2010cat >>confdefs.h <<_ACEOF
2011#define PACKAGE_VERSION "$PACKAGE_VERSION"
2012_ACEOF
2013
2014
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_STRING "$PACKAGE_STRING"
2017_ACEOF
2018
2019
2020cat >>confdefs.h <<_ACEOF
2021#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2022_ACEOF
2023
2024
2025# Let the site file select an alternate cache file if it wants to.
2026# Prefer an explicitly selected file to automatically selected ones.
2027ac_site_file1=NONE
2028ac_site_file2=NONE
2029if test -n "$CONFIG_SITE"; then
2030  ac_site_file1=$CONFIG_SITE
2031elif test "x$prefix" != xNONE; then
2032  ac_site_file1=$prefix/share/config.site
2033  ac_site_file2=$prefix/etc/config.site
2034else
2035  ac_site_file1=$ac_default_prefix/share/config.site
2036  ac_site_file2=$ac_default_prefix/etc/config.site
2037fi
2038for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2039do
2040  test "x$ac_site_file" = xNONE && continue
2041  if test -r "$ac_site_file"; then
2042    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2043$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2044    sed 's/^/| /' "$ac_site_file" >&5
2045    . "$ac_site_file"
2046  fi
2047done
2048
2049if test -r "$cache_file"; then
2050  # Some versions of bash will fail to source /dev/null (special
2051  # files actually), so we avoid doing that.
2052  if test -f "$cache_file"; then
2053    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2054$as_echo "$as_me: loading cache $cache_file" >&6;}
2055    case $cache_file in
2056      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057      *)                      . "./$cache_file";;
2058    esac
2059  fi
2060else
2061  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2062$as_echo "$as_me: creating cache $cache_file" >&6;}
2063  >$cache_file
2064fi
2065
2066gt_needs="$gt_needs "
2067# Check that the precious variables saved in the cache have kept the same
2068# value.
2069ac_cache_corrupted=false
2070for ac_var in $ac_precious_vars; do
2071  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2072  eval ac_new_set=\$ac_env_${ac_var}_set
2073  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2074  eval ac_new_val=\$ac_env_${ac_var}_value
2075  case $ac_old_set,$ac_new_set in
2076    set,)
2077      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2078$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2079      ac_cache_corrupted=: ;;
2080    ,set)
2081      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2082$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2083      ac_cache_corrupted=: ;;
2084    ,);;
2085    *)
2086      if test "x$ac_old_val" != "x$ac_new_val"; then
2087	# differences in whitespace do not lead to failure.
2088	ac_old_val_w=`echo x $ac_old_val`
2089	ac_new_val_w=`echo x $ac_new_val`
2090	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2091	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2092$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2093	  ac_cache_corrupted=:
2094	else
2095	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2096$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2097	  eval $ac_var=\$ac_old_val
2098	fi
2099	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2100$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2101	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2102$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2103      fi;;
2104  esac
2105  # Pass precious variables to config.status.
2106  if test "$ac_new_set" = set; then
2107    case $ac_new_val in
2108    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2109    *) ac_arg=$ac_var=$ac_new_val ;;
2110    esac
2111    case " $ac_configure_args " in
2112      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2113      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2114    esac
2115  fi
2116done
2117if $ac_cache_corrupted; then
2118  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2120  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2121$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2122  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2123$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2124   { (exit 1); exit 1; }; }
2125fi
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143ac_ext=c
2144ac_cpp='$CPP $CPPFLAGS'
2145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148
2149
2150am__api_version='1.10'
2151
2152ac_aux_dir=
2153for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2154  if test -f "$ac_dir/install-sh"; then
2155    ac_aux_dir=$ac_dir
2156    ac_install_sh="$ac_aux_dir/install-sh -c"
2157    break
2158  elif test -f "$ac_dir/install.sh"; then
2159    ac_aux_dir=$ac_dir
2160    ac_install_sh="$ac_aux_dir/install.sh -c"
2161    break
2162  elif test -f "$ac_dir/shtool"; then
2163    ac_aux_dir=$ac_dir
2164    ac_install_sh="$ac_aux_dir/shtool install -c"
2165    break
2166  fi
2167done
2168if test -z "$ac_aux_dir"; then
2169  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2170$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2171   { (exit 1); exit 1; }; }
2172fi
2173
2174# These three variables are undocumented and unsupported,
2175# and are intended to be withdrawn in a future Autoconf release.
2176# They can cause serious problems if a builder's source tree is in a directory
2177# whose full name contains unusual characters.
2178ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2179ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2180ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2181
2182
2183# Find a good install program.  We prefer a C program (faster),
2184# so one script is as good as another.  But avoid the broken or
2185# incompatible versions:
2186# SysV /etc/install, /usr/sbin/install
2187# SunOS /usr/etc/install
2188# IRIX /sbin/install
2189# AIX /bin/install
2190# AmigaOS /C/install, which installs bootblocks on floppy discs
2191# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2192# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2193# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2194# OS/2's system install, which has a completely different semantic
2195# ./install, which can be erroneously created by make from ./install.sh.
2196# Reject install programs that cannot install multiple files.
2197{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2198$as_echo_n "checking for a BSD-compatible install... " >&6; }
2199if test -z "$INSTALL"; then
2200if test "${ac_cv_path_install+set}" = set; then
2201  $as_echo_n "(cached) " >&6
2202else
2203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206  IFS=$as_save_IFS
2207  test -z "$as_dir" && as_dir=.
2208  # Account for people who put trailing slashes in PATH elements.
2209case $as_dir/ in
2210  ./ | .// | /cC/* | \
2211  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2212  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2213  /usr/ucb/* ) ;;
2214  *)
2215    # OSF1 and SCO ODT 3.0 have their own names for install.
2216    # Don't use installbsd from OSF since it installs stuff as root
2217    # by default.
2218    for ac_prog in ginstall scoinst install; do
2219      for ac_exec_ext in '' $ac_executable_extensions; do
2220	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2221	  if test $ac_prog = install &&
2222	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2223	    # AIX install.  It has an incompatible calling convention.
2224	    :
2225	  elif test $ac_prog = install &&
2226	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2227	    # program-specific install script used by HP pwplus--don't use.
2228	    :
2229	  else
2230	    rm -rf conftest.one conftest.two conftest.dir
2231	    echo one > conftest.one
2232	    echo two > conftest.two
2233	    mkdir conftest.dir
2234	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2235	      test -s conftest.one && test -s conftest.two &&
2236	      test -s conftest.dir/conftest.one &&
2237	      test -s conftest.dir/conftest.two
2238	    then
2239	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2240	      break 3
2241	    fi
2242	  fi
2243	fi
2244      done
2245    done
2246    ;;
2247esac
2248
2249done
2250IFS=$as_save_IFS
2251
2252rm -rf conftest.one conftest.two conftest.dir
2253
2254fi
2255  if test "${ac_cv_path_install+set}" = set; then
2256    INSTALL=$ac_cv_path_install
2257  else
2258    # As a last resort, use the slow shell script.  Don't cache a
2259    # value for INSTALL within a source directory, because that will
2260    # break other packages using the cache if that directory is
2261    # removed, or if the value is a relative name.
2262    INSTALL=$ac_install_sh
2263  fi
2264fi
2265{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2266$as_echo "$INSTALL" >&6; }
2267
2268# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2269# It thinks the first close brace ends the variable substitution.
2270test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2271
2272test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2273
2274test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2275
2276{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2277$as_echo_n "checking whether build environment is sane... " >&6; }
2278# Just in case
2279sleep 1
2280echo timestamp > conftest.file
2281# Do `set' in a subshell so we don't clobber the current shell's
2282# arguments.  Must try -L first in case configure is actually a
2283# symlink; some systems play weird games with the mod time of symlinks
2284# (eg FreeBSD returns the mod time of the symlink's containing
2285# directory).
2286if (
2287   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2288   if test "$*" = "X"; then
2289      # -L didn't work.
2290      set X `ls -t $srcdir/configure conftest.file`
2291   fi
2292   rm -f conftest.file
2293   if test "$*" != "X $srcdir/configure conftest.file" \
2294      && test "$*" != "X conftest.file $srcdir/configure"; then
2295
2296      # If neither matched, then we have a broken ls.  This can happen
2297      # if, for instance, CONFIG_SHELL is bash and it inherits a
2298      # broken ls alias from the environment.  This has actually
2299      # happened.  Such a system could not be considered "sane".
2300      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2301alias in your environment" >&5
2302$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2303alias in your environment" >&2;}
2304   { (exit 1); exit 1; }; }
2305   fi
2306
2307   test "$2" = conftest.file
2308   )
2309then
2310   # Ok.
2311   :
2312else
2313   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2314Check your system clock" >&5
2315$as_echo "$as_me: error: newly created file is older than distributed files!
2316Check your system clock" >&2;}
2317   { (exit 1); exit 1; }; }
2318fi
2319{ $as_echo "$as_me:$LINENO: result: yes" >&5
2320$as_echo "yes" >&6; }
2321test "$program_prefix" != NONE &&
2322  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2323# Use a double $ so make ignores it.
2324test "$program_suffix" != NONE &&
2325  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2326# Double any \ or $.
2327# By default was `s,x,x', remove it if useless.
2328ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2329program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2330
2331# expand $ac_aux_dir to an absolute path
2332am_aux_dir=`cd $ac_aux_dir && pwd`
2333
2334test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2335# Use eval to expand $SHELL
2336if eval "$MISSING --run true"; then
2337  am_missing_run="$MISSING --run "
2338else
2339  am_missing_run=
2340  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2341$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2342fi
2343
2344{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2345$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2346if test -z "$MKDIR_P"; then
2347  if test "${ac_cv_path_mkdir+set}" = set; then
2348  $as_echo_n "(cached) " >&6
2349else
2350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2352do
2353  IFS=$as_save_IFS
2354  test -z "$as_dir" && as_dir=.
2355  for ac_prog in mkdir gmkdir; do
2356	 for ac_exec_ext in '' $ac_executable_extensions; do
2357	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2358	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2359	     'mkdir (GNU coreutils) '* | \
2360	     'mkdir (coreutils) '* | \
2361	     'mkdir (fileutils) '4.1*)
2362	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2363	       break 3;;
2364	   esac
2365	 done
2366       done
2367done
2368IFS=$as_save_IFS
2369
2370fi
2371
2372  if test "${ac_cv_path_mkdir+set}" = set; then
2373    MKDIR_P="$ac_cv_path_mkdir -p"
2374  else
2375    # As a last resort, use the slow shell script.  Don't cache a
2376    # value for MKDIR_P within a source directory, because that will
2377    # break other packages using the cache if that directory is
2378    # removed, or if the value is a relative name.
2379    test -d ./--version && rmdir ./--version
2380    MKDIR_P="$ac_install_sh -d"
2381  fi
2382fi
2383{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2384$as_echo "$MKDIR_P" >&6; }
2385
2386mkdir_p="$MKDIR_P"
2387case $mkdir_p in
2388  [\\/$]* | ?:[\\/]*) ;;
2389  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2390esac
2391
2392for ac_prog in gawk mawk nawk awk
2393do
2394  # Extract the first word of "$ac_prog", so it can be a program name with args.
2395set dummy $ac_prog; ac_word=$2
2396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2397$as_echo_n "checking for $ac_word... " >&6; }
2398if test "${ac_cv_prog_AWK+set}" = set; then
2399  $as_echo_n "(cached) " >&6
2400else
2401  if test -n "$AWK"; then
2402  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2403else
2404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407  IFS=$as_save_IFS
2408  test -z "$as_dir" && as_dir=.
2409  for ac_exec_ext in '' $ac_executable_extensions; do
2410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411    ac_cv_prog_AWK="$ac_prog"
2412    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413    break 2
2414  fi
2415done
2416done
2417IFS=$as_save_IFS
2418
2419fi
2420fi
2421AWK=$ac_cv_prog_AWK
2422if test -n "$AWK"; then
2423  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2424$as_echo "$AWK" >&6; }
2425else
2426  { $as_echo "$as_me:$LINENO: result: no" >&5
2427$as_echo "no" >&6; }
2428fi
2429
2430
2431  test -n "$AWK" && break
2432done
2433
2434{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2435$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2436set x ${MAKE-make}
2437ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2438if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2439  $as_echo_n "(cached) " >&6
2440else
2441  cat >conftest.make <<\_ACEOF
2442SHELL = /bin/sh
2443all:
2444	@echo '@@@%%%=$(MAKE)=@@@%%%'
2445_ACEOF
2446# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2447case `${MAKE-make} -f conftest.make 2>/dev/null` in
2448  *@@@%%%=?*=@@@%%%*)
2449    eval ac_cv_prog_make_${ac_make}_set=yes;;
2450  *)
2451    eval ac_cv_prog_make_${ac_make}_set=no;;
2452esac
2453rm -f conftest.make
2454fi
2455if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2456  { $as_echo "$as_me:$LINENO: result: yes" >&5
2457$as_echo "yes" >&6; }
2458  SET_MAKE=
2459else
2460  { $as_echo "$as_me:$LINENO: result: no" >&5
2461$as_echo "no" >&6; }
2462  SET_MAKE="MAKE=${MAKE-make}"
2463fi
2464
2465rm -rf .tst 2>/dev/null
2466mkdir .tst 2>/dev/null
2467if test -d .tst; then
2468  am__leading_dot=.
2469else
2470  am__leading_dot=_
2471fi
2472rmdir .tst 2>/dev/null
2473
2474if test "`cd $srcdir && pwd`" != "`pwd`"; then
2475  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2476  # is not polluted with repeated "-I."
2477  am__isrc=' -I$(srcdir)'
2478  # test to see if srcdir already configured
2479  if test -f $srcdir/config.status; then
2480    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2481$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2482   { (exit 1); exit 1; }; }
2483  fi
2484fi
2485
2486# test whether we have cygpath
2487if test -z "$CYGPATH_W"; then
2488  if (cygpath --version) >/dev/null 2>/dev/null; then
2489    CYGPATH_W='cygpath -w'
2490  else
2491    CYGPATH_W=echo
2492  fi
2493fi
2494
2495
2496# Define the identity of the package.
2497 PACKAGE=scim-kmfl-imengine
2498 VERSION=0.9.9
2499
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE "$PACKAGE"
2503_ACEOF
2504
2505
2506cat >>confdefs.h <<_ACEOF
2507#define VERSION "$VERSION"
2508_ACEOF
2509
2510# Some tools Automake needs.
2511
2512ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2513
2514
2515AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2516
2517
2518AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2519
2520
2521AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2522
2523
2524MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2525
2526install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2527
2528# Installed binaries are usually stripped using `strip' when the user
2529# run `make install-strip'.  However `strip' might not be the right
2530# tool to use in cross-compilation environments, therefore Automake
2531# will honor the `STRIP' environment variable to overrule this program.
2532if test "$cross_compiling" != no; then
2533  if test -n "$ac_tool_prefix"; then
2534  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2535set dummy ${ac_tool_prefix}strip; ac_word=$2
2536{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2537$as_echo_n "checking for $ac_word... " >&6; }
2538if test "${ac_cv_prog_STRIP+set}" = set; then
2539  $as_echo_n "(cached) " >&6
2540else
2541  if test -n "$STRIP"; then
2542  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2543else
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547  IFS=$as_save_IFS
2548  test -z "$as_dir" && as_dir=.
2549  for ac_exec_ext in '' $ac_executable_extensions; do
2550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2552    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553    break 2
2554  fi
2555done
2556done
2557IFS=$as_save_IFS
2558
2559fi
2560fi
2561STRIP=$ac_cv_prog_STRIP
2562if test -n "$STRIP"; then
2563  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2564$as_echo "$STRIP" >&6; }
2565else
2566  { $as_echo "$as_me:$LINENO: result: no" >&5
2567$as_echo "no" >&6; }
2568fi
2569
2570
2571fi
2572if test -z "$ac_cv_prog_STRIP"; then
2573  ac_ct_STRIP=$STRIP
2574  # Extract the first word of "strip", so it can be a program name with args.
2575set dummy strip; ac_word=$2
2576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2577$as_echo_n "checking for $ac_word... " >&6; }
2578if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2579  $as_echo_n "(cached) " >&6
2580else
2581  if test -n "$ac_ct_STRIP"; then
2582  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587  IFS=$as_save_IFS
2588  test -z "$as_dir" && as_dir=.
2589  for ac_exec_ext in '' $ac_executable_extensions; do
2590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591    ac_cv_prog_ac_ct_STRIP="strip"
2592    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593    break 2
2594  fi
2595done
2596done
2597IFS=$as_save_IFS
2598
2599fi
2600fi
2601ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2602if test -n "$ac_ct_STRIP"; then
2603  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2604$as_echo "$ac_ct_STRIP" >&6; }
2605else
2606  { $as_echo "$as_me:$LINENO: result: no" >&5
2607$as_echo "no" >&6; }
2608fi
2609
2610  if test "x$ac_ct_STRIP" = x; then
2611    STRIP=":"
2612  else
2613    case $cross_compiling:$ac_tool_warned in
2614yes:)
2615{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2617ac_tool_warned=yes ;;
2618esac
2619    STRIP=$ac_ct_STRIP
2620  fi
2621else
2622  STRIP="$ac_cv_prog_STRIP"
2623fi
2624
2625fi
2626INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2627
2628# We need awk for the "check" target.  The system "awk" is bad on
2629# some platforms.
2630# Always define AMTAR for backward compatibility.
2631
2632AMTAR=${AMTAR-"${am_missing_run}tar"}
2633
2634am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2635
2636
2637
2638
2639
2640ac_config_headers="$ac_config_headers config.h"
2641
2642
2643DEPDIR="${am__leading_dot}deps"
2644
2645ac_config_commands="$ac_config_commands depfiles"
2646
2647
2648am_make=${MAKE-make}
2649cat > confinc << 'END'
2650am__doit:
2651	@echo done
2652.PHONY: am__doit
2653END
2654# If we don't find an include directive, just comment out the code.
2655{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2656$as_echo_n "checking for style of include used by $am_make... " >&6; }
2657am__include="#"
2658am__quote=
2659_am_result=none
2660# First try GNU make style include.
2661echo "include confinc" > confmf
2662# We grep out `Entering directory' and `Leaving directory'
2663# messages which can occur if `w' ends up in MAKEFLAGS.
2664# In particular we don't look at `^make:' because GNU make might
2665# be invoked under some other name (usually "gmake"), in which
2666# case it prints its new name instead of `make'.
2667if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2668   am__include=include
2669   am__quote=
2670   _am_result=GNU
2671fi
2672# Now try BSD make style include.
2673if test "$am__include" = "#"; then
2674   echo '.include "confinc"' > confmf
2675   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2676      am__include=.include
2677      am__quote="\""
2678      _am_result=BSD
2679   fi
2680fi
2681
2682
2683{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2684$as_echo "$_am_result" >&6; }
2685rm -f confinc confmf
2686
2687# Check whether --enable-dependency-tracking was given.
2688if test "${enable_dependency_tracking+set}" = set; then
2689  enableval=$enable_dependency_tracking;
2690fi
2691
2692if test "x$enable_dependency_tracking" != xno; then
2693  am_depcomp="$ac_aux_dir/depcomp"
2694  AMDEPBACKSLASH='\'
2695fi
2696 if test "x$enable_dependency_tracking" != xno; then
2697  AMDEP_TRUE=
2698  AMDEP_FALSE='#'
2699else
2700  AMDEP_TRUE='#'
2701  AMDEP_FALSE=
2702fi
2703
2704
2705ac_ext=c
2706ac_cpp='$CPP $CPPFLAGS'
2707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710if test -n "$ac_tool_prefix"; then
2711  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712set dummy ${ac_tool_prefix}gcc; ac_word=$2
2713{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
2715if test "${ac_cv_prog_CC+set}" = set; then
2716  $as_echo_n "(cached) " >&6
2717else
2718  if test -n "$CC"; then
2719  ac_cv_prog_CC="$CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724  IFS=$as_save_IFS
2725  test -z "$as_dir" && as_dir=.
2726  for ac_exec_ext in '' $ac_executable_extensions; do
2727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2729    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730    break 2
2731  fi
2732done
2733done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738CC=$ac_cv_prog_CC
2739if test -n "$CC"; then
2740  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2741$as_echo "$CC" >&6; }
2742else
2743  { $as_echo "$as_me:$LINENO: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747
2748fi
2749if test -z "$ac_cv_prog_CC"; then
2750  ac_ct_CC=$CC
2751  # Extract the first word of "gcc", so it can be a program name with args.
2752set dummy gcc; ac_word=$2
2753{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756  $as_echo_n "(cached) " >&6
2757else
2758  if test -n "$ac_ct_CC"; then
2759  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764  IFS=$as_save_IFS
2765  test -z "$as_dir" && as_dir=.
2766  for ac_exec_ext in '' $ac_executable_extensions; do
2767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768    ac_cv_prog_ac_ct_CC="gcc"
2769    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770    break 2
2771  fi
2772done
2773done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779if test -n "$ac_ct_CC"; then
2780  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781$as_echo "$ac_ct_CC" >&6; }
2782else
2783  { $as_echo "$as_me:$LINENO: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787  if test "x$ac_ct_CC" = x; then
2788    CC=""
2789  else
2790    case $cross_compiling:$ac_tool_warned in
2791yes:)
2792{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794ac_tool_warned=yes ;;
2795esac
2796    CC=$ac_ct_CC
2797  fi
2798else
2799  CC="$ac_cv_prog_CC"
2800fi
2801
2802if test -z "$CC"; then
2803          if test -n "$ac_tool_prefix"; then
2804    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805set dummy ${ac_tool_prefix}cc; ac_word=$2
2806{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if test "${ac_cv_prog_CC+set}" = set; then
2809  $as_echo_n "(cached) " >&6
2810else
2811  if test -n "$CC"; then
2812  ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  test -z "$as_dir" && as_dir=.
2819  for ac_exec_ext in '' $ac_executable_extensions; do
2820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821    ac_cv_prog_CC="${ac_tool_prefix}cc"
2822    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826done
2827IFS=$as_save_IFS
2828
2829fi
2830fi
2831CC=$ac_cv_prog_CC
2832if test -n "$CC"; then
2833  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2834$as_echo "$CC" >&6; }
2835else
2836  { $as_echo "$as_me:$LINENO: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840
2841  fi
2842fi
2843if test -z "$CC"; then
2844  # Extract the first word of "cc", so it can be a program name with args.
2845set dummy cc; ac_word=$2
2846{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2847$as_echo_n "checking for $ac_word... " >&6; }
2848if test "${ac_cv_prog_CC+set}" = set; then
2849  $as_echo_n "(cached) " >&6
2850else
2851  if test -n "$CC"; then
2852  ac_cv_prog_CC="$CC" # Let the user override the test.
2853else
2854  ac_prog_rejected=no
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858  IFS=$as_save_IFS
2859  test -z "$as_dir" && as_dir=.
2860  for ac_exec_ext in '' $ac_executable_extensions; do
2861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2863       ac_prog_rejected=yes
2864       continue
2865     fi
2866    ac_cv_prog_CC="cc"
2867    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868    break 2
2869  fi
2870done
2871done
2872IFS=$as_save_IFS
2873
2874if test $ac_prog_rejected = yes; then
2875  # We found a bogon in the path, so make sure we never use it.
2876  set dummy $ac_cv_prog_CC
2877  shift
2878  if test $# != 0; then
2879    # We chose a different compiler from the bogus one.
2880    # However, it has the same basename, so the bogon will be chosen
2881    # first if we set CC to just the basename; use the full file name.
2882    shift
2883    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2884  fi
2885fi
2886fi
2887fi
2888CC=$ac_cv_prog_CC
2889if test -n "$CC"; then
2890  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2891$as_echo "$CC" >&6; }
2892else
2893  { $as_echo "$as_me:$LINENO: result: no" >&5
2894$as_echo "no" >&6; }
2895fi
2896
2897
2898fi
2899if test -z "$CC"; then
2900  if test -n "$ac_tool_prefix"; then
2901  for ac_prog in cl.exe
2902  do
2903    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2905{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if test "${ac_cv_prog_CC+set}" = set; then
2908  $as_echo_n "(cached) " >&6
2909else
2910  if test -n "$CC"; then
2911  ac_cv_prog_CC="$CC" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916  IFS=$as_save_IFS
2917  test -z "$as_dir" && as_dir=.
2918  for ac_exec_ext in '' $ac_executable_extensions; do
2919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2921    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2933$as_echo "$CC" >&6; }
2934else
2935  { $as_echo "$as_me:$LINENO: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939
2940    test -n "$CC" && break
2941  done
2942fi
2943if test -z "$CC"; then
2944  ac_ct_CC=$CC
2945  for ac_prog in cl.exe
2946do
2947  # Extract the first word of "$ac_prog", so it can be a program name with args.
2948set dummy $ac_prog; ac_word=$2
2949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2950$as_echo_n "checking for $ac_word... " >&6; }
2951if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2952  $as_echo_n "(cached) " >&6
2953else
2954  if test -n "$ac_ct_CC"; then
2955  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956else
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962  for ac_exec_ext in '' $ac_executable_extensions; do
2963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964    ac_cv_prog_ac_ct_CC="$ac_prog"
2965    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966    break 2
2967  fi
2968done
2969done
2970IFS=$as_save_IFS
2971
2972fi
2973fi
2974ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975if test -n "$ac_ct_CC"; then
2976  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2977$as_echo "$ac_ct_CC" >&6; }
2978else
2979  { $as_echo "$as_me:$LINENO: result: no" >&5
2980$as_echo "no" >&6; }
2981fi
2982
2983
2984  test -n "$ac_ct_CC" && break
2985done
2986
2987  if test "x$ac_ct_CC" = x; then
2988    CC=""
2989  else
2990    case $cross_compiling:$ac_tool_warned in
2991yes:)
2992{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994ac_tool_warned=yes ;;
2995esac
2996    CC=$ac_ct_CC
2997  fi
2998fi
2999
3000fi
3001
3002
3003test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3006See \`config.log' for more details." >&5
3007$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3008See \`config.log' for more details." >&2;}
3009   { (exit 1); exit 1; }; }; }
3010
3011# Provide some information about the compiler.
3012$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3013set X $ac_compile
3014ac_compiler=$2
3015{ (ac_try="$ac_compiler --version >&5"
3016case "(($ac_try" in
3017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018  *) ac_try_echo=$ac_try;;
3019esac
3020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3021$as_echo "$ac_try_echo") >&5
3022  (eval "$ac_compiler --version >&5") 2>&5
3023  ac_status=$?
3024  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }
3026{ (ac_try="$ac_compiler -v >&5"
3027case "(($ac_try" in
3028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029  *) ac_try_echo=$ac_try;;
3030esac
3031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3032$as_echo "$ac_try_echo") >&5
3033  (eval "$ac_compiler -v >&5") 2>&5
3034  ac_status=$?
3035  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); }
3037{ (ac_try="$ac_compiler -V >&5"
3038case "(($ac_try" in
3039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040  *) ac_try_echo=$ac_try;;
3041esac
3042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3043$as_echo "$ac_try_echo") >&5
3044  (eval "$ac_compiler -V >&5") 2>&5
3045  ac_status=$?
3046  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); }
3048
3049cat >conftest.$ac_ext <<_ACEOF
3050/* confdefs.h.  */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h.  */
3055
3056int
3057main ()
3058{
3059
3060  ;
3061  return 0;
3062}
3063_ACEOF
3064ac_clean_files_save=$ac_clean_files
3065ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3066# Try to create an executable without -o first, disregard a.out.
3067# It will help us diagnose broken compilers, and finding out an intuition
3068# of exeext.
3069{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070$as_echo_n "checking for C compiler default output file name... " >&6; }
3071ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072
3073# The possible output files:
3074ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3075
3076ac_rmfiles=
3077for ac_file in $ac_files
3078do
3079  case $ac_file in
3080    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3081    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3082  esac
3083done
3084rm -f $ac_rmfiles
3085
3086if { (ac_try="$ac_link_default"
3087case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092$as_echo "$ac_try_echo") >&5
3093  (eval "$ac_link_default") 2>&5
3094  ac_status=$?
3095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); }; then
3097  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3098# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3099# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3100# so that the user can short-circuit this test for compilers unknown to
3101# Autoconf.
3102for ac_file in $ac_files ''
3103do
3104  test -f "$ac_file" || continue
3105  case $ac_file in
3106    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3107	;;
3108    [ab].out )
3109	# We found the default executable, but exeext='' is most
3110	# certainly right.
3111	break;;
3112    *.* )
3113        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3114	then :; else
3115	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116	fi
3117	# We set ac_cv_exeext here because the later test for it is not
3118	# safe: cross compilers may not add the suffix if given an `-o'
3119	# argument, so we may need to know it at that point already.
3120	# Even if this section looks crufty: it has the advantage of
3121	# actually working.
3122	break;;
3123    * )
3124	break;;
3125  esac
3126done
3127test "$ac_cv_exeext" = no && ac_cv_exeext=
3128
3129else
3130  ac_file=''
3131fi
3132
3133{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3134$as_echo "$ac_file" >&6; }
3135if test -z "$ac_file"; then
3136  $as_echo "$as_me: failed program was:" >&5
3137sed 's/^/| /' conftest.$ac_ext >&5
3138
3139{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3142See \`config.log' for more details." >&5
3143$as_echo "$as_me: error: C compiler cannot create executables
3144See \`config.log' for more details." >&2;}
3145   { (exit 77); exit 77; }; }; }
3146fi
3147
3148ac_exeext=$ac_cv_exeext
3149
3150# Check that the compiler produces executables we can run.  If not, either
3151# the compiler is broken, or we cross compile.
3152{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3153$as_echo_n "checking whether the C compiler works... " >&6; }
3154# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3155# If not cross compiling, check that we can run a simple program.
3156if test "$cross_compiling" != yes; then
3157  if { ac_try='./$ac_file'
3158  { (case "(($ac_try" in
3159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160  *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163$as_echo "$ac_try_echo") >&5
3164  (eval "$ac_try") 2>&5
3165  ac_status=$?
3166  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); }; }; then
3168    cross_compiling=no
3169  else
3170    if test "$cross_compiling" = maybe; then
3171	cross_compiling=yes
3172    else
3173	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3176If you meant to cross compile, use \`--host'.
3177See \`config.log' for more details." >&5
3178$as_echo "$as_me: error: cannot run C compiled programs.
3179If you meant to cross compile, use \`--host'.
3180See \`config.log' for more details." >&2;}
3181   { (exit 1); exit 1; }; }; }
3182    fi
3183  fi
3184fi
3185{ $as_echo "$as_me:$LINENO: result: yes" >&5
3186$as_echo "yes" >&6; }
3187
3188rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3189ac_clean_files=$ac_clean_files_save
3190# Check that the compiler produces executables we can run.  If not, either
3191# the compiler is broken, or we cross compile.
3192{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3193$as_echo_n "checking whether we are cross compiling... " >&6; }
3194{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3195$as_echo "$cross_compiling" >&6; }
3196
3197{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3198$as_echo_n "checking for suffix of executables... " >&6; }
3199if { (ac_try="$ac_link"
3200case "(($ac_try" in
3201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202  *) ac_try_echo=$ac_try;;
3203esac
3204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3205$as_echo "$ac_try_echo") >&5
3206  (eval "$ac_link") 2>&5
3207  ac_status=$?
3208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); }; then
3210  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3211# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3212# work properly (i.e., refer to `conftest.exe'), while it won't with
3213# `rm'.
3214for ac_file in conftest.exe conftest conftest.*; do
3215  test -f "$ac_file" || continue
3216  case $ac_file in
3217    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3218    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219	  break;;
3220    * ) break;;
3221  esac
3222done
3223else
3224  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3227See \`config.log' for more details." >&5
3228$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3229See \`config.log' for more details." >&2;}
3230   { (exit 1); exit 1; }; }; }
3231fi
3232
3233rm -f conftest$ac_cv_exeext
3234{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3235$as_echo "$ac_cv_exeext" >&6; }
3236
3237rm -f conftest.$ac_ext
3238EXEEXT=$ac_cv_exeext
3239ac_exeext=$EXEEXT
3240{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3241$as_echo_n "checking for suffix of object files... " >&6; }
3242if test "${ac_cv_objext+set}" = set; then
3243  $as_echo_n "(cached) " >&6
3244else
3245  cat >conftest.$ac_ext <<_ACEOF
3246/* confdefs.h.  */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h.  */
3251
3252int
3253main ()
3254{
3255
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260rm -f conftest.o conftest.obj
3261if { (ac_try="$ac_compile"
3262case "(($ac_try" in
3263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264  *) ac_try_echo=$ac_try;;
3265esac
3266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267$as_echo "$ac_try_echo") >&5
3268  (eval "$ac_compile") 2>&5
3269  ac_status=$?
3270  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271  (exit $ac_status); }; then
3272  for ac_file in conftest.o conftest.obj conftest.*; do
3273  test -f "$ac_file" || continue;
3274  case $ac_file in
3275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3276    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3277       break;;
3278  esac
3279done
3280else
3281  $as_echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3287See \`config.log' for more details." >&5
3288$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3289See \`config.log' for more details." >&2;}
3290   { (exit 1); exit 1; }; }; }
3291fi
3292
3293rm -f conftest.$ac_cv_objext conftest.$ac_ext
3294fi
3295{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3296$as_echo "$ac_cv_objext" >&6; }
3297OBJEXT=$ac_cv_objext
3298ac_objext=$OBJEXT
3299{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3300$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3301if test "${ac_cv_c_compiler_gnu+set}" = set; then
3302  $as_echo_n "(cached) " >&6
3303else
3304  cat >conftest.$ac_ext <<_ACEOF
3305/* confdefs.h.  */
3306_ACEOF
3307cat confdefs.h >>conftest.$ac_ext
3308cat >>conftest.$ac_ext <<_ACEOF
3309/* end confdefs.h.  */
3310
3311int
3312main ()
3313{
3314#ifndef __GNUC__
3315       choke me
3316#endif
3317
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322rm -f conftest.$ac_objext
3323if { (ac_try="$ac_compile"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329$as_echo "$ac_try_echo") >&5
3330  (eval "$ac_compile") 2>conftest.er1
3331  ac_status=$?
3332  grep -v '^ *+' conftest.er1 >conftest.err
3333  rm -f conftest.er1
3334  cat conftest.err >&5
3335  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); } && {
3337	 test -z "$ac_c_werror_flag" ||
3338	 test ! -s conftest.err
3339       } && test -s conftest.$ac_objext; then
3340  ac_compiler_gnu=yes
3341else
3342  $as_echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345	ac_compiler_gnu=no
3346fi
3347
3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350
3351fi
3352{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3353$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3354if test $ac_compiler_gnu = yes; then
3355  GCC=yes
3356else
3357  GCC=
3358fi
3359ac_test_CFLAGS=${CFLAGS+set}
3360ac_save_CFLAGS=$CFLAGS
3361{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3362$as_echo_n "checking whether $CC accepts -g... " >&6; }
3363if test "${ac_cv_prog_cc_g+set}" = set; then
3364  $as_echo_n "(cached) " >&6
3365else
3366  ac_save_c_werror_flag=$ac_c_werror_flag
3367   ac_c_werror_flag=yes
3368   ac_cv_prog_cc_g=no
3369   CFLAGS="-g"
3370   cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h.  */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h.  */
3376
3377int
3378main ()
3379{
3380
3381  ;
3382  return 0;
3383}
3384_ACEOF
3385rm -f conftest.$ac_objext
3386if { (ac_try="$ac_compile"
3387case "(($ac_try" in
3388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389  *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3392$as_echo "$ac_try_echo") >&5
3393  (eval "$ac_compile") 2>conftest.er1
3394  ac_status=$?
3395  grep -v '^ *+' conftest.er1 >conftest.err
3396  rm -f conftest.er1
3397  cat conftest.err >&5
3398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); } && {
3400	 test -z "$ac_c_werror_flag" ||
3401	 test ! -s conftest.err
3402       } && test -s conftest.$ac_objext; then
3403  ac_cv_prog_cc_g=yes
3404else
3405  $as_echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408	CFLAGS=""
3409      cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h.  */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h.  */
3415
3416int
3417main ()
3418{
3419
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (ac_try="$ac_compile"
3426case "(($ac_try" in
3427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428  *) ac_try_echo=$ac_try;;
3429esac
3430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431$as_echo "$ac_try_echo") >&5
3432  (eval "$ac_compile") 2>conftest.er1
3433  ac_status=$?
3434  grep -v '^ *+' conftest.er1 >conftest.err
3435  rm -f conftest.er1
3436  cat conftest.err >&5
3437  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); } && {
3439	 test -z "$ac_c_werror_flag" ||
3440	 test ! -s conftest.err
3441       } && test -s conftest.$ac_objext; then
3442  :
3443else
3444  $as_echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
3447	ac_c_werror_flag=$ac_save_c_werror_flag
3448	 CFLAGS="-g"
3449	 cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h.  */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h.  */
3455
3456int
3457main ()
3458{
3459
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464rm -f conftest.$ac_objext
3465if { (ac_try="$ac_compile"
3466case "(($ac_try" in
3467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468  *) ac_try_echo=$ac_try;;
3469esac
3470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471$as_echo "$ac_try_echo") >&5
3472  (eval "$ac_compile") 2>conftest.er1
3473  ac_status=$?
3474  grep -v '^ *+' conftest.er1 >conftest.err
3475  rm -f conftest.er1
3476  cat conftest.err >&5
3477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); } && {
3479	 test -z "$ac_c_werror_flag" ||
3480	 test ! -s conftest.err
3481       } && test -s conftest.$ac_objext; then
3482  ac_cv_prog_cc_g=yes
3483else
3484  $as_echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487
3488fi
3489
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491fi
3492
3493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494fi
3495
3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497   ac_c_werror_flag=$ac_save_c_werror_flag
3498fi
3499{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3500$as_echo "$ac_cv_prog_cc_g" >&6; }
3501if test "$ac_test_CFLAGS" = set; then
3502  CFLAGS=$ac_save_CFLAGS
3503elif test $ac_cv_prog_cc_g = yes; then
3504  if test "$GCC" = yes; then
3505    CFLAGS="-g -O2"
3506  else
3507    CFLAGS="-g"
3508  fi
3509else
3510  if test "$GCC" = yes; then
3511    CFLAGS="-O2"
3512  else
3513    CFLAGS=
3514  fi
3515fi
3516{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3517$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3518if test "${ac_cv_prog_cc_c89+set}" = set; then
3519  $as_echo_n "(cached) " >&6
3520else
3521  ac_cv_prog_cc_c89=no
3522ac_save_CC=$CC
3523cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h.  */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h.  */
3529#include <stdarg.h>
3530#include <stdio.h>
3531#include <sys/types.h>
3532#include <sys/stat.h>
3533/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3534struct buf { int x; };
3535FILE * (*rcsopen) (struct buf *, struct stat *, int);
3536static char *e (p, i)
3537     char **p;
3538     int i;
3539{
3540  return p[i];
3541}
3542static char *f (char * (*g) (char **, int), char **p, ...)
3543{
3544  char *s;
3545  va_list v;
3546  va_start (v,p);
3547  s = g (p, va_arg (v,int));
3548  va_end (v);
3549  return s;
3550}
3551
3552/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3553   function prototypes and stuff, but not '\xHH' hex character constants.
3554   These don't provoke an error unfortunately, instead are silently treated
3555   as 'x'.  The following induces an error, until -std is added to get
3556   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3557   array size at least.  It's necessary to write '\x00'==0 to get something
3558   that's true only with -std.  */
3559int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3560
3561/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3562   inside strings and character constants.  */
3563#define FOO(x) 'x'
3564int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3565
3566int test (int i, double x);
3567struct s1 {int (*f) (int a);};
3568struct s2 {int (*f) (double a);};
3569int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3570int argc;
3571char **argv;
3572int
3573main ()
3574{
3575return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3576  ;
3577  return 0;
3578}
3579_ACEOF
3580for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3581	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3582do
3583  CC="$ac_save_CC $ac_arg"
3584  rm -f conftest.$ac_objext
3585if { (ac_try="$ac_compile"
3586case "(($ac_try" in
3587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588  *) ac_try_echo=$ac_try;;
3589esac
3590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3591$as_echo "$ac_try_echo") >&5
3592  (eval "$ac_compile") 2>conftest.er1
3593  ac_status=$?
3594  grep -v '^ *+' conftest.er1 >conftest.err
3595  rm -f conftest.er1
3596  cat conftest.err >&5
3597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); } && {
3599	 test -z "$ac_c_werror_flag" ||
3600	 test ! -s conftest.err
3601       } && test -s conftest.$ac_objext; then
3602  ac_cv_prog_cc_c89=$ac_arg
3603else
3604  $as_echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
3607
3608fi
3609
3610rm -f core conftest.err conftest.$ac_objext
3611  test "x$ac_cv_prog_cc_c89" != "xno" && break
3612done
3613rm -f conftest.$ac_ext
3614CC=$ac_save_CC
3615
3616fi
3617# AC_CACHE_VAL
3618case "x$ac_cv_prog_cc_c89" in
3619  x)
3620    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3621$as_echo "none needed" >&6; } ;;
3622  xno)
3623    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3624$as_echo "unsupported" >&6; } ;;
3625  *)
3626    CC="$CC $ac_cv_prog_cc_c89"
3627    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3628$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3629esac
3630
3631
3632ac_ext=c
3633ac_cpp='$CPP $CPPFLAGS'
3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638depcc="$CC"   am_compiler_list=
3639
3640{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3641$as_echo_n "checking dependency style of $depcc... " >&6; }
3642if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3643  $as_echo_n "(cached) " >&6
3644else
3645  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3646  # We make a subdir and do the tests there.  Otherwise we can end up
3647  # making bogus files that we don't know about and never remove.  For
3648  # instance it was reported that on HP-UX the gcc test will end up
3649  # making a dummy file named `D' -- because `-MD' means `put the output
3650  # in D'.
3651  mkdir conftest.dir
3652  # Copy depcomp to subdir because otherwise we won't find it if we're
3653  # using a relative directory.
3654  cp "$am_depcomp" conftest.dir
3655  cd conftest.dir
3656  # We will build objects and dependencies in a subdirectory because
3657  # it helps to detect inapplicable dependency modes.  For instance
3658  # both Tru64's cc and ICC support -MD to output dependencies as a
3659  # side effect of compilation, but ICC will put the dependencies in
3660  # the current directory while Tru64 will put them in the object
3661  # directory.
3662  mkdir sub
3663
3664  am_cv_CC_dependencies_compiler_type=none
3665  if test "$am_compiler_list" = ""; then
3666     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3667  fi
3668  for depmode in $am_compiler_list; do
3669    # Setup a source with many dependencies, because some compilers
3670    # like to wrap large dependency lists on column 80 (with \), and
3671    # we should not choose a depcomp mode which is confused by this.
3672    #
3673    # We need to recreate these files for each test, as the compiler may
3674    # overwrite some of them when testing with obscure command lines.
3675    # This happens at least with the AIX C compiler.
3676    : > sub/conftest.c
3677    for i in 1 2 3 4 5 6; do
3678      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3679      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3680      # Solaris 8's {/usr,}/bin/sh.
3681      touch sub/conftst$i.h
3682    done
3683    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3684
3685    case $depmode in
3686    nosideeffect)
3687      # after this tag, mechanisms are not by side-effect, so they'll
3688      # only be used when explicitly requested
3689      if test "x$enable_dependency_tracking" = xyes; then
3690	continue
3691      else
3692	break
3693      fi
3694      ;;
3695    none) break ;;
3696    esac
3697    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3698    # mode.  It turns out that the SunPro C++ compiler does not properly
3699    # handle `-M -o', and we need to detect this.
3700    if depmode=$depmode \
3701       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3702       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3703       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3704         >/dev/null 2>conftest.err &&
3705       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3706       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3707       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3708       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3709      # icc doesn't choke on unknown options, it will just issue warnings
3710      # or remarks (even with -Werror).  So we grep stderr for any message
3711      # that says an option was ignored or not supported.
3712      # When given -MP, icc 7.0 and 7.1 complain thusly:
3713      #   icc: Command line warning: ignoring option '-M'; no argument required
3714      # The diagnosis changed in icc 8.0:
3715      #   icc: Command line remark: option '-MP' not supported
3716      if (grep 'ignoring option' conftest.err ||
3717          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3718        am_cv_CC_dependencies_compiler_type=$depmode
3719        break
3720      fi
3721    fi
3722  done
3723
3724  cd ..
3725  rm -rf conftest.dir
3726else
3727  am_cv_CC_dependencies_compiler_type=none
3728fi
3729
3730fi
3731{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3732$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3733CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3734
3735 if
3736  test "x$enable_dependency_tracking" != xno \
3737  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3738  am__fastdepCC_TRUE=
3739  am__fastdepCC_FALSE='#'
3740else
3741  am__fastdepCC_TRUE='#'
3742  am__fastdepCC_FALSE=
3743fi
3744
3745
3746
3747ac_ext=c
3748ac_cpp='$CPP $CPPFLAGS'
3749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3753$as_echo_n "checking how to run the C preprocessor... " >&6; }
3754# On Suns, sometimes $CPP names a directory.
3755if test -n "$CPP" && test -d "$CPP"; then
3756  CPP=
3757fi
3758if test -z "$CPP"; then
3759  if test "${ac_cv_prog_CPP+set}" = set; then
3760  $as_echo_n "(cached) " >&6
3761else
3762      # Double quotes because CPP needs to be expanded
3763    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3764    do
3765      ac_preproc_ok=false
3766for ac_c_preproc_warn_flag in '' yes
3767do
3768  # Use a header file that comes with gcc, so configuring glibc
3769  # with a fresh cross-compiler works.
3770  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3771  # <limits.h> exists even on freestanding compilers.
3772  # On the NeXT, cc -E runs the code through the compiler's parser,
3773  # not just through cpp. "Syntax error" is here to catch this case.
3774  cat >conftest.$ac_ext <<_ACEOF
3775/* confdefs.h.  */
3776_ACEOF
3777cat confdefs.h >>conftest.$ac_ext
3778cat >>conftest.$ac_ext <<_ACEOF
3779/* end confdefs.h.  */
3780#ifdef __STDC__
3781# include <limits.h>
3782#else
3783# include <assert.h>
3784#endif
3785		     Syntax error
3786_ACEOF
3787if { (ac_try="$ac_cpp conftest.$ac_ext"
3788case "(($ac_try" in
3789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790  *) ac_try_echo=$ac_try;;
3791esac
3792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3793$as_echo "$ac_try_echo") >&5
3794  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3795  ac_status=$?
3796  grep -v '^ *+' conftest.er1 >conftest.err
3797  rm -f conftest.er1
3798  cat conftest.err >&5
3799  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); } >/dev/null && {
3801	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3802	 test ! -s conftest.err
3803       }; then
3804  :
3805else
3806  $as_echo "$as_me: failed program was:" >&5
3807sed 's/^/| /' conftest.$ac_ext >&5
3808
3809  # Broken: fails on valid input.
3810continue
3811fi
3812
3813rm -f conftest.err conftest.$ac_ext
3814
3815  # OK, works on sane cases.  Now check whether nonexistent headers
3816  # can be detected and how.
3817  cat >conftest.$ac_ext <<_ACEOF
3818/* confdefs.h.  */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h.  */
3823#include <ac_nonexistent.h>
3824_ACEOF
3825if { (ac_try="$ac_cpp conftest.$ac_ext"
3826case "(($ac_try" in
3827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828  *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831$as_echo "$ac_try_echo") >&5
3832  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3833  ac_status=$?
3834  grep -v '^ *+' conftest.er1 >conftest.err
3835  rm -f conftest.er1
3836  cat conftest.err >&5
3837  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838  (exit $ac_status); } >/dev/null && {
3839	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3840	 test ! -s conftest.err
3841       }; then
3842  # Broken: success on invalid input.
3843continue
3844else
3845  $as_echo "$as_me: failed program was:" >&5
3846sed 's/^/| /' conftest.$ac_ext >&5
3847
3848  # Passes both tests.
3849ac_preproc_ok=:
3850break
3851fi
3852
3853rm -f conftest.err conftest.$ac_ext
3854
3855done
3856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3857rm -f conftest.err conftest.$ac_ext
3858if $ac_preproc_ok; then
3859  break
3860fi
3861
3862    done
3863    ac_cv_prog_CPP=$CPP
3864
3865fi
3866  CPP=$ac_cv_prog_CPP
3867else
3868  ac_cv_prog_CPP=$CPP
3869fi
3870{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3871$as_echo "$CPP" >&6; }
3872ac_preproc_ok=false
3873for ac_c_preproc_warn_flag in '' yes
3874do
3875  # Use a header file that comes with gcc, so configuring glibc
3876  # with a fresh cross-compiler works.
3877  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3878  # <limits.h> exists even on freestanding compilers.
3879  # On the NeXT, cc -E runs the code through the compiler's parser,
3880  # not just through cpp. "Syntax error" is here to catch this case.
3881  cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h.  */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h.  */
3887#ifdef __STDC__
3888# include <limits.h>
3889#else
3890# include <assert.h>
3891#endif
3892		     Syntax error
3893_ACEOF
3894if { (ac_try="$ac_cpp conftest.$ac_ext"
3895case "(($ac_try" in
3896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897  *) ac_try_echo=$ac_try;;
3898esac
3899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3900$as_echo "$ac_try_echo") >&5
3901  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3902  ac_status=$?
3903  grep -v '^ *+' conftest.er1 >conftest.err
3904  rm -f conftest.er1
3905  cat conftest.err >&5
3906  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907  (exit $ac_status); } >/dev/null && {
3908	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3909	 test ! -s conftest.err
3910       }; then
3911  :
3912else
3913  $as_echo "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916  # Broken: fails on valid input.
3917continue
3918fi
3919
3920rm -f conftest.err conftest.$ac_ext
3921
3922  # OK, works on sane cases.  Now check whether nonexistent headers
3923  # can be detected and how.
3924  cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h.  */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h.  */
3930#include <ac_nonexistent.h>
3931_ACEOF
3932if { (ac_try="$ac_cpp conftest.$ac_ext"
3933case "(($ac_try" in
3934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935  *) ac_try_echo=$ac_try;;
3936esac
3937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3938$as_echo "$ac_try_echo") >&5
3939  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3940  ac_status=$?
3941  grep -v '^ *+' conftest.er1 >conftest.err
3942  rm -f conftest.er1
3943  cat conftest.err >&5
3944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945  (exit $ac_status); } >/dev/null && {
3946	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3947	 test ! -s conftest.err
3948       }; then
3949  # Broken: success on invalid input.
3950continue
3951else
3952  $as_echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955  # Passes both tests.
3956ac_preproc_ok=:
3957break
3958fi
3959
3960rm -f conftest.err conftest.$ac_ext
3961
3962done
3963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964rm -f conftest.err conftest.$ac_ext
3965if $ac_preproc_ok; then
3966  :
3967else
3968  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3971See \`config.log' for more details." >&5
3972$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3973See \`config.log' for more details." >&2;}
3974   { (exit 1); exit 1; }; }; }
3975fi
3976
3977ac_ext=c
3978ac_cpp='$CPP $CPPFLAGS'
3979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982
3983
3984{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3985$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3986if test "${ac_cv_path_GREP+set}" = set; then
3987  $as_echo_n "(cached) " >&6
3988else
3989  if test -z "$GREP"; then
3990  ac_path_GREP_found=false
3991  # Loop through the user's path and test for each of PROGNAME-LIST
3992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994do
3995  IFS=$as_save_IFS
3996  test -z "$as_dir" && as_dir=.
3997  for ac_prog in grep ggrep; do
3998    for ac_exec_ext in '' $ac_executable_extensions; do
3999      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4000      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4001# Check for GNU ac_path_GREP and select it if it is found.
4002  # Check for GNU $ac_path_GREP
4003case `"$ac_path_GREP" --version 2>&1` in
4004*GNU*)
4005  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4006*)
4007  ac_count=0
4008  $as_echo_n 0123456789 >"conftest.in"
4009  while :
4010  do
4011    cat "conftest.in" "conftest.in" >"conftest.tmp"
4012    mv "conftest.tmp" "conftest.in"
4013    cp "conftest.in" "conftest.nl"
4014    $as_echo 'GREP' >> "conftest.nl"
4015    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017    ac_count=`expr $ac_count + 1`
4018    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4019      # Best one so far, save it but keep looking for a better one
4020      ac_cv_path_GREP="$ac_path_GREP"
4021      ac_path_GREP_max=$ac_count
4022    fi
4023    # 10*(2^10) chars as input seems more than enough
4024    test $ac_count -gt 10 && break
4025  done
4026  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027esac
4028
4029      $ac_path_GREP_found && break 3
4030    done
4031  done
4032done
4033IFS=$as_save_IFS
4034  if test -z "$ac_cv_path_GREP"; then
4035    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037   { (exit 1); exit 1; }; }
4038  fi
4039else
4040  ac_cv_path_GREP=$GREP
4041fi
4042
4043fi
4044{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4045$as_echo "$ac_cv_path_GREP" >&6; }
4046 GREP="$ac_cv_path_GREP"
4047
4048
4049{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4050$as_echo_n "checking for egrep... " >&6; }
4051if test "${ac_cv_path_EGREP+set}" = set; then
4052  $as_echo_n "(cached) " >&6
4053else
4054  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4055   then ac_cv_path_EGREP="$GREP -E"
4056   else
4057     if test -z "$EGREP"; then
4058  ac_path_EGREP_found=false
4059  # Loop through the user's path and test for each of PROGNAME-LIST
4060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4062do
4063  IFS=$as_save_IFS
4064  test -z "$as_dir" && as_dir=.
4065  for ac_prog in egrep; do
4066    for ac_exec_ext in '' $ac_executable_extensions; do
4067      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4068      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4069# Check for GNU ac_path_EGREP and select it if it is found.
4070  # Check for GNU $ac_path_EGREP
4071case `"$ac_path_EGREP" --version 2>&1` in
4072*GNU*)
4073  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4074*)
4075  ac_count=0
4076  $as_echo_n 0123456789 >"conftest.in"
4077  while :
4078  do
4079    cat "conftest.in" "conftest.in" >"conftest.tmp"
4080    mv "conftest.tmp" "conftest.in"
4081    cp "conftest.in" "conftest.nl"
4082    $as_echo 'EGREP' >> "conftest.nl"
4083    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085    ac_count=`expr $ac_count + 1`
4086    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4087      # Best one so far, save it but keep looking for a better one
4088      ac_cv_path_EGREP="$ac_path_EGREP"
4089      ac_path_EGREP_max=$ac_count
4090    fi
4091    # 10*(2^10) chars as input seems more than enough
4092    test $ac_count -gt 10 && break
4093  done
4094  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095esac
4096
4097      $ac_path_EGREP_found && break 3
4098    done
4099  done
4100done
4101IFS=$as_save_IFS
4102  if test -z "$ac_cv_path_EGREP"; then
4103    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105   { (exit 1); exit 1; }; }
4106  fi
4107else
4108  ac_cv_path_EGREP=$EGREP
4109fi
4110
4111   fi
4112fi
4113{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4114$as_echo "$ac_cv_path_EGREP" >&6; }
4115 EGREP="$ac_cv_path_EGREP"
4116
4117
4118{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4119$as_echo_n "checking for ANSI C header files... " >&6; }
4120if test "${ac_cv_header_stdc+set}" = set; then
4121  $as_echo_n "(cached) " >&6
4122else
4123  cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h.  */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h.  */
4129#include <stdlib.h>
4130#include <stdarg.h>
4131#include <string.h>
4132#include <float.h>
4133
4134int
4135main ()
4136{
4137
4138  ;
4139  return 0;
4140}
4141_ACEOF
4142rm -f conftest.$ac_objext
4143if { (ac_try="$ac_compile"
4144case "(($ac_try" in
4145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146  *) ac_try_echo=$ac_try;;
4147esac
4148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4149$as_echo "$ac_try_echo") >&5
4150  (eval "$ac_compile") 2>conftest.er1
4151  ac_status=$?
4152  grep -v '^ *+' conftest.er1 >conftest.err
4153  rm -f conftest.er1
4154  cat conftest.err >&5
4155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156  (exit $ac_status); } && {
4157	 test -z "$ac_c_werror_flag" ||
4158	 test ! -s conftest.err
4159       } && test -s conftest.$ac_objext; then
4160  ac_cv_header_stdc=yes
4161else
4162  $as_echo "$as_me: failed program was:" >&5
4163sed 's/^/| /' conftest.$ac_ext >&5
4164
4165	ac_cv_header_stdc=no
4166fi
4167
4168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169
4170if test $ac_cv_header_stdc = yes; then
4171  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4172  cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h.  */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h.  */
4178#include <string.h>
4179
4180_ACEOF
4181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4182  $EGREP "memchr" >/dev/null 2>&1; then
4183  :
4184else
4185  ac_cv_header_stdc=no
4186fi
4187rm -f conftest*
4188
4189fi
4190
4191if test $ac_cv_header_stdc = yes; then
4192  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4193  cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h.  */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h.  */
4199#include <stdlib.h>
4200
4201_ACEOF
4202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203  $EGREP "free" >/dev/null 2>&1; then
4204  :
4205else
4206  ac_cv_header_stdc=no
4207fi
4208rm -f conftest*
4209
4210fi
4211
4212if test $ac_cv_header_stdc = yes; then
4213  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4214  if test "$cross_compiling" = yes; then
4215  :
4216else
4217  cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h.  */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h.  */
4223#include <ctype.h>
4224#include <stdlib.h>
4225#if ((' ' & 0x0FF) == 0x020)
4226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228#else
4229# define ISLOWER(c) \
4230		   (('a' <= (c) && (c) <= 'i') \
4231		     || ('j' <= (c) && (c) <= 'r') \
4232		     || ('s' <= (c) && (c) <= 'z'))
4233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4234#endif
4235
4236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4237int
4238main ()
4239{
4240  int i;
4241  for (i = 0; i < 256; i++)
4242    if (XOR (islower (i), ISLOWER (i))
4243	|| toupper (i) != TOUPPER (i))
4244      return 2;
4245  return 0;
4246}
4247_ACEOF
4248rm -f conftest$ac_exeext
4249if { (ac_try="$ac_link"
4250case "(($ac_try" in
4251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252  *) ac_try_echo=$ac_try;;
4253esac
4254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4255$as_echo "$ac_try_echo") >&5
4256  (eval "$ac_link") 2>&5
4257  ac_status=$?
4258  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4260  { (case "(($ac_try" in
4261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262  *) ac_try_echo=$ac_try;;
4263esac
4264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4265$as_echo "$ac_try_echo") >&5
4266  (eval "$ac_try") 2>&5
4267  ac_status=$?
4268  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269  (exit $ac_status); }; }; then
4270  :
4271else
4272  $as_echo "$as_me: program exited with status $ac_status" >&5
4273$as_echo "$as_me: failed program was:" >&5
4274sed 's/^/| /' conftest.$ac_ext >&5
4275
4276( exit $ac_status )
4277ac_cv_header_stdc=no
4278fi
4279rm -rf conftest.dSYM
4280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4281fi
4282
4283
4284fi
4285fi
4286{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4287$as_echo "$ac_cv_header_stdc" >&6; }
4288if test $ac_cv_header_stdc = yes; then
4289
4290cat >>confdefs.h <<\_ACEOF
4291#define STDC_HEADERS 1
4292_ACEOF
4293
4294fi
4295
4296# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4307		  inttypes.h stdint.h unistd.h
4308do
4309as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4310{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4311$as_echo_n "checking for $ac_header... " >&6; }
4312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4313  $as_echo_n "(cached) " >&6
4314else
4315  cat >conftest.$ac_ext <<_ACEOF
4316/* confdefs.h.  */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h.  */
4321$ac_includes_default
4322
4323#include <$ac_header>
4324_ACEOF
4325rm -f conftest.$ac_objext
4326if { (ac_try="$ac_compile"
4327case "(($ac_try" in
4328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329  *) ac_try_echo=$ac_try;;
4330esac
4331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4332$as_echo "$ac_try_echo") >&5
4333  (eval "$ac_compile") 2>conftest.er1
4334  ac_status=$?
4335  grep -v '^ *+' conftest.er1 >conftest.err
4336  rm -f conftest.er1
4337  cat conftest.err >&5
4338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339  (exit $ac_status); } && {
4340	 test -z "$ac_c_werror_flag" ||
4341	 test ! -s conftest.err
4342       } && test -s conftest.$ac_objext; then
4343  eval "$as_ac_Header=yes"
4344else
4345  $as_echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348	eval "$as_ac_Header=no"
4349fi
4350
4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352fi
4353ac_res=`eval 'as_val=${'$as_ac_Header'}
4354		 $as_echo "$as_val"'`
4355	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4356$as_echo "$ac_res" >&6; }
4357as_val=`eval 'as_val=${'$as_ac_Header'}
4358		 $as_echo "$as_val"'`
4359   if test "x$as_val" = x""yes; then
4360  cat >>confdefs.h <<_ACEOF
4361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362_ACEOF
4363
4364fi
4365
4366done
4367
4368
4369
4370  if test "${ac_cv_header_minix_config_h+set}" = set; then
4371  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4372$as_echo_n "checking for minix/config.h... " >&6; }
4373if test "${ac_cv_header_minix_config_h+set}" = set; then
4374  $as_echo_n "(cached) " >&6
4375fi
4376{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4377$as_echo "$ac_cv_header_minix_config_h" >&6; }
4378else
4379  # Is the header compilable?
4380{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4381$as_echo_n "checking minix/config.h usability... " >&6; }
4382cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h.  */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h.  */
4388$ac_includes_default
4389#include <minix/config.h>
4390_ACEOF
4391rm -f conftest.$ac_objext
4392if { (ac_try="$ac_compile"
4393case "(($ac_try" in
4394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395  *) ac_try_echo=$ac_try;;
4396esac
4397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4398$as_echo "$ac_try_echo") >&5
4399  (eval "$ac_compile") 2>conftest.er1
4400  ac_status=$?
4401  grep -v '^ *+' conftest.er1 >conftest.err
4402  rm -f conftest.er1
4403  cat conftest.err >&5
4404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); } && {
4406	 test -z "$ac_c_werror_flag" ||
4407	 test ! -s conftest.err
4408       } && test -s conftest.$ac_objext; then
4409  ac_header_compiler=yes
4410else
4411  $as_echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
4414	ac_header_compiler=no
4415fi
4416
4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4419$as_echo "$ac_header_compiler" >&6; }
4420
4421# Is the header present?
4422{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4423$as_echo_n "checking minix/config.h presence... " >&6; }
4424cat >conftest.$ac_ext <<_ACEOF
4425/* confdefs.h.  */
4426_ACEOF
4427cat confdefs.h >>conftest.$ac_ext
4428cat >>conftest.$ac_ext <<_ACEOF
4429/* end confdefs.h.  */
4430#include <minix/config.h>
4431_ACEOF
4432if { (ac_try="$ac_cpp conftest.$ac_ext"
4433case "(($ac_try" in
4434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435  *) ac_try_echo=$ac_try;;
4436esac
4437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4438$as_echo "$ac_try_echo") >&5
4439  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4440  ac_status=$?
4441  grep -v '^ *+' conftest.er1 >conftest.err
4442  rm -f conftest.er1
4443  cat conftest.err >&5
4444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445  (exit $ac_status); } >/dev/null && {
4446	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4447	 test ! -s conftest.err
4448       }; then
4449  ac_header_preproc=yes
4450else
4451  $as_echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454  ac_header_preproc=no
4455fi
4456
4457rm -f conftest.err conftest.$ac_ext
4458{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4459$as_echo "$ac_header_preproc" >&6; }
4460
4461# So?  What about this header?
4462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4463  yes:no: )
4464    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4465$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4466    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4467$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4468    ac_header_preproc=yes
4469    ;;
4470  no:yes:* )
4471    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4472$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4473    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4474$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4475    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4476$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4477    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4478$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4479    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4480$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4481    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4482$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4483
4484    ;;
4485esac
4486{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4487$as_echo_n "checking for minix/config.h... " >&6; }
4488if test "${ac_cv_header_minix_config_h+set}" = set; then
4489  $as_echo_n "(cached) " >&6
4490else
4491  ac_cv_header_minix_config_h=$ac_header_preproc
4492fi
4493{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4494$as_echo "$ac_cv_header_minix_config_h" >&6; }
4495
4496fi
4497if test "x$ac_cv_header_minix_config_h" = x""yes; then
4498  MINIX=yes
4499else
4500  MINIX=
4501fi
4502
4503
4504  if test "$MINIX" = yes; then
4505
4506cat >>confdefs.h <<\_ACEOF
4507#define _POSIX_SOURCE 1
4508_ACEOF
4509
4510
4511cat >>confdefs.h <<\_ACEOF
4512#define _POSIX_1_SOURCE 2
4513_ACEOF
4514
4515
4516cat >>confdefs.h <<\_ACEOF
4517#define _MINIX 1
4518_ACEOF
4519
4520  fi
4521
4522
4523
4524  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4525$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4526if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4527  $as_echo_n "(cached) " >&6
4528else
4529  cat >conftest.$ac_ext <<_ACEOF
4530/* confdefs.h.  */
4531_ACEOF
4532cat confdefs.h >>conftest.$ac_ext
4533cat >>conftest.$ac_ext <<_ACEOF
4534/* end confdefs.h.  */
4535
4536#	  define __EXTENSIONS__ 1
4537	  $ac_includes_default
4538int
4539main ()
4540{
4541
4542  ;
4543  return 0;
4544}
4545_ACEOF
4546rm -f conftest.$ac_objext
4547if { (ac_try="$ac_compile"
4548case "(($ac_try" in
4549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550  *) ac_try_echo=$ac_try;;
4551esac
4552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4553$as_echo "$ac_try_echo") >&5
4554  (eval "$ac_compile") 2>conftest.er1
4555  ac_status=$?
4556  grep -v '^ *+' conftest.er1 >conftest.err
4557  rm -f conftest.er1
4558  cat conftest.err >&5
4559  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); } && {
4561	 test -z "$ac_c_werror_flag" ||
4562	 test ! -s conftest.err
4563       } && test -s conftest.$ac_objext; then
4564  ac_cv_safe_to_define___extensions__=yes
4565else
4566  $as_echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569	ac_cv_safe_to_define___extensions__=no
4570fi
4571
4572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573fi
4574{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4575$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4576  test $ac_cv_safe_to_define___extensions__ = yes &&
4577    cat >>confdefs.h <<\_ACEOF
4578#define __EXTENSIONS__ 1
4579_ACEOF
4580
4581  cat >>confdefs.h <<\_ACEOF
4582#define _ALL_SOURCE 1
4583_ACEOF
4584
4585  cat >>confdefs.h <<\_ACEOF
4586#define _GNU_SOURCE 1
4587_ACEOF
4588
4589  cat >>confdefs.h <<\_ACEOF
4590#define _POSIX_PTHREAD_SEMANTICS 1
4591_ACEOF
4592
4593  cat >>confdefs.h <<\_ACEOF
4594#define _TANDEM_SOURCE 1
4595_ACEOF
4596
4597
4598{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
4599$as_echo_n "checking for library containing strerror... " >&6; }
4600if test "${ac_cv_search_strerror+set}" = set; then
4601  $as_echo_n "(cached) " >&6
4602else
4603  ac_func_search_save_LIBS=$LIBS
4604cat >conftest.$ac_ext <<_ACEOF
4605/* confdefs.h.  */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h.  */
4610
4611/* Override any GCC internal prototype to avoid an error.
4612   Use char because int might match the return type of a GCC
4613   builtin and then its argument prototype would still apply.  */
4614#ifdef __cplusplus
4615extern "C"
4616#endif
4617char strerror ();
4618int
4619main ()
4620{
4621return strerror ();
4622  ;
4623  return 0;
4624}
4625_ACEOF
4626for ac_lib in '' cposix; do
4627  if test -z "$ac_lib"; then
4628    ac_res="none required"
4629  else
4630    ac_res=-l$ac_lib
4631    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4632  fi
4633  rm -f conftest.$ac_objext conftest$ac_exeext
4634if { (ac_try="$ac_link"
4635case "(($ac_try" in
4636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637  *) ac_try_echo=$ac_try;;
4638esac
4639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4640$as_echo "$ac_try_echo") >&5
4641  (eval "$ac_link") 2>conftest.er1
4642  ac_status=$?
4643  grep -v '^ *+' conftest.er1 >conftest.err
4644  rm -f conftest.er1
4645  cat conftest.err >&5
4646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647  (exit $ac_status); } && {
4648	 test -z "$ac_c_werror_flag" ||
4649	 test ! -s conftest.err
4650       } && test -s conftest$ac_exeext && {
4651	 test "$cross_compiling" = yes ||
4652	 $as_test_x conftest$ac_exeext
4653       }; then
4654  ac_cv_search_strerror=$ac_res
4655else
4656  $as_echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659
4660fi
4661
4662rm -rf conftest.dSYM
4663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4664      conftest$ac_exeext
4665  if test "${ac_cv_search_strerror+set}" = set; then
4666  break
4667fi
4668done
4669if test "${ac_cv_search_strerror+set}" = set; then
4670  :
4671else
4672  ac_cv_search_strerror=no
4673fi
4674rm conftest.$ac_ext
4675LIBS=$ac_func_search_save_LIBS
4676fi
4677{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4678$as_echo "$ac_cv_search_strerror" >&6; }
4679ac_res=$ac_cv_search_strerror
4680if test "$ac_res" != no; then
4681  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4682
4683fi
4684
4685CFLAGS=$CFLAGS
4686
4687CXXFLAGS=$CXXFLAGS
4688
4689ac_ext=c
4690ac_cpp='$CPP $CPPFLAGS'
4691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694if test -n "$ac_tool_prefix"; then
4695  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4696set dummy ${ac_tool_prefix}gcc; ac_word=$2
4697{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4698$as_echo_n "checking for $ac_word... " >&6; }
4699if test "${ac_cv_prog_CC+set}" = set; then
4700  $as_echo_n "(cached) " >&6
4701else
4702  if test -n "$CC"; then
4703  ac_cv_prog_CC="$CC" # Let the user override the test.
4704else
4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708  IFS=$as_save_IFS
4709  test -z "$as_dir" && as_dir=.
4710  for ac_exec_ext in '' $ac_executable_extensions; do
4711  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4713    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714    break 2
4715  fi
4716done
4717done
4718IFS=$as_save_IFS
4719
4720fi
4721fi
4722CC=$ac_cv_prog_CC
4723if test -n "$CC"; then
4724  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4725$as_echo "$CC" >&6; }
4726else
4727  { $as_echo "$as_me:$LINENO: result: no" >&5
4728$as_echo "no" >&6; }
4729fi
4730
4731
4732fi
4733if test -z "$ac_cv_prog_CC"; then
4734  ac_ct_CC=$CC
4735  # Extract the first word of "gcc", so it can be a program name with args.
4736set dummy gcc; ac_word=$2
4737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4738$as_echo_n "checking for $ac_word... " >&6; }
4739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4740  $as_echo_n "(cached) " >&6
4741else
4742  if test -n "$ac_ct_CC"; then
4743  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4744else
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748  IFS=$as_save_IFS
4749  test -z "$as_dir" && as_dir=.
4750  for ac_exec_ext in '' $ac_executable_extensions; do
4751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752    ac_cv_prog_ac_ct_CC="gcc"
4753    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754    break 2
4755  fi
4756done
4757done
4758IFS=$as_save_IFS
4759
4760fi
4761fi
4762ac_ct_CC=$ac_cv_prog_ac_ct_CC
4763if test -n "$ac_ct_CC"; then
4764  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4765$as_echo "$ac_ct_CC" >&6; }
4766else
4767  { $as_echo "$as_me:$LINENO: result: no" >&5
4768$as_echo "no" >&6; }
4769fi
4770
4771  if test "x$ac_ct_CC" = x; then
4772    CC=""
4773  else
4774    case $cross_compiling:$ac_tool_warned in
4775yes:)
4776{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778ac_tool_warned=yes ;;
4779esac
4780    CC=$ac_ct_CC
4781  fi
4782else
4783  CC="$ac_cv_prog_CC"
4784fi
4785
4786if test -z "$CC"; then
4787          if test -n "$ac_tool_prefix"; then
4788    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4789set dummy ${ac_tool_prefix}cc; ac_word=$2
4790{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4791$as_echo_n "checking for $ac_word... " >&6; }
4792if test "${ac_cv_prog_CC+set}" = set; then
4793  $as_echo_n "(cached) " >&6
4794else
4795  if test -n "$CC"; then
4796  ac_cv_prog_CC="$CC" # Let the user override the test.
4797else
4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801  IFS=$as_save_IFS
4802  test -z "$as_dir" && as_dir=.
4803  for ac_exec_ext in '' $ac_executable_extensions; do
4804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805    ac_cv_prog_CC="${ac_tool_prefix}cc"
4806    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807    break 2
4808  fi
4809done
4810done
4811IFS=$as_save_IFS
4812
4813fi
4814fi
4815CC=$ac_cv_prog_CC
4816if test -n "$CC"; then
4817  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4818$as_echo "$CC" >&6; }
4819else
4820  { $as_echo "$as_me:$LINENO: result: no" >&5
4821$as_echo "no" >&6; }
4822fi
4823
4824
4825  fi
4826fi
4827if test -z "$CC"; then
4828  # Extract the first word of "cc", so it can be a program name with args.
4829set dummy cc; ac_word=$2
4830{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4831$as_echo_n "checking for $ac_word... " >&6; }
4832if test "${ac_cv_prog_CC+set}" = set; then
4833  $as_echo_n "(cached) " >&6
4834else
4835  if test -n "$CC"; then
4836  ac_cv_prog_CC="$CC" # Let the user override the test.
4837else
4838  ac_prog_rejected=no
4839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840for as_dir in $PATH
4841do
4842  IFS=$as_save_IFS
4843  test -z "$as_dir" && as_dir=.
4844  for ac_exec_ext in '' $ac_executable_extensions; do
4845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4847       ac_prog_rejected=yes
4848       continue
4849     fi
4850    ac_cv_prog_CC="cc"
4851    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852    break 2
4853  fi
4854done
4855done
4856IFS=$as_save_IFS
4857
4858if test $ac_prog_rejected = yes; then
4859  # We found a bogon in the path, so make sure we never use it.
4860  set dummy $ac_cv_prog_CC
4861  shift
4862  if test $# != 0; then
4863    # We chose a different compiler from the bogus one.
4864    # However, it has the same basename, so the bogon will be chosen
4865    # first if we set CC to just the basename; use the full file name.
4866    shift
4867    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4868  fi
4869fi
4870fi
4871fi
4872CC=$ac_cv_prog_CC
4873if test -n "$CC"; then
4874  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4875$as_echo "$CC" >&6; }
4876else
4877  { $as_echo "$as_me:$LINENO: result: no" >&5
4878$as_echo "no" >&6; }
4879fi
4880
4881
4882fi
4883if test -z "$CC"; then
4884  if test -n "$ac_tool_prefix"; then
4885  for ac_prog in cl.exe
4886  do
4887    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4889{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4890$as_echo_n "checking for $ac_word... " >&6; }
4891if test "${ac_cv_prog_CC+set}" = set; then
4892  $as_echo_n "(cached) " >&6
4893else
4894  if test -n "$CC"; then
4895  ac_cv_prog_CC="$CC" # Let the user override the test.
4896else
4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900  IFS=$as_save_IFS
4901  test -z "$as_dir" && as_dir=.
4902  for ac_exec_ext in '' $ac_executable_extensions; do
4903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4905    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906    break 2
4907  fi
4908done
4909done
4910IFS=$as_save_IFS
4911
4912fi
4913fi
4914CC=$ac_cv_prog_CC
4915if test -n "$CC"; then
4916  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4917$as_echo "$CC" >&6; }
4918else
4919  { $as_echo "$as_me:$LINENO: result: no" >&5
4920$as_echo "no" >&6; }
4921fi
4922
4923
4924    test -n "$CC" && break
4925  done
4926fi
4927if test -z "$CC"; then
4928  ac_ct_CC=$CC
4929  for ac_prog in cl.exe
4930do
4931  # Extract the first word of "$ac_prog", so it can be a program name with args.
4932set dummy $ac_prog; ac_word=$2
4933{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4934$as_echo_n "checking for $ac_word... " >&6; }
4935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4936  $as_echo_n "(cached) " >&6
4937else
4938  if test -n "$ac_ct_CC"; then
4939  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4940else
4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944  IFS=$as_save_IFS
4945  test -z "$as_dir" && as_dir=.
4946  for ac_exec_ext in '' $ac_executable_extensions; do
4947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948    ac_cv_prog_ac_ct_CC="$ac_prog"
4949    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4950    break 2
4951  fi
4952done
4953done
4954IFS=$as_save_IFS
4955
4956fi
4957fi
4958ac_ct_CC=$ac_cv_prog_ac_ct_CC
4959if test -n "$ac_ct_CC"; then
4960  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4961$as_echo "$ac_ct_CC" >&6; }
4962else
4963  { $as_echo "$as_me:$LINENO: result: no" >&5
4964$as_echo "no" >&6; }
4965fi
4966
4967
4968  test -n "$ac_ct_CC" && break
4969done
4970
4971  if test "x$ac_ct_CC" = x; then
4972    CC=""
4973  else
4974    case $cross_compiling:$ac_tool_warned in
4975yes:)
4976{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4978ac_tool_warned=yes ;;
4979esac
4980    CC=$ac_ct_CC
4981  fi
4982fi
4983
4984fi
4985
4986
4987test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4989{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4990See \`config.log' for more details." >&5
4991$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4992See \`config.log' for more details." >&2;}
4993   { (exit 1); exit 1; }; }; }
4994
4995# Provide some information about the compiler.
4996$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4997set X $ac_compile
4998ac_compiler=$2
4999{ (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5007  ac_status=$?
5008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009  (exit $ac_status); }
5010{ (ac_try="$ac_compiler -v >&5"
5011case "(($ac_try" in
5012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013  *) ac_try_echo=$ac_try;;
5014esac
5015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5016$as_echo "$ac_try_echo") >&5
5017  (eval "$ac_compiler -v >&5") 2>&5
5018  ac_status=$?
5019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); }
5021{ (ac_try="$ac_compiler -V >&5"
5022case "(($ac_try" in
5023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024  *) ac_try_echo=$ac_try;;
5025esac
5026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5027$as_echo "$ac_try_echo") >&5
5028  (eval "$ac_compiler -V >&5") 2>&5
5029  ac_status=$?
5030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031  (exit $ac_status); }
5032
5033{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5034$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5035if test "${ac_cv_c_compiler_gnu+set}" = set; then
5036  $as_echo_n "(cached) " >&6
5037else
5038  cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h.  */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h.  */
5044
5045int
5046main ()
5047{
5048#ifndef __GNUC__
5049       choke me
5050#endif
5051
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056rm -f conftest.$ac_objext
5057if { (ac_try="$ac_compile"
5058case "(($ac_try" in
5059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060  *) ac_try_echo=$ac_try;;
5061esac
5062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5063$as_echo "$ac_try_echo") >&5
5064  (eval "$ac_compile") 2>conftest.er1
5065  ac_status=$?
5066  grep -v '^ *+' conftest.er1 >conftest.err
5067  rm -f conftest.er1
5068  cat conftest.err >&5
5069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070  (exit $ac_status); } && {
5071	 test -z "$ac_c_werror_flag" ||
5072	 test ! -s conftest.err
5073       } && test -s conftest.$ac_objext; then
5074  ac_compiler_gnu=yes
5075else
5076  $as_echo "$as_me: failed program was:" >&5
5077sed 's/^/| /' conftest.$ac_ext >&5
5078
5079	ac_compiler_gnu=no
5080fi
5081
5082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083ac_cv_c_compiler_gnu=$ac_compiler_gnu
5084
5085fi
5086{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5087$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5088if test $ac_compiler_gnu = yes; then
5089  GCC=yes
5090else
5091  GCC=
5092fi
5093ac_test_CFLAGS=${CFLAGS+set}
5094ac_save_CFLAGS=$CFLAGS
5095{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5096$as_echo_n "checking whether $CC accepts -g... " >&6; }
5097if test "${ac_cv_prog_cc_g+set}" = set; then
5098  $as_echo_n "(cached) " >&6
5099else
5100  ac_save_c_werror_flag=$ac_c_werror_flag
5101   ac_c_werror_flag=yes
5102   ac_cv_prog_cc_g=no
5103   CFLAGS="-g"
5104   cat >conftest.$ac_ext <<_ACEOF
5105/* confdefs.h.  */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h.  */
5110
5111int
5112main ()
5113{
5114
5115  ;
5116  return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (ac_try="$ac_compile"
5121case "(($ac_try" in
5122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123  *) ac_try_echo=$ac_try;;
5124esac
5125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5126$as_echo "$ac_try_echo") >&5
5127  (eval "$ac_compile") 2>conftest.er1
5128  ac_status=$?
5129  grep -v '^ *+' conftest.er1 >conftest.err
5130  rm -f conftest.er1
5131  cat conftest.err >&5
5132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133  (exit $ac_status); } && {
5134	 test -z "$ac_c_werror_flag" ||
5135	 test ! -s conftest.err
5136       } && test -s conftest.$ac_objext; then
5137  ac_cv_prog_cc_g=yes
5138else
5139  $as_echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142	CFLAGS=""
5143      cat >conftest.$ac_ext <<_ACEOF
5144/* confdefs.h.  */
5145_ACEOF
5146cat confdefs.h >>conftest.$ac_ext
5147cat >>conftest.$ac_ext <<_ACEOF
5148/* end confdefs.h.  */
5149
5150int
5151main ()
5152{
5153
5154  ;
5155  return 0;
5156}
5157_ACEOF
5158rm -f conftest.$ac_objext
5159if { (ac_try="$ac_compile"
5160case "(($ac_try" in
5161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162  *) ac_try_echo=$ac_try;;
5163esac
5164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5165$as_echo "$ac_try_echo") >&5
5166  (eval "$ac_compile") 2>conftest.er1
5167  ac_status=$?
5168  grep -v '^ *+' conftest.er1 >conftest.err
5169  rm -f conftest.er1
5170  cat conftest.err >&5
5171  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172  (exit $ac_status); } && {
5173	 test -z "$ac_c_werror_flag" ||
5174	 test ! -s conftest.err
5175       } && test -s conftest.$ac_objext; then
5176  :
5177else
5178  $as_echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
5181	ac_c_werror_flag=$ac_save_c_werror_flag
5182	 CFLAGS="-g"
5183	 cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h.  */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h.  */
5189
5190int
5191main ()
5192{
5193
5194  ;
5195  return 0;
5196}
5197_ACEOF
5198rm -f conftest.$ac_objext
5199if { (ac_try="$ac_compile"
5200case "(($ac_try" in
5201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202  *) ac_try_echo=$ac_try;;
5203esac
5204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205$as_echo "$ac_try_echo") >&5
5206  (eval "$ac_compile") 2>conftest.er1
5207  ac_status=$?
5208  grep -v '^ *+' conftest.er1 >conftest.err
5209  rm -f conftest.er1
5210  cat conftest.err >&5
5211  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); } && {
5213	 test -z "$ac_c_werror_flag" ||
5214	 test ! -s conftest.err
5215       } && test -s conftest.$ac_objext; then
5216  ac_cv_prog_cc_g=yes
5217else
5218  $as_echo "$as_me: failed program was:" >&5
5219sed 's/^/| /' conftest.$ac_ext >&5
5220
5221
5222fi
5223
5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225fi
5226
5227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228fi
5229
5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231   ac_c_werror_flag=$ac_save_c_werror_flag
5232fi
5233{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5234$as_echo "$ac_cv_prog_cc_g" >&6; }
5235if test "$ac_test_CFLAGS" = set; then
5236  CFLAGS=$ac_save_CFLAGS
5237elif test $ac_cv_prog_cc_g = yes; then
5238  if test "$GCC" = yes; then
5239    CFLAGS="-g -O2"
5240  else
5241    CFLAGS="-g"
5242  fi
5243else
5244  if test "$GCC" = yes; then
5245    CFLAGS="-O2"
5246  else
5247    CFLAGS=
5248  fi
5249fi
5250{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5251$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5252if test "${ac_cv_prog_cc_c89+set}" = set; then
5253  $as_echo_n "(cached) " >&6
5254else
5255  ac_cv_prog_cc_c89=no
5256ac_save_CC=$CC
5257cat >conftest.$ac_ext <<_ACEOF
5258/* confdefs.h.  */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h.  */
5263#include <stdarg.h>
5264#include <stdio.h>
5265#include <sys/types.h>
5266#include <sys/stat.h>
5267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5268struct buf { int x; };
5269FILE * (*rcsopen) (struct buf *, struct stat *, int);
5270static char *e (p, i)
5271     char **p;
5272     int i;
5273{
5274  return p[i];
5275}
5276static char *f (char * (*g) (char **, int), char **p, ...)
5277{
5278  char *s;
5279  va_list v;
5280  va_start (v,p);
5281  s = g (p, va_arg (v,int));
5282  va_end (v);
5283  return s;
5284}
5285
5286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5287   function prototypes and stuff, but not '\xHH' hex character constants.
5288   These don't provoke an error unfortunately, instead are silently treated
5289   as 'x'.  The following induces an error, until -std is added to get
5290   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5291   array size at least.  It's necessary to write '\x00'==0 to get something
5292   that's true only with -std.  */
5293int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5294
5295/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5296   inside strings and character constants.  */
5297#define FOO(x) 'x'
5298int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5299
5300int test (int i, double x);
5301struct s1 {int (*f) (int a);};
5302struct s2 {int (*f) (double a);};
5303int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5304int argc;
5305char **argv;
5306int
5307main ()
5308{
5309return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5310  ;
5311  return 0;
5312}
5313_ACEOF
5314for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5315	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5316do
5317  CC="$ac_save_CC $ac_arg"
5318  rm -f conftest.$ac_objext
5319if { (ac_try="$ac_compile"
5320case "(($ac_try" in
5321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322  *) ac_try_echo=$ac_try;;
5323esac
5324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5325$as_echo "$ac_try_echo") >&5
5326  (eval "$ac_compile") 2>conftest.er1
5327  ac_status=$?
5328  grep -v '^ *+' conftest.er1 >conftest.err
5329  rm -f conftest.er1
5330  cat conftest.err >&5
5331  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332  (exit $ac_status); } && {
5333	 test -z "$ac_c_werror_flag" ||
5334	 test ! -s conftest.err
5335       } && test -s conftest.$ac_objext; then
5336  ac_cv_prog_cc_c89=$ac_arg
5337else
5338  $as_echo "$as_me: failed program was:" >&5
5339sed 's/^/| /' conftest.$ac_ext >&5
5340
5341
5342fi
5343
5344rm -f core conftest.err conftest.$ac_objext
5345  test "x$ac_cv_prog_cc_c89" != "xno" && break
5346done
5347rm -f conftest.$ac_ext
5348CC=$ac_save_CC
5349
5350fi
5351# AC_CACHE_VAL
5352case "x$ac_cv_prog_cc_c89" in
5353  x)
5354    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5355$as_echo "none needed" >&6; } ;;
5356  xno)
5357    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5358$as_echo "unsupported" >&6; } ;;
5359  *)
5360    CC="$CC $ac_cv_prog_cc_c89"
5361    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5362$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5363esac
5364
5365
5366ac_ext=c
5367ac_cpp='$CPP $CPPFLAGS'
5368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_c_compiler_gnu
5371
5372depcc="$CC"   am_compiler_list=
5373
5374{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5375$as_echo_n "checking dependency style of $depcc... " >&6; }
5376if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5377  $as_echo_n "(cached) " >&6
5378else
5379  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5380  # We make a subdir and do the tests there.  Otherwise we can end up
5381  # making bogus files that we don't know about and never remove.  For
5382  # instance it was reported that on HP-UX the gcc test will end up
5383  # making a dummy file named `D' -- because `-MD' means `put the output
5384  # in D'.
5385  mkdir conftest.dir
5386  # Copy depcomp to subdir because otherwise we won't find it if we're
5387  # using a relative directory.
5388  cp "$am_depcomp" conftest.dir
5389  cd conftest.dir
5390  # We will build objects and dependencies in a subdirectory because
5391  # it helps to detect inapplicable dependency modes.  For instance
5392  # both Tru64's cc and ICC support -MD to output dependencies as a
5393  # side effect of compilation, but ICC will put the dependencies in
5394  # the current directory while Tru64 will put them in the object
5395  # directory.
5396  mkdir sub
5397
5398  am_cv_CC_dependencies_compiler_type=none
5399  if test "$am_compiler_list" = ""; then
5400     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5401  fi
5402  for depmode in $am_compiler_list; do
5403    # Setup a source with many dependencies, because some compilers
5404    # like to wrap large dependency lists on column 80 (with \), and
5405    # we should not choose a depcomp mode which is confused by this.
5406    #
5407    # We need to recreate these files for each test, as the compiler may
5408    # overwrite some of them when testing with obscure command lines.
5409    # This happens at least with the AIX C compiler.
5410    : > sub/conftest.c
5411    for i in 1 2 3 4 5 6; do
5412      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5413      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5414      # Solaris 8's {/usr,}/bin/sh.
5415      touch sub/conftst$i.h
5416    done
5417    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5418
5419    case $depmode in
5420    nosideeffect)
5421      # after this tag, mechanisms are not by side-effect, so they'll
5422      # only be used when explicitly requested
5423      if test "x$enable_dependency_tracking" = xyes; then
5424	continue
5425      else
5426	break
5427      fi
5428      ;;
5429    none) break ;;
5430    esac
5431    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5432    # mode.  It turns out that the SunPro C++ compiler does not properly
5433    # handle `-M -o', and we need to detect this.
5434    if depmode=$depmode \
5435       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5436       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5437       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5438         >/dev/null 2>conftest.err &&
5439       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5440       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5441       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5442       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5443      # icc doesn't choke on unknown options, it will just issue warnings
5444      # or remarks (even with -Werror).  So we grep stderr for any message
5445      # that says an option was ignored or not supported.
5446      # When given -MP, icc 7.0 and 7.1 complain thusly:
5447      #   icc: Command line warning: ignoring option '-M'; no argument required
5448      # The diagnosis changed in icc 8.0:
5449      #   icc: Command line remark: option '-MP' not supported
5450      if (grep 'ignoring option' conftest.err ||
5451          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5452        am_cv_CC_dependencies_compiler_type=$depmode
5453        break
5454      fi
5455    fi
5456  done
5457
5458  cd ..
5459  rm -rf conftest.dir
5460else
5461  am_cv_CC_dependencies_compiler_type=none
5462fi
5463
5464fi
5465{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5466$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5467CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5468
5469 if
5470  test "x$enable_dependency_tracking" != xno \
5471  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5472  am__fastdepCC_TRUE=
5473  am__fastdepCC_FALSE='#'
5474else
5475  am__fastdepCC_TRUE='#'
5476  am__fastdepCC_FALSE=
5477fi
5478
5479
5480ac_ext=cpp
5481ac_cpp='$CXXCPP $CPPFLAGS'
5482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5485if test -z "$CXX"; then
5486  if test -n "$CCC"; then
5487    CXX=$CCC
5488  else
5489    if test -n "$ac_tool_prefix"; then
5490  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5491  do
5492    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5494{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5495$as_echo_n "checking for $ac_word... " >&6; }
5496if test "${ac_cv_prog_CXX+set}" = set; then
5497  $as_echo_n "(cached) " >&6
5498else
5499  if test -n "$CXX"; then
5500  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5501else
5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH
5504do
5505  IFS=$as_save_IFS
5506  test -z "$as_dir" && as_dir=.
5507  for ac_exec_ext in '' $ac_executable_extensions; do
5508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5510    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511    break 2
5512  fi
5513done
5514done
5515IFS=$as_save_IFS
5516
5517fi
5518fi
5519CXX=$ac_cv_prog_CXX
5520if test -n "$CXX"; then
5521  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5522$as_echo "$CXX" >&6; }
5523else
5524  { $as_echo "$as_me:$LINENO: result: no" >&5
5525$as_echo "no" >&6; }
5526fi
5527
5528
5529    test -n "$CXX" && break
5530  done
5531fi
5532if test -z "$CXX"; then
5533  ac_ct_CXX=$CXX
5534  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5535do
5536  # Extract the first word of "$ac_prog", so it can be a program name with args.
5537set dummy $ac_prog; ac_word=$2
5538{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5539$as_echo_n "checking for $ac_word... " >&6; }
5540if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5541  $as_echo_n "(cached) " >&6
5542else
5543  if test -n "$ac_ct_CXX"; then
5544  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5545else
5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549  IFS=$as_save_IFS
5550  test -z "$as_dir" && as_dir=.
5551  for ac_exec_ext in '' $ac_executable_extensions; do
5552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553    ac_cv_prog_ac_ct_CXX="$ac_prog"
5554    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555    break 2
5556  fi
5557done
5558done
5559IFS=$as_save_IFS
5560
5561fi
5562fi
5563ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5564if test -n "$ac_ct_CXX"; then
5565  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5566$as_echo "$ac_ct_CXX" >&6; }
5567else
5568  { $as_echo "$as_me:$LINENO: result: no" >&5
5569$as_echo "no" >&6; }
5570fi
5571
5572
5573  test -n "$ac_ct_CXX" && break
5574done
5575
5576  if test "x$ac_ct_CXX" = x; then
5577    CXX="g++"
5578  else
5579    case $cross_compiling:$ac_tool_warned in
5580yes:)
5581{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583ac_tool_warned=yes ;;
5584esac
5585    CXX=$ac_ct_CXX
5586  fi
5587fi
5588
5589  fi
5590fi
5591# Provide some information about the compiler.
5592$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5593set X $ac_compile
5594ac_compiler=$2
5595{ (ac_try="$ac_compiler --version >&5"
5596case "(($ac_try" in
5597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598  *) ac_try_echo=$ac_try;;
5599esac
5600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5601$as_echo "$ac_try_echo") >&5
5602  (eval "$ac_compiler --version >&5") 2>&5
5603  ac_status=$?
5604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605  (exit $ac_status); }
5606{ (ac_try="$ac_compiler -v >&5"
5607case "(($ac_try" in
5608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609  *) ac_try_echo=$ac_try;;
5610esac
5611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612$as_echo "$ac_try_echo") >&5
5613  (eval "$ac_compiler -v >&5") 2>&5
5614  ac_status=$?
5615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); }
5617{ (ac_try="$ac_compiler -V >&5"
5618case "(($ac_try" in
5619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620  *) ac_try_echo=$ac_try;;
5621esac
5622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5623$as_echo "$ac_try_echo") >&5
5624  (eval "$ac_compiler -V >&5") 2>&5
5625  ac_status=$?
5626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627  (exit $ac_status); }
5628
5629{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5630$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5631if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5632  $as_echo_n "(cached) " >&6
5633else
5634  cat >conftest.$ac_ext <<_ACEOF
5635/* confdefs.h.  */
5636_ACEOF
5637cat confdefs.h >>conftest.$ac_ext
5638cat >>conftest.$ac_ext <<_ACEOF
5639/* end confdefs.h.  */
5640
5641int
5642main ()
5643{
5644#ifndef __GNUC__
5645       choke me
5646#endif
5647
5648  ;
5649  return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext
5653if { (ac_try="$ac_compile"
5654case "(($ac_try" in
5655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656  *) ac_try_echo=$ac_try;;
5657esac
5658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5659$as_echo "$ac_try_echo") >&5
5660  (eval "$ac_compile") 2>conftest.er1
5661  ac_status=$?
5662  grep -v '^ *+' conftest.er1 >conftest.err
5663  rm -f conftest.er1
5664  cat conftest.err >&5
5665  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); } && {
5667	 test -z "$ac_cxx_werror_flag" ||
5668	 test ! -s conftest.err
5669       } && test -s conftest.$ac_objext; then
5670  ac_compiler_gnu=yes
5671else
5672  $as_echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675	ac_compiler_gnu=no
5676fi
5677
5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5680
5681fi
5682{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5683$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5684if test $ac_compiler_gnu = yes; then
5685  GXX=yes
5686else
5687  GXX=
5688fi
5689ac_test_CXXFLAGS=${CXXFLAGS+set}
5690ac_save_CXXFLAGS=$CXXFLAGS
5691{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5692$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5693if test "${ac_cv_prog_cxx_g+set}" = set; then
5694  $as_echo_n "(cached) " >&6
5695else
5696  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5697   ac_cxx_werror_flag=yes
5698   ac_cv_prog_cxx_g=no
5699   CXXFLAGS="-g"
5700   cat >conftest.$ac_ext <<_ACEOF
5701/* confdefs.h.  */
5702_ACEOF
5703cat confdefs.h >>conftest.$ac_ext
5704cat >>conftest.$ac_ext <<_ACEOF
5705/* end confdefs.h.  */
5706
5707int
5708main ()
5709{
5710
5711  ;
5712  return 0;
5713}
5714_ACEOF
5715rm -f conftest.$ac_objext
5716if { (ac_try="$ac_compile"
5717case "(($ac_try" in
5718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719  *) ac_try_echo=$ac_try;;
5720esac
5721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5722$as_echo "$ac_try_echo") >&5
5723  (eval "$ac_compile") 2>conftest.er1
5724  ac_status=$?
5725  grep -v '^ *+' conftest.er1 >conftest.err
5726  rm -f conftest.er1
5727  cat conftest.err >&5
5728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); } && {
5730	 test -z "$ac_cxx_werror_flag" ||
5731	 test ! -s conftest.err
5732       } && test -s conftest.$ac_objext; then
5733  ac_cv_prog_cxx_g=yes
5734else
5735  $as_echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
5738	CXXFLAGS=""
5739      cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h.  */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h.  */
5745
5746int
5747main ()
5748{
5749
5750  ;
5751  return 0;
5752}
5753_ACEOF
5754rm -f conftest.$ac_objext
5755if { (ac_try="$ac_compile"
5756case "(($ac_try" in
5757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758  *) ac_try_echo=$ac_try;;
5759esac
5760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5761$as_echo "$ac_try_echo") >&5
5762  (eval "$ac_compile") 2>conftest.er1
5763  ac_status=$?
5764  grep -v '^ *+' conftest.er1 >conftest.err
5765  rm -f conftest.er1
5766  cat conftest.err >&5
5767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768  (exit $ac_status); } && {
5769	 test -z "$ac_cxx_werror_flag" ||
5770	 test ! -s conftest.err
5771       } && test -s conftest.$ac_objext; then
5772  :
5773else
5774  $as_echo "$as_me: failed program was:" >&5
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
5777	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5778	 CXXFLAGS="-g"
5779	 cat >conftest.$ac_ext <<_ACEOF
5780/* confdefs.h.  */
5781_ACEOF
5782cat confdefs.h >>conftest.$ac_ext
5783cat >>conftest.$ac_ext <<_ACEOF
5784/* end confdefs.h.  */
5785
5786int
5787main ()
5788{
5789
5790  ;
5791  return 0;
5792}
5793_ACEOF
5794rm -f conftest.$ac_objext
5795if { (ac_try="$ac_compile"
5796case "(($ac_try" in
5797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798  *) ac_try_echo=$ac_try;;
5799esac
5800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5801$as_echo "$ac_try_echo") >&5
5802  (eval "$ac_compile") 2>conftest.er1
5803  ac_status=$?
5804  grep -v '^ *+' conftest.er1 >conftest.err
5805  rm -f conftest.er1
5806  cat conftest.err >&5
5807  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808  (exit $ac_status); } && {
5809	 test -z "$ac_cxx_werror_flag" ||
5810	 test ! -s conftest.err
5811       } && test -s conftest.$ac_objext; then
5812  ac_cv_prog_cxx_g=yes
5813else
5814  $as_echo "$as_me: failed program was:" >&5
5815sed 's/^/| /' conftest.$ac_ext >&5
5816
5817
5818fi
5819
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821fi
5822
5823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824fi
5825
5826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5828fi
5829{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5830$as_echo "$ac_cv_prog_cxx_g" >&6; }
5831if test "$ac_test_CXXFLAGS" = set; then
5832  CXXFLAGS=$ac_save_CXXFLAGS
5833elif test $ac_cv_prog_cxx_g = yes; then
5834  if test "$GXX" = yes; then
5835    CXXFLAGS="-g -O2"
5836  else
5837    CXXFLAGS="-g"
5838  fi
5839else
5840  if test "$GXX" = yes; then
5841    CXXFLAGS="-O2"
5842  else
5843    CXXFLAGS=
5844  fi
5845fi
5846ac_ext=c
5847ac_cpp='$CPP $CPPFLAGS'
5848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850ac_compiler_gnu=$ac_cv_c_compiler_gnu
5851
5852depcc="$CXX"  am_compiler_list=
5853
5854{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5855$as_echo_n "checking dependency style of $depcc... " >&6; }
5856if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5857  $as_echo_n "(cached) " >&6
5858else
5859  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5860  # We make a subdir and do the tests there.  Otherwise we can end up
5861  # making bogus files that we don't know about and never remove.  For
5862  # instance it was reported that on HP-UX the gcc test will end up
5863  # making a dummy file named `D' -- because `-MD' means `put the output
5864  # in D'.
5865  mkdir conftest.dir
5866  # Copy depcomp to subdir because otherwise we won't find it if we're
5867  # using a relative directory.
5868  cp "$am_depcomp" conftest.dir
5869  cd conftest.dir
5870  # We will build objects and dependencies in a subdirectory because
5871  # it helps to detect inapplicable dependency modes.  For instance
5872  # both Tru64's cc and ICC support -MD to output dependencies as a
5873  # side effect of compilation, but ICC will put the dependencies in
5874  # the current directory while Tru64 will put them in the object
5875  # directory.
5876  mkdir sub
5877
5878  am_cv_CXX_dependencies_compiler_type=none
5879  if test "$am_compiler_list" = ""; then
5880     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5881  fi
5882  for depmode in $am_compiler_list; do
5883    # Setup a source with many dependencies, because some compilers
5884    # like to wrap large dependency lists on column 80 (with \), and
5885    # we should not choose a depcomp mode which is confused by this.
5886    #
5887    # We need to recreate these files for each test, as the compiler may
5888    # overwrite some of them when testing with obscure command lines.
5889    # This happens at least with the AIX C compiler.
5890    : > sub/conftest.c
5891    for i in 1 2 3 4 5 6; do
5892      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5893      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5894      # Solaris 8's {/usr,}/bin/sh.
5895      touch sub/conftst$i.h
5896    done
5897    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5898
5899    case $depmode in
5900    nosideeffect)
5901      # after this tag, mechanisms are not by side-effect, so they'll
5902      # only be used when explicitly requested
5903      if test "x$enable_dependency_tracking" = xyes; then
5904	continue
5905      else
5906	break
5907      fi
5908      ;;
5909    none) break ;;
5910    esac
5911    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5912    # mode.  It turns out that the SunPro C++ compiler does not properly
5913    # handle `-M -o', and we need to detect this.
5914    if depmode=$depmode \
5915       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5916       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5917       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5918         >/dev/null 2>conftest.err &&
5919       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5920       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5921       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5922       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5923      # icc doesn't choke on unknown options, it will just issue warnings
5924      # or remarks (even with -Werror).  So we grep stderr for any message
5925      # that says an option was ignored or not supported.
5926      # When given -MP, icc 7.0 and 7.1 complain thusly:
5927      #   icc: Command line warning: ignoring option '-M'; no argument required
5928      # The diagnosis changed in icc 8.0:
5929      #   icc: Command line remark: option '-MP' not supported
5930      if (grep 'ignoring option' conftest.err ||
5931          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5932        am_cv_CXX_dependencies_compiler_type=$depmode
5933        break
5934      fi
5935    fi
5936  done
5937
5938  cd ..
5939  rm -rf conftest.dir
5940else
5941  am_cv_CXX_dependencies_compiler_type=none
5942fi
5943
5944fi
5945{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5946$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5947CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5948
5949 if
5950  test "x$enable_dependency_tracking" != xno \
5951  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5952  am__fastdepCXX_TRUE=
5953  am__fastdepCXX_FALSE='#'
5954else
5955  am__fastdepCXX_TRUE='#'
5956  am__fastdepCXX_FALSE=
5957fi
5958
5959
5960ac_ext=c
5961ac_cpp='$CPP $CPPFLAGS'
5962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964ac_compiler_gnu=$ac_cv_c_compiler_gnu
5965if test -n "$ac_tool_prefix"; then
5966  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5967set dummy ${ac_tool_prefix}gcc; ac_word=$2
5968{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5969$as_echo_n "checking for $ac_word... " >&6; }
5970if test "${ac_cv_prog_CC+set}" = set; then
5971  $as_echo_n "(cached) " >&6
5972else
5973  if test -n "$CC"; then
5974  ac_cv_prog_CC="$CC" # Let the user override the test.
5975else
5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979  IFS=$as_save_IFS
5980  test -z "$as_dir" && as_dir=.
5981  for ac_exec_ext in '' $ac_executable_extensions; do
5982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5984    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985    break 2
5986  fi
5987done
5988done
5989IFS=$as_save_IFS
5990
5991fi
5992fi
5993CC=$ac_cv_prog_CC
5994if test -n "$CC"; then
5995  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5996$as_echo "$CC" >&6; }
5997else
5998  { $as_echo "$as_me:$LINENO: result: no" >&5
5999$as_echo "no" >&6; }
6000fi
6001
6002
6003fi
6004if test -z "$ac_cv_prog_CC"; then
6005  ac_ct_CC=$CC
6006  # Extract the first word of "gcc", so it can be a program name with args.
6007set dummy gcc; ac_word=$2
6008{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
6010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6011  $as_echo_n "(cached) " >&6
6012else
6013  if test -n "$ac_ct_CC"; then
6014  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019  IFS=$as_save_IFS
6020  test -z "$as_dir" && as_dir=.
6021  for ac_exec_ext in '' $ac_executable_extensions; do
6022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023    ac_cv_prog_ac_ct_CC="gcc"
6024    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025    break 2
6026  fi
6027done
6028done
6029IFS=$as_save_IFS
6030
6031fi
6032fi
6033ac_ct_CC=$ac_cv_prog_ac_ct_CC
6034if test -n "$ac_ct_CC"; then
6035  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6036$as_echo "$ac_ct_CC" >&6; }
6037else
6038  { $as_echo "$as_me:$LINENO: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
6041
6042  if test "x$ac_ct_CC" = x; then
6043    CC=""
6044  else
6045    case $cross_compiling:$ac_tool_warned in
6046yes:)
6047{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6049ac_tool_warned=yes ;;
6050esac
6051    CC=$ac_ct_CC
6052  fi
6053else
6054  CC="$ac_cv_prog_CC"
6055fi
6056
6057if test -z "$CC"; then
6058          if test -n "$ac_tool_prefix"; then
6059    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6060set dummy ${ac_tool_prefix}cc; ac_word=$2
6061{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6062$as_echo_n "checking for $ac_word... " >&6; }
6063if test "${ac_cv_prog_CC+set}" = set; then
6064  $as_echo_n "(cached) " >&6
6065else
6066  if test -n "$CC"; then
6067  ac_cv_prog_CC="$CC" # Let the user override the test.
6068else
6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070for as_dir in $PATH
6071do
6072  IFS=$as_save_IFS
6073  test -z "$as_dir" && as_dir=.
6074  for ac_exec_ext in '' $ac_executable_extensions; do
6075  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6076    ac_cv_prog_CC="${ac_tool_prefix}cc"
6077    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6078    break 2
6079  fi
6080done
6081done
6082IFS=$as_save_IFS
6083
6084fi
6085fi
6086CC=$ac_cv_prog_CC
6087if test -n "$CC"; then
6088  { $as_echo "$as_me:$LINENO: result: $CC" >&5
6089$as_echo "$CC" >&6; }
6090else
6091  { $as_echo "$as_me:$LINENO: result: no" >&5
6092$as_echo "no" >&6; }
6093fi
6094
6095
6096  fi
6097fi
6098if test -z "$CC"; then
6099  # Extract the first word of "cc", so it can be a program name with args.
6100set dummy cc; ac_word=$2
6101{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
6103if test "${ac_cv_prog_CC+set}" = set; then
6104  $as_echo_n "(cached) " >&6
6105else
6106  if test -n "$CC"; then
6107  ac_cv_prog_CC="$CC" # Let the user override the test.
6108else
6109  ac_prog_rejected=no
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113  IFS=$as_save_IFS
6114  test -z "$as_dir" && as_dir=.
6115  for ac_exec_ext in '' $ac_executable_extensions; do
6116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6118       ac_prog_rejected=yes
6119       continue
6120     fi
6121    ac_cv_prog_CC="cc"
6122    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123    break 2
6124  fi
6125done
6126done
6127IFS=$as_save_IFS
6128
6129if test $ac_prog_rejected = yes; then
6130  # We found a bogon in the path, so make sure we never use it.
6131  set dummy $ac_cv_prog_CC
6132  shift
6133  if test $# != 0; then
6134    # We chose a different compiler from the bogus one.
6135    # However, it has the same basename, so the bogon will be chosen
6136    # first if we set CC to just the basename; use the full file name.
6137    shift
6138    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6139  fi
6140fi
6141fi
6142fi
6143CC=$ac_cv_prog_CC
6144if test -n "$CC"; then
6145  { $as_echo "$as_me:$LINENO: result: $CC" >&5
6146$as_echo "$CC" >&6; }
6147else
6148  { $as_echo "$as_me:$LINENO: result: no" >&5
6149$as_echo "no" >&6; }
6150fi
6151
6152
6153fi
6154if test -z "$CC"; then
6155  if test -n "$ac_tool_prefix"; then
6156  for ac_prog in cl.exe
6157  do
6158    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6160{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6161$as_echo_n "checking for $ac_word... " >&6; }
6162if test "${ac_cv_prog_CC+set}" = set; then
6163  $as_echo_n "(cached) " >&6
6164else
6165  if test -n "$CC"; then
6166  ac_cv_prog_CC="$CC" # Let the user override the test.
6167else
6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169for as_dir in $PATH
6170do
6171  IFS=$as_save_IFS
6172  test -z "$as_dir" && as_dir=.
6173  for ac_exec_ext in '' $ac_executable_extensions; do
6174  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6176    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177    break 2
6178  fi
6179done
6180done
6181IFS=$as_save_IFS
6182
6183fi
6184fi
6185CC=$ac_cv_prog_CC
6186if test -n "$CC"; then
6187  { $as_echo "$as_me:$LINENO: result: $CC" >&5
6188$as_echo "$CC" >&6; }
6189else
6190  { $as_echo "$as_me:$LINENO: result: no" >&5
6191$as_echo "no" >&6; }
6192fi
6193
6194
6195    test -n "$CC" && break
6196  done
6197fi
6198if test -z "$CC"; then
6199  ac_ct_CC=$CC
6200  for ac_prog in cl.exe
6201do
6202  # Extract the first word of "$ac_prog", so it can be a program name with args.
6203set dummy $ac_prog; ac_word=$2
6204{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6205$as_echo_n "checking for $ac_word... " >&6; }
6206if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6207  $as_echo_n "(cached) " >&6
6208else
6209  if test -n "$ac_ct_CC"; then
6210  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6211else
6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215  IFS=$as_save_IFS
6216  test -z "$as_dir" && as_dir=.
6217  for ac_exec_ext in '' $ac_executable_extensions; do
6218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219    ac_cv_prog_ac_ct_CC="$ac_prog"
6220    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221    break 2
6222  fi
6223done
6224done
6225IFS=$as_save_IFS
6226
6227fi
6228fi
6229ac_ct_CC=$ac_cv_prog_ac_ct_CC
6230if test -n "$ac_ct_CC"; then
6231  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6232$as_echo "$ac_ct_CC" >&6; }
6233else
6234  { $as_echo "$as_me:$LINENO: result: no" >&5
6235$as_echo "no" >&6; }
6236fi
6237
6238
6239  test -n "$ac_ct_CC" && break
6240done
6241
6242  if test "x$ac_ct_CC" = x; then
6243    CC=""
6244  else
6245    case $cross_compiling:$ac_tool_warned in
6246yes:)
6247{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249ac_tool_warned=yes ;;
6250esac
6251    CC=$ac_ct_CC
6252  fi
6253fi
6254
6255fi
6256
6257
6258test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6260{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6261See \`config.log' for more details." >&5
6262$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
6263See \`config.log' for more details." >&2;}
6264   { (exit 1); exit 1; }; }; }
6265
6266# Provide some information about the compiler.
6267$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
6268set X $ac_compile
6269ac_compiler=$2
6270{ (ac_try="$ac_compiler --version >&5"
6271case "(($ac_try" in
6272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273  *) ac_try_echo=$ac_try;;
6274esac
6275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6276$as_echo "$ac_try_echo") >&5
6277  (eval "$ac_compiler --version >&5") 2>&5
6278  ac_status=$?
6279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280  (exit $ac_status); }
6281{ (ac_try="$ac_compiler -v >&5"
6282case "(($ac_try" in
6283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284  *) ac_try_echo=$ac_try;;
6285esac
6286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6287$as_echo "$ac_try_echo") >&5
6288  (eval "$ac_compiler -v >&5") 2>&5
6289  ac_status=$?
6290  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291  (exit $ac_status); }
6292{ (ac_try="$ac_compiler -V >&5"
6293case "(($ac_try" in
6294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295  *) ac_try_echo=$ac_try;;
6296esac
6297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6298$as_echo "$ac_try_echo") >&5
6299  (eval "$ac_compiler -V >&5") 2>&5
6300  ac_status=$?
6301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302  (exit $ac_status); }
6303
6304{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6305$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6306if test "${ac_cv_c_compiler_gnu+set}" = set; then
6307  $as_echo_n "(cached) " >&6
6308else
6309  cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h.  */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h.  */
6315
6316int
6317main ()
6318{
6319#ifndef __GNUC__
6320       choke me
6321#endif
6322
6323  ;
6324  return 0;
6325}
6326_ACEOF
6327rm -f conftest.$ac_objext
6328if { (ac_try="$ac_compile"
6329case "(($ac_try" in
6330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331  *) ac_try_echo=$ac_try;;
6332esac
6333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6334$as_echo "$ac_try_echo") >&5
6335  (eval "$ac_compile") 2>conftest.er1
6336  ac_status=$?
6337  grep -v '^ *+' conftest.er1 >conftest.err
6338  rm -f conftest.er1
6339  cat conftest.err >&5
6340  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341  (exit $ac_status); } && {
6342	 test -z "$ac_c_werror_flag" ||
6343	 test ! -s conftest.err
6344       } && test -s conftest.$ac_objext; then
6345  ac_compiler_gnu=yes
6346else
6347  $as_echo "$as_me: failed program was:" >&5
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
6350	ac_compiler_gnu=no
6351fi
6352
6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354ac_cv_c_compiler_gnu=$ac_compiler_gnu
6355
6356fi
6357{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6358$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6359if test $ac_compiler_gnu = yes; then
6360  GCC=yes
6361else
6362  GCC=
6363fi
6364ac_test_CFLAGS=${CFLAGS+set}
6365ac_save_CFLAGS=$CFLAGS
6366{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6367$as_echo_n "checking whether $CC accepts -g... " >&6; }
6368if test "${ac_cv_prog_cc_g+set}" = set; then
6369  $as_echo_n "(cached) " >&6
6370else
6371  ac_save_c_werror_flag=$ac_c_werror_flag
6372   ac_c_werror_flag=yes
6373   ac_cv_prog_cc_g=no
6374   CFLAGS="-g"
6375   cat >conftest.$ac_ext <<_ACEOF
6376/* confdefs.h.  */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
6380/* end confdefs.h.  */
6381
6382int
6383main ()
6384{
6385
6386  ;
6387  return 0;
6388}
6389_ACEOF
6390rm -f conftest.$ac_objext
6391if { (ac_try="$ac_compile"
6392case "(($ac_try" in
6393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394  *) ac_try_echo=$ac_try;;
6395esac
6396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6397$as_echo "$ac_try_echo") >&5
6398  (eval "$ac_compile") 2>conftest.er1
6399  ac_status=$?
6400  grep -v '^ *+' conftest.er1 >conftest.err
6401  rm -f conftest.er1
6402  cat conftest.err >&5
6403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404  (exit $ac_status); } && {
6405	 test -z "$ac_c_werror_flag" ||
6406	 test ! -s conftest.err
6407       } && test -s conftest.$ac_objext; then
6408  ac_cv_prog_cc_g=yes
6409else
6410  $as_echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413	CFLAGS=""
6414      cat >conftest.$ac_ext <<_ACEOF
6415/* confdefs.h.  */
6416_ACEOF
6417cat confdefs.h >>conftest.$ac_ext
6418cat >>conftest.$ac_ext <<_ACEOF
6419/* end confdefs.h.  */
6420
6421int
6422main ()
6423{
6424
6425  ;
6426  return 0;
6427}
6428_ACEOF
6429rm -f conftest.$ac_objext
6430if { (ac_try="$ac_compile"
6431case "(($ac_try" in
6432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433  *) ac_try_echo=$ac_try;;
6434esac
6435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6436$as_echo "$ac_try_echo") >&5
6437  (eval "$ac_compile") 2>conftest.er1
6438  ac_status=$?
6439  grep -v '^ *+' conftest.er1 >conftest.err
6440  rm -f conftest.er1
6441  cat conftest.err >&5
6442  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); } && {
6444	 test -z "$ac_c_werror_flag" ||
6445	 test ! -s conftest.err
6446       } && test -s conftest.$ac_objext; then
6447  :
6448else
6449  $as_echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452	ac_c_werror_flag=$ac_save_c_werror_flag
6453	 CFLAGS="-g"
6454	 cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h.  */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h.  */
6460
6461int
6462main ()
6463{
6464
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469rm -f conftest.$ac_objext
6470if { (ac_try="$ac_compile"
6471case "(($ac_try" in
6472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473  *) ac_try_echo=$ac_try;;
6474esac
6475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6476$as_echo "$ac_try_echo") >&5
6477  (eval "$ac_compile") 2>conftest.er1
6478  ac_status=$?
6479  grep -v '^ *+' conftest.er1 >conftest.err
6480  rm -f conftest.er1
6481  cat conftest.err >&5
6482  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483  (exit $ac_status); } && {
6484	 test -z "$ac_c_werror_flag" ||
6485	 test ! -s conftest.err
6486       } && test -s conftest.$ac_objext; then
6487  ac_cv_prog_cc_g=yes
6488else
6489  $as_echo "$as_me: failed program was:" >&5
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492
6493fi
6494
6495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496fi
6497
6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499fi
6500
6501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502   ac_c_werror_flag=$ac_save_c_werror_flag
6503fi
6504{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6505$as_echo "$ac_cv_prog_cc_g" >&6; }
6506if test "$ac_test_CFLAGS" = set; then
6507  CFLAGS=$ac_save_CFLAGS
6508elif test $ac_cv_prog_cc_g = yes; then
6509  if test "$GCC" = yes; then
6510    CFLAGS="-g -O2"
6511  else
6512    CFLAGS="-g"
6513  fi
6514else
6515  if test "$GCC" = yes; then
6516    CFLAGS="-O2"
6517  else
6518    CFLAGS=
6519  fi
6520fi
6521{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6522$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6523if test "${ac_cv_prog_cc_c89+set}" = set; then
6524  $as_echo_n "(cached) " >&6
6525else
6526  ac_cv_prog_cc_c89=no
6527ac_save_CC=$CC
6528cat >conftest.$ac_ext <<_ACEOF
6529/* confdefs.h.  */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h.  */
6534#include <stdarg.h>
6535#include <stdio.h>
6536#include <sys/types.h>
6537#include <sys/stat.h>
6538/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6539struct buf { int x; };
6540FILE * (*rcsopen) (struct buf *, struct stat *, int);
6541static char *e (p, i)
6542     char **p;
6543     int i;
6544{
6545  return p[i];
6546}
6547static char *f (char * (*g) (char **, int), char **p, ...)
6548{
6549  char *s;
6550  va_list v;
6551  va_start (v,p);
6552  s = g (p, va_arg (v,int));
6553  va_end (v);
6554  return s;
6555}
6556
6557/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6558   function prototypes and stuff, but not '\xHH' hex character constants.
6559   These don't provoke an error unfortunately, instead are silently treated
6560   as 'x'.  The following induces an error, until -std is added to get
6561   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6562   array size at least.  It's necessary to write '\x00'==0 to get something
6563   that's true only with -std.  */
6564int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6565
6566/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6567   inside strings and character constants.  */
6568#define FOO(x) 'x'
6569int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6570
6571int test (int i, double x);
6572struct s1 {int (*f) (int a);};
6573struct s2 {int (*f) (double a);};
6574int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6575int argc;
6576char **argv;
6577int
6578main ()
6579{
6580return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6581  ;
6582  return 0;
6583}
6584_ACEOF
6585for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6586	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6587do
6588  CC="$ac_save_CC $ac_arg"
6589  rm -f conftest.$ac_objext
6590if { (ac_try="$ac_compile"
6591case "(($ac_try" in
6592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593  *) ac_try_echo=$ac_try;;
6594esac
6595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6596$as_echo "$ac_try_echo") >&5
6597  (eval "$ac_compile") 2>conftest.er1
6598  ac_status=$?
6599  grep -v '^ *+' conftest.er1 >conftest.err
6600  rm -f conftest.er1
6601  cat conftest.err >&5
6602  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603  (exit $ac_status); } && {
6604	 test -z "$ac_c_werror_flag" ||
6605	 test ! -s conftest.err
6606       } && test -s conftest.$ac_objext; then
6607  ac_cv_prog_cc_c89=$ac_arg
6608else
6609  $as_echo "$as_me: failed program was:" >&5
6610sed 's/^/| /' conftest.$ac_ext >&5
6611
6612
6613fi
6614
6615rm -f core conftest.err conftest.$ac_objext
6616  test "x$ac_cv_prog_cc_c89" != "xno" && break
6617done
6618rm -f conftest.$ac_ext
6619CC=$ac_save_CC
6620
6621fi
6622# AC_CACHE_VAL
6623case "x$ac_cv_prog_cc_c89" in
6624  x)
6625    { $as_echo "$as_me:$LINENO: result: none needed" >&5
6626$as_echo "none needed" >&6; } ;;
6627  xno)
6628    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6629$as_echo "unsupported" >&6; } ;;
6630  *)
6631    CC="$CC $ac_cv_prog_cc_c89"
6632    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6633$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6634esac
6635
6636
6637ac_ext=c
6638ac_cpp='$CPP $CPPFLAGS'
6639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642
6643depcc="$CC"   am_compiler_list=
6644
6645{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6646$as_echo_n "checking dependency style of $depcc... " >&6; }
6647if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6648  $as_echo_n "(cached) " >&6
6649else
6650  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6651  # We make a subdir and do the tests there.  Otherwise we can end up
6652  # making bogus files that we don't know about and never remove.  For
6653  # instance it was reported that on HP-UX the gcc test will end up
6654  # making a dummy file named `D' -- because `-MD' means `put the output
6655  # in D'.
6656  mkdir conftest.dir
6657  # Copy depcomp to subdir because otherwise we won't find it if we're
6658  # using a relative directory.
6659  cp "$am_depcomp" conftest.dir
6660  cd conftest.dir
6661  # We will build objects and dependencies in a subdirectory because
6662  # it helps to detect inapplicable dependency modes.  For instance
6663  # both Tru64's cc and ICC support -MD to output dependencies as a
6664  # side effect of compilation, but ICC will put the dependencies in
6665  # the current directory while Tru64 will put them in the object
6666  # directory.
6667  mkdir sub
6668
6669  am_cv_CC_dependencies_compiler_type=none
6670  if test "$am_compiler_list" = ""; then
6671     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6672  fi
6673  for depmode in $am_compiler_list; do
6674    # Setup a source with many dependencies, because some compilers
6675    # like to wrap large dependency lists on column 80 (with \), and
6676    # we should not choose a depcomp mode which is confused by this.
6677    #
6678    # We need to recreate these files for each test, as the compiler may
6679    # overwrite some of them when testing with obscure command lines.
6680    # This happens at least with the AIX C compiler.
6681    : > sub/conftest.c
6682    for i in 1 2 3 4 5 6; do
6683      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6684      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6685      # Solaris 8's {/usr,}/bin/sh.
6686      touch sub/conftst$i.h
6687    done
6688    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6689
6690    case $depmode in
6691    nosideeffect)
6692      # after this tag, mechanisms are not by side-effect, so they'll
6693      # only be used when explicitly requested
6694      if test "x$enable_dependency_tracking" = xyes; then
6695	continue
6696      else
6697	break
6698      fi
6699      ;;
6700    none) break ;;
6701    esac
6702    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6703    # mode.  It turns out that the SunPro C++ compiler does not properly
6704    # handle `-M -o', and we need to detect this.
6705    if depmode=$depmode \
6706       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6707       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6708       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6709         >/dev/null 2>conftest.err &&
6710       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6711       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6712       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6713       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6714      # icc doesn't choke on unknown options, it will just issue warnings
6715      # or remarks (even with -Werror).  So we grep stderr for any message
6716      # that says an option was ignored or not supported.
6717      # When given -MP, icc 7.0 and 7.1 complain thusly:
6718      #   icc: Command line warning: ignoring option '-M'; no argument required
6719      # The diagnosis changed in icc 8.0:
6720      #   icc: Command line remark: option '-MP' not supported
6721      if (grep 'ignoring option' conftest.err ||
6722          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6723        am_cv_CC_dependencies_compiler_type=$depmode
6724        break
6725      fi
6726    fi
6727  done
6728
6729  cd ..
6730  rm -rf conftest.dir
6731else
6732  am_cv_CC_dependencies_compiler_type=none
6733fi
6734
6735fi
6736{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6737$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6738CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6739
6740 if
6741  test "x$enable_dependency_tracking" != xno \
6742  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6743  am__fastdepCC_TRUE=
6744  am__fastdepCC_FALSE='#'
6745else
6746  am__fastdepCC_TRUE='#'
6747  am__fastdepCC_FALSE=
6748fi
6749
6750
6751
6752am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6753
6754{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6755$as_echo_n "checking for ANSI C header files... " >&6; }
6756if test "${ac_cv_header_stdc+set}" = set; then
6757  $as_echo_n "(cached) " >&6
6758else
6759  cat >conftest.$ac_ext <<_ACEOF
6760/* confdefs.h.  */
6761_ACEOF
6762cat confdefs.h >>conftest.$ac_ext
6763cat >>conftest.$ac_ext <<_ACEOF
6764/* end confdefs.h.  */
6765#include <stdlib.h>
6766#include <stdarg.h>
6767#include <string.h>
6768#include <float.h>
6769
6770int
6771main ()
6772{
6773
6774  ;
6775  return 0;
6776}
6777_ACEOF
6778rm -f conftest.$ac_objext
6779if { (ac_try="$ac_compile"
6780case "(($ac_try" in
6781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782  *) ac_try_echo=$ac_try;;
6783esac
6784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6785$as_echo "$ac_try_echo") >&5
6786  (eval "$ac_compile") 2>conftest.er1
6787  ac_status=$?
6788  grep -v '^ *+' conftest.er1 >conftest.err
6789  rm -f conftest.er1
6790  cat conftest.err >&5
6791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792  (exit $ac_status); } && {
6793	 test -z "$ac_c_werror_flag" ||
6794	 test ! -s conftest.err
6795       } && test -s conftest.$ac_objext; then
6796  ac_cv_header_stdc=yes
6797else
6798  $as_echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801	ac_cv_header_stdc=no
6802fi
6803
6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805
6806if test $ac_cv_header_stdc = yes; then
6807  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6808  cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h.  */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h.  */
6814#include <string.h>
6815
6816_ACEOF
6817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818  $EGREP "memchr" >/dev/null 2>&1; then
6819  :
6820else
6821  ac_cv_header_stdc=no
6822fi
6823rm -f conftest*
6824
6825fi
6826
6827if test $ac_cv_header_stdc = yes; then
6828  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6829  cat >conftest.$ac_ext <<_ACEOF
6830/* confdefs.h.  */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h.  */
6835#include <stdlib.h>
6836
6837_ACEOF
6838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839  $EGREP "free" >/dev/null 2>&1; then
6840  :
6841else
6842  ac_cv_header_stdc=no
6843fi
6844rm -f conftest*
6845
6846fi
6847
6848if test $ac_cv_header_stdc = yes; then
6849  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6850  if test "$cross_compiling" = yes; then
6851  :
6852else
6853  cat >conftest.$ac_ext <<_ACEOF
6854/* confdefs.h.  */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h.  */
6859#include <ctype.h>
6860#include <stdlib.h>
6861#if ((' ' & 0x0FF) == 0x020)
6862# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6863# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6864#else
6865# define ISLOWER(c) \
6866		   (('a' <= (c) && (c) <= 'i') \
6867		     || ('j' <= (c) && (c) <= 'r') \
6868		     || ('s' <= (c) && (c) <= 'z'))
6869# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6870#endif
6871
6872#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6873int
6874main ()
6875{
6876  int i;
6877  for (i = 0; i < 256; i++)
6878    if (XOR (islower (i), ISLOWER (i))
6879	|| toupper (i) != TOUPPER (i))
6880      return 2;
6881  return 0;
6882}
6883_ACEOF
6884rm -f conftest$ac_exeext
6885if { (ac_try="$ac_link"
6886case "(($ac_try" in
6887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888  *) ac_try_echo=$ac_try;;
6889esac
6890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6891$as_echo "$ac_try_echo") >&5
6892  (eval "$ac_link") 2>&5
6893  ac_status=$?
6894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6896  { (case "(($ac_try" in
6897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898  *) ac_try_echo=$ac_try;;
6899esac
6900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6901$as_echo "$ac_try_echo") >&5
6902  (eval "$ac_try") 2>&5
6903  ac_status=$?
6904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905  (exit $ac_status); }; }; then
6906  :
6907else
6908  $as_echo "$as_me: program exited with status $ac_status" >&5
6909$as_echo "$as_me: failed program was:" >&5
6910sed 's/^/| /' conftest.$ac_ext >&5
6911
6912( exit $ac_status )
6913ac_cv_header_stdc=no
6914fi
6915rm -rf conftest.dSYM
6916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6917fi
6918
6919
6920fi
6921fi
6922{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6923$as_echo "$ac_cv_header_stdc" >&6; }
6924if test $ac_cv_header_stdc = yes; then
6925
6926cat >>confdefs.h <<\_ACEOF
6927#define STDC_HEADERS 1
6928_ACEOF
6929
6930fi
6931
6932case `pwd` in
6933  *\ * | *\	*)
6934    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6935$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6936esac
6937
6938
6939
6940macro_version='2.2.6'
6941macro_revision='1.3012'
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955ltmain="$ac_aux_dir/ltmain.sh"
6956
6957# Make sure we can run config.sub.
6958$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6959  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6960$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6961   { (exit 1); exit 1; }; }
6962
6963{ $as_echo "$as_me:$LINENO: checking build system type" >&5
6964$as_echo_n "checking build system type... " >&6; }
6965if test "${ac_cv_build+set}" = set; then
6966  $as_echo_n "(cached) " >&6
6967else
6968  ac_build_alias=$build_alias
6969test "x$ac_build_alias" = x &&
6970  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6971test "x$ac_build_alias" = x &&
6972  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6973$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6974   { (exit 1); exit 1; }; }
6975ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6976  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6977$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6978   { (exit 1); exit 1; }; }
6979
6980fi
6981{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6982$as_echo "$ac_cv_build" >&6; }
6983case $ac_cv_build in
6984*-*-*) ;;
6985*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6986$as_echo "$as_me: error: invalid value of canonical build" >&2;}
6987   { (exit 1); exit 1; }; };;
6988esac
6989build=$ac_cv_build
6990ac_save_IFS=$IFS; IFS='-'
6991set x $ac_cv_build
6992shift
6993build_cpu=$1
6994build_vendor=$2
6995shift; shift
6996# Remember, the first character of IFS is used to create $*,
6997# except with old shells:
6998build_os=$*
6999IFS=$ac_save_IFS
7000case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7001
7002
7003{ $as_echo "$as_me:$LINENO: checking host system type" >&5
7004$as_echo_n "checking host system type... " >&6; }
7005if test "${ac_cv_host+set}" = set; then
7006  $as_echo_n "(cached) " >&6
7007else
7008  if test "x$host_alias" = x; then
7009  ac_cv_host=$ac_cv_build
7010else
7011  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7012    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
7013$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
7014   { (exit 1); exit 1; }; }
7015fi
7016
7017fi
7018{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7019$as_echo "$ac_cv_host" >&6; }
7020case $ac_cv_host in
7021*-*-*) ;;
7022*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
7023$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7024   { (exit 1); exit 1; }; };;
7025esac
7026host=$ac_cv_host
7027ac_save_IFS=$IFS; IFS='-'
7028set x $ac_cv_host
7029shift
7030host_cpu=$1
7031host_vendor=$2
7032shift; shift
7033# Remember, the first character of IFS is used to create $*,
7034# except with old shells:
7035host_os=$*
7036IFS=$ac_save_IFS
7037case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7038
7039
7040{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7041$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7042if test "${ac_cv_path_SED+set}" = set; then
7043  $as_echo_n "(cached) " >&6
7044else
7045            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7046     for ac_i in 1 2 3 4 5 6 7; do
7047       ac_script="$ac_script$as_nl$ac_script"
7048     done
7049     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7050     $as_unset ac_script || ac_script=
7051     if test -z "$SED"; then
7052  ac_path_SED_found=false
7053  # Loop through the user's path and test for each of PROGNAME-LIST
7054  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057  IFS=$as_save_IFS
7058  test -z "$as_dir" && as_dir=.
7059  for ac_prog in sed gsed; do
7060    for ac_exec_ext in '' $ac_executable_extensions; do
7061      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7062      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7063# Check for GNU ac_path_SED and select it if it is found.
7064  # Check for GNU $ac_path_SED
7065case `"$ac_path_SED" --version 2>&1` in
7066*GNU*)
7067  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7068*)
7069  ac_count=0
7070  $as_echo_n 0123456789 >"conftest.in"
7071  while :
7072  do
7073    cat "conftest.in" "conftest.in" >"conftest.tmp"
7074    mv "conftest.tmp" "conftest.in"
7075    cp "conftest.in" "conftest.nl"
7076    $as_echo '' >> "conftest.nl"
7077    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7078    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7079    ac_count=`expr $ac_count + 1`
7080    if test $ac_count -gt ${ac_path_SED_max-0}; then
7081      # Best one so far, save it but keep looking for a better one
7082      ac_cv_path_SED="$ac_path_SED"
7083      ac_path_SED_max=$ac_count
7084    fi
7085    # 10*(2^10) chars as input seems more than enough
7086    test $ac_count -gt 10 && break
7087  done
7088  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7089esac
7090
7091      $ac_path_SED_found && break 3
7092    done
7093  done
7094done
7095IFS=$as_save_IFS
7096  if test -z "$ac_cv_path_SED"; then
7097    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
7098$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
7099   { (exit 1); exit 1; }; }
7100  fi
7101else
7102  ac_cv_path_SED=$SED
7103fi
7104
7105fi
7106{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7107$as_echo "$ac_cv_path_SED" >&6; }
7108 SED="$ac_cv_path_SED"
7109  rm -f conftest.sed
7110
7111test -z "$SED" && SED=sed
7112Xsed="$SED -e 1s/^X//"
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7125$as_echo_n "checking for fgrep... " >&6; }
7126if test "${ac_cv_path_FGREP+set}" = set; then
7127  $as_echo_n "(cached) " >&6
7128else
7129  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7130   then ac_cv_path_FGREP="$GREP -F"
7131   else
7132     if test -z "$FGREP"; then
7133  ac_path_FGREP_found=false
7134  # Loop through the user's path and test for each of PROGNAME-LIST
7135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7137do
7138  IFS=$as_save_IFS
7139  test -z "$as_dir" && as_dir=.
7140  for ac_prog in fgrep; do
7141    for ac_exec_ext in '' $ac_executable_extensions; do
7142      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7143      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7144# Check for GNU ac_path_FGREP and select it if it is found.
7145  # Check for GNU $ac_path_FGREP
7146case `"$ac_path_FGREP" --version 2>&1` in
7147*GNU*)
7148  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7149*)
7150  ac_count=0
7151  $as_echo_n 0123456789 >"conftest.in"
7152  while :
7153  do
7154    cat "conftest.in" "conftest.in" >"conftest.tmp"
7155    mv "conftest.tmp" "conftest.in"
7156    cp "conftest.in" "conftest.nl"
7157    $as_echo 'FGREP' >> "conftest.nl"
7158    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7159    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7160    ac_count=`expr $ac_count + 1`
7161    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7162      # Best one so far, save it but keep looking for a better one
7163      ac_cv_path_FGREP="$ac_path_FGREP"
7164      ac_path_FGREP_max=$ac_count
7165    fi
7166    # 10*(2^10) chars as input seems more than enough
7167    test $ac_count -gt 10 && break
7168  done
7169  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7170esac
7171
7172      $ac_path_FGREP_found && break 3
7173    done
7174  done
7175done
7176IFS=$as_save_IFS
7177  if test -z "$ac_cv_path_FGREP"; then
7178    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7179$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7180   { (exit 1); exit 1; }; }
7181  fi
7182else
7183  ac_cv_path_FGREP=$FGREP
7184fi
7185
7186   fi
7187fi
7188{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7189$as_echo "$ac_cv_path_FGREP" >&6; }
7190 FGREP="$ac_cv_path_FGREP"
7191
7192
7193test -z "$GREP" && GREP=grep
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213# Check whether --with-gnu-ld was given.
7214if test "${with_gnu_ld+set}" = set; then
7215  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7216else
7217  with_gnu_ld=no
7218fi
7219
7220ac_prog=ld
7221if test "$GCC" = yes; then
7222  # Check if gcc -print-prog-name=ld gives a path.
7223  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7224$as_echo_n "checking for ld used by $CC... " >&6; }
7225  case $host in
7226  *-*-mingw*)
7227    # gcc leaves a trailing carriage return which upsets mingw
7228    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7229  *)
7230    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7231  esac
7232  case $ac_prog in
7233    # Accept absolute paths.
7234    [\\/]* | ?:[\\/]*)
7235      re_direlt='/[^/][^/]*/\.\./'
7236      # Canonicalize the pathname of ld
7237      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7238      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7239	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7240      done
7241      test -z "$LD" && LD="$ac_prog"
7242      ;;
7243  "")
7244    # If it fails, then pretend we aren't using GCC.
7245    ac_prog=ld
7246    ;;
7247  *)
7248    # If it is relative, then search for the first ld in PATH.
7249    with_gnu_ld=unknown
7250    ;;
7251  esac
7252elif test "$with_gnu_ld" = yes; then
7253  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7254$as_echo_n "checking for GNU ld... " >&6; }
7255else
7256  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7257$as_echo_n "checking for non-GNU ld... " >&6; }
7258fi
7259if test "${lt_cv_path_LD+set}" = set; then
7260  $as_echo_n "(cached) " >&6
7261else
7262  if test -z "$LD"; then
7263  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7264  for ac_dir in $PATH; do
7265    IFS="$lt_save_ifs"
7266    test -z "$ac_dir" && ac_dir=.
7267    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7268      lt_cv_path_LD="$ac_dir/$ac_prog"
7269      # Check to see if the program is GNU ld.  I'd rather use --version,
7270      # but apparently some variants of GNU ld only accept -v.
7271      # Break only if it was the GNU/non-GNU ld that we prefer.
7272      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7273      *GNU* | *'with BFD'*)
7274	test "$with_gnu_ld" != no && break
7275	;;
7276      *)
7277	test "$with_gnu_ld" != yes && break
7278	;;
7279      esac
7280    fi
7281  done
7282  IFS="$lt_save_ifs"
7283else
7284  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7285fi
7286fi
7287
7288LD="$lt_cv_path_LD"
7289if test -n "$LD"; then
7290  { $as_echo "$as_me:$LINENO: result: $LD" >&5
7291$as_echo "$LD" >&6; }
7292else
7293  { $as_echo "$as_me:$LINENO: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7297$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7298   { (exit 1); exit 1; }; }
7299{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7300$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7301if test "${lt_cv_prog_gnu_ld+set}" = set; then
7302  $as_echo_n "(cached) " >&6
7303else
7304  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7305case `$LD -v 2>&1 </dev/null` in
7306*GNU* | *'with BFD'*)
7307  lt_cv_prog_gnu_ld=yes
7308  ;;
7309*)
7310  lt_cv_prog_gnu_ld=no
7311  ;;
7312esac
7313fi
7314{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7315$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7316with_gnu_ld=$lt_cv_prog_gnu_ld
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7327$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7328if test "${lt_cv_path_NM+set}" = set; then
7329  $as_echo_n "(cached) " >&6
7330else
7331  if test -n "$NM"; then
7332  # Let the user override the test.
7333  lt_cv_path_NM="$NM"
7334else
7335  lt_nm_to_check="${ac_tool_prefix}nm"
7336  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7337    lt_nm_to_check="$lt_nm_to_check nm"
7338  fi
7339  for lt_tmp_nm in $lt_nm_to_check; do
7340    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7341    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7342      IFS="$lt_save_ifs"
7343      test -z "$ac_dir" && ac_dir=.
7344      tmp_nm="$ac_dir/$lt_tmp_nm"
7345      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7346	# Check to see if the nm accepts a BSD-compat flag.
7347	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7348	#   nm: unknown option "B" ignored
7349	# Tru64's nm complains that /dev/null is an invalid object file
7350	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7351	*/dev/null* | *'Invalid file or object type'*)
7352	  lt_cv_path_NM="$tmp_nm -B"
7353	  break
7354	  ;;
7355	*)
7356	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7357	  */dev/null*)
7358	    lt_cv_path_NM="$tmp_nm -p"
7359	    break
7360	    ;;
7361	  *)
7362	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7363	    continue # so that we can try to find one that supports BSD flags
7364	    ;;
7365	  esac
7366	  ;;
7367	esac
7368      fi
7369    done
7370    IFS="$lt_save_ifs"
7371  done
7372  : ${lt_cv_path_NM=no}
7373fi
7374fi
7375{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7376$as_echo "$lt_cv_path_NM" >&6; }
7377if test "$lt_cv_path_NM" != "no"; then
7378  NM="$lt_cv_path_NM"
7379else
7380  # Didn't find any BSD compatible name lister, look for dumpbin.
7381  if test -n "$ac_tool_prefix"; then
7382  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7383  do
7384    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7385set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7386{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7387$as_echo_n "checking for $ac_word... " >&6; }
7388if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7389  $as_echo_n "(cached) " >&6
7390else
7391  if test -n "$DUMPBIN"; then
7392  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397  IFS=$as_save_IFS
7398  test -z "$as_dir" && as_dir=.
7399  for ac_exec_ext in '' $ac_executable_extensions; do
7400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7402    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403    break 2
7404  fi
7405done
7406done
7407IFS=$as_save_IFS
7408
7409fi
7410fi
7411DUMPBIN=$ac_cv_prog_DUMPBIN
7412if test -n "$DUMPBIN"; then
7413  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7414$as_echo "$DUMPBIN" >&6; }
7415else
7416  { $as_echo "$as_me:$LINENO: result: no" >&5
7417$as_echo "no" >&6; }
7418fi
7419
7420
7421    test -n "$DUMPBIN" && break
7422  done
7423fi
7424if test -z "$DUMPBIN"; then
7425  ac_ct_DUMPBIN=$DUMPBIN
7426  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7427do
7428  # Extract the first word of "$ac_prog", so it can be a program name with args.
7429set dummy $ac_prog; ac_word=$2
7430{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7431$as_echo_n "checking for $ac_word... " >&6; }
7432if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7433  $as_echo_n "(cached) " >&6
7434else
7435  if test -n "$ac_ct_DUMPBIN"; then
7436  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7437else
7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441  IFS=$as_save_IFS
7442  test -z "$as_dir" && as_dir=.
7443  for ac_exec_ext in '' $ac_executable_extensions; do
7444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7445    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7446    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447    break 2
7448  fi
7449done
7450done
7451IFS=$as_save_IFS
7452
7453fi
7454fi
7455ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7456if test -n "$ac_ct_DUMPBIN"; then
7457  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7458$as_echo "$ac_ct_DUMPBIN" >&6; }
7459else
7460  { $as_echo "$as_me:$LINENO: result: no" >&5
7461$as_echo "no" >&6; }
7462fi
7463
7464
7465  test -n "$ac_ct_DUMPBIN" && break
7466done
7467
7468  if test "x$ac_ct_DUMPBIN" = x; then
7469    DUMPBIN=":"
7470  else
7471    case $cross_compiling:$ac_tool_warned in
7472yes:)
7473{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475ac_tool_warned=yes ;;
7476esac
7477    DUMPBIN=$ac_ct_DUMPBIN
7478  fi
7479fi
7480
7481
7482  if test "$DUMPBIN" != ":"; then
7483    NM="$DUMPBIN"
7484  fi
7485fi
7486test -z "$NM" && NM=nm
7487
7488
7489
7490
7491
7492
7493{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7494$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7495if test "${lt_cv_nm_interface+set}" = set; then
7496  $as_echo_n "(cached) " >&6
7497else
7498  lt_cv_nm_interface="BSD nm"
7499  echo "int some_variable = 0;" > conftest.$ac_ext
7500  (eval echo "\"\$as_me:7500: $ac_compile\"" >&5)
7501  (eval "$ac_compile" 2>conftest.err)
7502  cat conftest.err >&5
7503  (eval echo "\"\$as_me:7503: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7504  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7505  cat conftest.err >&5
7506  (eval echo "\"\$as_me:7506: output\"" >&5)
7507  cat conftest.out >&5
7508  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7509    lt_cv_nm_interface="MS dumpbin"
7510  fi
7511  rm -f conftest*
7512fi
7513{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7514$as_echo "$lt_cv_nm_interface" >&6; }
7515
7516{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7517$as_echo_n "checking whether ln -s works... " >&6; }
7518LN_S=$as_ln_s
7519if test "$LN_S" = "ln -s"; then
7520  { $as_echo "$as_me:$LINENO: result: yes" >&5
7521$as_echo "yes" >&6; }
7522else
7523  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7524$as_echo "no, using $LN_S" >&6; }
7525fi
7526
7527# find the maximum length of command line arguments
7528{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7529$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7530if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7531  $as_echo_n "(cached) " >&6
7532else
7533    i=0
7534  teststring="ABCD"
7535
7536  case $build_os in
7537  msdosdjgpp*)
7538    # On DJGPP, this test can blow up pretty badly due to problems in libc
7539    # (any single argument exceeding 2000 bytes causes a buffer overrun
7540    # during glob expansion).  Even if it were fixed, the result of this
7541    # check would be larger than it should be.
7542    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7543    ;;
7544
7545  gnu*)
7546    # Under GNU Hurd, this test is not required because there is
7547    # no limit to the length of command line arguments.
7548    # Libtool will interpret -1 as no limit whatsoever
7549    lt_cv_sys_max_cmd_len=-1;
7550    ;;
7551
7552  cygwin* | mingw* | cegcc*)
7553    # On Win9x/ME, this test blows up -- it succeeds, but takes
7554    # about 5 minutes as the teststring grows exponentially.
7555    # Worse, since 9x/ME are not pre-emptively multitasking,
7556    # you end up with a "frozen" computer, even though with patience
7557    # the test eventually succeeds (with a max line length of 256k).
7558    # Instead, let's just punt: use the minimum linelength reported by
7559    # all of the supported platforms: 8192 (on NT/2K/XP).
7560    lt_cv_sys_max_cmd_len=8192;
7561    ;;
7562
7563  amigaos*)
7564    # On AmigaOS with pdksh, this test takes hours, literally.
7565    # So we just punt and use a minimum line length of 8192.
7566    lt_cv_sys_max_cmd_len=8192;
7567    ;;
7568
7569  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7570    # This has been around since 386BSD, at least.  Likely further.
7571    if test -x /sbin/sysctl; then
7572      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7573    elif test -x /usr/sbin/sysctl; then
7574      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7575    else
7576      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7577    fi
7578    # And add a safety zone
7579    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7580    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7581    ;;
7582
7583  interix*)
7584    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7585    lt_cv_sys_max_cmd_len=196608
7586    ;;
7587
7588  osf*)
7589    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7590    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7591    # nice to cause kernel panics so lets avoid the loop below.
7592    # First set a reasonable default.
7593    lt_cv_sys_max_cmd_len=16384
7594    #
7595    if test -x /sbin/sysconfig; then
7596      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7597        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7598      esac
7599    fi
7600    ;;
7601  sco3.2v5*)
7602    lt_cv_sys_max_cmd_len=102400
7603    ;;
7604  sysv5* | sco5v6* | sysv4.2uw2*)
7605    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7606    if test -n "$kargmax"; then
7607      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7608    else
7609      lt_cv_sys_max_cmd_len=32768
7610    fi
7611    ;;
7612  *)
7613    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7614    if test -n "$lt_cv_sys_max_cmd_len"; then
7615      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7616      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7617    else
7618      # Make teststring a little bigger before we do anything with it.
7619      # a 1K string should be a reasonable start.
7620      for i in 1 2 3 4 5 6 7 8 ; do
7621        teststring=$teststring$teststring
7622      done
7623      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7624      # If test is not a shell built-in, we'll probably end up computing a
7625      # maximum length that is only half of the actual maximum length, but
7626      # we can't tell.
7627      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7628	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7629	      test $i != 17 # 1/2 MB should be enough
7630      do
7631        i=`expr $i + 1`
7632        teststring=$teststring$teststring
7633      done
7634      # Only check the string length outside the loop.
7635      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7636      teststring=
7637      # Add a significant safety factor because C++ compilers can tack on
7638      # massive amounts of additional arguments before passing them to the
7639      # linker.  It appears as though 1/2 is a usable value.
7640      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7641    fi
7642    ;;
7643  esac
7644
7645fi
7646
7647if test -n $lt_cv_sys_max_cmd_len ; then
7648  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7649$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7650else
7651  { $as_echo "$as_me:$LINENO: result: none" >&5
7652$as_echo "none" >&6; }
7653fi
7654max_cmd_len=$lt_cv_sys_max_cmd_len
7655
7656
7657
7658
7659
7660
7661: ${CP="cp -f"}
7662: ${MV="mv -f"}
7663: ${RM="rm -f"}
7664
7665{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7666$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7667# Try some XSI features
7668xsi_shell=no
7669( _lt_dummy="a/b/c"
7670  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7671      = c,a/b,, \
7672    && eval 'test $(( 1 + 1 )) -eq 2 \
7673    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7674  && xsi_shell=yes
7675{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7676$as_echo "$xsi_shell" >&6; }
7677
7678
7679{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7680$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7681lt_shell_append=no
7682( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7683    >/dev/null 2>&1 \
7684  && lt_shell_append=yes
7685{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7686$as_echo "$lt_shell_append" >&6; }
7687
7688
7689if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7690  lt_unset=unset
7691else
7692  lt_unset=false
7693fi
7694
7695
7696
7697
7698
7699# test EBCDIC or ASCII
7700case `echo X|tr X '\101'` in
7701 A) # ASCII based system
7702    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7703  lt_SP2NL='tr \040 \012'
7704  lt_NL2SP='tr \015\012 \040\040'
7705  ;;
7706 *) # EBCDIC based system
7707  lt_SP2NL='tr \100 \n'
7708  lt_NL2SP='tr \r\n \100\100'
7709  ;;
7710esac
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7721$as_echo_n "checking for $LD option to reload object files... " >&6; }
7722if test "${lt_cv_ld_reload_flag+set}" = set; then
7723  $as_echo_n "(cached) " >&6
7724else
7725  lt_cv_ld_reload_flag='-r'
7726fi
7727{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7728$as_echo "$lt_cv_ld_reload_flag" >&6; }
7729reload_flag=$lt_cv_ld_reload_flag
7730case $reload_flag in
7731"" | " "*) ;;
7732*) reload_flag=" $reload_flag" ;;
7733esac
7734reload_cmds='$LD$reload_flag -o $output$reload_objs'
7735case $host_os in
7736  darwin*)
7737    if test "$GCC" = yes; then
7738      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7739    else
7740      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7741    fi
7742    ;;
7743esac
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753if test -n "$ac_tool_prefix"; then
7754  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7755set dummy ${ac_tool_prefix}objdump; ac_word=$2
7756{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7757$as_echo_n "checking for $ac_word... " >&6; }
7758if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7759  $as_echo_n "(cached) " >&6
7760else
7761  if test -n "$OBJDUMP"; then
7762  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7763else
7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767  IFS=$as_save_IFS
7768  test -z "$as_dir" && as_dir=.
7769  for ac_exec_ext in '' $ac_executable_extensions; do
7770  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7772    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773    break 2
7774  fi
7775done
7776done
7777IFS=$as_save_IFS
7778
7779fi
7780fi
7781OBJDUMP=$ac_cv_prog_OBJDUMP
7782if test -n "$OBJDUMP"; then
7783  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7784$as_echo "$OBJDUMP" >&6; }
7785else
7786  { $as_echo "$as_me:$LINENO: result: no" >&5
7787$as_echo "no" >&6; }
7788fi
7789
7790
7791fi
7792if test -z "$ac_cv_prog_OBJDUMP"; then
7793  ac_ct_OBJDUMP=$OBJDUMP
7794  # Extract the first word of "objdump", so it can be a program name with args.
7795set dummy objdump; ac_word=$2
7796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7797$as_echo_n "checking for $ac_word... " >&6; }
7798if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7799  $as_echo_n "(cached) " >&6
7800else
7801  if test -n "$ac_ct_OBJDUMP"; then
7802  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7803else
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807  IFS=$as_save_IFS
7808  test -z "$as_dir" && as_dir=.
7809  for ac_exec_ext in '' $ac_executable_extensions; do
7810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7812    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813    break 2
7814  fi
7815done
7816done
7817IFS=$as_save_IFS
7818
7819fi
7820fi
7821ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7822if test -n "$ac_ct_OBJDUMP"; then
7823  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7824$as_echo "$ac_ct_OBJDUMP" >&6; }
7825else
7826  { $as_echo "$as_me:$LINENO: result: no" >&5
7827$as_echo "no" >&6; }
7828fi
7829
7830  if test "x$ac_ct_OBJDUMP" = x; then
7831    OBJDUMP="false"
7832  else
7833    case $cross_compiling:$ac_tool_warned in
7834yes:)
7835{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837ac_tool_warned=yes ;;
7838esac
7839    OBJDUMP=$ac_ct_OBJDUMP
7840  fi
7841else
7842  OBJDUMP="$ac_cv_prog_OBJDUMP"
7843fi
7844
7845test -z "$OBJDUMP" && OBJDUMP=objdump
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7856$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7857if test "${lt_cv_deplibs_check_method+set}" = set; then
7858  $as_echo_n "(cached) " >&6
7859else
7860  lt_cv_file_magic_cmd='$MAGIC_CMD'
7861lt_cv_file_magic_test_file=
7862lt_cv_deplibs_check_method='unknown'
7863# Need to set the preceding variable on all platforms that support
7864# interlibrary dependencies.
7865# 'none' -- dependencies not supported.
7866# `unknown' -- same as none, but documents that we really don't know.
7867# 'pass_all' -- all dependencies passed with no checks.
7868# 'test_compile' -- check by making test program.
7869# 'file_magic [[regex]]' -- check by looking for files in library path
7870# which responds to the $file_magic_cmd with a given extended regex.
7871# If you have `file' or equivalent on your system and you're not sure
7872# whether `pass_all' will *always* work, you probably want this one.
7873
7874case $host_os in
7875aix[4-9]*)
7876  lt_cv_deplibs_check_method=pass_all
7877  ;;
7878
7879beos*)
7880  lt_cv_deplibs_check_method=pass_all
7881  ;;
7882
7883bsdi[45]*)
7884  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7885  lt_cv_file_magic_cmd='/usr/bin/file -L'
7886  lt_cv_file_magic_test_file=/shlib/libc.so
7887  ;;
7888
7889cygwin*)
7890  # func_win32_libid is a shell function defined in ltmain.sh
7891  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7892  lt_cv_file_magic_cmd='func_win32_libid'
7893  ;;
7894
7895mingw* | pw32*)
7896  # Base MSYS/MinGW do not provide the 'file' command needed by
7897  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7898  # unless we find 'file', for example because we are cross-compiling.
7899  if ( file / ) >/dev/null 2>&1; then
7900    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7901    lt_cv_file_magic_cmd='func_win32_libid'
7902  else
7903    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7904    lt_cv_file_magic_cmd='$OBJDUMP -f'
7905  fi
7906  ;;
7907
7908cegcc)
7909  # use the weaker test based on 'objdump'. See mingw*.
7910  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7911  lt_cv_file_magic_cmd='$OBJDUMP -f'
7912  ;;
7913
7914darwin* | rhapsody*)
7915  lt_cv_deplibs_check_method=pass_all
7916  ;;
7917
7918freebsd* | dragonfly*)
7919  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7920    case $host_cpu in
7921    i*86 )
7922      # Not sure whether the presence of OpenBSD here was a mistake.
7923      # Let's accept both of them until this is cleared up.
7924      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7925      lt_cv_file_magic_cmd=/usr/bin/file
7926      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7927      ;;
7928    esac
7929  else
7930    lt_cv_deplibs_check_method=pass_all
7931  fi
7932  ;;
7933
7934gnu*)
7935  lt_cv_deplibs_check_method=pass_all
7936  ;;
7937
7938hpux10.20* | hpux11*)
7939  lt_cv_file_magic_cmd=/usr/bin/file
7940  case $host_cpu in
7941  ia64*)
7942    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7943    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7944    ;;
7945  hppa*64*)
7946    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]'
7947    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7948    ;;
7949  *)
7950    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7951    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7952    ;;
7953  esac
7954  ;;
7955
7956interix[3-9]*)
7957  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7958  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7959  ;;
7960
7961irix5* | irix6* | nonstopux*)
7962  case $LD in
7963  *-32|*"-32 ") libmagic=32-bit;;
7964  *-n32|*"-n32 ") libmagic=N32;;
7965  *-64|*"-64 ") libmagic=64-bit;;
7966  *) libmagic=never-match;;
7967  esac
7968  lt_cv_deplibs_check_method=pass_all
7969  ;;
7970
7971# This must be Linux ELF.
7972linux* | k*bsd*-gnu)
7973  lt_cv_deplibs_check_method=pass_all
7974  ;;
7975
7976netbsd* | netbsdelf*-gnu)
7977  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7978    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7979  else
7980    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7981  fi
7982  ;;
7983
7984newos6*)
7985  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7986  lt_cv_file_magic_cmd=/usr/bin/file
7987  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7988  ;;
7989
7990*nto* | *qnx*)
7991  lt_cv_deplibs_check_method=pass_all
7992  ;;
7993
7994openbsd*)
7995  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7996    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7997  else
7998    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7999  fi
8000  ;;
8001
8002osf3* | osf4* | osf5*)
8003  lt_cv_deplibs_check_method=pass_all
8004  ;;
8005
8006rdos*)
8007  lt_cv_deplibs_check_method=pass_all
8008  ;;
8009
8010solaris*)
8011  lt_cv_deplibs_check_method=pass_all
8012  ;;
8013
8014sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8015  lt_cv_deplibs_check_method=pass_all
8016  ;;
8017
8018sysv4 | sysv4.3*)
8019  case $host_vendor in
8020  motorola)
8021    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]'
8022    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8023    ;;
8024  ncr)
8025    lt_cv_deplibs_check_method=pass_all
8026    ;;
8027  sequent)
8028    lt_cv_file_magic_cmd='/bin/file'
8029    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8030    ;;
8031  sni)
8032    lt_cv_file_magic_cmd='/bin/file'
8033    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8034    lt_cv_file_magic_test_file=/lib/libc.so
8035    ;;
8036  siemens)
8037    lt_cv_deplibs_check_method=pass_all
8038    ;;
8039  pc)
8040    lt_cv_deplibs_check_method=pass_all
8041    ;;
8042  esac
8043  ;;
8044
8045tpf*)
8046  lt_cv_deplibs_check_method=pass_all
8047  ;;
8048esac
8049
8050fi
8051{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8052$as_echo "$lt_cv_deplibs_check_method" >&6; }
8053file_magic_cmd=$lt_cv_file_magic_cmd
8054deplibs_check_method=$lt_cv_deplibs_check_method
8055test -z "$deplibs_check_method" && deplibs_check_method=unknown
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068if test -n "$ac_tool_prefix"; then
8069  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8070set dummy ${ac_tool_prefix}ar; ac_word=$2
8071{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8072$as_echo_n "checking for $ac_word... " >&6; }
8073if test "${ac_cv_prog_AR+set}" = set; then
8074  $as_echo_n "(cached) " >&6
8075else
8076  if test -n "$AR"; then
8077  ac_cv_prog_AR="$AR" # Let the user override the test.
8078else
8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082  IFS=$as_save_IFS
8083  test -z "$as_dir" && as_dir=.
8084  for ac_exec_ext in '' $ac_executable_extensions; do
8085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8086    ac_cv_prog_AR="${ac_tool_prefix}ar"
8087    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8088    break 2
8089  fi
8090done
8091done
8092IFS=$as_save_IFS
8093
8094fi
8095fi
8096AR=$ac_cv_prog_AR
8097if test -n "$AR"; then
8098  { $as_echo "$as_me:$LINENO: result: $AR" >&5
8099$as_echo "$AR" >&6; }
8100else
8101  { $as_echo "$as_me:$LINENO: result: no" >&5
8102$as_echo "no" >&6; }
8103fi
8104
8105
8106fi
8107if test -z "$ac_cv_prog_AR"; then
8108  ac_ct_AR=$AR
8109  # Extract the first word of "ar", so it can be a program name with args.
8110set dummy ar; ac_word=$2
8111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8112$as_echo_n "checking for $ac_word... " >&6; }
8113if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8114  $as_echo_n "(cached) " >&6
8115else
8116  if test -n "$ac_ct_AR"; then
8117  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8118else
8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120for as_dir in $PATH
8121do
8122  IFS=$as_save_IFS
8123  test -z "$as_dir" && as_dir=.
8124  for ac_exec_ext in '' $ac_executable_extensions; do
8125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126    ac_cv_prog_ac_ct_AR="ar"
8127    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8128    break 2
8129  fi
8130done
8131done
8132IFS=$as_save_IFS
8133
8134fi
8135fi
8136ac_ct_AR=$ac_cv_prog_ac_ct_AR
8137if test -n "$ac_ct_AR"; then
8138  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8139$as_echo "$ac_ct_AR" >&6; }
8140else
8141  { $as_echo "$as_me:$LINENO: result: no" >&5
8142$as_echo "no" >&6; }
8143fi
8144
8145  if test "x$ac_ct_AR" = x; then
8146    AR="false"
8147  else
8148    case $cross_compiling:$ac_tool_warned in
8149yes:)
8150{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8152ac_tool_warned=yes ;;
8153esac
8154    AR=$ac_ct_AR
8155  fi
8156else
8157  AR="$ac_cv_prog_AR"
8158fi
8159
8160test -z "$AR" && AR=ar
8161test -z "$AR_FLAGS" && AR_FLAGS=cru
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173if test -n "$ac_tool_prefix"; then
8174  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8175set dummy ${ac_tool_prefix}strip; ac_word=$2
8176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8177$as_echo_n "checking for $ac_word... " >&6; }
8178if test "${ac_cv_prog_STRIP+set}" = set; then
8179  $as_echo_n "(cached) " >&6
8180else
8181  if test -n "$STRIP"; then
8182  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8183else
8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187  IFS=$as_save_IFS
8188  test -z "$as_dir" && as_dir=.
8189  for ac_exec_ext in '' $ac_executable_extensions; do
8190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8191    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8192    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193    break 2
8194  fi
8195done
8196done
8197IFS=$as_save_IFS
8198
8199fi
8200fi
8201STRIP=$ac_cv_prog_STRIP
8202if test -n "$STRIP"; then
8203  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8204$as_echo "$STRIP" >&6; }
8205else
8206  { $as_echo "$as_me:$LINENO: result: no" >&5
8207$as_echo "no" >&6; }
8208fi
8209
8210
8211fi
8212if test -z "$ac_cv_prog_STRIP"; then
8213  ac_ct_STRIP=$STRIP
8214  # Extract the first word of "strip", so it can be a program name with args.
8215set dummy strip; ac_word=$2
8216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8217$as_echo_n "checking for $ac_word... " >&6; }
8218if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8219  $as_echo_n "(cached) " >&6
8220else
8221  if test -n "$ac_ct_STRIP"; then
8222  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8223else
8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225for as_dir in $PATH
8226do
8227  IFS=$as_save_IFS
8228  test -z "$as_dir" && as_dir=.
8229  for ac_exec_ext in '' $ac_executable_extensions; do
8230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231    ac_cv_prog_ac_ct_STRIP="strip"
8232    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8233    break 2
8234  fi
8235done
8236done
8237IFS=$as_save_IFS
8238
8239fi
8240fi
8241ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8242if test -n "$ac_ct_STRIP"; then
8243  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8244$as_echo "$ac_ct_STRIP" >&6; }
8245else
8246  { $as_echo "$as_me:$LINENO: result: no" >&5
8247$as_echo "no" >&6; }
8248fi
8249
8250  if test "x$ac_ct_STRIP" = x; then
8251    STRIP=":"
8252  else
8253    case $cross_compiling:$ac_tool_warned in
8254yes:)
8255{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8257ac_tool_warned=yes ;;
8258esac
8259    STRIP=$ac_ct_STRIP
8260  fi
8261else
8262  STRIP="$ac_cv_prog_STRIP"
8263fi
8264
8265test -z "$STRIP" && STRIP=:
8266
8267
8268
8269
8270
8271
8272if test -n "$ac_tool_prefix"; then
8273  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8274set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8276$as_echo_n "checking for $ac_word... " >&6; }
8277if test "${ac_cv_prog_RANLIB+set}" = set; then
8278  $as_echo_n "(cached) " >&6
8279else
8280  if test -n "$RANLIB"; then
8281  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8282else
8283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284for as_dir in $PATH
8285do
8286  IFS=$as_save_IFS
8287  test -z "$as_dir" && as_dir=.
8288  for ac_exec_ext in '' $ac_executable_extensions; do
8289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8290    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8291    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8292    break 2
8293  fi
8294done
8295done
8296IFS=$as_save_IFS
8297
8298fi
8299fi
8300RANLIB=$ac_cv_prog_RANLIB
8301if test -n "$RANLIB"; then
8302  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8303$as_echo "$RANLIB" >&6; }
8304else
8305  { $as_echo "$as_me:$LINENO: result: no" >&5
8306$as_echo "no" >&6; }
8307fi
8308
8309
8310fi
8311if test -z "$ac_cv_prog_RANLIB"; then
8312  ac_ct_RANLIB=$RANLIB
8313  # Extract the first word of "ranlib", so it can be a program name with args.
8314set dummy ranlib; ac_word=$2
8315{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8316$as_echo_n "checking for $ac_word... " >&6; }
8317if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8318  $as_echo_n "(cached) " >&6
8319else
8320  if test -n "$ac_ct_RANLIB"; then
8321  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8322else
8323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324for as_dir in $PATH
8325do
8326  IFS=$as_save_IFS
8327  test -z "$as_dir" && as_dir=.
8328  for ac_exec_ext in '' $ac_executable_extensions; do
8329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8330    ac_cv_prog_ac_ct_RANLIB="ranlib"
8331    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8332    break 2
8333  fi
8334done
8335done
8336IFS=$as_save_IFS
8337
8338fi
8339fi
8340ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8341if test -n "$ac_ct_RANLIB"; then
8342  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8343$as_echo "$ac_ct_RANLIB" >&6; }
8344else
8345  { $as_echo "$as_me:$LINENO: result: no" >&5
8346$as_echo "no" >&6; }
8347fi
8348
8349  if test "x$ac_ct_RANLIB" = x; then
8350    RANLIB=":"
8351  else
8352    case $cross_compiling:$ac_tool_warned in
8353yes:)
8354{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8356ac_tool_warned=yes ;;
8357esac
8358    RANLIB=$ac_ct_RANLIB
8359  fi
8360else
8361  RANLIB="$ac_cv_prog_RANLIB"
8362fi
8363
8364test -z "$RANLIB" && RANLIB=:
8365
8366
8367
8368
8369
8370
8371# Determine commands to create old-style static archives.
8372old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8373old_postinstall_cmds='chmod 644 $oldlib'
8374old_postuninstall_cmds=
8375
8376if test -n "$RANLIB"; then
8377  case $host_os in
8378  openbsd*)
8379    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8380    ;;
8381  *)
8382    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8383    ;;
8384  esac
8385  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8386fi
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421# If no C compiler was specified, use CC.
8422LTCC=${LTCC-"$CC"}
8423
8424# If no C compiler flags were specified, use CFLAGS.
8425LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8426
8427# Allow CC to be a program name with arguments.
8428compiler=$CC
8429
8430
8431# Check for command to grab the raw symbol name followed by C symbol from nm.
8432{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8433$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8434if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8435  $as_echo_n "(cached) " >&6
8436else
8437
8438# These are sane defaults that work on at least a few old systems.
8439# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8440
8441# Character class describing NM global symbol codes.
8442symcode='[BCDEGRST]'
8443
8444# Regexp to match symbols that can be accessed directly from C.
8445sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8446
8447# Define system-specific variables.
8448case $host_os in
8449aix*)
8450  symcode='[BCDT]'
8451  ;;
8452cygwin* | mingw* | pw32* | cegcc*)
8453  symcode='[ABCDGISTW]'
8454  ;;
8455hpux*)
8456  if test "$host_cpu" = ia64; then
8457    symcode='[ABCDEGRST]'
8458  fi
8459  ;;
8460irix* | nonstopux*)
8461  symcode='[BCDEGRST]'
8462  ;;
8463osf*)
8464  symcode='[BCDEGQRST]'
8465  ;;
8466solaris*)
8467  symcode='[BDRT]'
8468  ;;
8469sco3.2v5*)
8470  symcode='[DT]'
8471  ;;
8472sysv4.2uw2*)
8473  symcode='[DT]'
8474  ;;
8475sysv5* | sco5v6* | unixware* | OpenUNIX*)
8476  symcode='[ABDT]'
8477  ;;
8478sysv4)
8479  symcode='[DFNSTU]'
8480  ;;
8481esac
8482
8483# If we're using GNU nm, then use its standard symbol codes.
8484case `$NM -V 2>&1` in
8485*GNU* | *'with BFD'*)
8486  symcode='[ABCDGIRSTW]' ;;
8487esac
8488
8489# Transform an extracted symbol line into a proper C declaration.
8490# Some systems (esp. on ia64) link data and code symbols differently,
8491# so use this general approach.
8492lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8493
8494# Transform an extracted symbol line into symbol name and symbol address
8495lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8496lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8497
8498# Handle CRLF in mingw tool chain
8499opt_cr=
8500case $build_os in
8501mingw*)
8502  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8503  ;;
8504esac
8505
8506# Try without a prefix underscore, then with it.
8507for ac_symprfx in "" "_"; do
8508
8509  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8510  symxfrm="\\1 $ac_symprfx\\2 \\2"
8511
8512  # Write the raw and C identifiers.
8513  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8514    # Fake it for dumpbin and say T for any non-static function
8515    # and D for any global variable.
8516    # Also find C++ and __fastcall symbols from MSVC++,
8517    # which start with @ or ?.
8518    lt_cv_sys_global_symbol_pipe="$AWK '"\
8519"     {last_section=section; section=\$ 3};"\
8520"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8521"     \$ 0!~/External *\|/{next};"\
8522"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8523"     {if(hide[section]) next};"\
8524"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8525"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8526"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8527"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8528"     ' prfx=^$ac_symprfx"
8529  else
8530    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8531  fi
8532
8533  # Check to see that the pipe works correctly.
8534  pipe_works=no
8535
8536  rm -f conftest*
8537  cat > conftest.$ac_ext <<_LT_EOF
8538#ifdef __cplusplus
8539extern "C" {
8540#endif
8541char nm_test_var;
8542void nm_test_func(void);
8543void nm_test_func(void){}
8544#ifdef __cplusplus
8545}
8546#endif
8547int main(){nm_test_var='a';nm_test_func();return(0);}
8548_LT_EOF
8549
8550  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551  (eval $ac_compile) 2>&5
8552  ac_status=$?
8553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554  (exit $ac_status); }; then
8555    # Now try to grab the symbols.
8556    nlist=conftest.nm
8557    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8558  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8559  ac_status=$?
8560  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561  (exit $ac_status); } && test -s "$nlist"; then
8562      # Try sorting and uniquifying the output.
8563      if sort "$nlist" | uniq > "$nlist"T; then
8564	mv -f "$nlist"T "$nlist"
8565      else
8566	rm -f "$nlist"T
8567      fi
8568
8569      # Make sure that we snagged all the symbols we need.
8570      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8571	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8572	  cat <<_LT_EOF > conftest.$ac_ext
8573#ifdef __cplusplus
8574extern "C" {
8575#endif
8576
8577_LT_EOF
8578	  # Now generate the symbol file.
8579	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8580
8581	  cat <<_LT_EOF >> conftest.$ac_ext
8582
8583/* The mapping between symbol names and symbols.  */
8584const struct {
8585  const char *name;
8586  void       *address;
8587}
8588lt__PROGRAM__LTX_preloaded_symbols[] =
8589{
8590  { "@PROGRAM@", (void *) 0 },
8591_LT_EOF
8592	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8593	  cat <<\_LT_EOF >> conftest.$ac_ext
8594  {0, (void *) 0}
8595};
8596
8597/* This works around a problem in FreeBSD linker */
8598#ifdef FREEBSD_WORKAROUND
8599static const void *lt_preloaded_setup() {
8600  return lt__PROGRAM__LTX_preloaded_symbols;
8601}
8602#endif
8603
8604#ifdef __cplusplus
8605}
8606#endif
8607_LT_EOF
8608	  # Now try linking the two files.
8609	  mv conftest.$ac_objext conftstm.$ac_objext
8610	  lt_save_LIBS="$LIBS"
8611	  lt_save_CFLAGS="$CFLAGS"
8612	  LIBS="conftstm.$ac_objext"
8613	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8614	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615  (eval $ac_link) 2>&5
8616  ac_status=$?
8617  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8619	    pipe_works=yes
8620	  fi
8621	  LIBS="$lt_save_LIBS"
8622	  CFLAGS="$lt_save_CFLAGS"
8623	else
8624	  echo "cannot find nm_test_func in $nlist" >&5
8625	fi
8626      else
8627	echo "cannot find nm_test_var in $nlist" >&5
8628      fi
8629    else
8630      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8631    fi
8632  else
8633    echo "$progname: failed program was:" >&5
8634    cat conftest.$ac_ext >&5
8635  fi
8636  rm -rf conftest* conftst*
8637
8638  # Do not use the global_symbol_pipe unless it works.
8639  if test "$pipe_works" = yes; then
8640    break
8641  else
8642    lt_cv_sys_global_symbol_pipe=
8643  fi
8644done
8645
8646fi
8647
8648if test -z "$lt_cv_sys_global_symbol_pipe"; then
8649  lt_cv_sys_global_symbol_to_cdecl=
8650fi
8651if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8652  { $as_echo "$as_me:$LINENO: result: failed" >&5
8653$as_echo "failed" >&6; }
8654else
8655  { $as_echo "$as_me:$LINENO: result: ok" >&5
8656$as_echo "ok" >&6; }
8657fi
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680# Check whether --enable-libtool-lock was given.
8681if test "${enable_libtool_lock+set}" = set; then
8682  enableval=$enable_libtool_lock;
8683fi
8684
8685test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8686
8687# Some flags need to be propagated to the compiler or linker for good
8688# libtool support.
8689case $host in
8690ia64-*-hpux*)
8691  # Find out which ABI we are using.
8692  echo 'int i;' > conftest.$ac_ext
8693  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8694  (eval $ac_compile) 2>&5
8695  ac_status=$?
8696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697  (exit $ac_status); }; then
8698    case `/usr/bin/file conftest.$ac_objext` in
8699      *ELF-32*)
8700	HPUX_IA64_MODE="32"
8701	;;
8702      *ELF-64*)
8703	HPUX_IA64_MODE="64"
8704	;;
8705    esac
8706  fi
8707  rm -rf conftest*
8708  ;;
8709*-*-irix6*)
8710  # Find out which ABI we are using.
8711  echo '#line 8711 "configure"' > conftest.$ac_ext
8712  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713  (eval $ac_compile) 2>&5
8714  ac_status=$?
8715  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; then
8717    if test "$lt_cv_prog_gnu_ld" = yes; then
8718      case `/usr/bin/file conftest.$ac_objext` in
8719	*32-bit*)
8720	  LD="${LD-ld} -melf32bsmip"
8721	  ;;
8722	*N32*)
8723	  LD="${LD-ld} -melf32bmipn32"
8724	  ;;
8725	*64-bit*)
8726	  LD="${LD-ld} -melf64bmip"
8727	;;
8728      esac
8729    else
8730      case `/usr/bin/file conftest.$ac_objext` in
8731	*32-bit*)
8732	  LD="${LD-ld} -32"
8733	  ;;
8734	*N32*)
8735	  LD="${LD-ld} -n32"
8736	  ;;
8737	*64-bit*)
8738	  LD="${LD-ld} -64"
8739	  ;;
8740      esac
8741    fi
8742  fi
8743  rm -rf conftest*
8744  ;;
8745
8746x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8747s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8748  # Find out which ABI we are using.
8749  echo 'int i;' > conftest.$ac_ext
8750  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8751  (eval $ac_compile) 2>&5
8752  ac_status=$?
8753  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754  (exit $ac_status); }; then
8755    case `/usr/bin/file conftest.o` in
8756      *32-bit*)
8757	case $host in
8758	  x86_64-*kfreebsd*-gnu)
8759	    LD="${LD-ld} -m elf_i386_fbsd"
8760	    ;;
8761	  x86_64-*linux*)
8762	    LD="${LD-ld} -m elf_i386"
8763	    ;;
8764	  ppc64-*linux*|powerpc64-*linux*)
8765	    LD="${LD-ld} -m elf32ppclinux"
8766	    ;;
8767	  s390x-*linux*)
8768	    LD="${LD-ld} -m elf_s390"
8769	    ;;
8770	  sparc64-*linux*)
8771	    LD="${LD-ld} -m elf32_sparc"
8772	    ;;
8773	esac
8774	;;
8775      *64-bit*)
8776	case $host in
8777	  x86_64-*kfreebsd*-gnu)
8778	    LD="${LD-ld} -m elf_x86_64_fbsd"
8779	    ;;
8780	  x86_64-*linux*)
8781	    LD="${LD-ld} -m elf_x86_64"
8782	    ;;
8783	  ppc*-*linux*|powerpc*-*linux*)
8784	    LD="${LD-ld} -m elf64ppc"
8785	    ;;
8786	  s390*-*linux*|s390*-*tpf*)
8787	    LD="${LD-ld} -m elf64_s390"
8788	    ;;
8789	  sparc*-*linux*)
8790	    LD="${LD-ld} -m elf64_sparc"
8791	    ;;
8792	esac
8793	;;
8794    esac
8795  fi
8796  rm -rf conftest*
8797  ;;
8798
8799*-*-sco3.2v5*)
8800  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8801  SAVE_CFLAGS="$CFLAGS"
8802  CFLAGS="$CFLAGS -belf"
8803  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8804$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8805if test "${lt_cv_cc_needs_belf+set}" = set; then
8806  $as_echo_n "(cached) " >&6
8807else
8808  ac_ext=c
8809ac_cpp='$CPP $CPPFLAGS'
8810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8812ac_compiler_gnu=$ac_cv_c_compiler_gnu
8813
8814     cat >conftest.$ac_ext <<_ACEOF
8815/* confdefs.h.  */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h.  */
8820
8821int
8822main ()
8823{
8824
8825  ;
8826  return 0;
8827}
8828_ACEOF
8829rm -f conftest.$ac_objext conftest$ac_exeext
8830if { (ac_try="$ac_link"
8831case "(($ac_try" in
8832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833  *) ac_try_echo=$ac_try;;
8834esac
8835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8836$as_echo "$ac_try_echo") >&5
8837  (eval "$ac_link") 2>conftest.er1
8838  ac_status=$?
8839  grep -v '^ *+' conftest.er1 >conftest.err
8840  rm -f conftest.er1
8841  cat conftest.err >&5
8842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843  (exit $ac_status); } && {
8844	 test -z "$ac_c_werror_flag" ||
8845	 test ! -s conftest.err
8846       } && test -s conftest$ac_exeext && {
8847	 test "$cross_compiling" = yes ||
8848	 $as_test_x conftest$ac_exeext
8849       }; then
8850  lt_cv_cc_needs_belf=yes
8851else
8852  $as_echo "$as_me: failed program was:" >&5
8853sed 's/^/| /' conftest.$ac_ext >&5
8854
8855	lt_cv_cc_needs_belf=no
8856fi
8857
8858rm -rf conftest.dSYM
8859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8860      conftest$ac_exeext conftest.$ac_ext
8861     ac_ext=c
8862ac_cpp='$CPP $CPPFLAGS'
8863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866
8867fi
8868{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8869$as_echo "$lt_cv_cc_needs_belf" >&6; }
8870  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8871    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8872    CFLAGS="$SAVE_CFLAGS"
8873  fi
8874  ;;
8875sparc*-*solaris*)
8876  # Find out which ABI we are using.
8877  echo 'int i;' > conftest.$ac_ext
8878  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8879  (eval $ac_compile) 2>&5
8880  ac_status=$?
8881  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882  (exit $ac_status); }; then
8883    case `/usr/bin/file conftest.o` in
8884    *64-bit*)
8885      case $lt_cv_prog_gnu_ld in
8886      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8887      *)
8888	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8889	  LD="${LD-ld} -64"
8890	fi
8891	;;
8892      esac
8893      ;;
8894    esac
8895  fi
8896  rm -rf conftest*
8897  ;;
8898esac
8899
8900need_locks="$enable_libtool_lock"
8901
8902
8903  case $host_os in
8904    rhapsody* | darwin*)
8905    if test -n "$ac_tool_prefix"; then
8906  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8907set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8909$as_echo_n "checking for $ac_word... " >&6; }
8910if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8911  $as_echo_n "(cached) " >&6
8912else
8913  if test -n "$DSYMUTIL"; then
8914  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8915else
8916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917for as_dir in $PATH
8918do
8919  IFS=$as_save_IFS
8920  test -z "$as_dir" && as_dir=.
8921  for ac_exec_ext in '' $ac_executable_extensions; do
8922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8924    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8925    break 2
8926  fi
8927done
8928done
8929IFS=$as_save_IFS
8930
8931fi
8932fi
8933DSYMUTIL=$ac_cv_prog_DSYMUTIL
8934if test -n "$DSYMUTIL"; then
8935  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8936$as_echo "$DSYMUTIL" >&6; }
8937else
8938  { $as_echo "$as_me:$LINENO: result: no" >&5
8939$as_echo "no" >&6; }
8940fi
8941
8942
8943fi
8944if test -z "$ac_cv_prog_DSYMUTIL"; then
8945  ac_ct_DSYMUTIL=$DSYMUTIL
8946  # Extract the first word of "dsymutil", so it can be a program name with args.
8947set dummy dsymutil; ac_word=$2
8948{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8949$as_echo_n "checking for $ac_word... " >&6; }
8950if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8951  $as_echo_n "(cached) " >&6
8952else
8953  if test -n "$ac_ct_DSYMUTIL"; then
8954  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8955else
8956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957for as_dir in $PATH
8958do
8959  IFS=$as_save_IFS
8960  test -z "$as_dir" && as_dir=.
8961  for ac_exec_ext in '' $ac_executable_extensions; do
8962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8964    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8965    break 2
8966  fi
8967done
8968done
8969IFS=$as_save_IFS
8970
8971fi
8972fi
8973ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8974if test -n "$ac_ct_DSYMUTIL"; then
8975  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8976$as_echo "$ac_ct_DSYMUTIL" >&6; }
8977else
8978  { $as_echo "$as_me:$LINENO: result: no" >&5
8979$as_echo "no" >&6; }
8980fi
8981
8982  if test "x$ac_ct_DSYMUTIL" = x; then
8983    DSYMUTIL=":"
8984  else
8985    case $cross_compiling:$ac_tool_warned in
8986yes:)
8987{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8989ac_tool_warned=yes ;;
8990esac
8991    DSYMUTIL=$ac_ct_DSYMUTIL
8992  fi
8993else
8994  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8995fi
8996
8997    if test -n "$ac_tool_prefix"; then
8998  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8999set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9000{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9001$as_echo_n "checking for $ac_word... " >&6; }
9002if test "${ac_cv_prog_NMEDIT+set}" = set; then
9003  $as_echo_n "(cached) " >&6
9004else
9005  if test -n "$NMEDIT"; then
9006  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9007else
9008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009for as_dir in $PATH
9010do
9011  IFS=$as_save_IFS
9012  test -z "$as_dir" && as_dir=.
9013  for ac_exec_ext in '' $ac_executable_extensions; do
9014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9015    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9016    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9017    break 2
9018  fi
9019done
9020done
9021IFS=$as_save_IFS
9022
9023fi
9024fi
9025NMEDIT=$ac_cv_prog_NMEDIT
9026if test -n "$NMEDIT"; then
9027  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9028$as_echo "$NMEDIT" >&6; }
9029else
9030  { $as_echo "$as_me:$LINENO: result: no" >&5
9031$as_echo "no" >&6; }
9032fi
9033
9034
9035fi
9036if test -z "$ac_cv_prog_NMEDIT"; then
9037  ac_ct_NMEDIT=$NMEDIT
9038  # Extract the first word of "nmedit", so it can be a program name with args.
9039set dummy nmedit; ac_word=$2
9040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9041$as_echo_n "checking for $ac_word... " >&6; }
9042if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9043  $as_echo_n "(cached) " >&6
9044else
9045  if test -n "$ac_ct_NMEDIT"; then
9046  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9047else
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051  IFS=$as_save_IFS
9052  test -z "$as_dir" && as_dir=.
9053  for ac_exec_ext in '' $ac_executable_extensions; do
9054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9055    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9056    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057    break 2
9058  fi
9059done
9060done
9061IFS=$as_save_IFS
9062
9063fi
9064fi
9065ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9066if test -n "$ac_ct_NMEDIT"; then
9067  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9068$as_echo "$ac_ct_NMEDIT" >&6; }
9069else
9070  { $as_echo "$as_me:$LINENO: result: no" >&5
9071$as_echo "no" >&6; }
9072fi
9073
9074  if test "x$ac_ct_NMEDIT" = x; then
9075    NMEDIT=":"
9076  else
9077    case $cross_compiling:$ac_tool_warned in
9078yes:)
9079{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9081ac_tool_warned=yes ;;
9082esac
9083    NMEDIT=$ac_ct_NMEDIT
9084  fi
9085else
9086  NMEDIT="$ac_cv_prog_NMEDIT"
9087fi
9088
9089    if test -n "$ac_tool_prefix"; then
9090  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9091set dummy ${ac_tool_prefix}lipo; ac_word=$2
9092{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9093$as_echo_n "checking for $ac_word... " >&6; }
9094if test "${ac_cv_prog_LIPO+set}" = set; then
9095  $as_echo_n "(cached) " >&6
9096else
9097  if test -n "$LIPO"; then
9098  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9099else
9100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101for as_dir in $PATH
9102do
9103  IFS=$as_save_IFS
9104  test -z "$as_dir" && as_dir=.
9105  for ac_exec_ext in '' $ac_executable_extensions; do
9106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9107    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9108    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9109    break 2
9110  fi
9111done
9112done
9113IFS=$as_save_IFS
9114
9115fi
9116fi
9117LIPO=$ac_cv_prog_LIPO
9118if test -n "$LIPO"; then
9119  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
9120$as_echo "$LIPO" >&6; }
9121else
9122  { $as_echo "$as_me:$LINENO: result: no" >&5
9123$as_echo "no" >&6; }
9124fi
9125
9126
9127fi
9128if test -z "$ac_cv_prog_LIPO"; then
9129  ac_ct_LIPO=$LIPO
9130  # Extract the first word of "lipo", so it can be a program name with args.
9131set dummy lipo; ac_word=$2
9132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9133$as_echo_n "checking for $ac_word... " >&6; }
9134if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9135  $as_echo_n "(cached) " >&6
9136else
9137  if test -n "$ac_ct_LIPO"; then
9138  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9139else
9140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141for as_dir in $PATH
9142do
9143  IFS=$as_save_IFS
9144  test -z "$as_dir" && as_dir=.
9145  for ac_exec_ext in '' $ac_executable_extensions; do
9146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147    ac_cv_prog_ac_ct_LIPO="lipo"
9148    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9149    break 2
9150  fi
9151done
9152done
9153IFS=$as_save_IFS
9154
9155fi
9156fi
9157ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9158if test -n "$ac_ct_LIPO"; then
9159  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9160$as_echo "$ac_ct_LIPO" >&6; }
9161else
9162  { $as_echo "$as_me:$LINENO: result: no" >&5
9163$as_echo "no" >&6; }
9164fi
9165
9166  if test "x$ac_ct_LIPO" = x; then
9167    LIPO=":"
9168  else
9169    case $cross_compiling:$ac_tool_warned in
9170yes:)
9171{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9173ac_tool_warned=yes ;;
9174esac
9175    LIPO=$ac_ct_LIPO
9176  fi
9177else
9178  LIPO="$ac_cv_prog_LIPO"
9179fi
9180
9181    if test -n "$ac_tool_prefix"; then
9182  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9183set dummy ${ac_tool_prefix}otool; ac_word=$2
9184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9185$as_echo_n "checking for $ac_word... " >&6; }
9186if test "${ac_cv_prog_OTOOL+set}" = set; then
9187  $as_echo_n "(cached) " >&6
9188else
9189  if test -n "$OTOOL"; then
9190  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9191else
9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195  IFS=$as_save_IFS
9196  test -z "$as_dir" && as_dir=.
9197  for ac_exec_ext in '' $ac_executable_extensions; do
9198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9199    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9200    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9201    break 2
9202  fi
9203done
9204done
9205IFS=$as_save_IFS
9206
9207fi
9208fi
9209OTOOL=$ac_cv_prog_OTOOL
9210if test -n "$OTOOL"; then
9211  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9212$as_echo "$OTOOL" >&6; }
9213else
9214  { $as_echo "$as_me:$LINENO: result: no" >&5
9215$as_echo "no" >&6; }
9216fi
9217
9218
9219fi
9220if test -z "$ac_cv_prog_OTOOL"; then
9221  ac_ct_OTOOL=$OTOOL
9222  # Extract the first word of "otool", so it can be a program name with args.
9223set dummy otool; ac_word=$2
9224{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9225$as_echo_n "checking for $ac_word... " >&6; }
9226if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9227  $as_echo_n "(cached) " >&6
9228else
9229  if test -n "$ac_ct_OTOOL"; then
9230  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9231else
9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233for as_dir in $PATH
9234do
9235  IFS=$as_save_IFS
9236  test -z "$as_dir" && as_dir=.
9237  for ac_exec_ext in '' $ac_executable_extensions; do
9238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9239    ac_cv_prog_ac_ct_OTOOL="otool"
9240    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9241    break 2
9242  fi
9243done
9244done
9245IFS=$as_save_IFS
9246
9247fi
9248fi
9249ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9250if test -n "$ac_ct_OTOOL"; then
9251  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9252$as_echo "$ac_ct_OTOOL" >&6; }
9253else
9254  { $as_echo "$as_me:$LINENO: result: no" >&5
9255$as_echo "no" >&6; }
9256fi
9257
9258  if test "x$ac_ct_OTOOL" = x; then
9259    OTOOL=":"
9260  else
9261    case $cross_compiling:$ac_tool_warned in
9262yes:)
9263{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9265ac_tool_warned=yes ;;
9266esac
9267    OTOOL=$ac_ct_OTOOL
9268  fi
9269else
9270  OTOOL="$ac_cv_prog_OTOOL"
9271fi
9272
9273    if test -n "$ac_tool_prefix"; then
9274  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9275set dummy ${ac_tool_prefix}otool64; ac_word=$2
9276{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9277$as_echo_n "checking for $ac_word... " >&6; }
9278if test "${ac_cv_prog_OTOOL64+set}" = set; then
9279  $as_echo_n "(cached) " >&6
9280else
9281  if test -n "$OTOOL64"; then
9282  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9283else
9284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285for as_dir in $PATH
9286do
9287  IFS=$as_save_IFS
9288  test -z "$as_dir" && as_dir=.
9289  for ac_exec_ext in '' $ac_executable_extensions; do
9290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9291    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9292    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9293    break 2
9294  fi
9295done
9296done
9297IFS=$as_save_IFS
9298
9299fi
9300fi
9301OTOOL64=$ac_cv_prog_OTOOL64
9302if test -n "$OTOOL64"; then
9303  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9304$as_echo "$OTOOL64" >&6; }
9305else
9306  { $as_echo "$as_me:$LINENO: result: no" >&5
9307$as_echo "no" >&6; }
9308fi
9309
9310
9311fi
9312if test -z "$ac_cv_prog_OTOOL64"; then
9313  ac_ct_OTOOL64=$OTOOL64
9314  # Extract the first word of "otool64", so it can be a program name with args.
9315set dummy otool64; ac_word=$2
9316{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9317$as_echo_n "checking for $ac_word... " >&6; }
9318if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9319  $as_echo_n "(cached) " >&6
9320else
9321  if test -n "$ac_ct_OTOOL64"; then
9322  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9323else
9324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325for as_dir in $PATH
9326do
9327  IFS=$as_save_IFS
9328  test -z "$as_dir" && as_dir=.
9329  for ac_exec_ext in '' $ac_executable_extensions; do
9330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331    ac_cv_prog_ac_ct_OTOOL64="otool64"
9332    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9333    break 2
9334  fi
9335done
9336done
9337IFS=$as_save_IFS
9338
9339fi
9340fi
9341ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9342if test -n "$ac_ct_OTOOL64"; then
9343  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9344$as_echo "$ac_ct_OTOOL64" >&6; }
9345else
9346  { $as_echo "$as_me:$LINENO: result: no" >&5
9347$as_echo "no" >&6; }
9348fi
9349
9350  if test "x$ac_ct_OTOOL64" = x; then
9351    OTOOL64=":"
9352  else
9353    case $cross_compiling:$ac_tool_warned in
9354yes:)
9355{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9357ac_tool_warned=yes ;;
9358esac
9359    OTOOL64=$ac_ct_OTOOL64
9360  fi
9361else
9362  OTOOL64="$ac_cv_prog_OTOOL64"
9363fi
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9392$as_echo_n "checking for -single_module linker flag... " >&6; }
9393if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9394  $as_echo_n "(cached) " >&6
9395else
9396  lt_cv_apple_cc_single_mod=no
9397      if test -z "${LT_MULTI_MODULE}"; then
9398	# By default we will add the -single_module flag. You can override
9399	# by either setting the environment variable LT_MULTI_MODULE
9400	# non-empty at configure time, or by adding -multi_module to the
9401	# link flags.
9402	rm -rf libconftest.dylib*
9403	echo "int foo(void){return 1;}" > conftest.c
9404	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9405-dynamiclib -Wl,-single_module conftest.c" >&5
9406	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9407	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9408        _lt_result=$?
9409	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9410	  lt_cv_apple_cc_single_mod=yes
9411	else
9412	  cat conftest.err >&5
9413	fi
9414	rm -rf libconftest.dylib*
9415	rm -f conftest.*
9416      fi
9417fi
9418{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9419$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9420    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9421$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9422if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9423  $as_echo_n "(cached) " >&6
9424else
9425  lt_cv_ld_exported_symbols_list=no
9426      save_LDFLAGS=$LDFLAGS
9427      echo "_main" > conftest.sym
9428      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9429      cat >conftest.$ac_ext <<_ACEOF
9430/* confdefs.h.  */
9431_ACEOF
9432cat confdefs.h >>conftest.$ac_ext
9433cat >>conftest.$ac_ext <<_ACEOF
9434/* end confdefs.h.  */
9435
9436int
9437main ()
9438{
9439
9440  ;
9441  return 0;
9442}
9443_ACEOF
9444rm -f conftest.$ac_objext conftest$ac_exeext
9445if { (ac_try="$ac_link"
9446case "(($ac_try" in
9447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448  *) ac_try_echo=$ac_try;;
9449esac
9450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9451$as_echo "$ac_try_echo") >&5
9452  (eval "$ac_link") 2>conftest.er1
9453  ac_status=$?
9454  grep -v '^ *+' conftest.er1 >conftest.err
9455  rm -f conftest.er1
9456  cat conftest.err >&5
9457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458  (exit $ac_status); } && {
9459	 test -z "$ac_c_werror_flag" ||
9460	 test ! -s conftest.err
9461       } && test -s conftest$ac_exeext && {
9462	 test "$cross_compiling" = yes ||
9463	 $as_test_x conftest$ac_exeext
9464       }; then
9465  lt_cv_ld_exported_symbols_list=yes
9466else
9467  $as_echo "$as_me: failed program was:" >&5
9468sed 's/^/| /' conftest.$ac_ext >&5
9469
9470	lt_cv_ld_exported_symbols_list=no
9471fi
9472
9473rm -rf conftest.dSYM
9474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9475      conftest$ac_exeext conftest.$ac_ext
9476	LDFLAGS="$save_LDFLAGS"
9477
9478fi
9479{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9480$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9481    case $host_os in
9482    rhapsody* | darwin1.[012])
9483      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9484    darwin1.*)
9485      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9486    darwin*) # darwin 5.x on
9487      # if running on 10.5 or later, the deployment target defaults
9488      # to the OS version, if on x86, and 10.4, the deployment
9489      # target defaults to 10.4. Don't you love it?
9490      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9491	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9492	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9493	10.[012]*)
9494	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9495	10.*)
9496	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9497      esac
9498    ;;
9499  esac
9500    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9501      _lt_dar_single_mod='$single_module'
9502    fi
9503    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9504      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9505    else
9506      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9507    fi
9508    if test "$DSYMUTIL" != ":"; then
9509      _lt_dsymutil='~$DSYMUTIL $lib || :'
9510    else
9511      _lt_dsymutil=
9512    fi
9513    ;;
9514  esac
9515
9516
9517for ac_header in dlfcn.h
9518do
9519as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9520{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9521$as_echo_n "checking for $ac_header... " >&6; }
9522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9523  $as_echo_n "(cached) " >&6
9524else
9525  cat >conftest.$ac_ext <<_ACEOF
9526/* confdefs.h.  */
9527_ACEOF
9528cat confdefs.h >>conftest.$ac_ext
9529cat >>conftest.$ac_ext <<_ACEOF
9530/* end confdefs.h.  */
9531$ac_includes_default
9532
9533#include <$ac_header>
9534_ACEOF
9535rm -f conftest.$ac_objext
9536if { (ac_try="$ac_compile"
9537case "(($ac_try" in
9538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539  *) ac_try_echo=$ac_try;;
9540esac
9541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542$as_echo "$ac_try_echo") >&5
9543  (eval "$ac_compile") 2>conftest.er1
9544  ac_status=$?
9545  grep -v '^ *+' conftest.er1 >conftest.err
9546  rm -f conftest.er1
9547  cat conftest.err >&5
9548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549  (exit $ac_status); } && {
9550	 test -z "$ac_c_werror_flag" ||
9551	 test ! -s conftest.err
9552       } && test -s conftest.$ac_objext; then
9553  eval "$as_ac_Header=yes"
9554else
9555  $as_echo "$as_me: failed program was:" >&5
9556sed 's/^/| /' conftest.$ac_ext >&5
9557
9558	eval "$as_ac_Header=no"
9559fi
9560
9561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562fi
9563ac_res=`eval 'as_val=${'$as_ac_Header'}
9564		 $as_echo "$as_val"'`
9565	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9566$as_echo "$ac_res" >&6; }
9567as_val=`eval 'as_val=${'$as_ac_Header'}
9568		 $as_echo "$as_val"'`
9569   if test "x$as_val" = x""yes; then
9570  cat >>confdefs.h <<_ACEOF
9571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9572_ACEOF
9573
9574fi
9575
9576done
9577
9578
9579
9580ac_ext=cpp
9581ac_cpp='$CXXCPP $CPPFLAGS'
9582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9585if test -z "$CXX"; then
9586  if test -n "$CCC"; then
9587    CXX=$CCC
9588  else
9589    if test -n "$ac_tool_prefix"; then
9590  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9591  do
9592    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9594{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9595$as_echo_n "checking for $ac_word... " >&6; }
9596if test "${ac_cv_prog_CXX+set}" = set; then
9597  $as_echo_n "(cached) " >&6
9598else
9599  if test -n "$CXX"; then
9600  ac_cv_prog_CXX="$CXX" # Let the user override the test.
9601else
9602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603for as_dir in $PATH
9604do
9605  IFS=$as_save_IFS
9606  test -z "$as_dir" && as_dir=.
9607  for ac_exec_ext in '' $ac_executable_extensions; do
9608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9609    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9610    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9611    break 2
9612  fi
9613done
9614done
9615IFS=$as_save_IFS
9616
9617fi
9618fi
9619CXX=$ac_cv_prog_CXX
9620if test -n "$CXX"; then
9621  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
9622$as_echo "$CXX" >&6; }
9623else
9624  { $as_echo "$as_me:$LINENO: result: no" >&5
9625$as_echo "no" >&6; }
9626fi
9627
9628
9629    test -n "$CXX" && break
9630  done
9631fi
9632if test -z "$CXX"; then
9633  ac_ct_CXX=$CXX
9634  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9635do
9636  # Extract the first word of "$ac_prog", so it can be a program name with args.
9637set dummy $ac_prog; ac_word=$2
9638{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9639$as_echo_n "checking for $ac_word... " >&6; }
9640if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9641  $as_echo_n "(cached) " >&6
9642else
9643  if test -n "$ac_ct_CXX"; then
9644  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9645else
9646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647for as_dir in $PATH
9648do
9649  IFS=$as_save_IFS
9650  test -z "$as_dir" && as_dir=.
9651  for ac_exec_ext in '' $ac_executable_extensions; do
9652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9653    ac_cv_prog_ac_ct_CXX="$ac_prog"
9654    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9655    break 2
9656  fi
9657done
9658done
9659IFS=$as_save_IFS
9660
9661fi
9662fi
9663ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9664if test -n "$ac_ct_CXX"; then
9665  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9666$as_echo "$ac_ct_CXX" >&6; }
9667else
9668  { $as_echo "$as_me:$LINENO: result: no" >&5
9669$as_echo "no" >&6; }
9670fi
9671
9672
9673  test -n "$ac_ct_CXX" && break
9674done
9675
9676  if test "x$ac_ct_CXX" = x; then
9677    CXX="g++"
9678  else
9679    case $cross_compiling:$ac_tool_warned in
9680yes:)
9681{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9683ac_tool_warned=yes ;;
9684esac
9685    CXX=$ac_ct_CXX
9686  fi
9687fi
9688
9689  fi
9690fi
9691# Provide some information about the compiler.
9692$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9693set X $ac_compile
9694ac_compiler=$2
9695{ (ac_try="$ac_compiler --version >&5"
9696case "(($ac_try" in
9697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698  *) ac_try_echo=$ac_try;;
9699esac
9700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9701$as_echo "$ac_try_echo") >&5
9702  (eval "$ac_compiler --version >&5") 2>&5
9703  ac_status=$?
9704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705  (exit $ac_status); }
9706{ (ac_try="$ac_compiler -v >&5"
9707case "(($ac_try" in
9708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709  *) ac_try_echo=$ac_try;;
9710esac
9711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712$as_echo "$ac_try_echo") >&5
9713  (eval "$ac_compiler -v >&5") 2>&5
9714  ac_status=$?
9715  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716  (exit $ac_status); }
9717{ (ac_try="$ac_compiler -V >&5"
9718case "(($ac_try" in
9719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720  *) ac_try_echo=$ac_try;;
9721esac
9722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9723$as_echo "$ac_try_echo") >&5
9724  (eval "$ac_compiler -V >&5") 2>&5
9725  ac_status=$?
9726  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727  (exit $ac_status); }
9728
9729{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9730$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9731if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9732  $as_echo_n "(cached) " >&6
9733else
9734  cat >conftest.$ac_ext <<_ACEOF
9735/* confdefs.h.  */
9736_ACEOF
9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h.  */
9740
9741int
9742main ()
9743{
9744#ifndef __GNUC__
9745       choke me
9746#endif
9747
9748  ;
9749  return 0;
9750}
9751_ACEOF
9752rm -f conftest.$ac_objext
9753if { (ac_try="$ac_compile"
9754case "(($ac_try" in
9755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756  *) ac_try_echo=$ac_try;;
9757esac
9758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759$as_echo "$ac_try_echo") >&5
9760  (eval "$ac_compile") 2>conftest.er1
9761  ac_status=$?
9762  grep -v '^ *+' conftest.er1 >conftest.err
9763  rm -f conftest.er1
9764  cat conftest.err >&5
9765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766  (exit $ac_status); } && {
9767	 test -z "$ac_cxx_werror_flag" ||
9768	 test ! -s conftest.err
9769       } && test -s conftest.$ac_objext; then
9770  ac_compiler_gnu=yes
9771else
9772  $as_echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775	ac_compiler_gnu=no
9776fi
9777
9778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9780
9781fi
9782{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9783$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9784if test $ac_compiler_gnu = yes; then
9785  GXX=yes
9786else
9787  GXX=
9788fi
9789ac_test_CXXFLAGS=${CXXFLAGS+set}
9790ac_save_CXXFLAGS=$CXXFLAGS
9791{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9792$as_echo_n "checking whether $CXX accepts -g... " >&6; }
9793if test "${ac_cv_prog_cxx_g+set}" = set; then
9794  $as_echo_n "(cached) " >&6
9795else
9796  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9797   ac_cxx_werror_flag=yes
9798   ac_cv_prog_cxx_g=no
9799   CXXFLAGS="-g"
9800   cat >conftest.$ac_ext <<_ACEOF
9801/* confdefs.h.  */
9802_ACEOF
9803cat confdefs.h >>conftest.$ac_ext
9804cat >>conftest.$ac_ext <<_ACEOF
9805/* end confdefs.h.  */
9806
9807int
9808main ()
9809{
9810
9811  ;
9812  return 0;
9813}
9814_ACEOF
9815rm -f conftest.$ac_objext
9816if { (ac_try="$ac_compile"
9817case "(($ac_try" in
9818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819  *) ac_try_echo=$ac_try;;
9820esac
9821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9822$as_echo "$ac_try_echo") >&5
9823  (eval "$ac_compile") 2>conftest.er1
9824  ac_status=$?
9825  grep -v '^ *+' conftest.er1 >conftest.err
9826  rm -f conftest.er1
9827  cat conftest.err >&5
9828  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829  (exit $ac_status); } && {
9830	 test -z "$ac_cxx_werror_flag" ||
9831	 test ! -s conftest.err
9832       } && test -s conftest.$ac_objext; then
9833  ac_cv_prog_cxx_g=yes
9834else
9835  $as_echo "$as_me: failed program was:" >&5
9836sed 's/^/| /' conftest.$ac_ext >&5
9837
9838	CXXFLAGS=""
9839      cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h.  */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h.  */
9845
9846int
9847main ()
9848{
9849
9850  ;
9851  return 0;
9852}
9853_ACEOF
9854rm -f conftest.$ac_objext
9855if { (ac_try="$ac_compile"
9856case "(($ac_try" in
9857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858  *) ac_try_echo=$ac_try;;
9859esac
9860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9861$as_echo "$ac_try_echo") >&5
9862  (eval "$ac_compile") 2>conftest.er1
9863  ac_status=$?
9864  grep -v '^ *+' conftest.er1 >conftest.err
9865  rm -f conftest.er1
9866  cat conftest.err >&5
9867  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868  (exit $ac_status); } && {
9869	 test -z "$ac_cxx_werror_flag" ||
9870	 test ! -s conftest.err
9871       } && test -s conftest.$ac_objext; then
9872  :
9873else
9874  $as_echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9878	 CXXFLAGS="-g"
9879	 cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h.  */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h.  */
9885
9886int
9887main ()
9888{
9889
9890  ;
9891  return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext
9895if { (ac_try="$ac_compile"
9896case "(($ac_try" in
9897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898  *) ac_try_echo=$ac_try;;
9899esac
9900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9901$as_echo "$ac_try_echo") >&5
9902  (eval "$ac_compile") 2>conftest.er1
9903  ac_status=$?
9904  grep -v '^ *+' conftest.er1 >conftest.err
9905  rm -f conftest.er1
9906  cat conftest.err >&5
9907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908  (exit $ac_status); } && {
9909	 test -z "$ac_cxx_werror_flag" ||
9910	 test ! -s conftest.err
9911       } && test -s conftest.$ac_objext; then
9912  ac_cv_prog_cxx_g=yes
9913else
9914  $as_echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917
9918fi
9919
9920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921fi
9922
9923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924fi
9925
9926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9928fi
9929{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9930$as_echo "$ac_cv_prog_cxx_g" >&6; }
9931if test "$ac_test_CXXFLAGS" = set; then
9932  CXXFLAGS=$ac_save_CXXFLAGS
9933elif test $ac_cv_prog_cxx_g = yes; then
9934  if test "$GXX" = yes; then
9935    CXXFLAGS="-g -O2"
9936  else
9937    CXXFLAGS="-g"
9938  fi
9939else
9940  if test "$GXX" = yes; then
9941    CXXFLAGS="-O2"
9942  else
9943    CXXFLAGS=
9944  fi
9945fi
9946ac_ext=c
9947ac_cpp='$CPP $CPPFLAGS'
9948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9950ac_compiler_gnu=$ac_cv_c_compiler_gnu
9951
9952depcc="$CXX"  am_compiler_list=
9953
9954{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9955$as_echo_n "checking dependency style of $depcc... " >&6; }
9956if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9957  $as_echo_n "(cached) " >&6
9958else
9959  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9960  # We make a subdir and do the tests there.  Otherwise we can end up
9961  # making bogus files that we don't know about and never remove.  For
9962  # instance it was reported that on HP-UX the gcc test will end up
9963  # making a dummy file named `D' -- because `-MD' means `put the output
9964  # in D'.
9965  mkdir conftest.dir
9966  # Copy depcomp to subdir because otherwise we won't find it if we're
9967  # using a relative directory.
9968  cp "$am_depcomp" conftest.dir
9969  cd conftest.dir
9970  # We will build objects and dependencies in a subdirectory because
9971  # it helps to detect inapplicable dependency modes.  For instance
9972  # both Tru64's cc and ICC support -MD to output dependencies as a
9973  # side effect of compilation, but ICC will put the dependencies in
9974  # the current directory while Tru64 will put them in the object
9975  # directory.
9976  mkdir sub
9977
9978  am_cv_CXX_dependencies_compiler_type=none
9979  if test "$am_compiler_list" = ""; then
9980     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9981  fi
9982  for depmode in $am_compiler_list; do
9983    # Setup a source with many dependencies, because some compilers
9984    # like to wrap large dependency lists on column 80 (with \), and
9985    # we should not choose a depcomp mode which is confused by this.
9986    #
9987    # We need to recreate these files for each test, as the compiler may
9988    # overwrite some of them when testing with obscure command lines.
9989    # This happens at least with the AIX C compiler.
9990    : > sub/conftest.c
9991    for i in 1 2 3 4 5 6; do
9992      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9993      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9994      # Solaris 8's {/usr,}/bin/sh.
9995      touch sub/conftst$i.h
9996    done
9997    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9998
9999    case $depmode in
10000    nosideeffect)
10001      # after this tag, mechanisms are not by side-effect, so they'll
10002      # only be used when explicitly requested
10003      if test "x$enable_dependency_tracking" = xyes; then
10004	continue
10005      else
10006	break
10007      fi
10008      ;;
10009    none) break ;;
10010    esac
10011    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10012    # mode.  It turns out that the SunPro C++ compiler does not properly
10013    # handle `-M -o', and we need to detect this.
10014    if depmode=$depmode \
10015       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10016       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10017       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
10018         >/dev/null 2>conftest.err &&
10019       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10020       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10021       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
10022       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10023      # icc doesn't choke on unknown options, it will just issue warnings
10024      # or remarks (even with -Werror).  So we grep stderr for any message
10025      # that says an option was ignored or not supported.
10026      # When given -MP, icc 7.0 and 7.1 complain thusly:
10027      #   icc: Command line warning: ignoring option '-M'; no argument required
10028      # The diagnosis changed in icc 8.0:
10029      #   icc: Command line remark: option '-MP' not supported
10030      if (grep 'ignoring option' conftest.err ||
10031          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10032        am_cv_CXX_dependencies_compiler_type=$depmode
10033        break
10034      fi
10035    fi
10036  done
10037
10038  cd ..
10039  rm -rf conftest.dir
10040else
10041  am_cv_CXX_dependencies_compiler_type=none
10042fi
10043
10044fi
10045{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10046$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10047CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10048
10049 if
10050  test "x$enable_dependency_tracking" != xno \
10051  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10052  am__fastdepCXX_TRUE=
10053  am__fastdepCXX_FALSE='#'
10054else
10055  am__fastdepCXX_TRUE='#'
10056  am__fastdepCXX_FALSE=
10057fi
10058
10059
10060if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10061    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10062    (test "X$CXX" != "Xg++"))) ; then
10063  ac_ext=cpp
10064ac_cpp='$CXXCPP $CPPFLAGS'
10065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10068{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10069$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10070if test -z "$CXXCPP"; then
10071  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10072  $as_echo_n "(cached) " >&6
10073else
10074      # Double quotes because CXXCPP needs to be expanded
10075    for CXXCPP in "$CXX -E" "/lib/cpp"
10076    do
10077      ac_preproc_ok=false
10078for ac_cxx_preproc_warn_flag in '' yes
10079do
10080  # Use a header file that comes with gcc, so configuring glibc
10081  # with a fresh cross-compiler works.
10082  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10083  # <limits.h> exists even on freestanding compilers.
10084  # On the NeXT, cc -E runs the code through the compiler's parser,
10085  # not just through cpp. "Syntax error" is here to catch this case.
10086  cat >conftest.$ac_ext <<_ACEOF
10087/* confdefs.h.  */
10088_ACEOF
10089cat confdefs.h >>conftest.$ac_ext
10090cat >>conftest.$ac_ext <<_ACEOF
10091/* end confdefs.h.  */
10092#ifdef __STDC__
10093# include <limits.h>
10094#else
10095# include <assert.h>
10096#endif
10097		     Syntax error
10098_ACEOF
10099if { (ac_try="$ac_cpp conftest.$ac_ext"
10100case "(($ac_try" in
10101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102  *) ac_try_echo=$ac_try;;
10103esac
10104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10105$as_echo "$ac_try_echo") >&5
10106  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10107  ac_status=$?
10108  grep -v '^ *+' conftest.er1 >conftest.err
10109  rm -f conftest.er1
10110  cat conftest.err >&5
10111  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112  (exit $ac_status); } >/dev/null && {
10113	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10114	 test ! -s conftest.err
10115       }; then
10116  :
10117else
10118  $as_echo "$as_me: failed program was:" >&5
10119sed 's/^/| /' conftest.$ac_ext >&5
10120
10121  # Broken: fails on valid input.
10122continue
10123fi
10124
10125rm -f conftest.err conftest.$ac_ext
10126
10127  # OK, works on sane cases.  Now check whether nonexistent headers
10128  # can be detected and how.
10129  cat >conftest.$ac_ext <<_ACEOF
10130/* confdefs.h.  */
10131_ACEOF
10132cat confdefs.h >>conftest.$ac_ext
10133cat >>conftest.$ac_ext <<_ACEOF
10134/* end confdefs.h.  */
10135#include <ac_nonexistent.h>
10136_ACEOF
10137if { (ac_try="$ac_cpp conftest.$ac_ext"
10138case "(($ac_try" in
10139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140  *) ac_try_echo=$ac_try;;
10141esac
10142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10143$as_echo "$ac_try_echo") >&5
10144  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10145  ac_status=$?
10146  grep -v '^ *+' conftest.er1 >conftest.err
10147  rm -f conftest.er1
10148  cat conftest.err >&5
10149  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150  (exit $ac_status); } >/dev/null && {
10151	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10152	 test ! -s conftest.err
10153       }; then
10154  # Broken: success on invalid input.
10155continue
10156else
10157  $as_echo "$as_me: failed program was:" >&5
10158sed 's/^/| /' conftest.$ac_ext >&5
10159
10160  # Passes both tests.
10161ac_preproc_ok=:
10162break
10163fi
10164
10165rm -f conftest.err conftest.$ac_ext
10166
10167done
10168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10169rm -f conftest.err conftest.$ac_ext
10170if $ac_preproc_ok; then
10171  break
10172fi
10173
10174    done
10175    ac_cv_prog_CXXCPP=$CXXCPP
10176
10177fi
10178  CXXCPP=$ac_cv_prog_CXXCPP
10179else
10180  ac_cv_prog_CXXCPP=$CXXCPP
10181fi
10182{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10183$as_echo "$CXXCPP" >&6; }
10184ac_preproc_ok=false
10185for ac_cxx_preproc_warn_flag in '' yes
10186do
10187  # Use a header file that comes with gcc, so configuring glibc
10188  # with a fresh cross-compiler works.
10189  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10190  # <limits.h> exists even on freestanding compilers.
10191  # On the NeXT, cc -E runs the code through the compiler's parser,
10192  # not just through cpp. "Syntax error" is here to catch this case.
10193  cat >conftest.$ac_ext <<_ACEOF
10194/* confdefs.h.  */
10195_ACEOF
10196cat confdefs.h >>conftest.$ac_ext
10197cat >>conftest.$ac_ext <<_ACEOF
10198/* end confdefs.h.  */
10199#ifdef __STDC__
10200# include <limits.h>
10201#else
10202# include <assert.h>
10203#endif
10204		     Syntax error
10205_ACEOF
10206if { (ac_try="$ac_cpp conftest.$ac_ext"
10207case "(($ac_try" in
10208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209  *) ac_try_echo=$ac_try;;
10210esac
10211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10212$as_echo "$ac_try_echo") >&5
10213  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10214  ac_status=$?
10215  grep -v '^ *+' conftest.er1 >conftest.err
10216  rm -f conftest.er1
10217  cat conftest.err >&5
10218  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219  (exit $ac_status); } >/dev/null && {
10220	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10221	 test ! -s conftest.err
10222       }; then
10223  :
10224else
10225  $as_echo "$as_me: failed program was:" >&5
10226sed 's/^/| /' conftest.$ac_ext >&5
10227
10228  # Broken: fails on valid input.
10229continue
10230fi
10231
10232rm -f conftest.err conftest.$ac_ext
10233
10234  # OK, works on sane cases.  Now check whether nonexistent headers
10235  # can be detected and how.
10236  cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h.  */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h.  */
10242#include <ac_nonexistent.h>
10243_ACEOF
10244if { (ac_try="$ac_cpp conftest.$ac_ext"
10245case "(($ac_try" in
10246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247  *) ac_try_echo=$ac_try;;
10248esac
10249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10250$as_echo "$ac_try_echo") >&5
10251  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10252  ac_status=$?
10253  grep -v '^ *+' conftest.er1 >conftest.err
10254  rm -f conftest.er1
10255  cat conftest.err >&5
10256  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257  (exit $ac_status); } >/dev/null && {
10258	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10259	 test ! -s conftest.err
10260       }; then
10261  # Broken: success on invalid input.
10262continue
10263else
10264  $as_echo "$as_me: failed program was:" >&5
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
10267  # Passes both tests.
10268ac_preproc_ok=:
10269break
10270fi
10271
10272rm -f conftest.err conftest.$ac_ext
10273
10274done
10275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10276rm -f conftest.err conftest.$ac_ext
10277if $ac_preproc_ok; then
10278  :
10279else
10280  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10282_lt_caught_CXX_error=yes; }
10283fi
10284
10285ac_ext=c
10286ac_cpp='$CPP $CPPFLAGS'
10287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10289ac_compiler_gnu=$ac_cv_c_compiler_gnu
10290
10291else
10292  _lt_caught_CXX_error=yes
10293fi
10294
10295
10296
10297
10298
10299# Set options
10300
10301
10302
10303        enable_dlopen=no
10304
10305
10306  enable_win32_dll=no
10307
10308
10309            # Check whether --enable-shared was given.
10310if test "${enable_shared+set}" = set; then
10311  enableval=$enable_shared; p=${PACKAGE-default}
10312    case $enableval in
10313    yes) enable_shared=yes ;;
10314    no) enable_shared=no ;;
10315    *)
10316      enable_shared=no
10317      # Look at the argument we got.  We use all the common list separators.
10318      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10319      for pkg in $enableval; do
10320	IFS="$lt_save_ifs"
10321	if test "X$pkg" = "X$p"; then
10322	  enable_shared=yes
10323	fi
10324      done
10325      IFS="$lt_save_ifs"
10326      ;;
10327    esac
10328else
10329  enable_shared=yes
10330fi
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340  # Check whether --enable-static was given.
10341if test "${enable_static+set}" = set; then
10342  enableval=$enable_static; p=${PACKAGE-default}
10343    case $enableval in
10344    yes) enable_static=yes ;;
10345    no) enable_static=no ;;
10346    *)
10347     enable_static=no
10348      # Look at the argument we got.  We use all the common list separators.
10349      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10350      for pkg in $enableval; do
10351	IFS="$lt_save_ifs"
10352	if test "X$pkg" = "X$p"; then
10353	  enable_static=yes
10354	fi
10355      done
10356      IFS="$lt_save_ifs"
10357      ;;
10358    esac
10359else
10360  enable_static=yes
10361fi
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372# Check whether --with-pic was given.
10373if test "${with_pic+set}" = set; then
10374  withval=$with_pic; pic_mode="$withval"
10375else
10376  pic_mode=default
10377fi
10378
10379
10380test -z "$pic_mode" && pic_mode=default
10381
10382
10383
10384
10385
10386
10387
10388  # Check whether --enable-fast-install was given.
10389if test "${enable_fast_install+set}" = set; then
10390  enableval=$enable_fast_install; p=${PACKAGE-default}
10391    case $enableval in
10392    yes) enable_fast_install=yes ;;
10393    no) enable_fast_install=no ;;
10394    *)
10395      enable_fast_install=no
10396      # Look at the argument we got.  We use all the common list separators.
10397      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10398      for pkg in $enableval; do
10399	IFS="$lt_save_ifs"
10400	if test "X$pkg" = "X$p"; then
10401	  enable_fast_install=yes
10402	fi
10403      done
10404      IFS="$lt_save_ifs"
10405      ;;
10406    esac
10407else
10408  enable_fast_install=yes
10409fi
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421# This can be used to rebuild libtool when needed
10422LIBTOOL_DEPS="$ltmain"
10423
10424# Always use our own libtool.
10425LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451test -z "$LN_S" && LN_S="ln -s"
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466if test -n "${ZSH_VERSION+set}" ; then
10467   setopt NO_GLOB_SUBST
10468fi
10469
10470{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
10471$as_echo_n "checking for objdir... " >&6; }
10472if test "${lt_cv_objdir+set}" = set; then
10473  $as_echo_n "(cached) " >&6
10474else
10475  rm -f .libs 2>/dev/null
10476mkdir .libs 2>/dev/null
10477if test -d .libs; then
10478  lt_cv_objdir=.libs
10479else
10480  # MS-DOS does not allow filenames that begin with a dot.
10481  lt_cv_objdir=_libs
10482fi
10483rmdir .libs 2>/dev/null
10484fi
10485{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10486$as_echo "$lt_cv_objdir" >&6; }
10487objdir=$lt_cv_objdir
10488
10489
10490
10491
10492
10493cat >>confdefs.h <<_ACEOF
10494#define LT_OBJDIR "$lt_cv_objdir/"
10495_ACEOF
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513case $host_os in
10514aix3*)
10515  # AIX sometimes has problems with the GCC collect2 program.  For some
10516  # reason, if we set the COLLECT_NAMES environment variable, the problems
10517  # vanish in a puff of smoke.
10518  if test "X${COLLECT_NAMES+set}" != Xset; then
10519    COLLECT_NAMES=
10520    export COLLECT_NAMES
10521  fi
10522  ;;
10523esac
10524
10525# Sed substitution that helps us do robust quoting.  It backslashifies
10526# metacharacters that are still active within double-quoted strings.
10527sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10528
10529# Same as above, but do not quote variable references.
10530double_quote_subst='s/\(["`\\]\)/\\\1/g'
10531
10532# Sed substitution to delay expansion of an escaped shell variable in a
10533# double_quote_subst'ed string.
10534delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10535
10536# Sed substitution to delay expansion of an escaped single quote.
10537delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10538
10539# Sed substitution to avoid accidental globbing in evaled expressions
10540no_glob_subst='s/\*/\\\*/g'
10541
10542# Global variables:
10543ofile=libtool
10544can_build_shared=yes
10545
10546# All known linkers require a `.a' archive for static linking (except MSVC,
10547# which needs '.lib').
10548libext=a
10549
10550with_gnu_ld="$lt_cv_prog_gnu_ld"
10551
10552old_CC="$CC"
10553old_CFLAGS="$CFLAGS"
10554
10555# Set sane defaults for various variables
10556test -z "$CC" && CC=cc
10557test -z "$LTCC" && LTCC=$CC
10558test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10559test -z "$LD" && LD=ld
10560test -z "$ac_objext" && ac_objext=o
10561
10562for cc_temp in $compiler""; do
10563  case $cc_temp in
10564    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10565    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10566    \-*) ;;
10567    *) break;;
10568  esac
10569done
10570cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10571
10572
10573# Only perform the check for file, if the check method requires it
10574test -z "$MAGIC_CMD" && MAGIC_CMD=file
10575case $deplibs_check_method in
10576file_magic*)
10577  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10578    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10579$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10580if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10581  $as_echo_n "(cached) " >&6
10582else
10583  case $MAGIC_CMD in
10584[\\/*] |  ?:[\\/]*)
10585  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10586  ;;
10587*)
10588  lt_save_MAGIC_CMD="$MAGIC_CMD"
10589  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10590  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10591  for ac_dir in $ac_dummy; do
10592    IFS="$lt_save_ifs"
10593    test -z "$ac_dir" && ac_dir=.
10594    if test -f $ac_dir/${ac_tool_prefix}file; then
10595      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10596      if test -n "$file_magic_test_file"; then
10597	case $deplibs_check_method in
10598	"file_magic "*)
10599	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10600	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10601	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10602	    $EGREP "$file_magic_regex" > /dev/null; then
10603	    :
10604	  else
10605	    cat <<_LT_EOF 1>&2
10606
10607*** Warning: the command libtool uses to detect shared libraries,
10608*** $file_magic_cmd, produces output that libtool cannot recognize.
10609*** The result is that libtool may fail to recognize shared libraries
10610*** as such.  This will affect the creation of libtool libraries that
10611*** depend on shared libraries, but programs linked with such libtool
10612*** libraries will work regardless of this problem.  Nevertheless, you
10613*** may want to report the problem to your system manager and/or to
10614*** bug-libtool@gnu.org
10615
10616_LT_EOF
10617	  fi ;;
10618	esac
10619      fi
10620      break
10621    fi
10622  done
10623  IFS="$lt_save_ifs"
10624  MAGIC_CMD="$lt_save_MAGIC_CMD"
10625  ;;
10626esac
10627fi
10628
10629MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10630if test -n "$MAGIC_CMD"; then
10631  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10632$as_echo "$MAGIC_CMD" >&6; }
10633else
10634  { $as_echo "$as_me:$LINENO: result: no" >&5
10635$as_echo "no" >&6; }
10636fi
10637
10638
10639
10640
10641
10642if test -z "$lt_cv_path_MAGIC_CMD"; then
10643  if test -n "$ac_tool_prefix"; then
10644    { $as_echo "$as_me:$LINENO: checking for file" >&5
10645$as_echo_n "checking for file... " >&6; }
10646if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10647  $as_echo_n "(cached) " >&6
10648else
10649  case $MAGIC_CMD in
10650[\\/*] |  ?:[\\/]*)
10651  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10652  ;;
10653*)
10654  lt_save_MAGIC_CMD="$MAGIC_CMD"
10655  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10656  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10657  for ac_dir in $ac_dummy; do
10658    IFS="$lt_save_ifs"
10659    test -z "$ac_dir" && ac_dir=.
10660    if test -f $ac_dir/file; then
10661      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10662      if test -n "$file_magic_test_file"; then
10663	case $deplibs_check_method in
10664	"file_magic "*)
10665	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10666	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10667	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10668	    $EGREP "$file_magic_regex" > /dev/null; then
10669	    :
10670	  else
10671	    cat <<_LT_EOF 1>&2
10672
10673*** Warning: the command libtool uses to detect shared libraries,
10674*** $file_magic_cmd, produces output that libtool cannot recognize.
10675*** The result is that libtool may fail to recognize shared libraries
10676*** as such.  This will affect the creation of libtool libraries that
10677*** depend on shared libraries, but programs linked with such libtool
10678*** libraries will work regardless of this problem.  Nevertheless, you
10679*** may want to report the problem to your system manager and/or to
10680*** bug-libtool@gnu.org
10681
10682_LT_EOF
10683	  fi ;;
10684	esac
10685      fi
10686      break
10687    fi
10688  done
10689  IFS="$lt_save_ifs"
10690  MAGIC_CMD="$lt_save_MAGIC_CMD"
10691  ;;
10692esac
10693fi
10694
10695MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10696if test -n "$MAGIC_CMD"; then
10697  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10698$as_echo "$MAGIC_CMD" >&6; }
10699else
10700  { $as_echo "$as_me:$LINENO: result: no" >&5
10701$as_echo "no" >&6; }
10702fi
10703
10704
10705  else
10706    MAGIC_CMD=:
10707  fi
10708fi
10709
10710  fi
10711  ;;
10712esac
10713
10714# Use C for the default configuration in the libtool script
10715
10716lt_save_CC="$CC"
10717ac_ext=c
10718ac_cpp='$CPP $CPPFLAGS'
10719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721ac_compiler_gnu=$ac_cv_c_compiler_gnu
10722
10723
10724# Source file extension for C test sources.
10725ac_ext=c
10726
10727# Object file extension for compiled C test sources.
10728objext=o
10729objext=$objext
10730
10731# Code to be used in simple compile tests
10732lt_simple_compile_test_code="int some_variable = 0;"
10733
10734# Code to be used in simple link tests
10735lt_simple_link_test_code='int main(){return(0);}'
10736
10737
10738
10739
10740
10741
10742
10743# If no C compiler was specified, use CC.
10744LTCC=${LTCC-"$CC"}
10745
10746# If no C compiler flags were specified, use CFLAGS.
10747LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10748
10749# Allow CC to be a program name with arguments.
10750compiler=$CC
10751
10752# Save the default compiler, since it gets overwritten when the other
10753# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10754compiler_DEFAULT=$CC
10755
10756# save warnings/boilerplate of simple test code
10757ac_outfile=conftest.$ac_objext
10758echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10759eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10760_lt_compiler_boilerplate=`cat conftest.err`
10761$RM conftest*
10762
10763ac_outfile=conftest.$ac_objext
10764echo "$lt_simple_link_test_code" >conftest.$ac_ext
10765eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10766_lt_linker_boilerplate=`cat conftest.err`
10767$RM -r conftest*
10768
10769
10770if test -n "$compiler"; then
10771
10772lt_prog_compiler_no_builtin_flag=
10773
10774if test "$GCC" = yes; then
10775  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10776
10777  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10778$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10779if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10780  $as_echo_n "(cached) " >&6
10781else
10782  lt_cv_prog_compiler_rtti_exceptions=no
10783   ac_outfile=conftest.$ac_objext
10784   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10785   lt_compiler_flag="-fno-rtti -fno-exceptions"
10786   # Insert the option either (1) after the last *FLAGS variable, or
10787   # (2) before a word containing "conftest.", or (3) at the end.
10788   # Note that $ac_compile itself does not contain backslashes and begins
10789   # with a dollar sign (not a hyphen), so the echo should work correctly.
10790   # The option is referenced via a variable to avoid confusing sed.
10791   lt_compile=`echo "$ac_compile" | $SED \
10792   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10793   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10794   -e 's:$: $lt_compiler_flag:'`
10795   (eval echo "\"\$as_me:10795: $lt_compile\"" >&5)
10796   (eval "$lt_compile" 2>conftest.err)
10797   ac_status=$?
10798   cat conftest.err >&5
10799   echo "$as_me:10799: \$? = $ac_status" >&5
10800   if (exit $ac_status) && test -s "$ac_outfile"; then
10801     # The compiler can only warn and ignore the option if not recognized
10802     # So say no if there are warnings other than the usual output.
10803     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10804     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10805     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10806       lt_cv_prog_compiler_rtti_exceptions=yes
10807     fi
10808   fi
10809   $RM conftest*
10810
10811fi
10812{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10813$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10814
10815if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10816    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10817else
10818    :
10819fi
10820
10821fi
10822
10823
10824
10825
10826
10827
10828  lt_prog_compiler_wl=
10829lt_prog_compiler_pic=
10830lt_prog_compiler_static=
10831
10832{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10833$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10834
10835  if test "$GCC" = yes; then
10836    lt_prog_compiler_wl='-Wl,'
10837    lt_prog_compiler_static='-static'
10838
10839    case $host_os in
10840      aix*)
10841      # All AIX code is PIC.
10842      if test "$host_cpu" = ia64; then
10843	# AIX 5 now supports IA64 processor
10844	lt_prog_compiler_static='-Bstatic'
10845      fi
10846      ;;
10847
10848    amigaos*)
10849      case $host_cpu in
10850      powerpc)
10851            # see comment about AmigaOS4 .so support
10852            lt_prog_compiler_pic='-fPIC'
10853        ;;
10854      m68k)
10855            # FIXME: we need at least 68020 code to build shared libraries, but
10856            # adding the `-m68020' flag to GCC prevents building anything better,
10857            # like `-m68040'.
10858            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10859        ;;
10860      esac
10861      ;;
10862
10863    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10864      # PIC is the default for these OSes.
10865      ;;
10866
10867    mingw* | cygwin* | pw32* | os2* | cegcc*)
10868      # This hack is so that the source file can tell whether it is being
10869      # built for inclusion in a dll (and should export symbols for example).
10870      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10871      # (--disable-auto-import) libraries
10872      lt_prog_compiler_pic='-DDLL_EXPORT'
10873      ;;
10874
10875    darwin* | rhapsody*)
10876      # PIC is the default on this platform
10877      # Common symbols not allowed in MH_DYLIB files
10878      lt_prog_compiler_pic='-fno-common'
10879      ;;
10880
10881    hpux*)
10882      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10883      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10884      # sets the default TLS model and affects inlining.
10885      case $host_cpu in
10886      hppa*64*)
10887	# +Z the default
10888	;;
10889      *)
10890	lt_prog_compiler_pic='-fPIC'
10891	;;
10892      esac
10893      ;;
10894
10895    interix[3-9]*)
10896      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10897      # Instead, we relocate shared libraries at runtime.
10898      ;;
10899
10900    msdosdjgpp*)
10901      # Just because we use GCC doesn't mean we suddenly get shared libraries
10902      # on systems that don't support them.
10903      lt_prog_compiler_can_build_shared=no
10904      enable_shared=no
10905      ;;
10906
10907    *nto* | *qnx*)
10908      # QNX uses GNU C++, but need to define -shared option too, otherwise
10909      # it will coredump.
10910      lt_prog_compiler_pic='-fPIC -shared'
10911      ;;
10912
10913    sysv4*MP*)
10914      if test -d /usr/nec; then
10915	lt_prog_compiler_pic=-Kconform_pic
10916      fi
10917      ;;
10918
10919    *)
10920      lt_prog_compiler_pic='-fPIC'
10921      ;;
10922    esac
10923  else
10924    # PORTME Check for flag to pass linker flags through the system compiler.
10925    case $host_os in
10926    aix*)
10927      lt_prog_compiler_wl='-Wl,'
10928      if test "$host_cpu" = ia64; then
10929	# AIX 5 now supports IA64 processor
10930	lt_prog_compiler_static='-Bstatic'
10931      else
10932	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10933      fi
10934      ;;
10935
10936    mingw* | cygwin* | pw32* | os2* | cegcc*)
10937      # This hack is so that the source file can tell whether it is being
10938      # built for inclusion in a dll (and should export symbols for example).
10939      lt_prog_compiler_pic='-DDLL_EXPORT'
10940      ;;
10941
10942    hpux9* | hpux10* | hpux11*)
10943      lt_prog_compiler_wl='-Wl,'
10944      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10945      # not for PA HP-UX.
10946      case $host_cpu in
10947      hppa*64*|ia64*)
10948	# +Z the default
10949	;;
10950      *)
10951	lt_prog_compiler_pic='+Z'
10952	;;
10953      esac
10954      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10955      lt_prog_compiler_static='${wl}-a ${wl}archive'
10956      ;;
10957
10958    irix5* | irix6* | nonstopux*)
10959      lt_prog_compiler_wl='-Wl,'
10960      # PIC (with -KPIC) is the default.
10961      lt_prog_compiler_static='-non_shared'
10962      ;;
10963
10964    linux* | k*bsd*-gnu)
10965      case $cc_basename in
10966      # old Intel for x86_64 which still supported -KPIC.
10967      ecc*)
10968	lt_prog_compiler_wl='-Wl,'
10969	lt_prog_compiler_pic='-KPIC'
10970	lt_prog_compiler_static='-static'
10971        ;;
10972      # icc used to be incompatible with GCC.
10973      # ICC 10 doesn't accept -KPIC any more.
10974      icc* | ifort*)
10975	lt_prog_compiler_wl='-Wl,'
10976	lt_prog_compiler_pic='-fPIC'
10977	lt_prog_compiler_static='-static'
10978        ;;
10979      # Lahey Fortran 8.1.
10980      lf95*)
10981	lt_prog_compiler_wl='-Wl,'
10982	lt_prog_compiler_pic='--shared'
10983	lt_prog_compiler_static='--static'
10984	;;
10985      pgcc* | pgf77* | pgf90* | pgf95*)
10986        # Portland Group compilers (*not* the Pentium gcc compiler,
10987	# which looks to be a dead project)
10988	lt_prog_compiler_wl='-Wl,'
10989	lt_prog_compiler_pic='-fpic'
10990	lt_prog_compiler_static='-Bstatic'
10991        ;;
10992      ccc*)
10993        lt_prog_compiler_wl='-Wl,'
10994        # All Alpha code is PIC.
10995        lt_prog_compiler_static='-non_shared'
10996        ;;
10997      xl*)
10998	# IBM XL C 8.0/Fortran 10.1 on PPC
10999	lt_prog_compiler_wl='-Wl,'
11000	lt_prog_compiler_pic='-qpic'
11001	lt_prog_compiler_static='-qstaticlink'
11002	;;
11003      *)
11004	case `$CC -V 2>&1 | sed 5q` in
11005	*Sun\ C*)
11006	  # Sun C 5.9
11007	  lt_prog_compiler_pic='-KPIC'
11008	  lt_prog_compiler_static='-Bstatic'
11009	  lt_prog_compiler_wl='-Wl,'
11010	  ;;
11011	*Sun\ F*)
11012	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11013	  lt_prog_compiler_pic='-KPIC'
11014	  lt_prog_compiler_static='-Bstatic'
11015	  lt_prog_compiler_wl=''
11016	  ;;
11017	esac
11018	;;
11019      esac
11020      ;;
11021
11022    newsos6)
11023      lt_prog_compiler_pic='-KPIC'
11024      lt_prog_compiler_static='-Bstatic'
11025      ;;
11026
11027    *nto* | *qnx*)
11028      # QNX uses GNU C++, but need to define -shared option too, otherwise
11029      # it will coredump.
11030      lt_prog_compiler_pic='-fPIC -shared'
11031      ;;
11032
11033    osf3* | osf4* | osf5*)
11034      lt_prog_compiler_wl='-Wl,'
11035      # All OSF/1 code is PIC.
11036      lt_prog_compiler_static='-non_shared'
11037      ;;
11038
11039    rdos*)
11040      lt_prog_compiler_static='-non_shared'
11041      ;;
11042
11043    solaris*)
11044      lt_prog_compiler_pic='-KPIC'
11045      lt_prog_compiler_static='-Bstatic'
11046      case $cc_basename in
11047      f77* | f90* | f95*)
11048	lt_prog_compiler_wl='-Qoption ld ';;
11049      *)
11050	lt_prog_compiler_wl='-Wl,';;
11051      esac
11052      ;;
11053
11054    sunos4*)
11055      lt_prog_compiler_wl='-Qoption ld '
11056      lt_prog_compiler_pic='-PIC'
11057      lt_prog_compiler_static='-Bstatic'
11058      ;;
11059
11060    sysv4 | sysv4.2uw2* | sysv4.3*)
11061      lt_prog_compiler_wl='-Wl,'
11062      lt_prog_compiler_pic='-KPIC'
11063      lt_prog_compiler_static='-Bstatic'
11064      ;;
11065
11066    sysv4*MP*)
11067      if test -d /usr/nec ;then
11068	lt_prog_compiler_pic='-Kconform_pic'
11069	lt_prog_compiler_static='-Bstatic'
11070      fi
11071      ;;
11072
11073    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11074      lt_prog_compiler_wl='-Wl,'
11075      lt_prog_compiler_pic='-KPIC'
11076      lt_prog_compiler_static='-Bstatic'
11077      ;;
11078
11079    unicos*)
11080      lt_prog_compiler_wl='-Wl,'
11081      lt_prog_compiler_can_build_shared=no
11082      ;;
11083
11084    uts4*)
11085      lt_prog_compiler_pic='-pic'
11086      lt_prog_compiler_static='-Bstatic'
11087      ;;
11088
11089    *)
11090      lt_prog_compiler_can_build_shared=no
11091      ;;
11092    esac
11093  fi
11094
11095case $host_os in
11096  # For platforms which do not support PIC, -DPIC is meaningless:
11097  *djgpp*)
11098    lt_prog_compiler_pic=
11099    ;;
11100  *)
11101    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11102    ;;
11103esac
11104{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11105$as_echo "$lt_prog_compiler_pic" >&6; }
11106
11107
11108
11109
11110
11111
11112#
11113# Check to make sure the PIC flag actually works.
11114#
11115if test -n "$lt_prog_compiler_pic"; then
11116  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11117$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11118if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11119  $as_echo_n "(cached) " >&6
11120else
11121  lt_cv_prog_compiler_pic_works=no
11122   ac_outfile=conftest.$ac_objext
11123   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11124   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11125   # Insert the option either (1) after the last *FLAGS variable, or
11126   # (2) before a word containing "conftest.", or (3) at the end.
11127   # Note that $ac_compile itself does not contain backslashes and begins
11128   # with a dollar sign (not a hyphen), so the echo should work correctly.
11129   # The option is referenced via a variable to avoid confusing sed.
11130   lt_compile=`echo "$ac_compile" | $SED \
11131   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11132   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11133   -e 's:$: $lt_compiler_flag:'`
11134   (eval echo "\"\$as_me:11134: $lt_compile\"" >&5)
11135   (eval "$lt_compile" 2>conftest.err)
11136   ac_status=$?
11137   cat conftest.err >&5
11138   echo "$as_me:11138: \$? = $ac_status" >&5
11139   if (exit $ac_status) && test -s "$ac_outfile"; then
11140     # The compiler can only warn and ignore the option if not recognized
11141     # So say no if there are warnings other than the usual output.
11142     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11143     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11144     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11145       lt_cv_prog_compiler_pic_works=yes
11146     fi
11147   fi
11148   $RM conftest*
11149
11150fi
11151{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11152$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11153
11154if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11155    case $lt_prog_compiler_pic in
11156     "" | " "*) ;;
11157     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11158     esac
11159else
11160    lt_prog_compiler_pic=
11161     lt_prog_compiler_can_build_shared=no
11162fi
11163
11164fi
11165
11166
11167
11168
11169
11170
11171#
11172# Check to make sure the static flag actually works.
11173#
11174wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11175{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11176$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11177if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11178  $as_echo_n "(cached) " >&6
11179else
11180  lt_cv_prog_compiler_static_works=no
11181   save_LDFLAGS="$LDFLAGS"
11182   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11183   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11184   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11185     # The linker can only warn and ignore the option if not recognized
11186     # So say no if there are warnings
11187     if test -s conftest.err; then
11188       # Append any errors to the config.log.
11189       cat conftest.err 1>&5
11190       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11191       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11192       if diff conftest.exp conftest.er2 >/dev/null; then
11193         lt_cv_prog_compiler_static_works=yes
11194       fi
11195     else
11196       lt_cv_prog_compiler_static_works=yes
11197     fi
11198   fi
11199   $RM -r conftest*
11200   LDFLAGS="$save_LDFLAGS"
11201
11202fi
11203{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11204$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11205
11206if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11207    :
11208else
11209    lt_prog_compiler_static=
11210fi
11211
11212
11213
11214
11215
11216
11217
11218  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11219$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11220if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11221  $as_echo_n "(cached) " >&6
11222else
11223  lt_cv_prog_compiler_c_o=no
11224   $RM -r conftest 2>/dev/null
11225   mkdir conftest
11226   cd conftest
11227   mkdir out
11228   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11229
11230   lt_compiler_flag="-o out/conftest2.$ac_objext"
11231   # Insert the option either (1) after the last *FLAGS variable, or
11232   # (2) before a word containing "conftest.", or (3) at the end.
11233   # Note that $ac_compile itself does not contain backslashes and begins
11234   # with a dollar sign (not a hyphen), so the echo should work correctly.
11235   lt_compile=`echo "$ac_compile" | $SED \
11236   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11237   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11238   -e 's:$: $lt_compiler_flag:'`
11239   (eval echo "\"\$as_me:11239: $lt_compile\"" >&5)
11240   (eval "$lt_compile" 2>out/conftest.err)
11241   ac_status=$?
11242   cat out/conftest.err >&5
11243   echo "$as_me:11243: \$? = $ac_status" >&5
11244   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11245   then
11246     # The compiler can only warn and ignore the option if not recognized
11247     # So say no if there are warnings
11248     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11249     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11250     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11251       lt_cv_prog_compiler_c_o=yes
11252     fi
11253   fi
11254   chmod u+w . 2>&5
11255   $RM conftest*
11256   # SGI C++ compiler will create directory out/ii_files/ for
11257   # template instantiation
11258   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11259   $RM out/* && rmdir out
11260   cd ..
11261   $RM -r conftest
11262   $RM conftest*
11263
11264fi
11265{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11266$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11267
11268
11269
11270
11271
11272
11273  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11274$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11275if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11276  $as_echo_n "(cached) " >&6
11277else
11278  lt_cv_prog_compiler_c_o=no
11279   $RM -r conftest 2>/dev/null
11280   mkdir conftest
11281   cd conftest
11282   mkdir out
11283   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11284
11285   lt_compiler_flag="-o out/conftest2.$ac_objext"
11286   # Insert the option either (1) after the last *FLAGS variable, or
11287   # (2) before a word containing "conftest.", or (3) at the end.
11288   # Note that $ac_compile itself does not contain backslashes and begins
11289   # with a dollar sign (not a hyphen), so the echo should work correctly.
11290   lt_compile=`echo "$ac_compile" | $SED \
11291   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11292   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11293   -e 's:$: $lt_compiler_flag:'`
11294   (eval echo "\"\$as_me:11294: $lt_compile\"" >&5)
11295   (eval "$lt_compile" 2>out/conftest.err)
11296   ac_status=$?
11297   cat out/conftest.err >&5
11298   echo "$as_me:11298: \$? = $ac_status" >&5
11299   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11300   then
11301     # The compiler can only warn and ignore the option if not recognized
11302     # So say no if there are warnings
11303     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11304     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11305     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11306       lt_cv_prog_compiler_c_o=yes
11307     fi
11308   fi
11309   chmod u+w . 2>&5
11310   $RM conftest*
11311   # SGI C++ compiler will create directory out/ii_files/ for
11312   # template instantiation
11313   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11314   $RM out/* && rmdir out
11315   cd ..
11316   $RM -r conftest
11317   $RM conftest*
11318
11319fi
11320{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11321$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11322
11323
11324
11325
11326hard_links="nottested"
11327if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11328  # do not overwrite the value of need_locks provided by the user
11329  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11330$as_echo_n "checking if we can lock with hard links... " >&6; }
11331  hard_links=yes
11332  $RM conftest*
11333  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11334  touch conftest.a
11335  ln conftest.a conftest.b 2>&5 || hard_links=no
11336  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11337  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11338$as_echo "$hard_links" >&6; }
11339  if test "$hard_links" = no; then
11340    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11341$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11342    need_locks=warn
11343  fi
11344else
11345  need_locks=no
11346fi
11347
11348
11349
11350
11351
11352
11353  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11354$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11355
11356  runpath_var=
11357  allow_undefined_flag=
11358  always_export_symbols=no
11359  archive_cmds=
11360  archive_expsym_cmds=
11361  compiler_needs_object=no
11362  enable_shared_with_static_runtimes=no
11363  export_dynamic_flag_spec=
11364  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11365  hardcode_automatic=no
11366  hardcode_direct=no
11367  hardcode_direct_absolute=no
11368  hardcode_libdir_flag_spec=
11369  hardcode_libdir_flag_spec_ld=
11370  hardcode_libdir_separator=
11371  hardcode_minus_L=no
11372  hardcode_shlibpath_var=unsupported
11373  inherit_rpath=no
11374  link_all_deplibs=unknown
11375  module_cmds=
11376  module_expsym_cmds=
11377  old_archive_from_new_cmds=
11378  old_archive_from_expsyms_cmds=
11379  thread_safe_flag_spec=
11380  whole_archive_flag_spec=
11381  # include_expsyms should be a list of space-separated symbols to be *always*
11382  # included in the symbol list
11383  include_expsyms=
11384  # exclude_expsyms can be an extended regexp of symbols to exclude
11385  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11386  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11387  # as well as any symbol that contains `d'.
11388  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11389  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11390  # platforms (ab)use it in PIC code, but their linkers get confused if
11391  # the symbol is explicitly referenced.  Since portable code cannot
11392  # rely on this symbol name, it's probably fine to never include it in
11393  # preloaded symbol tables.
11394  # Exclude shared library initialization/finalization symbols.
11395  extract_expsyms_cmds=
11396
11397  case $host_os in
11398  cygwin* | mingw* | pw32* | cegcc*)
11399    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11400    # When not using gcc, we currently assume that we are using
11401    # Microsoft Visual C++.
11402    if test "$GCC" != yes; then
11403      with_gnu_ld=no
11404    fi
11405    ;;
11406  interix*)
11407    # we just hope/assume this is gcc and not c89 (= MSVC++)
11408    with_gnu_ld=yes
11409    ;;
11410  openbsd*)
11411    with_gnu_ld=no
11412    ;;
11413  esac
11414
11415  ld_shlibs=yes
11416  if test "$with_gnu_ld" = yes; then
11417    # If archive_cmds runs LD, not CC, wlarc should be empty
11418    wlarc='${wl}'
11419
11420    # Set some defaults for GNU ld with shared library support. These
11421    # are reset later if shared libraries are not supported. Putting them
11422    # here allows them to be overridden if necessary.
11423    runpath_var=LD_RUN_PATH
11424    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11425    export_dynamic_flag_spec='${wl}--export-dynamic'
11426    # ancient GNU ld didn't support --whole-archive et. al.
11427    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11428      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11429    else
11430      whole_archive_flag_spec=
11431    fi
11432    supports_anon_versioning=no
11433    case `$LD -v 2>&1` in
11434      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11435      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11436      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11437      *\ 2.11.*) ;; # other 2.11 versions
11438      *) supports_anon_versioning=yes ;;
11439    esac
11440
11441    # See if GNU ld supports shared libraries.
11442    case $host_os in
11443    aix[3-9]*)
11444      # On AIX/PPC, the GNU linker is very broken
11445      if test "$host_cpu" != ia64; then
11446	ld_shlibs=no
11447	cat <<_LT_EOF 1>&2
11448
11449*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11450*** to be unable to reliably create shared libraries on AIX.
11451*** Therefore, libtool is disabling shared libraries support.  If you
11452*** really care for shared libraries, you may want to modify your PATH
11453*** so that a non-GNU linker is found, and then restart.
11454
11455_LT_EOF
11456      fi
11457      ;;
11458
11459    amigaos*)
11460      case $host_cpu in
11461      powerpc)
11462            # see comment about AmigaOS4 .so support
11463            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11464            archive_expsym_cmds=''
11465        ;;
11466      m68k)
11467            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)'
11468            hardcode_libdir_flag_spec='-L$libdir'
11469            hardcode_minus_L=yes
11470        ;;
11471      esac
11472      ;;
11473
11474    beos*)
11475      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11476	allow_undefined_flag=unsupported
11477	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11478	# support --undefined.  This deserves some investigation.  FIXME
11479	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11480      else
11481	ld_shlibs=no
11482      fi
11483      ;;
11484
11485    cygwin* | mingw* | pw32* | cegcc*)
11486      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11487      # as there is no search path for DLLs.
11488      hardcode_libdir_flag_spec='-L$libdir'
11489      allow_undefined_flag=unsupported
11490      always_export_symbols=no
11491      enable_shared_with_static_runtimes=yes
11492      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11493
11494      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11495        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11496	# If the export-symbols file already is a .def file (1st line
11497	# is EXPORTS), use it as is; otherwise, prepend...
11498	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11499	  cp $export_symbols $output_objdir/$soname.def;
11500	else
11501	  echo EXPORTS > $output_objdir/$soname.def;
11502	  cat $export_symbols >> $output_objdir/$soname.def;
11503	fi~
11504	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11505      else
11506	ld_shlibs=no
11507      fi
11508      ;;
11509
11510    interix[3-9]*)
11511      hardcode_direct=no
11512      hardcode_shlibpath_var=no
11513      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11514      export_dynamic_flag_spec='${wl}-E'
11515      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11516      # Instead, shared libraries are loaded at an image base (0x10000000 by
11517      # default) and relocated if they conflict, which is a slow very memory
11518      # consuming and fragmenting process.  To avoid this, we pick a random,
11519      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11520      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11521      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11522      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'
11523      ;;
11524
11525    gnu* | linux* | tpf* | k*bsd*-gnu)
11526      tmp_diet=no
11527      if test "$host_os" = linux-dietlibc; then
11528	case $cc_basename in
11529	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11530	esac
11531      fi
11532      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11533	 && test "$tmp_diet" = no
11534      then
11535	tmp_addflag=
11536	tmp_sharedflag='-shared'
11537	case $cc_basename,$host_cpu in
11538        pgcc*)				# Portland Group C compiler
11539	  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'
11540	  tmp_addflag=' $pic_flag'
11541	  ;;
11542	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11543	  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'
11544	  tmp_addflag=' $pic_flag -Mnomain' ;;
11545	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11546	  tmp_addflag=' -i_dynamic' ;;
11547	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11548	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11549	ifc* | ifort*)			# Intel Fortran compiler
11550	  tmp_addflag=' -nofor_main' ;;
11551	lf95*)				# Lahey Fortran 8.1
11552	  whole_archive_flag_spec=
11553	  tmp_sharedflag='--shared' ;;
11554	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
11555	  tmp_sharedflag='-qmkshrobj'
11556	  tmp_addflag= ;;
11557	esac
11558	case `$CC -V 2>&1 | sed 5q` in
11559	*Sun\ C*)			# Sun C 5.9
11560	  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'
11561	  compiler_needs_object=yes
11562	  tmp_sharedflag='-G' ;;
11563	*Sun\ F*)			# Sun Fortran 8.3
11564	  tmp_sharedflag='-G' ;;
11565	esac
11566	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11567
11568        if test "x$supports_anon_versioning" = xyes; then
11569          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11570	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11571	    echo "local: *; };" >> $output_objdir/$libname.ver~
11572	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11573        fi
11574
11575	case $cc_basename in
11576	xlf*)
11577	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11578	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11579	  hardcode_libdir_flag_spec=
11580	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11581	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11582	  if test "x$supports_anon_versioning" = xyes; then
11583	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11584	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11585	      echo "local: *; };" >> $output_objdir/$libname.ver~
11586	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11587	  fi
11588	  ;;
11589	esac
11590      else
11591        ld_shlibs=no
11592      fi
11593      ;;
11594
11595    netbsd* | netbsdelf*-gnu)
11596      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11597	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11598	wlarc=
11599      else
11600	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11601	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11602      fi
11603      ;;
11604
11605    solaris*)
11606      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11607	ld_shlibs=no
11608	cat <<_LT_EOF 1>&2
11609
11610*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11611*** create shared libraries on Solaris systems.  Therefore, libtool
11612*** is disabling shared libraries support.  We urge you to upgrade GNU
11613*** binutils to release 2.9.1 or newer.  Another option is to modify
11614*** your PATH or compiler configuration so that the native linker is
11615*** used, and then restart.
11616
11617_LT_EOF
11618      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11619	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11620	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11621      else
11622	ld_shlibs=no
11623      fi
11624      ;;
11625
11626    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11627      case `$LD -v 2>&1` in
11628        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11629	ld_shlibs=no
11630	cat <<_LT_EOF 1>&2
11631
11632*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11633*** reliably create shared libraries on SCO systems.  Therefore, libtool
11634*** is disabling shared libraries support.  We urge you to upgrade GNU
11635*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11636*** your PATH or compiler configuration so that the native linker is
11637*** used, and then restart.
11638
11639_LT_EOF
11640	;;
11641	*)
11642	  # For security reasons, it is highly recommended that you always
11643	  # use absolute paths for naming shared libraries, and exclude the
11644	  # DT_RUNPATH tag from executables and libraries.  But doing so
11645	  # requires that you compile everything twice, which is a pain.
11646	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11647	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11648	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11649	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11650	  else
11651	    ld_shlibs=no
11652	  fi
11653	;;
11654      esac
11655      ;;
11656
11657    sunos4*)
11658      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11659      wlarc=
11660      hardcode_direct=yes
11661      hardcode_shlibpath_var=no
11662      ;;
11663
11664    *)
11665      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11666	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11667	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11668      else
11669	ld_shlibs=no
11670      fi
11671      ;;
11672    esac
11673
11674    if test "$ld_shlibs" = no; then
11675      runpath_var=
11676      hardcode_libdir_flag_spec=
11677      export_dynamic_flag_spec=
11678      whole_archive_flag_spec=
11679    fi
11680  else
11681    # PORTME fill in a description of your system's linker (not GNU ld)
11682    case $host_os in
11683    aix3*)
11684      allow_undefined_flag=unsupported
11685      always_export_symbols=yes
11686      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'
11687      # Note: this linker hardcodes the directories in LIBPATH if there
11688      # are no directories specified by -L.
11689      hardcode_minus_L=yes
11690      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11691	# Neither direct hardcoding nor static linking is supported with a
11692	# broken collect2.
11693	hardcode_direct=unsupported
11694      fi
11695      ;;
11696
11697    aix[4-9]*)
11698      if test "$host_cpu" = ia64; then
11699	# On IA64, the linker does run time linking by default, so we don't
11700	# have to do anything special.
11701	aix_use_runtimelinking=no
11702	exp_sym_flag='-Bexport'
11703	no_entry_flag=""
11704      else
11705	# If we're using GNU nm, then we don't want the "-C" option.
11706	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11707	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11708	  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'
11709	else
11710	  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'
11711	fi
11712	aix_use_runtimelinking=no
11713
11714	# Test if we are trying to use run time linking or normal
11715	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11716	# need to do runtime linking.
11717	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11718	  for ld_flag in $LDFLAGS; do
11719	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11720	    aix_use_runtimelinking=yes
11721	    break
11722	  fi
11723	  done
11724	  ;;
11725	esac
11726
11727	exp_sym_flag='-bexport'
11728	no_entry_flag='-bnoentry'
11729      fi
11730
11731      # When large executables or shared objects are built, AIX ld can
11732      # have problems creating the table of contents.  If linking a library
11733      # or program results in "error TOC overflow" add -mminimal-toc to
11734      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11735      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11736
11737      archive_cmds=''
11738      hardcode_direct=yes
11739      hardcode_direct_absolute=yes
11740      hardcode_libdir_separator=':'
11741      link_all_deplibs=yes
11742      file_list_spec='${wl}-f,'
11743
11744      if test "$GCC" = yes; then
11745	case $host_os in aix4.[012]|aix4.[012].*)
11746	# We only want to do this on AIX 4.2 and lower, the check
11747	# below for broken collect2 doesn't work under 4.3+
11748	  collect2name=`${CC} -print-prog-name=collect2`
11749	  if test -f "$collect2name" &&
11750	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11751	  then
11752	  # We have reworked collect2
11753	  :
11754	  else
11755	  # We have old collect2
11756	  hardcode_direct=unsupported
11757	  # It fails to find uninstalled libraries when the uninstalled
11758	  # path is not listed in the libpath.  Setting hardcode_minus_L
11759	  # to unsupported forces relinking
11760	  hardcode_minus_L=yes
11761	  hardcode_libdir_flag_spec='-L$libdir'
11762	  hardcode_libdir_separator=
11763	  fi
11764	  ;;
11765	esac
11766	shared_flag='-shared'
11767	if test "$aix_use_runtimelinking" = yes; then
11768	  shared_flag="$shared_flag "'${wl}-G'
11769	fi
11770	link_all_deplibs=no
11771      else
11772	# not using gcc
11773	if test "$host_cpu" = ia64; then
11774	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11775	# chokes on -Wl,-G. The following line is correct:
11776	  shared_flag='-G'
11777	else
11778	  if test "$aix_use_runtimelinking" = yes; then
11779	    shared_flag='${wl}-G'
11780	  else
11781	    shared_flag='${wl}-bM:SRE'
11782	  fi
11783	fi
11784      fi
11785
11786      export_dynamic_flag_spec='${wl}-bexpall'
11787      # It seems that -bexpall does not export symbols beginning with
11788      # underscore (_), so it is better to generate a list of symbols to export.
11789      always_export_symbols=yes
11790      if test "$aix_use_runtimelinking" = yes; then
11791	# Warning - without using the other runtime loading flags (-brtl),
11792	# -berok will link without error, but may produce a broken library.
11793	allow_undefined_flag='-berok'
11794        # Determine the default libpath from the value encoded in an
11795        # empty executable.
11796        cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h.  */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h.  */
11802
11803int
11804main ()
11805{
11806
11807  ;
11808  return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext conftest$ac_exeext
11812if { (ac_try="$ac_link"
11813case "(($ac_try" in
11814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815  *) ac_try_echo=$ac_try;;
11816esac
11817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11818$as_echo "$ac_try_echo") >&5
11819  (eval "$ac_link") 2>conftest.er1
11820  ac_status=$?
11821  grep -v '^ *+' conftest.er1 >conftest.err
11822  rm -f conftest.er1
11823  cat conftest.err >&5
11824  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825  (exit $ac_status); } && {
11826	 test -z "$ac_c_werror_flag" ||
11827	 test ! -s conftest.err
11828       } && test -s conftest$ac_exeext && {
11829	 test "$cross_compiling" = yes ||
11830	 $as_test_x conftest$ac_exeext
11831       }; then
11832
11833lt_aix_libpath_sed='
11834    /Import File Strings/,/^$/ {
11835	/^0/ {
11836	    s/^0  *\(.*\)$/\1/
11837	    p
11838	}
11839    }'
11840aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11841# Check for a 64-bit object if we didn't find anything.
11842if test -z "$aix_libpath"; then
11843  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11844fi
11845else
11846  $as_echo "$as_me: failed program was:" >&5
11847sed 's/^/| /' conftest.$ac_ext >&5
11848
11849
11850fi
11851
11852rm -rf conftest.dSYM
11853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11854      conftest$ac_exeext conftest.$ac_ext
11855if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11856
11857        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11858        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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11859      else
11860	if test "$host_cpu" = ia64; then
11861	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11862	  allow_undefined_flag="-z nodefs"
11863	  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"
11864	else
11865	 # Determine the default libpath from the value encoded in an
11866	 # empty executable.
11867	 cat >conftest.$ac_ext <<_ACEOF
11868/* confdefs.h.  */
11869_ACEOF
11870cat confdefs.h >>conftest.$ac_ext
11871cat >>conftest.$ac_ext <<_ACEOF
11872/* end confdefs.h.  */
11873
11874int
11875main ()
11876{
11877
11878  ;
11879  return 0;
11880}
11881_ACEOF
11882rm -f conftest.$ac_objext conftest$ac_exeext
11883if { (ac_try="$ac_link"
11884case "(($ac_try" in
11885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886  *) ac_try_echo=$ac_try;;
11887esac
11888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11889$as_echo "$ac_try_echo") >&5
11890  (eval "$ac_link") 2>conftest.er1
11891  ac_status=$?
11892  grep -v '^ *+' conftest.er1 >conftest.err
11893  rm -f conftest.er1
11894  cat conftest.err >&5
11895  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896  (exit $ac_status); } && {
11897	 test -z "$ac_c_werror_flag" ||
11898	 test ! -s conftest.err
11899       } && test -s conftest$ac_exeext && {
11900	 test "$cross_compiling" = yes ||
11901	 $as_test_x conftest$ac_exeext
11902       }; then
11903
11904lt_aix_libpath_sed='
11905    /Import File Strings/,/^$/ {
11906	/^0/ {
11907	    s/^0  *\(.*\)$/\1/
11908	    p
11909	}
11910    }'
11911aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11912# Check for a 64-bit object if we didn't find anything.
11913if test -z "$aix_libpath"; then
11914  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11915fi
11916else
11917  $as_echo "$as_me: failed program was:" >&5
11918sed 's/^/| /' conftest.$ac_ext >&5
11919
11920
11921fi
11922
11923rm -rf conftest.dSYM
11924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11925      conftest$ac_exeext conftest.$ac_ext
11926if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11927
11928	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11929	  # Warning - without using the other run time loading flags,
11930	  # -berok will link without error, but may produce a broken library.
11931	  no_undefined_flag=' ${wl}-bernotok'
11932	  allow_undefined_flag=' ${wl}-berok'
11933	  # Exported symbols can be pulled into shared objects from archives
11934	  whole_archive_flag_spec='$convenience'
11935	  archive_cmds_need_lc=yes
11936	  # This is similar to how AIX traditionally builds its shared libraries.
11937	  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'
11938	fi
11939      fi
11940      ;;
11941
11942    amigaos*)
11943      case $host_cpu in
11944      powerpc)
11945            # see comment about AmigaOS4 .so support
11946            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11947            archive_expsym_cmds=''
11948        ;;
11949      m68k)
11950            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)'
11951            hardcode_libdir_flag_spec='-L$libdir'
11952            hardcode_minus_L=yes
11953        ;;
11954      esac
11955      ;;
11956
11957    bsdi[45]*)
11958      export_dynamic_flag_spec=-rdynamic
11959      ;;
11960
11961    cygwin* | mingw* | pw32* | cegcc*)
11962      # When not using gcc, we currently assume that we are using
11963      # Microsoft Visual C++.
11964      # hardcode_libdir_flag_spec is actually meaningless, as there is
11965      # no search path for DLLs.
11966      hardcode_libdir_flag_spec=' '
11967      allow_undefined_flag=unsupported
11968      # Tell ltmain to make .lib files, not .a files.
11969      libext=lib
11970      # Tell ltmain to make .dll files, not .so files.
11971      shrext_cmds=".dll"
11972      # FIXME: Setting linknames here is a bad hack.
11973      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11974      # The linker will automatically build a .lib file if we build a DLL.
11975      old_archive_from_new_cmds='true'
11976      # FIXME: Should let the user specify the lib program.
11977      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11978      fix_srcfile_path='`cygpath -w "$srcfile"`'
11979      enable_shared_with_static_runtimes=yes
11980      ;;
11981
11982    darwin* | rhapsody*)
11983
11984
11985  archive_cmds_need_lc=no
11986  hardcode_direct=no
11987  hardcode_automatic=yes
11988  hardcode_shlibpath_var=unsupported
11989  whole_archive_flag_spec=''
11990  link_all_deplibs=yes
11991  allow_undefined_flag="$_lt_dar_allow_undefined"
11992  case $cc_basename in
11993     ifort*) _lt_dar_can_shared=yes ;;
11994     *) _lt_dar_can_shared=$GCC ;;
11995  esac
11996  if test "$_lt_dar_can_shared" = "yes"; then
11997    output_verbose_link_cmd=echo
11998    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11999    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12000    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}"
12001    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}"
12002
12003  else
12004  ld_shlibs=no
12005  fi
12006
12007      ;;
12008
12009    dgux*)
12010      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12011      hardcode_libdir_flag_spec='-L$libdir'
12012      hardcode_shlibpath_var=no
12013      ;;
12014
12015    freebsd1*)
12016      ld_shlibs=no
12017      ;;
12018
12019    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12020    # support.  Future versions do this automatically, but an explicit c++rt0.o
12021    # does not break anything, and helps significantly (at the cost of a little
12022    # extra space).
12023    freebsd2.2*)
12024      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12025      hardcode_libdir_flag_spec='-R$libdir'
12026      hardcode_direct=yes
12027      hardcode_shlibpath_var=no
12028      ;;
12029
12030    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12031    freebsd2*)
12032      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12033      hardcode_direct=yes
12034      hardcode_minus_L=yes
12035      hardcode_shlibpath_var=no
12036      ;;
12037
12038    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12039    freebsd* | dragonfly*)
12040      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12041      hardcode_libdir_flag_spec='-R$libdir'
12042      hardcode_direct=yes
12043      hardcode_shlibpath_var=no
12044      ;;
12045
12046    hpux9*)
12047      if test "$GCC" = yes; then
12048	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'
12049      else
12050	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'
12051      fi
12052      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12053      hardcode_libdir_separator=:
12054      hardcode_direct=yes
12055
12056      # hardcode_minus_L: Not really in the search PATH,
12057      # but as the default location of the library.
12058      hardcode_minus_L=yes
12059      export_dynamic_flag_spec='${wl}-E'
12060      ;;
12061
12062    hpux10*)
12063      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12064	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12065      else
12066	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12067      fi
12068      if test "$with_gnu_ld" = no; then
12069	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12070	hardcode_libdir_flag_spec_ld='+b $libdir'
12071	hardcode_libdir_separator=:
12072	hardcode_direct=yes
12073	hardcode_direct_absolute=yes
12074	export_dynamic_flag_spec='${wl}-E'
12075	# hardcode_minus_L: Not really in the search PATH,
12076	# but as the default location of the library.
12077	hardcode_minus_L=yes
12078      fi
12079      ;;
12080
12081    hpux11*)
12082      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12083	case $host_cpu in
12084	hppa*64*)
12085	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12086	  ;;
12087	ia64*)
12088	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12089	  ;;
12090	*)
12091	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12092	  ;;
12093	esac
12094      else
12095	case $host_cpu in
12096	hppa*64*)
12097	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12098	  ;;
12099	ia64*)
12100	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12101	  ;;
12102	*)
12103	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12104	  ;;
12105	esac
12106      fi
12107      if test "$with_gnu_ld" = no; then
12108	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12109	hardcode_libdir_separator=:
12110
12111	case $host_cpu in
12112	hppa*64*|ia64*)
12113	  hardcode_direct=no
12114	  hardcode_shlibpath_var=no
12115	  ;;
12116	*)
12117	  hardcode_direct=yes
12118	  hardcode_direct_absolute=yes
12119	  export_dynamic_flag_spec='${wl}-E'
12120
12121	  # hardcode_minus_L: Not really in the search PATH,
12122	  # but as the default location of the library.
12123	  hardcode_minus_L=yes
12124	  ;;
12125	esac
12126      fi
12127      ;;
12128
12129    irix5* | irix6* | nonstopux*)
12130      if test "$GCC" = yes; then
12131	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12132	# Try to use the -exported_symbol ld option, if it does not
12133	# work, assume that -exports_file does not work either and
12134	# implicitly export all symbols.
12135        save_LDFLAGS="$LDFLAGS"
12136        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12137        cat >conftest.$ac_ext <<_ACEOF
12138int foo(void) {}
12139_ACEOF
12140rm -f conftest.$ac_objext conftest$ac_exeext
12141if { (ac_try="$ac_link"
12142case "(($ac_try" in
12143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144  *) ac_try_echo=$ac_try;;
12145esac
12146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12147$as_echo "$ac_try_echo") >&5
12148  (eval "$ac_link") 2>conftest.er1
12149  ac_status=$?
12150  grep -v '^ *+' conftest.er1 >conftest.err
12151  rm -f conftest.er1
12152  cat conftest.err >&5
12153  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154  (exit $ac_status); } && {
12155	 test -z "$ac_c_werror_flag" ||
12156	 test ! -s conftest.err
12157       } && test -s conftest$ac_exeext && {
12158	 test "$cross_compiling" = yes ||
12159	 $as_test_x conftest$ac_exeext
12160       }; then
12161  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12162
12163else
12164  $as_echo "$as_me: failed program was:" >&5
12165sed 's/^/| /' conftest.$ac_ext >&5
12166
12167
12168fi
12169
12170rm -rf conftest.dSYM
12171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12172      conftest$ac_exeext conftest.$ac_ext
12173        LDFLAGS="$save_LDFLAGS"
12174      else
12175	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12176	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12177      fi
12178      archive_cmds_need_lc='no'
12179      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12180      hardcode_libdir_separator=:
12181      inherit_rpath=yes
12182      link_all_deplibs=yes
12183      ;;
12184
12185    netbsd* | netbsdelf*-gnu)
12186      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12187	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12188      else
12189	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12190      fi
12191      hardcode_libdir_flag_spec='-R$libdir'
12192      hardcode_direct=yes
12193      hardcode_shlibpath_var=no
12194      ;;
12195
12196    newsos6)
12197      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12198      hardcode_direct=yes
12199      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12200      hardcode_libdir_separator=:
12201      hardcode_shlibpath_var=no
12202      ;;
12203
12204    *nto* | *qnx*)
12205      ;;
12206
12207    openbsd*)
12208      if test -f /usr/libexec/ld.so; then
12209	hardcode_direct=yes
12210	hardcode_shlibpath_var=no
12211	hardcode_direct_absolute=yes
12212	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12213	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12214	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12215	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12216	  export_dynamic_flag_spec='${wl}-E'
12217	else
12218	  case $host_os in
12219	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12220	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12221	     hardcode_libdir_flag_spec='-R$libdir'
12222	     ;;
12223	   *)
12224	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12225	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12226	     ;;
12227	  esac
12228	fi
12229      else
12230	ld_shlibs=no
12231      fi
12232      ;;
12233
12234    os2*)
12235      hardcode_libdir_flag_spec='-L$libdir'
12236      hardcode_minus_L=yes
12237      allow_undefined_flag=unsupported
12238      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'
12239      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12240      ;;
12241
12242    osf3*)
12243      if test "$GCC" = yes; then
12244	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12245	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12246      else
12247	allow_undefined_flag=' -expect_unresolved \*'
12248	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12249      fi
12250      archive_cmds_need_lc='no'
12251      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12252      hardcode_libdir_separator=:
12253      ;;
12254
12255    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12256      if test "$GCC" = yes; then
12257	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12258	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12259	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12260      else
12261	allow_undefined_flag=' -expect_unresolved \*'
12262	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12263	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12264	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12265
12266	# Both c and cxx compiler support -rpath directly
12267	hardcode_libdir_flag_spec='-rpath $libdir'
12268      fi
12269      archive_cmds_need_lc='no'
12270      hardcode_libdir_separator=:
12271      ;;
12272
12273    solaris*)
12274      no_undefined_flag=' -z defs'
12275      if test "$GCC" = yes; then
12276	wlarc='${wl}'
12277	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12278	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12279	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12280      else
12281	case `$CC -V 2>&1` in
12282	*"Compilers 5.0"*)
12283	  wlarc=''
12284	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12285	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12286	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12287	  ;;
12288	*)
12289	  wlarc='${wl}'
12290	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12291	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12292	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12293	  ;;
12294	esac
12295      fi
12296      hardcode_libdir_flag_spec='-R$libdir'
12297      hardcode_shlibpath_var=no
12298      case $host_os in
12299      solaris2.[0-5] | solaris2.[0-5].*) ;;
12300      *)
12301	# The compiler driver will combine and reorder linker options,
12302	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12303	# but is careful enough not to reorder.
12304	# Supported since Solaris 2.6 (maybe 2.5.1?)
12305	if test "$GCC" = yes; then
12306	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12307	else
12308	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12309	fi
12310	;;
12311      esac
12312      link_all_deplibs=yes
12313      ;;
12314
12315    sunos4*)
12316      if test "x$host_vendor" = xsequent; then
12317	# Use $CC to link under sequent, because it throws in some extra .o
12318	# files that make .init and .fini sections work.
12319	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12320      else
12321	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12322      fi
12323      hardcode_libdir_flag_spec='-L$libdir'
12324      hardcode_direct=yes
12325      hardcode_minus_L=yes
12326      hardcode_shlibpath_var=no
12327      ;;
12328
12329    sysv4)
12330      case $host_vendor in
12331	sni)
12332	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12333	  hardcode_direct=yes # is this really true???
12334	;;
12335	siemens)
12336	  ## LD is ld it makes a PLAMLIB
12337	  ## CC just makes a GrossModule.
12338	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12339	  reload_cmds='$CC -r -o $output$reload_objs'
12340	  hardcode_direct=no
12341        ;;
12342	motorola)
12343	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12344	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12345	;;
12346      esac
12347      runpath_var='LD_RUN_PATH'
12348      hardcode_shlibpath_var=no
12349      ;;
12350
12351    sysv4.3*)
12352      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12353      hardcode_shlibpath_var=no
12354      export_dynamic_flag_spec='-Bexport'
12355      ;;
12356
12357    sysv4*MP*)
12358      if test -d /usr/nec; then
12359	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12360	hardcode_shlibpath_var=no
12361	runpath_var=LD_RUN_PATH
12362	hardcode_runpath_var=yes
12363	ld_shlibs=yes
12364      fi
12365      ;;
12366
12367    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12368      no_undefined_flag='${wl}-z,text'
12369      archive_cmds_need_lc=no
12370      hardcode_shlibpath_var=no
12371      runpath_var='LD_RUN_PATH'
12372
12373      if test "$GCC" = yes; then
12374	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12375	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12376      else
12377	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12378	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12379      fi
12380      ;;
12381
12382    sysv5* | sco3.2v5* | sco5v6*)
12383      # Note: We can NOT use -z defs as we might desire, because we do not
12384      # link with -lc, and that would cause any symbols used from libc to
12385      # always be unresolved, which means just about no library would
12386      # ever link correctly.  If we're not using GNU ld we use -z text
12387      # though, which does catch some bad symbols but isn't as heavy-handed
12388      # as -z defs.
12389      no_undefined_flag='${wl}-z,text'
12390      allow_undefined_flag='${wl}-z,nodefs'
12391      archive_cmds_need_lc=no
12392      hardcode_shlibpath_var=no
12393      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12394      hardcode_libdir_separator=':'
12395      link_all_deplibs=yes
12396      export_dynamic_flag_spec='${wl}-Bexport'
12397      runpath_var='LD_RUN_PATH'
12398
12399      if test "$GCC" = yes; then
12400	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12401	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12402      else
12403	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12404	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12405      fi
12406      ;;
12407
12408    uts4*)
12409      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12410      hardcode_libdir_flag_spec='-L$libdir'
12411      hardcode_shlibpath_var=no
12412      ;;
12413
12414    *)
12415      ld_shlibs=no
12416      ;;
12417    esac
12418
12419    if test x$host_vendor = xsni; then
12420      case $host in
12421      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12422	export_dynamic_flag_spec='${wl}-Blargedynsym'
12423	;;
12424      esac
12425    fi
12426  fi
12427
12428{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12429$as_echo "$ld_shlibs" >&6; }
12430test "$ld_shlibs" = no && can_build_shared=no
12431
12432with_gnu_ld=$with_gnu_ld
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448#
12449# Do we need to explicitly link libc?
12450#
12451case "x$archive_cmds_need_lc" in
12452x|xyes)
12453  # Assume -lc should be added
12454  archive_cmds_need_lc=yes
12455
12456  if test "$enable_shared" = yes && test "$GCC" = yes; then
12457    case $archive_cmds in
12458    *'~'*)
12459      # FIXME: we may have to deal with multi-command sequences.
12460      ;;
12461    '$CC '*)
12462      # Test whether the compiler implicitly links with -lc since on some
12463      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12464      # to ld, don't add -lc before -lgcc.
12465      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12466$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12467      $RM conftest*
12468      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12469
12470      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471  (eval $ac_compile) 2>&5
12472  ac_status=$?
12473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474  (exit $ac_status); } 2>conftest.err; then
12475        soname=conftest
12476        lib=conftest
12477        libobjs=conftest.$ac_objext
12478        deplibs=
12479        wl=$lt_prog_compiler_wl
12480	pic_flag=$lt_prog_compiler_pic
12481        compiler_flags=-v
12482        linker_flags=-v
12483        verstring=
12484        output_objdir=.
12485        libname=conftest
12486        lt_save_allow_undefined_flag=$allow_undefined_flag
12487        allow_undefined_flag=
12488        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12489  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12490  ac_status=$?
12491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492  (exit $ac_status); }
12493        then
12494	  archive_cmds_need_lc=no
12495        else
12496	  archive_cmds_need_lc=yes
12497        fi
12498        allow_undefined_flag=$lt_save_allow_undefined_flag
12499      else
12500        cat conftest.err 1>&5
12501      fi
12502      $RM conftest*
12503      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12504$as_echo "$archive_cmds_need_lc" >&6; }
12505      ;;
12506    esac
12507  fi
12508  ;;
12509esac
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12668$as_echo_n "checking dynamic linker characteristics... " >&6; }
12669
12670if test "$GCC" = yes; then
12671  case $host_os in
12672    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12673    *) lt_awk_arg="/^libraries:/" ;;
12674  esac
12675  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12676  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12677    # if the path contains ";" then we assume it to be the separator
12678    # otherwise default to the standard path separator (i.e. ":") - it is
12679    # assumed that no part of a normal pathname contains ";" but that should
12680    # okay in the real world where ";" in dirpaths is itself problematic.
12681    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12682  else
12683    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12684  fi
12685  # Ok, now we have the path, separated by spaces, we can step through it
12686  # and add multilib dir if necessary.
12687  lt_tmp_lt_search_path_spec=
12688  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12689  for lt_sys_path in $lt_search_path_spec; do
12690    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12691      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12692    else
12693      test -d "$lt_sys_path" && \
12694	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12695    fi
12696  done
12697  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12698BEGIN {RS=" "; FS="/|\n";} {
12699  lt_foo="";
12700  lt_count=0;
12701  for (lt_i = NF; lt_i > 0; lt_i--) {
12702    if ($lt_i != "" && $lt_i != ".") {
12703      if ($lt_i == "..") {
12704        lt_count++;
12705      } else {
12706        if (lt_count == 0) {
12707          lt_foo="/" $lt_i lt_foo;
12708        } else {
12709          lt_count--;
12710        }
12711      }
12712    }
12713  }
12714  if (lt_foo != "") { lt_freq[lt_foo]++; }
12715  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12716}'`
12717  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12718else
12719  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12720fi
12721library_names_spec=
12722libname_spec='lib$name'
12723soname_spec=
12724shrext_cmds=".so"
12725postinstall_cmds=
12726postuninstall_cmds=
12727finish_cmds=
12728finish_eval=
12729shlibpath_var=
12730shlibpath_overrides_runpath=unknown
12731version_type=none
12732dynamic_linker="$host_os ld.so"
12733sys_lib_dlsearch_path_spec="/lib /usr/lib"
12734need_lib_prefix=unknown
12735hardcode_into_libs=no
12736
12737# when you set need_version to no, make sure it does not cause -set_version
12738# flags to be left without arguments
12739need_version=unknown
12740
12741case $host_os in
12742aix3*)
12743  version_type=linux
12744  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12745  shlibpath_var=LIBPATH
12746
12747  # AIX 3 has no versioning support, so we append a major version to the name.
12748  soname_spec='${libname}${release}${shared_ext}$major'
12749  ;;
12750
12751aix[4-9]*)
12752  version_type=linux
12753  need_lib_prefix=no
12754  need_version=no
12755  hardcode_into_libs=yes
12756  if test "$host_cpu" = ia64; then
12757    # AIX 5 supports IA64
12758    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12759    shlibpath_var=LD_LIBRARY_PATH
12760  else
12761    # With GCC up to 2.95.x, collect2 would create an import file
12762    # for dependence libraries.  The import file would start with
12763    # the line `#! .'.  This would cause the generated library to
12764    # depend on `.', always an invalid library.  This was fixed in
12765    # development snapshots of GCC prior to 3.0.
12766    case $host_os in
12767      aix4 | aix4.[01] | aix4.[01].*)
12768      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12769	   echo ' yes '
12770	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12771	:
12772      else
12773	can_build_shared=no
12774      fi
12775      ;;
12776    esac
12777    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12778    # soname into executable. Probably we can add versioning support to
12779    # collect2, so additional links can be useful in future.
12780    if test "$aix_use_runtimelinking" = yes; then
12781      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12782      # instead of lib<name>.a to let people know that these are not
12783      # typical AIX shared libraries.
12784      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785    else
12786      # We preserve .a as extension for shared libraries through AIX4.2
12787      # and later when we are not doing run time linking.
12788      library_names_spec='${libname}${release}.a $libname.a'
12789      soname_spec='${libname}${release}${shared_ext}$major'
12790    fi
12791    shlibpath_var=LIBPATH
12792  fi
12793  ;;
12794
12795amigaos*)
12796  case $host_cpu in
12797  powerpc)
12798    # Since July 2007 AmigaOS4 officially supports .so libraries.
12799    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801    ;;
12802  m68k)
12803    library_names_spec='$libname.ixlibrary $libname.a'
12804    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12805    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'
12806    ;;
12807  esac
12808  ;;
12809
12810beos*)
12811  library_names_spec='${libname}${shared_ext}'
12812  dynamic_linker="$host_os ld.so"
12813  shlibpath_var=LIBRARY_PATH
12814  ;;
12815
12816bsdi[45]*)
12817  version_type=linux
12818  need_version=no
12819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820  soname_spec='${libname}${release}${shared_ext}$major'
12821  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12822  shlibpath_var=LD_LIBRARY_PATH
12823  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12824  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12825  # the default ld.so.conf also contains /usr/contrib/lib and
12826  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12827  # libtool to hard-code these into programs
12828  ;;
12829
12830cygwin* | mingw* | pw32* | cegcc*)
12831  version_type=windows
12832  shrext_cmds=".dll"
12833  need_version=no
12834  need_lib_prefix=no
12835
12836  case $GCC,$host_os in
12837  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12838    library_names_spec='$libname.dll.a'
12839    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12840    postinstall_cmds='base_file=`basename \${file}`~
12841      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12842      dldir=$destdir/`dirname \$dlpath`~
12843      test -d \$dldir || mkdir -p \$dldir~
12844      $install_prog $dir/$dlname \$dldir/$dlname~
12845      chmod a+x \$dldir/$dlname~
12846      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12847        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12848      fi'
12849    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12850      dlpath=$dir/\$dldll~
12851       $RM \$dlpath'
12852    shlibpath_overrides_runpath=yes
12853
12854    case $host_os in
12855    cygwin*)
12856      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12857      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12858      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12859      ;;
12860    mingw* | cegcc*)
12861      # MinGW DLLs use traditional 'lib' prefix
12862      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12863      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12864      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12865        # It is most probably a Windows format PATH printed by
12866        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12867        # path with ; separators, and with drive letters. We can handle the
12868        # drive letters (cygwin fileutils understands them), so leave them,
12869        # especially as we might pass files found there to a mingw objdump,
12870        # which wouldn't understand a cygwinified path. Ahh.
12871        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12872      else
12873        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12874      fi
12875      ;;
12876    pw32*)
12877      # pw32 DLLs use 'pw' prefix rather than 'lib'
12878      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12879      ;;
12880    esac
12881    ;;
12882
12883  *)
12884    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12885    ;;
12886  esac
12887  dynamic_linker='Win32 ld.exe'
12888  # FIXME: first we should search . and the directory the executable is in
12889  shlibpath_var=PATH
12890  ;;
12891
12892darwin* | rhapsody*)
12893  dynamic_linker="$host_os dyld"
12894  version_type=darwin
12895  need_lib_prefix=no
12896  need_version=no
12897  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12898  soname_spec='${libname}${release}${major}$shared_ext'
12899  shlibpath_overrides_runpath=yes
12900  shlibpath_var=DYLD_LIBRARY_PATH
12901  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12902
12903  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12904  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12905  ;;
12906
12907dgux*)
12908  version_type=linux
12909  need_lib_prefix=no
12910  need_version=no
12911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12912  soname_spec='${libname}${release}${shared_ext}$major'
12913  shlibpath_var=LD_LIBRARY_PATH
12914  ;;
12915
12916freebsd1*)
12917  dynamic_linker=no
12918  ;;
12919
12920freebsd* | dragonfly*)
12921  # DragonFly does not have aout.  When/if they implement a new
12922  # versioning mechanism, adjust this.
12923  if test -x /usr/bin/objformat; then
12924    objformat=`/usr/bin/objformat`
12925  else
12926    case $host_os in
12927    freebsd[123]*) objformat=aout ;;
12928    *) objformat=elf ;;
12929    esac
12930  fi
12931  version_type=freebsd-$objformat
12932  case $version_type in
12933    freebsd-elf*)
12934      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12935      need_version=no
12936      need_lib_prefix=no
12937      ;;
12938    freebsd-*)
12939      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12940      need_version=yes
12941      ;;
12942  esac
12943  shlibpath_var=LD_LIBRARY_PATH
12944  case $host_os in
12945  freebsd2*)
12946    shlibpath_overrides_runpath=yes
12947    ;;
12948  freebsd3.[01]* | freebsdelf3.[01]*)
12949    shlibpath_overrides_runpath=yes
12950    hardcode_into_libs=yes
12951    ;;
12952  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12953  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12954    shlibpath_overrides_runpath=no
12955    hardcode_into_libs=yes
12956    ;;
12957  *) # from 4.6 on, and DragonFly
12958    shlibpath_overrides_runpath=yes
12959    hardcode_into_libs=yes
12960    ;;
12961  esac
12962  ;;
12963
12964gnu*)
12965  version_type=linux
12966  need_lib_prefix=no
12967  need_version=no
12968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12969  soname_spec='${libname}${release}${shared_ext}$major'
12970  shlibpath_var=LD_LIBRARY_PATH
12971  hardcode_into_libs=yes
12972  ;;
12973
12974hpux9* | hpux10* | hpux11*)
12975  # Give a soname corresponding to the major version so that dld.sl refuses to
12976  # link against other versions.
12977  version_type=sunos
12978  need_lib_prefix=no
12979  need_version=no
12980  case $host_cpu in
12981  ia64*)
12982    shrext_cmds='.so'
12983    hardcode_into_libs=yes
12984    dynamic_linker="$host_os dld.so"
12985    shlibpath_var=LD_LIBRARY_PATH
12986    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12987    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988    soname_spec='${libname}${release}${shared_ext}$major'
12989    if test "X$HPUX_IA64_MODE" = X32; then
12990      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12991    else
12992      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12993    fi
12994    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12995    ;;
12996  hppa*64*)
12997    shrext_cmds='.sl'
12998    hardcode_into_libs=yes
12999    dynamic_linker="$host_os dld.sl"
13000    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13001    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13002    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13003    soname_spec='${libname}${release}${shared_ext}$major'
13004    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13005    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13006    ;;
13007  *)
13008    shrext_cmds='.sl'
13009    dynamic_linker="$host_os dld.sl"
13010    shlibpath_var=SHLIB_PATH
13011    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13012    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013    soname_spec='${libname}${release}${shared_ext}$major'
13014    ;;
13015  esac
13016  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13017  postinstall_cmds='chmod 555 $lib'
13018  ;;
13019
13020interix[3-9]*)
13021  version_type=linux
13022  need_lib_prefix=no
13023  need_version=no
13024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13025  soname_spec='${libname}${release}${shared_ext}$major'
13026  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13027  shlibpath_var=LD_LIBRARY_PATH
13028  shlibpath_overrides_runpath=no
13029  hardcode_into_libs=yes
13030  ;;
13031
13032irix5* | irix6* | nonstopux*)
13033  case $host_os in
13034    nonstopux*) version_type=nonstopux ;;
13035    *)
13036	if test "$lt_cv_prog_gnu_ld" = yes; then
13037		version_type=linux
13038	else
13039		version_type=irix
13040	fi ;;
13041  esac
13042  need_lib_prefix=no
13043  need_version=no
13044  soname_spec='${libname}${release}${shared_ext}$major'
13045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13046  case $host_os in
13047  irix5* | nonstopux*)
13048    libsuff= shlibsuff=
13049    ;;
13050  *)
13051    case $LD in # libtool.m4 will add one of these switches to LD
13052    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13053      libsuff= shlibsuff= libmagic=32-bit;;
13054    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13055      libsuff=32 shlibsuff=N32 libmagic=N32;;
13056    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13057      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13058    *) libsuff= shlibsuff= libmagic=never-match;;
13059    esac
13060    ;;
13061  esac
13062  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13063  shlibpath_overrides_runpath=no
13064  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13065  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13066  hardcode_into_libs=yes
13067  ;;
13068
13069# No shared lib support for Linux oldld, aout, or coff.
13070linux*oldld* | linux*aout* | linux*coff*)
13071  dynamic_linker=no
13072  ;;
13073
13074# This must be Linux ELF.
13075linux* | k*bsd*-gnu)
13076  version_type=linux
13077  need_lib_prefix=no
13078  need_version=no
13079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13080  soname_spec='${libname}${release}${shared_ext}$major'
13081  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13082  shlibpath_var=LD_LIBRARY_PATH
13083  shlibpath_overrides_runpath=no
13084  # Some binutils ld are patched to set DT_RUNPATH
13085  save_LDFLAGS=$LDFLAGS
13086  save_libdir=$libdir
13087  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13088       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13089  cat >conftest.$ac_ext <<_ACEOF
13090/* confdefs.h.  */
13091_ACEOF
13092cat confdefs.h >>conftest.$ac_ext
13093cat >>conftest.$ac_ext <<_ACEOF
13094/* end confdefs.h.  */
13095
13096int
13097main ()
13098{
13099
13100  ;
13101  return 0;
13102}
13103_ACEOF
13104rm -f conftest.$ac_objext conftest$ac_exeext
13105if { (ac_try="$ac_link"
13106case "(($ac_try" in
13107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108  *) ac_try_echo=$ac_try;;
13109esac
13110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13111$as_echo "$ac_try_echo") >&5
13112  (eval "$ac_link") 2>conftest.er1
13113  ac_status=$?
13114  grep -v '^ *+' conftest.er1 >conftest.err
13115  rm -f conftest.er1
13116  cat conftest.err >&5
13117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118  (exit $ac_status); } && {
13119	 test -z "$ac_c_werror_flag" ||
13120	 test ! -s conftest.err
13121       } && test -s conftest$ac_exeext && {
13122	 test "$cross_compiling" = yes ||
13123	 $as_test_x conftest$ac_exeext
13124       }; then
13125  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13126  shlibpath_overrides_runpath=yes
13127fi
13128
13129else
13130  $as_echo "$as_me: failed program was:" >&5
13131sed 's/^/| /' conftest.$ac_ext >&5
13132
13133
13134fi
13135
13136rm -rf conftest.dSYM
13137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13138      conftest$ac_exeext conftest.$ac_ext
13139  LDFLAGS=$save_LDFLAGS
13140  libdir=$save_libdir
13141
13142  # This implies no fast_install, which is unacceptable.
13143  # Some rework will be needed to allow for fast_install
13144  # before this can be enabled.
13145  hardcode_into_libs=yes
13146
13147  # Append ld.so.conf contents to the search path
13148  if test -f /etc/ld.so.conf; then
13149    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' ' '`
13150    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13151  fi
13152
13153  # We used to test for /lib/ld.so.1 and disable shared libraries on
13154  # powerpc, because MkLinux only supported shared libraries with the
13155  # GNU dynamic linker.  Since this was broken with cross compilers,
13156  # most powerpc-linux boxes support dynamic linking these days and
13157  # people can always --disable-shared, the test was removed, and we
13158  # assume the GNU/Linux dynamic linker is in use.
13159  dynamic_linker='GNU/Linux ld.so'
13160  ;;
13161
13162netbsdelf*-gnu)
13163  version_type=linux
13164  need_lib_prefix=no
13165  need_version=no
13166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13167  soname_spec='${libname}${release}${shared_ext}$major'
13168  shlibpath_var=LD_LIBRARY_PATH
13169  shlibpath_overrides_runpath=no
13170  hardcode_into_libs=yes
13171  dynamic_linker='NetBSD ld.elf_so'
13172  ;;
13173
13174netbsd*)
13175  version_type=sunos
13176  need_lib_prefix=no
13177  need_version=no
13178  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13179    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13180    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13181    dynamic_linker='NetBSD (a.out) ld.so'
13182  else
13183    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13184    soname_spec='${libname}${release}${shared_ext}$major'
13185    dynamic_linker='NetBSD ld.elf_so'
13186  fi
13187  shlibpath_var=LD_LIBRARY_PATH
13188  shlibpath_overrides_runpath=yes
13189  hardcode_into_libs=yes
13190  ;;
13191
13192newsos6)
13193  version_type=linux
13194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13195  shlibpath_var=LD_LIBRARY_PATH
13196  shlibpath_overrides_runpath=yes
13197  ;;
13198
13199*nto* | *qnx*)
13200  version_type=qnx
13201  need_lib_prefix=no
13202  need_version=no
13203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13204  soname_spec='${libname}${release}${shared_ext}$major'
13205  shlibpath_var=LD_LIBRARY_PATH
13206  shlibpath_overrides_runpath=no
13207  hardcode_into_libs=yes
13208  dynamic_linker='ldqnx.so'
13209  ;;
13210
13211openbsd*)
13212  version_type=sunos
13213  sys_lib_dlsearch_path_spec="/usr/lib"
13214  need_lib_prefix=no
13215  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13216  case $host_os in
13217    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13218    *)				need_version=no  ;;
13219  esac
13220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13221  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13222  shlibpath_var=LD_LIBRARY_PATH
13223  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13224    case $host_os in
13225      openbsd2.[89] | openbsd2.[89].*)
13226	shlibpath_overrides_runpath=no
13227	;;
13228      *)
13229	shlibpath_overrides_runpath=yes
13230	;;
13231      esac
13232  else
13233    shlibpath_overrides_runpath=yes
13234  fi
13235  ;;
13236
13237os2*)
13238  libname_spec='$name'
13239  shrext_cmds=".dll"
13240  need_lib_prefix=no
13241  library_names_spec='$libname${shared_ext} $libname.a'
13242  dynamic_linker='OS/2 ld.exe'
13243  shlibpath_var=LIBPATH
13244  ;;
13245
13246osf3* | osf4* | osf5*)
13247  version_type=osf
13248  need_lib_prefix=no
13249  need_version=no
13250  soname_spec='${libname}${release}${shared_ext}$major'
13251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13252  shlibpath_var=LD_LIBRARY_PATH
13253  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13254  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13255  ;;
13256
13257rdos*)
13258  dynamic_linker=no
13259  ;;
13260
13261solaris*)
13262  version_type=linux
13263  need_lib_prefix=no
13264  need_version=no
13265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13266  soname_spec='${libname}${release}${shared_ext}$major'
13267  shlibpath_var=LD_LIBRARY_PATH
13268  shlibpath_overrides_runpath=yes
13269  hardcode_into_libs=yes
13270  # ldd complains unless libraries are executable
13271  postinstall_cmds='chmod +x $lib'
13272  ;;
13273
13274sunos4*)
13275  version_type=sunos
13276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13277  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13278  shlibpath_var=LD_LIBRARY_PATH
13279  shlibpath_overrides_runpath=yes
13280  if test "$with_gnu_ld" = yes; then
13281    need_lib_prefix=no
13282  fi
13283  need_version=yes
13284  ;;
13285
13286sysv4 | sysv4.3*)
13287  version_type=linux
13288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13289  soname_spec='${libname}${release}${shared_ext}$major'
13290  shlibpath_var=LD_LIBRARY_PATH
13291  case $host_vendor in
13292    sni)
13293      shlibpath_overrides_runpath=no
13294      need_lib_prefix=no
13295      runpath_var=LD_RUN_PATH
13296      ;;
13297    siemens)
13298      need_lib_prefix=no
13299      ;;
13300    motorola)
13301      need_lib_prefix=no
13302      need_version=no
13303      shlibpath_overrides_runpath=no
13304      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13305      ;;
13306  esac
13307  ;;
13308
13309sysv4*MP*)
13310  if test -d /usr/nec ;then
13311    version_type=linux
13312    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13313    soname_spec='$libname${shared_ext}.$major'
13314    shlibpath_var=LD_LIBRARY_PATH
13315  fi
13316  ;;
13317
13318sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13319  version_type=freebsd-elf
13320  need_lib_prefix=no
13321  need_version=no
13322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13323  soname_spec='${libname}${release}${shared_ext}$major'
13324  shlibpath_var=LD_LIBRARY_PATH
13325  shlibpath_overrides_runpath=yes
13326  hardcode_into_libs=yes
13327  if test "$with_gnu_ld" = yes; then
13328    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13329  else
13330    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13331    case $host_os in
13332      sco3.2v5*)
13333        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13334	;;
13335    esac
13336  fi
13337  sys_lib_dlsearch_path_spec='/usr/lib'
13338  ;;
13339
13340tpf*)
13341  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13342  version_type=linux
13343  need_lib_prefix=no
13344  need_version=no
13345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13346  shlibpath_var=LD_LIBRARY_PATH
13347  shlibpath_overrides_runpath=no
13348  hardcode_into_libs=yes
13349  ;;
13350
13351uts4*)
13352  version_type=linux
13353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354  soname_spec='${libname}${release}${shared_ext}$major'
13355  shlibpath_var=LD_LIBRARY_PATH
13356  ;;
13357
13358*)
13359  dynamic_linker=no
13360  ;;
13361esac
13362{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13363$as_echo "$dynamic_linker" >&6; }
13364test "$dynamic_linker" = no && can_build_shared=no
13365
13366variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13367if test "$GCC" = yes; then
13368  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13369fi
13370
13371if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13372  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13373fi
13374if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13375  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13376fi
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13465$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13466hardcode_action=
13467if test -n "$hardcode_libdir_flag_spec" ||
13468   test -n "$runpath_var" ||
13469   test "X$hardcode_automatic" = "Xyes" ; then
13470
13471  # We can hardcode non-existent directories.
13472  if test "$hardcode_direct" != no &&
13473     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13474     # have to relink, otherwise we might link with an installed library
13475     # when we should be linking with a yet-to-be-installed one
13476     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13477     test "$hardcode_minus_L" != no; then
13478    # Linking always hardcodes the temporary library directory.
13479    hardcode_action=relink
13480  else
13481    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13482    hardcode_action=immediate
13483  fi
13484else
13485  # We cannot hardcode anything, or else we can only hardcode existing
13486  # directories.
13487  hardcode_action=unsupported
13488fi
13489{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
13490$as_echo "$hardcode_action" >&6; }
13491
13492if test "$hardcode_action" = relink ||
13493   test "$inherit_rpath" = yes; then
13494  # Fast installation is not supported
13495  enable_fast_install=no
13496elif test "$shlibpath_overrides_runpath" = yes ||
13497     test "$enable_shared" = no; then
13498  # Fast installation is not necessary
13499  enable_fast_install=needless
13500fi
13501
13502
13503
13504
13505
13506
13507  if test "x$enable_dlopen" != xyes; then
13508  enable_dlopen=unknown
13509  enable_dlopen_self=unknown
13510  enable_dlopen_self_static=unknown
13511else
13512  lt_cv_dlopen=no
13513  lt_cv_dlopen_libs=
13514
13515  case $host_os in
13516  beos*)
13517    lt_cv_dlopen="load_add_on"
13518    lt_cv_dlopen_libs=
13519    lt_cv_dlopen_self=yes
13520    ;;
13521
13522  mingw* | pw32* | cegcc*)
13523    lt_cv_dlopen="LoadLibrary"
13524    lt_cv_dlopen_libs=
13525    ;;
13526
13527  cygwin*)
13528    lt_cv_dlopen="dlopen"
13529    lt_cv_dlopen_libs=
13530    ;;
13531
13532  darwin*)
13533  # if libdl is installed we need to link against it
13534    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13535$as_echo_n "checking for dlopen in -ldl... " >&6; }
13536if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13537  $as_echo_n "(cached) " >&6
13538else
13539  ac_check_lib_save_LIBS=$LIBS
13540LIBS="-ldl  $LIBS"
13541cat >conftest.$ac_ext <<_ACEOF
13542/* confdefs.h.  */
13543_ACEOF
13544cat confdefs.h >>conftest.$ac_ext
13545cat >>conftest.$ac_ext <<_ACEOF
13546/* end confdefs.h.  */
13547
13548/* Override any GCC internal prototype to avoid an error.
13549   Use char because int might match the return type of a GCC
13550   builtin and then its argument prototype would still apply.  */
13551#ifdef __cplusplus
13552extern "C"
13553#endif
13554char dlopen ();
13555int
13556main ()
13557{
13558return dlopen ();
13559  ;
13560  return 0;
13561}
13562_ACEOF
13563rm -f conftest.$ac_objext conftest$ac_exeext
13564if { (ac_try="$ac_link"
13565case "(($ac_try" in
13566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567  *) ac_try_echo=$ac_try;;
13568esac
13569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13570$as_echo "$ac_try_echo") >&5
13571  (eval "$ac_link") 2>conftest.er1
13572  ac_status=$?
13573  grep -v '^ *+' conftest.er1 >conftest.err
13574  rm -f conftest.er1
13575  cat conftest.err >&5
13576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577  (exit $ac_status); } && {
13578	 test -z "$ac_c_werror_flag" ||
13579	 test ! -s conftest.err
13580       } && test -s conftest$ac_exeext && {
13581	 test "$cross_compiling" = yes ||
13582	 $as_test_x conftest$ac_exeext
13583       }; then
13584  ac_cv_lib_dl_dlopen=yes
13585else
13586  $as_echo "$as_me: failed program was:" >&5
13587sed 's/^/| /' conftest.$ac_ext >&5
13588
13589	ac_cv_lib_dl_dlopen=no
13590fi
13591
13592rm -rf conftest.dSYM
13593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13594      conftest$ac_exeext conftest.$ac_ext
13595LIBS=$ac_check_lib_save_LIBS
13596fi
13597{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13598$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13599if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13600  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13601else
13602
13603    lt_cv_dlopen="dyld"
13604    lt_cv_dlopen_libs=
13605    lt_cv_dlopen_self=yes
13606
13607fi
13608
13609    ;;
13610
13611  *)
13612    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
13613$as_echo_n "checking for shl_load... " >&6; }
13614if test "${ac_cv_func_shl_load+set}" = set; then
13615  $as_echo_n "(cached) " >&6
13616else
13617  cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h.  */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h.  */
13623/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13624   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13625#define shl_load innocuous_shl_load
13626
13627/* System header to define __stub macros and hopefully few prototypes,
13628    which can conflict with char shl_load (); below.
13629    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13630    <limits.h> exists even on freestanding compilers.  */
13631
13632#ifdef __STDC__
13633# include <limits.h>
13634#else
13635# include <assert.h>
13636#endif
13637
13638#undef shl_load
13639
13640/* Override any GCC internal prototype to avoid an error.
13641   Use char because int might match the return type of a GCC
13642   builtin and then its argument prototype would still apply.  */
13643#ifdef __cplusplus
13644extern "C"
13645#endif
13646char shl_load ();
13647/* The GNU C library defines this for functions which it implements
13648    to always fail with ENOSYS.  Some functions are actually named
13649    something starting with __ and the normal name is an alias.  */
13650#if defined __stub_shl_load || defined __stub___shl_load
13651choke me
13652#endif
13653
13654int
13655main ()
13656{
13657return shl_load ();
13658  ;
13659  return 0;
13660}
13661_ACEOF
13662rm -f conftest.$ac_objext conftest$ac_exeext
13663if { (ac_try="$ac_link"
13664case "(($ac_try" in
13665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666  *) ac_try_echo=$ac_try;;
13667esac
13668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13669$as_echo "$ac_try_echo") >&5
13670  (eval "$ac_link") 2>conftest.er1
13671  ac_status=$?
13672  grep -v '^ *+' conftest.er1 >conftest.err
13673  rm -f conftest.er1
13674  cat conftest.err >&5
13675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676  (exit $ac_status); } && {
13677	 test -z "$ac_c_werror_flag" ||
13678	 test ! -s conftest.err
13679       } && test -s conftest$ac_exeext && {
13680	 test "$cross_compiling" = yes ||
13681	 $as_test_x conftest$ac_exeext
13682       }; then
13683  ac_cv_func_shl_load=yes
13684else
13685  $as_echo "$as_me: failed program was:" >&5
13686sed 's/^/| /' conftest.$ac_ext >&5
13687
13688	ac_cv_func_shl_load=no
13689fi
13690
13691rm -rf conftest.dSYM
13692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13693      conftest$ac_exeext conftest.$ac_ext
13694fi
13695{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13696$as_echo "$ac_cv_func_shl_load" >&6; }
13697if test "x$ac_cv_func_shl_load" = x""yes; then
13698  lt_cv_dlopen="shl_load"
13699else
13700  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13701$as_echo_n "checking for shl_load in -ldld... " >&6; }
13702if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13703  $as_echo_n "(cached) " >&6
13704else
13705  ac_check_lib_save_LIBS=$LIBS
13706LIBS="-ldld  $LIBS"
13707cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h.  */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h.  */
13713
13714/* Override any GCC internal prototype to avoid an error.
13715   Use char because int might match the return type of a GCC
13716   builtin and then its argument prototype would still apply.  */
13717#ifdef __cplusplus
13718extern "C"
13719#endif
13720char shl_load ();
13721int
13722main ()
13723{
13724return shl_load ();
13725  ;
13726  return 0;
13727}
13728_ACEOF
13729rm -f conftest.$ac_objext conftest$ac_exeext
13730if { (ac_try="$ac_link"
13731case "(($ac_try" in
13732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733  *) ac_try_echo=$ac_try;;
13734esac
13735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13736$as_echo "$ac_try_echo") >&5
13737  (eval "$ac_link") 2>conftest.er1
13738  ac_status=$?
13739  grep -v '^ *+' conftest.er1 >conftest.err
13740  rm -f conftest.er1
13741  cat conftest.err >&5
13742  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743  (exit $ac_status); } && {
13744	 test -z "$ac_c_werror_flag" ||
13745	 test ! -s conftest.err
13746       } && test -s conftest$ac_exeext && {
13747	 test "$cross_compiling" = yes ||
13748	 $as_test_x conftest$ac_exeext
13749       }; then
13750  ac_cv_lib_dld_shl_load=yes
13751else
13752  $as_echo "$as_me: failed program was:" >&5
13753sed 's/^/| /' conftest.$ac_ext >&5
13754
13755	ac_cv_lib_dld_shl_load=no
13756fi
13757
13758rm -rf conftest.dSYM
13759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13760      conftest$ac_exeext conftest.$ac_ext
13761LIBS=$ac_check_lib_save_LIBS
13762fi
13763{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13764$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13765if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13766  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13767else
13768  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13769$as_echo_n "checking for dlopen... " >&6; }
13770if test "${ac_cv_func_dlopen+set}" = set; then
13771  $as_echo_n "(cached) " >&6
13772else
13773  cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h.  */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h.  */
13779/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13780   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13781#define dlopen innocuous_dlopen
13782
13783/* System header to define __stub macros and hopefully few prototypes,
13784    which can conflict with char dlopen (); below.
13785    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13786    <limits.h> exists even on freestanding compilers.  */
13787
13788#ifdef __STDC__
13789# include <limits.h>
13790#else
13791# include <assert.h>
13792#endif
13793
13794#undef dlopen
13795
13796/* Override any GCC internal prototype to avoid an error.
13797   Use char because int might match the return type of a GCC
13798   builtin and then its argument prototype would still apply.  */
13799#ifdef __cplusplus
13800extern "C"
13801#endif
13802char dlopen ();
13803/* The GNU C library defines this for functions which it implements
13804    to always fail with ENOSYS.  Some functions are actually named
13805    something starting with __ and the normal name is an alias.  */
13806#if defined __stub_dlopen || defined __stub___dlopen
13807choke me
13808#endif
13809
13810int
13811main ()
13812{
13813return dlopen ();
13814  ;
13815  return 0;
13816}
13817_ACEOF
13818rm -f conftest.$ac_objext conftest$ac_exeext
13819if { (ac_try="$ac_link"
13820case "(($ac_try" in
13821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822  *) ac_try_echo=$ac_try;;
13823esac
13824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13825$as_echo "$ac_try_echo") >&5
13826  (eval "$ac_link") 2>conftest.er1
13827  ac_status=$?
13828  grep -v '^ *+' conftest.er1 >conftest.err
13829  rm -f conftest.er1
13830  cat conftest.err >&5
13831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832  (exit $ac_status); } && {
13833	 test -z "$ac_c_werror_flag" ||
13834	 test ! -s conftest.err
13835       } && test -s conftest$ac_exeext && {
13836	 test "$cross_compiling" = yes ||
13837	 $as_test_x conftest$ac_exeext
13838       }; then
13839  ac_cv_func_dlopen=yes
13840else
13841  $as_echo "$as_me: failed program was:" >&5
13842sed 's/^/| /' conftest.$ac_ext >&5
13843
13844	ac_cv_func_dlopen=no
13845fi
13846
13847rm -rf conftest.dSYM
13848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13849      conftest$ac_exeext conftest.$ac_ext
13850fi
13851{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13852$as_echo "$ac_cv_func_dlopen" >&6; }
13853if test "x$ac_cv_func_dlopen" = x""yes; then
13854  lt_cv_dlopen="dlopen"
13855else
13856  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13857$as_echo_n "checking for dlopen in -ldl... " >&6; }
13858if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13859  $as_echo_n "(cached) " >&6
13860else
13861  ac_check_lib_save_LIBS=$LIBS
13862LIBS="-ldl  $LIBS"
13863cat >conftest.$ac_ext <<_ACEOF
13864/* confdefs.h.  */
13865_ACEOF
13866cat confdefs.h >>conftest.$ac_ext
13867cat >>conftest.$ac_ext <<_ACEOF
13868/* end confdefs.h.  */
13869
13870/* Override any GCC internal prototype to avoid an error.
13871   Use char because int might match the return type of a GCC
13872   builtin and then its argument prototype would still apply.  */
13873#ifdef __cplusplus
13874extern "C"
13875#endif
13876char dlopen ();
13877int
13878main ()
13879{
13880return dlopen ();
13881  ;
13882  return 0;
13883}
13884_ACEOF
13885rm -f conftest.$ac_objext conftest$ac_exeext
13886if { (ac_try="$ac_link"
13887case "(($ac_try" in
13888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889  *) ac_try_echo=$ac_try;;
13890esac
13891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13892$as_echo "$ac_try_echo") >&5
13893  (eval "$ac_link") 2>conftest.er1
13894  ac_status=$?
13895  grep -v '^ *+' conftest.er1 >conftest.err
13896  rm -f conftest.er1
13897  cat conftest.err >&5
13898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899  (exit $ac_status); } && {
13900	 test -z "$ac_c_werror_flag" ||
13901	 test ! -s conftest.err
13902       } && test -s conftest$ac_exeext && {
13903	 test "$cross_compiling" = yes ||
13904	 $as_test_x conftest$ac_exeext
13905       }; then
13906  ac_cv_lib_dl_dlopen=yes
13907else
13908  $as_echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911	ac_cv_lib_dl_dlopen=no
13912fi
13913
13914rm -rf conftest.dSYM
13915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13916      conftest$ac_exeext conftest.$ac_ext
13917LIBS=$ac_check_lib_save_LIBS
13918fi
13919{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13920$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13921if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13922  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13923else
13924  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13925$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13926if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13927  $as_echo_n "(cached) " >&6
13928else
13929  ac_check_lib_save_LIBS=$LIBS
13930LIBS="-lsvld  $LIBS"
13931cat >conftest.$ac_ext <<_ACEOF
13932/* confdefs.h.  */
13933_ACEOF
13934cat confdefs.h >>conftest.$ac_ext
13935cat >>conftest.$ac_ext <<_ACEOF
13936/* end confdefs.h.  */
13937
13938/* Override any GCC internal prototype to avoid an error.
13939   Use char because int might match the return type of a GCC
13940   builtin and then its argument prototype would still apply.  */
13941#ifdef __cplusplus
13942extern "C"
13943#endif
13944char dlopen ();
13945int
13946main ()
13947{
13948return dlopen ();
13949  ;
13950  return 0;
13951}
13952_ACEOF
13953rm -f conftest.$ac_objext conftest$ac_exeext
13954if { (ac_try="$ac_link"
13955case "(($ac_try" in
13956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957  *) ac_try_echo=$ac_try;;
13958esac
13959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13960$as_echo "$ac_try_echo") >&5
13961  (eval "$ac_link") 2>conftest.er1
13962  ac_status=$?
13963  grep -v '^ *+' conftest.er1 >conftest.err
13964  rm -f conftest.er1
13965  cat conftest.err >&5
13966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967  (exit $ac_status); } && {
13968	 test -z "$ac_c_werror_flag" ||
13969	 test ! -s conftest.err
13970       } && test -s conftest$ac_exeext && {
13971	 test "$cross_compiling" = yes ||
13972	 $as_test_x conftest$ac_exeext
13973       }; then
13974  ac_cv_lib_svld_dlopen=yes
13975else
13976  $as_echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
13978
13979	ac_cv_lib_svld_dlopen=no
13980fi
13981
13982rm -rf conftest.dSYM
13983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13984      conftest$ac_exeext conftest.$ac_ext
13985LIBS=$ac_check_lib_save_LIBS
13986fi
13987{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13988$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13989if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
13990  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13991else
13992  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13993$as_echo_n "checking for dld_link in -ldld... " >&6; }
13994if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13995  $as_echo_n "(cached) " >&6
13996else
13997  ac_check_lib_save_LIBS=$LIBS
13998LIBS="-ldld  $LIBS"
13999cat >conftest.$ac_ext <<_ACEOF
14000/* confdefs.h.  */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h.  */
14005
14006/* Override any GCC internal prototype to avoid an error.
14007   Use char because int might match the return type of a GCC
14008   builtin and then its argument prototype would still apply.  */
14009#ifdef __cplusplus
14010extern "C"
14011#endif
14012char dld_link ();
14013int
14014main ()
14015{
14016return dld_link ();
14017  ;
14018  return 0;
14019}
14020_ACEOF
14021rm -f conftest.$ac_objext conftest$ac_exeext
14022if { (ac_try="$ac_link"
14023case "(($ac_try" in
14024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025  *) ac_try_echo=$ac_try;;
14026esac
14027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14028$as_echo "$ac_try_echo") >&5
14029  (eval "$ac_link") 2>conftest.er1
14030  ac_status=$?
14031  grep -v '^ *+' conftest.er1 >conftest.err
14032  rm -f conftest.er1
14033  cat conftest.err >&5
14034  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035  (exit $ac_status); } && {
14036	 test -z "$ac_c_werror_flag" ||
14037	 test ! -s conftest.err
14038       } && test -s conftest$ac_exeext && {
14039	 test "$cross_compiling" = yes ||
14040	 $as_test_x conftest$ac_exeext
14041       }; then
14042  ac_cv_lib_dld_dld_link=yes
14043else
14044  $as_echo "$as_me: failed program was:" >&5
14045sed 's/^/| /' conftest.$ac_ext >&5
14046
14047	ac_cv_lib_dld_dld_link=no
14048fi
14049
14050rm -rf conftest.dSYM
14051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14052      conftest$ac_exeext conftest.$ac_ext
14053LIBS=$ac_check_lib_save_LIBS
14054fi
14055{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14056$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14057if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14058  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14059fi
14060
14061
14062fi
14063
14064
14065fi
14066
14067
14068fi
14069
14070
14071fi
14072
14073
14074fi
14075
14076    ;;
14077  esac
14078
14079  if test "x$lt_cv_dlopen" != xno; then
14080    enable_dlopen=yes
14081  else
14082    enable_dlopen=no
14083  fi
14084
14085  case $lt_cv_dlopen in
14086  dlopen)
14087    save_CPPFLAGS="$CPPFLAGS"
14088    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14089
14090    save_LDFLAGS="$LDFLAGS"
14091    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14092
14093    save_LIBS="$LIBS"
14094    LIBS="$lt_cv_dlopen_libs $LIBS"
14095
14096    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14097$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14098if test "${lt_cv_dlopen_self+set}" = set; then
14099  $as_echo_n "(cached) " >&6
14100else
14101  	  if test "$cross_compiling" = yes; then :
14102  lt_cv_dlopen_self=cross
14103else
14104  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14105  lt_status=$lt_dlunknown
14106  cat > conftest.$ac_ext <<_LT_EOF
14107#line 14107 "configure"
14108#include "confdefs.h"
14109
14110#if HAVE_DLFCN_H
14111#include <dlfcn.h>
14112#endif
14113
14114#include <stdio.h>
14115
14116#ifdef RTLD_GLOBAL
14117#  define LT_DLGLOBAL		RTLD_GLOBAL
14118#else
14119#  ifdef DL_GLOBAL
14120#    define LT_DLGLOBAL		DL_GLOBAL
14121#  else
14122#    define LT_DLGLOBAL		0
14123#  endif
14124#endif
14125
14126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14127   find out it does not work in some platform. */
14128#ifndef LT_DLLAZY_OR_NOW
14129#  ifdef RTLD_LAZY
14130#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14131#  else
14132#    ifdef DL_LAZY
14133#      define LT_DLLAZY_OR_NOW		DL_LAZY
14134#    else
14135#      ifdef RTLD_NOW
14136#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14137#      else
14138#        ifdef DL_NOW
14139#          define LT_DLLAZY_OR_NOW	DL_NOW
14140#        else
14141#          define LT_DLLAZY_OR_NOW	0
14142#        endif
14143#      endif
14144#    endif
14145#  endif
14146#endif
14147
14148void fnord() { int i=42;}
14149int main ()
14150{
14151  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14152  int status = $lt_dlunknown;
14153
14154  if (self)
14155    {
14156      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14157      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14158      /* dlclose (self); */
14159    }
14160  else
14161    puts (dlerror ());
14162
14163  return status;
14164}
14165_LT_EOF
14166  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14167  (eval $ac_link) 2>&5
14168  ac_status=$?
14169  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14171    (./conftest; exit; ) >&5 2>/dev/null
14172    lt_status=$?
14173    case x$lt_status in
14174      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14175      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14176      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14177    esac
14178  else :
14179    # compilation failed
14180    lt_cv_dlopen_self=no
14181  fi
14182fi
14183rm -fr conftest*
14184
14185
14186fi
14187{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14188$as_echo "$lt_cv_dlopen_self" >&6; }
14189
14190    if test "x$lt_cv_dlopen_self" = xyes; then
14191      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14192      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14193$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14194if test "${lt_cv_dlopen_self_static+set}" = set; then
14195  $as_echo_n "(cached) " >&6
14196else
14197  	  if test "$cross_compiling" = yes; then :
14198  lt_cv_dlopen_self_static=cross
14199else
14200  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14201  lt_status=$lt_dlunknown
14202  cat > conftest.$ac_ext <<_LT_EOF
14203#line 14203 "configure"
14204#include "confdefs.h"
14205
14206#if HAVE_DLFCN_H
14207#include <dlfcn.h>
14208#endif
14209
14210#include <stdio.h>
14211
14212#ifdef RTLD_GLOBAL
14213#  define LT_DLGLOBAL		RTLD_GLOBAL
14214#else
14215#  ifdef DL_GLOBAL
14216#    define LT_DLGLOBAL		DL_GLOBAL
14217#  else
14218#    define LT_DLGLOBAL		0
14219#  endif
14220#endif
14221
14222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14223   find out it does not work in some platform. */
14224#ifndef LT_DLLAZY_OR_NOW
14225#  ifdef RTLD_LAZY
14226#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14227#  else
14228#    ifdef DL_LAZY
14229#      define LT_DLLAZY_OR_NOW		DL_LAZY
14230#    else
14231#      ifdef RTLD_NOW
14232#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14233#      else
14234#        ifdef DL_NOW
14235#          define LT_DLLAZY_OR_NOW	DL_NOW
14236#        else
14237#          define LT_DLLAZY_OR_NOW	0
14238#        endif
14239#      endif
14240#    endif
14241#  endif
14242#endif
14243
14244void fnord() { int i=42;}
14245int main ()
14246{
14247  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14248  int status = $lt_dlunknown;
14249
14250  if (self)
14251    {
14252      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14253      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14254      /* dlclose (self); */
14255    }
14256  else
14257    puts (dlerror ());
14258
14259  return status;
14260}
14261_LT_EOF
14262  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14263  (eval $ac_link) 2>&5
14264  ac_status=$?
14265  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14267    (./conftest; exit; ) >&5 2>/dev/null
14268    lt_status=$?
14269    case x$lt_status in
14270      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14271      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14272      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14273    esac
14274  else :
14275    # compilation failed
14276    lt_cv_dlopen_self_static=no
14277  fi
14278fi
14279rm -fr conftest*
14280
14281
14282fi
14283{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14284$as_echo "$lt_cv_dlopen_self_static" >&6; }
14285    fi
14286
14287    CPPFLAGS="$save_CPPFLAGS"
14288    LDFLAGS="$save_LDFLAGS"
14289    LIBS="$save_LIBS"
14290    ;;
14291  esac
14292
14293  case $lt_cv_dlopen_self in
14294  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14295  *) enable_dlopen_self=unknown ;;
14296  esac
14297
14298  case $lt_cv_dlopen_self_static in
14299  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14300  *) enable_dlopen_self_static=unknown ;;
14301  esac
14302fi
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320striplib=
14321old_striplib=
14322{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14323$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14324if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14325  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14326  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14327  { $as_echo "$as_me:$LINENO: result: yes" >&5
14328$as_echo "yes" >&6; }
14329else
14330# FIXME - insert some real tests, host_os isn't really good enough
14331  case $host_os in
14332  darwin*)
14333    if test -n "$STRIP" ; then
14334      striplib="$STRIP -x"
14335      old_striplib="$STRIP -S"
14336      { $as_echo "$as_me:$LINENO: result: yes" >&5
14337$as_echo "yes" >&6; }
14338    else
14339      { $as_echo "$as_me:$LINENO: result: no" >&5
14340$as_echo "no" >&6; }
14341    fi
14342    ;;
14343  *)
14344    { $as_echo "$as_me:$LINENO: result: no" >&5
14345$as_echo "no" >&6; }
14346    ;;
14347  esac
14348fi
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361  # Report which library types will actually be built
14362  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14363$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14364  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14365$as_echo "$can_build_shared" >&6; }
14366
14367  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14368$as_echo_n "checking whether to build shared libraries... " >&6; }
14369  test "$can_build_shared" = "no" && enable_shared=no
14370
14371  # On AIX, shared libraries and static libraries use the same namespace, and
14372  # are all built from PIC.
14373  case $host_os in
14374  aix3*)
14375    test "$enable_shared" = yes && enable_static=no
14376    if test -n "$RANLIB"; then
14377      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14378      postinstall_cmds='$RANLIB $lib'
14379    fi
14380    ;;
14381
14382  aix[4-9]*)
14383    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14384      test "$enable_shared" = yes && enable_static=no
14385    fi
14386    ;;
14387  esac
14388  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14389$as_echo "$enable_shared" >&6; }
14390
14391  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14392$as_echo_n "checking whether to build static libraries... " >&6; }
14393  # Make sure either enable_shared or enable_static is yes.
14394  test "$enable_shared" = yes || enable_static=yes
14395  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14396$as_echo "$enable_static" >&6; }
14397
14398
14399
14400
14401fi
14402ac_ext=c
14403ac_cpp='$CPP $CPPFLAGS'
14404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14406ac_compiler_gnu=$ac_cv_c_compiler_gnu
14407
14408CC="$lt_save_CC"
14409
14410
14411ac_ext=cpp
14412ac_cpp='$CXXCPP $CPPFLAGS'
14413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14416
14417archive_cmds_need_lc_CXX=no
14418allow_undefined_flag_CXX=
14419always_export_symbols_CXX=no
14420archive_expsym_cmds_CXX=
14421compiler_needs_object_CXX=no
14422export_dynamic_flag_spec_CXX=
14423hardcode_direct_CXX=no
14424hardcode_direct_absolute_CXX=no
14425hardcode_libdir_flag_spec_CXX=
14426hardcode_libdir_flag_spec_ld_CXX=
14427hardcode_libdir_separator_CXX=
14428hardcode_minus_L_CXX=no
14429hardcode_shlibpath_var_CXX=unsupported
14430hardcode_automatic_CXX=no
14431inherit_rpath_CXX=no
14432module_cmds_CXX=
14433module_expsym_cmds_CXX=
14434link_all_deplibs_CXX=unknown
14435old_archive_cmds_CXX=$old_archive_cmds
14436no_undefined_flag_CXX=
14437whole_archive_flag_spec_CXX=
14438enable_shared_with_static_runtimes_CXX=no
14439
14440# Source file extension for C++ test sources.
14441ac_ext=cpp
14442
14443# Object file extension for compiled C++ test sources.
14444objext=o
14445objext_CXX=$objext
14446
14447# No sense in running all these tests if we already determined that
14448# the CXX compiler isn't working.  Some variables (like enable_shared)
14449# are currently assumed to apply to all compilers on this platform,
14450# and will be corrupted by setting them based on a non-working compiler.
14451if test "$_lt_caught_CXX_error" != yes; then
14452  # Code to be used in simple compile tests
14453  lt_simple_compile_test_code="int some_variable = 0;"
14454
14455  # Code to be used in simple link tests
14456  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14457
14458  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14459
14460
14461
14462
14463
14464
14465# If no C compiler was specified, use CC.
14466LTCC=${LTCC-"$CC"}
14467
14468# If no C compiler flags were specified, use CFLAGS.
14469LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14470
14471# Allow CC to be a program name with arguments.
14472compiler=$CC
14473
14474
14475  # save warnings/boilerplate of simple test code
14476  ac_outfile=conftest.$ac_objext
14477echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14478eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14479_lt_compiler_boilerplate=`cat conftest.err`
14480$RM conftest*
14481
14482  ac_outfile=conftest.$ac_objext
14483echo "$lt_simple_link_test_code" >conftest.$ac_ext
14484eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14485_lt_linker_boilerplate=`cat conftest.err`
14486$RM -r conftest*
14487
14488
14489  # Allow CC to be a program name with arguments.
14490  lt_save_CC=$CC
14491  lt_save_LD=$LD
14492  lt_save_GCC=$GCC
14493  GCC=$GXX
14494  lt_save_with_gnu_ld=$with_gnu_ld
14495  lt_save_path_LD=$lt_cv_path_LD
14496  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14497    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14498  else
14499    $as_unset lt_cv_prog_gnu_ld
14500  fi
14501  if test -n "${lt_cv_path_LDCXX+set}"; then
14502    lt_cv_path_LD=$lt_cv_path_LDCXX
14503  else
14504    $as_unset lt_cv_path_LD
14505  fi
14506  test -z "${LDCXX+set}" || LD=$LDCXX
14507  CC=${CXX-"c++"}
14508  compiler=$CC
14509  compiler_CXX=$CC
14510  for cc_temp in $compiler""; do
14511  case $cc_temp in
14512    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14513    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14514    \-*) ;;
14515    *) break;;
14516  esac
14517done
14518cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14519
14520
14521  if test -n "$compiler"; then
14522    # We don't want -fno-exception when compiling C++ code, so set the
14523    # no_builtin_flag separately
14524    if test "$GXX" = yes; then
14525      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14526    else
14527      lt_prog_compiler_no_builtin_flag_CXX=
14528    fi
14529
14530    if test "$GXX" = yes; then
14531      # Set up default GNU C++ configuration
14532
14533
14534
14535# Check whether --with-gnu-ld was given.
14536if test "${with_gnu_ld+set}" = set; then
14537  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14538else
14539  with_gnu_ld=no
14540fi
14541
14542ac_prog=ld
14543if test "$GCC" = yes; then
14544  # Check if gcc -print-prog-name=ld gives a path.
14545  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14546$as_echo_n "checking for ld used by $CC... " >&6; }
14547  case $host in
14548  *-*-mingw*)
14549    # gcc leaves a trailing carriage return which upsets mingw
14550    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14551  *)
14552    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14553  esac
14554  case $ac_prog in
14555    # Accept absolute paths.
14556    [\\/]* | ?:[\\/]*)
14557      re_direlt='/[^/][^/]*/\.\./'
14558      # Canonicalize the pathname of ld
14559      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14560      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14561	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14562      done
14563      test -z "$LD" && LD="$ac_prog"
14564      ;;
14565  "")
14566    # If it fails, then pretend we aren't using GCC.
14567    ac_prog=ld
14568    ;;
14569  *)
14570    # If it is relative, then search for the first ld in PATH.
14571    with_gnu_ld=unknown
14572    ;;
14573  esac
14574elif test "$with_gnu_ld" = yes; then
14575  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
14576$as_echo_n "checking for GNU ld... " >&6; }
14577else
14578  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14579$as_echo_n "checking for non-GNU ld... " >&6; }
14580fi
14581if test "${lt_cv_path_LD+set}" = set; then
14582  $as_echo_n "(cached) " >&6
14583else
14584  if test -z "$LD"; then
14585  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14586  for ac_dir in $PATH; do
14587    IFS="$lt_save_ifs"
14588    test -z "$ac_dir" && ac_dir=.
14589    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14590      lt_cv_path_LD="$ac_dir/$ac_prog"
14591      # Check to see if the program is GNU ld.  I'd rather use --version,
14592      # but apparently some variants of GNU ld only accept -v.
14593      # Break only if it was the GNU/non-GNU ld that we prefer.
14594      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14595      *GNU* | *'with BFD'*)
14596	test "$with_gnu_ld" != no && break
14597	;;
14598      *)
14599	test "$with_gnu_ld" != yes && break
14600	;;
14601      esac
14602    fi
14603  done
14604  IFS="$lt_save_ifs"
14605else
14606  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14607fi
14608fi
14609
14610LD="$lt_cv_path_LD"
14611if test -n "$LD"; then
14612  { $as_echo "$as_me:$LINENO: result: $LD" >&5
14613$as_echo "$LD" >&6; }
14614else
14615  { $as_echo "$as_me:$LINENO: result: no" >&5
14616$as_echo "no" >&6; }
14617fi
14618test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14619$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14620   { (exit 1); exit 1; }; }
14621{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14622$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14623if test "${lt_cv_prog_gnu_ld+set}" = set; then
14624  $as_echo_n "(cached) " >&6
14625else
14626  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14627case `$LD -v 2>&1 </dev/null` in
14628*GNU* | *'with BFD'*)
14629  lt_cv_prog_gnu_ld=yes
14630  ;;
14631*)
14632  lt_cv_prog_gnu_ld=no
14633  ;;
14634esac
14635fi
14636{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14637$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14638with_gnu_ld=$lt_cv_prog_gnu_ld
14639
14640
14641
14642
14643
14644
14645
14646      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14647      # archiving commands below assume that GNU ld is being used.
14648      if test "$with_gnu_ld" = yes; then
14649        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14650        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'
14651
14652        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14653        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14654
14655        # If archive_cmds runs LD, not CC, wlarc should be empty
14656        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14657        #     investigate it a little bit more. (MM)
14658        wlarc='${wl}'
14659
14660        # ancient GNU ld didn't support --whole-archive et. al.
14661        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14662	  $GREP 'no-whole-archive' > /dev/null; then
14663          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14664        else
14665          whole_archive_flag_spec_CXX=
14666        fi
14667      else
14668        with_gnu_ld=no
14669        wlarc=
14670
14671        # A generic and very simple default shared library creation
14672        # command for GNU C++ for the case where it uses the native
14673        # linker, instead of GNU ld.  If possible, this setting should
14674        # overridden to take advantage of the native linker features on
14675        # the platform it is being used on.
14676        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14677      fi
14678
14679      # Commands to make compiler produce verbose output that lists
14680      # what "hidden" libraries, object files and flags are used when
14681      # linking a shared library.
14682      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14683
14684    else
14685      GXX=no
14686      with_gnu_ld=no
14687      wlarc=
14688    fi
14689
14690    # PORTME: fill in a description of your system's C++ link characteristics
14691    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14692$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14693    ld_shlibs_CXX=yes
14694    case $host_os in
14695      aix3*)
14696        # FIXME: insert proper C++ library support
14697        ld_shlibs_CXX=no
14698        ;;
14699      aix[4-9]*)
14700        if test "$host_cpu" = ia64; then
14701          # On IA64, the linker does run time linking by default, so we don't
14702          # have to do anything special.
14703          aix_use_runtimelinking=no
14704          exp_sym_flag='-Bexport'
14705          no_entry_flag=""
14706        else
14707          aix_use_runtimelinking=no
14708
14709          # Test if we are trying to use run time linking or normal
14710          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14711          # need to do runtime linking.
14712          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14713	    for ld_flag in $LDFLAGS; do
14714	      case $ld_flag in
14715	      *-brtl*)
14716	        aix_use_runtimelinking=yes
14717	        break
14718	        ;;
14719	      esac
14720	    done
14721	    ;;
14722          esac
14723
14724          exp_sym_flag='-bexport'
14725          no_entry_flag='-bnoentry'
14726        fi
14727
14728        # When large executables or shared objects are built, AIX ld can
14729        # have problems creating the table of contents.  If linking a library
14730        # or program results in "error TOC overflow" add -mminimal-toc to
14731        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14732        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14733
14734        archive_cmds_CXX=''
14735        hardcode_direct_CXX=yes
14736        hardcode_direct_absolute_CXX=yes
14737        hardcode_libdir_separator_CXX=':'
14738        link_all_deplibs_CXX=yes
14739        file_list_spec_CXX='${wl}-f,'
14740
14741        if test "$GXX" = yes; then
14742          case $host_os in aix4.[012]|aix4.[012].*)
14743          # We only want to do this on AIX 4.2 and lower, the check
14744          # below for broken collect2 doesn't work under 4.3+
14745	  collect2name=`${CC} -print-prog-name=collect2`
14746	  if test -f "$collect2name" &&
14747	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14748	  then
14749	    # We have reworked collect2
14750	    :
14751	  else
14752	    # We have old collect2
14753	    hardcode_direct_CXX=unsupported
14754	    # It fails to find uninstalled libraries when the uninstalled
14755	    # path is not listed in the libpath.  Setting hardcode_minus_L
14756	    # to unsupported forces relinking
14757	    hardcode_minus_L_CXX=yes
14758	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14759	    hardcode_libdir_separator_CXX=
14760	  fi
14761          esac
14762          shared_flag='-shared'
14763	  if test "$aix_use_runtimelinking" = yes; then
14764	    shared_flag="$shared_flag "'${wl}-G'
14765	  fi
14766        else
14767          # not using gcc
14768          if test "$host_cpu" = ia64; then
14769	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14770	  # chokes on -Wl,-G. The following line is correct:
14771	  shared_flag='-G'
14772          else
14773	    if test "$aix_use_runtimelinking" = yes; then
14774	      shared_flag='${wl}-G'
14775	    else
14776	      shared_flag='${wl}-bM:SRE'
14777	    fi
14778          fi
14779        fi
14780
14781        export_dynamic_flag_spec_CXX='${wl}-bexpall'
14782        # It seems that -bexpall does not export symbols beginning with
14783        # underscore (_), so it is better to generate a list of symbols to
14784	# export.
14785        always_export_symbols_CXX=yes
14786        if test "$aix_use_runtimelinking" = yes; then
14787          # Warning - without using the other runtime loading flags (-brtl),
14788          # -berok will link without error, but may produce a broken library.
14789          allow_undefined_flag_CXX='-berok'
14790          # Determine the default libpath from the value encoded in an empty
14791          # executable.
14792          cat >conftest.$ac_ext <<_ACEOF
14793/* confdefs.h.  */
14794_ACEOF
14795cat confdefs.h >>conftest.$ac_ext
14796cat >>conftest.$ac_ext <<_ACEOF
14797/* end confdefs.h.  */
14798
14799int
14800main ()
14801{
14802
14803  ;
14804  return 0;
14805}
14806_ACEOF
14807rm -f conftest.$ac_objext conftest$ac_exeext
14808if { (ac_try="$ac_link"
14809case "(($ac_try" in
14810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811  *) ac_try_echo=$ac_try;;
14812esac
14813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14814$as_echo "$ac_try_echo") >&5
14815  (eval "$ac_link") 2>conftest.er1
14816  ac_status=$?
14817  grep -v '^ *+' conftest.er1 >conftest.err
14818  rm -f conftest.er1
14819  cat conftest.err >&5
14820  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821  (exit $ac_status); } && {
14822	 test -z "$ac_cxx_werror_flag" ||
14823	 test ! -s conftest.err
14824       } && test -s conftest$ac_exeext && {
14825	 test "$cross_compiling" = yes ||
14826	 $as_test_x conftest$ac_exeext
14827       }; then
14828
14829lt_aix_libpath_sed='
14830    /Import File Strings/,/^$/ {
14831	/^0/ {
14832	    s/^0  *\(.*\)$/\1/
14833	    p
14834	}
14835    }'
14836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14837# Check for a 64-bit object if we didn't find anything.
14838if test -z "$aix_libpath"; then
14839  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14840fi
14841else
14842  $as_echo "$as_me: failed program was:" >&5
14843sed 's/^/| /' conftest.$ac_ext >&5
14844
14845
14846fi
14847
14848rm -rf conftest.dSYM
14849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14850      conftest$ac_exeext conftest.$ac_ext
14851if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14852
14853          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14854
14855          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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14856        else
14857          if test "$host_cpu" = ia64; then
14858	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14859	    allow_undefined_flag_CXX="-z nodefs"
14860	    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"
14861          else
14862	    # Determine the default libpath from the value encoded in an
14863	    # empty executable.
14864	    cat >conftest.$ac_ext <<_ACEOF
14865/* confdefs.h.  */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
14869/* end confdefs.h.  */
14870
14871int
14872main ()
14873{
14874
14875  ;
14876  return 0;
14877}
14878_ACEOF
14879rm -f conftest.$ac_objext conftest$ac_exeext
14880if { (ac_try="$ac_link"
14881case "(($ac_try" in
14882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883  *) ac_try_echo=$ac_try;;
14884esac
14885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14886$as_echo "$ac_try_echo") >&5
14887  (eval "$ac_link") 2>conftest.er1
14888  ac_status=$?
14889  grep -v '^ *+' conftest.er1 >conftest.err
14890  rm -f conftest.er1
14891  cat conftest.err >&5
14892  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893  (exit $ac_status); } && {
14894	 test -z "$ac_cxx_werror_flag" ||
14895	 test ! -s conftest.err
14896       } && test -s conftest$ac_exeext && {
14897	 test "$cross_compiling" = yes ||
14898	 $as_test_x conftest$ac_exeext
14899       }; then
14900
14901lt_aix_libpath_sed='
14902    /Import File Strings/,/^$/ {
14903	/^0/ {
14904	    s/^0  *\(.*\)$/\1/
14905	    p
14906	}
14907    }'
14908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14909# Check for a 64-bit object if we didn't find anything.
14910if test -z "$aix_libpath"; then
14911  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14912fi
14913else
14914  $as_echo "$as_me: failed program was:" >&5
14915sed 's/^/| /' conftest.$ac_ext >&5
14916
14917
14918fi
14919
14920rm -rf conftest.dSYM
14921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14922      conftest$ac_exeext conftest.$ac_ext
14923if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14924
14925	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14926	    # Warning - without using the other run time loading flags,
14927	    # -berok will link without error, but may produce a broken library.
14928	    no_undefined_flag_CXX=' ${wl}-bernotok'
14929	    allow_undefined_flag_CXX=' ${wl}-berok'
14930	    # Exported symbols can be pulled into shared objects from archives
14931	    whole_archive_flag_spec_CXX='$convenience'
14932	    archive_cmds_need_lc_CXX=yes
14933	    # This is similar to how AIX traditionally builds its shared
14934	    # libraries.
14935	    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'
14936          fi
14937        fi
14938        ;;
14939
14940      beos*)
14941	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14942	  allow_undefined_flag_CXX=unsupported
14943	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14944	  # support --undefined.  This deserves some investigation.  FIXME
14945	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946	else
14947	  ld_shlibs_CXX=no
14948	fi
14949	;;
14950
14951      chorus*)
14952        case $cc_basename in
14953          *)
14954	  # FIXME: insert proper C++ library support
14955	  ld_shlibs_CXX=no
14956	  ;;
14957        esac
14958        ;;
14959
14960      cygwin* | mingw* | pw32* | cegcc*)
14961        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14962        # as there is no search path for DLLs.
14963        hardcode_libdir_flag_spec_CXX='-L$libdir'
14964        allow_undefined_flag_CXX=unsupported
14965        always_export_symbols_CXX=no
14966        enable_shared_with_static_runtimes_CXX=yes
14967
14968        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14969          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'
14970          # If the export-symbols file already is a .def file (1st line
14971          # is EXPORTS), use it as is; otherwise, prepend...
14972          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14973	    cp $export_symbols $output_objdir/$soname.def;
14974          else
14975	    echo EXPORTS > $output_objdir/$soname.def;
14976	    cat $export_symbols >> $output_objdir/$soname.def;
14977          fi~
14978          $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'
14979        else
14980          ld_shlibs_CXX=no
14981        fi
14982        ;;
14983      darwin* | rhapsody*)
14984
14985
14986  archive_cmds_need_lc_CXX=no
14987  hardcode_direct_CXX=no
14988  hardcode_automatic_CXX=yes
14989  hardcode_shlibpath_var_CXX=unsupported
14990  whole_archive_flag_spec_CXX=''
14991  link_all_deplibs_CXX=yes
14992  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14993  case $cc_basename in
14994     ifort*) _lt_dar_can_shared=yes ;;
14995     *) _lt_dar_can_shared=$GCC ;;
14996  esac
14997  if test "$_lt_dar_can_shared" = "yes"; then
14998    output_verbose_link_cmd=echo
14999    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}"
15000    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15001    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}"
15002    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}"
15003       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15004      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}"
15005      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}"
15006    fi
15007
15008  else
15009  ld_shlibs_CXX=no
15010  fi
15011
15012	;;
15013
15014      dgux*)
15015        case $cc_basename in
15016          ec++*)
15017	    # FIXME: insert proper C++ library support
15018	    ld_shlibs_CXX=no
15019	    ;;
15020          ghcx*)
15021	    # Green Hills C++ Compiler
15022	    # FIXME: insert proper C++ library support
15023	    ld_shlibs_CXX=no
15024	    ;;
15025          *)
15026	    # FIXME: insert proper C++ library support
15027	    ld_shlibs_CXX=no
15028	    ;;
15029        esac
15030        ;;
15031
15032      freebsd[12]*)
15033        # C++ shared libraries reported to be fairly broken before
15034	# switch to ELF
15035        ld_shlibs_CXX=no
15036        ;;
15037
15038      freebsd-elf*)
15039        archive_cmds_need_lc_CXX=no
15040        ;;
15041
15042      freebsd* | dragonfly*)
15043        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15044        # conventions
15045        ld_shlibs_CXX=yes
15046        ;;
15047
15048      gnu*)
15049        ;;
15050
15051      hpux9*)
15052        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15053        hardcode_libdir_separator_CXX=:
15054        export_dynamic_flag_spec_CXX='${wl}-E'
15055        hardcode_direct_CXX=yes
15056        hardcode_minus_L_CXX=yes # Not in the search PATH,
15057				             # but as the default
15058				             # location of the library.
15059
15060        case $cc_basename in
15061          CC*)
15062            # FIXME: insert proper C++ library support
15063            ld_shlibs_CXX=no
15064            ;;
15065          aCC*)
15066            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'
15067            # Commands to make compiler produce verbose output that lists
15068            # what "hidden" libraries, object files and flags are used when
15069            # linking a shared library.
15070            #
15071            # There doesn't appear to be a way to prevent this compiler from
15072            # explicitly linking system object files so we need to strip them
15073            # from the output so that they don't get included in the library
15074            # dependencies.
15075            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15076            ;;
15077          *)
15078            if test "$GXX" = yes; then
15079              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'
15080            else
15081              # FIXME: insert proper C++ library support
15082              ld_shlibs_CXX=no
15083            fi
15084            ;;
15085        esac
15086        ;;
15087
15088      hpux10*|hpux11*)
15089        if test $with_gnu_ld = no; then
15090	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15091	  hardcode_libdir_separator_CXX=:
15092
15093          case $host_cpu in
15094            hppa*64*|ia64*)
15095              ;;
15096            *)
15097	      export_dynamic_flag_spec_CXX='${wl}-E'
15098              ;;
15099          esac
15100        fi
15101        case $host_cpu in
15102          hppa*64*|ia64*)
15103            hardcode_direct_CXX=no
15104            hardcode_shlibpath_var_CXX=no
15105            ;;
15106          *)
15107            hardcode_direct_CXX=yes
15108            hardcode_direct_absolute_CXX=yes
15109            hardcode_minus_L_CXX=yes # Not in the search PATH,
15110					         # but as the default
15111					         # location of the library.
15112            ;;
15113        esac
15114
15115        case $cc_basename in
15116          CC*)
15117	    # FIXME: insert proper C++ library support
15118	    ld_shlibs_CXX=no
15119	    ;;
15120          aCC*)
15121	    case $host_cpu in
15122	      hppa*64*)
15123	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15124	        ;;
15125	      ia64*)
15126	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15127	        ;;
15128	      *)
15129	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15130	        ;;
15131	    esac
15132	    # Commands to make compiler produce verbose output that lists
15133	    # what "hidden" libraries, object files and flags are used when
15134	    # linking a shared library.
15135	    #
15136	    # There doesn't appear to be a way to prevent this compiler from
15137	    # explicitly linking system object files so we need to strip them
15138	    # from the output so that they don't get included in the library
15139	    # dependencies.
15140	    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 "X$list" | $Xsed'
15141	    ;;
15142          *)
15143	    if test "$GXX" = yes; then
15144	      if test $with_gnu_ld = no; then
15145	        case $host_cpu in
15146	          hppa*64*)
15147	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15148	            ;;
15149	          ia64*)
15150	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15151	            ;;
15152	          *)
15153	            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'
15154	            ;;
15155	        esac
15156	      fi
15157	    else
15158	      # FIXME: insert proper C++ library support
15159	      ld_shlibs_CXX=no
15160	    fi
15161	    ;;
15162        esac
15163        ;;
15164
15165      interix[3-9]*)
15166	hardcode_direct_CXX=no
15167	hardcode_shlibpath_var_CXX=no
15168	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15169	export_dynamic_flag_spec_CXX='${wl}-E'
15170	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15171	# Instead, shared libraries are loaded at an image base (0x10000000 by
15172	# default) and relocated if they conflict, which is a slow very memory
15173	# consuming and fragmenting process.  To avoid this, we pick a random,
15174	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15175	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15176	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'
15177	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'
15178	;;
15179      irix5* | irix6*)
15180        case $cc_basename in
15181          CC*)
15182	    # SGI C++
15183	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15184
15185	    # Archives containing C++ object files must be created using
15186	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15187	    # necessary to make sure instantiated templates are included
15188	    # in the archive.
15189	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15190	    ;;
15191          *)
15192	    if test "$GXX" = yes; then
15193	      if test "$with_gnu_ld" = no; then
15194	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15195	      else
15196	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15197	      fi
15198	    fi
15199	    link_all_deplibs_CXX=yes
15200	    ;;
15201        esac
15202        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15203        hardcode_libdir_separator_CXX=:
15204        inherit_rpath_CXX=yes
15205        ;;
15206
15207      linux* | k*bsd*-gnu)
15208        case $cc_basename in
15209          KCC*)
15210	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15211
15212	    # KCC will only create a shared library if the output file
15213	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15214	    # to its proper name (with version) after linking.
15215	    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'
15216	    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'
15217	    # Commands to make compiler produce verbose output that lists
15218	    # what "hidden" libraries, object files and flags are used when
15219	    # linking a shared library.
15220	    #
15221	    # There doesn't appear to be a way to prevent this compiler from
15222	    # explicitly linking system object files so we need to strip them
15223	    # from the output so that they don't get included in the library
15224	    # dependencies.
15225	    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 "X$list" | $Xsed'
15226
15227	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15228	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15229
15230	    # Archives containing C++ object files must be created using
15231	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15232	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15233	    ;;
15234	  icpc* | ecpc* )
15235	    # Intel C++
15236	    with_gnu_ld=yes
15237	    # version 8.0 and above of icpc choke on multiply defined symbols
15238	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15239	    # earlier do not add the objects themselves.
15240	    case `$CC -V 2>&1` in
15241	      *"Version 7."*)
15242	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15243		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'
15244		;;
15245	      *)  # Version 8.0 or newer
15246	        tmp_idyn=
15247	        case $host_cpu in
15248		  ia64*) tmp_idyn=' -i_dynamic';;
15249		esac
15250	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15251		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'
15252		;;
15253	    esac
15254	    archive_cmds_need_lc_CXX=no
15255	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15256	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15257	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15258	    ;;
15259          pgCC* | pgcpp*)
15260            # Portland Group C++ compiler
15261	    case `$CC -V` in
15262	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15263	      prelink_cmds_CXX='tpldir=Template.dir~
15264		rm -rf $tpldir~
15265		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15266		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15267	      old_archive_cmds_CXX='tpldir=Template.dir~
15268		rm -rf $tpldir~
15269		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15270		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15271		$RANLIB $oldlib'
15272	      archive_cmds_CXX='tpldir=Template.dir~
15273		rm -rf $tpldir~
15274		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15275		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15276	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15277		rm -rf $tpldir~
15278		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15279		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15280	      ;;
15281	    *) # Version 6 will use weak symbols
15282	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15283	      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'
15284	      ;;
15285	    esac
15286
15287	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15288	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15289	    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'
15290            ;;
15291	  cxx*)
15292	    # Compaq C++
15293	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294	    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'
15295
15296	    runpath_var=LD_RUN_PATH
15297	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15298	    hardcode_libdir_separator_CXX=:
15299
15300	    # Commands to make compiler produce verbose output that lists
15301	    # what "hidden" libraries, object files and flags are used when
15302	    # linking a shared library.
15303	    #
15304	    # There doesn't appear to be a way to prevent this compiler from
15305	    # explicitly linking system object files so we need to strip them
15306	    # from the output so that they don't get included in the library
15307	    # dependencies.
15308	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
15309	    ;;
15310	  xl*)
15311	    # IBM XL 8.0 on PPC, with GNU ld
15312	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15313	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15314	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15315	    if test "x$supports_anon_versioning" = xyes; then
15316	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15317		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15318		echo "local: *; };" >> $output_objdir/$libname.ver~
15319		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15320	    fi
15321	    ;;
15322	  *)
15323	    case `$CC -V 2>&1 | sed 5q` in
15324	    *Sun\ C*)
15325	      # Sun C++ 5.9
15326	      no_undefined_flag_CXX=' -zdefs'
15327	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15328	      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'
15329	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15330	      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'
15331	      compiler_needs_object_CXX=yes
15332
15333	      # Not sure whether something based on
15334	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15335	      # would be better.
15336	      output_verbose_link_cmd='echo'
15337
15338	      # Archives containing C++ object files must be created using
15339	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15340	      # necessary to make sure instantiated templates are included
15341	      # in the archive.
15342	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15343	      ;;
15344	    esac
15345	    ;;
15346	esac
15347	;;
15348
15349      lynxos*)
15350        # FIXME: insert proper C++ library support
15351	ld_shlibs_CXX=no
15352	;;
15353
15354      m88k*)
15355        # FIXME: insert proper C++ library support
15356        ld_shlibs_CXX=no
15357	;;
15358
15359      mvs*)
15360        case $cc_basename in
15361          cxx*)
15362	    # FIXME: insert proper C++ library support
15363	    ld_shlibs_CXX=no
15364	    ;;
15365	  *)
15366	    # FIXME: insert proper C++ library support
15367	    ld_shlibs_CXX=no
15368	    ;;
15369	esac
15370	;;
15371
15372      netbsd*)
15373        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15374	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15375	  wlarc=
15376	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15377	  hardcode_direct_CXX=yes
15378	  hardcode_shlibpath_var_CXX=no
15379	fi
15380	# Workaround some broken pre-1.5 toolchains
15381	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15382	;;
15383
15384      *nto* | *qnx*)
15385        ld_shlibs_CXX=yes
15386	;;
15387
15388      openbsd2*)
15389        # C++ shared libraries are fairly broken
15390	ld_shlibs_CXX=no
15391	;;
15392
15393      openbsd*)
15394	if test -f /usr/libexec/ld.so; then
15395	  hardcode_direct_CXX=yes
15396	  hardcode_shlibpath_var_CXX=no
15397	  hardcode_direct_absolute_CXX=yes
15398	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15399	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15400	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15401	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15402	    export_dynamic_flag_spec_CXX='${wl}-E'
15403	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15404	  fi
15405	  output_verbose_link_cmd=echo
15406	else
15407	  ld_shlibs_CXX=no
15408	fi
15409	;;
15410
15411      osf3* | osf4* | osf5*)
15412        case $cc_basename in
15413          KCC*)
15414	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15415
15416	    # KCC will only create a shared library if the output file
15417	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15418	    # to its proper name (with version) after linking.
15419	    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'
15420
15421	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15422	    hardcode_libdir_separator_CXX=:
15423
15424	    # Archives containing C++ object files must be created using
15425	    # the KAI C++ compiler.
15426	    case $host in
15427	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15428	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15429	    esac
15430	    ;;
15431          RCC*)
15432	    # Rational C++ 2.4.1
15433	    # FIXME: insert proper C++ library support
15434	    ld_shlibs_CXX=no
15435	    ;;
15436          cxx*)
15437	    case $host in
15438	      osf3*)
15439	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15440	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15441	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15442		;;
15443	      *)
15444	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15445	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15446	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15447	          echo "-hidden">> $lib.exp~
15448	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15449	          $RM $lib.exp'
15450	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15451		;;
15452	    esac
15453
15454	    hardcode_libdir_separator_CXX=:
15455
15456	    # Commands to make compiler produce verbose output that lists
15457	    # what "hidden" libraries, object files and flags are used when
15458	    # linking a shared library.
15459	    #
15460	    # There doesn't appear to be a way to prevent this compiler from
15461	    # explicitly linking system object files so we need to strip them
15462	    # from the output so that they don't get included in the library
15463	    # dependencies.
15464	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
15465	    ;;
15466	  *)
15467	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15468	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15469	      case $host in
15470	        osf3*)
15471	          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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15472		  ;;
15473	        *)
15474	          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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15475		  ;;
15476	      esac
15477
15478	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15479	      hardcode_libdir_separator_CXX=:
15480
15481	      # Commands to make compiler produce verbose output that lists
15482	      # what "hidden" libraries, object files and flags are used when
15483	      # linking a shared library.
15484	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15485
15486	    else
15487	      # FIXME: insert proper C++ library support
15488	      ld_shlibs_CXX=no
15489	    fi
15490	    ;;
15491        esac
15492        ;;
15493
15494      psos*)
15495        # FIXME: insert proper C++ library support
15496        ld_shlibs_CXX=no
15497        ;;
15498
15499      sunos4*)
15500        case $cc_basename in
15501          CC*)
15502	    # Sun C++ 4.x
15503	    # FIXME: insert proper C++ library support
15504	    ld_shlibs_CXX=no
15505	    ;;
15506          lcc*)
15507	    # Lucid
15508	    # FIXME: insert proper C++ library support
15509	    ld_shlibs_CXX=no
15510	    ;;
15511          *)
15512	    # FIXME: insert proper C++ library support
15513	    ld_shlibs_CXX=no
15514	    ;;
15515        esac
15516        ;;
15517
15518      solaris*)
15519        case $cc_basename in
15520          CC*)
15521	    # Sun C++ 4.2, 5.x and Centerline C++
15522            archive_cmds_need_lc_CXX=yes
15523	    no_undefined_flag_CXX=' -zdefs'
15524	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15525	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15526	      $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'
15527
15528	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15529	    hardcode_shlibpath_var_CXX=no
15530	    case $host_os in
15531	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15532	      *)
15533		# The compiler driver will combine and reorder linker options,
15534		# but understands `-z linker_flag'.
15535	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15536		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15537	        ;;
15538	    esac
15539	    link_all_deplibs_CXX=yes
15540
15541	    output_verbose_link_cmd='echo'
15542
15543	    # Archives containing C++ object files must be created using
15544	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15545	    # necessary to make sure instantiated templates are included
15546	    # in the archive.
15547	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15548	    ;;
15549          gcx*)
15550	    # Green Hills C++ Compiler
15551	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15552
15553	    # The C++ compiler must be used to create the archive.
15554	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15555	    ;;
15556          *)
15557	    # GNU C++ compiler with Solaris linker
15558	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15559	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15560	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15561	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15562	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15563		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15564
15565	        # Commands to make compiler produce verbose output that lists
15566	        # what "hidden" libraries, object files and flags are used when
15567	        # linking a shared library.
15568	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15569	      else
15570	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
15571	        # platform.
15572	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15573	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15574		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15575
15576	        # Commands to make compiler produce verbose output that lists
15577	        # what "hidden" libraries, object files and flags are used when
15578	        # linking a shared library.
15579	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15580	      fi
15581
15582	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15583	      case $host_os in
15584		solaris2.[0-5] | solaris2.[0-5].*) ;;
15585		*)
15586		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15587		  ;;
15588	      esac
15589	    fi
15590	    ;;
15591        esac
15592        ;;
15593
15594    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15595      no_undefined_flag_CXX='${wl}-z,text'
15596      archive_cmds_need_lc_CXX=no
15597      hardcode_shlibpath_var_CXX=no
15598      runpath_var='LD_RUN_PATH'
15599
15600      case $cc_basename in
15601        CC*)
15602	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15603	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15604	  ;;
15605	*)
15606	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15607	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15608	  ;;
15609      esac
15610      ;;
15611
15612      sysv5* | sco3.2v5* | sco5v6*)
15613	# Note: We can NOT use -z defs as we might desire, because we do not
15614	# link with -lc, and that would cause any symbols used from libc to
15615	# always be unresolved, which means just about no library would
15616	# ever link correctly.  If we're not using GNU ld we use -z text
15617	# though, which does catch some bad symbols but isn't as heavy-handed
15618	# as -z defs.
15619	no_undefined_flag_CXX='${wl}-z,text'
15620	allow_undefined_flag_CXX='${wl}-z,nodefs'
15621	archive_cmds_need_lc_CXX=no
15622	hardcode_shlibpath_var_CXX=no
15623	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15624	hardcode_libdir_separator_CXX=':'
15625	link_all_deplibs_CXX=yes
15626	export_dynamic_flag_spec_CXX='${wl}-Bexport'
15627	runpath_var='LD_RUN_PATH'
15628
15629	case $cc_basename in
15630          CC*)
15631	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15632	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633	    ;;
15634	  *)
15635	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15636	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637	    ;;
15638	esac
15639      ;;
15640
15641      tandem*)
15642        case $cc_basename in
15643          NCC*)
15644	    # NonStop-UX NCC 3.20
15645	    # FIXME: insert proper C++ library support
15646	    ld_shlibs_CXX=no
15647	    ;;
15648          *)
15649	    # FIXME: insert proper C++ library support
15650	    ld_shlibs_CXX=no
15651	    ;;
15652        esac
15653        ;;
15654
15655      vxworks*)
15656        # FIXME: insert proper C++ library support
15657        ld_shlibs_CXX=no
15658        ;;
15659
15660      *)
15661        # FIXME: insert proper C++ library support
15662        ld_shlibs_CXX=no
15663        ;;
15664    esac
15665
15666    { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15667$as_echo "$ld_shlibs_CXX" >&6; }
15668    test "$ld_shlibs_CXX" = no && can_build_shared=no
15669
15670    GCC_CXX="$GXX"
15671    LD_CXX="$LD"
15672
15673    ## CAVEAT EMPTOR:
15674    ## There is no encapsulation within the following macros, do not change
15675    ## the running order or otherwise move them around unless you know exactly
15676    ## what you are doing...
15677    # Dependencies to place before and after the object being linked:
15678predep_objects_CXX=
15679postdep_objects_CXX=
15680predeps_CXX=
15681postdeps_CXX=
15682compiler_lib_search_path_CXX=
15683
15684cat > conftest.$ac_ext <<_LT_EOF
15685class Foo
15686{
15687public:
15688  Foo (void) { a = 0; }
15689private:
15690  int a;
15691};
15692_LT_EOF
15693
15694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15695  (eval $ac_compile) 2>&5
15696  ac_status=$?
15697  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698  (exit $ac_status); }; then
15699  # Parse the compiler output and extract the necessary
15700  # objects, libraries and library flags.
15701
15702  # Sentinel used to keep track of whether or not we are before
15703  # the conftest object file.
15704  pre_test_object_deps_done=no
15705
15706  for p in `eval "$output_verbose_link_cmd"`; do
15707    case $p in
15708
15709    -L* | -R* | -l*)
15710       # Some compilers place space between "-{L,R}" and the path.
15711       # Remove the space.
15712       if test $p = "-L" ||
15713          test $p = "-R"; then
15714	 prev=$p
15715	 continue
15716       else
15717	 prev=
15718       fi
15719
15720       if test "$pre_test_object_deps_done" = no; then
15721	 case $p in
15722	 -L* | -R*)
15723	   # Internal compiler library paths should come after those
15724	   # provided the user.  The postdeps already come after the
15725	   # user supplied libs so there is no need to process them.
15726	   if test -z "$compiler_lib_search_path_CXX"; then
15727	     compiler_lib_search_path_CXX="${prev}${p}"
15728	   else
15729	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15730	   fi
15731	   ;;
15732	 # The "-l" case would never come before the object being
15733	 # linked, so don't bother handling this case.
15734	 esac
15735       else
15736	 if test -z "$postdeps_CXX"; then
15737	   postdeps_CXX="${prev}${p}"
15738	 else
15739	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15740	 fi
15741       fi
15742       ;;
15743
15744    *.$objext)
15745       # This assumes that the test object file only shows up
15746       # once in the compiler output.
15747       if test "$p" = "conftest.$objext"; then
15748	 pre_test_object_deps_done=yes
15749	 continue
15750       fi
15751
15752       if test "$pre_test_object_deps_done" = no; then
15753	 if test -z "$predep_objects_CXX"; then
15754	   predep_objects_CXX="$p"
15755	 else
15756	   predep_objects_CXX="$predep_objects_CXX $p"
15757	 fi
15758       else
15759	 if test -z "$postdep_objects_CXX"; then
15760	   postdep_objects_CXX="$p"
15761	 else
15762	   postdep_objects_CXX="$postdep_objects_CXX $p"
15763	 fi
15764       fi
15765       ;;
15766
15767    *) ;; # Ignore the rest.
15768
15769    esac
15770  done
15771
15772  # Clean up.
15773  rm -f a.out a.exe
15774else
15775  echo "libtool.m4: error: problem compiling CXX test program"
15776fi
15777
15778$RM -f confest.$objext
15779
15780# PORTME: override above test on systems where it is broken
15781case $host_os in
15782interix[3-9]*)
15783  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15784  # hack all around it, let's just trust "g++" to DTRT.
15785  predep_objects_CXX=
15786  postdep_objects_CXX=
15787  postdeps_CXX=
15788  ;;
15789
15790linux*)
15791  case `$CC -V 2>&1 | sed 5q` in
15792  *Sun\ C*)
15793    # Sun C++ 5.9
15794
15795    # The more standards-conforming stlport4 library is
15796    # incompatible with the Cstd library. Avoid specifying
15797    # it if it's in CXXFLAGS. Ignore libCrun as
15798    # -library=stlport4 depends on it.
15799    case " $CXX $CXXFLAGS " in
15800    *" -library=stlport4 "*)
15801      solaris_use_stlport4=yes
15802      ;;
15803    esac
15804
15805    if test "$solaris_use_stlport4" != yes; then
15806      postdeps_CXX='-library=Cstd -library=Crun'
15807    fi
15808    ;;
15809  esac
15810  ;;
15811
15812solaris*)
15813  case $cc_basename in
15814  CC*)
15815    # The more standards-conforming stlport4 library is
15816    # incompatible with the Cstd library. Avoid specifying
15817    # it if it's in CXXFLAGS. Ignore libCrun as
15818    # -library=stlport4 depends on it.
15819    case " $CXX $CXXFLAGS " in
15820    *" -library=stlport4 "*)
15821      solaris_use_stlport4=yes
15822      ;;
15823    esac
15824
15825    # Adding this requires a known-good setup of shared libraries for
15826    # Sun compiler versions before 5.6, else PIC objects from an old
15827    # archive will be linked into the output, leading to subtle bugs.
15828    if test "$solaris_use_stlport4" != yes; then
15829      postdeps_CXX='-library=Cstd -library=Crun'
15830    fi
15831    ;;
15832  esac
15833  ;;
15834esac
15835
15836
15837case " $postdeps_CXX " in
15838*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15839esac
15840 compiler_lib_search_dirs_CXX=
15841if test -n "${compiler_lib_search_path_CXX}"; then
15842 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15843fi
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875    lt_prog_compiler_wl_CXX=
15876lt_prog_compiler_pic_CXX=
15877lt_prog_compiler_static_CXX=
15878
15879{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15880$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15881
15882  # C++ specific cases for pic, static, wl, etc.
15883  if test "$GXX" = yes; then
15884    lt_prog_compiler_wl_CXX='-Wl,'
15885    lt_prog_compiler_static_CXX='-static'
15886
15887    case $host_os in
15888    aix*)
15889      # All AIX code is PIC.
15890      if test "$host_cpu" = ia64; then
15891	# AIX 5 now supports IA64 processor
15892	lt_prog_compiler_static_CXX='-Bstatic'
15893      fi
15894      ;;
15895
15896    amigaos*)
15897      case $host_cpu in
15898      powerpc)
15899            # see comment about AmigaOS4 .so support
15900            lt_prog_compiler_pic_CXX='-fPIC'
15901        ;;
15902      m68k)
15903            # FIXME: we need at least 68020 code to build shared libraries, but
15904            # adding the `-m68020' flag to GCC prevents building anything better,
15905            # like `-m68040'.
15906            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15907        ;;
15908      esac
15909      ;;
15910
15911    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15912      # PIC is the default for these OSes.
15913      ;;
15914    mingw* | cygwin* | os2* | pw32* | cegcc*)
15915      # This hack is so that the source file can tell whether it is being
15916      # built for inclusion in a dll (and should export symbols for example).
15917      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15918      # (--disable-auto-import) libraries
15919      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15920      ;;
15921    darwin* | rhapsody*)
15922      # PIC is the default on this platform
15923      # Common symbols not allowed in MH_DYLIB files
15924      lt_prog_compiler_pic_CXX='-fno-common'
15925      ;;
15926    *djgpp*)
15927      # DJGPP does not support shared libraries at all
15928      lt_prog_compiler_pic_CXX=
15929      ;;
15930    interix[3-9]*)
15931      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15932      # Instead, we relocate shared libraries at runtime.
15933      ;;
15934    sysv4*MP*)
15935      if test -d /usr/nec; then
15936	lt_prog_compiler_pic_CXX=-Kconform_pic
15937      fi
15938      ;;
15939    hpux*)
15940      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15941      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15942      # sets the default TLS model and affects inlining.
15943      case $host_cpu in
15944      hppa*64*)
15945	;;
15946      *)
15947	lt_prog_compiler_pic_CXX='-fPIC'
15948	;;
15949      esac
15950      ;;
15951    *qnx* | *nto*)
15952      # QNX uses GNU C++, but need to define -shared option too, otherwise
15953      # it will coredump.
15954      lt_prog_compiler_pic_CXX='-fPIC -shared'
15955      ;;
15956    *)
15957      lt_prog_compiler_pic_CXX='-fPIC'
15958      ;;
15959    esac
15960  else
15961    case $host_os in
15962      aix[4-9]*)
15963	# All AIX code is PIC.
15964	if test "$host_cpu" = ia64; then
15965	  # AIX 5 now supports IA64 processor
15966	  lt_prog_compiler_static_CXX='-Bstatic'
15967	else
15968	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15969	fi
15970	;;
15971      chorus*)
15972	case $cc_basename in
15973	cxch68*)
15974	  # Green Hills C++ Compiler
15975	  # _LT_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"
15976	  ;;
15977	esac
15978	;;
15979      dgux*)
15980	case $cc_basename in
15981	  ec++*)
15982	    lt_prog_compiler_pic_CXX='-KPIC'
15983	    ;;
15984	  ghcx*)
15985	    # Green Hills C++ Compiler
15986	    lt_prog_compiler_pic_CXX='-pic'
15987	    ;;
15988	  *)
15989	    ;;
15990	esac
15991	;;
15992      freebsd* | dragonfly*)
15993	# FreeBSD uses GNU C++
15994	;;
15995      hpux9* | hpux10* | hpux11*)
15996	case $cc_basename in
15997	  CC*)
15998	    lt_prog_compiler_wl_CXX='-Wl,'
15999	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16000	    if test "$host_cpu" != ia64; then
16001	      lt_prog_compiler_pic_CXX='+Z'
16002	    fi
16003	    ;;
16004	  aCC*)
16005	    lt_prog_compiler_wl_CXX='-Wl,'
16006	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16007	    case $host_cpu in
16008	    hppa*64*|ia64*)
16009	      # +Z the default
16010	      ;;
16011	    *)
16012	      lt_prog_compiler_pic_CXX='+Z'
16013	      ;;
16014	    esac
16015	    ;;
16016	  *)
16017	    ;;
16018	esac
16019	;;
16020      interix*)
16021	# This is c89, which is MS Visual C++ (no shared libs)
16022	# Anyone wants to do a port?
16023	;;
16024      irix5* | irix6* | nonstopux*)
16025	case $cc_basename in
16026	  CC*)
16027	    lt_prog_compiler_wl_CXX='-Wl,'
16028	    lt_prog_compiler_static_CXX='-non_shared'
16029	    # CC pic flag -KPIC is the default.
16030	    ;;
16031	  *)
16032	    ;;
16033	esac
16034	;;
16035      linux* | k*bsd*-gnu)
16036	case $cc_basename in
16037	  KCC*)
16038	    # KAI C++ Compiler
16039	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16040	    lt_prog_compiler_pic_CXX='-fPIC'
16041	    ;;
16042	  ecpc* )
16043	    # old Intel C++ for x86_64 which still supported -KPIC.
16044	    lt_prog_compiler_wl_CXX='-Wl,'
16045	    lt_prog_compiler_pic_CXX='-KPIC'
16046	    lt_prog_compiler_static_CXX='-static'
16047	    ;;
16048	  icpc* )
16049	    # Intel C++, used to be incompatible with GCC.
16050	    # ICC 10 doesn't accept -KPIC any more.
16051	    lt_prog_compiler_wl_CXX='-Wl,'
16052	    lt_prog_compiler_pic_CXX='-fPIC'
16053	    lt_prog_compiler_static_CXX='-static'
16054	    ;;
16055	  pgCC* | pgcpp*)
16056	    # Portland Group C++ compiler
16057	    lt_prog_compiler_wl_CXX='-Wl,'
16058	    lt_prog_compiler_pic_CXX='-fpic'
16059	    lt_prog_compiler_static_CXX='-Bstatic'
16060	    ;;
16061	  cxx*)
16062	    # Compaq C++
16063	    # Make sure the PIC flag is empty.  It appears that all Alpha
16064	    # Linux and Compaq Tru64 Unix objects are PIC.
16065	    lt_prog_compiler_pic_CXX=
16066	    lt_prog_compiler_static_CXX='-non_shared'
16067	    ;;
16068	  xlc* | xlC*)
16069	    # IBM XL 8.0 on PPC
16070	    lt_prog_compiler_wl_CXX='-Wl,'
16071	    lt_prog_compiler_pic_CXX='-qpic'
16072	    lt_prog_compiler_static_CXX='-qstaticlink'
16073	    ;;
16074	  *)
16075	    case `$CC -V 2>&1 | sed 5q` in
16076	    *Sun\ C*)
16077	      # Sun C++ 5.9
16078	      lt_prog_compiler_pic_CXX='-KPIC'
16079	      lt_prog_compiler_static_CXX='-Bstatic'
16080	      lt_prog_compiler_wl_CXX='-Qoption ld '
16081	      ;;
16082	    esac
16083	    ;;
16084	esac
16085	;;
16086      lynxos*)
16087	;;
16088      m88k*)
16089	;;
16090      mvs*)
16091	case $cc_basename in
16092	  cxx*)
16093	    lt_prog_compiler_pic_CXX='-W c,exportall'
16094	    ;;
16095	  *)
16096	    ;;
16097	esac
16098	;;
16099      netbsd* | netbsdelf*-gnu)
16100	;;
16101      *qnx* | *nto*)
16102        # QNX uses GNU C++, but need to define -shared option too, otherwise
16103        # it will coredump.
16104        lt_prog_compiler_pic_CXX='-fPIC -shared'
16105        ;;
16106      osf3* | osf4* | osf5*)
16107	case $cc_basename in
16108	  KCC*)
16109	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16110	    ;;
16111	  RCC*)
16112	    # Rational C++ 2.4.1
16113	    lt_prog_compiler_pic_CXX='-pic'
16114	    ;;
16115	  cxx*)
16116	    # Digital/Compaq C++
16117	    lt_prog_compiler_wl_CXX='-Wl,'
16118	    # Make sure the PIC flag is empty.  It appears that all Alpha
16119	    # Linux and Compaq Tru64 Unix objects are PIC.
16120	    lt_prog_compiler_pic_CXX=
16121	    lt_prog_compiler_static_CXX='-non_shared'
16122	    ;;
16123	  *)
16124	    ;;
16125	esac
16126	;;
16127      psos*)
16128	;;
16129      solaris*)
16130	case $cc_basename in
16131	  CC*)
16132	    # Sun C++ 4.2, 5.x and Centerline C++
16133	    lt_prog_compiler_pic_CXX='-KPIC'
16134	    lt_prog_compiler_static_CXX='-Bstatic'
16135	    lt_prog_compiler_wl_CXX='-Qoption ld '
16136	    ;;
16137	  gcx*)
16138	    # Green Hills C++ Compiler
16139	    lt_prog_compiler_pic_CXX='-PIC'
16140	    ;;
16141	  *)
16142	    ;;
16143	esac
16144	;;
16145      sunos4*)
16146	case $cc_basename in
16147	  CC*)
16148	    # Sun C++ 4.x
16149	    lt_prog_compiler_pic_CXX='-pic'
16150	    lt_prog_compiler_static_CXX='-Bstatic'
16151	    ;;
16152	  lcc*)
16153	    # Lucid
16154	    lt_prog_compiler_pic_CXX='-pic'
16155	    ;;
16156	  *)
16157	    ;;
16158	esac
16159	;;
16160      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16161	case $cc_basename in
16162	  CC*)
16163	    lt_prog_compiler_wl_CXX='-Wl,'
16164	    lt_prog_compiler_pic_CXX='-KPIC'
16165	    lt_prog_compiler_static_CXX='-Bstatic'
16166	    ;;
16167	esac
16168	;;
16169      tandem*)
16170	case $cc_basename in
16171	  NCC*)
16172	    # NonStop-UX NCC 3.20
16173	    lt_prog_compiler_pic_CXX='-KPIC'
16174	    ;;
16175	  *)
16176	    ;;
16177	esac
16178	;;
16179      vxworks*)
16180	;;
16181      *)
16182	lt_prog_compiler_can_build_shared_CXX=no
16183	;;
16184    esac
16185  fi
16186
16187case $host_os in
16188  # For platforms which do not support PIC, -DPIC is meaningless:
16189  *djgpp*)
16190    lt_prog_compiler_pic_CXX=
16191    ;;
16192  *)
16193    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16194    ;;
16195esac
16196{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16197$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16198
16199
16200
16201#
16202# Check to make sure the PIC flag actually works.
16203#
16204if test -n "$lt_prog_compiler_pic_CXX"; then
16205  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16206$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16207if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16208  $as_echo_n "(cached) " >&6
16209else
16210  lt_cv_prog_compiler_pic_works_CXX=no
16211   ac_outfile=conftest.$ac_objext
16212   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16213   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16214   # Insert the option either (1) after the last *FLAGS variable, or
16215   # (2) before a word containing "conftest.", or (3) at the end.
16216   # Note that $ac_compile itself does not contain backslashes and begins
16217   # with a dollar sign (not a hyphen), so the echo should work correctly.
16218   # The option is referenced via a variable to avoid confusing sed.
16219   lt_compile=`echo "$ac_compile" | $SED \
16220   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16221   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16222   -e 's:$: $lt_compiler_flag:'`
16223   (eval echo "\"\$as_me:16223: $lt_compile\"" >&5)
16224   (eval "$lt_compile" 2>conftest.err)
16225   ac_status=$?
16226   cat conftest.err >&5
16227   echo "$as_me:16227: \$? = $ac_status" >&5
16228   if (exit $ac_status) && test -s "$ac_outfile"; then
16229     # The compiler can only warn and ignore the option if not recognized
16230     # So say no if there are warnings other than the usual output.
16231     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16232     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16233     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16234       lt_cv_prog_compiler_pic_works_CXX=yes
16235     fi
16236   fi
16237   $RM conftest*
16238
16239fi
16240{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16241$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16242
16243if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16244    case $lt_prog_compiler_pic_CXX in
16245     "" | " "*) ;;
16246     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16247     esac
16248else
16249    lt_prog_compiler_pic_CXX=
16250     lt_prog_compiler_can_build_shared_CXX=no
16251fi
16252
16253fi
16254
16255
16256
16257#
16258# Check to make sure the static flag actually works.
16259#
16260wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16261{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16262$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16263if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16264  $as_echo_n "(cached) " >&6
16265else
16266  lt_cv_prog_compiler_static_works_CXX=no
16267   save_LDFLAGS="$LDFLAGS"
16268   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16269   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16270   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16271     # The linker can only warn and ignore the option if not recognized
16272     # So say no if there are warnings
16273     if test -s conftest.err; then
16274       # Append any errors to the config.log.
16275       cat conftest.err 1>&5
16276       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16277       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16278       if diff conftest.exp conftest.er2 >/dev/null; then
16279         lt_cv_prog_compiler_static_works_CXX=yes
16280       fi
16281     else
16282       lt_cv_prog_compiler_static_works_CXX=yes
16283     fi
16284   fi
16285   $RM -r conftest*
16286   LDFLAGS="$save_LDFLAGS"
16287
16288fi
16289{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16290$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16291
16292if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16293    :
16294else
16295    lt_prog_compiler_static_CXX=
16296fi
16297
16298
16299
16300
16301    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16302$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16303if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16304  $as_echo_n "(cached) " >&6
16305else
16306  lt_cv_prog_compiler_c_o_CXX=no
16307   $RM -r conftest 2>/dev/null
16308   mkdir conftest
16309   cd conftest
16310   mkdir out
16311   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16312
16313   lt_compiler_flag="-o out/conftest2.$ac_objext"
16314   # Insert the option either (1) after the last *FLAGS variable, or
16315   # (2) before a word containing "conftest.", or (3) at the end.
16316   # Note that $ac_compile itself does not contain backslashes and begins
16317   # with a dollar sign (not a hyphen), so the echo should work correctly.
16318   lt_compile=`echo "$ac_compile" | $SED \
16319   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16320   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16321   -e 's:$: $lt_compiler_flag:'`
16322   (eval echo "\"\$as_me:16322: $lt_compile\"" >&5)
16323   (eval "$lt_compile" 2>out/conftest.err)
16324   ac_status=$?
16325   cat out/conftest.err >&5
16326   echo "$as_me:16326: \$? = $ac_status" >&5
16327   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16328   then
16329     # The compiler can only warn and ignore the option if not recognized
16330     # So say no if there are warnings
16331     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16332     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16333     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16334       lt_cv_prog_compiler_c_o_CXX=yes
16335     fi
16336   fi
16337   chmod u+w . 2>&5
16338   $RM conftest*
16339   # SGI C++ compiler will create directory out/ii_files/ for
16340   # template instantiation
16341   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16342   $RM out/* && rmdir out
16343   cd ..
16344   $RM -r conftest
16345   $RM conftest*
16346
16347fi
16348{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16349$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16350
16351
16352
16353    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16354$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16355if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16356  $as_echo_n "(cached) " >&6
16357else
16358  lt_cv_prog_compiler_c_o_CXX=no
16359   $RM -r conftest 2>/dev/null
16360   mkdir conftest
16361   cd conftest
16362   mkdir out
16363   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16364
16365   lt_compiler_flag="-o out/conftest2.$ac_objext"
16366   # Insert the option either (1) after the last *FLAGS variable, or
16367   # (2) before a word containing "conftest.", or (3) at the end.
16368   # Note that $ac_compile itself does not contain backslashes and begins
16369   # with a dollar sign (not a hyphen), so the echo should work correctly.
16370   lt_compile=`echo "$ac_compile" | $SED \
16371   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16372   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16373   -e 's:$: $lt_compiler_flag:'`
16374   (eval echo "\"\$as_me:16374: $lt_compile\"" >&5)
16375   (eval "$lt_compile" 2>out/conftest.err)
16376   ac_status=$?
16377   cat out/conftest.err >&5
16378   echo "$as_me:16378: \$? = $ac_status" >&5
16379   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16380   then
16381     # The compiler can only warn and ignore the option if not recognized
16382     # So say no if there are warnings
16383     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16384     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16385     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16386       lt_cv_prog_compiler_c_o_CXX=yes
16387     fi
16388   fi
16389   chmod u+w . 2>&5
16390   $RM conftest*
16391   # SGI C++ compiler will create directory out/ii_files/ for
16392   # template instantiation
16393   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16394   $RM out/* && rmdir out
16395   cd ..
16396   $RM -r conftest
16397   $RM conftest*
16398
16399fi
16400{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16401$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16402
16403
16404
16405
16406hard_links="nottested"
16407if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16408  # do not overwrite the value of need_locks provided by the user
16409  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16410$as_echo_n "checking if we can lock with hard links... " >&6; }
16411  hard_links=yes
16412  $RM conftest*
16413  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16414  touch conftest.a
16415  ln conftest.a conftest.b 2>&5 || hard_links=no
16416  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16417  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16418$as_echo "$hard_links" >&6; }
16419  if test "$hard_links" = no; then
16420    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16421$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16422    need_locks=warn
16423  fi
16424else
16425  need_locks=no
16426fi
16427
16428
16429
16430    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16431$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16432
16433  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16434  case $host_os in
16435  aix[4-9]*)
16436    # If we're using GNU nm, then we don't want the "-C" option.
16437    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16438    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16439      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'
16440    else
16441      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'
16442    fi
16443    ;;
16444  pw32*)
16445    export_symbols_cmds_CXX="$ltdll_cmds"
16446  ;;
16447  cygwin* | mingw* | cegcc*)
16448    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'
16449  ;;
16450  linux* | k*bsd*-gnu)
16451    link_all_deplibs_CXX=no
16452  ;;
16453  *)
16454    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16455  ;;
16456  esac
16457  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16458
16459{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16460$as_echo "$ld_shlibs_CXX" >&6; }
16461test "$ld_shlibs_CXX" = no && can_build_shared=no
16462
16463with_gnu_ld_CXX=$with_gnu_ld
16464
16465
16466
16467
16468
16469
16470#
16471# Do we need to explicitly link libc?
16472#
16473case "x$archive_cmds_need_lc_CXX" in
16474x|xyes)
16475  # Assume -lc should be added
16476  archive_cmds_need_lc_CXX=yes
16477
16478  if test "$enable_shared" = yes && test "$GCC" = yes; then
16479    case $archive_cmds_CXX in
16480    *'~'*)
16481      # FIXME: we may have to deal with multi-command sequences.
16482      ;;
16483    '$CC '*)
16484      # Test whether the compiler implicitly links with -lc since on some
16485      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16486      # to ld, don't add -lc before -lgcc.
16487      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16488$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16489      $RM conftest*
16490      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16491
16492      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16493  (eval $ac_compile) 2>&5
16494  ac_status=$?
16495  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496  (exit $ac_status); } 2>conftest.err; then
16497        soname=conftest
16498        lib=conftest
16499        libobjs=conftest.$ac_objext
16500        deplibs=
16501        wl=$lt_prog_compiler_wl_CXX
16502	pic_flag=$lt_prog_compiler_pic_CXX
16503        compiler_flags=-v
16504        linker_flags=-v
16505        verstring=
16506        output_objdir=.
16507        libname=conftest
16508        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16509        allow_undefined_flag_CXX=
16510        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
16511  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16512  ac_status=$?
16513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514  (exit $ac_status); }
16515        then
16516	  archive_cmds_need_lc_CXX=no
16517        else
16518	  archive_cmds_need_lc_CXX=yes
16519        fi
16520        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16521      else
16522        cat conftest.err 1>&5
16523      fi
16524      $RM conftest*
16525      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16526$as_echo "$archive_cmds_need_lc_CXX" >&6; }
16527      ;;
16528    esac
16529  fi
16530  ;;
16531esac
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16597$as_echo_n "checking dynamic linker characteristics... " >&6; }
16598
16599library_names_spec=
16600libname_spec='lib$name'
16601soname_spec=
16602shrext_cmds=".so"
16603postinstall_cmds=
16604postuninstall_cmds=
16605finish_cmds=
16606finish_eval=
16607shlibpath_var=
16608shlibpath_overrides_runpath=unknown
16609version_type=none
16610dynamic_linker="$host_os ld.so"
16611sys_lib_dlsearch_path_spec="/lib /usr/lib"
16612need_lib_prefix=unknown
16613hardcode_into_libs=no
16614
16615# when you set need_version to no, make sure it does not cause -set_version
16616# flags to be left without arguments
16617need_version=unknown
16618
16619case $host_os in
16620aix3*)
16621  version_type=linux
16622  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16623  shlibpath_var=LIBPATH
16624
16625  # AIX 3 has no versioning support, so we append a major version to the name.
16626  soname_spec='${libname}${release}${shared_ext}$major'
16627  ;;
16628
16629aix[4-9]*)
16630  version_type=linux
16631  need_lib_prefix=no
16632  need_version=no
16633  hardcode_into_libs=yes
16634  if test "$host_cpu" = ia64; then
16635    # AIX 5 supports IA64
16636    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16637    shlibpath_var=LD_LIBRARY_PATH
16638  else
16639    # With GCC up to 2.95.x, collect2 would create an import file
16640    # for dependence libraries.  The import file would start with
16641    # the line `#! .'.  This would cause the generated library to
16642    # depend on `.', always an invalid library.  This was fixed in
16643    # development snapshots of GCC prior to 3.0.
16644    case $host_os in
16645      aix4 | aix4.[01] | aix4.[01].*)
16646      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16647	   echo ' yes '
16648	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16649	:
16650      else
16651	can_build_shared=no
16652      fi
16653      ;;
16654    esac
16655    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16656    # soname into executable. Probably we can add versioning support to
16657    # collect2, so additional links can be useful in future.
16658    if test "$aix_use_runtimelinking" = yes; then
16659      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16660      # instead of lib<name>.a to let people know that these are not
16661      # typical AIX shared libraries.
16662      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663    else
16664      # We preserve .a as extension for shared libraries through AIX4.2
16665      # and later when we are not doing run time linking.
16666      library_names_spec='${libname}${release}.a $libname.a'
16667      soname_spec='${libname}${release}${shared_ext}$major'
16668    fi
16669    shlibpath_var=LIBPATH
16670  fi
16671  ;;
16672
16673amigaos*)
16674  case $host_cpu in
16675  powerpc)
16676    # Since July 2007 AmigaOS4 officially supports .so libraries.
16677    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16678    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679    ;;
16680  m68k)
16681    library_names_spec='$libname.ixlibrary $libname.a'
16682    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16683    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'
16684    ;;
16685  esac
16686  ;;
16687
16688beos*)
16689  library_names_spec='${libname}${shared_ext}'
16690  dynamic_linker="$host_os ld.so"
16691  shlibpath_var=LIBRARY_PATH
16692  ;;
16693
16694bsdi[45]*)
16695  version_type=linux
16696  need_version=no
16697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698  soname_spec='${libname}${release}${shared_ext}$major'
16699  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16700  shlibpath_var=LD_LIBRARY_PATH
16701  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16702  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16703  # the default ld.so.conf also contains /usr/contrib/lib and
16704  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16705  # libtool to hard-code these into programs
16706  ;;
16707
16708cygwin* | mingw* | pw32* | cegcc*)
16709  version_type=windows
16710  shrext_cmds=".dll"
16711  need_version=no
16712  need_lib_prefix=no
16713
16714  case $GCC,$host_os in
16715  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16716    library_names_spec='$libname.dll.a'
16717    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16718    postinstall_cmds='base_file=`basename \${file}`~
16719      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16720      dldir=$destdir/`dirname \$dlpath`~
16721      test -d \$dldir || mkdir -p \$dldir~
16722      $install_prog $dir/$dlname \$dldir/$dlname~
16723      chmod a+x \$dldir/$dlname~
16724      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16725        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16726      fi'
16727    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16728      dlpath=$dir/\$dldll~
16729       $RM \$dlpath'
16730    shlibpath_overrides_runpath=yes
16731
16732    case $host_os in
16733    cygwin*)
16734      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16735      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16736      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16737      ;;
16738    mingw* | cegcc*)
16739      # MinGW DLLs use traditional 'lib' prefix
16740      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16741      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16742      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16743        # It is most probably a Windows format PATH printed by
16744        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16745        # path with ; separators, and with drive letters. We can handle the
16746        # drive letters (cygwin fileutils understands them), so leave them,
16747        # especially as we might pass files found there to a mingw objdump,
16748        # which wouldn't understand a cygwinified path. Ahh.
16749        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16750      else
16751        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16752      fi
16753      ;;
16754    pw32*)
16755      # pw32 DLLs use 'pw' prefix rather than 'lib'
16756      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16757      ;;
16758    esac
16759    ;;
16760
16761  *)
16762    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16763    ;;
16764  esac
16765  dynamic_linker='Win32 ld.exe'
16766  # FIXME: first we should search . and the directory the executable is in
16767  shlibpath_var=PATH
16768  ;;
16769
16770darwin* | rhapsody*)
16771  dynamic_linker="$host_os dyld"
16772  version_type=darwin
16773  need_lib_prefix=no
16774  need_version=no
16775  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16776  soname_spec='${libname}${release}${major}$shared_ext'
16777  shlibpath_overrides_runpath=yes
16778  shlibpath_var=DYLD_LIBRARY_PATH
16779  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16780
16781  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16782  ;;
16783
16784dgux*)
16785  version_type=linux
16786  need_lib_prefix=no
16787  need_version=no
16788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16789  soname_spec='${libname}${release}${shared_ext}$major'
16790  shlibpath_var=LD_LIBRARY_PATH
16791  ;;
16792
16793freebsd1*)
16794  dynamic_linker=no
16795  ;;
16796
16797freebsd* | dragonfly*)
16798  # DragonFly does not have aout.  When/if they implement a new
16799  # versioning mechanism, adjust this.
16800  if test -x /usr/bin/objformat; then
16801    objformat=`/usr/bin/objformat`
16802  else
16803    case $host_os in
16804    freebsd[123]*) objformat=aout ;;
16805    *) objformat=elf ;;
16806    esac
16807  fi
16808  version_type=freebsd-$objformat
16809  case $version_type in
16810    freebsd-elf*)
16811      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16812      need_version=no
16813      need_lib_prefix=no
16814      ;;
16815    freebsd-*)
16816      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16817      need_version=yes
16818      ;;
16819  esac
16820  shlibpath_var=LD_LIBRARY_PATH
16821  case $host_os in
16822  freebsd2*)
16823    shlibpath_overrides_runpath=yes
16824    ;;
16825  freebsd3.[01]* | freebsdelf3.[01]*)
16826    shlibpath_overrides_runpath=yes
16827    hardcode_into_libs=yes
16828    ;;
16829  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16830  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16831    shlibpath_overrides_runpath=no
16832    hardcode_into_libs=yes
16833    ;;
16834  *) # from 4.6 on, and DragonFly
16835    shlibpath_overrides_runpath=yes
16836    hardcode_into_libs=yes
16837    ;;
16838  esac
16839  ;;
16840
16841gnu*)
16842  version_type=linux
16843  need_lib_prefix=no
16844  need_version=no
16845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16846  soname_spec='${libname}${release}${shared_ext}$major'
16847  shlibpath_var=LD_LIBRARY_PATH
16848  hardcode_into_libs=yes
16849  ;;
16850
16851hpux9* | hpux10* | hpux11*)
16852  # Give a soname corresponding to the major version so that dld.sl refuses to
16853  # link against other versions.
16854  version_type=sunos
16855  need_lib_prefix=no
16856  need_version=no
16857  case $host_cpu in
16858  ia64*)
16859    shrext_cmds='.so'
16860    hardcode_into_libs=yes
16861    dynamic_linker="$host_os dld.so"
16862    shlibpath_var=LD_LIBRARY_PATH
16863    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16864    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865    soname_spec='${libname}${release}${shared_ext}$major'
16866    if test "X$HPUX_IA64_MODE" = X32; then
16867      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16868    else
16869      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16870    fi
16871    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16872    ;;
16873  hppa*64*)
16874    shrext_cmds='.sl'
16875    hardcode_into_libs=yes
16876    dynamic_linker="$host_os dld.sl"
16877    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16878    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16879    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16880    soname_spec='${libname}${release}${shared_ext}$major'
16881    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16882    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16883    ;;
16884  *)
16885    shrext_cmds='.sl'
16886    dynamic_linker="$host_os dld.sl"
16887    shlibpath_var=SHLIB_PATH
16888    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890    soname_spec='${libname}${release}${shared_ext}$major'
16891    ;;
16892  esac
16893  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16894  postinstall_cmds='chmod 555 $lib'
16895  ;;
16896
16897interix[3-9]*)
16898  version_type=linux
16899  need_lib_prefix=no
16900  need_version=no
16901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16902  soname_spec='${libname}${release}${shared_ext}$major'
16903  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16904  shlibpath_var=LD_LIBRARY_PATH
16905  shlibpath_overrides_runpath=no
16906  hardcode_into_libs=yes
16907  ;;
16908
16909irix5* | irix6* | nonstopux*)
16910  case $host_os in
16911    nonstopux*) version_type=nonstopux ;;
16912    *)
16913	if test "$lt_cv_prog_gnu_ld" = yes; then
16914		version_type=linux
16915	else
16916		version_type=irix
16917	fi ;;
16918  esac
16919  need_lib_prefix=no
16920  need_version=no
16921  soname_spec='${libname}${release}${shared_ext}$major'
16922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16923  case $host_os in
16924  irix5* | nonstopux*)
16925    libsuff= shlibsuff=
16926    ;;
16927  *)
16928    case $LD in # libtool.m4 will add one of these switches to LD
16929    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16930      libsuff= shlibsuff= libmagic=32-bit;;
16931    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16932      libsuff=32 shlibsuff=N32 libmagic=N32;;
16933    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16934      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16935    *) libsuff= shlibsuff= libmagic=never-match;;
16936    esac
16937    ;;
16938  esac
16939  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16940  shlibpath_overrides_runpath=no
16941  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16942  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16943  hardcode_into_libs=yes
16944  ;;
16945
16946# No shared lib support for Linux oldld, aout, or coff.
16947linux*oldld* | linux*aout* | linux*coff*)
16948  dynamic_linker=no
16949  ;;
16950
16951# This must be Linux ELF.
16952linux* | k*bsd*-gnu)
16953  version_type=linux
16954  need_lib_prefix=no
16955  need_version=no
16956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957  soname_spec='${libname}${release}${shared_ext}$major'
16958  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16959  shlibpath_var=LD_LIBRARY_PATH
16960  shlibpath_overrides_runpath=no
16961  # Some binutils ld are patched to set DT_RUNPATH
16962  save_LDFLAGS=$LDFLAGS
16963  save_libdir=$libdir
16964  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16965       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16966  cat >conftest.$ac_ext <<_ACEOF
16967/* confdefs.h.  */
16968_ACEOF
16969cat confdefs.h >>conftest.$ac_ext
16970cat >>conftest.$ac_ext <<_ACEOF
16971/* end confdefs.h.  */
16972
16973int
16974main ()
16975{
16976
16977  ;
16978  return 0;
16979}
16980_ACEOF
16981rm -f conftest.$ac_objext conftest$ac_exeext
16982if { (ac_try="$ac_link"
16983case "(($ac_try" in
16984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985  *) ac_try_echo=$ac_try;;
16986esac
16987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16988$as_echo "$ac_try_echo") >&5
16989  (eval "$ac_link") 2>conftest.er1
16990  ac_status=$?
16991  grep -v '^ *+' conftest.er1 >conftest.err
16992  rm -f conftest.er1
16993  cat conftest.err >&5
16994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995  (exit $ac_status); } && {
16996	 test -z "$ac_cxx_werror_flag" ||
16997	 test ! -s conftest.err
16998       } && test -s conftest$ac_exeext && {
16999	 test "$cross_compiling" = yes ||
17000	 $as_test_x conftest$ac_exeext
17001       }; then
17002  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17003  shlibpath_overrides_runpath=yes
17004fi
17005
17006else
17007  $as_echo "$as_me: failed program was:" >&5
17008sed 's/^/| /' conftest.$ac_ext >&5
17009
17010
17011fi
17012
17013rm -rf conftest.dSYM
17014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17015      conftest$ac_exeext conftest.$ac_ext
17016  LDFLAGS=$save_LDFLAGS
17017  libdir=$save_libdir
17018
17019  # This implies no fast_install, which is unacceptable.
17020  # Some rework will be needed to allow for fast_install
17021  # before this can be enabled.
17022  hardcode_into_libs=yes
17023
17024  # Append ld.so.conf contents to the search path
17025  if test -f /etc/ld.so.conf; then
17026    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' ' '`
17027    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17028  fi
17029
17030  # We used to test for /lib/ld.so.1 and disable shared libraries on
17031  # powerpc, because MkLinux only supported shared libraries with the
17032  # GNU dynamic linker.  Since this was broken with cross compilers,
17033  # most powerpc-linux boxes support dynamic linking these days and
17034  # people can always --disable-shared, the test was removed, and we
17035  # assume the GNU/Linux dynamic linker is in use.
17036  dynamic_linker='GNU/Linux ld.so'
17037  ;;
17038
17039netbsdelf*-gnu)
17040  version_type=linux
17041  need_lib_prefix=no
17042  need_version=no
17043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17044  soname_spec='${libname}${release}${shared_ext}$major'
17045  shlibpath_var=LD_LIBRARY_PATH
17046  shlibpath_overrides_runpath=no
17047  hardcode_into_libs=yes
17048  dynamic_linker='NetBSD ld.elf_so'
17049  ;;
17050
17051netbsd*)
17052  version_type=sunos
17053  need_lib_prefix=no
17054  need_version=no
17055  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17056    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17057    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17058    dynamic_linker='NetBSD (a.out) ld.so'
17059  else
17060    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17061    soname_spec='${libname}${release}${shared_ext}$major'
17062    dynamic_linker='NetBSD ld.elf_so'
17063  fi
17064  shlibpath_var=LD_LIBRARY_PATH
17065  shlibpath_overrides_runpath=yes
17066  hardcode_into_libs=yes
17067  ;;
17068
17069newsos6)
17070  version_type=linux
17071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072  shlibpath_var=LD_LIBRARY_PATH
17073  shlibpath_overrides_runpath=yes
17074  ;;
17075
17076*nto* | *qnx*)
17077  version_type=qnx
17078  need_lib_prefix=no
17079  need_version=no
17080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17081  soname_spec='${libname}${release}${shared_ext}$major'
17082  shlibpath_var=LD_LIBRARY_PATH
17083  shlibpath_overrides_runpath=no
17084  hardcode_into_libs=yes
17085  dynamic_linker='ldqnx.so'
17086  ;;
17087
17088openbsd*)
17089  version_type=sunos
17090  sys_lib_dlsearch_path_spec="/usr/lib"
17091  need_lib_prefix=no
17092  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17093  case $host_os in
17094    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17095    *)				need_version=no  ;;
17096  esac
17097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17098  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17099  shlibpath_var=LD_LIBRARY_PATH
17100  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17101    case $host_os in
17102      openbsd2.[89] | openbsd2.[89].*)
17103	shlibpath_overrides_runpath=no
17104	;;
17105      *)
17106	shlibpath_overrides_runpath=yes
17107	;;
17108      esac
17109  else
17110    shlibpath_overrides_runpath=yes
17111  fi
17112  ;;
17113
17114os2*)
17115  libname_spec='$name'
17116  shrext_cmds=".dll"
17117  need_lib_prefix=no
17118  library_names_spec='$libname${shared_ext} $libname.a'
17119  dynamic_linker='OS/2 ld.exe'
17120  shlibpath_var=LIBPATH
17121  ;;
17122
17123osf3* | osf4* | osf5*)
17124  version_type=osf
17125  need_lib_prefix=no
17126  need_version=no
17127  soname_spec='${libname}${release}${shared_ext}$major'
17128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129  shlibpath_var=LD_LIBRARY_PATH
17130  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17131  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17132  ;;
17133
17134rdos*)
17135  dynamic_linker=no
17136  ;;
17137
17138solaris*)
17139  version_type=linux
17140  need_lib_prefix=no
17141  need_version=no
17142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143  soname_spec='${libname}${release}${shared_ext}$major'
17144  shlibpath_var=LD_LIBRARY_PATH
17145  shlibpath_overrides_runpath=yes
17146  hardcode_into_libs=yes
17147  # ldd complains unless libraries are executable
17148  postinstall_cmds='chmod +x $lib'
17149  ;;
17150
17151sunos4*)
17152  version_type=sunos
17153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17154  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17155  shlibpath_var=LD_LIBRARY_PATH
17156  shlibpath_overrides_runpath=yes
17157  if test "$with_gnu_ld" = yes; then
17158    need_lib_prefix=no
17159  fi
17160  need_version=yes
17161  ;;
17162
17163sysv4 | sysv4.3*)
17164  version_type=linux
17165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166  soname_spec='${libname}${release}${shared_ext}$major'
17167  shlibpath_var=LD_LIBRARY_PATH
17168  case $host_vendor in
17169    sni)
17170      shlibpath_overrides_runpath=no
17171      need_lib_prefix=no
17172      runpath_var=LD_RUN_PATH
17173      ;;
17174    siemens)
17175      need_lib_prefix=no
17176      ;;
17177    motorola)
17178      need_lib_prefix=no
17179      need_version=no
17180      shlibpath_overrides_runpath=no
17181      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17182      ;;
17183  esac
17184  ;;
17185
17186sysv4*MP*)
17187  if test -d /usr/nec ;then
17188    version_type=linux
17189    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17190    soname_spec='$libname${shared_ext}.$major'
17191    shlibpath_var=LD_LIBRARY_PATH
17192  fi
17193  ;;
17194
17195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17196  version_type=freebsd-elf
17197  need_lib_prefix=no
17198  need_version=no
17199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17200  soname_spec='${libname}${release}${shared_ext}$major'
17201  shlibpath_var=LD_LIBRARY_PATH
17202  shlibpath_overrides_runpath=yes
17203  hardcode_into_libs=yes
17204  if test "$with_gnu_ld" = yes; then
17205    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17206  else
17207    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17208    case $host_os in
17209      sco3.2v5*)
17210        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17211	;;
17212    esac
17213  fi
17214  sys_lib_dlsearch_path_spec='/usr/lib'
17215  ;;
17216
17217tpf*)
17218  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17219  version_type=linux
17220  need_lib_prefix=no
17221  need_version=no
17222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223  shlibpath_var=LD_LIBRARY_PATH
17224  shlibpath_overrides_runpath=no
17225  hardcode_into_libs=yes
17226  ;;
17227
17228uts4*)
17229  version_type=linux
17230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17231  soname_spec='${libname}${release}${shared_ext}$major'
17232  shlibpath_var=LD_LIBRARY_PATH
17233  ;;
17234
17235*)
17236  dynamic_linker=no
17237  ;;
17238esac
17239{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17240$as_echo "$dynamic_linker" >&6; }
17241test "$dynamic_linker" = no && can_build_shared=no
17242
17243variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17244if test "$GCC" = yes; then
17245  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17246fi
17247
17248if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17249  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17250fi
17251if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17252  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17253fi
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17291$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17292hardcode_action_CXX=
17293if test -n "$hardcode_libdir_flag_spec_CXX" ||
17294   test -n "$runpath_var_CXX" ||
17295   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17296
17297  # We can hardcode non-existent directories.
17298  if test "$hardcode_direct_CXX" != no &&
17299     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17300     # have to relink, otherwise we might link with an installed library
17301     # when we should be linking with a yet-to-be-installed one
17302     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17303     test "$hardcode_minus_L_CXX" != no; then
17304    # Linking always hardcodes the temporary library directory.
17305    hardcode_action_CXX=relink
17306  else
17307    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17308    hardcode_action_CXX=immediate
17309  fi
17310else
17311  # We cannot hardcode anything, or else we can only hardcode existing
17312  # directories.
17313  hardcode_action_CXX=unsupported
17314fi
17315{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17316$as_echo "$hardcode_action_CXX" >&6; }
17317
17318if test "$hardcode_action_CXX" = relink ||
17319   test "$inherit_rpath_CXX" = yes; then
17320  # Fast installation is not supported
17321  enable_fast_install=no
17322elif test "$shlibpath_overrides_runpath" = yes ||
17323     test "$enable_shared" = no; then
17324  # Fast installation is not necessary
17325  enable_fast_install=needless
17326fi
17327
17328
17329
17330
17331
17332
17333
17334  fi # test -n "$compiler"
17335
17336  CC=$lt_save_CC
17337  LDCXX=$LD
17338  LD=$lt_save_LD
17339  GCC=$lt_save_GCC
17340  with_gnu_ld=$lt_save_with_gnu_ld
17341  lt_cv_path_LDCXX=$lt_cv_path_LD
17342  lt_cv_path_LD=$lt_save_path_LD
17343  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17344  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17345fi # test "$_lt_caught_CXX_error" != yes
17346
17347ac_ext=c
17348ac_cpp='$CPP $CPPFLAGS'
17349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17351ac_compiler_gnu=$ac_cv_c_compiler_gnu
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365        ac_config_commands="$ac_config_commands libtool"
17366
17367
17368
17369
17370# Only expand once:
17371
17372
17373
17374  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17375$as_echo_n "checking whether NLS is requested... " >&6; }
17376    # Check whether --enable-nls was given.
17377if test "${enable_nls+set}" = set; then
17378  enableval=$enable_nls; USE_NLS=$enableval
17379else
17380  USE_NLS=yes
17381fi
17382
17383  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17384$as_echo "$USE_NLS" >&6; }
17385
17386
17387
17388
17389case "$am__api_version" in
17390    1.01234)
17391	{ { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
17392$as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
17393   { (exit 1); exit 1; }; }
17394    ;;
17395    *)
17396    ;;
17397esac
17398
17399if test -n "0.22"; then
17400    { $as_echo "$as_me:$LINENO: checking for intltool >= 0.22" >&5
17401$as_echo_n "checking for intltool >= 0.22... " >&6; }
17402
17403    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.22 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
17404    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
17405    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
17406
17407    { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
17408$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
17409    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
17410	{ { $as_echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.22 or later." >&5
17411$as_echo "$as_me: error: Your intltool is too old.  You need intltool 0.22 or later." >&2;}
17412   { (exit 1); exit 1; }; }
17413fi
17414
17415# Extract the first word of "intltool-update", so it can be a program name with args.
17416set dummy intltool-update; ac_word=$2
17417{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17418$as_echo_n "checking for $ac_word... " >&6; }
17419if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
17420  $as_echo_n "(cached) " >&6
17421else
17422  case $INTLTOOL_UPDATE in
17423  [\\/]* | ?:[\\/]*)
17424  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
17425  ;;
17426  *)
17427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17428for as_dir in $PATH
17429do
17430  IFS=$as_save_IFS
17431  test -z "$as_dir" && as_dir=.
17432  for ac_exec_ext in '' $ac_executable_extensions; do
17433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17434    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
17435    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17436    break 2
17437  fi
17438done
17439done
17440IFS=$as_save_IFS
17441
17442  ;;
17443esac
17444fi
17445INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
17446if test -n "$INTLTOOL_UPDATE"; then
17447  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
17448$as_echo "$INTLTOOL_UPDATE" >&6; }
17449else
17450  { $as_echo "$as_me:$LINENO: result: no" >&5
17451$as_echo "no" >&6; }
17452fi
17453
17454
17455# Extract the first word of "intltool-merge", so it can be a program name with args.
17456set dummy intltool-merge; ac_word=$2
17457{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17458$as_echo_n "checking for $ac_word... " >&6; }
17459if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
17460  $as_echo_n "(cached) " >&6
17461else
17462  case $INTLTOOL_MERGE in
17463  [\\/]* | ?:[\\/]*)
17464  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
17465  ;;
17466  *)
17467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17468for as_dir in $PATH
17469do
17470  IFS=$as_save_IFS
17471  test -z "$as_dir" && as_dir=.
17472  for ac_exec_ext in '' $ac_executable_extensions; do
17473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17474    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
17475    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17476    break 2
17477  fi
17478done
17479done
17480IFS=$as_save_IFS
17481
17482  ;;
17483esac
17484fi
17485INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
17486if test -n "$INTLTOOL_MERGE"; then
17487  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
17488$as_echo "$INTLTOOL_MERGE" >&6; }
17489else
17490  { $as_echo "$as_me:$LINENO: result: no" >&5
17491$as_echo "no" >&6; }
17492fi
17493
17494
17495# Extract the first word of "intltool-extract", so it can be a program name with args.
17496set dummy intltool-extract; ac_word=$2
17497{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17498$as_echo_n "checking for $ac_word... " >&6; }
17499if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
17500  $as_echo_n "(cached) " >&6
17501else
17502  case $INTLTOOL_EXTRACT in
17503  [\\/]* | ?:[\\/]*)
17504  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
17505  ;;
17506  *)
17507  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17508for as_dir in $PATH
17509do
17510  IFS=$as_save_IFS
17511  test -z "$as_dir" && as_dir=.
17512  for ac_exec_ext in '' $ac_executable_extensions; do
17513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17514    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
17515    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17516    break 2
17517  fi
17518done
17519done
17520IFS=$as_save_IFS
17521
17522  ;;
17523esac
17524fi
17525INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
17526if test -n "$INTLTOOL_EXTRACT"; then
17527  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
17528$as_echo "$INTLTOOL_EXTRACT" >&6; }
17529else
17530  { $as_echo "$as_me:$LINENO: result: no" >&5
17531$as_echo "no" >&6; }
17532fi
17533
17534
17535if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
17536    { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
17537$as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
17538   { (exit 1); exit 1; }; }
17539fi
17540
17541  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 $< $@'
17542INTLTOOL_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 $< $@'
17543     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 $< $@'
17544     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 $< $@'
17545      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
17546     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 $< $@'
17547   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 $< $@'
17548    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 $< $@'
17549INTLTOOL_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 $< $@'
17550       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 $< $@'
17551      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 $< $@'
17552      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
17553      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 $< $@'
17554      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 $< $@'
17555    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 $< $@'
17556  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 $< $@'
17557    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 $< $@'
17558    INTLTOOL_SERVICE_RULE='%.service: %.service.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 $< $@'
17559   INTLTOOL_POLICY_RULE='%.policy:    %.policy.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 $< $@'
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657# Check the gettext tools to make sure they are GNU
17658# Extract the first word of "xgettext", so it can be a program name with args.
17659set dummy xgettext; ac_word=$2
17660{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17661$as_echo_n "checking for $ac_word... " >&6; }
17662if test "${ac_cv_path_XGETTEXT+set}" = set; then
17663  $as_echo_n "(cached) " >&6
17664else
17665  case $XGETTEXT in
17666  [\\/]* | ?:[\\/]*)
17667  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17668  ;;
17669  *)
17670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17671for as_dir in $PATH
17672do
17673  IFS=$as_save_IFS
17674  test -z "$as_dir" && as_dir=.
17675  for ac_exec_ext in '' $ac_executable_extensions; do
17676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17677    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
17678    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17679    break 2
17680  fi
17681done
17682done
17683IFS=$as_save_IFS
17684
17685  ;;
17686esac
17687fi
17688XGETTEXT=$ac_cv_path_XGETTEXT
17689if test -n "$XGETTEXT"; then
17690  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17691$as_echo "$XGETTEXT" >&6; }
17692else
17693  { $as_echo "$as_me:$LINENO: result: no" >&5
17694$as_echo "no" >&6; }
17695fi
17696
17697
17698# Extract the first word of "msgmerge", so it can be a program name with args.
17699set dummy msgmerge; ac_word=$2
17700{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17701$as_echo_n "checking for $ac_word... " >&6; }
17702if test "${ac_cv_path_MSGMERGE+set}" = set; then
17703  $as_echo_n "(cached) " >&6
17704else
17705  case $MSGMERGE in
17706  [\\/]* | ?:[\\/]*)
17707  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17708  ;;
17709  *)
17710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17711for as_dir in $PATH
17712do
17713  IFS=$as_save_IFS
17714  test -z "$as_dir" && as_dir=.
17715  for ac_exec_ext in '' $ac_executable_extensions; do
17716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17717    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
17718    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17719    break 2
17720  fi
17721done
17722done
17723IFS=$as_save_IFS
17724
17725  ;;
17726esac
17727fi
17728MSGMERGE=$ac_cv_path_MSGMERGE
17729if test -n "$MSGMERGE"; then
17730  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17731$as_echo "$MSGMERGE" >&6; }
17732else
17733  { $as_echo "$as_me:$LINENO: result: no" >&5
17734$as_echo "no" >&6; }
17735fi
17736
17737
17738# Extract the first word of "msgfmt", so it can be a program name with args.
17739set dummy msgfmt; ac_word=$2
17740{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17741$as_echo_n "checking for $ac_word... " >&6; }
17742if test "${ac_cv_path_MSGFMT+set}" = set; then
17743  $as_echo_n "(cached) " >&6
17744else
17745  case $MSGFMT in
17746  [\\/]* | ?:[\\/]*)
17747  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17748  ;;
17749  *)
17750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17751for as_dir in $PATH
17752do
17753  IFS=$as_save_IFS
17754  test -z "$as_dir" && as_dir=.
17755  for ac_exec_ext in '' $ac_executable_extensions; do
17756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17757    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17758    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17759    break 2
17760  fi
17761done
17762done
17763IFS=$as_save_IFS
17764
17765  ;;
17766esac
17767fi
17768MSGFMT=$ac_cv_path_MSGFMT
17769if test -n "$MSGFMT"; then
17770  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
17771$as_echo "$MSGFMT" >&6; }
17772else
17773  { $as_echo "$as_me:$LINENO: result: no" >&5
17774$as_echo "no" >&6; }
17775fi
17776
17777
17778# Extract the first word of "gmsgfmt", so it can be a program name with args.
17779set dummy gmsgfmt; ac_word=$2
17780{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17781$as_echo_n "checking for $ac_word... " >&6; }
17782if test "${ac_cv_path_GMSGFMT+set}" = set; then
17783  $as_echo_n "(cached) " >&6
17784else
17785  case $GMSGFMT in
17786  [\\/]* | ?:[\\/]*)
17787  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17788  ;;
17789  *)
17790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17791for as_dir in $PATH
17792do
17793  IFS=$as_save_IFS
17794  test -z "$as_dir" && as_dir=.
17795  for ac_exec_ext in '' $ac_executable_extensions; do
17796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17797    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17798    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17799    break 2
17800  fi
17801done
17802done
17803IFS=$as_save_IFS
17804
17805  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17806  ;;
17807esac
17808fi
17809GMSGFMT=$ac_cv_path_GMSGFMT
17810if test -n "$GMSGFMT"; then
17811  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
17812$as_echo "$GMSGFMT" >&6; }
17813else
17814  { $as_echo "$as_me:$LINENO: result: no" >&5
17815$as_echo "no" >&6; }
17816fi
17817
17818
17819if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
17820    { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
17821$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
17822   { (exit 1); exit 1; }; }
17823fi
17824xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
17825mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
17826mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
17827if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
17828    { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
17829$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
17830   { (exit 1); exit 1; }; }
17831fi
17832
17833# Extract the first word of "perl", so it can be a program name with args.
17834set dummy perl; ac_word=$2
17835{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17836$as_echo_n "checking for $ac_word... " >&6; }
17837if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
17838  $as_echo_n "(cached) " >&6
17839else
17840  case $INTLTOOL_PERL in
17841  [\\/]* | ?:[\\/]*)
17842  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
17843  ;;
17844  *)
17845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17846for as_dir in $PATH
17847do
17848  IFS=$as_save_IFS
17849  test -z "$as_dir" && as_dir=.
17850  for ac_exec_ext in '' $ac_executable_extensions; do
17851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17852    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
17853    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17854    break 2
17855  fi
17856done
17857done
17858IFS=$as_save_IFS
17859
17860  ;;
17861esac
17862fi
17863INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
17864if test -n "$INTLTOOL_PERL"; then
17865  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
17866$as_echo "$INTLTOOL_PERL" >&6; }
17867else
17868  { $as_echo "$as_me:$LINENO: result: no" >&5
17869$as_echo "no" >&6; }
17870fi
17871
17872
17873if test -z "$INTLTOOL_PERL"; then
17874   { { $as_echo "$as_me:$LINENO: error: perl not found" >&5
17875$as_echo "$as_me: error: perl not found" >&2;}
17876   { (exit 1); exit 1; }; }
17877fi
17878{ $as_echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
17879$as_echo_n "checking for perl >= 5.8.1... " >&6; }
17880$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
17881if test $? -ne 0; then
17882   { { $as_echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
17883$as_echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
17884   { (exit 1); exit 1; }; }
17885else
17886   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
17887   { $as_echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
17888$as_echo "$IT_PERL_VERSION" >&6; }
17889fi
17890if test "x" != "xno-xml"; then
17891   { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
17892$as_echo_n "checking for XML::Parser... " >&6; }
17893   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
17894       { $as_echo "$as_me:$LINENO: result: ok" >&5
17895$as_echo "ok" >&6; }
17896   else
17897       { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
17898$as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
17899   { (exit 1); exit 1; }; }
17900   fi
17901fi
17902
17903# Substitute ALL_LINGUAS so we can use it in po/Makefile
17904
17905
17906# Set DATADIRNAME correctly if it is not set yet
17907# (copied from glib-gettext.m4)
17908if test -z "$DATADIRNAME"; then
17909  cat >conftest.$ac_ext <<_ACEOF
17910/* confdefs.h.  */
17911_ACEOF
17912cat confdefs.h >>conftest.$ac_ext
17913cat >>conftest.$ac_ext <<_ACEOF
17914/* end confdefs.h.  */
17915
17916int
17917main ()
17918{
17919extern int _nl_msg_cat_cntr;
17920                       return _nl_msg_cat_cntr
17921  ;
17922  return 0;
17923}
17924_ACEOF
17925rm -f conftest.$ac_objext conftest$ac_exeext
17926if { (ac_try="$ac_link"
17927case "(($ac_try" in
17928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929  *) ac_try_echo=$ac_try;;
17930esac
17931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17932$as_echo "$ac_try_echo") >&5
17933  (eval "$ac_link") 2>conftest.er1
17934  ac_status=$?
17935  grep -v '^ *+' conftest.er1 >conftest.err
17936  rm -f conftest.er1
17937  cat conftest.err >&5
17938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939  (exit $ac_status); } && {
17940	 test -z "$ac_c_werror_flag" ||
17941	 test ! -s conftest.err
17942       } && test -s conftest$ac_exeext && {
17943	 test "$cross_compiling" = yes ||
17944	 $as_test_x conftest$ac_exeext
17945       }; then
17946  DATADIRNAME=share
17947else
17948  $as_echo "$as_me: failed program was:" >&5
17949sed 's/^/| /' conftest.$ac_ext >&5
17950
17951	case $host in
17952    *-*-solaris*)
17953                        { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
17954$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
17955if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
17956  $as_echo_n "(cached) " >&6
17957else
17958  cat >conftest.$ac_ext <<_ACEOF
17959/* confdefs.h.  */
17960_ACEOF
17961cat confdefs.h >>conftest.$ac_ext
17962cat >>conftest.$ac_ext <<_ACEOF
17963/* end confdefs.h.  */
17964/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
17965   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17966#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
17967
17968/* System header to define __stub macros and hopefully few prototypes,
17969    which can conflict with char bind_textdomain_codeset (); below.
17970    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17971    <limits.h> exists even on freestanding compilers.  */
17972
17973#ifdef __STDC__
17974# include <limits.h>
17975#else
17976# include <assert.h>
17977#endif
17978
17979#undef bind_textdomain_codeset
17980
17981/* Override any GCC internal prototype to avoid an error.
17982   Use char because int might match the return type of a GCC
17983   builtin and then its argument prototype would still apply.  */
17984#ifdef __cplusplus
17985extern "C"
17986#endif
17987char bind_textdomain_codeset ();
17988/* The GNU C library defines this for functions which it implements
17989    to always fail with ENOSYS.  Some functions are actually named
17990    something starting with __ and the normal name is an alias.  */
17991#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
17992choke me
17993#endif
17994
17995int
17996main ()
17997{
17998return bind_textdomain_codeset ();
17999  ;
18000  return 0;
18001}
18002_ACEOF
18003rm -f conftest.$ac_objext conftest$ac_exeext
18004if { (ac_try="$ac_link"
18005case "(($ac_try" in
18006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007  *) ac_try_echo=$ac_try;;
18008esac
18009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18010$as_echo "$ac_try_echo") >&5
18011  (eval "$ac_link") 2>conftest.er1
18012  ac_status=$?
18013  grep -v '^ *+' conftest.er1 >conftest.err
18014  rm -f conftest.er1
18015  cat conftest.err >&5
18016  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017  (exit $ac_status); } && {
18018	 test -z "$ac_c_werror_flag" ||
18019	 test ! -s conftest.err
18020       } && test -s conftest$ac_exeext && {
18021	 test "$cross_compiling" = yes ||
18022	 $as_test_x conftest$ac_exeext
18023       }; then
18024  ac_cv_func_bind_textdomain_codeset=yes
18025else
18026  $as_echo "$as_me: failed program was:" >&5
18027sed 's/^/| /' conftest.$ac_ext >&5
18028
18029	ac_cv_func_bind_textdomain_codeset=no
18030fi
18031
18032rm -rf conftest.dSYM
18033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18034      conftest$ac_exeext conftest.$ac_ext
18035fi
18036{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
18037$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
18038if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
18039  DATADIRNAME=share
18040else
18041  DATADIRNAME=share
18042fi
18043
18044    ;;
18045    *)
18046    DATADIRNAME=share
18047    ;;
18048    esac
18049fi
18050
18051rm -rf conftest.dSYM
18052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18053      conftest$ac_exeext conftest.$ac_ext
18054fi
18055
18056
18057
18058
18059
18060
18061
18062
18063if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18064	if test -n "$ac_tool_prefix"; then
18065  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18066set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18067{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18068$as_echo_n "checking for $ac_word... " >&6; }
18069if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18070  $as_echo_n "(cached) " >&6
18071else
18072  case $PKG_CONFIG in
18073  [\\/]* | ?:[\\/]*)
18074  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18075  ;;
18076  *)
18077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18078for as_dir in $PATH
18079do
18080  IFS=$as_save_IFS
18081  test -z "$as_dir" && as_dir=.
18082  for ac_exec_ext in '' $ac_executable_extensions; do
18083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18084    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18085    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18086    break 2
18087  fi
18088done
18089done
18090IFS=$as_save_IFS
18091
18092  ;;
18093esac
18094fi
18095PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18096if test -n "$PKG_CONFIG"; then
18097  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18098$as_echo "$PKG_CONFIG" >&6; }
18099else
18100  { $as_echo "$as_me:$LINENO: result: no" >&5
18101$as_echo "no" >&6; }
18102fi
18103
18104
18105fi
18106if test -z "$ac_cv_path_PKG_CONFIG"; then
18107  ac_pt_PKG_CONFIG=$PKG_CONFIG
18108  # Extract the first word of "pkg-config", so it can be a program name with args.
18109set dummy pkg-config; ac_word=$2
18110{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18111$as_echo_n "checking for $ac_word... " >&6; }
18112if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
18113  $as_echo_n "(cached) " >&6
18114else
18115  case $ac_pt_PKG_CONFIG in
18116  [\\/]* | ?:[\\/]*)
18117  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18118  ;;
18119  *)
18120  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18121for as_dir in $PATH
18122do
18123  IFS=$as_save_IFS
18124  test -z "$as_dir" && as_dir=.
18125  for ac_exec_ext in '' $ac_executable_extensions; do
18126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18127    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18128    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18129    break 2
18130  fi
18131done
18132done
18133IFS=$as_save_IFS
18134
18135  ;;
18136esac
18137fi
18138ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18139if test -n "$ac_pt_PKG_CONFIG"; then
18140  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
18141$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18142else
18143  { $as_echo "$as_me:$LINENO: result: no" >&5
18144$as_echo "no" >&6; }
18145fi
18146
18147  if test "x$ac_pt_PKG_CONFIG" = x; then
18148    PKG_CONFIG=""
18149  else
18150    case $cross_compiling:$ac_tool_warned in
18151yes:)
18152{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18154ac_tool_warned=yes ;;
18155esac
18156    PKG_CONFIG=$ac_pt_PKG_CONFIG
18157  fi
18158else
18159  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18160fi
18161
18162fi
18163if test -n "$PKG_CONFIG"; then
18164	_pkg_min_version=0.9.0
18165	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
18166$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18167	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18168		{ $as_echo "$as_me:$LINENO: result: yes" >&5
18169$as_echo "yes" >&6; }
18170	else
18171		{ $as_echo "$as_me:$LINENO: result: no" >&5
18172$as_echo "no" >&6; }
18173		PKG_CONFIG=""
18174	fi
18175
18176fi
18177
18178pkg_failed=no
18179{ $as_echo "$as_me:$LINENO: checking for GTK" >&5
18180$as_echo_n "checking for GTK... " >&6; }
18181
18182if test -n "$PKG_CONFIG"; then
18183    if test -n "$GTK_CFLAGS"; then
18184        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
18185    else
18186        if test -n "$PKG_CONFIG" && \
18187    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gdk-2.0\"") >&5
18188  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gdk-2.0") 2>&5
18189  ac_status=$?
18190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191  (exit $ac_status); }; then
18192  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 gdk-2.0" 2>/dev/null`
18193else
18194  pkg_failed=yes
18195fi
18196    fi
18197else
18198	pkg_failed=untried
18199fi
18200if test -n "$PKG_CONFIG"; then
18201    if test -n "$GTK_LIBS"; then
18202        pkg_cv_GTK_LIBS="$GTK_LIBS"
18203    else
18204        if test -n "$PKG_CONFIG" && \
18205    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gdk-2.0\"") >&5
18206  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gdk-2.0") 2>&5
18207  ac_status=$?
18208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209  (exit $ac_status); }; then
18210  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 gdk-2.0" 2>/dev/null`
18211else
18212  pkg_failed=yes
18213fi
18214    fi
18215else
18216	pkg_failed=untried
18217fi
18218
18219
18220
18221if test $pkg_failed = yes; then
18222
18223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18224        _pkg_short_errors_supported=yes
18225else
18226        _pkg_short_errors_supported=no
18227fi
18228        if test $_pkg_short_errors_supported = yes; then
18229	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 gdk-2.0"`
18230        else
18231	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 gdk-2.0"`
18232        fi
18233	# Put the nasty error message in config.log where it belongs
18234	echo "$GTK_PKG_ERRORS" >&5
18235
18236	{ $as_echo "$as_me:$LINENO: result: no" >&5
18237$as_echo "no" >&6; }
18238                exit
18239elif test $pkg_failed = untried; then
18240	exit
18241else
18242	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
18243	GTK_LIBS=$pkg_cv_GTK_LIBS
18244        { $as_echo "$as_me:$LINENO: result: yes" >&5
18245$as_echo "yes" >&6; }
18246	:
18247fi
18248GTK_LIBDIR=`$PKG_CONFIG --variable=libdir gtk+-2.0`
18249if test -z "$GTK_LIBDIR"; then
18250    GTK_LIBDIR="$libdir"
18251fi
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262for ac_header in langinfo.h libintl.h string.h dirent.h
18263do
18264as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18266  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18267$as_echo_n "checking for $ac_header... " >&6; }
18268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18269  $as_echo_n "(cached) " >&6
18270fi
18271ac_res=`eval 'as_val=${'$as_ac_Header'}
18272		 $as_echo "$as_val"'`
18273	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18274$as_echo "$ac_res" >&6; }
18275else
18276  # Is the header compilable?
18277{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18278$as_echo_n "checking $ac_header usability... " >&6; }
18279cat >conftest.$ac_ext <<_ACEOF
18280/* confdefs.h.  */
18281_ACEOF
18282cat confdefs.h >>conftest.$ac_ext
18283cat >>conftest.$ac_ext <<_ACEOF
18284/* end confdefs.h.  */
18285$ac_includes_default
18286#include <$ac_header>
18287_ACEOF
18288rm -f conftest.$ac_objext
18289if { (ac_try="$ac_compile"
18290case "(($ac_try" in
18291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292  *) ac_try_echo=$ac_try;;
18293esac
18294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18295$as_echo "$ac_try_echo") >&5
18296  (eval "$ac_compile") 2>conftest.er1
18297  ac_status=$?
18298  grep -v '^ *+' conftest.er1 >conftest.err
18299  rm -f conftest.er1
18300  cat conftest.err >&5
18301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302  (exit $ac_status); } && {
18303	 test -z "$ac_c_werror_flag" ||
18304	 test ! -s conftest.err
18305       } && test -s conftest.$ac_objext; then
18306  ac_header_compiler=yes
18307else
18308  $as_echo "$as_me: failed program was:" >&5
18309sed 's/^/| /' conftest.$ac_ext >&5
18310
18311	ac_header_compiler=no
18312fi
18313
18314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18316$as_echo "$ac_header_compiler" >&6; }
18317
18318# Is the header present?
18319{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18320$as_echo_n "checking $ac_header presence... " >&6; }
18321cat >conftest.$ac_ext <<_ACEOF
18322/* confdefs.h.  */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h.  */
18327#include <$ac_header>
18328_ACEOF
18329if { (ac_try="$ac_cpp conftest.$ac_ext"
18330case "(($ac_try" in
18331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332  *) ac_try_echo=$ac_try;;
18333esac
18334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18335$as_echo "$ac_try_echo") >&5
18336  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18337  ac_status=$?
18338  grep -v '^ *+' conftest.er1 >conftest.err
18339  rm -f conftest.er1
18340  cat conftest.err >&5
18341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342  (exit $ac_status); } >/dev/null && {
18343	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18344	 test ! -s conftest.err
18345       }; then
18346  ac_header_preproc=yes
18347else
18348  $as_echo "$as_me: failed program was:" >&5
18349sed 's/^/| /' conftest.$ac_ext >&5
18350
18351  ac_header_preproc=no
18352fi
18353
18354rm -f conftest.err conftest.$ac_ext
18355{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18356$as_echo "$ac_header_preproc" >&6; }
18357
18358# So?  What about this header?
18359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18360  yes:no: )
18361    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18362$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18363    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18364$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18365    ac_header_preproc=yes
18366    ;;
18367  no:yes:* )
18368    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18369$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18370    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18371$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18372    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18373$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18374    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18375$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18376    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18377$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18378    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18379$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18380
18381    ;;
18382esac
18383{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18384$as_echo_n "checking for $ac_header... " >&6; }
18385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18386  $as_echo_n "(cached) " >&6
18387else
18388  eval "$as_ac_Header=\$ac_header_preproc"
18389fi
18390ac_res=`eval 'as_val=${'$as_ac_Header'}
18391		 $as_echo "$as_val"'`
18392	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18393$as_echo "$ac_res" >&6; }
18394
18395fi
18396as_val=`eval 'as_val=${'$as_ac_Header'}
18397		 $as_echo "$as_val"'`
18398   if test "x$as_val" = x""yes; then
18399  cat >>confdefs.h <<_ACEOF
18400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18401_ACEOF
18402
18403fi
18404
18405done
18406
18407
18408
18409pkg_failed=no
18410{ $as_echo "$as_me:$LINENO: checking for SCIM" >&5
18411$as_echo_n "checking for SCIM... " >&6; }
18412
18413if test -n "$PKG_CONFIG"; then
18414    if test -n "$SCIM_CFLAGS"; then
18415        pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS"
18416    else
18417        if test -n "$PKG_CONFIG" && \
18418    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim\"") >&5
18419  ($PKG_CONFIG --exists --print-errors "scim") 2>&5
18420  ac_status=$?
18421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422  (exit $ac_status); }; then
18423  pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim" 2>/dev/null`
18424else
18425  pkg_failed=yes
18426fi
18427    fi
18428else
18429	pkg_failed=untried
18430fi
18431if test -n "$PKG_CONFIG"; then
18432    if test -n "$SCIM_LIBS"; then
18433        pkg_cv_SCIM_LIBS="$SCIM_LIBS"
18434    else
18435        if test -n "$PKG_CONFIG" && \
18436    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim\"") >&5
18437  ($PKG_CONFIG --exists --print-errors "scim") 2>&5
18438  ac_status=$?
18439  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440  (exit $ac_status); }; then
18441  pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim" 2>/dev/null`
18442else
18443  pkg_failed=yes
18444fi
18445    fi
18446else
18447	pkg_failed=untried
18448fi
18449
18450
18451
18452if test $pkg_failed = yes; then
18453
18454if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18455        _pkg_short_errors_supported=yes
18456else
18457        _pkg_short_errors_supported=no
18458fi
18459        if test $_pkg_short_errors_supported = yes; then
18460	        SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim"`
18461        else
18462	        SCIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim"`
18463        fi
18464	# Put the nasty error message in config.log where it belongs
18465	echo "$SCIM_PKG_ERRORS" >&5
18466
18467	{ $as_echo "$as_me:$LINENO: result: no" >&5
18468$as_echo "no" >&6; }
18469                exit
18470elif test $pkg_failed = untried; then
18471	exit
18472else
18473	SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
18474	SCIM_LIBS=$pkg_cv_SCIM_LIBS
18475        { $as_echo "$as_me:$LINENO: result: yes" >&5
18476$as_echo "yes" >&6; }
18477	:
18478fi
18479SCIM_MAJOR=`pkg-config --modversion scim | \
18480           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18481
18482
18483SCIM_MINOR=`pkg-config --modversion scim | \
18484           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18485
18486
18487SCIM_BINARY_VERSION=`pkg-config --variable=scim_binary_version scim`
18488
18489
18490
18491
18492
18493SCIM_DATADIR="$datadir/scim"
18494
18495
18496
18497
18498for ac_header in locale.h
18499do
18500as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18502  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18503$as_echo_n "checking for $ac_header... " >&6; }
18504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18505  $as_echo_n "(cached) " >&6
18506fi
18507ac_res=`eval 'as_val=${'$as_ac_Header'}
18508		 $as_echo "$as_val"'`
18509	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18510$as_echo "$ac_res" >&6; }
18511else
18512  # Is the header compilable?
18513{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18514$as_echo_n "checking $ac_header usability... " >&6; }
18515cat >conftest.$ac_ext <<_ACEOF
18516/* confdefs.h.  */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h.  */
18521$ac_includes_default
18522#include <$ac_header>
18523_ACEOF
18524rm -f conftest.$ac_objext
18525if { (ac_try="$ac_compile"
18526case "(($ac_try" in
18527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528  *) ac_try_echo=$ac_try;;
18529esac
18530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18531$as_echo "$ac_try_echo") >&5
18532  (eval "$ac_compile") 2>conftest.er1
18533  ac_status=$?
18534  grep -v '^ *+' conftest.er1 >conftest.err
18535  rm -f conftest.er1
18536  cat conftest.err >&5
18537  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538  (exit $ac_status); } && {
18539	 test -z "$ac_c_werror_flag" ||
18540	 test ! -s conftest.err
18541       } && test -s conftest.$ac_objext; then
18542  ac_header_compiler=yes
18543else
18544  $as_echo "$as_me: failed program was:" >&5
18545sed 's/^/| /' conftest.$ac_ext >&5
18546
18547	ac_header_compiler=no
18548fi
18549
18550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18551{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18552$as_echo "$ac_header_compiler" >&6; }
18553
18554# Is the header present?
18555{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18556$as_echo_n "checking $ac_header presence... " >&6; }
18557cat >conftest.$ac_ext <<_ACEOF
18558/* confdefs.h.  */
18559_ACEOF
18560cat confdefs.h >>conftest.$ac_ext
18561cat >>conftest.$ac_ext <<_ACEOF
18562/* end confdefs.h.  */
18563#include <$ac_header>
18564_ACEOF
18565if { (ac_try="$ac_cpp conftest.$ac_ext"
18566case "(($ac_try" in
18567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568  *) ac_try_echo=$ac_try;;
18569esac
18570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18571$as_echo "$ac_try_echo") >&5
18572  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18573  ac_status=$?
18574  grep -v '^ *+' conftest.er1 >conftest.err
18575  rm -f conftest.er1
18576  cat conftest.err >&5
18577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578  (exit $ac_status); } >/dev/null && {
18579	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18580	 test ! -s conftest.err
18581       }; then
18582  ac_header_preproc=yes
18583else
18584  $as_echo "$as_me: failed program was:" >&5
18585sed 's/^/| /' conftest.$ac_ext >&5
18586
18587  ac_header_preproc=no
18588fi
18589
18590rm -f conftest.err conftest.$ac_ext
18591{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18592$as_echo "$ac_header_preproc" >&6; }
18593
18594# So?  What about this header?
18595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18596  yes:no: )
18597    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18598$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18599    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18600$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18601    ac_header_preproc=yes
18602    ;;
18603  no:yes:* )
18604    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18605$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18606    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18607$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18608    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18609$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18610    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18611$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18612    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18613$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18614    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18615$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18616
18617    ;;
18618esac
18619{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18620$as_echo_n "checking for $ac_header... " >&6; }
18621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18622  $as_echo_n "(cached) " >&6
18623else
18624  eval "$as_ac_Header=\$ac_header_preproc"
18625fi
18626ac_res=`eval 'as_val=${'$as_ac_Header'}
18627		 $as_echo "$as_val"'`
18628	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18629$as_echo "$ac_res" >&6; }
18630
18631fi
18632as_val=`eval 'as_val=${'$as_ac_Header'}
18633		 $as_echo "$as_val"'`
18634   if test "x$as_val" = x""yes; then
18635  cat >>confdefs.h <<_ACEOF
18636#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18637_ACEOF
18638
18639fi
18640
18641done
18642
18643    if test $ac_cv_header_locale_h = yes; then
18644    { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
18645$as_echo_n "checking for LC_MESSAGES... " >&6; }
18646if test "${am_cv_val_LC_MESSAGES+set}" = set; then
18647  $as_echo_n "(cached) " >&6
18648else
18649  cat >conftest.$ac_ext <<_ACEOF
18650/* confdefs.h.  */
18651_ACEOF
18652cat confdefs.h >>conftest.$ac_ext
18653cat >>conftest.$ac_ext <<_ACEOF
18654/* end confdefs.h.  */
18655#include <locale.h>
18656int
18657main ()
18658{
18659return LC_MESSAGES
18660  ;
18661  return 0;
18662}
18663_ACEOF
18664rm -f conftest.$ac_objext conftest$ac_exeext
18665if { (ac_try="$ac_link"
18666case "(($ac_try" in
18667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668  *) ac_try_echo=$ac_try;;
18669esac
18670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18671$as_echo "$ac_try_echo") >&5
18672  (eval "$ac_link") 2>conftest.er1
18673  ac_status=$?
18674  grep -v '^ *+' conftest.er1 >conftest.err
18675  rm -f conftest.er1
18676  cat conftest.err >&5
18677  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678  (exit $ac_status); } && {
18679	 test -z "$ac_c_werror_flag" ||
18680	 test ! -s conftest.err
18681       } && test -s conftest$ac_exeext && {
18682	 test "$cross_compiling" = yes ||
18683	 $as_test_x conftest$ac_exeext
18684       }; then
18685  am_cv_val_LC_MESSAGES=yes
18686else
18687  $as_echo "$as_me: failed program was:" >&5
18688sed 's/^/| /' conftest.$ac_ext >&5
18689
18690	am_cv_val_LC_MESSAGES=no
18691fi
18692
18693rm -rf conftest.dSYM
18694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18695      conftest$ac_exeext conftest.$ac_ext
18696fi
18697{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
18698$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
18699    if test $am_cv_val_LC_MESSAGES = yes; then
18700
18701cat >>confdefs.h <<\_ACEOF
18702#define HAVE_LC_MESSAGES 1
18703_ACEOF
18704
18705    fi
18706  fi
18707     USE_NLS=yes
18708
18709
18710    gt_cv_have_gettext=no
18711
18712    CATOBJEXT=NONE
18713    XGETTEXT=:
18714    INTLLIBS=
18715
18716    if test "${ac_cv_header_libintl_h+set}" = set; then
18717  { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
18718$as_echo_n "checking for libintl.h... " >&6; }
18719if test "${ac_cv_header_libintl_h+set}" = set; then
18720  $as_echo_n "(cached) " >&6
18721fi
18722{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
18723$as_echo "$ac_cv_header_libintl_h" >&6; }
18724else
18725  # Is the header compilable?
18726{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
18727$as_echo_n "checking libintl.h usability... " >&6; }
18728cat >conftest.$ac_ext <<_ACEOF
18729/* confdefs.h.  */
18730_ACEOF
18731cat confdefs.h >>conftest.$ac_ext
18732cat >>conftest.$ac_ext <<_ACEOF
18733/* end confdefs.h.  */
18734$ac_includes_default
18735#include <libintl.h>
18736_ACEOF
18737rm -f conftest.$ac_objext
18738if { (ac_try="$ac_compile"
18739case "(($ac_try" in
18740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741  *) ac_try_echo=$ac_try;;
18742esac
18743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18744$as_echo "$ac_try_echo") >&5
18745  (eval "$ac_compile") 2>conftest.er1
18746  ac_status=$?
18747  grep -v '^ *+' conftest.er1 >conftest.err
18748  rm -f conftest.er1
18749  cat conftest.err >&5
18750  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751  (exit $ac_status); } && {
18752	 test -z "$ac_c_werror_flag" ||
18753	 test ! -s conftest.err
18754       } && test -s conftest.$ac_objext; then
18755  ac_header_compiler=yes
18756else
18757  $as_echo "$as_me: failed program was:" >&5
18758sed 's/^/| /' conftest.$ac_ext >&5
18759
18760	ac_header_compiler=no
18761fi
18762
18763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18764{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18765$as_echo "$ac_header_compiler" >&6; }
18766
18767# Is the header present?
18768{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
18769$as_echo_n "checking libintl.h presence... " >&6; }
18770cat >conftest.$ac_ext <<_ACEOF
18771/* confdefs.h.  */
18772_ACEOF
18773cat confdefs.h >>conftest.$ac_ext
18774cat >>conftest.$ac_ext <<_ACEOF
18775/* end confdefs.h.  */
18776#include <libintl.h>
18777_ACEOF
18778if { (ac_try="$ac_cpp conftest.$ac_ext"
18779case "(($ac_try" in
18780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781  *) ac_try_echo=$ac_try;;
18782esac
18783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18784$as_echo "$ac_try_echo") >&5
18785  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18786  ac_status=$?
18787  grep -v '^ *+' conftest.er1 >conftest.err
18788  rm -f conftest.er1
18789  cat conftest.err >&5
18790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791  (exit $ac_status); } >/dev/null && {
18792	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18793	 test ! -s conftest.err
18794       }; then
18795  ac_header_preproc=yes
18796else
18797  $as_echo "$as_me: failed program was:" >&5
18798sed 's/^/| /' conftest.$ac_ext >&5
18799
18800  ac_header_preproc=no
18801fi
18802
18803rm -f conftest.err conftest.$ac_ext
18804{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18805$as_echo "$ac_header_preproc" >&6; }
18806
18807# So?  What about this header?
18808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18809  yes:no: )
18810    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18811$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18812    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
18813$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
18814    ac_header_preproc=yes
18815    ;;
18816  no:yes:* )
18817    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
18818$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
18819    { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
18820$as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
18821    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
18822$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
18823    { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
18824$as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18825    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
18826$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
18827    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
18828$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
18829
18830    ;;
18831esac
18832{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
18833$as_echo_n "checking for libintl.h... " >&6; }
18834if test "${ac_cv_header_libintl_h+set}" = set; then
18835  $as_echo_n "(cached) " >&6
18836else
18837  ac_cv_header_libintl_h=$ac_header_preproc
18838fi
18839{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
18840$as_echo "$ac_cv_header_libintl_h" >&6; }
18841
18842fi
18843if test "x$ac_cv_header_libintl_h" = x""yes; then
18844  gt_cv_func_dgettext_libintl="no"
18845      libintl_extra_libs=""
18846
18847      #
18848      # First check in libc
18849      #
18850      { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
18851$as_echo_n "checking for ngettext in libc... " >&6; }
18852if test "${gt_cv_func_ngettext_libc+set}" = set; then
18853  $as_echo_n "(cached) " >&6
18854else
18855  cat >conftest.$ac_ext <<_ACEOF
18856/* confdefs.h.  */
18857_ACEOF
18858cat confdefs.h >>conftest.$ac_ext
18859cat >>conftest.$ac_ext <<_ACEOF
18860/* end confdefs.h.  */
18861
18862#include <libintl.h>
18863
18864int
18865main ()
18866{
18867return !ngettext ("","", 1)
18868  ;
18869  return 0;
18870}
18871_ACEOF
18872rm -f conftest.$ac_objext conftest$ac_exeext
18873if { (ac_try="$ac_link"
18874case "(($ac_try" in
18875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876  *) ac_try_echo=$ac_try;;
18877esac
18878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18879$as_echo "$ac_try_echo") >&5
18880  (eval "$ac_link") 2>conftest.er1
18881  ac_status=$?
18882  grep -v '^ *+' conftest.er1 >conftest.err
18883  rm -f conftest.er1
18884  cat conftest.err >&5
18885  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886  (exit $ac_status); } && {
18887	 test -z "$ac_c_werror_flag" ||
18888	 test ! -s conftest.err
18889       } && test -s conftest$ac_exeext && {
18890	 test "$cross_compiling" = yes ||
18891	 $as_test_x conftest$ac_exeext
18892       }; then
18893  gt_cv_func_ngettext_libc=yes
18894else
18895  $as_echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
18897
18898	gt_cv_func_ngettext_libc=no
18899fi
18900
18901rm -rf conftest.dSYM
18902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18903      conftest$ac_exeext conftest.$ac_ext
18904
18905fi
18906{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
18907$as_echo "$gt_cv_func_ngettext_libc" >&6; }
18908
18909      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
18910	      { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
18911$as_echo_n "checking for dgettext in libc... " >&6; }
18912if test "${gt_cv_func_dgettext_libc+set}" = set; then
18913  $as_echo_n "(cached) " >&6
18914else
18915  cat >conftest.$ac_ext <<_ACEOF
18916/* confdefs.h.  */
18917_ACEOF
18918cat confdefs.h >>conftest.$ac_ext
18919cat >>conftest.$ac_ext <<_ACEOF
18920/* end confdefs.h.  */
18921
18922#include <libintl.h>
18923
18924int
18925main ()
18926{
18927return !dgettext ("","")
18928  ;
18929  return 0;
18930}
18931_ACEOF
18932rm -f conftest.$ac_objext conftest$ac_exeext
18933if { (ac_try="$ac_link"
18934case "(($ac_try" in
18935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936  *) ac_try_echo=$ac_try;;
18937esac
18938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18939$as_echo "$ac_try_echo") >&5
18940  (eval "$ac_link") 2>conftest.er1
18941  ac_status=$?
18942  grep -v '^ *+' conftest.er1 >conftest.err
18943  rm -f conftest.er1
18944  cat conftest.err >&5
18945  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946  (exit $ac_status); } && {
18947	 test -z "$ac_c_werror_flag" ||
18948	 test ! -s conftest.err
18949       } && test -s conftest$ac_exeext && {
18950	 test "$cross_compiling" = yes ||
18951	 $as_test_x conftest$ac_exeext
18952       }; then
18953  gt_cv_func_dgettext_libc=yes
18954else
18955  $as_echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
18958	gt_cv_func_dgettext_libc=no
18959fi
18960
18961rm -rf conftest.dSYM
18962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18963      conftest$ac_exeext conftest.$ac_ext
18964
18965fi
18966{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
18967$as_echo "$gt_cv_func_dgettext_libc" >&6; }
18968      fi
18969
18970      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
18971
18972for ac_func in bind_textdomain_codeset
18973do
18974as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18975{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18976$as_echo_n "checking for $ac_func... " >&6; }
18977if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18978  $as_echo_n "(cached) " >&6
18979else
18980  cat >conftest.$ac_ext <<_ACEOF
18981/* confdefs.h.  */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h.  */
18986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18987   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18988#define $ac_func innocuous_$ac_func
18989
18990/* System header to define __stub macros and hopefully few prototypes,
18991    which can conflict with char $ac_func (); below.
18992    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18993    <limits.h> exists even on freestanding compilers.  */
18994
18995#ifdef __STDC__
18996# include <limits.h>
18997#else
18998# include <assert.h>
18999#endif
19000
19001#undef $ac_func
19002
19003/* Override any GCC internal prototype to avoid an error.
19004   Use char because int might match the return type of a GCC
19005   builtin and then its argument prototype would still apply.  */
19006#ifdef __cplusplus
19007extern "C"
19008#endif
19009char $ac_func ();
19010/* The GNU C library defines this for functions which it implements
19011    to always fail with ENOSYS.  Some functions are actually named
19012    something starting with __ and the normal name is an alias.  */
19013#if defined __stub_$ac_func || defined __stub___$ac_func
19014choke me
19015#endif
19016
19017int
19018main ()
19019{
19020return $ac_func ();
19021  ;
19022  return 0;
19023}
19024_ACEOF
19025rm -f conftest.$ac_objext conftest$ac_exeext
19026if { (ac_try="$ac_link"
19027case "(($ac_try" in
19028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029  *) ac_try_echo=$ac_try;;
19030esac
19031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19032$as_echo "$ac_try_echo") >&5
19033  (eval "$ac_link") 2>conftest.er1
19034  ac_status=$?
19035  grep -v '^ *+' conftest.er1 >conftest.err
19036  rm -f conftest.er1
19037  cat conftest.err >&5
19038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039  (exit $ac_status); } && {
19040	 test -z "$ac_c_werror_flag" ||
19041	 test ! -s conftest.err
19042       } && test -s conftest$ac_exeext && {
19043	 test "$cross_compiling" = yes ||
19044	 $as_test_x conftest$ac_exeext
19045       }; then
19046  eval "$as_ac_var=yes"
19047else
19048  $as_echo "$as_me: failed program was:" >&5
19049sed 's/^/| /' conftest.$ac_ext >&5
19050
19051	eval "$as_ac_var=no"
19052fi
19053
19054rm -rf conftest.dSYM
19055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19056      conftest$ac_exeext conftest.$ac_ext
19057fi
19058ac_res=`eval 'as_val=${'$as_ac_var'}
19059		 $as_echo "$as_val"'`
19060	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19061$as_echo "$ac_res" >&6; }
19062as_val=`eval 'as_val=${'$as_ac_var'}
19063		 $as_echo "$as_val"'`
19064   if test "x$as_val" = x""yes; then
19065  cat >>confdefs.h <<_ACEOF
19066#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19067_ACEOF
19068
19069fi
19070done
19071
19072      fi
19073
19074      #
19075      # If we don't have everything we want, check in libintl
19076      #
19077      if test "$gt_cv_func_dgettext_libc" != "yes" \
19078	 || test "$gt_cv_func_ngettext_libc" != "yes" \
19079         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
19080
19081        { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
19082$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
19083if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
19084  $as_echo_n "(cached) " >&6
19085else
19086  ac_check_lib_save_LIBS=$LIBS
19087LIBS="-lintl  $LIBS"
19088cat >conftest.$ac_ext <<_ACEOF
19089/* confdefs.h.  */
19090_ACEOF
19091cat confdefs.h >>conftest.$ac_ext
19092cat >>conftest.$ac_ext <<_ACEOF
19093/* end confdefs.h.  */
19094
19095/* Override any GCC internal prototype to avoid an error.
19096   Use char because int might match the return type of a GCC
19097   builtin and then its argument prototype would still apply.  */
19098#ifdef __cplusplus
19099extern "C"
19100#endif
19101char bindtextdomain ();
19102int
19103main ()
19104{
19105return bindtextdomain ();
19106  ;
19107  return 0;
19108}
19109_ACEOF
19110rm -f conftest.$ac_objext conftest$ac_exeext
19111if { (ac_try="$ac_link"
19112case "(($ac_try" in
19113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114  *) ac_try_echo=$ac_try;;
19115esac
19116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19117$as_echo "$ac_try_echo") >&5
19118  (eval "$ac_link") 2>conftest.er1
19119  ac_status=$?
19120  grep -v '^ *+' conftest.er1 >conftest.err
19121  rm -f conftest.er1
19122  cat conftest.err >&5
19123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124  (exit $ac_status); } && {
19125	 test -z "$ac_c_werror_flag" ||
19126	 test ! -s conftest.err
19127       } && test -s conftest$ac_exeext && {
19128	 test "$cross_compiling" = yes ||
19129	 $as_test_x conftest$ac_exeext
19130       }; then
19131  ac_cv_lib_intl_bindtextdomain=yes
19132else
19133  $as_echo "$as_me: failed program was:" >&5
19134sed 's/^/| /' conftest.$ac_ext >&5
19135
19136	ac_cv_lib_intl_bindtextdomain=no
19137fi
19138
19139rm -rf conftest.dSYM
19140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19141      conftest$ac_exeext conftest.$ac_ext
19142LIBS=$ac_check_lib_save_LIBS
19143fi
19144{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
19145$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
19146if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
19147  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
19148$as_echo_n "checking for ngettext in -lintl... " >&6; }
19149if test "${ac_cv_lib_intl_ngettext+set}" = set; then
19150  $as_echo_n "(cached) " >&6
19151else
19152  ac_check_lib_save_LIBS=$LIBS
19153LIBS="-lintl  $LIBS"
19154cat >conftest.$ac_ext <<_ACEOF
19155/* confdefs.h.  */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h.  */
19160
19161/* Override any GCC internal prototype to avoid an error.
19162   Use char because int might match the return type of a GCC
19163   builtin and then its argument prototype would still apply.  */
19164#ifdef __cplusplus
19165extern "C"
19166#endif
19167char ngettext ();
19168int
19169main ()
19170{
19171return ngettext ();
19172  ;
19173  return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext conftest$ac_exeext
19177if { (ac_try="$ac_link"
19178case "(($ac_try" in
19179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180  *) ac_try_echo=$ac_try;;
19181esac
19182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19183$as_echo "$ac_try_echo") >&5
19184  (eval "$ac_link") 2>conftest.er1
19185  ac_status=$?
19186  grep -v '^ *+' conftest.er1 >conftest.err
19187  rm -f conftest.er1
19188  cat conftest.err >&5
19189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190  (exit $ac_status); } && {
19191	 test -z "$ac_c_werror_flag" ||
19192	 test ! -s conftest.err
19193       } && test -s conftest$ac_exeext && {
19194	 test "$cross_compiling" = yes ||
19195	 $as_test_x conftest$ac_exeext
19196       }; then
19197  ac_cv_lib_intl_ngettext=yes
19198else
19199  $as_echo "$as_me: failed program was:" >&5
19200sed 's/^/| /' conftest.$ac_ext >&5
19201
19202	ac_cv_lib_intl_ngettext=no
19203fi
19204
19205rm -rf conftest.dSYM
19206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19207      conftest$ac_exeext conftest.$ac_ext
19208LIBS=$ac_check_lib_save_LIBS
19209fi
19210{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
19211$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19212if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
19213  { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19214$as_echo_n "checking for dgettext in -lintl... " >&6; }
19215if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19216  $as_echo_n "(cached) " >&6
19217else
19218  ac_check_lib_save_LIBS=$LIBS
19219LIBS="-lintl  $LIBS"
19220cat >conftest.$ac_ext <<_ACEOF
19221/* confdefs.h.  */
19222_ACEOF
19223cat confdefs.h >>conftest.$ac_ext
19224cat >>conftest.$ac_ext <<_ACEOF
19225/* end confdefs.h.  */
19226
19227/* Override any GCC internal prototype to avoid an error.
19228   Use char because int might match the return type of a GCC
19229   builtin and then its argument prototype would still apply.  */
19230#ifdef __cplusplus
19231extern "C"
19232#endif
19233char dgettext ();
19234int
19235main ()
19236{
19237return dgettext ();
19238  ;
19239  return 0;
19240}
19241_ACEOF
19242rm -f conftest.$ac_objext conftest$ac_exeext
19243if { (ac_try="$ac_link"
19244case "(($ac_try" in
19245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246  *) ac_try_echo=$ac_try;;
19247esac
19248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19249$as_echo "$ac_try_echo") >&5
19250  (eval "$ac_link") 2>conftest.er1
19251  ac_status=$?
19252  grep -v '^ *+' conftest.er1 >conftest.err
19253  rm -f conftest.er1
19254  cat conftest.err >&5
19255  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256  (exit $ac_status); } && {
19257	 test -z "$ac_c_werror_flag" ||
19258	 test ! -s conftest.err
19259       } && test -s conftest$ac_exeext && {
19260	 test "$cross_compiling" = yes ||
19261	 $as_test_x conftest$ac_exeext
19262       }; then
19263  ac_cv_lib_intl_dgettext=yes
19264else
19265  $as_echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268	ac_cv_lib_intl_dgettext=no
19269fi
19270
19271rm -rf conftest.dSYM
19272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19273      conftest$ac_exeext conftest.$ac_ext
19274LIBS=$ac_check_lib_save_LIBS
19275fi
19276{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19277$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19278if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
19279  gt_cv_func_dgettext_libintl=yes
19280fi
19281
19282fi
19283
19284fi
19285
19286
19287	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
19288	  { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
19289$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
19290	  { $as_echo "$as_me:$LINENO: result: " >&5
19291$as_echo "" >&6; }
19292  	  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
19293$as_echo_n "checking for ngettext in -lintl... " >&6; }
19294if test "${ac_cv_lib_intl_ngettext+set}" = set; then
19295  $as_echo_n "(cached) " >&6
19296else
19297  ac_check_lib_save_LIBS=$LIBS
19298LIBS="-lintl -liconv $LIBS"
19299cat >conftest.$ac_ext <<_ACEOF
19300/* confdefs.h.  */
19301_ACEOF
19302cat confdefs.h >>conftest.$ac_ext
19303cat >>conftest.$ac_ext <<_ACEOF
19304/* end confdefs.h.  */
19305
19306/* Override any GCC internal prototype to avoid an error.
19307   Use char because int might match the return type of a GCC
19308   builtin and then its argument prototype would still apply.  */
19309#ifdef __cplusplus
19310extern "C"
19311#endif
19312char ngettext ();
19313int
19314main ()
19315{
19316return ngettext ();
19317  ;
19318  return 0;
19319}
19320_ACEOF
19321rm -f conftest.$ac_objext conftest$ac_exeext
19322if { (ac_try="$ac_link"
19323case "(($ac_try" in
19324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325  *) ac_try_echo=$ac_try;;
19326esac
19327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19328$as_echo "$ac_try_echo") >&5
19329  (eval "$ac_link") 2>conftest.er1
19330  ac_status=$?
19331  grep -v '^ *+' conftest.er1 >conftest.err
19332  rm -f conftest.er1
19333  cat conftest.err >&5
19334  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335  (exit $ac_status); } && {
19336	 test -z "$ac_c_werror_flag" ||
19337	 test ! -s conftest.err
19338       } && test -s conftest$ac_exeext && {
19339	 test "$cross_compiling" = yes ||
19340	 $as_test_x conftest$ac_exeext
19341       }; then
19342  ac_cv_lib_intl_ngettext=yes
19343else
19344  $as_echo "$as_me: failed program was:" >&5
19345sed 's/^/| /' conftest.$ac_ext >&5
19346
19347	ac_cv_lib_intl_ngettext=no
19348fi
19349
19350rm -rf conftest.dSYM
19351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19352      conftest$ac_exeext conftest.$ac_ext
19353LIBS=$ac_check_lib_save_LIBS
19354fi
19355{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
19356$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19357if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
19358  { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
19359$as_echo_n "checking for dcgettext in -lintl... " >&6; }
19360if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
19361  $as_echo_n "(cached) " >&6
19362else
19363  ac_check_lib_save_LIBS=$LIBS
19364LIBS="-lintl -liconv $LIBS"
19365cat >conftest.$ac_ext <<_ACEOF
19366/* confdefs.h.  */
19367_ACEOF
19368cat confdefs.h >>conftest.$ac_ext
19369cat >>conftest.$ac_ext <<_ACEOF
19370/* end confdefs.h.  */
19371
19372/* Override any GCC internal prototype to avoid an error.
19373   Use char because int might match the return type of a GCC
19374   builtin and then its argument prototype would still apply.  */
19375#ifdef __cplusplus
19376extern "C"
19377#endif
19378char dcgettext ();
19379int
19380main ()
19381{
19382return dcgettext ();
19383  ;
19384  return 0;
19385}
19386_ACEOF
19387rm -f conftest.$ac_objext conftest$ac_exeext
19388if { (ac_try="$ac_link"
19389case "(($ac_try" in
19390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391  *) ac_try_echo=$ac_try;;
19392esac
19393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19394$as_echo "$ac_try_echo") >&5
19395  (eval "$ac_link") 2>conftest.er1
19396  ac_status=$?
19397  grep -v '^ *+' conftest.er1 >conftest.err
19398  rm -f conftest.er1
19399  cat conftest.err >&5
19400  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401  (exit $ac_status); } && {
19402	 test -z "$ac_c_werror_flag" ||
19403	 test ! -s conftest.err
19404       } && test -s conftest$ac_exeext && {
19405	 test "$cross_compiling" = yes ||
19406	 $as_test_x conftest$ac_exeext
19407       }; then
19408  ac_cv_lib_intl_dcgettext=yes
19409else
19410  $as_echo "$as_me: failed program was:" >&5
19411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413	ac_cv_lib_intl_dcgettext=no
19414fi
19415
19416rm -rf conftest.dSYM
19417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19418      conftest$ac_exeext conftest.$ac_ext
19419LIBS=$ac_check_lib_save_LIBS
19420fi
19421{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
19422$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
19423if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
19424  gt_cv_func_dgettext_libintl=yes
19425			libintl_extra_libs=-liconv
19426else
19427  :
19428fi
19429
19430else
19431  :
19432fi
19433
19434        fi
19435
19436        #
19437        # If we found libintl, then check in it for bind_textdomain_codeset();
19438        # we'll prefer libc if neither have bind_textdomain_codeset(),
19439        # and both have dgettext and ngettext
19440        #
19441        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
19442          glib_save_LIBS="$LIBS"
19443          LIBS="$LIBS -lintl $libintl_extra_libs"
19444          unset ac_cv_func_bind_textdomain_codeset
19445
19446for ac_func in bind_textdomain_codeset
19447do
19448as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19449{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19450$as_echo_n "checking for $ac_func... " >&6; }
19451if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19452  $as_echo_n "(cached) " >&6
19453else
19454  cat >conftest.$ac_ext <<_ACEOF
19455/* confdefs.h.  */
19456_ACEOF
19457cat confdefs.h >>conftest.$ac_ext
19458cat >>conftest.$ac_ext <<_ACEOF
19459/* end confdefs.h.  */
19460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19461   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19462#define $ac_func innocuous_$ac_func
19463
19464/* System header to define __stub macros and hopefully few prototypes,
19465    which can conflict with char $ac_func (); below.
19466    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19467    <limits.h> exists even on freestanding compilers.  */
19468
19469#ifdef __STDC__
19470# include <limits.h>
19471#else
19472# include <assert.h>
19473#endif
19474
19475#undef $ac_func
19476
19477/* Override any GCC internal prototype to avoid an error.
19478   Use char because int might match the return type of a GCC
19479   builtin and then its argument prototype would still apply.  */
19480#ifdef __cplusplus
19481extern "C"
19482#endif
19483char $ac_func ();
19484/* The GNU C library defines this for functions which it implements
19485    to always fail with ENOSYS.  Some functions are actually named
19486    something starting with __ and the normal name is an alias.  */
19487#if defined __stub_$ac_func || defined __stub___$ac_func
19488choke me
19489#endif
19490
19491int
19492main ()
19493{
19494return $ac_func ();
19495  ;
19496  return 0;
19497}
19498_ACEOF
19499rm -f conftest.$ac_objext conftest$ac_exeext
19500if { (ac_try="$ac_link"
19501case "(($ac_try" in
19502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503  *) ac_try_echo=$ac_try;;
19504esac
19505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19506$as_echo "$ac_try_echo") >&5
19507  (eval "$ac_link") 2>conftest.er1
19508  ac_status=$?
19509  grep -v '^ *+' conftest.er1 >conftest.err
19510  rm -f conftest.er1
19511  cat conftest.err >&5
19512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513  (exit $ac_status); } && {
19514	 test -z "$ac_c_werror_flag" ||
19515	 test ! -s conftest.err
19516       } && test -s conftest$ac_exeext && {
19517	 test "$cross_compiling" = yes ||
19518	 $as_test_x conftest$ac_exeext
19519       }; then
19520  eval "$as_ac_var=yes"
19521else
19522  $as_echo "$as_me: failed program was:" >&5
19523sed 's/^/| /' conftest.$ac_ext >&5
19524
19525	eval "$as_ac_var=no"
19526fi
19527
19528rm -rf conftest.dSYM
19529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19530      conftest$ac_exeext conftest.$ac_ext
19531fi
19532ac_res=`eval 'as_val=${'$as_ac_var'}
19533		 $as_echo "$as_val"'`
19534	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19535$as_echo "$ac_res" >&6; }
19536as_val=`eval 'as_val=${'$as_ac_var'}
19537		 $as_echo "$as_val"'`
19538   if test "x$as_val" = x""yes; then
19539  cat >>confdefs.h <<_ACEOF
19540#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19541_ACEOF
19542
19543fi
19544done
19545
19546          LIBS="$glib_save_LIBS"
19547
19548          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19549            gt_cv_func_dgettext_libc=no
19550          else
19551            if test "$gt_cv_func_dgettext_libc" = "yes" \
19552		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
19553              gt_cv_func_dgettext_libintl=no
19554            fi
19555          fi
19556        fi
19557      fi
19558
19559      if test "$gt_cv_func_dgettext_libc" = "yes" \
19560	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
19561        gt_cv_have_gettext=yes
19562      fi
19563
19564      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19565        INTLLIBS="-lintl $libintl_extra_libs"
19566      fi
19567
19568      if test "$gt_cv_have_gettext" = "yes"; then
19569
19570cat >>confdefs.h <<\_ACEOF
19571#define HAVE_GETTEXT 1
19572_ACEOF
19573
19574	# Extract the first word of "msgfmt", so it can be a program name with args.
19575set dummy msgfmt; ac_word=$2
19576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19577$as_echo_n "checking for $ac_word... " >&6; }
19578if test "${ac_cv_path_MSGFMT+set}" = set; then
19579  $as_echo_n "(cached) " >&6
19580else
19581  case "$MSGFMT" in
19582  /*)
19583  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19584  ;;
19585  *)
19586  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19587  for ac_dir in $PATH; do
19588    test -z "$ac_dir" && ac_dir=.
19589    if test -f $ac_dir/$ac_word; then
19590      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19591	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
19592	break
19593      fi
19594    fi
19595  done
19596  IFS="$ac_save_ifs"
19597  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
19598  ;;
19599esac
19600fi
19601MSGFMT="$ac_cv_path_MSGFMT"
19602if test "$MSGFMT" != "no"; then
19603  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
19604$as_echo "$MSGFMT" >&6; }
19605else
19606  { $as_echo "$as_me:$LINENO: result: no" >&5
19607$as_echo "no" >&6; }
19608fi
19609	if test "$MSGFMT" != "no"; then
19610          glib_save_LIBS="$LIBS"
19611          LIBS="$LIBS $INTLLIBS"
19612
19613for ac_func in dcgettext
19614do
19615as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19616{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19617$as_echo_n "checking for $ac_func... " >&6; }
19618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19619  $as_echo_n "(cached) " >&6
19620else
19621  cat >conftest.$ac_ext <<_ACEOF
19622/* confdefs.h.  */
19623_ACEOF
19624cat confdefs.h >>conftest.$ac_ext
19625cat >>conftest.$ac_ext <<_ACEOF
19626/* end confdefs.h.  */
19627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19628   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19629#define $ac_func innocuous_$ac_func
19630
19631/* System header to define __stub macros and hopefully few prototypes,
19632    which can conflict with char $ac_func (); below.
19633    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19634    <limits.h> exists even on freestanding compilers.  */
19635
19636#ifdef __STDC__
19637# include <limits.h>
19638#else
19639# include <assert.h>
19640#endif
19641
19642#undef $ac_func
19643
19644/* Override any GCC internal prototype to avoid an error.
19645   Use char because int might match the return type of a GCC
19646   builtin and then its argument prototype would still apply.  */
19647#ifdef __cplusplus
19648extern "C"
19649#endif
19650char $ac_func ();
19651/* The GNU C library defines this for functions which it implements
19652    to always fail with ENOSYS.  Some functions are actually named
19653    something starting with __ and the normal name is an alias.  */
19654#if defined __stub_$ac_func || defined __stub___$ac_func
19655choke me
19656#endif
19657
19658int
19659main ()
19660{
19661return $ac_func ();
19662  ;
19663  return 0;
19664}
19665_ACEOF
19666rm -f conftest.$ac_objext conftest$ac_exeext
19667if { (ac_try="$ac_link"
19668case "(($ac_try" in
19669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670  *) ac_try_echo=$ac_try;;
19671esac
19672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19673$as_echo "$ac_try_echo") >&5
19674  (eval "$ac_link") 2>conftest.er1
19675  ac_status=$?
19676  grep -v '^ *+' conftest.er1 >conftest.err
19677  rm -f conftest.er1
19678  cat conftest.err >&5
19679  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680  (exit $ac_status); } && {
19681	 test -z "$ac_c_werror_flag" ||
19682	 test ! -s conftest.err
19683       } && test -s conftest$ac_exeext && {
19684	 test "$cross_compiling" = yes ||
19685	 $as_test_x conftest$ac_exeext
19686       }; then
19687  eval "$as_ac_var=yes"
19688else
19689  $as_echo "$as_me: failed program was:" >&5
19690sed 's/^/| /' conftest.$ac_ext >&5
19691
19692	eval "$as_ac_var=no"
19693fi
19694
19695rm -rf conftest.dSYM
19696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19697      conftest$ac_exeext conftest.$ac_ext
19698fi
19699ac_res=`eval 'as_val=${'$as_ac_var'}
19700		 $as_echo "$as_val"'`
19701	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19702$as_echo "$ac_res" >&6; }
19703as_val=`eval 'as_val=${'$as_ac_var'}
19704		 $as_echo "$as_val"'`
19705   if test "x$as_val" = x""yes; then
19706  cat >>confdefs.h <<_ACEOF
19707#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19708_ACEOF
19709
19710fi
19711done
19712
19713	  MSGFMT_OPTS=
19714	  { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
19715$as_echo_n "checking if msgfmt accepts -c... " >&6; }
19716	  cat >conftest.foo <<_ACEOF
19717
19718msgid ""
19719msgstr ""
19720"Content-Type: text/plain; charset=UTF-8\n"
19721"Project-Id-Version: test 1.0\n"
19722"PO-Revision-Date: 2007-02-15 12:01+0100\n"
19723"Last-Translator: test <foo@bar.xx>\n"
19724"Language-Team: C <LL@li.org>\n"
19725"MIME-Version: 1.0\n"
19726"Content-Transfer-Encoding: 8bit\n"
19727
19728_ACEOF
19729if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
19730  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
19731  ac_status=$?
19732  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733  (exit $ac_status); }; then
19734  MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
19735$as_echo "yes" >&6; }
19736else { $as_echo "$as_me:$LINENO: result: no" >&5
19737$as_echo "no" >&6; }
19738echo "$as_me: failed input was:" >&5
19739sed 's/^/| /' conftest.foo >&5
19740fi
19741
19742	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
19743set dummy gmsgfmt; ac_word=$2
19744{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19745$as_echo_n "checking for $ac_word... " >&6; }
19746if test "${ac_cv_path_GMSGFMT+set}" = set; then
19747  $as_echo_n "(cached) " >&6
19748else
19749  case $GMSGFMT in
19750  [\\/]* | ?:[\\/]*)
19751  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19752  ;;
19753  *)
19754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19755for as_dir in $PATH
19756do
19757  IFS=$as_save_IFS
19758  test -z "$as_dir" && as_dir=.
19759  for ac_exec_ext in '' $ac_executable_extensions; do
19760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19761    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19762    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19763    break 2
19764  fi
19765done
19766done
19767IFS=$as_save_IFS
19768
19769  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19770  ;;
19771esac
19772fi
19773GMSGFMT=$ac_cv_path_GMSGFMT
19774if test -n "$GMSGFMT"; then
19775  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
19776$as_echo "$GMSGFMT" >&6; }
19777else
19778  { $as_echo "$as_me:$LINENO: result: no" >&5
19779$as_echo "no" >&6; }
19780fi
19781
19782
19783	  # Extract the first word of "xgettext", so it can be a program name with args.
19784set dummy xgettext; ac_word=$2
19785{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19786$as_echo_n "checking for $ac_word... " >&6; }
19787if test "${ac_cv_path_XGETTEXT+set}" = set; then
19788  $as_echo_n "(cached) " >&6
19789else
19790  case "$XGETTEXT" in
19791  /*)
19792  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19793  ;;
19794  *)
19795  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19796  for ac_dir in $PATH; do
19797    test -z "$ac_dir" && ac_dir=.
19798    if test -f $ac_dir/$ac_word; then
19799      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
19800	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
19801	break
19802      fi
19803    fi
19804  done
19805  IFS="$ac_save_ifs"
19806  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19807  ;;
19808esac
19809fi
19810XGETTEXT="$ac_cv_path_XGETTEXT"
19811if test "$XGETTEXT" != ":"; then
19812  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
19813$as_echo "$XGETTEXT" >&6; }
19814else
19815  { $as_echo "$as_me:$LINENO: result: no" >&5
19816$as_echo "no" >&6; }
19817fi
19818
19819	  cat >conftest.$ac_ext <<_ACEOF
19820/* confdefs.h.  */
19821_ACEOF
19822cat confdefs.h >>conftest.$ac_ext
19823cat >>conftest.$ac_ext <<_ACEOF
19824/* end confdefs.h.  */
19825
19826int
19827main ()
19828{
19829extern int _nl_msg_cat_cntr;
19830			 return _nl_msg_cat_cntr
19831  ;
19832  return 0;
19833}
19834_ACEOF
19835rm -f conftest.$ac_objext conftest$ac_exeext
19836if { (ac_try="$ac_link"
19837case "(($ac_try" in
19838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839  *) ac_try_echo=$ac_try;;
19840esac
19841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19842$as_echo "$ac_try_echo") >&5
19843  (eval "$ac_link") 2>conftest.er1
19844  ac_status=$?
19845  grep -v '^ *+' conftest.er1 >conftest.err
19846  rm -f conftest.er1
19847  cat conftest.err >&5
19848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849  (exit $ac_status); } && {
19850	 test -z "$ac_c_werror_flag" ||
19851	 test ! -s conftest.err
19852       } && test -s conftest$ac_exeext && {
19853	 test "$cross_compiling" = yes ||
19854	 $as_test_x conftest$ac_exeext
19855       }; then
19856  CATOBJEXT=.gmo
19857             DATADIRNAME=share
19858else
19859  $as_echo "$as_me: failed program was:" >&5
19860sed 's/^/| /' conftest.$ac_ext >&5
19861
19862	case $host in
19863	    *-*-solaris*)
19864	    	                	    	                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
19865$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
19866if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
19867  $as_echo_n "(cached) " >&6
19868else
19869  cat >conftest.$ac_ext <<_ACEOF
19870/* confdefs.h.  */
19871_ACEOF
19872cat confdefs.h >>conftest.$ac_ext
19873cat >>conftest.$ac_ext <<_ACEOF
19874/* end confdefs.h.  */
19875/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
19876   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19877#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
19878
19879/* System header to define __stub macros and hopefully few prototypes,
19880    which can conflict with char bind_textdomain_codeset (); below.
19881    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19882    <limits.h> exists even on freestanding compilers.  */
19883
19884#ifdef __STDC__
19885# include <limits.h>
19886#else
19887# include <assert.h>
19888#endif
19889
19890#undef bind_textdomain_codeset
19891
19892/* Override any GCC internal prototype to avoid an error.
19893   Use char because int might match the return type of a GCC
19894   builtin and then its argument prototype would still apply.  */
19895#ifdef __cplusplus
19896extern "C"
19897#endif
19898char bind_textdomain_codeset ();
19899/* The GNU C library defines this for functions which it implements
19900    to always fail with ENOSYS.  Some functions are actually named
19901    something starting with __ and the normal name is an alias.  */
19902#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
19903choke me
19904#endif
19905
19906int
19907main ()
19908{
19909return bind_textdomain_codeset ();
19910  ;
19911  return 0;
19912}
19913_ACEOF
19914rm -f conftest.$ac_objext conftest$ac_exeext
19915if { (ac_try="$ac_link"
19916case "(($ac_try" in
19917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918  *) ac_try_echo=$ac_try;;
19919esac
19920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19921$as_echo "$ac_try_echo") >&5
19922  (eval "$ac_link") 2>conftest.er1
19923  ac_status=$?
19924  grep -v '^ *+' conftest.er1 >conftest.err
19925  rm -f conftest.er1
19926  cat conftest.err >&5
19927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928  (exit $ac_status); } && {
19929	 test -z "$ac_c_werror_flag" ||
19930	 test ! -s conftest.err
19931       } && test -s conftest$ac_exeext && {
19932	 test "$cross_compiling" = yes ||
19933	 $as_test_x conftest$ac_exeext
19934       }; then
19935  ac_cv_func_bind_textdomain_codeset=yes
19936else
19937  $as_echo "$as_me: failed program was:" >&5
19938sed 's/^/| /' conftest.$ac_ext >&5
19939
19940	ac_cv_func_bind_textdomain_codeset=no
19941fi
19942
19943rm -rf conftest.dSYM
19944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19945      conftest$ac_exeext conftest.$ac_ext
19946fi
19947{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
19948$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
19949if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
19950  CATOBJEXT=.gmo
19951               DATADIRNAME=share
19952else
19953  CATOBJEXT=.mo
19954               DATADIRNAME=share
19955fi
19956
19957	    ;;
19958	    *)
19959	    CATOBJEXT=.mo
19960            DATADIRNAME=share
19961	    ;;
19962	    esac
19963fi
19964
19965rm -rf conftest.dSYM
19966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19967      conftest$ac_exeext conftest.$ac_ext
19968          LIBS="$glib_save_LIBS"
19969	  INSTOBJEXT=.mo
19970	else
19971	  gt_cv_have_gettext=no
19972	fi
19973      fi
19974
19975fi
19976
19977
19978
19979    if test "$gt_cv_have_gettext" = "yes" ; then
19980
19981cat >>confdefs.h <<\_ACEOF
19982#define ENABLE_NLS 1
19983_ACEOF
19984
19985    fi
19986
19987        if test "$XGETTEXT" != ":"; then
19988                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
19989        : ;
19990      else
19991        { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
19992$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
19993        XGETTEXT=":"
19994      fi
19995    fi
19996
19997    # We need to process the po/ directory.
19998    POSUB=po
19999
20000    ac_config_commands="$ac_config_commands default-1"
20001
20002
20003                for lang in $ALL_LINGUAS; do
20004      GMOFILES="$GMOFILES $lang.gmo"
20005      POFILES="$POFILES $lang.po"
20006    done
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020   if test "$gt_cv_have_gettext" = "yes"; then
20021     if test "x$ALL_LINGUAS" = "x"; then
20022       LINGUAS=
20023     else
20024       { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
20025$as_echo_n "checking for catalogs to be installed... " >&6; }
20026       NEW_LINGUAS=
20027       for presentlang in $ALL_LINGUAS; do
20028         useit=no
20029         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
20030           desiredlanguages="$LINGUAS"
20031         else
20032           desiredlanguages="$ALL_LINGUAS"
20033         fi
20034         for desiredlang in $desiredlanguages; do
20035 	   # Use the presentlang catalog if desiredlang is
20036           #   a. equal to presentlang, or
20037           #   b. a variant of presentlang (because in this case,
20038           #      presentlang can be used as a fallback for messages
20039           #      which are not translated in the desiredlang catalog).
20040           case "$desiredlang" in
20041             "$presentlang"*) useit=yes;;
20042           esac
20043         done
20044         if test $useit = yes; then
20045           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
20046         fi
20047       done
20048       LINGUAS=$NEW_LINGUAS
20049       { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
20050$as_echo "$LINGUAS" >&6; }
20051     fi
20052
20053          if test -n "$LINGUAS"; then
20054       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
20055     fi
20056   fi
20057
20058            MKINSTALLDIRS=
20059   if test -n "$ac_aux_dir"; then
20060     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
20061   fi
20062   if test -z "$MKINSTALLDIRS"; then
20063     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20064   fi
20065
20066
20067         test -d po || mkdir po
20068   if test "x$srcdir" != "x."; then
20069     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
20070       posrcprefix="$srcdir/"
20071     else
20072       posrcprefix="../$srcdir/"
20073     fi
20074   else
20075     posrcprefix="../"
20076   fi
20077   rm -f po/POTFILES
20078   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
20079	< $srcdir/po/POTFILES.in > po/POTFILES
20080
20081glib_save_prefix="$prefix"
20082glib_save_exec_prefix="$exec_prefix"
20083glib_save_datarootdir="$datarootdir"
20084test "x$prefix" = xNONE && prefix=$ac_default_prefix
20085test "x$exec_prefix" = xNONE && exec_prefix=$prefix
20086datarootdir=`eval echo "${datarootdir}"`
20087if test "x$CATOBJEXT" = "x.mo" ; then
20088  localedir=`eval echo "${libdir}/locale"`
20089else
20090  localedir=`eval echo "${datadir}/locale"`
20091fi
20092prefix="$glib_save_prefix"
20093exec_prefix="$glib_save_exec_prefix"
20094datarootdir="$glib_save_datarootdir"
20095
20096cat >>confdefs.h <<_ACEOF
20097#define GTK_LOCALEDIR "$localedir"
20098_ACEOF
20099
20100
20101
20102GETTEXT_PACKAGE=scim_kmfl_imengine
20103
20104
20105cat >>confdefs.h <<_ACEOF
20106#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
20107_ACEOF
20108
20109
20110
20111ALL_LINGUAS=""
20112
20113
20114
20115      GETTEXT_MACRO_VERSION=0.17
20116
20117
20118
20119
20120# Prepare PATH_SEPARATOR.
20121# The user is always right.
20122if test "${PATH_SEPARATOR+set}" != set; then
20123  echo "#! /bin/sh" >conf$$.sh
20124  echo  "exit 0"   >>conf$$.sh
20125  chmod +x conf$$.sh
20126  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20127    PATH_SEPARATOR=';'
20128  else
20129    PATH_SEPARATOR=:
20130  fi
20131  rm -f conf$$.sh
20132fi
20133
20134# Find out how to test for executable files. Don't use a zero-byte file,
20135# as systems may use methods other than mode bits to determine executability.
20136cat >conf$$.file <<_ASEOF
20137#! /bin/sh
20138exit 0
20139_ASEOF
20140chmod +x conf$$.file
20141if test -x conf$$.file >/dev/null 2>&1; then
20142  ac_executable_p="test -x"
20143else
20144  ac_executable_p="test -f"
20145fi
20146rm -f conf$$.file
20147
20148# Extract the first word of "msgfmt", so it can be a program name with args.
20149set dummy msgfmt; ac_word=$2
20150{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20151$as_echo_n "checking for $ac_word... " >&6; }
20152if test "${ac_cv_path_MSGFMT+set}" = set; then
20153  $as_echo_n "(cached) " >&6
20154else
20155  case "$MSGFMT" in
20156  [\\/]* | ?:[\\/]*)
20157    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20158    ;;
20159  *)
20160    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20161    for ac_dir in $PATH; do
20162      IFS="$ac_save_IFS"
20163      test -z "$ac_dir" && ac_dir=.
20164      for ac_exec_ext in '' $ac_executable_extensions; do
20165        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20166          echo "$as_me: trying $ac_dir/$ac_word..." >&5
20167          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
20168     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20169            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20170            break 2
20171          fi
20172        fi
20173      done
20174    done
20175    IFS="$ac_save_IFS"
20176  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20177    ;;
20178esac
20179fi
20180MSGFMT="$ac_cv_path_MSGFMT"
20181if test "$MSGFMT" != ":"; then
20182  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
20183$as_echo "$MSGFMT" >&6; }
20184else
20185  { $as_echo "$as_me:$LINENO: result: no" >&5
20186$as_echo "no" >&6; }
20187fi
20188
20189  # Extract the first word of "gmsgfmt", so it can be a program name with args.
20190set dummy gmsgfmt; ac_word=$2
20191{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20192$as_echo_n "checking for $ac_word... " >&6; }
20193if test "${ac_cv_path_GMSGFMT+set}" = set; then
20194  $as_echo_n "(cached) " >&6
20195else
20196  case $GMSGFMT in
20197  [\\/]* | ?:[\\/]*)
20198  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20199  ;;
20200  *)
20201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20202for as_dir in $PATH
20203do
20204  IFS=$as_save_IFS
20205  test -z "$as_dir" && as_dir=.
20206  for ac_exec_ext in '' $ac_executable_extensions; do
20207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20208    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20209    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20210    break 2
20211  fi
20212done
20213done
20214IFS=$as_save_IFS
20215
20216  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20217  ;;
20218esac
20219fi
20220GMSGFMT=$ac_cv_path_GMSGFMT
20221if test -n "$GMSGFMT"; then
20222  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20223$as_echo "$GMSGFMT" >&6; }
20224else
20225  { $as_echo "$as_me:$LINENO: result: no" >&5
20226$as_echo "no" >&6; }
20227fi
20228
20229
20230
20231    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20232    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
20233    *) MSGFMT_015=$MSGFMT ;;
20234  esac
20235
20236  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20237    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
20238    *) GMSGFMT_015=$GMSGFMT ;;
20239  esac
20240
20241
20242
20243# Prepare PATH_SEPARATOR.
20244# The user is always right.
20245if test "${PATH_SEPARATOR+set}" != set; then
20246  echo "#! /bin/sh" >conf$$.sh
20247  echo  "exit 0"   >>conf$$.sh
20248  chmod +x conf$$.sh
20249  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20250    PATH_SEPARATOR=';'
20251  else
20252    PATH_SEPARATOR=:
20253  fi
20254  rm -f conf$$.sh
20255fi
20256
20257# Find out how to test for executable files. Don't use a zero-byte file,
20258# as systems may use methods other than mode bits to determine executability.
20259cat >conf$$.file <<_ASEOF
20260#! /bin/sh
20261exit 0
20262_ASEOF
20263chmod +x conf$$.file
20264if test -x conf$$.file >/dev/null 2>&1; then
20265  ac_executable_p="test -x"
20266else
20267  ac_executable_p="test -f"
20268fi
20269rm -f conf$$.file
20270
20271# Extract the first word of "xgettext", so it can be a program name with args.
20272set dummy xgettext; ac_word=$2
20273{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20274$as_echo_n "checking for $ac_word... " >&6; }
20275if test "${ac_cv_path_XGETTEXT+set}" = set; then
20276  $as_echo_n "(cached) " >&6
20277else
20278  case "$XGETTEXT" in
20279  [\\/]* | ?:[\\/]*)
20280    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20281    ;;
20282  *)
20283    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20284    for ac_dir in $PATH; do
20285      IFS="$ac_save_IFS"
20286      test -z "$ac_dir" && ac_dir=.
20287      for ac_exec_ext in '' $ac_executable_extensions; do
20288        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20289          echo "$as_me: trying $ac_dir/$ac_word..." >&5
20290          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
20291     (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
20292            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20293            break 2
20294          fi
20295        fi
20296      done
20297    done
20298    IFS="$ac_save_IFS"
20299  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20300    ;;
20301esac
20302fi
20303XGETTEXT="$ac_cv_path_XGETTEXT"
20304if test "$XGETTEXT" != ":"; then
20305  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20306$as_echo "$XGETTEXT" >&6; }
20307else
20308  { $as_echo "$as_me:$LINENO: result: no" >&5
20309$as_echo "no" >&6; }
20310fi
20311
20312    rm -f messages.po
20313
20314    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20315    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
20316    *) XGETTEXT_015=$XGETTEXT ;;
20317  esac
20318
20319
20320
20321# Prepare PATH_SEPARATOR.
20322# The user is always right.
20323if test "${PATH_SEPARATOR+set}" != set; then
20324  echo "#! /bin/sh" >conf$$.sh
20325  echo  "exit 0"   >>conf$$.sh
20326  chmod +x conf$$.sh
20327  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20328    PATH_SEPARATOR=';'
20329  else
20330    PATH_SEPARATOR=:
20331  fi
20332  rm -f conf$$.sh
20333fi
20334
20335# Find out how to test for executable files. Don't use a zero-byte file,
20336# as systems may use methods other than mode bits to determine executability.
20337cat >conf$$.file <<_ASEOF
20338#! /bin/sh
20339exit 0
20340_ASEOF
20341chmod +x conf$$.file
20342if test -x conf$$.file >/dev/null 2>&1; then
20343  ac_executable_p="test -x"
20344else
20345  ac_executable_p="test -f"
20346fi
20347rm -f conf$$.file
20348
20349# Extract the first word of "msgmerge", so it can be a program name with args.
20350set dummy msgmerge; ac_word=$2
20351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20352$as_echo_n "checking for $ac_word... " >&6; }
20353if test "${ac_cv_path_MSGMERGE+set}" = set; then
20354  $as_echo_n "(cached) " >&6
20355else
20356  case "$MSGMERGE" in
20357  [\\/]* | ?:[\\/]*)
20358    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20359    ;;
20360  *)
20361    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20362    for ac_dir in $PATH; do
20363      IFS="$ac_save_IFS"
20364      test -z "$ac_dir" && ac_dir=.
20365      for ac_exec_ext in '' $ac_executable_extensions; do
20366        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20367          echo "$as_me: trying $ac_dir/$ac_word..." >&5
20368          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20369            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20370            break 2
20371          fi
20372        fi
20373      done
20374    done
20375    IFS="$ac_save_IFS"
20376  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20377    ;;
20378esac
20379fi
20380MSGMERGE="$ac_cv_path_MSGMERGE"
20381if test "$MSGMERGE" != ":"; then
20382  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20383$as_echo "$MSGMERGE" >&6; }
20384else
20385  { $as_echo "$as_me:$LINENO: result: no" >&5
20386$as_echo "no" >&6; }
20387fi
20388
20389
20390        test -n "$localedir" || localedir='${datadir}/locale'
20391
20392
20393    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
20394
20395
20396  ac_config_commands="$ac_config_commands po-directories"
20397
20398
20399
20400    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
20401$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
20402if test "${ac_cv_gnu_library_2+set}" = set; then
20403  $as_echo_n "(cached) " >&6
20404else
20405  cat >conftest.$ac_ext <<_ACEOF
20406/* confdefs.h.  */
20407_ACEOF
20408cat confdefs.h >>conftest.$ac_ext
20409cat >>conftest.$ac_ext <<_ACEOF
20410/* end confdefs.h.  */
20411
20412#include <features.h>
20413#ifdef __GNU_LIBRARY__
20414 #if (__GLIBC__ >= 2)
20415  Lucky GNU user
20416 #endif
20417#endif
20418
20419_ACEOF
20420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20421  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20422  ac_cv_gnu_library_2=yes
20423else
20424  ac_cv_gnu_library_2=no
20425fi
20426rm -f conftest*
20427
20428
20429
20430fi
20431{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
20432$as_echo "$ac_cv_gnu_library_2" >&6; }
20433
20434    GLIBC2="$ac_cv_gnu_library_2"
20435
20436
20437if test -n "$ac_tool_prefix"; then
20438  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20439set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20441$as_echo_n "checking for $ac_word... " >&6; }
20442if test "${ac_cv_prog_RANLIB+set}" = set; then
20443  $as_echo_n "(cached) " >&6
20444else
20445  if test -n "$RANLIB"; then
20446  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20447else
20448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20449for as_dir in $PATH
20450do
20451  IFS=$as_save_IFS
20452  test -z "$as_dir" && as_dir=.
20453  for ac_exec_ext in '' $ac_executable_extensions; do
20454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20455    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20456    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20457    break 2
20458  fi
20459done
20460done
20461IFS=$as_save_IFS
20462
20463fi
20464fi
20465RANLIB=$ac_cv_prog_RANLIB
20466if test -n "$RANLIB"; then
20467  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
20468$as_echo "$RANLIB" >&6; }
20469else
20470  { $as_echo "$as_me:$LINENO: result: no" >&5
20471$as_echo "no" >&6; }
20472fi
20473
20474
20475fi
20476if test -z "$ac_cv_prog_RANLIB"; then
20477  ac_ct_RANLIB=$RANLIB
20478  # Extract the first word of "ranlib", so it can be a program name with args.
20479set dummy ranlib; ac_word=$2
20480{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20481$as_echo_n "checking for $ac_word... " >&6; }
20482if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20483  $as_echo_n "(cached) " >&6
20484else
20485  if test -n "$ac_ct_RANLIB"; then
20486  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20487else
20488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20489for as_dir in $PATH
20490do
20491  IFS=$as_save_IFS
20492  test -z "$as_dir" && as_dir=.
20493  for ac_exec_ext in '' $ac_executable_extensions; do
20494  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20495    ac_cv_prog_ac_ct_RANLIB="ranlib"
20496    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20497    break 2
20498  fi
20499done
20500done
20501IFS=$as_save_IFS
20502
20503fi
20504fi
20505ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20506if test -n "$ac_ct_RANLIB"; then
20507  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20508$as_echo "$ac_ct_RANLIB" >&6; }
20509else
20510  { $as_echo "$as_me:$LINENO: result: no" >&5
20511$as_echo "no" >&6; }
20512fi
20513
20514  if test "x$ac_ct_RANLIB" = x; then
20515    RANLIB=":"
20516  else
20517    case $cross_compiling:$ac_tool_warned in
20518yes:)
20519{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20521ac_tool_warned=yes ;;
20522esac
20523    RANLIB=$ac_ct_RANLIB
20524  fi
20525else
20526  RANLIB="$ac_cv_prog_RANLIB"
20527fi
20528
20529
20530
20531  CFLAG_VISIBILITY=
20532  HAVE_VISIBILITY=0
20533  if test -n "$GCC"; then
20534    { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
20535$as_echo_n "checking for simple visibility declarations... " >&6; }
20536    if test "${gl_cv_cc_visibility+set}" = set; then
20537  $as_echo_n "(cached) " >&6
20538else
20539
20540      gl_save_CFLAGS="$CFLAGS"
20541      CFLAGS="$CFLAGS -fvisibility=hidden"
20542      cat >conftest.$ac_ext <<_ACEOF
20543/* confdefs.h.  */
20544_ACEOF
20545cat confdefs.h >>conftest.$ac_ext
20546cat >>conftest.$ac_ext <<_ACEOF
20547/* end confdefs.h.  */
20548extern __attribute__((__visibility__("hidden"))) int hiddenvar;
20549         extern __attribute__((__visibility__("default"))) int exportedvar;
20550         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
20551         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
20552int
20553main ()
20554{
20555
20556  ;
20557  return 0;
20558}
20559_ACEOF
20560rm -f conftest.$ac_objext
20561if { (ac_try="$ac_compile"
20562case "(($ac_try" in
20563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564  *) ac_try_echo=$ac_try;;
20565esac
20566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20567$as_echo "$ac_try_echo") >&5
20568  (eval "$ac_compile") 2>conftest.er1
20569  ac_status=$?
20570  grep -v '^ *+' conftest.er1 >conftest.err
20571  rm -f conftest.er1
20572  cat conftest.err >&5
20573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574  (exit $ac_status); } && {
20575	 test -z "$ac_c_werror_flag" ||
20576	 test ! -s conftest.err
20577       } && test -s conftest.$ac_objext; then
20578  gl_cv_cc_visibility=yes
20579else
20580  $as_echo "$as_me: failed program was:" >&5
20581sed 's/^/| /' conftest.$ac_ext >&5
20582
20583	gl_cv_cc_visibility=no
20584fi
20585
20586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587      CFLAGS="$gl_save_CFLAGS"
20588fi
20589
20590    { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
20591$as_echo "$gl_cv_cc_visibility" >&6; }
20592    if test $gl_cv_cc_visibility = yes; then
20593      CFLAG_VISIBILITY="-fvisibility=hidden"
20594      HAVE_VISIBILITY=1
20595    fi
20596  fi
20597
20598
20599
20600cat >>confdefs.h <<_ACEOF
20601#define HAVE_VISIBILITY $HAVE_VISIBILITY
20602_ACEOF
20603
20604
20605{ $as_echo "$as_me:$LINENO: checking for inline" >&5
20606$as_echo_n "checking for inline... " >&6; }
20607if test "${ac_cv_c_inline+set}" = set; then
20608  $as_echo_n "(cached) " >&6
20609else
20610  ac_cv_c_inline=no
20611for ac_kw in inline __inline__ __inline; do
20612  cat >conftest.$ac_ext <<_ACEOF
20613/* confdefs.h.  */
20614_ACEOF
20615cat confdefs.h >>conftest.$ac_ext
20616cat >>conftest.$ac_ext <<_ACEOF
20617/* end confdefs.h.  */
20618#ifndef __cplusplus
20619typedef int foo_t;
20620static $ac_kw foo_t static_foo () {return 0; }
20621$ac_kw foo_t foo () {return 0; }
20622#endif
20623
20624_ACEOF
20625rm -f conftest.$ac_objext
20626if { (ac_try="$ac_compile"
20627case "(($ac_try" in
20628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629  *) ac_try_echo=$ac_try;;
20630esac
20631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20632$as_echo "$ac_try_echo") >&5
20633  (eval "$ac_compile") 2>conftest.er1
20634  ac_status=$?
20635  grep -v '^ *+' conftest.er1 >conftest.err
20636  rm -f conftest.er1
20637  cat conftest.err >&5
20638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639  (exit $ac_status); } && {
20640	 test -z "$ac_c_werror_flag" ||
20641	 test ! -s conftest.err
20642       } && test -s conftest.$ac_objext; then
20643  ac_cv_c_inline=$ac_kw
20644else
20645  $as_echo "$as_me: failed program was:" >&5
20646sed 's/^/| /' conftest.$ac_ext >&5
20647
20648
20649fi
20650
20651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20652  test "$ac_cv_c_inline" != no && break
20653done
20654
20655fi
20656{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20657$as_echo "$ac_cv_c_inline" >&6; }
20658
20659
20660case $ac_cv_c_inline in
20661  inline | yes) ;;
20662  *)
20663    case $ac_cv_c_inline in
20664      no) ac_val=;;
20665      *) ac_val=$ac_cv_c_inline;;
20666    esac
20667    cat >>confdefs.h <<_ACEOF
20668#ifndef __cplusplus
20669#define inline $ac_val
20670#endif
20671_ACEOF
20672    ;;
20673esac
20674
20675{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
20676$as_echo_n "checking for size_t... " >&6; }
20677if test "${ac_cv_type_size_t+set}" = set; then
20678  $as_echo_n "(cached) " >&6
20679else
20680  ac_cv_type_size_t=no
20681cat >conftest.$ac_ext <<_ACEOF
20682/* confdefs.h.  */
20683_ACEOF
20684cat confdefs.h >>conftest.$ac_ext
20685cat >>conftest.$ac_ext <<_ACEOF
20686/* end confdefs.h.  */
20687$ac_includes_default
20688int
20689main ()
20690{
20691if (sizeof (size_t))
20692       return 0;
20693  ;
20694  return 0;
20695}
20696_ACEOF
20697rm -f conftest.$ac_objext
20698if { (ac_try="$ac_compile"
20699case "(($ac_try" in
20700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701  *) ac_try_echo=$ac_try;;
20702esac
20703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20704$as_echo "$ac_try_echo") >&5
20705  (eval "$ac_compile") 2>conftest.er1
20706  ac_status=$?
20707  grep -v '^ *+' conftest.er1 >conftest.err
20708  rm -f conftest.er1
20709  cat conftest.err >&5
20710  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711  (exit $ac_status); } && {
20712	 test -z "$ac_c_werror_flag" ||
20713	 test ! -s conftest.err
20714       } && test -s conftest.$ac_objext; then
20715  cat >conftest.$ac_ext <<_ACEOF
20716/* confdefs.h.  */
20717_ACEOF
20718cat confdefs.h >>conftest.$ac_ext
20719cat >>conftest.$ac_ext <<_ACEOF
20720/* end confdefs.h.  */
20721$ac_includes_default
20722int
20723main ()
20724{
20725if (sizeof ((size_t)))
20726	  return 0;
20727  ;
20728  return 0;
20729}
20730_ACEOF
20731rm -f conftest.$ac_objext
20732if { (ac_try="$ac_compile"
20733case "(($ac_try" in
20734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735  *) ac_try_echo=$ac_try;;
20736esac
20737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20738$as_echo "$ac_try_echo") >&5
20739  (eval "$ac_compile") 2>conftest.er1
20740  ac_status=$?
20741  grep -v '^ *+' conftest.er1 >conftest.err
20742  rm -f conftest.er1
20743  cat conftest.err >&5
20744  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745  (exit $ac_status); } && {
20746	 test -z "$ac_c_werror_flag" ||
20747	 test ! -s conftest.err
20748       } && test -s conftest.$ac_objext; then
20749  :
20750else
20751  $as_echo "$as_me: failed program was:" >&5
20752sed 's/^/| /' conftest.$ac_ext >&5
20753
20754	ac_cv_type_size_t=yes
20755fi
20756
20757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758else
20759  $as_echo "$as_me: failed program was:" >&5
20760sed 's/^/| /' conftest.$ac_ext >&5
20761
20762
20763fi
20764
20765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766fi
20767{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20768$as_echo "$ac_cv_type_size_t" >&6; }
20769if test "x$ac_cv_type_size_t" = x""yes; then
20770  :
20771else
20772
20773cat >>confdefs.h <<_ACEOF
20774#define size_t unsigned int
20775_ACEOF
20776
20777fi
20778
20779
20780  { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
20781$as_echo_n "checking for stdint.h... " >&6; }
20782if test "${gl_cv_header_stdint_h+set}" = set; then
20783  $as_echo_n "(cached) " >&6
20784else
20785  cat >conftest.$ac_ext <<_ACEOF
20786/* confdefs.h.  */
20787_ACEOF
20788cat confdefs.h >>conftest.$ac_ext
20789cat >>conftest.$ac_ext <<_ACEOF
20790/* end confdefs.h.  */
20791#include <sys/types.h>
20792#include <stdint.h>
20793int
20794main ()
20795{
20796uintmax_t i = (uintmax_t) -1; return !i;
20797  ;
20798  return 0;
20799}
20800_ACEOF
20801rm -f conftest.$ac_objext
20802if { (ac_try="$ac_compile"
20803case "(($ac_try" in
20804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805  *) ac_try_echo=$ac_try;;
20806esac
20807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20808$as_echo "$ac_try_echo") >&5
20809  (eval "$ac_compile") 2>conftest.er1
20810  ac_status=$?
20811  grep -v '^ *+' conftest.er1 >conftest.err
20812  rm -f conftest.er1
20813  cat conftest.err >&5
20814  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815  (exit $ac_status); } && {
20816	 test -z "$ac_c_werror_flag" ||
20817	 test ! -s conftest.err
20818       } && test -s conftest.$ac_objext; then
20819  gl_cv_header_stdint_h=yes
20820else
20821  $as_echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824	gl_cv_header_stdint_h=no
20825fi
20826
20827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20828fi
20829{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
20830$as_echo "$gl_cv_header_stdint_h" >&6; }
20831  if test $gl_cv_header_stdint_h = yes; then
20832
20833cat >>confdefs.h <<_ACEOF
20834#define HAVE_STDINT_H_WITH_UINTMAX 1
20835_ACEOF
20836
20837  fi
20838
20839# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20840# for constant arguments.  Useless!
20841{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
20842$as_echo_n "checking for working alloca.h... " >&6; }
20843if test "${ac_cv_working_alloca_h+set}" = set; then
20844  $as_echo_n "(cached) " >&6
20845else
20846  cat >conftest.$ac_ext <<_ACEOF
20847/* confdefs.h.  */
20848_ACEOF
20849cat confdefs.h >>conftest.$ac_ext
20850cat >>conftest.$ac_ext <<_ACEOF
20851/* end confdefs.h.  */
20852#include <alloca.h>
20853int
20854main ()
20855{
20856char *p = (char *) alloca (2 * sizeof (int));
20857			  if (p) return 0;
20858  ;
20859  return 0;
20860}
20861_ACEOF
20862rm -f conftest.$ac_objext conftest$ac_exeext
20863if { (ac_try="$ac_link"
20864case "(($ac_try" in
20865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866  *) ac_try_echo=$ac_try;;
20867esac
20868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20869$as_echo "$ac_try_echo") >&5
20870  (eval "$ac_link") 2>conftest.er1
20871  ac_status=$?
20872  grep -v '^ *+' conftest.er1 >conftest.err
20873  rm -f conftest.er1
20874  cat conftest.err >&5
20875  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876  (exit $ac_status); } && {
20877	 test -z "$ac_c_werror_flag" ||
20878	 test ! -s conftest.err
20879       } && test -s conftest$ac_exeext && {
20880	 test "$cross_compiling" = yes ||
20881	 $as_test_x conftest$ac_exeext
20882       }; then
20883  ac_cv_working_alloca_h=yes
20884else
20885  $as_echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
20888	ac_cv_working_alloca_h=no
20889fi
20890
20891rm -rf conftest.dSYM
20892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20893      conftest$ac_exeext conftest.$ac_ext
20894fi
20895{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20896$as_echo "$ac_cv_working_alloca_h" >&6; }
20897if test $ac_cv_working_alloca_h = yes; then
20898
20899cat >>confdefs.h <<\_ACEOF
20900#define HAVE_ALLOCA_H 1
20901_ACEOF
20902
20903fi
20904
20905{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
20906$as_echo_n "checking for alloca... " >&6; }
20907if test "${ac_cv_func_alloca_works+set}" = set; then
20908  $as_echo_n "(cached) " >&6
20909else
20910  cat >conftest.$ac_ext <<_ACEOF
20911/* confdefs.h.  */
20912_ACEOF
20913cat confdefs.h >>conftest.$ac_ext
20914cat >>conftest.$ac_ext <<_ACEOF
20915/* end confdefs.h.  */
20916#ifdef __GNUC__
20917# define alloca __builtin_alloca
20918#else
20919# ifdef _MSC_VER
20920#  include <malloc.h>
20921#  define alloca _alloca
20922# else
20923#  ifdef HAVE_ALLOCA_H
20924#   include <alloca.h>
20925#  else
20926#   ifdef _AIX
20927 #pragma alloca
20928#   else
20929#    ifndef alloca /* predefined by HP cc +Olibcalls */
20930char *alloca ();
20931#    endif
20932#   endif
20933#  endif
20934# endif
20935#endif
20936
20937int
20938main ()
20939{
20940char *p = (char *) alloca (1);
20941				    if (p) return 0;
20942  ;
20943  return 0;
20944}
20945_ACEOF
20946rm -f conftest.$ac_objext conftest$ac_exeext
20947if { (ac_try="$ac_link"
20948case "(($ac_try" in
20949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950  *) ac_try_echo=$ac_try;;
20951esac
20952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20953$as_echo "$ac_try_echo") >&5
20954  (eval "$ac_link") 2>conftest.er1
20955  ac_status=$?
20956  grep -v '^ *+' conftest.er1 >conftest.err
20957  rm -f conftest.er1
20958  cat conftest.err >&5
20959  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960  (exit $ac_status); } && {
20961	 test -z "$ac_c_werror_flag" ||
20962	 test ! -s conftest.err
20963       } && test -s conftest$ac_exeext && {
20964	 test "$cross_compiling" = yes ||
20965	 $as_test_x conftest$ac_exeext
20966       }; then
20967  ac_cv_func_alloca_works=yes
20968else
20969  $as_echo "$as_me: failed program was:" >&5
20970sed 's/^/| /' conftest.$ac_ext >&5
20971
20972	ac_cv_func_alloca_works=no
20973fi
20974
20975rm -rf conftest.dSYM
20976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20977      conftest$ac_exeext conftest.$ac_ext
20978fi
20979{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20980$as_echo "$ac_cv_func_alloca_works" >&6; }
20981
20982if test $ac_cv_func_alloca_works = yes; then
20983
20984cat >>confdefs.h <<\_ACEOF
20985#define HAVE_ALLOCA 1
20986_ACEOF
20987
20988else
20989  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20990# that cause trouble.  Some versions do not even contain alloca or
20991# contain a buggy version.  If you still want to use their alloca,
20992# use ar to extract alloca.o from them instead of compiling alloca.c.
20993
20994ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20995
20996cat >>confdefs.h <<\_ACEOF
20997#define C_ALLOCA 1
20998_ACEOF
20999
21000
21001{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21002$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21003if test "${ac_cv_os_cray+set}" = set; then
21004  $as_echo_n "(cached) " >&6
21005else
21006  cat >conftest.$ac_ext <<_ACEOF
21007/* confdefs.h.  */
21008_ACEOF
21009cat confdefs.h >>conftest.$ac_ext
21010cat >>conftest.$ac_ext <<_ACEOF
21011/* end confdefs.h.  */
21012#if defined CRAY && ! defined CRAY2
21013webecray
21014#else
21015wenotbecray
21016#endif
21017
21018_ACEOF
21019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21020  $EGREP "webecray" >/dev/null 2>&1; then
21021  ac_cv_os_cray=yes
21022else
21023  ac_cv_os_cray=no
21024fi
21025rm -f conftest*
21026
21027fi
21028{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21029$as_echo "$ac_cv_os_cray" >&6; }
21030if test $ac_cv_os_cray = yes; then
21031  for ac_func in _getb67 GETB67 getb67; do
21032    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21033{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21034$as_echo_n "checking for $ac_func... " >&6; }
21035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21036  $as_echo_n "(cached) " >&6
21037else
21038  cat >conftest.$ac_ext <<_ACEOF
21039/* confdefs.h.  */
21040_ACEOF
21041cat confdefs.h >>conftest.$ac_ext
21042cat >>conftest.$ac_ext <<_ACEOF
21043/* end confdefs.h.  */
21044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21045   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21046#define $ac_func innocuous_$ac_func
21047
21048/* System header to define __stub macros and hopefully few prototypes,
21049    which can conflict with char $ac_func (); below.
21050    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21051    <limits.h> exists even on freestanding compilers.  */
21052
21053#ifdef __STDC__
21054# include <limits.h>
21055#else
21056# include <assert.h>
21057#endif
21058
21059#undef $ac_func
21060
21061/* Override any GCC internal prototype to avoid an error.
21062   Use char because int might match the return type of a GCC
21063   builtin and then its argument prototype would still apply.  */
21064#ifdef __cplusplus
21065extern "C"
21066#endif
21067char $ac_func ();
21068/* The GNU C library defines this for functions which it implements
21069    to always fail with ENOSYS.  Some functions are actually named
21070    something starting with __ and the normal name is an alias.  */
21071#if defined __stub_$ac_func || defined __stub___$ac_func
21072choke me
21073#endif
21074
21075int
21076main ()
21077{
21078return $ac_func ();
21079  ;
21080  return 0;
21081}
21082_ACEOF
21083rm -f conftest.$ac_objext conftest$ac_exeext
21084if { (ac_try="$ac_link"
21085case "(($ac_try" in
21086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087  *) ac_try_echo=$ac_try;;
21088esac
21089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21090$as_echo "$ac_try_echo") >&5
21091  (eval "$ac_link") 2>conftest.er1
21092  ac_status=$?
21093  grep -v '^ *+' conftest.er1 >conftest.err
21094  rm -f conftest.er1
21095  cat conftest.err >&5
21096  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097  (exit $ac_status); } && {
21098	 test -z "$ac_c_werror_flag" ||
21099	 test ! -s conftest.err
21100       } && test -s conftest$ac_exeext && {
21101	 test "$cross_compiling" = yes ||
21102	 $as_test_x conftest$ac_exeext
21103       }; then
21104  eval "$as_ac_var=yes"
21105else
21106  $as_echo "$as_me: failed program was:" >&5
21107sed 's/^/| /' conftest.$ac_ext >&5
21108
21109	eval "$as_ac_var=no"
21110fi
21111
21112rm -rf conftest.dSYM
21113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21114      conftest$ac_exeext conftest.$ac_ext
21115fi
21116ac_res=`eval 'as_val=${'$as_ac_var'}
21117		 $as_echo "$as_val"'`
21118	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21119$as_echo "$ac_res" >&6; }
21120as_val=`eval 'as_val=${'$as_ac_var'}
21121		 $as_echo "$as_val"'`
21122   if test "x$as_val" = x""yes; then
21123
21124cat >>confdefs.h <<_ACEOF
21125#define CRAY_STACKSEG_END $ac_func
21126_ACEOF
21127
21128    break
21129fi
21130
21131  done
21132fi
21133
21134{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21135$as_echo_n "checking stack direction for C alloca... " >&6; }
21136if test "${ac_cv_c_stack_direction+set}" = set; then
21137  $as_echo_n "(cached) " >&6
21138else
21139  if test "$cross_compiling" = yes; then
21140  ac_cv_c_stack_direction=0
21141else
21142  cat >conftest.$ac_ext <<_ACEOF
21143/* confdefs.h.  */
21144_ACEOF
21145cat confdefs.h >>conftest.$ac_ext
21146cat >>conftest.$ac_ext <<_ACEOF
21147/* end confdefs.h.  */
21148$ac_includes_default
21149int
21150find_stack_direction ()
21151{
21152  static char *addr = 0;
21153  auto char dummy;
21154  if (addr == 0)
21155    {
21156      addr = &dummy;
21157      return find_stack_direction ();
21158    }
21159  else
21160    return (&dummy > addr) ? 1 : -1;
21161}
21162
21163int
21164main ()
21165{
21166  return find_stack_direction () < 0;
21167}
21168_ACEOF
21169rm -f conftest$ac_exeext
21170if { (ac_try="$ac_link"
21171case "(($ac_try" in
21172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173  *) ac_try_echo=$ac_try;;
21174esac
21175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21176$as_echo "$ac_try_echo") >&5
21177  (eval "$ac_link") 2>&5
21178  ac_status=$?
21179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21181  { (case "(($ac_try" in
21182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183  *) ac_try_echo=$ac_try;;
21184esac
21185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21186$as_echo "$ac_try_echo") >&5
21187  (eval "$ac_try") 2>&5
21188  ac_status=$?
21189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190  (exit $ac_status); }; }; then
21191  ac_cv_c_stack_direction=1
21192else
21193  $as_echo "$as_me: program exited with status $ac_status" >&5
21194$as_echo "$as_me: failed program was:" >&5
21195sed 's/^/| /' conftest.$ac_ext >&5
21196
21197( exit $ac_status )
21198ac_cv_c_stack_direction=-1
21199fi
21200rm -rf conftest.dSYM
21201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21202fi
21203
21204
21205fi
21206{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21207$as_echo "$ac_cv_c_stack_direction" >&6; }
21208
21209cat >>confdefs.h <<_ACEOF
21210#define STACK_DIRECTION $ac_cv_c_stack_direction
21211_ACEOF
21212
21213
21214fi
21215
21216
21217
21218for ac_header in stdlib.h unistd.h
21219do
21220as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21222  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21223$as_echo_n "checking for $ac_header... " >&6; }
21224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21225  $as_echo_n "(cached) " >&6
21226fi
21227ac_res=`eval 'as_val=${'$as_ac_Header'}
21228		 $as_echo "$as_val"'`
21229	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21230$as_echo "$ac_res" >&6; }
21231else
21232  # Is the header compilable?
21233{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21234$as_echo_n "checking $ac_header usability... " >&6; }
21235cat >conftest.$ac_ext <<_ACEOF
21236/* confdefs.h.  */
21237_ACEOF
21238cat confdefs.h >>conftest.$ac_ext
21239cat >>conftest.$ac_ext <<_ACEOF
21240/* end confdefs.h.  */
21241$ac_includes_default
21242#include <$ac_header>
21243_ACEOF
21244rm -f conftest.$ac_objext
21245if { (ac_try="$ac_compile"
21246case "(($ac_try" in
21247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248  *) ac_try_echo=$ac_try;;
21249esac
21250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21251$as_echo "$ac_try_echo") >&5
21252  (eval "$ac_compile") 2>conftest.er1
21253  ac_status=$?
21254  grep -v '^ *+' conftest.er1 >conftest.err
21255  rm -f conftest.er1
21256  cat conftest.err >&5
21257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258  (exit $ac_status); } && {
21259	 test -z "$ac_c_werror_flag" ||
21260	 test ! -s conftest.err
21261       } && test -s conftest.$ac_objext; then
21262  ac_header_compiler=yes
21263else
21264  $as_echo "$as_me: failed program was:" >&5
21265sed 's/^/| /' conftest.$ac_ext >&5
21266
21267	ac_header_compiler=no
21268fi
21269
21270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21271{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21272$as_echo "$ac_header_compiler" >&6; }
21273
21274# Is the header present?
21275{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21276$as_echo_n "checking $ac_header presence... " >&6; }
21277cat >conftest.$ac_ext <<_ACEOF
21278/* confdefs.h.  */
21279_ACEOF
21280cat confdefs.h >>conftest.$ac_ext
21281cat >>conftest.$ac_ext <<_ACEOF
21282/* end confdefs.h.  */
21283#include <$ac_header>
21284_ACEOF
21285if { (ac_try="$ac_cpp conftest.$ac_ext"
21286case "(($ac_try" in
21287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288  *) ac_try_echo=$ac_try;;
21289esac
21290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21291$as_echo "$ac_try_echo") >&5
21292  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21293  ac_status=$?
21294  grep -v '^ *+' conftest.er1 >conftest.err
21295  rm -f conftest.er1
21296  cat conftest.err >&5
21297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298  (exit $ac_status); } >/dev/null && {
21299	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21300	 test ! -s conftest.err
21301       }; then
21302  ac_header_preproc=yes
21303else
21304  $as_echo "$as_me: failed program was:" >&5
21305sed 's/^/| /' conftest.$ac_ext >&5
21306
21307  ac_header_preproc=no
21308fi
21309
21310rm -f conftest.err conftest.$ac_ext
21311{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21312$as_echo "$ac_header_preproc" >&6; }
21313
21314# So?  What about this header?
21315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21316  yes:no: )
21317    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21318$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21319    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21320$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21321    ac_header_preproc=yes
21322    ;;
21323  no:yes:* )
21324    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21325$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21326    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21327$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21328    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21329$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21330    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21331$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21332    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21333$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21334    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21335$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21336
21337    ;;
21338esac
21339{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21340$as_echo_n "checking for $ac_header... " >&6; }
21341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21342  $as_echo_n "(cached) " >&6
21343else
21344  eval "$as_ac_Header=\$ac_header_preproc"
21345fi
21346ac_res=`eval 'as_val=${'$as_ac_Header'}
21347		 $as_echo "$as_val"'`
21348	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21349$as_echo "$ac_res" >&6; }
21350
21351fi
21352as_val=`eval 'as_val=${'$as_ac_Header'}
21353		 $as_echo "$as_val"'`
21354   if test "x$as_val" = x""yes; then
21355  cat >>confdefs.h <<_ACEOF
21356#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21357_ACEOF
21358
21359fi
21360
21361done
21362
21363
21364for ac_func in getpagesize
21365do
21366as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21367{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21368$as_echo_n "checking for $ac_func... " >&6; }
21369if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21370  $as_echo_n "(cached) " >&6
21371else
21372  cat >conftest.$ac_ext <<_ACEOF
21373/* confdefs.h.  */
21374_ACEOF
21375cat confdefs.h >>conftest.$ac_ext
21376cat >>conftest.$ac_ext <<_ACEOF
21377/* end confdefs.h.  */
21378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21379   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21380#define $ac_func innocuous_$ac_func
21381
21382/* System header to define __stub macros and hopefully few prototypes,
21383    which can conflict with char $ac_func (); below.
21384    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21385    <limits.h> exists even on freestanding compilers.  */
21386
21387#ifdef __STDC__
21388# include <limits.h>
21389#else
21390# include <assert.h>
21391#endif
21392
21393#undef $ac_func
21394
21395/* Override any GCC internal prototype to avoid an error.
21396   Use char because int might match the return type of a GCC
21397   builtin and then its argument prototype would still apply.  */
21398#ifdef __cplusplus
21399extern "C"
21400#endif
21401char $ac_func ();
21402/* The GNU C library defines this for functions which it implements
21403    to always fail with ENOSYS.  Some functions are actually named
21404    something starting with __ and the normal name is an alias.  */
21405#if defined __stub_$ac_func || defined __stub___$ac_func
21406choke me
21407#endif
21408
21409int
21410main ()
21411{
21412return $ac_func ();
21413  ;
21414  return 0;
21415}
21416_ACEOF
21417rm -f conftest.$ac_objext conftest$ac_exeext
21418if { (ac_try="$ac_link"
21419case "(($ac_try" in
21420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421  *) ac_try_echo=$ac_try;;
21422esac
21423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21424$as_echo "$ac_try_echo") >&5
21425  (eval "$ac_link") 2>conftest.er1
21426  ac_status=$?
21427  grep -v '^ *+' conftest.er1 >conftest.err
21428  rm -f conftest.er1
21429  cat conftest.err >&5
21430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431  (exit $ac_status); } && {
21432	 test -z "$ac_c_werror_flag" ||
21433	 test ! -s conftest.err
21434       } && test -s conftest$ac_exeext && {
21435	 test "$cross_compiling" = yes ||
21436	 $as_test_x conftest$ac_exeext
21437       }; then
21438  eval "$as_ac_var=yes"
21439else
21440  $as_echo "$as_me: failed program was:" >&5
21441sed 's/^/| /' conftest.$ac_ext >&5
21442
21443	eval "$as_ac_var=no"
21444fi
21445
21446rm -rf conftest.dSYM
21447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21448      conftest$ac_exeext conftest.$ac_ext
21449fi
21450ac_res=`eval 'as_val=${'$as_ac_var'}
21451		 $as_echo "$as_val"'`
21452	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21453$as_echo "$ac_res" >&6; }
21454as_val=`eval 'as_val=${'$as_ac_var'}
21455		 $as_echo "$as_val"'`
21456   if test "x$as_val" = x""yes; then
21457  cat >>confdefs.h <<_ACEOF
21458#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21459_ACEOF
21460
21461fi
21462done
21463
21464{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
21465$as_echo_n "checking for working mmap... " >&6; }
21466if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21467  $as_echo_n "(cached) " >&6
21468else
21469  if test "$cross_compiling" = yes; then
21470  ac_cv_func_mmap_fixed_mapped=no
21471else
21472  cat >conftest.$ac_ext <<_ACEOF
21473/* confdefs.h.  */
21474_ACEOF
21475cat confdefs.h >>conftest.$ac_ext
21476cat >>conftest.$ac_ext <<_ACEOF
21477/* end confdefs.h.  */
21478$ac_includes_default
21479/* malloc might have been renamed as rpl_malloc. */
21480#undef malloc
21481
21482/* Thanks to Mike Haertel and Jim Avera for this test.
21483   Here is a matrix of mmap possibilities:
21484	mmap private not fixed
21485	mmap private fixed at somewhere currently unmapped
21486	mmap private fixed at somewhere already mapped
21487	mmap shared not fixed
21488	mmap shared fixed at somewhere currently unmapped
21489	mmap shared fixed at somewhere already mapped
21490   For private mappings, we should verify that changes cannot be read()
21491   back from the file, nor mmap's back from the file at a different
21492   address.  (There have been systems where private was not correctly
21493   implemented like the infamous i386 svr4.0, and systems where the
21494   VM page cache was not coherent with the file system buffer cache
21495   like early versions of FreeBSD and possibly contemporary NetBSD.)
21496   For shared mappings, we should conversely verify that changes get
21497   propagated back to all the places they're supposed to be.
21498
21499   Grep wants private fixed already mapped.
21500   The main things grep needs to know about mmap are:
21501   * does it exist and is it safe to write into the mmap'd area
21502   * how to use it (BSD variants)  */
21503
21504#include <fcntl.h>
21505#include <sys/mman.h>
21506
21507#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21508char *malloc ();
21509#endif
21510
21511/* This mess was copied from the GNU getpagesize.h.  */
21512#ifndef HAVE_GETPAGESIZE
21513/* Assume that all systems that can run configure have sys/param.h.  */
21514# ifndef HAVE_SYS_PARAM_H
21515#  define HAVE_SYS_PARAM_H 1
21516# endif
21517
21518# ifdef _SC_PAGESIZE
21519#  define getpagesize() sysconf(_SC_PAGESIZE)
21520# else /* no _SC_PAGESIZE */
21521#  ifdef HAVE_SYS_PARAM_H
21522#   include <sys/param.h>
21523#   ifdef EXEC_PAGESIZE
21524#    define getpagesize() EXEC_PAGESIZE
21525#   else /* no EXEC_PAGESIZE */
21526#    ifdef NBPG
21527#     define getpagesize() NBPG * CLSIZE
21528#     ifndef CLSIZE
21529#      define CLSIZE 1
21530#     endif /* no CLSIZE */
21531#    else /* no NBPG */
21532#     ifdef NBPC
21533#      define getpagesize() NBPC
21534#     else /* no NBPC */
21535#      ifdef PAGESIZE
21536#       define getpagesize() PAGESIZE
21537#      endif /* PAGESIZE */
21538#     endif /* no NBPC */
21539#    endif /* no NBPG */
21540#   endif /* no EXEC_PAGESIZE */
21541#  else /* no HAVE_SYS_PARAM_H */
21542#   define getpagesize() 8192	/* punt totally */
21543#  endif /* no HAVE_SYS_PARAM_H */
21544# endif /* no _SC_PAGESIZE */
21545
21546#endif /* no HAVE_GETPAGESIZE */
21547
21548int
21549main ()
21550{
21551  char *data, *data2, *data3;
21552  int i, pagesize;
21553  int fd;
21554
21555  pagesize = getpagesize ();
21556
21557  /* First, make a file with some known garbage in it. */
21558  data = (char *) malloc (pagesize);
21559  if (!data)
21560    return 1;
21561  for (i = 0; i < pagesize; ++i)
21562    *(data + i) = rand ();
21563  umask (0);
21564  fd = creat ("conftest.mmap", 0600);
21565  if (fd < 0)
21566    return 1;
21567  if (write (fd, data, pagesize) != pagesize)
21568    return 1;
21569  close (fd);
21570
21571  /* Next, try to mmap the file at a fixed address which already has
21572     something else allocated at it.  If we can, also make sure that
21573     we see the same garbage.  */
21574  fd = open ("conftest.mmap", O_RDWR);
21575  if (fd < 0)
21576    return 1;
21577  data2 = (char *) malloc (2 * pagesize);
21578  if (!data2)
21579    return 1;
21580  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21581  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21582		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
21583    return 1;
21584  for (i = 0; i < pagesize; ++i)
21585    if (*(data + i) != *(data2 + i))
21586      return 1;
21587
21588  /* Finally, make sure that changes to the mapped area do not
21589     percolate back to the file as seen by read().  (This is a bug on
21590     some variants of i386 svr4.0.)  */
21591  for (i = 0; i < pagesize; ++i)
21592    *(data2 + i) = *(data2 + i) + 1;
21593  data3 = (char *) malloc (pagesize);
21594  if (!data3)
21595    return 1;
21596  if (read (fd, data3, pagesize) != pagesize)
21597    return 1;
21598  for (i = 0; i < pagesize; ++i)
21599    if (*(data + i) != *(data3 + i))
21600      return 1;
21601  close (fd);
21602  return 0;
21603}
21604_ACEOF
21605rm -f conftest$ac_exeext
21606if { (ac_try="$ac_link"
21607case "(($ac_try" in
21608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609  *) ac_try_echo=$ac_try;;
21610esac
21611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21612$as_echo "$ac_try_echo") >&5
21613  (eval "$ac_link") 2>&5
21614  ac_status=$?
21615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21617  { (case "(($ac_try" in
21618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619  *) ac_try_echo=$ac_try;;
21620esac
21621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21622$as_echo "$ac_try_echo") >&5
21623  (eval "$ac_try") 2>&5
21624  ac_status=$?
21625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626  (exit $ac_status); }; }; then
21627  ac_cv_func_mmap_fixed_mapped=yes
21628else
21629  $as_echo "$as_me: program exited with status $ac_status" >&5
21630$as_echo "$as_me: failed program was:" >&5
21631sed 's/^/| /' conftest.$ac_ext >&5
21632
21633( exit $ac_status )
21634ac_cv_func_mmap_fixed_mapped=no
21635fi
21636rm -rf conftest.dSYM
21637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21638fi
21639
21640
21641fi
21642{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21643$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21644if test $ac_cv_func_mmap_fixed_mapped = yes; then
21645
21646cat >>confdefs.h <<\_ACEOF
21647#define HAVE_MMAP 1
21648_ACEOF
21649
21650fi
21651rm -f conftest.mmap
21652
21653
21654
21655  { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
21656$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
21657if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
21658  $as_echo_n "(cached) " >&6
21659else
21660
21661      gt_cv_int_divbyzero_sigfpe=
21662      case "$host_os" in
21663        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
21664          # On MacOS X 10.2 or newer, just assume the same as when cross-
21665          # compiling. If we were to perform the real test, 1 Crash Report
21666          # dialog window would pop up.
21667          case "$host_cpu" in
21668            i[34567]86 | x86_64)
21669              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
21670          esac
21671          ;;
21672      esac
21673      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
21674        if test "$cross_compiling" = yes; then
21675
21676            # Guess based on the CPU.
21677            case "$host_cpu" in
21678              alpha* | i[34567]86 | x86_64 | m68k | s390*)
21679                gt_cv_int_divbyzero_sigfpe="guessing yes";;
21680              *)
21681                gt_cv_int_divbyzero_sigfpe="guessing no";;
21682            esac
21683
21684else
21685  cat >conftest.$ac_ext <<_ACEOF
21686/* confdefs.h.  */
21687_ACEOF
21688cat confdefs.h >>conftest.$ac_ext
21689cat >>conftest.$ac_ext <<_ACEOF
21690/* end confdefs.h.  */
21691
21692#include <stdlib.h>
21693#include <signal.h>
21694
21695static void
21696sigfpe_handler (int sig)
21697{
21698  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
21699  exit (sig != SIGFPE);
21700}
21701
21702int x = 1;
21703int y = 0;
21704int z;
21705int nan;
21706
21707int main ()
21708{
21709  signal (SIGFPE, sigfpe_handler);
21710/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
21711#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
21712  signal (SIGTRAP, sigfpe_handler);
21713#endif
21714/* Linux/SPARC yields signal SIGILL.  */
21715#if defined (__sparc__) && defined (__linux__)
21716  signal (SIGILL, sigfpe_handler);
21717#endif
21718
21719  z = x / y;
21720  nan = y / y;
21721  exit (1);
21722}
21723
21724_ACEOF
21725rm -f conftest$ac_exeext
21726if { (ac_try="$ac_link"
21727case "(($ac_try" in
21728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729  *) ac_try_echo=$ac_try;;
21730esac
21731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21732$as_echo "$ac_try_echo") >&5
21733  (eval "$ac_link") 2>&5
21734  ac_status=$?
21735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21737  { (case "(($ac_try" in
21738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739  *) ac_try_echo=$ac_try;;
21740esac
21741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21742$as_echo "$ac_try_echo") >&5
21743  (eval "$ac_try") 2>&5
21744  ac_status=$?
21745  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746  (exit $ac_status); }; }; then
21747  gt_cv_int_divbyzero_sigfpe=yes
21748else
21749  $as_echo "$as_me: program exited with status $ac_status" >&5
21750$as_echo "$as_me: failed program was:" >&5
21751sed 's/^/| /' conftest.$ac_ext >&5
21752
21753( exit $ac_status )
21754gt_cv_int_divbyzero_sigfpe=no
21755fi
21756rm -rf conftest.dSYM
21757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21758fi
21759
21760
21761      fi
21762
21763fi
21764{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
21765$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
21766  case "$gt_cv_int_divbyzero_sigfpe" in
21767    *yes) value=1;;
21768    *) value=0;;
21769  esac
21770
21771cat >>confdefs.h <<_ACEOF
21772#define INTDIV0_RAISES_SIGFPE $value
21773_ACEOF
21774
21775
21776
21777  { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
21778$as_echo_n "checking for inttypes.h... " >&6; }
21779if test "${gl_cv_header_inttypes_h+set}" = set; then
21780  $as_echo_n "(cached) " >&6
21781else
21782  cat >conftest.$ac_ext <<_ACEOF
21783/* confdefs.h.  */
21784_ACEOF
21785cat confdefs.h >>conftest.$ac_ext
21786cat >>conftest.$ac_ext <<_ACEOF
21787/* end confdefs.h.  */
21788#include <sys/types.h>
21789#include <inttypes.h>
21790int
21791main ()
21792{
21793uintmax_t i = (uintmax_t) -1; return !i;
21794  ;
21795  return 0;
21796}
21797_ACEOF
21798rm -f conftest.$ac_objext
21799if { (ac_try="$ac_compile"
21800case "(($ac_try" in
21801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802  *) ac_try_echo=$ac_try;;
21803esac
21804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21805$as_echo "$ac_try_echo") >&5
21806  (eval "$ac_compile") 2>conftest.er1
21807  ac_status=$?
21808  grep -v '^ *+' conftest.er1 >conftest.err
21809  rm -f conftest.er1
21810  cat conftest.err >&5
21811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812  (exit $ac_status); } && {
21813	 test -z "$ac_c_werror_flag" ||
21814	 test ! -s conftest.err
21815       } && test -s conftest.$ac_objext; then
21816  gl_cv_header_inttypes_h=yes
21817else
21818  $as_echo "$as_me: failed program was:" >&5
21819sed 's/^/| /' conftest.$ac_ext >&5
21820
21821	gl_cv_header_inttypes_h=no
21822fi
21823
21824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825fi
21826{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
21827$as_echo "$gl_cv_header_inttypes_h" >&6; }
21828  if test $gl_cv_header_inttypes_h = yes; then
21829
21830cat >>confdefs.h <<_ACEOF
21831#define HAVE_INTTYPES_H_WITH_UINTMAX 1
21832_ACEOF
21833
21834  fi
21835
21836
21837  { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
21838$as_echo_n "checking for unsigned long long int... " >&6; }
21839if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
21840  $as_echo_n "(cached) " >&6
21841else
21842  cat >conftest.$ac_ext <<_ACEOF
21843
21844  /* confdefs.h.  */
21845_ACEOF
21846cat confdefs.h >>conftest.$ac_ext
21847cat >>conftest.$ac_ext <<_ACEOF
21848/* end confdefs.h.  */
21849/* Test preprocessor.  */
21850      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21851        error in preprocessor;
21852      #endif
21853      #if ! (18446744073709551615ULL <= -1ull)
21854        error in preprocessor;
21855      #endif
21856      /* Test literals.  */
21857      long long int ll = 9223372036854775807ll;
21858      long long int nll = -9223372036854775807LL;
21859      unsigned long long int ull = 18446744073709551615ULL;
21860      /* Test constant expressions.   */
21861      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21862		     ? 1 : -1)];
21863      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
21864		     ? 1 : -1)];
21865      int i = 63;
21866int
21867main ()
21868{
21869/* Test availability of runtime routines for shift and division.  */
21870      long long int llmax = 9223372036854775807ll;
21871      unsigned long long int ullmax = 18446744073709551615ull;
21872      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21873	      | (llmax / ll) | (llmax % ll)
21874	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
21875	      | (ullmax / ull) | (ullmax % ull));
21876  ;
21877  return 0;
21878}
21879
21880_ACEOF
21881rm -f conftest.$ac_objext conftest$ac_exeext
21882if { (ac_try="$ac_link"
21883case "(($ac_try" in
21884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885  *) ac_try_echo=$ac_try;;
21886esac
21887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21888$as_echo "$ac_try_echo") >&5
21889  (eval "$ac_link") 2>conftest.er1
21890  ac_status=$?
21891  grep -v '^ *+' conftest.er1 >conftest.err
21892  rm -f conftest.er1
21893  cat conftest.err >&5
21894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895  (exit $ac_status); } && {
21896	 test -z "$ac_c_werror_flag" ||
21897	 test ! -s conftest.err
21898       } && test -s conftest$ac_exeext && {
21899	 test "$cross_compiling" = yes ||
21900	 $as_test_x conftest$ac_exeext
21901       }; then
21902  ac_cv_type_unsigned_long_long_int=yes
21903else
21904  $as_echo "$as_me: failed program was:" >&5
21905sed 's/^/| /' conftest.$ac_ext >&5
21906
21907	ac_cv_type_unsigned_long_long_int=no
21908fi
21909
21910rm -rf conftest.dSYM
21911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21912      conftest$ac_exeext conftest.$ac_ext
21913fi
21914{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
21915$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
21916  if test $ac_cv_type_unsigned_long_long_int = yes; then
21917
21918cat >>confdefs.h <<\_ACEOF
21919#define HAVE_UNSIGNED_LONG_LONG_INT 1
21920_ACEOF
21921
21922  fi
21923
21924
21925
21926
21927  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
21928
21929    test $ac_cv_type_unsigned_long_long_int = yes \
21930      && ac_type='unsigned long long' \
21931      || ac_type='unsigned long'
21932
21933cat >>confdefs.h <<_ACEOF
21934#define uintmax_t $ac_type
21935_ACEOF
21936
21937  else
21938
21939cat >>confdefs.h <<\_ACEOF
21940#define HAVE_UINTMAX_T 1
21941_ACEOF
21942
21943  fi
21944
21945
21946
21947for ac_header in inttypes.h
21948do
21949as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21951  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21952$as_echo_n "checking for $ac_header... " >&6; }
21953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21954  $as_echo_n "(cached) " >&6
21955fi
21956ac_res=`eval 'as_val=${'$as_ac_Header'}
21957		 $as_echo "$as_val"'`
21958	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21959$as_echo "$ac_res" >&6; }
21960else
21961  # Is the header compilable?
21962{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21963$as_echo_n "checking $ac_header usability... " >&6; }
21964cat >conftest.$ac_ext <<_ACEOF
21965/* confdefs.h.  */
21966_ACEOF
21967cat confdefs.h >>conftest.$ac_ext
21968cat >>conftest.$ac_ext <<_ACEOF
21969/* end confdefs.h.  */
21970$ac_includes_default
21971#include <$ac_header>
21972_ACEOF
21973rm -f conftest.$ac_objext
21974if { (ac_try="$ac_compile"
21975case "(($ac_try" in
21976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977  *) ac_try_echo=$ac_try;;
21978esac
21979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21980$as_echo "$ac_try_echo") >&5
21981  (eval "$ac_compile") 2>conftest.er1
21982  ac_status=$?
21983  grep -v '^ *+' conftest.er1 >conftest.err
21984  rm -f conftest.er1
21985  cat conftest.err >&5
21986  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987  (exit $ac_status); } && {
21988	 test -z "$ac_c_werror_flag" ||
21989	 test ! -s conftest.err
21990       } && test -s conftest.$ac_objext; then
21991  ac_header_compiler=yes
21992else
21993  $as_echo "$as_me: failed program was:" >&5
21994sed 's/^/| /' conftest.$ac_ext >&5
21995
21996	ac_header_compiler=no
21997fi
21998
21999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22001$as_echo "$ac_header_compiler" >&6; }
22002
22003# Is the header present?
22004{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22005$as_echo_n "checking $ac_header presence... " >&6; }
22006cat >conftest.$ac_ext <<_ACEOF
22007/* confdefs.h.  */
22008_ACEOF
22009cat confdefs.h >>conftest.$ac_ext
22010cat >>conftest.$ac_ext <<_ACEOF
22011/* end confdefs.h.  */
22012#include <$ac_header>
22013_ACEOF
22014if { (ac_try="$ac_cpp conftest.$ac_ext"
22015case "(($ac_try" in
22016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017  *) ac_try_echo=$ac_try;;
22018esac
22019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22020$as_echo "$ac_try_echo") >&5
22021  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22022  ac_status=$?
22023  grep -v '^ *+' conftest.er1 >conftest.err
22024  rm -f conftest.er1
22025  cat conftest.err >&5
22026  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027  (exit $ac_status); } >/dev/null && {
22028	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22029	 test ! -s conftest.err
22030       }; then
22031  ac_header_preproc=yes
22032else
22033  $as_echo "$as_me: failed program was:" >&5
22034sed 's/^/| /' conftest.$ac_ext >&5
22035
22036  ac_header_preproc=no
22037fi
22038
22039rm -f conftest.err conftest.$ac_ext
22040{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22041$as_echo "$ac_header_preproc" >&6; }
22042
22043# So?  What about this header?
22044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22045  yes:no: )
22046    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22047$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22048    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22049$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22050    ac_header_preproc=yes
22051    ;;
22052  no:yes:* )
22053    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22054$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22055    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22056$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22057    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22058$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22059    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22060$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22061    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22062$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22063    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22064$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22065
22066    ;;
22067esac
22068{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22069$as_echo_n "checking for $ac_header... " >&6; }
22070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22071  $as_echo_n "(cached) " >&6
22072else
22073  eval "$as_ac_Header=\$ac_header_preproc"
22074fi
22075ac_res=`eval 'as_val=${'$as_ac_Header'}
22076		 $as_echo "$as_val"'`
22077	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22078$as_echo "$ac_res" >&6; }
22079
22080fi
22081as_val=`eval 'as_val=${'$as_ac_Header'}
22082		 $as_echo "$as_val"'`
22083   if test "x$as_val" = x""yes; then
22084  cat >>confdefs.h <<_ACEOF
22085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22086_ACEOF
22087
22088fi
22089
22090done
22091
22092  if test $ac_cv_header_inttypes_h = yes; then
22093    { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
22094$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
22095if test "${gt_cv_inttypes_pri_broken+set}" = set; then
22096  $as_echo_n "(cached) " >&6
22097else
22098
22099        cat >conftest.$ac_ext <<_ACEOF
22100/* confdefs.h.  */
22101_ACEOF
22102cat confdefs.h >>conftest.$ac_ext
22103cat >>conftest.$ac_ext <<_ACEOF
22104/* end confdefs.h.  */
22105#include <inttypes.h>
22106#ifdef PRId32
22107char *p = PRId32;
22108#endif
22109
22110int
22111main ()
22112{
22113
22114  ;
22115  return 0;
22116}
22117_ACEOF
22118rm -f conftest.$ac_objext
22119if { (ac_try="$ac_compile"
22120case "(($ac_try" in
22121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122  *) ac_try_echo=$ac_try;;
22123esac
22124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22125$as_echo "$ac_try_echo") >&5
22126  (eval "$ac_compile") 2>conftest.er1
22127  ac_status=$?
22128  grep -v '^ *+' conftest.er1 >conftest.err
22129  rm -f conftest.er1
22130  cat conftest.err >&5
22131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132  (exit $ac_status); } && {
22133	 test -z "$ac_c_werror_flag" ||
22134	 test ! -s conftest.err
22135       } && test -s conftest.$ac_objext; then
22136  gt_cv_inttypes_pri_broken=no
22137else
22138  $as_echo "$as_me: failed program was:" >&5
22139sed 's/^/| /' conftest.$ac_ext >&5
22140
22141	gt_cv_inttypes_pri_broken=yes
22142fi
22143
22144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22145
22146fi
22147{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
22148$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
22149  fi
22150  if test "$gt_cv_inttypes_pri_broken" = yes; then
22151
22152cat >>confdefs.h <<_ACEOF
22153#define PRI_MACROS_BROKEN 1
22154_ACEOF
22155
22156    PRI_MACROS_BROKEN=1
22157  else
22158    PRI_MACROS_BROKEN=0
22159  fi
22160
22161
22162
22163
22164
22165
22166    # Check whether --enable-threads was given.
22167if test "${enable_threads+set}" = set; then
22168  enableval=$enable_threads; gl_use_threads=$enableval
22169else
22170  case "$host_os" in
22171                            osf*) gl_use_threads=no ;;
22172       *)    gl_use_threads=yes ;;
22173     esac
22174
22175fi
22176
22177  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
22178    # For using <pthread.h>:
22179    case "$host_os" in
22180      osf*)
22181        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
22182        # groks <pthread.h>. cc also understands the flag -pthread, but
22183        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
22184        # 2. putting a flag into CPPFLAGS that has an effect on the linker
22185        # causes the AC_TRY_LINK test below to succeed unexpectedly,
22186        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
22187        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22188        ;;
22189    esac
22190    # Some systems optimize for single-threaded programs by default, and
22191    # need special flags to disable these optimizations. For example, the
22192    # definition of 'errno' in <errno.h>.
22193    case "$host_os" in
22194      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
22195      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
22196    esac
22197  fi
22198
22199
22200
22201
22202
22203      if test "X$prefix" = "XNONE"; then
22204    acl_final_prefix="$ac_default_prefix"
22205  else
22206    acl_final_prefix="$prefix"
22207  fi
22208  if test "X$exec_prefix" = "XNONE"; then
22209    acl_final_exec_prefix='${prefix}'
22210  else
22211    acl_final_exec_prefix="$exec_prefix"
22212  fi
22213  acl_save_prefix="$prefix"
22214  prefix="$acl_final_prefix"
22215  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22216  prefix="$acl_save_prefix"
22217
22218
22219# Check whether --with-gnu-ld was given.
22220if test "${with_gnu_ld+set}" = set; then
22221  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22222else
22223  with_gnu_ld=no
22224fi
22225
22226# Prepare PATH_SEPARATOR.
22227# The user is always right.
22228if test "${PATH_SEPARATOR+set}" != set; then
22229  echo "#! /bin/sh" >conf$$.sh
22230  echo  "exit 0"   >>conf$$.sh
22231  chmod +x conf$$.sh
22232  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22233    PATH_SEPARATOR=';'
22234  else
22235    PATH_SEPARATOR=:
22236  fi
22237  rm -f conf$$.sh
22238fi
22239ac_prog=ld
22240if test "$GCC" = yes; then
22241  # Check if gcc -print-prog-name=ld gives a path.
22242  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22243$as_echo_n "checking for ld used by GCC... " >&6; }
22244  case $host in
22245  *-*-mingw*)
22246    # gcc leaves a trailing carriage return which upsets mingw
22247    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22248  *)
22249    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22250  esac
22251  case $ac_prog in
22252    # Accept absolute paths.
22253    [\\/]* | [A-Za-z]:[\\/]*)
22254      re_direlt='/[^/][^/]*/\.\./'
22255      # Canonicalize the path of ld
22256      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22257      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22258	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22259      done
22260      test -z "$LD" && LD="$ac_prog"
22261      ;;
22262  "")
22263    # If it fails, then pretend we aren't using GCC.
22264    ac_prog=ld
22265    ;;
22266  *)
22267    # If it is relative, then search for the first ld in PATH.
22268    with_gnu_ld=unknown
22269    ;;
22270  esac
22271elif test "$with_gnu_ld" = yes; then
22272  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
22273$as_echo_n "checking for GNU ld... " >&6; }
22274else
22275  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22276$as_echo_n "checking for non-GNU ld... " >&6; }
22277fi
22278if test "${acl_cv_path_LD+set}" = set; then
22279  $as_echo_n "(cached) " >&6
22280else
22281  if test -z "$LD"; then
22282  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22283  for ac_dir in $PATH; do
22284    test -z "$ac_dir" && ac_dir=.
22285    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22286      acl_cv_path_LD="$ac_dir/$ac_prog"
22287      # Check to see if the program is GNU ld.  I'd rather use --version,
22288      # but apparently some GNU ld's only accept -v.
22289      # Break only if it was the GNU/non-GNU ld that we prefer.
22290      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22291      *GNU* | *'with BFD'*)
22292	test "$with_gnu_ld" != no && break ;;
22293      *)
22294	test "$with_gnu_ld" != yes && break ;;
22295      esac
22296    fi
22297  done
22298  IFS="$ac_save_ifs"
22299else
22300  acl_cv_path_LD="$LD" # Let the user override the test with a path.
22301fi
22302fi
22303
22304LD="$acl_cv_path_LD"
22305if test -n "$LD"; then
22306  { $as_echo "$as_me:$LINENO: result: $LD" >&5
22307$as_echo "$LD" >&6; }
22308else
22309  { $as_echo "$as_me:$LINENO: result: no" >&5
22310$as_echo "no" >&6; }
22311fi
22312test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22313$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22314   { (exit 1); exit 1; }; }
22315{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22316$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22317if test "${acl_cv_prog_gnu_ld+set}" = set; then
22318  $as_echo_n "(cached) " >&6
22319else
22320  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22321case `$LD -v 2>&1 </dev/null` in
22322*GNU* | *'with BFD'*)
22323  acl_cv_prog_gnu_ld=yes ;;
22324*)
22325  acl_cv_prog_gnu_ld=no ;;
22326esac
22327fi
22328{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22329$as_echo "$acl_cv_prog_gnu_ld" >&6; }
22330with_gnu_ld=$acl_cv_prog_gnu_ld
22331
22332
22333
22334
22335                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22336$as_echo_n "checking for shared library run path origin... " >&6; }
22337if test "${acl_cv_rpath+set}" = set; then
22338  $as_echo_n "(cached) " >&6
22339else
22340
22341    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22342    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22343    . ./conftest.sh
22344    rm -f ./conftest.sh
22345    acl_cv_rpath=done
22346
22347fi
22348{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22349$as_echo "$acl_cv_rpath" >&6; }
22350  wl="$acl_cv_wl"
22351  acl_libext="$acl_cv_libext"
22352  acl_shlibext="$acl_cv_shlibext"
22353  acl_libname_spec="$acl_cv_libname_spec"
22354  acl_library_names_spec="$acl_cv_library_names_spec"
22355  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22356  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22357  acl_hardcode_direct="$acl_cv_hardcode_direct"
22358  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
22359    # Check whether --enable-rpath was given.
22360if test "${enable_rpath+set}" = set; then
22361  enableval=$enable_rpath; :
22362else
22363  enable_rpath=yes
22364fi
22365
22366
22367
22368                  acl_libdirstem=lib
22369  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
22370  if test -n "$searchpath"; then
22371    acl_save_IFS="${IFS= 	}"; IFS=":"
22372    for searchdir in $searchpath; do
22373      if test -d "$searchdir"; then
22374        case "$searchdir" in
22375          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
22376          *) searchdir=`cd "$searchdir" && pwd`
22377             case "$searchdir" in
22378               */lib64 ) acl_libdirstem=lib64 ;;
22379             esac ;;
22380        esac
22381      fi
22382    done
22383    IFS="$acl_save_IFS"
22384  fi
22385
22386
22387
22388  gl_threads_api=none
22389  LIBTHREAD=
22390  LTLIBTHREAD=
22391  LIBMULTITHREAD=
22392  LTLIBMULTITHREAD=
22393  if test "$gl_use_threads" != no; then
22394        { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
22395$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
22396    gl_have_weak=no
22397    cat >conftest.$ac_ext <<_ACEOF
22398/* confdefs.h.  */
22399_ACEOF
22400cat confdefs.h >>conftest.$ac_ext
22401cat >>conftest.$ac_ext <<_ACEOF
22402/* end confdefs.h.  */
22403extern void xyzzy ();
22404#pragma weak xyzzy
22405int
22406main ()
22407{
22408xyzzy();
22409  ;
22410  return 0;
22411}
22412_ACEOF
22413rm -f conftest.$ac_objext conftest$ac_exeext
22414if { (ac_try="$ac_link"
22415case "(($ac_try" in
22416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417  *) ac_try_echo=$ac_try;;
22418esac
22419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22420$as_echo "$ac_try_echo") >&5
22421  (eval "$ac_link") 2>conftest.er1
22422  ac_status=$?
22423  grep -v '^ *+' conftest.er1 >conftest.err
22424  rm -f conftest.er1
22425  cat conftest.err >&5
22426  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427  (exit $ac_status); } && {
22428	 test -z "$ac_c_werror_flag" ||
22429	 test ! -s conftest.err
22430       } && test -s conftest$ac_exeext && {
22431	 test "$cross_compiling" = yes ||
22432	 $as_test_x conftest$ac_exeext
22433       }; then
22434  gl_have_weak=yes
22435else
22436  $as_echo "$as_me: failed program was:" >&5
22437sed 's/^/| /' conftest.$ac_ext >&5
22438
22439
22440fi
22441
22442rm -rf conftest.dSYM
22443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22444      conftest$ac_exeext conftest.$ac_ext
22445    { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
22446$as_echo "$gl_have_weak" >&6; }
22447    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
22448      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
22449      # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
22450      if test "${ac_cv_header_pthread_h+set}" = set; then
22451  { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22452$as_echo_n "checking for pthread.h... " >&6; }
22453if test "${ac_cv_header_pthread_h+set}" = set; then
22454  $as_echo_n "(cached) " >&6
22455fi
22456{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22457$as_echo "$ac_cv_header_pthread_h" >&6; }
22458else
22459  # Is the header compilable?
22460{ $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22461$as_echo_n "checking pthread.h usability... " >&6; }
22462cat >conftest.$ac_ext <<_ACEOF
22463/* confdefs.h.  */
22464_ACEOF
22465cat confdefs.h >>conftest.$ac_ext
22466cat >>conftest.$ac_ext <<_ACEOF
22467/* end confdefs.h.  */
22468$ac_includes_default
22469#include <pthread.h>
22470_ACEOF
22471rm -f conftest.$ac_objext
22472if { (ac_try="$ac_compile"
22473case "(($ac_try" in
22474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475  *) ac_try_echo=$ac_try;;
22476esac
22477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22478$as_echo "$ac_try_echo") >&5
22479  (eval "$ac_compile") 2>conftest.er1
22480  ac_status=$?
22481  grep -v '^ *+' conftest.er1 >conftest.err
22482  rm -f conftest.er1
22483  cat conftest.err >&5
22484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485  (exit $ac_status); } && {
22486	 test -z "$ac_c_werror_flag" ||
22487	 test ! -s conftest.err
22488       } && test -s conftest.$ac_objext; then
22489  ac_header_compiler=yes
22490else
22491  $as_echo "$as_me: failed program was:" >&5
22492sed 's/^/| /' conftest.$ac_ext >&5
22493
22494	ac_header_compiler=no
22495fi
22496
22497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22499$as_echo "$ac_header_compiler" >&6; }
22500
22501# Is the header present?
22502{ $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22503$as_echo_n "checking pthread.h presence... " >&6; }
22504cat >conftest.$ac_ext <<_ACEOF
22505/* confdefs.h.  */
22506_ACEOF
22507cat confdefs.h >>conftest.$ac_ext
22508cat >>conftest.$ac_ext <<_ACEOF
22509/* end confdefs.h.  */
22510#include <pthread.h>
22511_ACEOF
22512if { (ac_try="$ac_cpp conftest.$ac_ext"
22513case "(($ac_try" in
22514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515  *) ac_try_echo=$ac_try;;
22516esac
22517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22518$as_echo "$ac_try_echo") >&5
22519  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22520  ac_status=$?
22521  grep -v '^ *+' conftest.er1 >conftest.err
22522  rm -f conftest.er1
22523  cat conftest.err >&5
22524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525  (exit $ac_status); } >/dev/null && {
22526	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22527	 test ! -s conftest.err
22528       }; then
22529  ac_header_preproc=yes
22530else
22531  $as_echo "$as_me: failed program was:" >&5
22532sed 's/^/| /' conftest.$ac_ext >&5
22533
22534  ac_header_preproc=no
22535fi
22536
22537rm -f conftest.err conftest.$ac_ext
22538{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22539$as_echo "$ac_header_preproc" >&6; }
22540
22541# So?  What about this header?
22542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22543  yes:no: )
22544    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22545$as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22546    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22547$as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22548    ac_header_preproc=yes
22549    ;;
22550  no:yes:* )
22551    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22552$as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22553    { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
22554$as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
22555    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22556$as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22557    { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
22558$as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22559    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22560$as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22561    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22562$as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22563
22564    ;;
22565esac
22566{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22567$as_echo_n "checking for pthread.h... " >&6; }
22568if test "${ac_cv_header_pthread_h+set}" = set; then
22569  $as_echo_n "(cached) " >&6
22570else
22571  ac_cv_header_pthread_h=$ac_header_preproc
22572fi
22573{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22574$as_echo "$ac_cv_header_pthread_h" >&6; }
22575
22576fi
22577if test "x$ac_cv_header_pthread_h" = x""yes; then
22578  gl_have_pthread_h=yes
22579else
22580  gl_have_pthread_h=no
22581fi
22582
22583
22584      if test "$gl_have_pthread_h" = yes; then
22585        # Other possible tests:
22586        #   -lpthreads (FSU threads, PCthreads)
22587        #   -lgthreads
22588        gl_have_pthread=
22589        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
22590        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
22591        # the second one only in libpthread, and lock.c needs it.
22592        cat >conftest.$ac_ext <<_ACEOF
22593/* confdefs.h.  */
22594_ACEOF
22595cat confdefs.h >>conftest.$ac_ext
22596cat >>conftest.$ac_ext <<_ACEOF
22597/* end confdefs.h.  */
22598#include <pthread.h>
22599int
22600main ()
22601{
22602pthread_mutex_lock((pthread_mutex_t*)0);
22603           pthread_mutexattr_init((pthread_mutexattr_t*)0);
22604  ;
22605  return 0;
22606}
22607_ACEOF
22608rm -f conftest.$ac_objext conftest$ac_exeext
22609if { (ac_try="$ac_link"
22610case "(($ac_try" in
22611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612  *) ac_try_echo=$ac_try;;
22613esac
22614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22615$as_echo "$ac_try_echo") >&5
22616  (eval "$ac_link") 2>conftest.er1
22617  ac_status=$?
22618  grep -v '^ *+' conftest.er1 >conftest.err
22619  rm -f conftest.er1
22620  cat conftest.err >&5
22621  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622  (exit $ac_status); } && {
22623	 test -z "$ac_c_werror_flag" ||
22624	 test ! -s conftest.err
22625       } && test -s conftest$ac_exeext && {
22626	 test "$cross_compiling" = yes ||
22627	 $as_test_x conftest$ac_exeext
22628       }; then
22629  gl_have_pthread=yes
22630else
22631  $as_echo "$as_me: failed program was:" >&5
22632sed 's/^/| /' conftest.$ac_ext >&5
22633
22634
22635fi
22636
22637rm -rf conftest.dSYM
22638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22639      conftest$ac_exeext conftest.$ac_ext
22640        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
22641        # since it is defined as a macro on OSF/1.)
22642        if test -n "$gl_have_pthread"; then
22643          # The program links fine without libpthread. But it may actually
22644          # need to link with libpthread in order to create multiple threads.
22645          { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
22646$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
22647if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
22648  $as_echo_n "(cached) " >&6
22649else
22650  ac_check_lib_save_LIBS=$LIBS
22651LIBS="-lpthread  $LIBS"
22652cat >conftest.$ac_ext <<_ACEOF
22653/* confdefs.h.  */
22654_ACEOF
22655cat confdefs.h >>conftest.$ac_ext
22656cat >>conftest.$ac_ext <<_ACEOF
22657/* end confdefs.h.  */
22658
22659/* Override any GCC internal prototype to avoid an error.
22660   Use char because int might match the return type of a GCC
22661   builtin and then its argument prototype would still apply.  */
22662#ifdef __cplusplus
22663extern "C"
22664#endif
22665char pthread_kill ();
22666int
22667main ()
22668{
22669return pthread_kill ();
22670  ;
22671  return 0;
22672}
22673_ACEOF
22674rm -f conftest.$ac_objext conftest$ac_exeext
22675if { (ac_try="$ac_link"
22676case "(($ac_try" in
22677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678  *) ac_try_echo=$ac_try;;
22679esac
22680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22681$as_echo "$ac_try_echo") >&5
22682  (eval "$ac_link") 2>conftest.er1
22683  ac_status=$?
22684  grep -v '^ *+' conftest.er1 >conftest.err
22685  rm -f conftest.er1
22686  cat conftest.err >&5
22687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688  (exit $ac_status); } && {
22689	 test -z "$ac_c_werror_flag" ||
22690	 test ! -s conftest.err
22691       } && test -s conftest$ac_exeext && {
22692	 test "$cross_compiling" = yes ||
22693	 $as_test_x conftest$ac_exeext
22694       }; then
22695  ac_cv_lib_pthread_pthread_kill=yes
22696else
22697  $as_echo "$as_me: failed program was:" >&5
22698sed 's/^/| /' conftest.$ac_ext >&5
22699
22700	ac_cv_lib_pthread_pthread_kill=no
22701fi
22702
22703rm -rf conftest.dSYM
22704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22705      conftest$ac_exeext conftest.$ac_ext
22706LIBS=$ac_check_lib_save_LIBS
22707fi
22708{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
22709$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
22710if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
22711  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
22712             # On Solaris and HP-UX, most pthread functions exist also in libc.
22713             # Therefore pthread_in_use() needs to actually try to create a
22714             # thread: pthread_create from libc will fail, whereas
22715             # pthread_create will actually create a thread.
22716             case "$host_os" in
22717               solaris* | hpux*)
22718
22719cat >>confdefs.h <<\_ACEOF
22720#define PTHREAD_IN_USE_DETECTION_HARD 1
22721_ACEOF
22722
22723             esac
22724
22725fi
22726
22727        else
22728          # Some library is needed. Try libpthread and libc_r.
22729          { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
22730$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
22731if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
22732  $as_echo_n "(cached) " >&6
22733else
22734  ac_check_lib_save_LIBS=$LIBS
22735LIBS="-lpthread  $LIBS"
22736cat >conftest.$ac_ext <<_ACEOF
22737/* confdefs.h.  */
22738_ACEOF
22739cat confdefs.h >>conftest.$ac_ext
22740cat >>conftest.$ac_ext <<_ACEOF
22741/* end confdefs.h.  */
22742
22743/* Override any GCC internal prototype to avoid an error.
22744   Use char because int might match the return type of a GCC
22745   builtin and then its argument prototype would still apply.  */
22746#ifdef __cplusplus
22747extern "C"
22748#endif
22749char pthread_kill ();
22750int
22751main ()
22752{
22753return pthread_kill ();
22754  ;
22755  return 0;
22756}
22757_ACEOF
22758rm -f conftest.$ac_objext conftest$ac_exeext
22759if { (ac_try="$ac_link"
22760case "(($ac_try" in
22761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762  *) ac_try_echo=$ac_try;;
22763esac
22764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22765$as_echo "$ac_try_echo") >&5
22766  (eval "$ac_link") 2>conftest.er1
22767  ac_status=$?
22768  grep -v '^ *+' conftest.er1 >conftest.err
22769  rm -f conftest.er1
22770  cat conftest.err >&5
22771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772  (exit $ac_status); } && {
22773	 test -z "$ac_c_werror_flag" ||
22774	 test ! -s conftest.err
22775       } && test -s conftest$ac_exeext && {
22776	 test "$cross_compiling" = yes ||
22777	 $as_test_x conftest$ac_exeext
22778       }; then
22779  ac_cv_lib_pthread_pthread_kill=yes
22780else
22781  $as_echo "$as_me: failed program was:" >&5
22782sed 's/^/| /' conftest.$ac_ext >&5
22783
22784	ac_cv_lib_pthread_pthread_kill=no
22785fi
22786
22787rm -rf conftest.dSYM
22788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22789      conftest$ac_exeext conftest.$ac_ext
22790LIBS=$ac_check_lib_save_LIBS
22791fi
22792{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
22793$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
22794if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
22795  gl_have_pthread=yes
22796             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
22797             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
22798fi
22799
22800          if test -z "$gl_have_pthread"; then
22801            # For FreeBSD 4.
22802            { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
22803$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
22804if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
22805  $as_echo_n "(cached) " >&6
22806else
22807  ac_check_lib_save_LIBS=$LIBS
22808LIBS="-lc_r  $LIBS"
22809cat >conftest.$ac_ext <<_ACEOF
22810/* confdefs.h.  */
22811_ACEOF
22812cat confdefs.h >>conftest.$ac_ext
22813cat >>conftest.$ac_ext <<_ACEOF
22814/* end confdefs.h.  */
22815
22816/* Override any GCC internal prototype to avoid an error.
22817   Use char because int might match the return type of a GCC
22818   builtin and then its argument prototype would still apply.  */
22819#ifdef __cplusplus
22820extern "C"
22821#endif
22822char pthread_kill ();
22823int
22824main ()
22825{
22826return pthread_kill ();
22827  ;
22828  return 0;
22829}
22830_ACEOF
22831rm -f conftest.$ac_objext conftest$ac_exeext
22832if { (ac_try="$ac_link"
22833case "(($ac_try" in
22834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835  *) ac_try_echo=$ac_try;;
22836esac
22837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22838$as_echo "$ac_try_echo") >&5
22839  (eval "$ac_link") 2>conftest.er1
22840  ac_status=$?
22841  grep -v '^ *+' conftest.er1 >conftest.err
22842  rm -f conftest.er1
22843  cat conftest.err >&5
22844  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845  (exit $ac_status); } && {
22846	 test -z "$ac_c_werror_flag" ||
22847	 test ! -s conftest.err
22848       } && test -s conftest$ac_exeext && {
22849	 test "$cross_compiling" = yes ||
22850	 $as_test_x conftest$ac_exeext
22851       }; then
22852  ac_cv_lib_c_r_pthread_kill=yes
22853else
22854  $as_echo "$as_me: failed program was:" >&5
22855sed 's/^/| /' conftest.$ac_ext >&5
22856
22857	ac_cv_lib_c_r_pthread_kill=no
22858fi
22859
22860rm -rf conftest.dSYM
22861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22862      conftest$ac_exeext conftest.$ac_ext
22863LIBS=$ac_check_lib_save_LIBS
22864fi
22865{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
22866$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
22867if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
22868  gl_have_pthread=yes
22869               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
22870               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
22871fi
22872
22873          fi
22874        fi
22875        if test -n "$gl_have_pthread"; then
22876          gl_threads_api=posix
22877
22878cat >>confdefs.h <<\_ACEOF
22879#define USE_POSIX_THREADS 1
22880_ACEOF
22881
22882          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
22883            if test $gl_have_weak = yes; then
22884
22885cat >>confdefs.h <<\_ACEOF
22886#define USE_POSIX_THREADS_WEAK 1
22887_ACEOF
22888
22889              LIBTHREAD=
22890              LTLIBTHREAD=
22891            fi
22892          fi
22893          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
22894          # pthread_rwlock_* functions.
22895          { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
22896$as_echo_n "checking for pthread_rwlock_t... " >&6; }
22897if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
22898  $as_echo_n "(cached) " >&6
22899else
22900  ac_cv_type_pthread_rwlock_t=no
22901cat >conftest.$ac_ext <<_ACEOF
22902/* confdefs.h.  */
22903_ACEOF
22904cat confdefs.h >>conftest.$ac_ext
22905cat >>conftest.$ac_ext <<_ACEOF
22906/* end confdefs.h.  */
22907#include <pthread.h>
22908
22909int
22910main ()
22911{
22912if (sizeof (pthread_rwlock_t))
22913       return 0;
22914  ;
22915  return 0;
22916}
22917_ACEOF
22918rm -f conftest.$ac_objext
22919if { (ac_try="$ac_compile"
22920case "(($ac_try" in
22921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922  *) ac_try_echo=$ac_try;;
22923esac
22924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22925$as_echo "$ac_try_echo") >&5
22926  (eval "$ac_compile") 2>conftest.er1
22927  ac_status=$?
22928  grep -v '^ *+' conftest.er1 >conftest.err
22929  rm -f conftest.er1
22930  cat conftest.err >&5
22931  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932  (exit $ac_status); } && {
22933	 test -z "$ac_c_werror_flag" ||
22934	 test ! -s conftest.err
22935       } && test -s conftest.$ac_objext; then
22936  cat >conftest.$ac_ext <<_ACEOF
22937/* confdefs.h.  */
22938_ACEOF
22939cat confdefs.h >>conftest.$ac_ext
22940cat >>conftest.$ac_ext <<_ACEOF
22941/* end confdefs.h.  */
22942#include <pthread.h>
22943
22944int
22945main ()
22946{
22947if (sizeof ((pthread_rwlock_t)))
22948	  return 0;
22949  ;
22950  return 0;
22951}
22952_ACEOF
22953rm -f conftest.$ac_objext
22954if { (ac_try="$ac_compile"
22955case "(($ac_try" in
22956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957  *) ac_try_echo=$ac_try;;
22958esac
22959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22960$as_echo "$ac_try_echo") >&5
22961  (eval "$ac_compile") 2>conftest.er1
22962  ac_status=$?
22963  grep -v '^ *+' conftest.er1 >conftest.err
22964  rm -f conftest.er1
22965  cat conftest.err >&5
22966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967  (exit $ac_status); } && {
22968	 test -z "$ac_c_werror_flag" ||
22969	 test ! -s conftest.err
22970       } && test -s conftest.$ac_objext; then
22971  :
22972else
22973  $as_echo "$as_me: failed program was:" >&5
22974sed 's/^/| /' conftest.$ac_ext >&5
22975
22976	ac_cv_type_pthread_rwlock_t=yes
22977fi
22978
22979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980else
22981  $as_echo "$as_me: failed program was:" >&5
22982sed 's/^/| /' conftest.$ac_ext >&5
22983
22984
22985fi
22986
22987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988fi
22989{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
22990$as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
22991if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
22992
22993cat >>confdefs.h <<\_ACEOF
22994#define HAVE_PTHREAD_RWLOCK 1
22995_ACEOF
22996
22997fi
22998
22999          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
23000          cat >conftest.$ac_ext <<_ACEOF
23001/* confdefs.h.  */
23002_ACEOF
23003cat confdefs.h >>conftest.$ac_ext
23004cat >>conftest.$ac_ext <<_ACEOF
23005/* end confdefs.h.  */
23006#include <pthread.h>
23007int
23008main ()
23009{
23010#if __FreeBSD__ == 4
23011error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
23012#else
23013int x = (int)PTHREAD_MUTEX_RECURSIVE;
23014return !x;
23015#endif
23016  ;
23017  return 0;
23018}
23019_ACEOF
23020rm -f conftest.$ac_objext
23021if { (ac_try="$ac_compile"
23022case "(($ac_try" in
23023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024  *) ac_try_echo=$ac_try;;
23025esac
23026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23027$as_echo "$ac_try_echo") >&5
23028  (eval "$ac_compile") 2>conftest.er1
23029  ac_status=$?
23030  grep -v '^ *+' conftest.er1 >conftest.err
23031  rm -f conftest.er1
23032  cat conftest.err >&5
23033  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034  (exit $ac_status); } && {
23035	 test -z "$ac_c_werror_flag" ||
23036	 test ! -s conftest.err
23037       } && test -s conftest.$ac_objext; then
23038
23039cat >>confdefs.h <<\_ACEOF
23040#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
23041_ACEOF
23042
23043else
23044  $as_echo "$as_me: failed program was:" >&5
23045sed 's/^/| /' conftest.$ac_ext >&5
23046
23047
23048fi
23049
23050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23051        fi
23052      fi
23053    fi
23054    if test -z "$gl_have_pthread"; then
23055      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
23056        gl_have_solaristhread=
23057        gl_save_LIBS="$LIBS"
23058        LIBS="$LIBS -lthread"
23059        cat >conftest.$ac_ext <<_ACEOF
23060/* confdefs.h.  */
23061_ACEOF
23062cat confdefs.h >>conftest.$ac_ext
23063cat >>conftest.$ac_ext <<_ACEOF
23064/* end confdefs.h.  */
23065#include <thread.h>
23066#include <synch.h>
23067int
23068main ()
23069{
23070thr_self();
23071  ;
23072  return 0;
23073}
23074_ACEOF
23075rm -f conftest.$ac_objext conftest$ac_exeext
23076if { (ac_try="$ac_link"
23077case "(($ac_try" in
23078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079  *) ac_try_echo=$ac_try;;
23080esac
23081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23082$as_echo "$ac_try_echo") >&5
23083  (eval "$ac_link") 2>conftest.er1
23084  ac_status=$?
23085  grep -v '^ *+' conftest.er1 >conftest.err
23086  rm -f conftest.er1
23087  cat conftest.err >&5
23088  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089  (exit $ac_status); } && {
23090	 test -z "$ac_c_werror_flag" ||
23091	 test ! -s conftest.err
23092       } && test -s conftest$ac_exeext && {
23093	 test "$cross_compiling" = yes ||
23094	 $as_test_x conftest$ac_exeext
23095       }; then
23096  gl_have_solaristhread=yes
23097else
23098  $as_echo "$as_me: failed program was:" >&5
23099sed 's/^/| /' conftest.$ac_ext >&5
23100
23101
23102fi
23103
23104rm -rf conftest.dSYM
23105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23106      conftest$ac_exeext conftest.$ac_ext
23107        LIBS="$gl_save_LIBS"
23108        if test -n "$gl_have_solaristhread"; then
23109          gl_threads_api=solaris
23110          LIBTHREAD=-lthread
23111          LTLIBTHREAD=-lthread
23112          LIBMULTITHREAD="$LIBTHREAD"
23113          LTLIBMULTITHREAD="$LTLIBTHREAD"
23114
23115cat >>confdefs.h <<\_ACEOF
23116#define USE_SOLARIS_THREADS 1
23117_ACEOF
23118
23119          if test $gl_have_weak = yes; then
23120
23121cat >>confdefs.h <<\_ACEOF
23122#define USE_SOLARIS_THREADS_WEAK 1
23123_ACEOF
23124
23125            LIBTHREAD=
23126            LTLIBTHREAD=
23127          fi
23128        fi
23129      fi
23130    fi
23131    if test "$gl_use_threads" = pth; then
23132      gl_save_CPPFLAGS="$CPPFLAGS"
23133
23134
23135
23136
23137
23138  { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
23139$as_echo_n "checking how to link with libpth... " >&6; }
23140if test "${ac_cv_libpth_libs+set}" = set; then
23141  $as_echo_n "(cached) " >&6
23142else
23143
23144
23145
23146
23147
23148    use_additional=yes
23149
23150  acl_save_prefix="$prefix"
23151  prefix="$acl_final_prefix"
23152  acl_save_exec_prefix="$exec_prefix"
23153  exec_prefix="$acl_final_exec_prefix"
23154
23155    eval additional_includedir=\"$includedir\"
23156    eval additional_libdir=\"$libdir\"
23157
23158  exec_prefix="$acl_save_exec_prefix"
23159  prefix="$acl_save_prefix"
23160
23161
23162# Check whether --with-libpth-prefix was given.
23163if test "${with_libpth_prefix+set}" = set; then
23164  withval=$with_libpth_prefix;
23165    if test "X$withval" = "Xno"; then
23166      use_additional=no
23167    else
23168      if test "X$withval" = "X"; then
23169
23170  acl_save_prefix="$prefix"
23171  prefix="$acl_final_prefix"
23172  acl_save_exec_prefix="$exec_prefix"
23173  exec_prefix="$acl_final_exec_prefix"
23174
23175          eval additional_includedir=\"$includedir\"
23176          eval additional_libdir=\"$libdir\"
23177
23178  exec_prefix="$acl_save_exec_prefix"
23179  prefix="$acl_save_prefix"
23180
23181      else
23182        additional_includedir="$withval/include"
23183        additional_libdir="$withval/$acl_libdirstem"
23184      fi
23185    fi
23186
23187fi
23188
23189      LIBPTH=
23190  LTLIBPTH=
23191  INCPTH=
23192  LIBPTH_PREFIX=
23193  rpathdirs=
23194  ltrpathdirs=
23195  names_already_handled=
23196  names_next_round='pth '
23197  while test -n "$names_next_round"; do
23198    names_this_round="$names_next_round"
23199    names_next_round=
23200    for name in $names_this_round; do
23201      already_handled=
23202      for n in $names_already_handled; do
23203        if test "$n" = "$name"; then
23204          already_handled=yes
23205          break
23206        fi
23207      done
23208      if test -z "$already_handled"; then
23209        names_already_handled="$names_already_handled $name"
23210                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23211        eval value=\"\$HAVE_LIB$uppername\"
23212        if test -n "$value"; then
23213          if test "$value" = yes; then
23214            eval value=\"\$LIB$uppername\"
23215            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
23216            eval value=\"\$LTLIB$uppername\"
23217            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
23218          else
23219                                    :
23220          fi
23221        else
23222                              found_dir=
23223          found_la=
23224          found_so=
23225          found_a=
23226          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
23227          if test -n "$acl_shlibext"; then
23228            shrext=".$acl_shlibext"             # typically: shrext=.so
23229          else
23230            shrext=
23231          fi
23232          if test $use_additional = yes; then
23233            dir="$additional_libdir"
23234                                    if test -n "$acl_shlibext"; then
23235              if test -f "$dir/$libname$shrext"; then
23236                found_dir="$dir"
23237                found_so="$dir/$libname$shrext"
23238              else
23239                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23240                  ver=`(cd "$dir" && \
23241                        for f in "$libname$shrext".*; do echo "$f"; done \
23242                        | sed -e "s,^$libname$shrext\\\\.,," \
23243                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23244                        | sed 1q ) 2>/dev/null`
23245                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23246                    found_dir="$dir"
23247                    found_so="$dir/$libname$shrext.$ver"
23248                  fi
23249                else
23250                  eval library_names=\"$acl_library_names_spec\"
23251                  for f in $library_names; do
23252                    if test -f "$dir/$f"; then
23253                      found_dir="$dir"
23254                      found_so="$dir/$f"
23255                      break
23256                    fi
23257                  done
23258                fi
23259              fi
23260            fi
23261                        if test "X$found_dir" = "X"; then
23262              if test -f "$dir/$libname.$acl_libext"; then
23263                found_dir="$dir"
23264                found_a="$dir/$libname.$acl_libext"
23265              fi
23266            fi
23267            if test "X$found_dir" != "X"; then
23268              if test -f "$dir/$libname.la"; then
23269                found_la="$dir/$libname.la"
23270              fi
23271            fi
23272          fi
23273          if test "X$found_dir" = "X"; then
23274            for x in $LDFLAGS $LTLIBPTH; do
23275
23276  acl_save_prefix="$prefix"
23277  prefix="$acl_final_prefix"
23278  acl_save_exec_prefix="$exec_prefix"
23279  exec_prefix="$acl_final_exec_prefix"
23280  eval x=\"$x\"
23281  exec_prefix="$acl_save_exec_prefix"
23282  prefix="$acl_save_prefix"
23283
23284              case "$x" in
23285                -L*)
23286                  dir=`echo "X$x" | sed -e 's/^X-L//'`
23287                                    if test -n "$acl_shlibext"; then
23288                    if test -f "$dir/$libname$shrext"; then
23289                      found_dir="$dir"
23290                      found_so="$dir/$libname$shrext"
23291                    else
23292                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23293                        ver=`(cd "$dir" && \
23294                              for f in "$libname$shrext".*; do echo "$f"; done \
23295                              | sed -e "s,^$libname$shrext\\\\.,," \
23296                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23297                              | sed 1q ) 2>/dev/null`
23298                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23299                          found_dir="$dir"
23300                          found_so="$dir/$libname$shrext.$ver"
23301                        fi
23302                      else
23303                        eval library_names=\"$acl_library_names_spec\"
23304                        for f in $library_names; do
23305                          if test -f "$dir/$f"; then
23306                            found_dir="$dir"
23307                            found_so="$dir/$f"
23308                            break
23309                          fi
23310                        done
23311                      fi
23312                    fi
23313                  fi
23314                                    if test "X$found_dir" = "X"; then
23315                    if test -f "$dir/$libname.$acl_libext"; then
23316                      found_dir="$dir"
23317                      found_a="$dir/$libname.$acl_libext"
23318                    fi
23319                  fi
23320                  if test "X$found_dir" != "X"; then
23321                    if test -f "$dir/$libname.la"; then
23322                      found_la="$dir/$libname.la"
23323                    fi
23324                  fi
23325                  ;;
23326              esac
23327              if test "X$found_dir" != "X"; then
23328                break
23329              fi
23330            done
23331          fi
23332          if test "X$found_dir" != "X"; then
23333                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
23334            if test "X$found_so" != "X"; then
23335                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
23336                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23337              else
23338                                                                                haveit=
23339                for x in $ltrpathdirs; do
23340                  if test "X$x" = "X$found_dir"; then
23341                    haveit=yes
23342                    break
23343                  fi
23344                done
23345                if test -z "$haveit"; then
23346                  ltrpathdirs="$ltrpathdirs $found_dir"
23347                fi
23348                                if test "$acl_hardcode_direct" = yes; then
23349                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23350                else
23351                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23352                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23353                                                            haveit=
23354                    for x in $rpathdirs; do
23355                      if test "X$x" = "X$found_dir"; then
23356                        haveit=yes
23357                        break
23358                      fi
23359                    done
23360                    if test -z "$haveit"; then
23361                      rpathdirs="$rpathdirs $found_dir"
23362                    fi
23363                  else
23364                                                                                haveit=
23365                    for x in $LDFLAGS $LIBPTH; do
23366
23367  acl_save_prefix="$prefix"
23368  prefix="$acl_final_prefix"
23369  acl_save_exec_prefix="$exec_prefix"
23370  exec_prefix="$acl_final_exec_prefix"
23371  eval x=\"$x\"
23372  exec_prefix="$acl_save_exec_prefix"
23373  prefix="$acl_save_prefix"
23374
23375                      if test "X$x" = "X-L$found_dir"; then
23376                        haveit=yes
23377                        break
23378                      fi
23379                    done
23380                    if test -z "$haveit"; then
23381                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
23382                    fi
23383                    if test "$acl_hardcode_minus_L" != no; then
23384                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23385                    else
23386                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
23387                    fi
23388                  fi
23389                fi
23390              fi
23391            else
23392              if test "X$found_a" != "X"; then
23393                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
23394              else
23395                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
23396              fi
23397            fi
23398                        additional_includedir=
23399            case "$found_dir" in
23400              */$acl_libdirstem | */$acl_libdirstem/)
23401                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23402                LIBPTH_PREFIX="$basedir"
23403                additional_includedir="$basedir/include"
23404                ;;
23405            esac
23406            if test "X$additional_includedir" != "X"; then
23407                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
23408                haveit=
23409                if test "X$additional_includedir" = "X/usr/local/include"; then
23410                  if test -n "$GCC"; then
23411                    case $host_os in
23412                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23413                    esac
23414                  fi
23415                fi
23416                if test -z "$haveit"; then
23417                  for x in $CPPFLAGS $INCPTH; do
23418
23419  acl_save_prefix="$prefix"
23420  prefix="$acl_final_prefix"
23421  acl_save_exec_prefix="$exec_prefix"
23422  exec_prefix="$acl_final_exec_prefix"
23423  eval x=\"$x\"
23424  exec_prefix="$acl_save_exec_prefix"
23425  prefix="$acl_save_prefix"
23426
23427                    if test "X$x" = "X-I$additional_includedir"; then
23428                      haveit=yes
23429                      break
23430                    fi
23431                  done
23432                  if test -z "$haveit"; then
23433                    if test -d "$additional_includedir"; then
23434                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
23435                    fi
23436                  fi
23437                fi
23438              fi
23439            fi
23440                        if test -n "$found_la"; then
23441                                                        save_libdir="$libdir"
23442              case "$found_la" in
23443                */* | *\\*) . "$found_la" ;;
23444                *) . "./$found_la" ;;
23445              esac
23446              libdir="$save_libdir"
23447                            for dep in $dependency_libs; do
23448                case "$dep" in
23449                  -L*)
23450                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23451                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
23452                      haveit=
23453                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
23454                        if test -n "$GCC"; then
23455                          case $host_os in
23456                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23457                          esac
23458                        fi
23459                      fi
23460                      if test -z "$haveit"; then
23461                        haveit=
23462                        for x in $LDFLAGS $LIBPTH; do
23463
23464  acl_save_prefix="$prefix"
23465  prefix="$acl_final_prefix"
23466  acl_save_exec_prefix="$exec_prefix"
23467  exec_prefix="$acl_final_exec_prefix"
23468  eval x=\"$x\"
23469  exec_prefix="$acl_save_exec_prefix"
23470  prefix="$acl_save_prefix"
23471
23472                          if test "X$x" = "X-L$additional_libdir"; then
23473                            haveit=yes
23474                            break
23475                          fi
23476                        done
23477                        if test -z "$haveit"; then
23478                          if test -d "$additional_libdir"; then
23479                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
23480                          fi
23481                        fi
23482                        haveit=
23483                        for x in $LDFLAGS $LTLIBPTH; do
23484
23485  acl_save_prefix="$prefix"
23486  prefix="$acl_final_prefix"
23487  acl_save_exec_prefix="$exec_prefix"
23488  exec_prefix="$acl_final_exec_prefix"
23489  eval x=\"$x\"
23490  exec_prefix="$acl_save_exec_prefix"
23491  prefix="$acl_save_prefix"
23492
23493                          if test "X$x" = "X-L$additional_libdir"; then
23494                            haveit=yes
23495                            break
23496                          fi
23497                        done
23498                        if test -z "$haveit"; then
23499                          if test -d "$additional_libdir"; then
23500                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
23501                          fi
23502                        fi
23503                      fi
23504                    fi
23505                    ;;
23506                  -R*)
23507                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
23508                    if test "$enable_rpath" != no; then
23509                                                                  haveit=
23510                      for x in $rpathdirs; do
23511                        if test "X$x" = "X$dir"; then
23512                          haveit=yes
23513                          break
23514                        fi
23515                      done
23516                      if test -z "$haveit"; then
23517                        rpathdirs="$rpathdirs $dir"
23518                      fi
23519                                                                  haveit=
23520                      for x in $ltrpathdirs; do
23521                        if test "X$x" = "X$dir"; then
23522                          haveit=yes
23523                          break
23524                        fi
23525                      done
23526                      if test -z "$haveit"; then
23527                        ltrpathdirs="$ltrpathdirs $dir"
23528                      fi
23529                    fi
23530                    ;;
23531                  -l*)
23532                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23533                    ;;
23534                  *.la)
23535                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23536                    ;;
23537                  *)
23538                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
23539                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
23540                    ;;
23541                esac
23542              done
23543            fi
23544          else
23545                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
23546            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
23547          fi
23548        fi
23549      fi
23550    done
23551  done
23552  if test "X$rpathdirs" != "X"; then
23553    if test -n "$acl_hardcode_libdir_separator"; then
23554                        alldirs=
23555      for found_dir in $rpathdirs; do
23556        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23557      done
23558            acl_save_libdir="$libdir"
23559      libdir="$alldirs"
23560      eval flag=\"$acl_hardcode_libdir_flag_spec\"
23561      libdir="$acl_save_libdir"
23562      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
23563    else
23564            for found_dir in $rpathdirs; do
23565        acl_save_libdir="$libdir"
23566        libdir="$found_dir"
23567        eval flag=\"$acl_hardcode_libdir_flag_spec\"
23568        libdir="$acl_save_libdir"
23569        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
23570      done
23571    fi
23572  fi
23573  if test "X$ltrpathdirs" != "X"; then
23574            for found_dir in $ltrpathdirs; do
23575      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
23576    done
23577  fi
23578
23579    ac_cv_libpth_libs="$LIBPTH"
23580    ac_cv_libpth_ltlibs="$LTLIBPTH"
23581    ac_cv_libpth_cppflags="$INCPTH"
23582    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
23583
23584fi
23585{ $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
23586$as_echo "$ac_cv_libpth_libs" >&6; }
23587  LIBPTH="$ac_cv_libpth_libs"
23588  LTLIBPTH="$ac_cv_libpth_ltlibs"
23589  INCPTH="$ac_cv_libpth_cppflags"
23590  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
23591
23592  for element in $INCPTH; do
23593    haveit=
23594    for x in $CPPFLAGS; do
23595
23596  acl_save_prefix="$prefix"
23597  prefix="$acl_final_prefix"
23598  acl_save_exec_prefix="$exec_prefix"
23599  exec_prefix="$acl_final_exec_prefix"
23600  eval x=\"$x\"
23601  exec_prefix="$acl_save_exec_prefix"
23602  prefix="$acl_save_prefix"
23603
23604      if test "X$x" = "X$element"; then
23605        haveit=yes
23606        break
23607      fi
23608    done
23609    if test -z "$haveit"; then
23610      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23611    fi
23612  done
23613
23614
23615
23616
23617      HAVE_LIBPTH=yes
23618
23619
23620
23621      gl_have_pth=
23622      gl_save_LIBS="$LIBS"
23623      LIBS="$LIBS -lpth"
23624      cat >conftest.$ac_ext <<_ACEOF
23625/* confdefs.h.  */
23626_ACEOF
23627cat confdefs.h >>conftest.$ac_ext
23628cat >>conftest.$ac_ext <<_ACEOF
23629/* end confdefs.h.  */
23630#include <pth.h>
23631int
23632main ()
23633{
23634pth_self();
23635  ;
23636  return 0;
23637}
23638_ACEOF
23639rm -f conftest.$ac_objext conftest$ac_exeext
23640if { (ac_try="$ac_link"
23641case "(($ac_try" in
23642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23643  *) ac_try_echo=$ac_try;;
23644esac
23645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23646$as_echo "$ac_try_echo") >&5
23647  (eval "$ac_link") 2>conftest.er1
23648  ac_status=$?
23649  grep -v '^ *+' conftest.er1 >conftest.err
23650  rm -f conftest.er1
23651  cat conftest.err >&5
23652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653  (exit $ac_status); } && {
23654	 test -z "$ac_c_werror_flag" ||
23655	 test ! -s conftest.err
23656       } && test -s conftest$ac_exeext && {
23657	 test "$cross_compiling" = yes ||
23658	 $as_test_x conftest$ac_exeext
23659       }; then
23660  gl_have_pth=yes
23661else
23662  $as_echo "$as_me: failed program was:" >&5
23663sed 's/^/| /' conftest.$ac_ext >&5
23664
23665
23666fi
23667
23668rm -rf conftest.dSYM
23669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23670      conftest$ac_exeext conftest.$ac_ext
23671      LIBS="$gl_save_LIBS"
23672      if test -n "$gl_have_pth"; then
23673        gl_threads_api=pth
23674        LIBTHREAD="$LIBPTH"
23675        LTLIBTHREAD="$LTLIBPTH"
23676        LIBMULTITHREAD="$LIBTHREAD"
23677        LTLIBMULTITHREAD="$LTLIBTHREAD"
23678
23679cat >>confdefs.h <<\_ACEOF
23680#define USE_PTH_THREADS 1
23681_ACEOF
23682
23683        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
23684          if test $gl_have_weak = yes; then
23685
23686cat >>confdefs.h <<\_ACEOF
23687#define USE_PTH_THREADS_WEAK 1
23688_ACEOF
23689
23690            LIBTHREAD=
23691            LTLIBTHREAD=
23692          fi
23693        fi
23694      else
23695        CPPFLAGS="$gl_save_CPPFLAGS"
23696      fi
23697    fi
23698    if test -z "$gl_have_pthread"; then
23699      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
23700        if { case "$host_os" in
23701               mingw*) true;;
23702               *) false;;
23703             esac
23704           }; then
23705          gl_threads_api=win32
23706
23707cat >>confdefs.h <<\_ACEOF
23708#define USE_WIN32_THREADS 1
23709_ACEOF
23710
23711        fi
23712      fi
23713    fi
23714  fi
23715  { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
23716$as_echo_n "checking for multithread API to use... " >&6; }
23717  { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
23718$as_echo "$gl_threads_api" >&6; }
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739    use_additional=yes
23740
23741  acl_save_prefix="$prefix"
23742  prefix="$acl_final_prefix"
23743  acl_save_exec_prefix="$exec_prefix"
23744  exec_prefix="$acl_final_exec_prefix"
23745
23746    eval additional_includedir=\"$includedir\"
23747    eval additional_libdir=\"$libdir\"
23748
23749  exec_prefix="$acl_save_exec_prefix"
23750  prefix="$acl_save_prefix"
23751
23752
23753# Check whether --with-libiconv-prefix was given.
23754if test "${with_libiconv_prefix+set}" = set; then
23755  withval=$with_libiconv_prefix;
23756    if test "X$withval" = "Xno"; then
23757      use_additional=no
23758    else
23759      if test "X$withval" = "X"; then
23760
23761  acl_save_prefix="$prefix"
23762  prefix="$acl_final_prefix"
23763  acl_save_exec_prefix="$exec_prefix"
23764  exec_prefix="$acl_final_exec_prefix"
23765
23766          eval additional_includedir=\"$includedir\"
23767          eval additional_libdir=\"$libdir\"
23768
23769  exec_prefix="$acl_save_exec_prefix"
23770  prefix="$acl_save_prefix"
23771
23772      else
23773        additional_includedir="$withval/include"
23774        additional_libdir="$withval/$acl_libdirstem"
23775      fi
23776    fi
23777
23778fi
23779
23780      LIBICONV=
23781  LTLIBICONV=
23782  INCICONV=
23783  LIBICONV_PREFIX=
23784  rpathdirs=
23785  ltrpathdirs=
23786  names_already_handled=
23787  names_next_round='iconv '
23788  while test -n "$names_next_round"; do
23789    names_this_round="$names_next_round"
23790    names_next_round=
23791    for name in $names_this_round; do
23792      already_handled=
23793      for n in $names_already_handled; do
23794        if test "$n" = "$name"; then
23795          already_handled=yes
23796          break
23797        fi
23798      done
23799      if test -z "$already_handled"; then
23800        names_already_handled="$names_already_handled $name"
23801                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23802        eval value=\"\$HAVE_LIB$uppername\"
23803        if test -n "$value"; then
23804          if test "$value" = yes; then
23805            eval value=\"\$LIB$uppername\"
23806            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
23807            eval value=\"\$LTLIB$uppername\"
23808            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
23809          else
23810                                    :
23811          fi
23812        else
23813                              found_dir=
23814          found_la=
23815          found_so=
23816          found_a=
23817          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
23818          if test -n "$acl_shlibext"; then
23819            shrext=".$acl_shlibext"             # typically: shrext=.so
23820          else
23821            shrext=
23822          fi
23823          if test $use_additional = yes; then
23824            dir="$additional_libdir"
23825                                    if test -n "$acl_shlibext"; then
23826              if test -f "$dir/$libname$shrext"; then
23827                found_dir="$dir"
23828                found_so="$dir/$libname$shrext"
23829              else
23830                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23831                  ver=`(cd "$dir" && \
23832                        for f in "$libname$shrext".*; do echo "$f"; done \
23833                        | sed -e "s,^$libname$shrext\\\\.,," \
23834                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23835                        | sed 1q ) 2>/dev/null`
23836                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23837                    found_dir="$dir"
23838                    found_so="$dir/$libname$shrext.$ver"
23839                  fi
23840                else
23841                  eval library_names=\"$acl_library_names_spec\"
23842                  for f in $library_names; do
23843                    if test -f "$dir/$f"; then
23844                      found_dir="$dir"
23845                      found_so="$dir/$f"
23846                      break
23847                    fi
23848                  done
23849                fi
23850              fi
23851            fi
23852                        if test "X$found_dir" = "X"; then
23853              if test -f "$dir/$libname.$acl_libext"; then
23854                found_dir="$dir"
23855                found_a="$dir/$libname.$acl_libext"
23856              fi
23857            fi
23858            if test "X$found_dir" != "X"; then
23859              if test -f "$dir/$libname.la"; then
23860                found_la="$dir/$libname.la"
23861              fi
23862            fi
23863          fi
23864          if test "X$found_dir" = "X"; then
23865            for x in $LDFLAGS $LTLIBICONV; do
23866
23867  acl_save_prefix="$prefix"
23868  prefix="$acl_final_prefix"
23869  acl_save_exec_prefix="$exec_prefix"
23870  exec_prefix="$acl_final_exec_prefix"
23871  eval x=\"$x\"
23872  exec_prefix="$acl_save_exec_prefix"
23873  prefix="$acl_save_prefix"
23874
23875              case "$x" in
23876                -L*)
23877                  dir=`echo "X$x" | sed -e 's/^X-L//'`
23878                                    if test -n "$acl_shlibext"; then
23879                    if test -f "$dir/$libname$shrext"; then
23880                      found_dir="$dir"
23881                      found_so="$dir/$libname$shrext"
23882                    else
23883                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23884                        ver=`(cd "$dir" && \
23885                              for f in "$libname$shrext".*; do echo "$f"; done \
23886                              | sed -e "s,^$libname$shrext\\\\.,," \
23887                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23888                              | sed 1q ) 2>/dev/null`
23889                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23890                          found_dir="$dir"
23891                          found_so="$dir/$libname$shrext.$ver"
23892                        fi
23893                      else
23894                        eval library_names=\"$acl_library_names_spec\"
23895                        for f in $library_names; do
23896                          if test -f "$dir/$f"; then
23897                            found_dir="$dir"
23898                            found_so="$dir/$f"
23899                            break
23900                          fi
23901                        done
23902                      fi
23903                    fi
23904                  fi
23905                                    if test "X$found_dir" = "X"; then
23906                    if test -f "$dir/$libname.$acl_libext"; then
23907                      found_dir="$dir"
23908                      found_a="$dir/$libname.$acl_libext"
23909                    fi
23910                  fi
23911                  if test "X$found_dir" != "X"; then
23912                    if test -f "$dir/$libname.la"; then
23913                      found_la="$dir/$libname.la"
23914                    fi
23915                  fi
23916                  ;;
23917              esac
23918              if test "X$found_dir" != "X"; then
23919                break
23920              fi
23921            done
23922          fi
23923          if test "X$found_dir" != "X"; then
23924                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
23925            if test "X$found_so" != "X"; then
23926                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
23927                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23928              else
23929                                                                                haveit=
23930                for x in $ltrpathdirs; do
23931                  if test "X$x" = "X$found_dir"; then
23932                    haveit=yes
23933                    break
23934                  fi
23935                done
23936                if test -z "$haveit"; then
23937                  ltrpathdirs="$ltrpathdirs $found_dir"
23938                fi
23939                                if test "$acl_hardcode_direct" = yes; then
23940                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23941                else
23942                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23943                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23944                                                            haveit=
23945                    for x in $rpathdirs; do
23946                      if test "X$x" = "X$found_dir"; then
23947                        haveit=yes
23948                        break
23949                      fi
23950                    done
23951                    if test -z "$haveit"; then
23952                      rpathdirs="$rpathdirs $found_dir"
23953                    fi
23954                  else
23955                                                                                haveit=
23956                    for x in $LDFLAGS $LIBICONV; do
23957
23958  acl_save_prefix="$prefix"
23959  prefix="$acl_final_prefix"
23960  acl_save_exec_prefix="$exec_prefix"
23961  exec_prefix="$acl_final_exec_prefix"
23962  eval x=\"$x\"
23963  exec_prefix="$acl_save_exec_prefix"
23964  prefix="$acl_save_prefix"
23965
23966                      if test "X$x" = "X-L$found_dir"; then
23967                        haveit=yes
23968                        break
23969                      fi
23970                    done
23971                    if test -z "$haveit"; then
23972                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
23973                    fi
23974                    if test "$acl_hardcode_minus_L" != no; then
23975                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23976                    else
23977                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23978                    fi
23979                  fi
23980                fi
23981              fi
23982            else
23983              if test "X$found_a" != "X"; then
23984                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
23985              else
23986                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
23987              fi
23988            fi
23989                        additional_includedir=
23990            case "$found_dir" in
23991              */$acl_libdirstem | */$acl_libdirstem/)
23992                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23993                LIBICONV_PREFIX="$basedir"
23994                additional_includedir="$basedir/include"
23995                ;;
23996            esac
23997            if test "X$additional_includedir" != "X"; then
23998                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
23999                haveit=
24000                if test "X$additional_includedir" = "X/usr/local/include"; then
24001                  if test -n "$GCC"; then
24002                    case $host_os in
24003                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24004                    esac
24005                  fi
24006                fi
24007                if test -z "$haveit"; then
24008                  for x in $CPPFLAGS $INCICONV; do
24009
24010  acl_save_prefix="$prefix"
24011  prefix="$acl_final_prefix"
24012  acl_save_exec_prefix="$exec_prefix"
24013  exec_prefix="$acl_final_exec_prefix"
24014  eval x=\"$x\"
24015  exec_prefix="$acl_save_exec_prefix"
24016  prefix="$acl_save_prefix"
24017
24018                    if test "X$x" = "X-I$additional_includedir"; then
24019                      haveit=yes
24020                      break
24021                    fi
24022                  done
24023                  if test -z "$haveit"; then
24024                    if test -d "$additional_includedir"; then
24025                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24026                    fi
24027                  fi
24028                fi
24029              fi
24030            fi
24031                        if test -n "$found_la"; then
24032                                                        save_libdir="$libdir"
24033              case "$found_la" in
24034                */* | *\\*) . "$found_la" ;;
24035                *) . "./$found_la" ;;
24036              esac
24037              libdir="$save_libdir"
24038                            for dep in $dependency_libs; do
24039                case "$dep" in
24040                  -L*)
24041                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24042                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24043                      haveit=
24044                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24045                        if test -n "$GCC"; then
24046                          case $host_os in
24047                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24048                          esac
24049                        fi
24050                      fi
24051                      if test -z "$haveit"; then
24052                        haveit=
24053                        for x in $LDFLAGS $LIBICONV; do
24054
24055  acl_save_prefix="$prefix"
24056  prefix="$acl_final_prefix"
24057  acl_save_exec_prefix="$exec_prefix"
24058  exec_prefix="$acl_final_exec_prefix"
24059  eval x=\"$x\"
24060  exec_prefix="$acl_save_exec_prefix"
24061  prefix="$acl_save_prefix"
24062
24063                          if test "X$x" = "X-L$additional_libdir"; then
24064                            haveit=yes
24065                            break
24066                          fi
24067                        done
24068                        if test -z "$haveit"; then
24069                          if test -d "$additional_libdir"; then
24070                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24071                          fi
24072                        fi
24073                        haveit=
24074                        for x in $LDFLAGS $LTLIBICONV; do
24075
24076  acl_save_prefix="$prefix"
24077  prefix="$acl_final_prefix"
24078  acl_save_exec_prefix="$exec_prefix"
24079  exec_prefix="$acl_final_exec_prefix"
24080  eval x=\"$x\"
24081  exec_prefix="$acl_save_exec_prefix"
24082  prefix="$acl_save_prefix"
24083
24084                          if test "X$x" = "X-L$additional_libdir"; then
24085                            haveit=yes
24086                            break
24087                          fi
24088                        done
24089                        if test -z "$haveit"; then
24090                          if test -d "$additional_libdir"; then
24091                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24092                          fi
24093                        fi
24094                      fi
24095                    fi
24096                    ;;
24097                  -R*)
24098                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
24099                    if test "$enable_rpath" != no; then
24100                                                                  haveit=
24101                      for x in $rpathdirs; do
24102                        if test "X$x" = "X$dir"; then
24103                          haveit=yes
24104                          break
24105                        fi
24106                      done
24107                      if test -z "$haveit"; then
24108                        rpathdirs="$rpathdirs $dir"
24109                      fi
24110                                                                  haveit=
24111                      for x in $ltrpathdirs; do
24112                        if test "X$x" = "X$dir"; then
24113                          haveit=yes
24114                          break
24115                        fi
24116                      done
24117                      if test -z "$haveit"; then
24118                        ltrpathdirs="$ltrpathdirs $dir"
24119                      fi
24120                    fi
24121                    ;;
24122                  -l*)
24123                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24124                    ;;
24125                  *.la)
24126                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24127                    ;;
24128                  *)
24129                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24130                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24131                    ;;
24132                esac
24133              done
24134            fi
24135          else
24136                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24137            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24138          fi
24139        fi
24140      fi
24141    done
24142  done
24143  if test "X$rpathdirs" != "X"; then
24144    if test -n "$acl_hardcode_libdir_separator"; then
24145                        alldirs=
24146      for found_dir in $rpathdirs; do
24147        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
24148      done
24149            acl_save_libdir="$libdir"
24150      libdir="$alldirs"
24151      eval flag=\"$acl_hardcode_libdir_flag_spec\"
24152      libdir="$acl_save_libdir"
24153      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24154    else
24155            for found_dir in $rpathdirs; do
24156        acl_save_libdir="$libdir"
24157        libdir="$found_dir"
24158        eval flag=\"$acl_hardcode_libdir_flag_spec\"
24159        libdir="$acl_save_libdir"
24160        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24161      done
24162    fi
24163  fi
24164  if test "X$ltrpathdirs" != "X"; then
24165            for found_dir in $ltrpathdirs; do
24166      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24167    done
24168  fi
24169
24170
24171
24172
24173
24174  cat >conftest.$ac_ext <<_ACEOF
24175/* confdefs.h.  */
24176_ACEOF
24177cat confdefs.h >>conftest.$ac_ext
24178cat >>conftest.$ac_ext <<_ACEOF
24179/* end confdefs.h.  */
24180int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
24181int
24182main ()
24183{
24184
24185  ;
24186  return 0;
24187}
24188_ACEOF
24189rm -f conftest.$ac_objext conftest$ac_exeext
24190if { (ac_try="$ac_link"
24191case "(($ac_try" in
24192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193  *) ac_try_echo=$ac_try;;
24194esac
24195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24196$as_echo "$ac_try_echo") >&5
24197  (eval "$ac_link") 2>conftest.er1
24198  ac_status=$?
24199  grep -v '^ *+' conftest.er1 >conftest.err
24200  rm -f conftest.er1
24201  cat conftest.err >&5
24202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203  (exit $ac_status); } && {
24204	 test -z "$ac_c_werror_flag" ||
24205	 test ! -s conftest.err
24206       } && test -s conftest$ac_exeext && {
24207	 test "$cross_compiling" = yes ||
24208	 $as_test_x conftest$ac_exeext
24209       }; then
24210
24211cat >>confdefs.h <<\_ACEOF
24212#define HAVE_BUILTIN_EXPECT 1
24213_ACEOF
24214
24215else
24216  $as_echo "$as_me: failed program was:" >&5
24217sed 's/^/| /' conftest.$ac_ext >&5
24218
24219
24220fi
24221
24222rm -rf conftest.dSYM
24223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24224      conftest$ac_exeext conftest.$ac_ext
24225
24226
24227
24228
24229
24230
24231for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
24232do
24233as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24235  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24236$as_echo_n "checking for $ac_header... " >&6; }
24237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24238  $as_echo_n "(cached) " >&6
24239fi
24240ac_res=`eval 'as_val=${'$as_ac_Header'}
24241		 $as_echo "$as_val"'`
24242	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24243$as_echo "$ac_res" >&6; }
24244else
24245  # Is the header compilable?
24246{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24247$as_echo_n "checking $ac_header usability... " >&6; }
24248cat >conftest.$ac_ext <<_ACEOF
24249/* confdefs.h.  */
24250_ACEOF
24251cat confdefs.h >>conftest.$ac_ext
24252cat >>conftest.$ac_ext <<_ACEOF
24253/* end confdefs.h.  */
24254$ac_includes_default
24255#include <$ac_header>
24256_ACEOF
24257rm -f conftest.$ac_objext
24258if { (ac_try="$ac_compile"
24259case "(($ac_try" in
24260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261  *) ac_try_echo=$ac_try;;
24262esac
24263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24264$as_echo "$ac_try_echo") >&5
24265  (eval "$ac_compile") 2>conftest.er1
24266  ac_status=$?
24267  grep -v '^ *+' conftest.er1 >conftest.err
24268  rm -f conftest.er1
24269  cat conftest.err >&5
24270  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271  (exit $ac_status); } && {
24272	 test -z "$ac_c_werror_flag" ||
24273	 test ! -s conftest.err
24274       } && test -s conftest.$ac_objext; then
24275  ac_header_compiler=yes
24276else
24277  $as_echo "$as_me: failed program was:" >&5
24278sed 's/^/| /' conftest.$ac_ext >&5
24279
24280	ac_header_compiler=no
24281fi
24282
24283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24284{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24285$as_echo "$ac_header_compiler" >&6; }
24286
24287# Is the header present?
24288{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24289$as_echo_n "checking $ac_header presence... " >&6; }
24290cat >conftest.$ac_ext <<_ACEOF
24291/* confdefs.h.  */
24292_ACEOF
24293cat confdefs.h >>conftest.$ac_ext
24294cat >>conftest.$ac_ext <<_ACEOF
24295/* end confdefs.h.  */
24296#include <$ac_header>
24297_ACEOF
24298if { (ac_try="$ac_cpp conftest.$ac_ext"
24299case "(($ac_try" in
24300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24301  *) ac_try_echo=$ac_try;;
24302esac
24303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24304$as_echo "$ac_try_echo") >&5
24305  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24306  ac_status=$?
24307  grep -v '^ *+' conftest.er1 >conftest.err
24308  rm -f conftest.er1
24309  cat conftest.err >&5
24310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311  (exit $ac_status); } >/dev/null && {
24312	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24313	 test ! -s conftest.err
24314       }; then
24315  ac_header_preproc=yes
24316else
24317  $as_echo "$as_me: failed program was:" >&5
24318sed 's/^/| /' conftest.$ac_ext >&5
24319
24320  ac_header_preproc=no
24321fi
24322
24323rm -f conftest.err conftest.$ac_ext
24324{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24325$as_echo "$ac_header_preproc" >&6; }
24326
24327# So?  What about this header?
24328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24329  yes:no: )
24330    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24331$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24332    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24333$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24334    ac_header_preproc=yes
24335    ;;
24336  no:yes:* )
24337    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24338$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24339    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24340$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24341    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24342$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24343    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24344$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24345    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24346$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24347    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24348$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24349
24350    ;;
24351esac
24352{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24353$as_echo_n "checking for $ac_header... " >&6; }
24354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24355  $as_echo_n "(cached) " >&6
24356else
24357  eval "$as_ac_Header=\$ac_header_preproc"
24358fi
24359ac_res=`eval 'as_val=${'$as_ac_Header'}
24360		 $as_echo "$as_val"'`
24361	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24362$as_echo "$ac_res" >&6; }
24363
24364fi
24365as_val=`eval 'as_val=${'$as_ac_Header'}
24366		 $as_echo "$as_val"'`
24367   if test "x$as_val" = x""yes; then
24368  cat >>confdefs.h <<_ACEOF
24369#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24370_ACEOF
24371
24372fi
24373
24374done
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
24393    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
24394    argz_next __fsetlocking
24395do
24396as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24397{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24398$as_echo_n "checking for $ac_func... " >&6; }
24399if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24400  $as_echo_n "(cached) " >&6
24401else
24402  cat >conftest.$ac_ext <<_ACEOF
24403/* confdefs.h.  */
24404_ACEOF
24405cat confdefs.h >>conftest.$ac_ext
24406cat >>conftest.$ac_ext <<_ACEOF
24407/* end confdefs.h.  */
24408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24409   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24410#define $ac_func innocuous_$ac_func
24411
24412/* System header to define __stub macros and hopefully few prototypes,
24413    which can conflict with char $ac_func (); below.
24414    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24415    <limits.h> exists even on freestanding compilers.  */
24416
24417#ifdef __STDC__
24418# include <limits.h>
24419#else
24420# include <assert.h>
24421#endif
24422
24423#undef $ac_func
24424
24425/* Override any GCC internal prototype to avoid an error.
24426   Use char because int might match the return type of a GCC
24427   builtin and then its argument prototype would still apply.  */
24428#ifdef __cplusplus
24429extern "C"
24430#endif
24431char $ac_func ();
24432/* The GNU C library defines this for functions which it implements
24433    to always fail with ENOSYS.  Some functions are actually named
24434    something starting with __ and the normal name is an alias.  */
24435#if defined __stub_$ac_func || defined __stub___$ac_func
24436choke me
24437#endif
24438
24439int
24440main ()
24441{
24442return $ac_func ();
24443  ;
24444  return 0;
24445}
24446_ACEOF
24447rm -f conftest.$ac_objext conftest$ac_exeext
24448if { (ac_try="$ac_link"
24449case "(($ac_try" in
24450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451  *) ac_try_echo=$ac_try;;
24452esac
24453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24454$as_echo "$ac_try_echo") >&5
24455  (eval "$ac_link") 2>conftest.er1
24456  ac_status=$?
24457  grep -v '^ *+' conftest.er1 >conftest.err
24458  rm -f conftest.er1
24459  cat conftest.err >&5
24460  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461  (exit $ac_status); } && {
24462	 test -z "$ac_c_werror_flag" ||
24463	 test ! -s conftest.err
24464       } && test -s conftest$ac_exeext && {
24465	 test "$cross_compiling" = yes ||
24466	 $as_test_x conftest$ac_exeext
24467       }; then
24468  eval "$as_ac_var=yes"
24469else
24470  $as_echo "$as_me: failed program was:" >&5
24471sed 's/^/| /' conftest.$ac_ext >&5
24472
24473	eval "$as_ac_var=no"
24474fi
24475
24476rm -rf conftest.dSYM
24477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24478      conftest$ac_exeext conftest.$ac_ext
24479fi
24480ac_res=`eval 'as_val=${'$as_ac_var'}
24481		 $as_echo "$as_val"'`
24482	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24483$as_echo "$ac_res" >&6; }
24484as_val=`eval 'as_val=${'$as_ac_var'}
24485		 $as_echo "$as_val"'`
24486   if test "x$as_val" = x""yes; then
24487  cat >>confdefs.h <<_ACEOF
24488#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24489_ACEOF
24490
24491fi
24492done
24493
24494
24495
24496  { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
24497$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
24498if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
24499  $as_echo_n "(cached) " >&6
24500else
24501  cat >conftest.$ac_ext <<_ACEOF
24502/* confdefs.h.  */
24503_ACEOF
24504cat confdefs.h >>conftest.$ac_ext
24505cat >>conftest.$ac_ext <<_ACEOF
24506/* end confdefs.h.  */
24507#include <stdio.h>
24508int
24509main ()
24510{
24511
24512#ifndef feof_unlocked
24513  char *p = (char *) feof_unlocked;
24514#endif
24515
24516  ;
24517  return 0;
24518}
24519_ACEOF
24520rm -f conftest.$ac_objext
24521if { (ac_try="$ac_compile"
24522case "(($ac_try" in
24523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24524  *) ac_try_echo=$ac_try;;
24525esac
24526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24527$as_echo "$ac_try_echo") >&5
24528  (eval "$ac_compile") 2>conftest.er1
24529  ac_status=$?
24530  grep -v '^ *+' conftest.er1 >conftest.err
24531  rm -f conftest.er1
24532  cat conftest.err >&5
24533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534  (exit $ac_status); } && {
24535	 test -z "$ac_c_werror_flag" ||
24536	 test ! -s conftest.err
24537       } && test -s conftest.$ac_objext; then
24538  ac_cv_have_decl_feof_unlocked=yes
24539else
24540  $as_echo "$as_me: failed program was:" >&5
24541sed 's/^/| /' conftest.$ac_ext >&5
24542
24543	ac_cv_have_decl_feof_unlocked=no
24544fi
24545
24546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24547fi
24548{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
24549$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
24550  if test $ac_cv_have_decl_feof_unlocked = yes; then
24551    gt_value=1
24552  else
24553    gt_value=0
24554  fi
24555
24556cat >>confdefs.h <<_ACEOF
24557#define HAVE_DECL_FEOF_UNLOCKED $gt_value
24558_ACEOF
24559
24560
24561
24562  { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
24563$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
24564if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
24565  $as_echo_n "(cached) " >&6
24566else
24567  cat >conftest.$ac_ext <<_ACEOF
24568/* confdefs.h.  */
24569_ACEOF
24570cat confdefs.h >>conftest.$ac_ext
24571cat >>conftest.$ac_ext <<_ACEOF
24572/* end confdefs.h.  */
24573#include <stdio.h>
24574int
24575main ()
24576{
24577
24578#ifndef fgets_unlocked
24579  char *p = (char *) fgets_unlocked;
24580#endif
24581
24582  ;
24583  return 0;
24584}
24585_ACEOF
24586rm -f conftest.$ac_objext
24587if { (ac_try="$ac_compile"
24588case "(($ac_try" in
24589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590  *) ac_try_echo=$ac_try;;
24591esac
24592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24593$as_echo "$ac_try_echo") >&5
24594  (eval "$ac_compile") 2>conftest.er1
24595  ac_status=$?
24596  grep -v '^ *+' conftest.er1 >conftest.err
24597  rm -f conftest.er1
24598  cat conftest.err >&5
24599  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600  (exit $ac_status); } && {
24601	 test -z "$ac_c_werror_flag" ||
24602	 test ! -s conftest.err
24603       } && test -s conftest.$ac_objext; then
24604  ac_cv_have_decl_fgets_unlocked=yes
24605else
24606  $as_echo "$as_me: failed program was:" >&5
24607sed 's/^/| /' conftest.$ac_ext >&5
24608
24609	ac_cv_have_decl_fgets_unlocked=no
24610fi
24611
24612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613fi
24614{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
24615$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
24616  if test $ac_cv_have_decl_fgets_unlocked = yes; then
24617    gt_value=1
24618  else
24619    gt_value=0
24620  fi
24621
24622cat >>confdefs.h <<_ACEOF
24623#define HAVE_DECL_FGETS_UNLOCKED $gt_value
24624_ACEOF
24625
24626
24627
24628
24629
24630
24631
24632
24633          am_save_CPPFLAGS="$CPPFLAGS"
24634
24635  for element in $INCICONV; do
24636    haveit=
24637    for x in $CPPFLAGS; do
24638
24639  acl_save_prefix="$prefix"
24640  prefix="$acl_final_prefix"
24641  acl_save_exec_prefix="$exec_prefix"
24642  exec_prefix="$acl_final_exec_prefix"
24643  eval x=\"$x\"
24644  exec_prefix="$acl_save_exec_prefix"
24645  prefix="$acl_save_prefix"
24646
24647      if test "X$x" = "X$element"; then
24648        haveit=yes
24649        break
24650      fi
24651    done
24652    if test -z "$haveit"; then
24653      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24654    fi
24655  done
24656
24657
24658  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
24659$as_echo_n "checking for iconv... " >&6; }
24660if test "${am_cv_func_iconv+set}" = set; then
24661  $as_echo_n "(cached) " >&6
24662else
24663
24664    am_cv_func_iconv="no, consider installing GNU libiconv"
24665    am_cv_lib_iconv=no
24666    cat >conftest.$ac_ext <<_ACEOF
24667/* confdefs.h.  */
24668_ACEOF
24669cat confdefs.h >>conftest.$ac_ext
24670cat >>conftest.$ac_ext <<_ACEOF
24671/* end confdefs.h.  */
24672#include <stdlib.h>
24673#include <iconv.h>
24674int
24675main ()
24676{
24677iconv_t cd = iconv_open("","");
24678       iconv(cd,NULL,NULL,NULL,NULL);
24679       iconv_close(cd);
24680  ;
24681  return 0;
24682}
24683_ACEOF
24684rm -f conftest.$ac_objext conftest$ac_exeext
24685if { (ac_try="$ac_link"
24686case "(($ac_try" in
24687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688  *) ac_try_echo=$ac_try;;
24689esac
24690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24691$as_echo "$ac_try_echo") >&5
24692  (eval "$ac_link") 2>conftest.er1
24693  ac_status=$?
24694  grep -v '^ *+' conftest.er1 >conftest.err
24695  rm -f conftest.er1
24696  cat conftest.err >&5
24697  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698  (exit $ac_status); } && {
24699	 test -z "$ac_c_werror_flag" ||
24700	 test ! -s conftest.err
24701       } && test -s conftest$ac_exeext && {
24702	 test "$cross_compiling" = yes ||
24703	 $as_test_x conftest$ac_exeext
24704       }; then
24705  am_cv_func_iconv=yes
24706else
24707  $as_echo "$as_me: failed program was:" >&5
24708sed 's/^/| /' conftest.$ac_ext >&5
24709
24710
24711fi
24712
24713rm -rf conftest.dSYM
24714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24715      conftest$ac_exeext conftest.$ac_ext
24716    if test "$am_cv_func_iconv" != yes; then
24717      am_save_LIBS="$LIBS"
24718      LIBS="$LIBS $LIBICONV"
24719      cat >conftest.$ac_ext <<_ACEOF
24720/* confdefs.h.  */
24721_ACEOF
24722cat confdefs.h >>conftest.$ac_ext
24723cat >>conftest.$ac_ext <<_ACEOF
24724/* end confdefs.h.  */
24725#include <stdlib.h>
24726#include <iconv.h>
24727int
24728main ()
24729{
24730iconv_t cd = iconv_open("","");
24731         iconv(cd,NULL,NULL,NULL,NULL);
24732         iconv_close(cd);
24733  ;
24734  return 0;
24735}
24736_ACEOF
24737rm -f conftest.$ac_objext conftest$ac_exeext
24738if { (ac_try="$ac_link"
24739case "(($ac_try" in
24740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741  *) ac_try_echo=$ac_try;;
24742esac
24743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24744$as_echo "$ac_try_echo") >&5
24745  (eval "$ac_link") 2>conftest.er1
24746  ac_status=$?
24747  grep -v '^ *+' conftest.er1 >conftest.err
24748  rm -f conftest.er1
24749  cat conftest.err >&5
24750  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751  (exit $ac_status); } && {
24752	 test -z "$ac_c_werror_flag" ||
24753	 test ! -s conftest.err
24754       } && test -s conftest$ac_exeext && {
24755	 test "$cross_compiling" = yes ||
24756	 $as_test_x conftest$ac_exeext
24757       }; then
24758  am_cv_lib_iconv=yes
24759        am_cv_func_iconv=yes
24760else
24761  $as_echo "$as_me: failed program was:" >&5
24762sed 's/^/| /' conftest.$ac_ext >&5
24763
24764
24765fi
24766
24767rm -rf conftest.dSYM
24768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24769      conftest$ac_exeext conftest.$ac_ext
24770      LIBS="$am_save_LIBS"
24771    fi
24772
24773fi
24774{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
24775$as_echo "$am_cv_func_iconv" >&6; }
24776  if test "$am_cv_func_iconv" = yes; then
24777    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
24778$as_echo_n "checking for working iconv... " >&6; }
24779if test "${am_cv_func_iconv_works+set}" = set; then
24780  $as_echo_n "(cached) " >&6
24781else
24782
24783            am_save_LIBS="$LIBS"
24784      if test $am_cv_lib_iconv = yes; then
24785        LIBS="$LIBS $LIBICONV"
24786      fi
24787      if test "$cross_compiling" = yes; then
24788  case "$host_os" in
24789           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
24790           *)            am_cv_func_iconv_works="guessing yes" ;;
24791         esac
24792else
24793  cat >conftest.$ac_ext <<_ACEOF
24794/* confdefs.h.  */
24795_ACEOF
24796cat confdefs.h >>conftest.$ac_ext
24797cat >>conftest.$ac_ext <<_ACEOF
24798/* end confdefs.h.  */
24799
24800#include <iconv.h>
24801#include <string.h>
24802int main ()
24803{
24804  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
24805     returns.  */
24806  {
24807    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
24808    if (cd_utf8_to_88591 != (iconv_t)(-1))
24809      {
24810        static const char input[] = "\342\202\254"; /* EURO SIGN */
24811        char buf[10];
24812        const char *inptr = input;
24813        size_t inbytesleft = strlen (input);
24814        char *outptr = buf;
24815        size_t outbytesleft = sizeof (buf);
24816        size_t res = iconv (cd_utf8_to_88591,
24817                            (char **) &inptr, &inbytesleft,
24818                            &outptr, &outbytesleft);
24819        if (res == 0)
24820          return 1;
24821      }
24822  }
24823#if 0 /* This bug could be worked around by the caller.  */
24824  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
24825  {
24826    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
24827    if (cd_88591_to_utf8 != (iconv_t)(-1))
24828      {
24829        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
24830        char buf[50];
24831        const char *inptr = input;
24832        size_t inbytesleft = strlen (input);
24833        char *outptr = buf;
24834        size_t outbytesleft = sizeof (buf);
24835        size_t res = iconv (cd_88591_to_utf8,
24836                            (char **) &inptr, &inbytesleft,
24837                            &outptr, &outbytesleft);
24838        if ((int)res > 0)
24839          return 1;
24840      }
24841  }
24842#endif
24843  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
24844     provided.  */
24845  if (/* Try standardized names.  */
24846      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
24847      /* Try IRIX, OSF/1 names.  */
24848      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
24849      /* Try AIX names.  */
24850      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
24851      /* Try HP-UX names.  */
24852      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
24853    return 1;
24854  return 0;
24855}
24856_ACEOF
24857rm -f conftest$ac_exeext
24858if { (ac_try="$ac_link"
24859case "(($ac_try" in
24860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24861  *) ac_try_echo=$ac_try;;
24862esac
24863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24864$as_echo "$ac_try_echo") >&5
24865  (eval "$ac_link") 2>&5
24866  ac_status=$?
24867  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24869  { (case "(($ac_try" in
24870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871  *) ac_try_echo=$ac_try;;
24872esac
24873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24874$as_echo "$ac_try_echo") >&5
24875  (eval "$ac_try") 2>&5
24876  ac_status=$?
24877  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878  (exit $ac_status); }; }; then
24879  am_cv_func_iconv_works=yes
24880else
24881  $as_echo "$as_me: program exited with status $ac_status" >&5
24882$as_echo "$as_me: failed program was:" >&5
24883sed 's/^/| /' conftest.$ac_ext >&5
24884
24885( exit $ac_status )
24886am_cv_func_iconv_works=no
24887fi
24888rm -rf conftest.dSYM
24889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24890fi
24891
24892
24893      LIBS="$am_save_LIBS"
24894
24895fi
24896{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
24897$as_echo "$am_cv_func_iconv_works" >&6; }
24898    case "$am_cv_func_iconv_works" in
24899      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
24900      *)   am_func_iconv=yes ;;
24901    esac
24902  else
24903    am_func_iconv=no am_cv_lib_iconv=no
24904  fi
24905  if test "$am_func_iconv" = yes; then
24906
24907cat >>confdefs.h <<\_ACEOF
24908#define HAVE_ICONV 1
24909_ACEOF
24910
24911  fi
24912  if test "$am_cv_lib_iconv" = yes; then
24913    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
24914$as_echo_n "checking how to link with libiconv... " >&6; }
24915    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
24916$as_echo "$LIBICONV" >&6; }
24917  else
24918            CPPFLAGS="$am_save_CPPFLAGS"
24919    LIBICONV=
24920    LTLIBICONV=
24921  fi
24922
24923
24924
24925  if test "$am_cv_func_iconv" = yes; then
24926    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
24927$as_echo_n "checking for iconv declaration... " >&6; }
24928    if test "${am_cv_proto_iconv+set}" = set; then
24929  $as_echo_n "(cached) " >&6
24930else
24931
24932      cat >conftest.$ac_ext <<_ACEOF
24933/* confdefs.h.  */
24934_ACEOF
24935cat confdefs.h >>conftest.$ac_ext
24936cat >>conftest.$ac_ext <<_ACEOF
24937/* end confdefs.h.  */
24938
24939#include <stdlib.h>
24940#include <iconv.h>
24941extern
24942#ifdef __cplusplus
24943"C"
24944#endif
24945#if defined(__STDC__) || defined(__cplusplus)
24946size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
24947#else
24948size_t iconv();
24949#endif
24950
24951int
24952main ()
24953{
24954
24955  ;
24956  return 0;
24957}
24958_ACEOF
24959rm -f conftest.$ac_objext
24960if { (ac_try="$ac_compile"
24961case "(($ac_try" in
24962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963  *) ac_try_echo=$ac_try;;
24964esac
24965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24966$as_echo "$ac_try_echo") >&5
24967  (eval "$ac_compile") 2>conftest.er1
24968  ac_status=$?
24969  grep -v '^ *+' conftest.er1 >conftest.err
24970  rm -f conftest.er1
24971  cat conftest.err >&5
24972  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973  (exit $ac_status); } && {
24974	 test -z "$ac_c_werror_flag" ||
24975	 test ! -s conftest.err
24976       } && test -s conftest.$ac_objext; then
24977  am_cv_proto_iconv_arg1=""
24978else
24979  $as_echo "$as_me: failed program was:" >&5
24980sed 's/^/| /' conftest.$ac_ext >&5
24981
24982	am_cv_proto_iconv_arg1="const"
24983fi
24984
24985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24986      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);"
24987fi
24988
24989    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
24990    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
24991         }$am_cv_proto_iconv" >&5
24992$as_echo "${ac_t:-
24993         }$am_cv_proto_iconv" >&6; }
24994
24995cat >>confdefs.h <<_ACEOF
24996#define ICONV_CONST $am_cv_proto_iconv_arg1
24997_ACEOF
24998
24999  fi
25000
25001
25002      { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
25003$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
25004if test "${gt_cv_nl_locale_name+set}" = set; then
25005  $as_echo_n "(cached) " >&6
25006else
25007  cat >conftest.$ac_ext <<_ACEOF
25008/* confdefs.h.  */
25009_ACEOF
25010cat confdefs.h >>conftest.$ac_ext
25011cat >>conftest.$ac_ext <<_ACEOF
25012/* end confdefs.h.  */
25013#include <langinfo.h>
25014#include <locale.h>
25015int
25016main ()
25017{
25018char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
25019       return !cs;
25020
25021  ;
25022  return 0;
25023}
25024_ACEOF
25025rm -f conftest.$ac_objext conftest$ac_exeext
25026if { (ac_try="$ac_link"
25027case "(($ac_try" in
25028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25029  *) ac_try_echo=$ac_try;;
25030esac
25031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25032$as_echo "$ac_try_echo") >&5
25033  (eval "$ac_link") 2>conftest.er1
25034  ac_status=$?
25035  grep -v '^ *+' conftest.er1 >conftest.err
25036  rm -f conftest.er1
25037  cat conftest.err >&5
25038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039  (exit $ac_status); } && {
25040	 test -z "$ac_c_werror_flag" ||
25041	 test ! -s conftest.err
25042       } && test -s conftest$ac_exeext && {
25043	 test "$cross_compiling" = yes ||
25044	 $as_test_x conftest$ac_exeext
25045       }; then
25046  gt_cv_nl_locale_name=yes
25047else
25048  $as_echo "$as_me: failed program was:" >&5
25049sed 's/^/| /' conftest.$ac_ext >&5
25050
25051	gt_cv_nl_locale_name=no
25052fi
25053
25054rm -rf conftest.dSYM
25055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25056      conftest$ac_exeext conftest.$ac_ext
25057
25058fi
25059{ $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
25060$as_echo "$gt_cv_nl_locale_name" >&6; }
25061  if test $gt_cv_nl_locale_name = yes; then
25062
25063cat >>confdefs.h <<\_ACEOF
25064#define HAVE_NL_LOCALE_NAME 1
25065_ACEOF
25066
25067  fi
25068
25069                      for ac_prog in bison
25070do
25071  # Extract the first word of "$ac_prog", so it can be a program name with args.
25072set dummy $ac_prog; ac_word=$2
25073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25074$as_echo_n "checking for $ac_word... " >&6; }
25075if test "${ac_cv_prog_INTLBISON+set}" = set; then
25076  $as_echo_n "(cached) " >&6
25077else
25078  if test -n "$INTLBISON"; then
25079  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
25080else
25081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25082for as_dir in $PATH
25083do
25084  IFS=$as_save_IFS
25085  test -z "$as_dir" && as_dir=.
25086  for ac_exec_ext in '' $ac_executable_extensions; do
25087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25088    ac_cv_prog_INTLBISON="$ac_prog"
25089    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25090    break 2
25091  fi
25092done
25093done
25094IFS=$as_save_IFS
25095
25096fi
25097fi
25098INTLBISON=$ac_cv_prog_INTLBISON
25099if test -n "$INTLBISON"; then
25100  { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
25101$as_echo "$INTLBISON" >&6; }
25102else
25103  { $as_echo "$as_me:$LINENO: result: no" >&5
25104$as_echo "no" >&6; }
25105fi
25106
25107
25108  test -n "$INTLBISON" && break
25109done
25110
25111  if test -z "$INTLBISON"; then
25112    ac_verc_fail=yes
25113  else
25114        { $as_echo "$as_me:$LINENO: checking version of bison" >&5
25115$as_echo_n "checking version of bison... " >&6; }
25116    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
25117    case $ac_prog_version in
25118      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
25119      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
25120         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
25121      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
25122    esac
25123    { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
25124$as_echo "$ac_prog_version" >&6; }
25125  fi
25126  if test $ac_verc_fail = yes; then
25127    INTLBISON=:
25128  fi
25129
25130
25131  { $as_echo "$as_me:$LINENO: checking for long long int" >&5
25132$as_echo_n "checking for long long int... " >&6; }
25133if test "${ac_cv_type_long_long_int+set}" = set; then
25134  $as_echo_n "(cached) " >&6
25135else
25136  cat >conftest.$ac_ext <<_ACEOF
25137
25138  /* confdefs.h.  */
25139_ACEOF
25140cat confdefs.h >>conftest.$ac_ext
25141cat >>conftest.$ac_ext <<_ACEOF
25142/* end confdefs.h.  */
25143/* Test preprocessor.  */
25144      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
25145        error in preprocessor;
25146      #endif
25147      #if ! (18446744073709551615ULL <= -1ull)
25148        error in preprocessor;
25149      #endif
25150      /* Test literals.  */
25151      long long int ll = 9223372036854775807ll;
25152      long long int nll = -9223372036854775807LL;
25153      unsigned long long int ull = 18446744073709551615ULL;
25154      /* Test constant expressions.   */
25155      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
25156		     ? 1 : -1)];
25157      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
25158		     ? 1 : -1)];
25159      int i = 63;
25160int
25161main ()
25162{
25163/* Test availability of runtime routines for shift and division.  */
25164      long long int llmax = 9223372036854775807ll;
25165      unsigned long long int ullmax = 18446744073709551615ull;
25166      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
25167	      | (llmax / ll) | (llmax % ll)
25168	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
25169	      | (ullmax / ull) | (ullmax % ull));
25170  ;
25171  return 0;
25172}
25173
25174_ACEOF
25175rm -f conftest.$ac_objext conftest$ac_exeext
25176if { (ac_try="$ac_link"
25177case "(($ac_try" in
25178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179  *) ac_try_echo=$ac_try;;
25180esac
25181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25182$as_echo "$ac_try_echo") >&5
25183  (eval "$ac_link") 2>conftest.er1
25184  ac_status=$?
25185  grep -v '^ *+' conftest.er1 >conftest.err
25186  rm -f conftest.er1
25187  cat conftest.err >&5
25188  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189  (exit $ac_status); } && {
25190	 test -z "$ac_c_werror_flag" ||
25191	 test ! -s conftest.err
25192       } && test -s conftest$ac_exeext && {
25193	 test "$cross_compiling" = yes ||
25194	 $as_test_x conftest$ac_exeext
25195       }; then
25196  			if test "$cross_compiling" = yes; then
25197  ac_cv_type_long_long_int=yes
25198else
25199  cat >conftest.$ac_ext <<_ACEOF
25200/* confdefs.h.  */
25201_ACEOF
25202cat confdefs.h >>conftest.$ac_ext
25203cat >>conftest.$ac_ext <<_ACEOF
25204/* end confdefs.h.  */
25205#include <limits.h>
25206	       #ifndef LLONG_MAX
25207	       # define HALF \
25208			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
25209	       # define LLONG_MAX (HALF - 1 + HALF)
25210	       #endif
25211int
25212main ()
25213{
25214long long int n = 1;
25215	       int i;
25216	       for (i = 0; ; i++)
25217		 {
25218		   long long int m = n << i;
25219		   if (m >> i != n)
25220		     return 1;
25221		   if (LLONG_MAX / 2 < m)
25222		     break;
25223		 }
25224	       return 0;
25225  ;
25226  return 0;
25227}
25228_ACEOF
25229rm -f conftest$ac_exeext
25230if { (ac_try="$ac_link"
25231case "(($ac_try" in
25232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233  *) ac_try_echo=$ac_try;;
25234esac
25235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25236$as_echo "$ac_try_echo") >&5
25237  (eval "$ac_link") 2>&5
25238  ac_status=$?
25239  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25241  { (case "(($ac_try" in
25242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243  *) ac_try_echo=$ac_try;;
25244esac
25245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25246$as_echo "$ac_try_echo") >&5
25247  (eval "$ac_try") 2>&5
25248  ac_status=$?
25249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250  (exit $ac_status); }; }; then
25251  ac_cv_type_long_long_int=yes
25252else
25253  $as_echo "$as_me: program exited with status $ac_status" >&5
25254$as_echo "$as_me: failed program was:" >&5
25255sed 's/^/| /' conftest.$ac_ext >&5
25256
25257( exit $ac_status )
25258ac_cv_type_long_long_int=no
25259fi
25260rm -rf conftest.dSYM
25261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25262fi
25263
25264
25265else
25266  $as_echo "$as_me: failed program was:" >&5
25267sed 's/^/| /' conftest.$ac_ext >&5
25268
25269	ac_cv_type_long_long_int=no
25270fi
25271
25272rm -rf conftest.dSYM
25273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25274      conftest$ac_exeext conftest.$ac_ext
25275fi
25276{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25277$as_echo "$ac_cv_type_long_long_int" >&6; }
25278  if test $ac_cv_type_long_long_int = yes; then
25279
25280cat >>confdefs.h <<\_ACEOF
25281#define HAVE_LONG_LONG_INT 1
25282_ACEOF
25283
25284  fi
25285
25286
25287  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
25288$as_echo_n "checking for wchar_t... " >&6; }
25289if test "${gt_cv_c_wchar_t+set}" = set; then
25290  $as_echo_n "(cached) " >&6
25291else
25292  cat >conftest.$ac_ext <<_ACEOF
25293/* confdefs.h.  */
25294_ACEOF
25295cat confdefs.h >>conftest.$ac_ext
25296cat >>conftest.$ac_ext <<_ACEOF
25297/* end confdefs.h.  */
25298#include <stddef.h>
25299       wchar_t foo = (wchar_t)'\0';
25300int
25301main ()
25302{
25303
25304  ;
25305  return 0;
25306}
25307_ACEOF
25308rm -f conftest.$ac_objext
25309if { (ac_try="$ac_compile"
25310case "(($ac_try" in
25311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312  *) ac_try_echo=$ac_try;;
25313esac
25314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25315$as_echo "$ac_try_echo") >&5
25316  (eval "$ac_compile") 2>conftest.er1
25317  ac_status=$?
25318  grep -v '^ *+' conftest.er1 >conftest.err
25319  rm -f conftest.er1
25320  cat conftest.err >&5
25321  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322  (exit $ac_status); } && {
25323	 test -z "$ac_c_werror_flag" ||
25324	 test ! -s conftest.err
25325       } && test -s conftest.$ac_objext; then
25326  gt_cv_c_wchar_t=yes
25327else
25328  $as_echo "$as_me: failed program was:" >&5
25329sed 's/^/| /' conftest.$ac_ext >&5
25330
25331	gt_cv_c_wchar_t=no
25332fi
25333
25334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335fi
25336{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
25337$as_echo "$gt_cv_c_wchar_t" >&6; }
25338  if test $gt_cv_c_wchar_t = yes; then
25339
25340cat >>confdefs.h <<\_ACEOF
25341#define HAVE_WCHAR_T 1
25342_ACEOF
25343
25344  fi
25345
25346
25347  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
25348$as_echo_n "checking for wint_t... " >&6; }
25349if test "${gt_cv_c_wint_t+set}" = set; then
25350  $as_echo_n "(cached) " >&6
25351else
25352  cat >conftest.$ac_ext <<_ACEOF
25353/* confdefs.h.  */
25354_ACEOF
25355cat confdefs.h >>conftest.$ac_ext
25356cat >>conftest.$ac_ext <<_ACEOF
25357/* end confdefs.h.  */
25358
25359/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25360   <wchar.h>.
25361   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
25362   before <wchar.h>.  */
25363#include <stddef.h>
25364#include <stdio.h>
25365#include <time.h>
25366#include <wchar.h>
25367       wint_t foo = (wchar_t)'\0';
25368int
25369main ()
25370{
25371
25372  ;
25373  return 0;
25374}
25375_ACEOF
25376rm -f conftest.$ac_objext
25377if { (ac_try="$ac_compile"
25378case "(($ac_try" in
25379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380  *) ac_try_echo=$ac_try;;
25381esac
25382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25383$as_echo "$ac_try_echo") >&5
25384  (eval "$ac_compile") 2>conftest.er1
25385  ac_status=$?
25386  grep -v '^ *+' conftest.er1 >conftest.err
25387  rm -f conftest.er1
25388  cat conftest.err >&5
25389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390  (exit $ac_status); } && {
25391	 test -z "$ac_c_werror_flag" ||
25392	 test ! -s conftest.err
25393       } && test -s conftest.$ac_objext; then
25394  gt_cv_c_wint_t=yes
25395else
25396  $as_echo "$as_me: failed program was:" >&5
25397sed 's/^/| /' conftest.$ac_ext >&5
25398
25399	gt_cv_c_wint_t=no
25400fi
25401
25402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403fi
25404{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
25405$as_echo "$gt_cv_c_wint_t" >&6; }
25406  if test $gt_cv_c_wint_t = yes; then
25407
25408cat >>confdefs.h <<\_ACEOF
25409#define HAVE_WINT_T 1
25410_ACEOF
25411
25412  fi
25413
25414
25415
25416
25417  { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
25418$as_echo_n "checking for intmax_t... " >&6; }
25419if test "${gt_cv_c_intmax_t+set}" = set; then
25420  $as_echo_n "(cached) " >&6
25421else
25422  cat >conftest.$ac_ext <<_ACEOF
25423/* confdefs.h.  */
25424_ACEOF
25425cat confdefs.h >>conftest.$ac_ext
25426cat >>conftest.$ac_ext <<_ACEOF
25427/* end confdefs.h.  */
25428
25429#include <stddef.h>
25430#include <stdlib.h>
25431#if HAVE_STDINT_H_WITH_UINTMAX
25432#include <stdint.h>
25433#endif
25434#if HAVE_INTTYPES_H_WITH_UINTMAX
25435#include <inttypes.h>
25436#endif
25437
25438int
25439main ()
25440{
25441intmax_t x = -1;
25442        return !x;
25443  ;
25444  return 0;
25445}
25446_ACEOF
25447rm -f conftest.$ac_objext
25448if { (ac_try="$ac_compile"
25449case "(($ac_try" in
25450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25451  *) ac_try_echo=$ac_try;;
25452esac
25453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25454$as_echo "$ac_try_echo") >&5
25455  (eval "$ac_compile") 2>conftest.er1
25456  ac_status=$?
25457  grep -v '^ *+' conftest.er1 >conftest.err
25458  rm -f conftest.er1
25459  cat conftest.err >&5
25460  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461  (exit $ac_status); } && {
25462	 test -z "$ac_c_werror_flag" ||
25463	 test ! -s conftest.err
25464       } && test -s conftest.$ac_objext; then
25465  gt_cv_c_intmax_t=yes
25466else
25467  $as_echo "$as_me: failed program was:" >&5
25468sed 's/^/| /' conftest.$ac_ext >&5
25469
25470	gt_cv_c_intmax_t=no
25471fi
25472
25473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25474fi
25475{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
25476$as_echo "$gt_cv_c_intmax_t" >&6; }
25477  if test $gt_cv_c_intmax_t = yes; then
25478
25479cat >>confdefs.h <<\_ACEOF
25480#define HAVE_INTMAX_T 1
25481_ACEOF
25482
25483  fi
25484
25485
25486
25487  { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
25488$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
25489if test "${gt_cv_func_printf_posix+set}" = set; then
25490  $as_echo_n "(cached) " >&6
25491else
25492
25493      if test "$cross_compiling" = yes; then
25494
25495        cat >conftest.$ac_ext <<_ACEOF
25496/* confdefs.h.  */
25497_ACEOF
25498cat confdefs.h >>conftest.$ac_ext
25499cat >>conftest.$ac_ext <<_ACEOF
25500/* end confdefs.h.  */
25501
25502#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
25503  notposix
25504#endif
25505
25506_ACEOF
25507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25508  $EGREP "notposix" >/dev/null 2>&1; then
25509  gt_cv_func_printf_posix="guessing no"
25510else
25511  gt_cv_func_printf_posix="guessing yes"
25512fi
25513rm -f conftest*
25514
25515
25516else
25517  cat >conftest.$ac_ext <<_ACEOF
25518/* confdefs.h.  */
25519_ACEOF
25520cat confdefs.h >>conftest.$ac_ext
25521cat >>conftest.$ac_ext <<_ACEOF
25522/* end confdefs.h.  */
25523
25524#include <stdio.h>
25525#include <string.h>
25526/* The string "%2$d %1$d", with dollar characters protected from the shell's
25527   dollar expansion (possibly an autoconf bug).  */
25528static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25529static char buf[100];
25530int main ()
25531{
25532  sprintf (buf, format, 33, 55);
25533  return (strcmp (buf, "55 33") != 0);
25534}
25535_ACEOF
25536rm -f conftest$ac_exeext
25537if { (ac_try="$ac_link"
25538case "(($ac_try" in
25539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25540  *) ac_try_echo=$ac_try;;
25541esac
25542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25543$as_echo "$ac_try_echo") >&5
25544  (eval "$ac_link") 2>&5
25545  ac_status=$?
25546  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25548  { (case "(($ac_try" in
25549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25550  *) ac_try_echo=$ac_try;;
25551esac
25552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25553$as_echo "$ac_try_echo") >&5
25554  (eval "$ac_try") 2>&5
25555  ac_status=$?
25556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557  (exit $ac_status); }; }; then
25558  gt_cv_func_printf_posix=yes
25559else
25560  $as_echo "$as_me: program exited with status $ac_status" >&5
25561$as_echo "$as_me: failed program was:" >&5
25562sed 's/^/| /' conftest.$ac_ext >&5
25563
25564( exit $ac_status )
25565gt_cv_func_printf_posix=no
25566fi
25567rm -rf conftest.dSYM
25568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25569fi
25570
25571
25572
25573fi
25574{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
25575$as_echo "$gt_cv_func_printf_posix" >&6; }
25576  case $gt_cv_func_printf_posix in
25577    *yes)
25578
25579cat >>confdefs.h <<\_ACEOF
25580#define HAVE_POSIX_PRINTF 1
25581_ACEOF
25582
25583      ;;
25584  esac
25585
25586
25587    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
25588$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
25589if test "${ac_cv_gnu_library_2_1+set}" = set; then
25590  $as_echo_n "(cached) " >&6
25591else
25592  cat >conftest.$ac_ext <<_ACEOF
25593/* confdefs.h.  */
25594_ACEOF
25595cat confdefs.h >>conftest.$ac_ext
25596cat >>conftest.$ac_ext <<_ACEOF
25597/* end confdefs.h.  */
25598
25599#include <features.h>
25600#ifdef __GNU_LIBRARY__
25601 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25602  Lucky GNU user
25603 #endif
25604#endif
25605
25606_ACEOF
25607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25608  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
25609  ac_cv_gnu_library_2_1=yes
25610else
25611  ac_cv_gnu_library_2_1=no
25612fi
25613rm -f conftest*
25614
25615
25616
25617fi
25618{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
25619$as_echo "$ac_cv_gnu_library_2_1" >&6; }
25620
25621    GLIBC21="$ac_cv_gnu_library_2_1"
25622
25623
25624
25625
25626for ac_header in stdint.h
25627do
25628as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25630  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25631$as_echo_n "checking for $ac_header... " >&6; }
25632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25633  $as_echo_n "(cached) " >&6
25634fi
25635ac_res=`eval 'as_val=${'$as_ac_Header'}
25636		 $as_echo "$as_val"'`
25637	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25638$as_echo "$ac_res" >&6; }
25639else
25640  # Is the header compilable?
25641{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25642$as_echo_n "checking $ac_header usability... " >&6; }
25643cat >conftest.$ac_ext <<_ACEOF
25644/* confdefs.h.  */
25645_ACEOF
25646cat confdefs.h >>conftest.$ac_ext
25647cat >>conftest.$ac_ext <<_ACEOF
25648/* end confdefs.h.  */
25649$ac_includes_default
25650#include <$ac_header>
25651_ACEOF
25652rm -f conftest.$ac_objext
25653if { (ac_try="$ac_compile"
25654case "(($ac_try" in
25655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25656  *) ac_try_echo=$ac_try;;
25657esac
25658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25659$as_echo "$ac_try_echo") >&5
25660  (eval "$ac_compile") 2>conftest.er1
25661  ac_status=$?
25662  grep -v '^ *+' conftest.er1 >conftest.err
25663  rm -f conftest.er1
25664  cat conftest.err >&5
25665  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666  (exit $ac_status); } && {
25667	 test -z "$ac_c_werror_flag" ||
25668	 test ! -s conftest.err
25669       } && test -s conftest.$ac_objext; then
25670  ac_header_compiler=yes
25671else
25672  $as_echo "$as_me: failed program was:" >&5
25673sed 's/^/| /' conftest.$ac_ext >&5
25674
25675	ac_header_compiler=no
25676fi
25677
25678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25679{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25680$as_echo "$ac_header_compiler" >&6; }
25681
25682# Is the header present?
25683{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25684$as_echo_n "checking $ac_header presence... " >&6; }
25685cat >conftest.$ac_ext <<_ACEOF
25686/* confdefs.h.  */
25687_ACEOF
25688cat confdefs.h >>conftest.$ac_ext
25689cat >>conftest.$ac_ext <<_ACEOF
25690/* end confdefs.h.  */
25691#include <$ac_header>
25692_ACEOF
25693if { (ac_try="$ac_cpp conftest.$ac_ext"
25694case "(($ac_try" in
25695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696  *) ac_try_echo=$ac_try;;
25697esac
25698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25699$as_echo "$ac_try_echo") >&5
25700  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25701  ac_status=$?
25702  grep -v '^ *+' conftest.er1 >conftest.err
25703  rm -f conftest.er1
25704  cat conftest.err >&5
25705  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706  (exit $ac_status); } >/dev/null && {
25707	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25708	 test ! -s conftest.err
25709       }; then
25710  ac_header_preproc=yes
25711else
25712  $as_echo "$as_me: failed program was:" >&5
25713sed 's/^/| /' conftest.$ac_ext >&5
25714
25715  ac_header_preproc=no
25716fi
25717
25718rm -f conftest.err conftest.$ac_ext
25719{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25720$as_echo "$ac_header_preproc" >&6; }
25721
25722# So?  What about this header?
25723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25724  yes:no: )
25725    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25726$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25727    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25728$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25729    ac_header_preproc=yes
25730    ;;
25731  no:yes:* )
25732    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25733$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25734    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25735$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25736    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25737$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25738    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25739$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25740    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25741$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25742    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25743$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25744
25745    ;;
25746esac
25747{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25748$as_echo_n "checking for $ac_header... " >&6; }
25749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25750  $as_echo_n "(cached) " >&6
25751else
25752  eval "$as_ac_Header=\$ac_header_preproc"
25753fi
25754ac_res=`eval 'as_val=${'$as_ac_Header'}
25755		 $as_echo "$as_val"'`
25756	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25757$as_echo "$ac_res" >&6; }
25758
25759fi
25760as_val=`eval 'as_val=${'$as_ac_Header'}
25761		 $as_echo "$as_val"'`
25762   if test "x$as_val" = x""yes; then
25763  cat >>confdefs.h <<_ACEOF
25764#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25765_ACEOF
25766
25767fi
25768
25769done
25770
25771    { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
25772$as_echo_n "checking for SIZE_MAX... " >&6; }
25773  if test "${gl_cv_size_max+set}" = set; then
25774  $as_echo_n "(cached) " >&6
25775else
25776
25777    gl_cv_size_max=
25778    cat >conftest.$ac_ext <<_ACEOF
25779/* confdefs.h.  */
25780_ACEOF
25781cat confdefs.h >>conftest.$ac_ext
25782cat >>conftest.$ac_ext <<_ACEOF
25783/* end confdefs.h.  */
25784
25785#include <limits.h>
25786#if HAVE_STDINT_H
25787#include <stdint.h>
25788#endif
25789#ifdef SIZE_MAX
25790Found it
25791#endif
25792
25793_ACEOF
25794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25795  $EGREP "Found it" >/dev/null 2>&1; then
25796  gl_cv_size_max=yes
25797fi
25798rm -f conftest*
25799
25800    if test -z "$gl_cv_size_max"; then
25801                        if test "$cross_compiling" = yes; then
25802  # Depending upon the size, compute the lo and hi bounds.
25803cat >conftest.$ac_ext <<_ACEOF
25804/* confdefs.h.  */
25805_ACEOF
25806cat confdefs.h >>conftest.$ac_ext
25807cat >>conftest.$ac_ext <<_ACEOF
25808/* end confdefs.h.  */
25809#include <stddef.h>
25810#include <limits.h>
25811int
25812main ()
25813{
25814static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
25815test_array [0] = 0
25816
25817  ;
25818  return 0;
25819}
25820_ACEOF
25821rm -f conftest.$ac_objext
25822if { (ac_try="$ac_compile"
25823case "(($ac_try" in
25824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825  *) ac_try_echo=$ac_try;;
25826esac
25827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25828$as_echo "$ac_try_echo") >&5
25829  (eval "$ac_compile") 2>conftest.er1
25830  ac_status=$?
25831  grep -v '^ *+' conftest.er1 >conftest.err
25832  rm -f conftest.er1
25833  cat conftest.err >&5
25834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835  (exit $ac_status); } && {
25836	 test -z "$ac_c_werror_flag" ||
25837	 test ! -s conftest.err
25838       } && test -s conftest.$ac_objext; then
25839  ac_lo=0 ac_mid=0
25840  while :; do
25841    cat >conftest.$ac_ext <<_ACEOF
25842/* confdefs.h.  */
25843_ACEOF
25844cat confdefs.h >>conftest.$ac_ext
25845cat >>conftest.$ac_ext <<_ACEOF
25846/* end confdefs.h.  */
25847#include <stddef.h>
25848#include <limits.h>
25849int
25850main ()
25851{
25852static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
25853test_array [0] = 0
25854
25855  ;
25856  return 0;
25857}
25858_ACEOF
25859rm -f conftest.$ac_objext
25860if { (ac_try="$ac_compile"
25861case "(($ac_try" in
25862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863  *) ac_try_echo=$ac_try;;
25864esac
25865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25866$as_echo "$ac_try_echo") >&5
25867  (eval "$ac_compile") 2>conftest.er1
25868  ac_status=$?
25869  grep -v '^ *+' conftest.er1 >conftest.err
25870  rm -f conftest.er1
25871  cat conftest.err >&5
25872  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873  (exit $ac_status); } && {
25874	 test -z "$ac_c_werror_flag" ||
25875	 test ! -s conftest.err
25876       } && test -s conftest.$ac_objext; then
25877  ac_hi=$ac_mid; break
25878else
25879  $as_echo "$as_me: failed program was:" >&5
25880sed 's/^/| /' conftest.$ac_ext >&5
25881
25882	ac_lo=`expr $ac_mid + 1`
25883			if test $ac_lo -le $ac_mid; then
25884			  ac_lo= ac_hi=
25885			  break
25886			fi
25887			ac_mid=`expr 2 '*' $ac_mid + 1`
25888fi
25889
25890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25891  done
25892else
25893  $as_echo "$as_me: failed program was:" >&5
25894sed 's/^/| /' conftest.$ac_ext >&5
25895
25896	cat >conftest.$ac_ext <<_ACEOF
25897/* confdefs.h.  */
25898_ACEOF
25899cat confdefs.h >>conftest.$ac_ext
25900cat >>conftest.$ac_ext <<_ACEOF
25901/* end confdefs.h.  */
25902#include <stddef.h>
25903#include <limits.h>
25904int
25905main ()
25906{
25907static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
25908test_array [0] = 0
25909
25910  ;
25911  return 0;
25912}
25913_ACEOF
25914rm -f conftest.$ac_objext
25915if { (ac_try="$ac_compile"
25916case "(($ac_try" in
25917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25918  *) ac_try_echo=$ac_try;;
25919esac
25920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25921$as_echo "$ac_try_echo") >&5
25922  (eval "$ac_compile") 2>conftest.er1
25923  ac_status=$?
25924  grep -v '^ *+' conftest.er1 >conftest.err
25925  rm -f conftest.er1
25926  cat conftest.err >&5
25927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928  (exit $ac_status); } && {
25929	 test -z "$ac_c_werror_flag" ||
25930	 test ! -s conftest.err
25931       } && test -s conftest.$ac_objext; then
25932  ac_hi=-1 ac_mid=-1
25933  while :; do
25934    cat >conftest.$ac_ext <<_ACEOF
25935/* confdefs.h.  */
25936_ACEOF
25937cat confdefs.h >>conftest.$ac_ext
25938cat >>conftest.$ac_ext <<_ACEOF
25939/* end confdefs.h.  */
25940#include <stddef.h>
25941#include <limits.h>
25942int
25943main ()
25944{
25945static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
25946test_array [0] = 0
25947
25948  ;
25949  return 0;
25950}
25951_ACEOF
25952rm -f conftest.$ac_objext
25953if { (ac_try="$ac_compile"
25954case "(($ac_try" in
25955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956  *) ac_try_echo=$ac_try;;
25957esac
25958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25959$as_echo "$ac_try_echo") >&5
25960  (eval "$ac_compile") 2>conftest.er1
25961  ac_status=$?
25962  grep -v '^ *+' conftest.er1 >conftest.err
25963  rm -f conftest.er1
25964  cat conftest.err >&5
25965  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966  (exit $ac_status); } && {
25967	 test -z "$ac_c_werror_flag" ||
25968	 test ! -s conftest.err
25969       } && test -s conftest.$ac_objext; then
25970  ac_lo=$ac_mid; break
25971else
25972  $as_echo "$as_me: failed program was:" >&5
25973sed 's/^/| /' conftest.$ac_ext >&5
25974
25975	ac_hi=`expr '(' $ac_mid ')' - 1`
25976			if test $ac_mid -le $ac_hi; then
25977			  ac_lo= ac_hi=
25978			  break
25979			fi
25980			ac_mid=`expr 2 '*' $ac_mid`
25981fi
25982
25983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25984  done
25985else
25986  $as_echo "$as_me: failed program was:" >&5
25987sed 's/^/| /' conftest.$ac_ext >&5
25988
25989	ac_lo= ac_hi=
25990fi
25991
25992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993fi
25994
25995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25996# Binary search between lo and hi bounds.
25997while test "x$ac_lo" != "x$ac_hi"; do
25998  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25999  cat >conftest.$ac_ext <<_ACEOF
26000/* confdefs.h.  */
26001_ACEOF
26002cat confdefs.h >>conftest.$ac_ext
26003cat >>conftest.$ac_ext <<_ACEOF
26004/* end confdefs.h.  */
26005#include <stddef.h>
26006#include <limits.h>
26007int
26008main ()
26009{
26010static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
26011test_array [0] = 0
26012
26013  ;
26014  return 0;
26015}
26016_ACEOF
26017rm -f conftest.$ac_objext
26018if { (ac_try="$ac_compile"
26019case "(($ac_try" in
26020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021  *) ac_try_echo=$ac_try;;
26022esac
26023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26024$as_echo "$ac_try_echo") >&5
26025  (eval "$ac_compile") 2>conftest.er1
26026  ac_status=$?
26027  grep -v '^ *+' conftest.er1 >conftest.err
26028  rm -f conftest.er1
26029  cat conftest.err >&5
26030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031  (exit $ac_status); } && {
26032	 test -z "$ac_c_werror_flag" ||
26033	 test ! -s conftest.err
26034       } && test -s conftest.$ac_objext; then
26035  ac_hi=$ac_mid
26036else
26037  $as_echo "$as_me: failed program was:" >&5
26038sed 's/^/| /' conftest.$ac_ext >&5
26039
26040	ac_lo=`expr '(' $ac_mid ')' + 1`
26041fi
26042
26043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26044done
26045case $ac_lo in
26046?*) size_t_bits_minus_1=$ac_lo;;
26047'') size_t_bits_minus_1= ;;
26048esac
26049else
26050  cat >conftest.$ac_ext <<_ACEOF
26051/* confdefs.h.  */
26052_ACEOF
26053cat confdefs.h >>conftest.$ac_ext
26054cat >>conftest.$ac_ext <<_ACEOF
26055/* end confdefs.h.  */
26056#include <stddef.h>
26057#include <limits.h>
26058static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
26059static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
26060#include <stdio.h>
26061#include <stdlib.h>
26062int
26063main ()
26064{
26065
26066  FILE *f = fopen ("conftest.val", "w");
26067  if (! f)
26068    return 1;
26069  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
26070    {
26071      long int i = longval ();
26072      if (i != (sizeof (size_t) * CHAR_BIT - 1))
26073	return 1;
26074      fprintf (f, "%ld", i);
26075    }
26076  else
26077    {
26078      unsigned long int i = ulongval ();
26079      if (i != (sizeof (size_t) * CHAR_BIT - 1))
26080	return 1;
26081      fprintf (f, "%lu", i);
26082    }
26083  /* Do not output a trailing newline, as this causes \r\n confusion
26084     on some platforms.  */
26085  return ferror (f) || fclose (f) != 0;
26086
26087  ;
26088  return 0;
26089}
26090_ACEOF
26091rm -f conftest$ac_exeext
26092if { (ac_try="$ac_link"
26093case "(($ac_try" in
26094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26095  *) ac_try_echo=$ac_try;;
26096esac
26097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26098$as_echo "$ac_try_echo") >&5
26099  (eval "$ac_link") 2>&5
26100  ac_status=$?
26101  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26103  { (case "(($ac_try" in
26104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26105  *) ac_try_echo=$ac_try;;
26106esac
26107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26108$as_echo "$ac_try_echo") >&5
26109  (eval "$ac_try") 2>&5
26110  ac_status=$?
26111  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112  (exit $ac_status); }; }; then
26113  size_t_bits_minus_1=`cat conftest.val`
26114else
26115  $as_echo "$as_me: program exited with status $ac_status" >&5
26116$as_echo "$as_me: failed program was:" >&5
26117sed 's/^/| /' conftest.$ac_ext >&5
26118
26119( exit $ac_status )
26120size_t_bits_minus_1=
26121fi
26122rm -rf conftest.dSYM
26123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26124fi
26125rm -f conftest.val
26126      if test "$cross_compiling" = yes; then
26127  # Depending upon the size, compute the lo and hi bounds.
26128cat >conftest.$ac_ext <<_ACEOF
26129/* confdefs.h.  */
26130_ACEOF
26131cat confdefs.h >>conftest.$ac_ext
26132cat >>conftest.$ac_ext <<_ACEOF
26133/* end confdefs.h.  */
26134#include <stddef.h>
26135int
26136main ()
26137{
26138static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
26139test_array [0] = 0
26140
26141  ;
26142  return 0;
26143}
26144_ACEOF
26145rm -f conftest.$ac_objext
26146if { (ac_try="$ac_compile"
26147case "(($ac_try" in
26148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149  *) ac_try_echo=$ac_try;;
26150esac
26151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26152$as_echo "$ac_try_echo") >&5
26153  (eval "$ac_compile") 2>conftest.er1
26154  ac_status=$?
26155  grep -v '^ *+' conftest.er1 >conftest.err
26156  rm -f conftest.er1
26157  cat conftest.err >&5
26158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159  (exit $ac_status); } && {
26160	 test -z "$ac_c_werror_flag" ||
26161	 test ! -s conftest.err
26162       } && test -s conftest.$ac_objext; then
26163  ac_lo=0 ac_mid=0
26164  while :; do
26165    cat >conftest.$ac_ext <<_ACEOF
26166/* confdefs.h.  */
26167_ACEOF
26168cat confdefs.h >>conftest.$ac_ext
26169cat >>conftest.$ac_ext <<_ACEOF
26170/* end confdefs.h.  */
26171#include <stddef.h>
26172int
26173main ()
26174{
26175static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
26176test_array [0] = 0
26177
26178  ;
26179  return 0;
26180}
26181_ACEOF
26182rm -f conftest.$ac_objext
26183if { (ac_try="$ac_compile"
26184case "(($ac_try" in
26185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186  *) ac_try_echo=$ac_try;;
26187esac
26188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26189$as_echo "$ac_try_echo") >&5
26190  (eval "$ac_compile") 2>conftest.er1
26191  ac_status=$?
26192  grep -v '^ *+' conftest.er1 >conftest.err
26193  rm -f conftest.er1
26194  cat conftest.err >&5
26195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196  (exit $ac_status); } && {
26197	 test -z "$ac_c_werror_flag" ||
26198	 test ! -s conftest.err
26199       } && test -s conftest.$ac_objext; then
26200  ac_hi=$ac_mid; break
26201else
26202  $as_echo "$as_me: failed program was:" >&5
26203sed 's/^/| /' conftest.$ac_ext >&5
26204
26205	ac_lo=`expr $ac_mid + 1`
26206			if test $ac_lo -le $ac_mid; then
26207			  ac_lo= ac_hi=
26208			  break
26209			fi
26210			ac_mid=`expr 2 '*' $ac_mid + 1`
26211fi
26212
26213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26214  done
26215else
26216  $as_echo "$as_me: failed program was:" >&5
26217sed 's/^/| /' conftest.$ac_ext >&5
26218
26219	cat >conftest.$ac_ext <<_ACEOF
26220/* confdefs.h.  */
26221_ACEOF
26222cat confdefs.h >>conftest.$ac_ext
26223cat >>conftest.$ac_ext <<_ACEOF
26224/* end confdefs.h.  */
26225#include <stddef.h>
26226int
26227main ()
26228{
26229static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
26230test_array [0] = 0
26231
26232  ;
26233  return 0;
26234}
26235_ACEOF
26236rm -f conftest.$ac_objext
26237if { (ac_try="$ac_compile"
26238case "(($ac_try" in
26239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26240  *) ac_try_echo=$ac_try;;
26241esac
26242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26243$as_echo "$ac_try_echo") >&5
26244  (eval "$ac_compile") 2>conftest.er1
26245  ac_status=$?
26246  grep -v '^ *+' conftest.er1 >conftest.err
26247  rm -f conftest.er1
26248  cat conftest.err >&5
26249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250  (exit $ac_status); } && {
26251	 test -z "$ac_c_werror_flag" ||
26252	 test ! -s conftest.err
26253       } && test -s conftest.$ac_objext; then
26254  ac_hi=-1 ac_mid=-1
26255  while :; do
26256    cat >conftest.$ac_ext <<_ACEOF
26257/* confdefs.h.  */
26258_ACEOF
26259cat confdefs.h >>conftest.$ac_ext
26260cat >>conftest.$ac_ext <<_ACEOF
26261/* end confdefs.h.  */
26262#include <stddef.h>
26263int
26264main ()
26265{
26266static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
26267test_array [0] = 0
26268
26269  ;
26270  return 0;
26271}
26272_ACEOF
26273rm -f conftest.$ac_objext
26274if { (ac_try="$ac_compile"
26275case "(($ac_try" in
26276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26277  *) ac_try_echo=$ac_try;;
26278esac
26279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26280$as_echo "$ac_try_echo") >&5
26281  (eval "$ac_compile") 2>conftest.er1
26282  ac_status=$?
26283  grep -v '^ *+' conftest.er1 >conftest.err
26284  rm -f conftest.er1
26285  cat conftest.err >&5
26286  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287  (exit $ac_status); } && {
26288	 test -z "$ac_c_werror_flag" ||
26289	 test ! -s conftest.err
26290       } && test -s conftest.$ac_objext; then
26291  ac_lo=$ac_mid; break
26292else
26293  $as_echo "$as_me: failed program was:" >&5
26294sed 's/^/| /' conftest.$ac_ext >&5
26295
26296	ac_hi=`expr '(' $ac_mid ')' - 1`
26297			if test $ac_mid -le $ac_hi; then
26298			  ac_lo= ac_hi=
26299			  break
26300			fi
26301			ac_mid=`expr 2 '*' $ac_mid`
26302fi
26303
26304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26305  done
26306else
26307  $as_echo "$as_me: failed program was:" >&5
26308sed 's/^/| /' conftest.$ac_ext >&5
26309
26310	ac_lo= ac_hi=
26311fi
26312
26313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26314fi
26315
26316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26317# Binary search between lo and hi bounds.
26318while test "x$ac_lo" != "x$ac_hi"; do
26319  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26320  cat >conftest.$ac_ext <<_ACEOF
26321/* confdefs.h.  */
26322_ACEOF
26323cat confdefs.h >>conftest.$ac_ext
26324cat >>conftest.$ac_ext <<_ACEOF
26325/* end confdefs.h.  */
26326#include <stddef.h>
26327int
26328main ()
26329{
26330static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
26331test_array [0] = 0
26332
26333  ;
26334  return 0;
26335}
26336_ACEOF
26337rm -f conftest.$ac_objext
26338if { (ac_try="$ac_compile"
26339case "(($ac_try" in
26340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26341  *) ac_try_echo=$ac_try;;
26342esac
26343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26344$as_echo "$ac_try_echo") >&5
26345  (eval "$ac_compile") 2>conftest.er1
26346  ac_status=$?
26347  grep -v '^ *+' conftest.er1 >conftest.err
26348  rm -f conftest.er1
26349  cat conftest.err >&5
26350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351  (exit $ac_status); } && {
26352	 test -z "$ac_c_werror_flag" ||
26353	 test ! -s conftest.err
26354       } && test -s conftest.$ac_objext; then
26355  ac_hi=$ac_mid
26356else
26357  $as_echo "$as_me: failed program was:" >&5
26358sed 's/^/| /' conftest.$ac_ext >&5
26359
26360	ac_lo=`expr '(' $ac_mid ')' + 1`
26361fi
26362
26363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26364done
26365case $ac_lo in
26366?*) fits_in_uint=$ac_lo;;
26367'') fits_in_uint= ;;
26368esac
26369else
26370  cat >conftest.$ac_ext <<_ACEOF
26371/* confdefs.h.  */
26372_ACEOF
26373cat confdefs.h >>conftest.$ac_ext
26374cat >>conftest.$ac_ext <<_ACEOF
26375/* end confdefs.h.  */
26376#include <stddef.h>
26377static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
26378static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
26379#include <stdio.h>
26380#include <stdlib.h>
26381int
26382main ()
26383{
26384
26385  FILE *f = fopen ("conftest.val", "w");
26386  if (! f)
26387    return 1;
26388  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
26389    {
26390      long int i = longval ();
26391      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
26392	return 1;
26393      fprintf (f, "%ld", i);
26394    }
26395  else
26396    {
26397      unsigned long int i = ulongval ();
26398      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
26399	return 1;
26400      fprintf (f, "%lu", i);
26401    }
26402  /* Do not output a trailing newline, as this causes \r\n confusion
26403     on some platforms.  */
26404  return ferror (f) || fclose (f) != 0;
26405
26406  ;
26407  return 0;
26408}
26409_ACEOF
26410rm -f conftest$ac_exeext
26411if { (ac_try="$ac_link"
26412case "(($ac_try" in
26413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26414  *) ac_try_echo=$ac_try;;
26415esac
26416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26417$as_echo "$ac_try_echo") >&5
26418  (eval "$ac_link") 2>&5
26419  ac_status=$?
26420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26422  { (case "(($ac_try" in
26423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26424  *) ac_try_echo=$ac_try;;
26425esac
26426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26427$as_echo "$ac_try_echo") >&5
26428  (eval "$ac_try") 2>&5
26429  ac_status=$?
26430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431  (exit $ac_status); }; }; then
26432  fits_in_uint=`cat conftest.val`
26433else
26434  $as_echo "$as_me: program exited with status $ac_status" >&5
26435$as_echo "$as_me: failed program was:" >&5
26436sed 's/^/| /' conftest.$ac_ext >&5
26437
26438( exit $ac_status )
26439fits_in_uint=
26440fi
26441rm -rf conftest.dSYM
26442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26443fi
26444rm -f conftest.val
26445      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
26446        if test $fits_in_uint = 1; then
26447                              cat >conftest.$ac_ext <<_ACEOF
26448/* confdefs.h.  */
26449_ACEOF
26450cat confdefs.h >>conftest.$ac_ext
26451cat >>conftest.$ac_ext <<_ACEOF
26452/* end confdefs.h.  */
26453#include <stddef.h>
26454            extern size_t foo;
26455            extern unsigned long foo;
26456
26457int
26458main ()
26459{
26460
26461  ;
26462  return 0;
26463}
26464_ACEOF
26465rm -f conftest.$ac_objext
26466if { (ac_try="$ac_compile"
26467case "(($ac_try" in
26468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469  *) ac_try_echo=$ac_try;;
26470esac
26471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26472$as_echo "$ac_try_echo") >&5
26473  (eval "$ac_compile") 2>conftest.er1
26474  ac_status=$?
26475  grep -v '^ *+' conftest.er1 >conftest.err
26476  rm -f conftest.er1
26477  cat conftest.err >&5
26478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479  (exit $ac_status); } && {
26480	 test -z "$ac_c_werror_flag" ||
26481	 test ! -s conftest.err
26482       } && test -s conftest.$ac_objext; then
26483  fits_in_uint=0
26484else
26485  $as_echo "$as_me: failed program was:" >&5
26486sed 's/^/| /' conftest.$ac_ext >&5
26487
26488
26489fi
26490
26491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26492        fi
26493                                if test $fits_in_uint = 1; then
26494          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
26495        else
26496          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
26497        fi
26498      else
26499                gl_cv_size_max='((size_t)~(size_t)0)'
26500      fi
26501    fi
26502
26503fi
26504
26505  { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
26506$as_echo "$gl_cv_size_max" >&6; }
26507  if test "$gl_cv_size_max" != yes; then
26508
26509cat >>confdefs.h <<_ACEOF
26510#define SIZE_MAX $gl_cv_size_max
26511_ACEOF
26512
26513  fi
26514
26515
26516
26517
26518
26519for ac_header in stdint.h
26520do
26521as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26523  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26524$as_echo_n "checking for $ac_header... " >&6; }
26525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26526  $as_echo_n "(cached) " >&6
26527fi
26528ac_res=`eval 'as_val=${'$as_ac_Header'}
26529		 $as_echo "$as_val"'`
26530	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26531$as_echo "$ac_res" >&6; }
26532else
26533  # Is the header compilable?
26534{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26535$as_echo_n "checking $ac_header usability... " >&6; }
26536cat >conftest.$ac_ext <<_ACEOF
26537/* confdefs.h.  */
26538_ACEOF
26539cat confdefs.h >>conftest.$ac_ext
26540cat >>conftest.$ac_ext <<_ACEOF
26541/* end confdefs.h.  */
26542$ac_includes_default
26543#include <$ac_header>
26544_ACEOF
26545rm -f conftest.$ac_objext
26546if { (ac_try="$ac_compile"
26547case "(($ac_try" in
26548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26549  *) ac_try_echo=$ac_try;;
26550esac
26551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26552$as_echo "$ac_try_echo") >&5
26553  (eval "$ac_compile") 2>conftest.er1
26554  ac_status=$?
26555  grep -v '^ *+' conftest.er1 >conftest.err
26556  rm -f conftest.er1
26557  cat conftest.err >&5
26558  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559  (exit $ac_status); } && {
26560	 test -z "$ac_c_werror_flag" ||
26561	 test ! -s conftest.err
26562       } && test -s conftest.$ac_objext; then
26563  ac_header_compiler=yes
26564else
26565  $as_echo "$as_me: failed program was:" >&5
26566sed 's/^/| /' conftest.$ac_ext >&5
26567
26568	ac_header_compiler=no
26569fi
26570
26571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26572{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26573$as_echo "$ac_header_compiler" >&6; }
26574
26575# Is the header present?
26576{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26577$as_echo_n "checking $ac_header presence... " >&6; }
26578cat >conftest.$ac_ext <<_ACEOF
26579/* confdefs.h.  */
26580_ACEOF
26581cat confdefs.h >>conftest.$ac_ext
26582cat >>conftest.$ac_ext <<_ACEOF
26583/* end confdefs.h.  */
26584#include <$ac_header>
26585_ACEOF
26586if { (ac_try="$ac_cpp conftest.$ac_ext"
26587case "(($ac_try" in
26588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26589  *) ac_try_echo=$ac_try;;
26590esac
26591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26592$as_echo "$ac_try_echo") >&5
26593  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26594  ac_status=$?
26595  grep -v '^ *+' conftest.er1 >conftest.err
26596  rm -f conftest.er1
26597  cat conftest.err >&5
26598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599  (exit $ac_status); } >/dev/null && {
26600	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26601	 test ! -s conftest.err
26602       }; then
26603  ac_header_preproc=yes
26604else
26605  $as_echo "$as_me: failed program was:" >&5
26606sed 's/^/| /' conftest.$ac_ext >&5
26607
26608  ac_header_preproc=no
26609fi
26610
26611rm -f conftest.err conftest.$ac_ext
26612{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26613$as_echo "$ac_header_preproc" >&6; }
26614
26615# So?  What about this header?
26616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26617  yes:no: )
26618    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26619$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26620    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26621$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26622    ac_header_preproc=yes
26623    ;;
26624  no:yes:* )
26625    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26626$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26627    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26628$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26629    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26630$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26631    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26632$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26633    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26634$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26635    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26636$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26637
26638    ;;
26639esac
26640{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26641$as_echo_n "checking for $ac_header... " >&6; }
26642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26643  $as_echo_n "(cached) " >&6
26644else
26645  eval "$as_ac_Header=\$ac_header_preproc"
26646fi
26647ac_res=`eval 'as_val=${'$as_ac_Header'}
26648		 $as_echo "$as_val"'`
26649	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26650$as_echo "$ac_res" >&6; }
26651
26652fi
26653as_val=`eval 'as_val=${'$as_ac_Header'}
26654		 $as_echo "$as_val"'`
26655   if test "x$as_val" = x""yes; then
26656  cat >>confdefs.h <<_ACEOF
26657#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26658_ACEOF
26659
26660fi
26661
26662done
26663
26664
26665
26666    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
26667$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
26668if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
26669  $as_echo_n "(cached) " >&6
26670else
26671  gt_save_LIBS="$LIBS"
26672     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
26673     cat >conftest.$ac_ext <<_ACEOF
26674/* confdefs.h.  */
26675_ACEOF
26676cat confdefs.h >>conftest.$ac_ext
26677cat >>conftest.$ac_ext <<_ACEOF
26678/* end confdefs.h.  */
26679#include <CoreFoundation/CFPreferences.h>
26680int
26681main ()
26682{
26683CFPreferencesCopyAppValue(NULL, NULL)
26684  ;
26685  return 0;
26686}
26687_ACEOF
26688rm -f conftest.$ac_objext conftest$ac_exeext
26689if { (ac_try="$ac_link"
26690case "(($ac_try" in
26691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26692  *) ac_try_echo=$ac_try;;
26693esac
26694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26695$as_echo "$ac_try_echo") >&5
26696  (eval "$ac_link") 2>conftest.er1
26697  ac_status=$?
26698  grep -v '^ *+' conftest.er1 >conftest.err
26699  rm -f conftest.er1
26700  cat conftest.err >&5
26701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702  (exit $ac_status); } && {
26703	 test -z "$ac_c_werror_flag" ||
26704	 test ! -s conftest.err
26705       } && test -s conftest$ac_exeext && {
26706	 test "$cross_compiling" = yes ||
26707	 $as_test_x conftest$ac_exeext
26708       }; then
26709  gt_cv_func_CFPreferencesCopyAppValue=yes
26710else
26711  $as_echo "$as_me: failed program was:" >&5
26712sed 's/^/| /' conftest.$ac_ext >&5
26713
26714	gt_cv_func_CFPreferencesCopyAppValue=no
26715fi
26716
26717rm -rf conftest.dSYM
26718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26719      conftest$ac_exeext conftest.$ac_ext
26720     LIBS="$gt_save_LIBS"
26721fi
26722{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26723$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
26724  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26725
26726cat >>confdefs.h <<\_ACEOF
26727#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26728_ACEOF
26729
26730  fi
26731    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26732$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
26733if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26734  $as_echo_n "(cached) " >&6
26735else
26736  gt_save_LIBS="$LIBS"
26737     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
26738     cat >conftest.$ac_ext <<_ACEOF
26739/* confdefs.h.  */
26740_ACEOF
26741cat confdefs.h >>conftest.$ac_ext
26742cat >>conftest.$ac_ext <<_ACEOF
26743/* end confdefs.h.  */
26744#include <CoreFoundation/CFLocale.h>
26745int
26746main ()
26747{
26748CFLocaleCopyCurrent();
26749  ;
26750  return 0;
26751}
26752_ACEOF
26753rm -f conftest.$ac_objext conftest$ac_exeext
26754if { (ac_try="$ac_link"
26755case "(($ac_try" in
26756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757  *) ac_try_echo=$ac_try;;
26758esac
26759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26760$as_echo "$ac_try_echo") >&5
26761  (eval "$ac_link") 2>conftest.er1
26762  ac_status=$?
26763  grep -v '^ *+' conftest.er1 >conftest.err
26764  rm -f conftest.er1
26765  cat conftest.err >&5
26766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767  (exit $ac_status); } && {
26768	 test -z "$ac_c_werror_flag" ||
26769	 test ! -s conftest.err
26770       } && test -s conftest$ac_exeext && {
26771	 test "$cross_compiling" = yes ||
26772	 $as_test_x conftest$ac_exeext
26773       }; then
26774  gt_cv_func_CFLocaleCopyCurrent=yes
26775else
26776  $as_echo "$as_me: failed program was:" >&5
26777sed 's/^/| /' conftest.$ac_ext >&5
26778
26779	gt_cv_func_CFLocaleCopyCurrent=no
26780fi
26781
26782rm -rf conftest.dSYM
26783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26784      conftest$ac_exeext conftest.$ac_ext
26785     LIBS="$gt_save_LIBS"
26786fi
26787{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26788$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
26789  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26790
26791cat >>confdefs.h <<\_ACEOF
26792#define HAVE_CFLOCALECOPYCURRENT 1
26793_ACEOF
26794
26795  fi
26796  INTL_MACOSX_LIBS=
26797  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26798    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26799  fi
26800
26801
26802
26803
26804
26805
26806
26807  { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26808$as_echo_n "checking for ptrdiff_t... " >&6; }
26809if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26810  $as_echo_n "(cached) " >&6
26811else
26812  ac_cv_type_ptrdiff_t=no
26813cat >conftest.$ac_ext <<_ACEOF
26814/* confdefs.h.  */
26815_ACEOF
26816cat confdefs.h >>conftest.$ac_ext
26817cat >>conftest.$ac_ext <<_ACEOF
26818/* end confdefs.h.  */
26819$ac_includes_default
26820int
26821main ()
26822{
26823if (sizeof (ptrdiff_t))
26824       return 0;
26825  ;
26826  return 0;
26827}
26828_ACEOF
26829rm -f conftest.$ac_objext
26830if { (ac_try="$ac_compile"
26831case "(($ac_try" in
26832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833  *) ac_try_echo=$ac_try;;
26834esac
26835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26836$as_echo "$ac_try_echo") >&5
26837  (eval "$ac_compile") 2>conftest.er1
26838  ac_status=$?
26839  grep -v '^ *+' conftest.er1 >conftest.err
26840  rm -f conftest.er1
26841  cat conftest.err >&5
26842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843  (exit $ac_status); } && {
26844	 test -z "$ac_c_werror_flag" ||
26845	 test ! -s conftest.err
26846       } && test -s conftest.$ac_objext; then
26847  cat >conftest.$ac_ext <<_ACEOF
26848/* confdefs.h.  */
26849_ACEOF
26850cat confdefs.h >>conftest.$ac_ext
26851cat >>conftest.$ac_ext <<_ACEOF
26852/* end confdefs.h.  */
26853$ac_includes_default
26854int
26855main ()
26856{
26857if (sizeof ((ptrdiff_t)))
26858	  return 0;
26859  ;
26860  return 0;
26861}
26862_ACEOF
26863rm -f conftest.$ac_objext
26864if { (ac_try="$ac_compile"
26865case "(($ac_try" in
26866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26867  *) ac_try_echo=$ac_try;;
26868esac
26869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26870$as_echo "$ac_try_echo") >&5
26871  (eval "$ac_compile") 2>conftest.er1
26872  ac_status=$?
26873  grep -v '^ *+' conftest.er1 >conftest.err
26874  rm -f conftest.er1
26875  cat conftest.err >&5
26876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877  (exit $ac_status); } && {
26878	 test -z "$ac_c_werror_flag" ||
26879	 test ! -s conftest.err
26880       } && test -s conftest.$ac_objext; then
26881  :
26882else
26883  $as_echo "$as_me: failed program was:" >&5
26884sed 's/^/| /' conftest.$ac_ext >&5
26885
26886	ac_cv_type_ptrdiff_t=yes
26887fi
26888
26889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26890else
26891  $as_echo "$as_me: failed program was:" >&5
26892sed 's/^/| /' conftest.$ac_ext >&5
26893
26894
26895fi
26896
26897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26898fi
26899{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26900$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
26901if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
26902  :
26903else
26904
26905cat >>confdefs.h <<\_ACEOF
26906#define ptrdiff_t long
26907_ACEOF
26908
26909
26910fi
26911
26912
26913
26914
26915for ac_header in stddef.h stdlib.h string.h
26916do
26917as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26919  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26920$as_echo_n "checking for $ac_header... " >&6; }
26921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26922  $as_echo_n "(cached) " >&6
26923fi
26924ac_res=`eval 'as_val=${'$as_ac_Header'}
26925		 $as_echo "$as_val"'`
26926	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26927$as_echo "$ac_res" >&6; }
26928else
26929  # Is the header compilable?
26930{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26931$as_echo_n "checking $ac_header usability... " >&6; }
26932cat >conftest.$ac_ext <<_ACEOF
26933/* confdefs.h.  */
26934_ACEOF
26935cat confdefs.h >>conftest.$ac_ext
26936cat >>conftest.$ac_ext <<_ACEOF
26937/* end confdefs.h.  */
26938$ac_includes_default
26939#include <$ac_header>
26940_ACEOF
26941rm -f conftest.$ac_objext
26942if { (ac_try="$ac_compile"
26943case "(($ac_try" in
26944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945  *) ac_try_echo=$ac_try;;
26946esac
26947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26948$as_echo "$ac_try_echo") >&5
26949  (eval "$ac_compile") 2>conftest.er1
26950  ac_status=$?
26951  grep -v '^ *+' conftest.er1 >conftest.err
26952  rm -f conftest.er1
26953  cat conftest.err >&5
26954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955  (exit $ac_status); } && {
26956	 test -z "$ac_c_werror_flag" ||
26957	 test ! -s conftest.err
26958       } && test -s conftest.$ac_objext; then
26959  ac_header_compiler=yes
26960else
26961  $as_echo "$as_me: failed program was:" >&5
26962sed 's/^/| /' conftest.$ac_ext >&5
26963
26964	ac_header_compiler=no
26965fi
26966
26967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26968{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26969$as_echo "$ac_header_compiler" >&6; }
26970
26971# Is the header present?
26972{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26973$as_echo_n "checking $ac_header presence... " >&6; }
26974cat >conftest.$ac_ext <<_ACEOF
26975/* confdefs.h.  */
26976_ACEOF
26977cat confdefs.h >>conftest.$ac_ext
26978cat >>conftest.$ac_ext <<_ACEOF
26979/* end confdefs.h.  */
26980#include <$ac_header>
26981_ACEOF
26982if { (ac_try="$ac_cpp conftest.$ac_ext"
26983case "(($ac_try" in
26984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26985  *) ac_try_echo=$ac_try;;
26986esac
26987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26988$as_echo "$ac_try_echo") >&5
26989  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26990  ac_status=$?
26991  grep -v '^ *+' conftest.er1 >conftest.err
26992  rm -f conftest.er1
26993  cat conftest.err >&5
26994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995  (exit $ac_status); } >/dev/null && {
26996	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26997	 test ! -s conftest.err
26998       }; then
26999  ac_header_preproc=yes
27000else
27001  $as_echo "$as_me: failed program was:" >&5
27002sed 's/^/| /' conftest.$ac_ext >&5
27003
27004  ac_header_preproc=no
27005fi
27006
27007rm -f conftest.err conftest.$ac_ext
27008{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27009$as_echo "$ac_header_preproc" >&6; }
27010
27011# So?  What about this header?
27012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27013  yes:no: )
27014    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27015$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27016    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27017$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27018    ac_header_preproc=yes
27019    ;;
27020  no:yes:* )
27021    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27022$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27023    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27024$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27025    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27026$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27027    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27028$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27029    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27030$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27031    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27032$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27033
27034    ;;
27035esac
27036{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27037$as_echo_n "checking for $ac_header... " >&6; }
27038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27039  $as_echo_n "(cached) " >&6
27040else
27041  eval "$as_ac_Header=\$ac_header_preproc"
27042fi
27043ac_res=`eval 'as_val=${'$as_ac_Header'}
27044		 $as_echo "$as_val"'`
27045	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27046$as_echo "$ac_res" >&6; }
27047
27048fi
27049as_val=`eval 'as_val=${'$as_ac_Header'}
27050		 $as_echo "$as_val"'`
27051   if test "x$as_val" = x""yes; then
27052  cat >>confdefs.h <<_ACEOF
27053#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27054_ACEOF
27055
27056fi
27057
27058done
27059
27060
27061
27062
27063
27064
27065
27066
27067for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
27068do
27069as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27070{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27071$as_echo_n "checking for $ac_func... " >&6; }
27072if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27073  $as_echo_n "(cached) " >&6
27074else
27075  cat >conftest.$ac_ext <<_ACEOF
27076/* confdefs.h.  */
27077_ACEOF
27078cat confdefs.h >>conftest.$ac_ext
27079cat >>conftest.$ac_ext <<_ACEOF
27080/* end confdefs.h.  */
27081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27082   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27083#define $ac_func innocuous_$ac_func
27084
27085/* System header to define __stub macros and hopefully few prototypes,
27086    which can conflict with char $ac_func (); below.
27087    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27088    <limits.h> exists even on freestanding compilers.  */
27089
27090#ifdef __STDC__
27091# include <limits.h>
27092#else
27093# include <assert.h>
27094#endif
27095
27096#undef $ac_func
27097
27098/* Override any GCC internal prototype to avoid an error.
27099   Use char because int might match the return type of a GCC
27100   builtin and then its argument prototype would still apply.  */
27101#ifdef __cplusplus
27102extern "C"
27103#endif
27104char $ac_func ();
27105/* The GNU C library defines this for functions which it implements
27106    to always fail with ENOSYS.  Some functions are actually named
27107    something starting with __ and the normal name is an alias.  */
27108#if defined __stub_$ac_func || defined __stub___$ac_func
27109choke me
27110#endif
27111
27112int
27113main ()
27114{
27115return $ac_func ();
27116  ;
27117  return 0;
27118}
27119_ACEOF
27120rm -f conftest.$ac_objext conftest$ac_exeext
27121if { (ac_try="$ac_link"
27122case "(($ac_try" in
27123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27124  *) ac_try_echo=$ac_try;;
27125esac
27126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27127$as_echo "$ac_try_echo") >&5
27128  (eval "$ac_link") 2>conftest.er1
27129  ac_status=$?
27130  grep -v '^ *+' conftest.er1 >conftest.err
27131  rm -f conftest.er1
27132  cat conftest.err >&5
27133  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134  (exit $ac_status); } && {
27135	 test -z "$ac_c_werror_flag" ||
27136	 test ! -s conftest.err
27137       } && test -s conftest$ac_exeext && {
27138	 test "$cross_compiling" = yes ||
27139	 $as_test_x conftest$ac_exeext
27140       }; then
27141  eval "$as_ac_var=yes"
27142else
27143  $as_echo "$as_me: failed program was:" >&5
27144sed 's/^/| /' conftest.$ac_ext >&5
27145
27146	eval "$as_ac_var=no"
27147fi
27148
27149rm -rf conftest.dSYM
27150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27151      conftest$ac_exeext conftest.$ac_ext
27152fi
27153ac_res=`eval 'as_val=${'$as_ac_var'}
27154		 $as_echo "$as_val"'`
27155	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27156$as_echo "$ac_res" >&6; }
27157as_val=`eval 'as_val=${'$as_ac_var'}
27158		 $as_echo "$as_val"'`
27159   if test "x$as_val" = x""yes; then
27160  cat >>confdefs.h <<_ACEOF
27161#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27162_ACEOF
27163
27164fi
27165done
27166
27167
27168
27169  { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
27170$as_echo_n "checking whether _snprintf is declared... " >&6; }
27171if test "${ac_cv_have_decl__snprintf+set}" = set; then
27172  $as_echo_n "(cached) " >&6
27173else
27174  cat >conftest.$ac_ext <<_ACEOF
27175/* confdefs.h.  */
27176_ACEOF
27177cat confdefs.h >>conftest.$ac_ext
27178cat >>conftest.$ac_ext <<_ACEOF
27179/* end confdefs.h.  */
27180#include <stdio.h>
27181int
27182main ()
27183{
27184
27185#ifndef _snprintf
27186  char *p = (char *) _snprintf;
27187#endif
27188
27189  ;
27190  return 0;
27191}
27192_ACEOF
27193rm -f conftest.$ac_objext
27194if { (ac_try="$ac_compile"
27195case "(($ac_try" in
27196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197  *) ac_try_echo=$ac_try;;
27198esac
27199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27200$as_echo "$ac_try_echo") >&5
27201  (eval "$ac_compile") 2>conftest.er1
27202  ac_status=$?
27203  grep -v '^ *+' conftest.er1 >conftest.err
27204  rm -f conftest.er1
27205  cat conftest.err >&5
27206  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207  (exit $ac_status); } && {
27208	 test -z "$ac_c_werror_flag" ||
27209	 test ! -s conftest.err
27210       } && test -s conftest.$ac_objext; then
27211  ac_cv_have_decl__snprintf=yes
27212else
27213  $as_echo "$as_me: failed program was:" >&5
27214sed 's/^/| /' conftest.$ac_ext >&5
27215
27216	ac_cv_have_decl__snprintf=no
27217fi
27218
27219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27220fi
27221{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
27222$as_echo "$ac_cv_have_decl__snprintf" >&6; }
27223  if test $ac_cv_have_decl__snprintf = yes; then
27224    gt_value=1
27225  else
27226    gt_value=0
27227  fi
27228
27229cat >>confdefs.h <<_ACEOF
27230#define HAVE_DECL__SNPRINTF $gt_value
27231_ACEOF
27232
27233
27234
27235  { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
27236$as_echo_n "checking whether _snwprintf is declared... " >&6; }
27237if test "${ac_cv_have_decl__snwprintf+set}" = set; then
27238  $as_echo_n "(cached) " >&6
27239else
27240  cat >conftest.$ac_ext <<_ACEOF
27241/* confdefs.h.  */
27242_ACEOF
27243cat confdefs.h >>conftest.$ac_ext
27244cat >>conftest.$ac_ext <<_ACEOF
27245/* end confdefs.h.  */
27246#include <stdio.h>
27247int
27248main ()
27249{
27250
27251#ifndef _snwprintf
27252  char *p = (char *) _snwprintf;
27253#endif
27254
27255  ;
27256  return 0;
27257}
27258_ACEOF
27259rm -f conftest.$ac_objext
27260if { (ac_try="$ac_compile"
27261case "(($ac_try" in
27262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27263  *) ac_try_echo=$ac_try;;
27264esac
27265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27266$as_echo "$ac_try_echo") >&5
27267  (eval "$ac_compile") 2>conftest.er1
27268  ac_status=$?
27269  grep -v '^ *+' conftest.er1 >conftest.err
27270  rm -f conftest.er1
27271  cat conftest.err >&5
27272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273  (exit $ac_status); } && {
27274	 test -z "$ac_c_werror_flag" ||
27275	 test ! -s conftest.err
27276       } && test -s conftest.$ac_objext; then
27277  ac_cv_have_decl__snwprintf=yes
27278else
27279  $as_echo "$as_me: failed program was:" >&5
27280sed 's/^/| /' conftest.$ac_ext >&5
27281
27282	ac_cv_have_decl__snwprintf=no
27283fi
27284
27285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27286fi
27287{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
27288$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
27289  if test $ac_cv_have_decl__snwprintf = yes; then
27290    gt_value=1
27291  else
27292    gt_value=0
27293  fi
27294
27295cat >>confdefs.h <<_ACEOF
27296#define HAVE_DECL__SNWPRINTF $gt_value
27297_ACEOF
27298
27299
27300
27301
27302  { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
27303$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
27304if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
27305  $as_echo_n "(cached) " >&6
27306else
27307  cat >conftest.$ac_ext <<_ACEOF
27308/* confdefs.h.  */
27309_ACEOF
27310cat confdefs.h >>conftest.$ac_ext
27311cat >>conftest.$ac_ext <<_ACEOF
27312/* end confdefs.h.  */
27313#include <stdio.h>
27314int
27315main ()
27316{
27317
27318#ifndef getc_unlocked
27319  char *p = (char *) getc_unlocked;
27320#endif
27321
27322  ;
27323  return 0;
27324}
27325_ACEOF
27326rm -f conftest.$ac_objext
27327if { (ac_try="$ac_compile"
27328case "(($ac_try" in
27329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27330  *) ac_try_echo=$ac_try;;
27331esac
27332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27333$as_echo "$ac_try_echo") >&5
27334  (eval "$ac_compile") 2>conftest.er1
27335  ac_status=$?
27336  grep -v '^ *+' conftest.er1 >conftest.err
27337  rm -f conftest.er1
27338  cat conftest.err >&5
27339  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340  (exit $ac_status); } && {
27341	 test -z "$ac_c_werror_flag" ||
27342	 test ! -s conftest.err
27343       } && test -s conftest.$ac_objext; then
27344  ac_cv_have_decl_getc_unlocked=yes
27345else
27346  $as_echo "$as_me: failed program was:" >&5
27347sed 's/^/| /' conftest.$ac_ext >&5
27348
27349	ac_cv_have_decl_getc_unlocked=no
27350fi
27351
27352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27353fi
27354{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
27355$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
27356  if test $ac_cv_have_decl_getc_unlocked = yes; then
27357    gt_value=1
27358  else
27359    gt_value=0
27360  fi
27361
27362cat >>confdefs.h <<_ACEOF
27363#define HAVE_DECL_GETC_UNLOCKED $gt_value
27364_ACEOF
27365
27366
27367
27368  case $gt_cv_func_printf_posix in
27369    *yes) HAVE_POSIX_PRINTF=1 ;;
27370    *) HAVE_POSIX_PRINTF=0 ;;
27371  esac
27372
27373  if test "$ac_cv_func_asprintf" = yes; then
27374    HAVE_ASPRINTF=1
27375  else
27376    HAVE_ASPRINTF=0
27377  fi
27378
27379  if test "$ac_cv_func_snprintf" = yes; then
27380    HAVE_SNPRINTF=1
27381  else
27382    HAVE_SNPRINTF=0
27383  fi
27384
27385  if test "$ac_cv_func_wprintf" = yes; then
27386    HAVE_WPRINTF=1
27387  else
27388    HAVE_WPRINTF=0
27389  fi
27390
27391
27392
27393  { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
27394$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
27395if test "${am_cv_langinfo_codeset+set}" = set; then
27396  $as_echo_n "(cached) " >&6
27397else
27398  cat >conftest.$ac_ext <<_ACEOF
27399/* confdefs.h.  */
27400_ACEOF
27401cat confdefs.h >>conftest.$ac_ext
27402cat >>conftest.$ac_ext <<_ACEOF
27403/* end confdefs.h.  */
27404#include <langinfo.h>
27405int
27406main ()
27407{
27408char* cs = nl_langinfo(CODESET); return !cs;
27409  ;
27410  return 0;
27411}
27412_ACEOF
27413rm -f conftest.$ac_objext conftest$ac_exeext
27414if { (ac_try="$ac_link"
27415case "(($ac_try" in
27416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417  *) ac_try_echo=$ac_try;;
27418esac
27419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27420$as_echo "$ac_try_echo") >&5
27421  (eval "$ac_link") 2>conftest.er1
27422  ac_status=$?
27423  grep -v '^ *+' conftest.er1 >conftest.err
27424  rm -f conftest.er1
27425  cat conftest.err >&5
27426  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427  (exit $ac_status); } && {
27428	 test -z "$ac_c_werror_flag" ||
27429	 test ! -s conftest.err
27430       } && test -s conftest$ac_exeext && {
27431	 test "$cross_compiling" = yes ||
27432	 $as_test_x conftest$ac_exeext
27433       }; then
27434  am_cv_langinfo_codeset=yes
27435else
27436  $as_echo "$as_me: failed program was:" >&5
27437sed 's/^/| /' conftest.$ac_ext >&5
27438
27439	am_cv_langinfo_codeset=no
27440fi
27441
27442rm -rf conftest.dSYM
27443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27444      conftest$ac_exeext conftest.$ac_ext
27445
27446fi
27447{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
27448$as_echo "$am_cv_langinfo_codeset" >&6; }
27449  if test $am_cv_langinfo_codeset = yes; then
27450
27451cat >>confdefs.h <<\_ACEOF
27452#define HAVE_LANGINFO_CODESET 1
27453_ACEOF
27454
27455  fi
27456
27457
27458  { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
27459$as_echo_n "checking for LC_MESSAGES... " >&6; }
27460if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
27461  $as_echo_n "(cached) " >&6
27462else
27463  cat >conftest.$ac_ext <<_ACEOF
27464/* confdefs.h.  */
27465_ACEOF
27466cat confdefs.h >>conftest.$ac_ext
27467cat >>conftest.$ac_ext <<_ACEOF
27468/* end confdefs.h.  */
27469#include <locale.h>
27470int
27471main ()
27472{
27473return LC_MESSAGES
27474  ;
27475  return 0;
27476}
27477_ACEOF
27478rm -f conftest.$ac_objext conftest$ac_exeext
27479if { (ac_try="$ac_link"
27480case "(($ac_try" in
27481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482  *) ac_try_echo=$ac_try;;
27483esac
27484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27485$as_echo "$ac_try_echo") >&5
27486  (eval "$ac_link") 2>conftest.er1
27487  ac_status=$?
27488  grep -v '^ *+' conftest.er1 >conftest.err
27489  rm -f conftest.er1
27490  cat conftest.err >&5
27491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492  (exit $ac_status); } && {
27493	 test -z "$ac_c_werror_flag" ||
27494	 test ! -s conftest.err
27495       } && test -s conftest$ac_exeext && {
27496	 test "$cross_compiling" = yes ||
27497	 $as_test_x conftest$ac_exeext
27498       }; then
27499  gt_cv_val_LC_MESSAGES=yes
27500else
27501  $as_echo "$as_me: failed program was:" >&5
27502sed 's/^/| /' conftest.$ac_ext >&5
27503
27504	gt_cv_val_LC_MESSAGES=no
27505fi
27506
27507rm -rf conftest.dSYM
27508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27509      conftest$ac_exeext conftest.$ac_ext
27510fi
27511{ $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
27512$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
27513  if test $gt_cv_val_LC_MESSAGES = yes; then
27514
27515cat >>confdefs.h <<\_ACEOF
27516#define HAVE_LC_MESSAGES 1
27517_ACEOF
27518
27519  fi
27520
27521
27522                if test "$enable_shared" = yes; then
27523    case "$host_os" in
27524      mingw* | cygwin*) is_woe32dll=yes ;;
27525      *) is_woe32dll=no ;;
27526    esac
27527  else
27528    is_woe32dll=no
27529  fi
27530  WOE32DLL=$is_woe32dll
27531
27532
27533      case "$host_os" in
27534    mingw* | cygwin*) is_woe32=yes ;;
27535    *) is_woe32=no ;;
27536  esac
27537  WOE32=$is_woe32
27538
27539  if test $WOE32 = yes; then
27540        if test -n "$ac_tool_prefix"; then
27541  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
27542set dummy ${ac_tool_prefix}windres; ac_word=$2
27543{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27544$as_echo_n "checking for $ac_word... " >&6; }
27545if test "${ac_cv_prog_WINDRES+set}" = set; then
27546  $as_echo_n "(cached) " >&6
27547else
27548  if test -n "$WINDRES"; then
27549  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
27550else
27551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27552for as_dir in $PATH
27553do
27554  IFS=$as_save_IFS
27555  test -z "$as_dir" && as_dir=.
27556  for ac_exec_ext in '' $ac_executable_extensions; do
27557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27558    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
27559    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27560    break 2
27561  fi
27562done
27563done
27564IFS=$as_save_IFS
27565
27566fi
27567fi
27568WINDRES=$ac_cv_prog_WINDRES
27569if test -n "$WINDRES"; then
27570  { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
27571$as_echo "$WINDRES" >&6; }
27572else
27573  { $as_echo "$as_me:$LINENO: result: no" >&5
27574$as_echo "no" >&6; }
27575fi
27576
27577
27578fi
27579if test -z "$ac_cv_prog_WINDRES"; then
27580  ac_ct_WINDRES=$WINDRES
27581  # Extract the first word of "windres", so it can be a program name with args.
27582set dummy windres; ac_word=$2
27583{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27584$as_echo_n "checking for $ac_word... " >&6; }
27585if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
27586  $as_echo_n "(cached) " >&6
27587else
27588  if test -n "$ac_ct_WINDRES"; then
27589  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
27590else
27591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27592for as_dir in $PATH
27593do
27594  IFS=$as_save_IFS
27595  test -z "$as_dir" && as_dir=.
27596  for ac_exec_ext in '' $ac_executable_extensions; do
27597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27598    ac_cv_prog_ac_ct_WINDRES="windres"
27599    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27600    break 2
27601  fi
27602done
27603done
27604IFS=$as_save_IFS
27605
27606fi
27607fi
27608ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
27609if test -n "$ac_ct_WINDRES"; then
27610  { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
27611$as_echo "$ac_ct_WINDRES" >&6; }
27612else
27613  { $as_echo "$as_me:$LINENO: result: no" >&5
27614$as_echo "no" >&6; }
27615fi
27616
27617  if test "x$ac_ct_WINDRES" = x; then
27618    WINDRES=""
27619  else
27620    case $cross_compiling:$ac_tool_warned in
27621yes:)
27622{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
27623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27624ac_tool_warned=yes ;;
27625esac
27626    WINDRES=$ac_ct_WINDRES
27627  fi
27628else
27629  WINDRES="$ac_cv_prog_WINDRES"
27630fi
27631
27632  fi
27633
27634              case "$host_os" in
27635    hpux*) LTLIBC="" ;;
27636    *)     LTLIBC="-lc" ;;
27637  esac
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
27666$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
27667if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
27668  $as_echo_n "(cached) " >&6
27669else
27670  gt_save_LIBS="$LIBS"
27671     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27672     cat >conftest.$ac_ext <<_ACEOF
27673/* confdefs.h.  */
27674_ACEOF
27675cat confdefs.h >>conftest.$ac_ext
27676cat >>conftest.$ac_ext <<_ACEOF
27677/* end confdefs.h.  */
27678#include <CoreFoundation/CFPreferences.h>
27679int
27680main ()
27681{
27682CFPreferencesCopyAppValue(NULL, NULL)
27683  ;
27684  return 0;
27685}
27686_ACEOF
27687rm -f conftest.$ac_objext conftest$ac_exeext
27688if { (ac_try="$ac_link"
27689case "(($ac_try" in
27690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27691  *) ac_try_echo=$ac_try;;
27692esac
27693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27694$as_echo "$ac_try_echo") >&5
27695  (eval "$ac_link") 2>conftest.er1
27696  ac_status=$?
27697  grep -v '^ *+' conftest.er1 >conftest.err
27698  rm -f conftest.er1
27699  cat conftest.err >&5
27700  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701  (exit $ac_status); } && {
27702	 test -z "$ac_c_werror_flag" ||
27703	 test ! -s conftest.err
27704       } && test -s conftest$ac_exeext && {
27705	 test "$cross_compiling" = yes ||
27706	 $as_test_x conftest$ac_exeext
27707       }; then
27708  gt_cv_func_CFPreferencesCopyAppValue=yes
27709else
27710  $as_echo "$as_me: failed program was:" >&5
27711sed 's/^/| /' conftest.$ac_ext >&5
27712
27713	gt_cv_func_CFPreferencesCopyAppValue=no
27714fi
27715
27716rm -rf conftest.dSYM
27717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27718      conftest$ac_exeext conftest.$ac_ext
27719     LIBS="$gt_save_LIBS"
27720fi
27721{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
27722$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
27723  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
27724
27725cat >>confdefs.h <<\_ACEOF
27726#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
27727_ACEOF
27728
27729  fi
27730    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
27731$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
27732if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
27733  $as_echo_n "(cached) " >&6
27734else
27735  gt_save_LIBS="$LIBS"
27736     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27737     cat >conftest.$ac_ext <<_ACEOF
27738/* confdefs.h.  */
27739_ACEOF
27740cat confdefs.h >>conftest.$ac_ext
27741cat >>conftest.$ac_ext <<_ACEOF
27742/* end confdefs.h.  */
27743#include <CoreFoundation/CFLocale.h>
27744int
27745main ()
27746{
27747CFLocaleCopyCurrent();
27748  ;
27749  return 0;
27750}
27751_ACEOF
27752rm -f conftest.$ac_objext conftest$ac_exeext
27753if { (ac_try="$ac_link"
27754case "(($ac_try" in
27755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756  *) ac_try_echo=$ac_try;;
27757esac
27758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27759$as_echo "$ac_try_echo") >&5
27760  (eval "$ac_link") 2>conftest.er1
27761  ac_status=$?
27762  grep -v '^ *+' conftest.er1 >conftest.err
27763  rm -f conftest.er1
27764  cat conftest.err >&5
27765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766  (exit $ac_status); } && {
27767	 test -z "$ac_c_werror_flag" ||
27768	 test ! -s conftest.err
27769       } && test -s conftest$ac_exeext && {
27770	 test "$cross_compiling" = yes ||
27771	 $as_test_x conftest$ac_exeext
27772       }; then
27773  gt_cv_func_CFLocaleCopyCurrent=yes
27774else
27775  $as_echo "$as_me: failed program was:" >&5
27776sed 's/^/| /' conftest.$ac_ext >&5
27777
27778	gt_cv_func_CFLocaleCopyCurrent=no
27779fi
27780
27781rm -rf conftest.dSYM
27782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27783      conftest$ac_exeext conftest.$ac_ext
27784     LIBS="$gt_save_LIBS"
27785fi
27786{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
27787$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
27788  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27789
27790cat >>confdefs.h <<\_ACEOF
27791#define HAVE_CFLOCALECOPYCURRENT 1
27792_ACEOF
27793
27794  fi
27795  INTL_MACOSX_LIBS=
27796  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27797    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
27798  fi
27799
27800
27801
27802
27803
27804
27805    BUILD_INCLUDED_LIBINTL=no
27806    USE_INCLUDED_LIBINTL=no
27807
27808  LIBINTL=
27809  LTLIBINTL=
27810  POSUB=
27811
27812    case " $gt_needs " in
27813    *" need-formatstring-macros "*) gt_api_version=3 ;;
27814    *" need-ngettext "*) gt_api_version=2 ;;
27815    *) gt_api_version=1 ;;
27816  esac
27817  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
27818  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
27819
27820    if test "$USE_NLS" = "yes"; then
27821    gt_use_preinstalled_gnugettext=no
27822
27823      { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
27824$as_echo_n "checking whether included gettext is requested... " >&6; }
27825
27826# Check whether --with-included-gettext was given.
27827if test "${with_included_gettext+set}" = set; then
27828  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
27829else
27830  nls_cv_force_use_gnu_gettext=no
27831fi
27832
27833      { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
27834$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
27835
27836      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
27837      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
27838
27839
27840        if test $gt_api_version -ge 3; then
27841          gt_revision_test_code='
27842#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
27843#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
27844#endif
27845typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
27846'
27847        else
27848          gt_revision_test_code=
27849        fi
27850        if test $gt_api_version -ge 2; then
27851          gt_expression_test_code=' + * ngettext ("", "", 0)'
27852        else
27853          gt_expression_test_code=
27854        fi
27855
27856        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
27857$as_echo_n "checking for GNU gettext in libc... " >&6; }
27858if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
27859  $as_echo_n "(cached) " >&6
27860else
27861  cat >conftest.$ac_ext <<_ACEOF
27862/* confdefs.h.  */
27863_ACEOF
27864cat confdefs.h >>conftest.$ac_ext
27865cat >>conftest.$ac_ext <<_ACEOF
27866/* end confdefs.h.  */
27867#include <libintl.h>
27868$gt_revision_test_code
27869extern int _nl_msg_cat_cntr;
27870extern int *_nl_domain_bindings;
27871int
27872main ()
27873{
27874bindtextdomain ("", "");
27875return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
27876  ;
27877  return 0;
27878}
27879_ACEOF
27880rm -f conftest.$ac_objext conftest$ac_exeext
27881if { (ac_try="$ac_link"
27882case "(($ac_try" in
27883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27884  *) ac_try_echo=$ac_try;;
27885esac
27886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27887$as_echo "$ac_try_echo") >&5
27888  (eval "$ac_link") 2>conftest.er1
27889  ac_status=$?
27890  grep -v '^ *+' conftest.er1 >conftest.err
27891  rm -f conftest.er1
27892  cat conftest.err >&5
27893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894  (exit $ac_status); } && {
27895	 test -z "$ac_c_werror_flag" ||
27896	 test ! -s conftest.err
27897       } && test -s conftest$ac_exeext && {
27898	 test "$cross_compiling" = yes ||
27899	 $as_test_x conftest$ac_exeext
27900       }; then
27901  eval "$gt_func_gnugettext_libc=yes"
27902else
27903  $as_echo "$as_me: failed program was:" >&5
27904sed 's/^/| /' conftest.$ac_ext >&5
27905
27906	eval "$gt_func_gnugettext_libc=no"
27907fi
27908
27909rm -rf conftest.dSYM
27910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27911      conftest$ac_exeext conftest.$ac_ext
27912fi
27913ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
27914		 $as_echo "$as_val"'`
27915	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27916$as_echo "$ac_res" >&6; }
27917
27918        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
27919
27920
27921
27922
27923
27924    use_additional=yes
27925
27926  acl_save_prefix="$prefix"
27927  prefix="$acl_final_prefix"
27928  acl_save_exec_prefix="$exec_prefix"
27929  exec_prefix="$acl_final_exec_prefix"
27930
27931    eval additional_includedir=\"$includedir\"
27932    eval additional_libdir=\"$libdir\"
27933
27934  exec_prefix="$acl_save_exec_prefix"
27935  prefix="$acl_save_prefix"
27936
27937
27938# Check whether --with-libintl-prefix was given.
27939if test "${with_libintl_prefix+set}" = set; then
27940  withval=$with_libintl_prefix;
27941    if test "X$withval" = "Xno"; then
27942      use_additional=no
27943    else
27944      if test "X$withval" = "X"; then
27945
27946  acl_save_prefix="$prefix"
27947  prefix="$acl_final_prefix"
27948  acl_save_exec_prefix="$exec_prefix"
27949  exec_prefix="$acl_final_exec_prefix"
27950
27951          eval additional_includedir=\"$includedir\"
27952          eval additional_libdir=\"$libdir\"
27953
27954  exec_prefix="$acl_save_exec_prefix"
27955  prefix="$acl_save_prefix"
27956
27957      else
27958        additional_includedir="$withval/include"
27959        additional_libdir="$withval/$acl_libdirstem"
27960      fi
27961    fi
27962
27963fi
27964
27965      LIBINTL=
27966  LTLIBINTL=
27967  INCINTL=
27968  LIBINTL_PREFIX=
27969  rpathdirs=
27970  ltrpathdirs=
27971  names_already_handled=
27972  names_next_round='intl '
27973  while test -n "$names_next_round"; do
27974    names_this_round="$names_next_round"
27975    names_next_round=
27976    for name in $names_this_round; do
27977      already_handled=
27978      for n in $names_already_handled; do
27979        if test "$n" = "$name"; then
27980          already_handled=yes
27981          break
27982        fi
27983      done
27984      if test -z "$already_handled"; then
27985        names_already_handled="$names_already_handled $name"
27986                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27987        eval value=\"\$HAVE_LIB$uppername\"
27988        if test -n "$value"; then
27989          if test "$value" = yes; then
27990            eval value=\"\$LIB$uppername\"
27991            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
27992            eval value=\"\$LTLIB$uppername\"
27993            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
27994          else
27995                                    :
27996          fi
27997        else
27998                              found_dir=
27999          found_la=
28000          found_so=
28001          found_a=
28002          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
28003          if test -n "$acl_shlibext"; then
28004            shrext=".$acl_shlibext"             # typically: shrext=.so
28005          else
28006            shrext=
28007          fi
28008          if test $use_additional = yes; then
28009            dir="$additional_libdir"
28010                                    if test -n "$acl_shlibext"; then
28011              if test -f "$dir/$libname$shrext"; then
28012                found_dir="$dir"
28013                found_so="$dir/$libname$shrext"
28014              else
28015                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28016                  ver=`(cd "$dir" && \
28017                        for f in "$libname$shrext".*; do echo "$f"; done \
28018                        | sed -e "s,^$libname$shrext\\\\.,," \
28019                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28020                        | sed 1q ) 2>/dev/null`
28021                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28022                    found_dir="$dir"
28023                    found_so="$dir/$libname$shrext.$ver"
28024                  fi
28025                else
28026                  eval library_names=\"$acl_library_names_spec\"
28027                  for f in $library_names; do
28028                    if test -f "$dir/$f"; then
28029                      found_dir="$dir"
28030                      found_so="$dir/$f"
28031                      break
28032                    fi
28033                  done
28034                fi
28035              fi
28036            fi
28037                        if test "X$found_dir" = "X"; then
28038              if test -f "$dir/$libname.$acl_libext"; then
28039                found_dir="$dir"
28040                found_a="$dir/$libname.$acl_libext"
28041              fi
28042            fi
28043            if test "X$found_dir" != "X"; then
28044              if test -f "$dir/$libname.la"; then
28045                found_la="$dir/$libname.la"
28046              fi
28047            fi
28048          fi
28049          if test "X$found_dir" = "X"; then
28050            for x in $LDFLAGS $LTLIBINTL; do
28051
28052  acl_save_prefix="$prefix"
28053  prefix="$acl_final_prefix"
28054  acl_save_exec_prefix="$exec_prefix"
28055  exec_prefix="$acl_final_exec_prefix"
28056  eval x=\"$x\"
28057  exec_prefix="$acl_save_exec_prefix"
28058  prefix="$acl_save_prefix"
28059
28060              case "$x" in
28061                -L*)
28062                  dir=`echo "X$x" | sed -e 's/^X-L//'`
28063                                    if test -n "$acl_shlibext"; then
28064                    if test -f "$dir/$libname$shrext"; then
28065                      found_dir="$dir"
28066                      found_so="$dir/$libname$shrext"
28067                    else
28068                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28069                        ver=`(cd "$dir" && \
28070                              for f in "$libname$shrext".*; do echo "$f"; done \
28071                              | sed -e "s,^$libname$shrext\\\\.,," \
28072                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28073                              | sed 1q ) 2>/dev/null`
28074                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28075                          found_dir="$dir"
28076                          found_so="$dir/$libname$shrext.$ver"
28077                        fi
28078                      else
28079                        eval library_names=\"$acl_library_names_spec\"
28080                        for f in $library_names; do
28081                          if test -f "$dir/$f"; then
28082                            found_dir="$dir"
28083                            found_so="$dir/$f"
28084                            break
28085                          fi
28086                        done
28087                      fi
28088                    fi
28089                  fi
28090                                    if test "X$found_dir" = "X"; then
28091                    if test -f "$dir/$libname.$acl_libext"; then
28092                      found_dir="$dir"
28093                      found_a="$dir/$libname.$acl_libext"
28094                    fi
28095                  fi
28096                  if test "X$found_dir" != "X"; then
28097                    if test -f "$dir/$libname.la"; then
28098                      found_la="$dir/$libname.la"
28099                    fi
28100                  fi
28101                  ;;
28102              esac
28103              if test "X$found_dir" != "X"; then
28104                break
28105              fi
28106            done
28107          fi
28108          if test "X$found_dir" != "X"; then
28109                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
28110            if test "X$found_so" != "X"; then
28111                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
28112                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28113              else
28114                                                                                haveit=
28115                for x in $ltrpathdirs; do
28116                  if test "X$x" = "X$found_dir"; then
28117                    haveit=yes
28118                    break
28119                  fi
28120                done
28121                if test -z "$haveit"; then
28122                  ltrpathdirs="$ltrpathdirs $found_dir"
28123                fi
28124                                if test "$acl_hardcode_direct" = yes; then
28125                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28126                else
28127                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
28128                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28129                                                            haveit=
28130                    for x in $rpathdirs; do
28131                      if test "X$x" = "X$found_dir"; then
28132                        haveit=yes
28133                        break
28134                      fi
28135                    done
28136                    if test -z "$haveit"; then
28137                      rpathdirs="$rpathdirs $found_dir"
28138                    fi
28139                  else
28140                                                                                haveit=
28141                    for x in $LDFLAGS $LIBINTL; do
28142
28143  acl_save_prefix="$prefix"
28144  prefix="$acl_final_prefix"
28145  acl_save_exec_prefix="$exec_prefix"
28146  exec_prefix="$acl_final_exec_prefix"
28147  eval x=\"$x\"
28148  exec_prefix="$acl_save_exec_prefix"
28149  prefix="$acl_save_prefix"
28150
28151                      if test "X$x" = "X-L$found_dir"; then
28152                        haveit=yes
28153                        break
28154                      fi
28155                    done
28156                    if test -z "$haveit"; then
28157                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
28158                    fi
28159                    if test "$acl_hardcode_minus_L" != no; then
28160                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28161                    else
28162                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28163                    fi
28164                  fi
28165                fi
28166              fi
28167            else
28168              if test "X$found_a" != "X"; then
28169                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
28170              else
28171                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
28172              fi
28173            fi
28174                        additional_includedir=
28175            case "$found_dir" in
28176              */$acl_libdirstem | */$acl_libdirstem/)
28177                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28178                LIBINTL_PREFIX="$basedir"
28179                additional_includedir="$basedir/include"
28180                ;;
28181            esac
28182            if test "X$additional_includedir" != "X"; then
28183                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
28184                haveit=
28185                if test "X$additional_includedir" = "X/usr/local/include"; then
28186                  if test -n "$GCC"; then
28187                    case $host_os in
28188                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28189                    esac
28190                  fi
28191                fi
28192                if test -z "$haveit"; then
28193                  for x in $CPPFLAGS $INCINTL; do
28194
28195  acl_save_prefix="$prefix"
28196  prefix="$acl_final_prefix"
28197  acl_save_exec_prefix="$exec_prefix"
28198  exec_prefix="$acl_final_exec_prefix"
28199  eval x=\"$x\"
28200  exec_prefix="$acl_save_exec_prefix"
28201  prefix="$acl_save_prefix"
28202
28203                    if test "X$x" = "X-I$additional_includedir"; then
28204                      haveit=yes
28205                      break
28206                    fi
28207                  done
28208                  if test -z "$haveit"; then
28209                    if test -d "$additional_includedir"; then
28210                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
28211                    fi
28212                  fi
28213                fi
28214              fi
28215            fi
28216                        if test -n "$found_la"; then
28217                                                        save_libdir="$libdir"
28218              case "$found_la" in
28219                */* | *\\*) . "$found_la" ;;
28220                *) . "./$found_la" ;;
28221              esac
28222              libdir="$save_libdir"
28223                            for dep in $dependency_libs; do
28224                case "$dep" in
28225                  -L*)
28226                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28227                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
28228                      haveit=
28229                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
28230                        if test -n "$GCC"; then
28231                          case $host_os in
28232                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28233                          esac
28234                        fi
28235                      fi
28236                      if test -z "$haveit"; then
28237                        haveit=
28238                        for x in $LDFLAGS $LIBINTL; do
28239
28240  acl_save_prefix="$prefix"
28241  prefix="$acl_final_prefix"
28242  acl_save_exec_prefix="$exec_prefix"
28243  exec_prefix="$acl_final_exec_prefix"
28244  eval x=\"$x\"
28245  exec_prefix="$acl_save_exec_prefix"
28246  prefix="$acl_save_prefix"
28247
28248                          if test "X$x" = "X-L$additional_libdir"; then
28249                            haveit=yes
28250                            break
28251                          fi
28252                        done
28253                        if test -z "$haveit"; then
28254                          if test -d "$additional_libdir"; then
28255                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
28256                          fi
28257                        fi
28258                        haveit=
28259                        for x in $LDFLAGS $LTLIBINTL; do
28260
28261  acl_save_prefix="$prefix"
28262  prefix="$acl_final_prefix"
28263  acl_save_exec_prefix="$exec_prefix"
28264  exec_prefix="$acl_final_exec_prefix"
28265  eval x=\"$x\"
28266  exec_prefix="$acl_save_exec_prefix"
28267  prefix="$acl_save_prefix"
28268
28269                          if test "X$x" = "X-L$additional_libdir"; then
28270                            haveit=yes
28271                            break
28272                          fi
28273                        done
28274                        if test -z "$haveit"; then
28275                          if test -d "$additional_libdir"; then
28276                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
28277                          fi
28278                        fi
28279                      fi
28280                    fi
28281                    ;;
28282                  -R*)
28283                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
28284                    if test "$enable_rpath" != no; then
28285                                                                  haveit=
28286                      for x in $rpathdirs; do
28287                        if test "X$x" = "X$dir"; then
28288                          haveit=yes
28289                          break
28290                        fi
28291                      done
28292                      if test -z "$haveit"; then
28293                        rpathdirs="$rpathdirs $dir"
28294                      fi
28295                                                                  haveit=
28296                      for x in $ltrpathdirs; do
28297                        if test "X$x" = "X$dir"; then
28298                          haveit=yes
28299                          break
28300                        fi
28301                      done
28302                      if test -z "$haveit"; then
28303                        ltrpathdirs="$ltrpathdirs $dir"
28304                      fi
28305                    fi
28306                    ;;
28307                  -l*)
28308                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28309                    ;;
28310                  *.la)
28311                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28312                    ;;
28313                  *)
28314                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
28315                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
28316                    ;;
28317                esac
28318              done
28319            fi
28320          else
28321                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28322            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
28323          fi
28324        fi
28325      fi
28326    done
28327  done
28328  if test "X$rpathdirs" != "X"; then
28329    if test -n "$acl_hardcode_libdir_separator"; then
28330                        alldirs=
28331      for found_dir in $rpathdirs; do
28332        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
28333      done
28334            acl_save_libdir="$libdir"
28335      libdir="$alldirs"
28336      eval flag=\"$acl_hardcode_libdir_flag_spec\"
28337      libdir="$acl_save_libdir"
28338      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28339    else
28340            for found_dir in $rpathdirs; do
28341        acl_save_libdir="$libdir"
28342        libdir="$found_dir"
28343        eval flag=\"$acl_hardcode_libdir_flag_spec\"
28344        libdir="$acl_save_libdir"
28345        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28346      done
28347    fi
28348  fi
28349  if test "X$ltrpathdirs" != "X"; then
28350            for found_dir in $ltrpathdirs; do
28351      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
28352    done
28353  fi
28354
28355          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
28356$as_echo_n "checking for GNU gettext in libintl... " >&6; }
28357if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
28358  $as_echo_n "(cached) " >&6
28359else
28360  gt_save_CPPFLAGS="$CPPFLAGS"
28361            CPPFLAGS="$CPPFLAGS $INCINTL"
28362            gt_save_LIBS="$LIBS"
28363            LIBS="$LIBS $LIBINTL"
28364                        cat >conftest.$ac_ext <<_ACEOF
28365/* confdefs.h.  */
28366_ACEOF
28367cat confdefs.h >>conftest.$ac_ext
28368cat >>conftest.$ac_ext <<_ACEOF
28369/* end confdefs.h.  */
28370#include <libintl.h>
28371$gt_revision_test_code
28372extern int _nl_msg_cat_cntr;
28373extern
28374#ifdef __cplusplus
28375"C"
28376#endif
28377const char *_nl_expand_alias (const char *);
28378int
28379main ()
28380{
28381bindtextdomain ("", "");
28382return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28383  ;
28384  return 0;
28385}
28386_ACEOF
28387rm -f conftest.$ac_objext conftest$ac_exeext
28388if { (ac_try="$ac_link"
28389case "(($ac_try" in
28390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28391  *) ac_try_echo=$ac_try;;
28392esac
28393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28394$as_echo "$ac_try_echo") >&5
28395  (eval "$ac_link") 2>conftest.er1
28396  ac_status=$?
28397  grep -v '^ *+' conftest.er1 >conftest.err
28398  rm -f conftest.er1
28399  cat conftest.err >&5
28400  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401  (exit $ac_status); } && {
28402	 test -z "$ac_c_werror_flag" ||
28403	 test ! -s conftest.err
28404       } && test -s conftest$ac_exeext && {
28405	 test "$cross_compiling" = yes ||
28406	 $as_test_x conftest$ac_exeext
28407       }; then
28408  eval "$gt_func_gnugettext_libintl=yes"
28409else
28410  $as_echo "$as_me: failed program was:" >&5
28411sed 's/^/| /' conftest.$ac_ext >&5
28412
28413	eval "$gt_func_gnugettext_libintl=no"
28414fi
28415
28416rm -rf conftest.dSYM
28417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28418      conftest$ac_exeext conftest.$ac_ext
28419                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
28420              LIBS="$LIBS $LIBICONV"
28421              cat >conftest.$ac_ext <<_ACEOF
28422/* confdefs.h.  */
28423_ACEOF
28424cat confdefs.h >>conftest.$ac_ext
28425cat >>conftest.$ac_ext <<_ACEOF
28426/* end confdefs.h.  */
28427#include <libintl.h>
28428$gt_revision_test_code
28429extern int _nl_msg_cat_cntr;
28430extern
28431#ifdef __cplusplus
28432"C"
28433#endif
28434const char *_nl_expand_alias (const char *);
28435int
28436main ()
28437{
28438bindtextdomain ("", "");
28439return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28440  ;
28441  return 0;
28442}
28443_ACEOF
28444rm -f conftest.$ac_objext conftest$ac_exeext
28445if { (ac_try="$ac_link"
28446case "(($ac_try" in
28447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28448  *) ac_try_echo=$ac_try;;
28449esac
28450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28451$as_echo "$ac_try_echo") >&5
28452  (eval "$ac_link") 2>conftest.er1
28453  ac_status=$?
28454  grep -v '^ *+' conftest.er1 >conftest.err
28455  rm -f conftest.er1
28456  cat conftest.err >&5
28457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458  (exit $ac_status); } && {
28459	 test -z "$ac_c_werror_flag" ||
28460	 test ! -s conftest.err
28461       } && test -s conftest$ac_exeext && {
28462	 test "$cross_compiling" = yes ||
28463	 $as_test_x conftest$ac_exeext
28464       }; then
28465  LIBINTL="$LIBINTL $LIBICONV"
28466                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
28467                eval "$gt_func_gnugettext_libintl=yes"
28468
28469else
28470  $as_echo "$as_me: failed program was:" >&5
28471sed 's/^/| /' conftest.$ac_ext >&5
28472
28473
28474fi
28475
28476rm -rf conftest.dSYM
28477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28478      conftest$ac_exeext conftest.$ac_ext
28479            fi
28480            CPPFLAGS="$gt_save_CPPFLAGS"
28481            LIBS="$gt_save_LIBS"
28482fi
28483ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
28484		 $as_echo "$as_val"'`
28485	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28486$as_echo "$ac_res" >&6; }
28487        fi
28488
28489                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
28490           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
28491                && test "$PACKAGE" != gettext-runtime \
28492                && test "$PACKAGE" != gettext-tools; }; then
28493          gt_use_preinstalled_gnugettext=yes
28494        else
28495                    LIBINTL=
28496          LTLIBINTL=
28497          INCINTL=
28498        fi
28499
28500
28501        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
28502                              nls_cv_use_gnu_gettext=yes
28503        fi
28504      fi
28505
28506      if test "$nls_cv_use_gnu_gettext" = "yes"; then
28507                BUILD_INCLUDED_LIBINTL=yes
28508        USE_INCLUDED_LIBINTL=yes
28509        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
28510        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
28511        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
28512      fi
28513
28514      CATOBJEXT=
28515      if test "$gt_use_preinstalled_gnugettext" = "yes" \
28516         || test "$nls_cv_use_gnu_gettext" = "yes"; then
28517                CATOBJEXT=.gmo
28518      fi
28519
28520
28521    if test -n "$INTL_MACOSX_LIBS"; then
28522      if test "$gt_use_preinstalled_gnugettext" = "yes" \
28523         || test "$nls_cv_use_gnu_gettext" = "yes"; then
28524                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
28525        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
28526      fi
28527    fi
28528
28529    if test "$gt_use_preinstalled_gnugettext" = "yes" \
28530       || test "$nls_cv_use_gnu_gettext" = "yes"; then
28531
28532cat >>confdefs.h <<\_ACEOF
28533#define ENABLE_NLS 1
28534_ACEOF
28535
28536    else
28537      USE_NLS=no
28538    fi
28539  fi
28540
28541  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
28542$as_echo_n "checking whether to use NLS... " >&6; }
28543  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
28544$as_echo "$USE_NLS" >&6; }
28545  if test "$USE_NLS" = "yes"; then
28546    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
28547$as_echo_n "checking where the gettext function comes from... " >&6; }
28548    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28549      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
28550        gt_source="external libintl"
28551      else
28552        gt_source="libc"
28553      fi
28554    else
28555      gt_source="included intl directory"
28556    fi
28557    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
28558$as_echo "$gt_source" >&6; }
28559  fi
28560
28561  if test "$USE_NLS" = "yes"; then
28562
28563    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28564      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
28565        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
28566$as_echo_n "checking how to link with libintl... " >&6; }
28567        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
28568$as_echo "$LIBINTL" >&6; }
28569
28570  for element in $INCINTL; do
28571    haveit=
28572    for x in $CPPFLAGS; do
28573
28574  acl_save_prefix="$prefix"
28575  prefix="$acl_final_prefix"
28576  acl_save_exec_prefix="$exec_prefix"
28577  exec_prefix="$acl_final_exec_prefix"
28578  eval x=\"$x\"
28579  exec_prefix="$acl_save_exec_prefix"
28580  prefix="$acl_save_prefix"
28581
28582      if test "X$x" = "X$element"; then
28583        haveit=yes
28584        break
28585      fi
28586    done
28587    if test -z "$haveit"; then
28588      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28589    fi
28590  done
28591
28592      fi
28593
28594
28595cat >>confdefs.h <<\_ACEOF
28596#define HAVE_GETTEXT 1
28597_ACEOF
28598
28599
28600cat >>confdefs.h <<\_ACEOF
28601#define HAVE_DCGETTEXT 1
28602_ACEOF
28603
28604    fi
28605
28606        POSUB=po
28607  fi
28608
28609
28610            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
28611      BUILD_INCLUDED_LIBINTL=yes
28612    fi
28613
28614
28615
28616
28617
28618        nls_cv_header_intl=
28619    nls_cv_header_libgt=
28620
28621        DATADIRNAME=share
28622
28623
28624        INSTOBJEXT=.mo
28625
28626
28627        GENCAT=gencat
28628
28629
28630        INTLOBJS=
28631    if test "$USE_INCLUDED_LIBINTL" = yes; then
28632      INTLOBJS="\$(GETTOBJS)"
28633    fi
28634
28635
28636        INTL_LIBTOOL_SUFFIX_PREFIX=
28637
28638
28639
28640    INTLLIBS="$LIBINTL"
28641
28642
28643
28644
28645
28646
28647
28648if test "x${prefix}" = "xNONE"; then
28649  cat >>confdefs.h <<_ACEOF
28650#define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
28651_ACEOF
28652
28653else
28654  cat >>confdefs.h <<_ACEOF
28655#define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
28656_ACEOF
28657
28658fi
28659
28660
28661packagesrcdir=`cd $srcdir && pwd`
28662
28663if test "x${prefix}" = "xNONE"; then
28664  packageprefix=${ac_default_prefix}
28665else
28666  packageprefix=${prefix}
28667fi
28668
28669packagedatadir=share/${PACKAGE}
28670packagedocdir=doc/${PACKAGE}
28671
28672packagepixmapsdir=${packagedatadir}/pixmaps
28673packagehelpdir=${packagedatadir}/help
28674packagemenudir=${packagedatadir}
28675
28676NO_PREFIX_PACKAGE_DATA_DIR="${packagedatadir}"
28677
28678PACKAGE_DATA_DIR="${packageprefix}/${packagedatadir}"
28679
28680
28681NO_PREFIX_PACKAGE_DOC_DIR="${packagedocdir}"
28682
28683PACKAGE_DOC_DIR="${packageprefix}/${packagedocdir}"
28684
28685
28686NO_PREFIX_PACKAGE_PIXMAPS_DIR="${packagepixmapsdir}"
28687
28688PACKAGE_PIXMAPS_DIR="${packageprefix}/${packagepixmapsdir}"
28689
28690
28691NO_PREFIX_PACKAGE_HELP_DIR="${packagehelpdir}"
28692
28693PACKAGE_HELP_DIR="${packageprefix}/${packagehelpdir}"
28694
28695
28696NO_PREFIX_PACKAGE_MENU_DIR="${packagemenudir}"
28697
28698PACKAGE_MENU_DIR="${packageprefix}/${packagemenudir}"
28699
28700
28701cat >>confdefs.h <<_ACEOF
28702#define PACKAGE_DATA_DIR "${packageprefix}/${packagedatadir}"
28703_ACEOF
28704
28705cat >>confdefs.h <<_ACEOF
28706#define PACKAGE_DOC_DIR "${packageprefix}/${packagedocdir}"
28707_ACEOF
28708
28709cat >>confdefs.h <<_ACEOF
28710#define PACKAGE_PIXMAPS_DIR "${packageprefix}/${packagepixmapsdir}"
28711_ACEOF
28712
28713cat >>confdefs.h <<_ACEOF
28714#define PACKAGE_HELP_DIR "${packageprefix}/${packagehelpdir}"
28715_ACEOF
28716
28717cat >>confdefs.h <<_ACEOF
28718#define PACKAGE_MENU_DIR "${packageprefix}/${packagemenudir}"
28719_ACEOF
28720
28721cat >>confdefs.h <<_ACEOF
28722#define PACKAGE_SOURCE_DIR "${packagesrcdir}"
28723_ACEOF
28724
28725
28726ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in src/Makefile scim_kmfl_imengine_setup/Makefile data/Makefile data/icons/Makefile"
28727
28728cat >confcache <<\_ACEOF
28729# This file is a shell script that caches the results of configure
28730# tests run on this system so they can be shared between configure
28731# scripts and configure runs, see configure's option --config-cache.
28732# It is not useful on other systems.  If it contains results you don't
28733# want to keep, you may remove or edit it.
28734#
28735# config.status only pays attention to the cache file if you give it
28736# the --recheck option to rerun configure.
28737#
28738# `ac_cv_env_foo' variables (set or unset) will be overridden when
28739# loading this file, other *unset* `ac_cv_foo' will be assigned the
28740# following values.
28741
28742_ACEOF
28743
28744# The following way of writing the cache mishandles newlines in values,
28745# but we know of no workaround that is simple, portable, and efficient.
28746# So, we kill variables containing newlines.
28747# Ultrix sh set writes to stderr and can't be redirected directly,
28748# and sets the high bit in the cache file unless we assign to the vars.
28749(
28750  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28751    eval ac_val=\$$ac_var
28752    case $ac_val in #(
28753    *${as_nl}*)
28754      case $ac_var in #(
28755      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28756$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28757      esac
28758      case $ac_var in #(
28759      _ | IFS | as_nl) ;; #(
28760      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28761      *) $as_unset $ac_var ;;
28762      esac ;;
28763    esac
28764  done
28765
28766  (set) 2>&1 |
28767    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28768    *${as_nl}ac_space=\ *)
28769      # `set' does not quote correctly, so add quotes (double-quote
28770      # substitution turns \\\\ into \\, and sed turns \\ into \).
28771      sed -n \
28772	"s/'/'\\\\''/g;
28773	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28774      ;; #(
28775    *)
28776      # `set' quotes correctly as required by POSIX, so do not add quotes.
28777      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28778      ;;
28779    esac |
28780    sort
28781) |
28782  sed '
28783     /^ac_cv_env_/b end
28784     t clear
28785     :clear
28786     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28787     t end
28788     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28789     :end' >>confcache
28790if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28791  if test -w "$cache_file"; then
28792    test "x$cache_file" != "x/dev/null" &&
28793      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
28794$as_echo "$as_me: updating cache $cache_file" >&6;}
28795    cat confcache >$cache_file
28796  else
28797    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28798$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28799  fi
28800fi
28801rm -f confcache
28802
28803test "x$prefix" = xNONE && prefix=$ac_default_prefix
28804# Let make expand exec_prefix.
28805test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28806
28807DEFS=-DHAVE_CONFIG_H
28808
28809ac_libobjs=
28810ac_ltlibobjs=
28811for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28812  # 1. Remove the extension, and $U if already installed.
28813  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28814  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28815  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28816  #    will be set to the directory where LIBOBJS objects are built.
28817  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28818  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28819done
28820LIBOBJS=$ac_libobjs
28821
28822LTLIBOBJS=$ac_ltlibobjs
28823
28824
28825if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28826  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28827Usually this means the macro was only invoked conditionally." >&5
28828$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
28829Usually this means the macro was only invoked conditionally." >&2;}
28830   { (exit 1); exit 1; }; }
28831fi
28832if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28833  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28834Usually this means the macro was only invoked conditionally." >&5
28835$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28836Usually this means the macro was only invoked conditionally." >&2;}
28837   { (exit 1); exit 1; }; }
28838fi
28839if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28840  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28841Usually this means the macro was only invoked conditionally." >&5
28842$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28843Usually this means the macro was only invoked conditionally." >&2;}
28844   { (exit 1); exit 1; }; }
28845fi
28846if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28847  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28848Usually this means the macro was only invoked conditionally." >&5
28849$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28850Usually this means the macro was only invoked conditionally." >&2;}
28851   { (exit 1); exit 1; }; }
28852fi
28853if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28854  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28855Usually this means the macro was only invoked conditionally." >&5
28856$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28857Usually this means the macro was only invoked conditionally." >&2;}
28858   { (exit 1); exit 1; }; }
28859fi
28860if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28861  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28862Usually this means the macro was only invoked conditionally." >&5
28863$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28864Usually this means the macro was only invoked conditionally." >&2;}
28865   { (exit 1); exit 1; }; }
28866fi
28867
28868  ac_config_commands="$ac_config_commands po/stamp-it"
28869
28870
28871
28872: ${CONFIG_STATUS=./config.status}
28873ac_write_fail=0
28874ac_clean_files_save=$ac_clean_files
28875ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28876{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28877$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28878cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28879#! $SHELL
28880# Generated by $as_me.
28881# Run this file to recreate the current configuration.
28882# Compiler output produced by configure, useful for debugging
28883# configure, is in config.log if it exists.
28884
28885debug=false
28886ac_cs_recheck=false
28887ac_cs_silent=false
28888SHELL=\${CONFIG_SHELL-$SHELL}
28889_ACEOF
28890
28891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28892## --------------------- ##
28893## M4sh Initialization.  ##
28894## --------------------- ##
28895
28896# Be more Bourne compatible
28897DUALCASE=1; export DUALCASE # for MKS sh
28898if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28899  emulate sh
28900  NULLCMD=:
28901  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28902  # is contrary to our usage.  Disable this feature.
28903  alias -g '${1+"$@"}'='"$@"'
28904  setopt NO_GLOB_SUBST
28905else
28906  case `(set -o) 2>/dev/null` in
28907  *posix*) set -o posix ;;
28908esac
28909
28910fi
28911
28912
28913
28914
28915# PATH needs CR
28916# Avoid depending upon Character Ranges.
28917as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28918as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28919as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28920as_cr_digits='0123456789'
28921as_cr_alnum=$as_cr_Letters$as_cr_digits
28922
28923as_nl='
28924'
28925export as_nl
28926# Printing a long string crashes Solaris 7 /usr/bin/printf.
28927as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28928as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28929as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28930if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28931  as_echo='printf %s\n'
28932  as_echo_n='printf %s'
28933else
28934  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28935    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28936    as_echo_n='/usr/ucb/echo -n'
28937  else
28938    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28939    as_echo_n_body='eval
28940      arg=$1;
28941      case $arg in
28942      *"$as_nl"*)
28943	expr "X$arg" : "X\\(.*\\)$as_nl";
28944	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28945      esac;
28946      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28947    '
28948    export as_echo_n_body
28949    as_echo_n='sh -c $as_echo_n_body as_echo'
28950  fi
28951  export as_echo_body
28952  as_echo='sh -c $as_echo_body as_echo'
28953fi
28954
28955# The user is always right.
28956if test "${PATH_SEPARATOR+set}" != set; then
28957  PATH_SEPARATOR=:
28958  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28959    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28960      PATH_SEPARATOR=';'
28961  }
28962fi
28963
28964# Support unset when possible.
28965if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28966  as_unset=unset
28967else
28968  as_unset=false
28969fi
28970
28971
28972# IFS
28973# We need space, tab and new line, in precisely that order.  Quoting is
28974# there to prevent editors from complaining about space-tab.
28975# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28976# splitting by setting IFS to empty value.)
28977IFS=" ""	$as_nl"
28978
28979# Find who we are.  Look in the path if we contain no directory separator.
28980case $0 in
28981  *[\\/]* ) as_myself=$0 ;;
28982  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28983for as_dir in $PATH
28984do
28985  IFS=$as_save_IFS
28986  test -z "$as_dir" && as_dir=.
28987  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28988done
28989IFS=$as_save_IFS
28990
28991     ;;
28992esac
28993# We did not find ourselves, most probably we were run as `sh COMMAND'
28994# in which case we are not to be found in the path.
28995if test "x$as_myself" = x; then
28996  as_myself=$0
28997fi
28998if test ! -f "$as_myself"; then
28999  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29000  { (exit 1); exit 1; }
29001fi
29002
29003# Work around bugs in pre-3.0 UWIN ksh.
29004for as_var in ENV MAIL MAILPATH
29005do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29006done
29007PS1='$ '
29008PS2='> '
29009PS4='+ '
29010
29011# NLS nuisances.
29012LC_ALL=C
29013export LC_ALL
29014LANGUAGE=C
29015export LANGUAGE
29016
29017# Required to use basename.
29018if expr a : '\(a\)' >/dev/null 2>&1 &&
29019   test "X`expr 00001 : '.*\(...\)'`" = X001; then
29020  as_expr=expr
29021else
29022  as_expr=false
29023fi
29024
29025if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29026  as_basename=basename
29027else
29028  as_basename=false
29029fi
29030
29031
29032# Name of the executable.
29033as_me=`$as_basename -- "$0" ||
29034$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29035	 X"$0" : 'X\(//\)$' \| \
29036	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29037$as_echo X/"$0" |
29038    sed '/^.*\/\([^/][^/]*\)\/*$/{
29039	    s//\1/
29040	    q
29041	  }
29042	  /^X\/\(\/\/\)$/{
29043	    s//\1/
29044	    q
29045	  }
29046	  /^X\/\(\/\).*/{
29047	    s//\1/
29048	    q
29049	  }
29050	  s/.*/./; q'`
29051
29052# CDPATH.
29053$as_unset CDPATH
29054
29055
29056
29057  as_lineno_1=$LINENO
29058  as_lineno_2=$LINENO
29059  test "x$as_lineno_1" != "x$as_lineno_2" &&
29060  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29061
29062  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29063  # uniformly replaced by the line number.  The first 'sed' inserts a
29064  # line-number line after each line using $LINENO; the second 'sed'
29065  # does the real work.  The second script uses 'N' to pair each
29066  # line-number line with the line containing $LINENO, and appends
29067  # trailing '-' during substitution so that $LINENO is not a special
29068  # case at line end.
29069  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29070  # scripts with optimization help from Paolo Bonzini.  Blame Lee
29071  # E. McMahon (1931-1989) for sed's syntax.  :-)
29072  sed -n '
29073    p
29074    /[$]LINENO/=
29075  ' <$as_myself |
29076    sed '
29077      s/[$]LINENO.*/&-/
29078      t lineno
29079      b
29080      :lineno
29081      N
29082      :loop
29083      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29084      t loop
29085      s/-\n.*//
29086    ' >$as_me.lineno &&
29087  chmod +x "$as_me.lineno" ||
29088    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29089   { (exit 1); exit 1; }; }
29090
29091  # Don't try to exec as it changes $[0], causing all sort of problems
29092  # (the dirname of $[0] is not the place where we might find the
29093  # original and so on.  Autoconf is especially sensitive to this).
29094  . "./$as_me.lineno"
29095  # Exit status is that of the last command.
29096  exit
29097}
29098
29099
29100if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29101  as_dirname=dirname
29102else
29103  as_dirname=false
29104fi
29105
29106ECHO_C= ECHO_N= ECHO_T=
29107case `echo -n x` in
29108-n*)
29109  case `echo 'x\c'` in
29110  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
29111  *)   ECHO_C='\c';;
29112  esac;;
29113*)
29114  ECHO_N='-n';;
29115esac
29116if expr a : '\(a\)' >/dev/null 2>&1 &&
29117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
29118  as_expr=expr
29119else
29120  as_expr=false
29121fi
29122
29123rm -f conf$$ conf$$.exe conf$$.file
29124if test -d conf$$.dir; then
29125  rm -f conf$$.dir/conf$$.file
29126else
29127  rm -f conf$$.dir
29128  mkdir conf$$.dir 2>/dev/null
29129fi
29130if (echo >conf$$.file) 2>/dev/null; then
29131  if ln -s conf$$.file conf$$ 2>/dev/null; then
29132    as_ln_s='ln -s'
29133    # ... but there are two gotchas:
29134    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29135    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29136    # In both cases, we have to default to `cp -p'.
29137    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29138      as_ln_s='cp -p'
29139  elif ln conf$$.file conf$$ 2>/dev/null; then
29140    as_ln_s=ln
29141  else
29142    as_ln_s='cp -p'
29143  fi
29144else
29145  as_ln_s='cp -p'
29146fi
29147rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29148rmdir conf$$.dir 2>/dev/null
29149
29150if mkdir -p . 2>/dev/null; then
29151  as_mkdir_p=:
29152else
29153  test -d ./-p && rmdir ./-p
29154  as_mkdir_p=false
29155fi
29156
29157if test -x / >/dev/null 2>&1; then
29158  as_test_x='test -x'
29159else
29160  if ls -dL / >/dev/null 2>&1; then
29161    as_ls_L_option=L
29162  else
29163    as_ls_L_option=
29164  fi
29165  as_test_x='
29166    eval sh -c '\''
29167      if test -d "$1"; then
29168	test -d "$1/.";
29169      else
29170	case $1 in
29171	-*)set "./$1";;
29172	esac;
29173	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29174	???[sx]*):;;*)false;;esac;fi
29175    '\'' sh
29176  '
29177fi
29178as_executable_p=$as_test_x
29179
29180# Sed expression to map a string onto a valid CPP name.
29181as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29182
29183# Sed expression to map a string onto a valid variable name.
29184as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29185
29186
29187exec 6>&1
29188
29189# Save the log message, to keep $[0] and so on meaningful, and to
29190# report actual input values of CONFIG_FILES etc. instead of their
29191# values after options handling.
29192ac_log="
29193This file was extended by $as_me, which was
29194generated by GNU Autoconf 2.63.  Invocation command line was
29195
29196  CONFIG_FILES    = $CONFIG_FILES
29197  CONFIG_HEADERS  = $CONFIG_HEADERS
29198  CONFIG_LINKS    = $CONFIG_LINKS
29199  CONFIG_COMMANDS = $CONFIG_COMMANDS
29200  $ $0 $@
29201
29202on `(hostname || uname -n) 2>/dev/null | sed 1q`
29203"
29204
29205_ACEOF
29206
29207case $ac_config_files in *"
29208"*) set x $ac_config_files; shift; ac_config_files=$*;;
29209esac
29210
29211case $ac_config_headers in *"
29212"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29213esac
29214
29215
29216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29217# Files that config.status was made for.
29218config_files="$ac_config_files"
29219config_headers="$ac_config_headers"
29220config_commands="$ac_config_commands"
29221
29222_ACEOF
29223
29224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29225ac_cs_usage="\
29226\`$as_me' instantiates files from templates according to the
29227current configuration.
29228
29229Usage: $0 [OPTION]... [FILE]...
29230
29231  -h, --help       print this help, then exit
29232  -V, --version    print version number and configuration settings, then exit
29233  -q, --quiet, --silent
29234                   do not print progress messages
29235  -d, --debug      don't remove temporary files
29236      --recheck    update $as_me by reconfiguring in the same conditions
29237      --file=FILE[:TEMPLATE]
29238                   instantiate the configuration file FILE
29239      --header=FILE[:TEMPLATE]
29240                   instantiate the configuration header FILE
29241
29242Configuration files:
29243$config_files
29244
29245Configuration headers:
29246$config_headers
29247
29248Configuration commands:
29249$config_commands
29250
29251Report bugs to <bug-autoconf@gnu.org>."
29252
29253_ACEOF
29254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29255ac_cs_version="\\
29256config.status
29257configured by $0, generated by GNU Autoconf 2.63,
29258  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29259
29260Copyright (C) 2008 Free Software Foundation, Inc.
29261This config.status script is free software; the Free Software Foundation
29262gives unlimited permission to copy, distribute and modify it."
29263
29264ac_pwd='$ac_pwd'
29265srcdir='$srcdir'
29266INSTALL='$INSTALL'
29267MKDIR_P='$MKDIR_P'
29268AWK='$AWK'
29269test -n "\$AWK" || AWK=awk
29270_ACEOF
29271
29272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29273# The default lists apply if the user does not specify any file.
29274ac_need_defaults=:
29275while test $# != 0
29276do
29277  case $1 in
29278  --*=*)
29279    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29280    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29281    ac_shift=:
29282    ;;
29283  *)
29284    ac_option=$1
29285    ac_optarg=$2
29286    ac_shift=shift
29287    ;;
29288  esac
29289
29290  case $ac_option in
29291  # Handling of the options.
29292  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29293    ac_cs_recheck=: ;;
29294  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29295    $as_echo "$ac_cs_version"; exit ;;
29296  --debug | --debu | --deb | --de | --d | -d )
29297    debug=: ;;
29298  --file | --fil | --fi | --f )
29299    $ac_shift
29300    case $ac_optarg in
29301    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29302    esac
29303    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29304    ac_need_defaults=false;;
29305  --header | --heade | --head | --hea )
29306    $ac_shift
29307    case $ac_optarg in
29308    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29309    esac
29310    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29311    ac_need_defaults=false;;
29312  --he | --h)
29313    # Conflict between --help and --header
29314    { $as_echo "$as_me: error: ambiguous option: $1
29315Try \`$0 --help' for more information." >&2
29316   { (exit 1); exit 1; }; };;
29317  --help | --hel | -h )
29318    $as_echo "$ac_cs_usage"; exit ;;
29319  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29320  | -silent | --silent | --silen | --sile | --sil | --si | --s)
29321    ac_cs_silent=: ;;
29322
29323  # This is an error.
29324  -*) { $as_echo "$as_me: error: unrecognized option: $1
29325Try \`$0 --help' for more information." >&2
29326   { (exit 1); exit 1; }; } ;;
29327
29328  *) ac_config_targets="$ac_config_targets $1"
29329     ac_need_defaults=false ;;
29330
29331  esac
29332  shift
29333done
29334
29335ac_configure_extra_args=
29336
29337if $ac_cs_silent; then
29338  exec 6>/dev/null
29339  ac_configure_extra_args="$ac_configure_extra_args --silent"
29340fi
29341
29342_ACEOF
29343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29344if \$ac_cs_recheck; then
29345  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29346  shift
29347  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29348  CONFIG_SHELL='$SHELL'
29349  export CONFIG_SHELL
29350  exec "\$@"
29351fi
29352
29353_ACEOF
29354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29355exec 5>>config.log
29356{
29357  echo
29358  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29359## Running $as_me. ##
29360_ASBOX
29361  $as_echo "$ac_log"
29362} >&5
29363
29364_ACEOF
29365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29366#
29367# INIT-COMMANDS
29368#
29369AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29370
29371
29372# The HP-UX ksh and POSIX shell print the target directory to stdout
29373# if CDPATH is set.
29374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29375
29376sed_quote_subst='$sed_quote_subst'
29377double_quote_subst='$double_quote_subst'
29378delay_variable_subst='$delay_variable_subst'
29379macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29380macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29381enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29382enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29383pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29384enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29385host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29386host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29387host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29388build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29389build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29390build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29391SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29392Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29393GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29394EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29395FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29396LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29397NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29398LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29399max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29400ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29401exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29402lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29403lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29404lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29405reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29406reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29407OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29408deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29409file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29410AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29411AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29412STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29413RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29414old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29415old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29416old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29417CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29418CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29419compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29420GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29421lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29422lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29423lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
29424lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29425objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29426SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29427ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29428MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29429lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29430lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29431lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29432lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29433lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29434need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29435DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29436NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29437LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29438OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29439OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29440libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29441shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29442extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29443archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29444enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29445export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29446whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29447compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29448old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29449old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29450archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29451archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29452module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29453module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29454with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29455allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29456no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29457hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29458hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29459hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29460hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29461hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29462hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29463hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29464hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29465inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29466link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29467fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29468always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29469export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29470exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29471include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29472prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29473file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29474variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29475need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29476need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29477version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29478runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29479shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29480shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29481libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29482library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29483soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29484postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29485postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29486finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29487finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29488hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29489sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29490sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29491hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29492enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29493enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29494enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29495old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29496striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29497compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29498predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29499postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29500predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29501postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29502compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29503LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29504old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29505compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29506GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29507lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29508lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29509lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29510lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29511lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29512archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29513enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29514export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29515whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29516compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29517old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29518old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29519archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29520archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29521module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29522module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29523with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29524allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29525no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29526hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29527hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29528hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29529hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29530hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29531hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29532hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29533hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29534inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29535link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29536fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29537always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29538export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29539exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29540include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29541prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29542file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29543hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29544compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29545predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29546postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29547predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29548postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29549compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29550
29551LTCC='$LTCC'
29552LTCFLAGS='$LTCFLAGS'
29553compiler='$compiler_DEFAULT'
29554
29555# Quote evaled strings.
29556for var in SED \
29557GREP \
29558EGREP \
29559FGREP \
29560LD \
29561NM \
29562LN_S \
29563lt_SP2NL \
29564lt_NL2SP \
29565reload_flag \
29566OBJDUMP \
29567deplibs_check_method \
29568file_magic_cmd \
29569AR \
29570AR_FLAGS \
29571STRIP \
29572RANLIB \
29573CC \
29574CFLAGS \
29575compiler \
29576lt_cv_sys_global_symbol_pipe \
29577lt_cv_sys_global_symbol_to_cdecl \
29578lt_cv_sys_global_symbol_to_c_name_address \
29579lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29580SHELL \
29581ECHO \
29582lt_prog_compiler_no_builtin_flag \
29583lt_prog_compiler_wl \
29584lt_prog_compiler_pic \
29585lt_prog_compiler_static \
29586lt_cv_prog_compiler_c_o \
29587need_locks \
29588DSYMUTIL \
29589NMEDIT \
29590LIPO \
29591OTOOL \
29592OTOOL64 \
29593shrext_cmds \
29594export_dynamic_flag_spec \
29595whole_archive_flag_spec \
29596compiler_needs_object \
29597with_gnu_ld \
29598allow_undefined_flag \
29599no_undefined_flag \
29600hardcode_libdir_flag_spec \
29601hardcode_libdir_flag_spec_ld \
29602hardcode_libdir_separator \
29603fix_srcfile_path \
29604exclude_expsyms \
29605include_expsyms \
29606file_list_spec \
29607variables_saved_for_relink \
29608libname_spec \
29609library_names_spec \
29610soname_spec \
29611finish_eval \
29612old_striplib \
29613striplib \
29614compiler_lib_search_dirs \
29615predep_objects \
29616postdep_objects \
29617predeps \
29618postdeps \
29619compiler_lib_search_path \
29620LD_CXX \
29621compiler_CXX \
29622lt_prog_compiler_no_builtin_flag_CXX \
29623lt_prog_compiler_wl_CXX \
29624lt_prog_compiler_pic_CXX \
29625lt_prog_compiler_static_CXX \
29626lt_cv_prog_compiler_c_o_CXX \
29627export_dynamic_flag_spec_CXX \
29628whole_archive_flag_spec_CXX \
29629compiler_needs_object_CXX \
29630with_gnu_ld_CXX \
29631allow_undefined_flag_CXX \
29632no_undefined_flag_CXX \
29633hardcode_libdir_flag_spec_CXX \
29634hardcode_libdir_flag_spec_ld_CXX \
29635hardcode_libdir_separator_CXX \
29636fix_srcfile_path_CXX \
29637exclude_expsyms_CXX \
29638include_expsyms_CXX \
29639file_list_spec_CXX \
29640compiler_lib_search_dirs_CXX \
29641predep_objects_CXX \
29642postdep_objects_CXX \
29643predeps_CXX \
29644postdeps_CXX \
29645compiler_lib_search_path_CXX; do
29646    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29647    *[\\\\\\\`\\"\\\$]*)
29648      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29649      ;;
29650    *)
29651      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29652      ;;
29653    esac
29654done
29655
29656# Double-quote double-evaled strings.
29657for var in reload_cmds \
29658old_postinstall_cmds \
29659old_postuninstall_cmds \
29660old_archive_cmds \
29661extract_expsyms_cmds \
29662old_archive_from_new_cmds \
29663old_archive_from_expsyms_cmds \
29664archive_cmds \
29665archive_expsym_cmds \
29666module_cmds \
29667module_expsym_cmds \
29668export_symbols_cmds \
29669prelink_cmds \
29670postinstall_cmds \
29671postuninstall_cmds \
29672finish_cmds \
29673sys_lib_search_path_spec \
29674sys_lib_dlsearch_path_spec \
29675old_archive_cmds_CXX \
29676old_archive_from_new_cmds_CXX \
29677old_archive_from_expsyms_cmds_CXX \
29678archive_cmds_CXX \
29679archive_expsym_cmds_CXX \
29680module_cmds_CXX \
29681module_expsym_cmds_CXX \
29682export_symbols_cmds_CXX \
29683prelink_cmds_CXX; do
29684    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29685    *[\\\\\\\`\\"\\\$]*)
29686      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29687      ;;
29688    *)
29689      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29690      ;;
29691    esac
29692done
29693
29694# Fix-up fallback echo if it was mangled by the above quoting rules.
29695case \$lt_ECHO in
29696*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29697  ;;
29698esac
29699
29700ac_aux_dir='$ac_aux_dir'
29701xsi_shell='$xsi_shell'
29702lt_shell_append='$lt_shell_append'
29703
29704# See if we are running on zsh, and set the options which allow our
29705# commands through without removal of \ escapes INIT.
29706if test -n "\${ZSH_VERSION+set}" ; then
29707   setopt NO_GLOB_SUBST
29708fi
29709
29710
29711    PACKAGE='$PACKAGE'
29712    VERSION='$VERSION'
29713    TIMESTAMP='$TIMESTAMP'
29714    RM='$RM'
29715    ofile='$ofile'
29716
29717
29718
29719
29720
29721
29722# Capture the value of obsolete ALL_LINGUAS because we need it to compute
29723    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
29724    # from automake < 1.5.
29725    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
29726    # Capture the value of LINGUAS because we need it to compute CATALOGS.
29727    LINGUAS="${LINGUAS-%UNSET%}"
29728
29729
29730_ACEOF
29731
29732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29733
29734# Handling of arguments.
29735for ac_config_target in $ac_config_targets
29736do
29737  case $ac_config_target in
29738    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29739    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29740    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29741    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29742    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
29743    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29744    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
29745    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29746    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29747    "scim_kmfl_imengine_setup/Makefile") CONFIG_FILES="$CONFIG_FILES scim_kmfl_imengine_setup/Makefile" ;;
29748    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
29749    "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;;
29750    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
29751
29752  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29753$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29754   { (exit 1); exit 1; }; };;
29755  esac
29756done
29757
29758
29759# If the user did not use the arguments to specify the items to instantiate,
29760# then the envvar interface is used.  Set only those that are not.
29761# We use the long form for the default assignment because of an extremely
29762# bizarre bug on SunOS 4.1.3.
29763if $ac_need_defaults; then
29764  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29765  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29766  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29767fi
29768
29769# Have a temporary directory for convenience.  Make it in the build tree
29770# simply because there is no reason against having it here, and in addition,
29771# creating and moving files from /tmp can sometimes cause problems.
29772# Hook for its removal unless debugging.
29773# Note that there is a small window in which the directory will not be cleaned:
29774# after its creation but before its name has been assigned to `$tmp'.
29775$debug ||
29776{
29777  tmp=
29778  trap 'exit_status=$?
29779  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29780' 0
29781  trap '{ (exit 1); exit 1; }' 1 2 13 15
29782}
29783# Create a (secure) tmp directory for tmp files.
29784
29785{
29786  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29787  test -n "$tmp" && test -d "$tmp"
29788}  ||
29789{
29790  tmp=./conf$$-$RANDOM
29791  (umask 077 && mkdir "$tmp")
29792} ||
29793{
29794   $as_echo "$as_me: cannot create a temporary directory in ." >&2
29795   { (exit 1); exit 1; }
29796}
29797
29798# Set up the scripts for CONFIG_FILES section.
29799# No need to generate them if there are no CONFIG_FILES.
29800# This happens for instance with `./config.status config.h'.
29801if test -n "$CONFIG_FILES"; then
29802
29803
29804ac_cr='
29805'
29806ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29807if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29808  ac_cs_awk_cr='\\r'
29809else
29810  ac_cs_awk_cr=$ac_cr
29811fi
29812
29813echo 'BEGIN {' >"$tmp/subs1.awk" &&
29814_ACEOF
29815
29816
29817{
29818  echo "cat >conf$$subs.awk <<_ACEOF" &&
29819  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29820  echo "_ACEOF"
29821} >conf$$subs.sh ||
29822  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29823$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29824   { (exit 1); exit 1; }; }
29825ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29826ac_delim='%!_!# '
29827for ac_last_try in false false false false false :; do
29828  . ./conf$$subs.sh ||
29829    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29830$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29831   { (exit 1); exit 1; }; }
29832
29833  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29834  if test $ac_delim_n = $ac_delim_num; then
29835    break
29836  elif $ac_last_try; then
29837    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29838$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29839   { (exit 1); exit 1; }; }
29840  else
29841    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29842  fi
29843done
29844rm -f conf$$subs.sh
29845
29846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29847cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29848_ACEOF
29849sed -n '
29850h
29851s/^/S["/; s/!.*/"]=/
29852p
29853g
29854s/^[^!]*!//
29855:repl
29856t repl
29857s/'"$ac_delim"'$//
29858t delim
29859:nl
29860h
29861s/\(.\{148\}\).*/\1/
29862t more1
29863s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29864p
29865n
29866b repl
29867:more1
29868s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29869p
29870g
29871s/.\{148\}//
29872t nl
29873:delim
29874h
29875s/\(.\{148\}\).*/\1/
29876t more2
29877s/["\\]/\\&/g; s/^/"/; s/$/"/
29878p
29879b
29880:more2
29881s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29882p
29883g
29884s/.\{148\}//
29885t delim
29886' <conf$$subs.awk | sed '
29887/^[^""]/{
29888  N
29889  s/\n//
29890}
29891' >>$CONFIG_STATUS || ac_write_fail=1
29892rm -f conf$$subs.awk
29893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29894_ACAWK
29895cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29896  for (key in S) S_is_set[key] = 1
29897  FS = ""
29898
29899}
29900{
29901  line = $ 0
29902  nfields = split(line, field, "@")
29903  substed = 0
29904  len = length(field[1])
29905  for (i = 2; i < nfields; i++) {
29906    key = field[i]
29907    keylen = length(key)
29908    if (S_is_set[key]) {
29909      value = S[key]
29910      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29911      len += length(value) + length(field[++i])
29912      substed = 1
29913    } else
29914      len += 1 + keylen
29915  }
29916
29917  print line
29918}
29919
29920_ACAWK
29921_ACEOF
29922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29923if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29924  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29925else
29926  cat
29927fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29928  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29929$as_echo "$as_me: error: could not setup config files machinery" >&2;}
29930   { (exit 1); exit 1; }; }
29931_ACEOF
29932
29933# VPATH may cause trouble with some makes, so we remove $(srcdir),
29934# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29935# trailing colons and then remove the whole line if VPATH becomes empty
29936# (actually we leave an empty line to preserve line numbers).
29937if test "x$srcdir" = x.; then
29938  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
29939s/:*\$(srcdir):*/:/
29940s/:*\${srcdir}:*/:/
29941s/:*@srcdir@:*/:/
29942s/^\([^=]*=[	 ]*\):*/\1/
29943s/:*$//
29944s/^[^=]*=[	 ]*$//
29945}'
29946fi
29947
29948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29949fi # test -n "$CONFIG_FILES"
29950
29951# Set up the scripts for CONFIG_HEADERS section.
29952# No need to generate them if there are no CONFIG_HEADERS.
29953# This happens for instance with `./config.status Makefile'.
29954if test -n "$CONFIG_HEADERS"; then
29955cat >"$tmp/defines.awk" <<\_ACAWK ||
29956BEGIN {
29957_ACEOF
29958
29959# Transform confdefs.h into an awk script `defines.awk', embedded as
29960# here-document in config.status, that substitutes the proper values into
29961# config.h.in to produce config.h.
29962
29963# Create a delimiter string that does not exist in confdefs.h, to ease
29964# handling of long lines.
29965ac_delim='%!_!# '
29966for ac_last_try in false false :; do
29967  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29968  if test -z "$ac_t"; then
29969    break
29970  elif $ac_last_try; then
29971    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29972$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29973   { (exit 1); exit 1; }; }
29974  else
29975    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29976  fi
29977done
29978
29979# For the awk script, D is an array of macro values keyed by name,
29980# likewise P contains macro parameters if any.  Preserve backslash
29981# newline sequences.
29982
29983ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29984sed -n '
29985s/.\{148\}/&'"$ac_delim"'/g
29986t rset
29987:rset
29988s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29989t def
29990d
29991:def
29992s/\\$//
29993t bsnl
29994s/["\\]/\\&/g
29995s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29996D["\1"]=" \3"/p
29997s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29998d
29999:bsnl
30000s/["\\]/\\&/g
30001s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
30002D["\1"]=" \3\\\\\\n"\\/p
30003t cont
30004s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30005t cont
30006d
30007:cont
30008n
30009s/.\{148\}/&'"$ac_delim"'/g
30010t clear
30011:clear
30012s/\\$//
30013t bsnlc
30014s/["\\]/\\&/g; s/^/"/; s/$/"/p
30015d
30016:bsnlc
30017s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30018b cont
30019' <confdefs.h | sed '
30020s/'"$ac_delim"'/"\\\
30021"/g' >>$CONFIG_STATUS || ac_write_fail=1
30022
30023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30024  for (key in D) D_is_set[key] = 1
30025  FS = ""
30026}
30027/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30028  line = \$ 0
30029  split(line, arg, " ")
30030  if (arg[1] == "#") {
30031    defundef = arg[2]
30032    mac1 = arg[3]
30033  } else {
30034    defundef = substr(arg[1], 2)
30035    mac1 = arg[2]
30036  }
30037  split(mac1, mac2, "(") #)
30038  macro = mac2[1]
30039  prefix = substr(line, 1, index(line, defundef) - 1)
30040  if (D_is_set[macro]) {
30041    # Preserve the white space surrounding the "#".
30042    print prefix "define", macro P[macro] D[macro]
30043    next
30044  } else {
30045    # Replace #undef with comments.  This is necessary, for example,
30046    # in the case of _POSIX_SOURCE, which is predefined and required
30047    # on some systems where configure will not decide to define it.
30048    if (defundef == "undef") {
30049      print "/*", prefix defundef, macro, "*/"
30050      next
30051    }
30052  }
30053}
30054{ print }
30055_ACAWK
30056_ACEOF
30057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30058  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30059$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30060   { (exit 1); exit 1; }; }
30061fi # test -n "$CONFIG_HEADERS"
30062
30063
30064eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30065shift
30066for ac_tag
30067do
30068  case $ac_tag in
30069  :[FHLC]) ac_mode=$ac_tag; continue;;
30070  esac
30071  case $ac_mode$ac_tag in
30072  :[FHL]*:*);;
30073  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30074$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30075   { (exit 1); exit 1; }; };;
30076  :[FH]-) ac_tag=-:-;;
30077  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30078  esac
30079  ac_save_IFS=$IFS
30080  IFS=:
30081  set x $ac_tag
30082  IFS=$ac_save_IFS
30083  shift
30084  ac_file=$1
30085  shift
30086
30087  case $ac_mode in
30088  :L) ac_source=$1;;
30089  :[FH])
30090    ac_file_inputs=
30091    for ac_f
30092    do
30093      case $ac_f in
30094      -) ac_f="$tmp/stdin";;
30095      *) # Look for the file first in the build tree, then in the source tree
30096	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
30097	 # because $ac_f cannot contain `:'.
30098	 test -f "$ac_f" ||
30099	   case $ac_f in
30100	   [\\/$]*) false;;
30101	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30102	   esac ||
30103	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30104$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30105   { (exit 1); exit 1; }; };;
30106      esac
30107      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30108      ac_file_inputs="$ac_file_inputs '$ac_f'"
30109    done
30110
30111    # Let's still pretend it is `configure' which instantiates (i.e., don't
30112    # use $as_me), people would be surprised to read:
30113    #    /* config.h.  Generated by config.status.  */
30114    configure_input='Generated from '`
30115	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30116	`' by configure.'
30117    if test x"$ac_file" != x-; then
30118      configure_input="$ac_file.  $configure_input"
30119      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30120$as_echo "$as_me: creating $ac_file" >&6;}
30121    fi
30122    # Neutralize special characters interpreted by sed in replacement strings.
30123    case $configure_input in #(
30124    *\&* | *\|* | *\\* )
30125       ac_sed_conf_input=`$as_echo "$configure_input" |
30126       sed 's/[\\\\&|]/\\\\&/g'`;; #(
30127    *) ac_sed_conf_input=$configure_input;;
30128    esac
30129
30130    case $ac_tag in
30131    *:-:* | *:-) cat >"$tmp/stdin" \
30132      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30133$as_echo "$as_me: error: could not create $ac_file" >&2;}
30134   { (exit 1); exit 1; }; } ;;
30135    esac
30136    ;;
30137  esac
30138
30139  ac_dir=`$as_dirname -- "$ac_file" ||
30140$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30141	 X"$ac_file" : 'X\(//\)[^/]' \| \
30142	 X"$ac_file" : 'X\(//\)$' \| \
30143	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30144$as_echo X"$ac_file" |
30145    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30146	    s//\1/
30147	    q
30148	  }
30149	  /^X\(\/\/\)[^/].*/{
30150	    s//\1/
30151	    q
30152	  }
30153	  /^X\(\/\/\)$/{
30154	    s//\1/
30155	    q
30156	  }
30157	  /^X\(\/\).*/{
30158	    s//\1/
30159	    q
30160	  }
30161	  s/.*/./; q'`
30162  { as_dir="$ac_dir"
30163  case $as_dir in #(
30164  -*) as_dir=./$as_dir;;
30165  esac
30166  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30167    as_dirs=
30168    while :; do
30169      case $as_dir in #(
30170      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30171      *) as_qdir=$as_dir;;
30172      esac
30173      as_dirs="'$as_qdir' $as_dirs"
30174      as_dir=`$as_dirname -- "$as_dir" ||
30175$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30176	 X"$as_dir" : 'X\(//\)[^/]' \| \
30177	 X"$as_dir" : 'X\(//\)$' \| \
30178	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30179$as_echo X"$as_dir" |
30180    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30181	    s//\1/
30182	    q
30183	  }
30184	  /^X\(\/\/\)[^/].*/{
30185	    s//\1/
30186	    q
30187	  }
30188	  /^X\(\/\/\)$/{
30189	    s//\1/
30190	    q
30191	  }
30192	  /^X\(\/\).*/{
30193	    s//\1/
30194	    q
30195	  }
30196	  s/.*/./; q'`
30197      test -d "$as_dir" && break
30198    done
30199    test -z "$as_dirs" || eval "mkdir $as_dirs"
30200  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30201$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30202   { (exit 1); exit 1; }; }; }
30203  ac_builddir=.
30204
30205case "$ac_dir" in
30206.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30207*)
30208  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30209  # A ".." for each directory in $ac_dir_suffix.
30210  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30211  case $ac_top_builddir_sub in
30212  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30213  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30214  esac ;;
30215esac
30216ac_abs_top_builddir=$ac_pwd
30217ac_abs_builddir=$ac_pwd$ac_dir_suffix
30218# for backward compatibility:
30219ac_top_builddir=$ac_top_build_prefix
30220
30221case $srcdir in
30222  .)  # We are building in place.
30223    ac_srcdir=.
30224    ac_top_srcdir=$ac_top_builddir_sub
30225    ac_abs_top_srcdir=$ac_pwd ;;
30226  [\\/]* | ?:[\\/]* )  # Absolute name.
30227    ac_srcdir=$srcdir$ac_dir_suffix;
30228    ac_top_srcdir=$srcdir
30229    ac_abs_top_srcdir=$srcdir ;;
30230  *) # Relative name.
30231    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30232    ac_top_srcdir=$ac_top_build_prefix$srcdir
30233    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30234esac
30235ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30236
30237
30238  case $ac_mode in
30239  :F)
30240  #
30241  # CONFIG_FILE
30242  #
30243
30244  case $INSTALL in
30245  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30246  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30247  esac
30248  ac_MKDIR_P=$MKDIR_P
30249  case $MKDIR_P in
30250  [\\/$]* | ?:[\\/]* ) ;;
30251  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30252  esac
30253_ACEOF
30254
30255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30256# If the template does not know about datarootdir, expand it.
30257# FIXME: This hack should be removed a few years after 2.60.
30258ac_datarootdir_hack=; ac_datarootdir_seen=
30259
30260ac_sed_dataroot='
30261/datarootdir/ {
30262  p
30263  q
30264}
30265/@datadir@/p
30266/@docdir@/p
30267/@infodir@/p
30268/@localedir@/p
30269/@mandir@/p
30270'
30271case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30272*datarootdir*) ac_datarootdir_seen=yes;;
30273*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30274  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30275$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30276_ACEOF
30277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30278  ac_datarootdir_hack='
30279  s&@datadir@&$datadir&g
30280  s&@docdir@&$docdir&g
30281  s&@infodir@&$infodir&g
30282  s&@localedir@&$localedir&g
30283  s&@mandir@&$mandir&g
30284    s&\\\${datarootdir}&$datarootdir&g' ;;
30285esac
30286_ACEOF
30287
30288# Neutralize VPATH when `$srcdir' = `.'.
30289# Shell code in configure.ac might set extrasub.
30290# FIXME: do we really want to maintain this feature?
30291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30292ac_sed_extra="$ac_vpsub
30293$extrasub
30294_ACEOF
30295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30296:t
30297/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30298s|@configure_input@|$ac_sed_conf_input|;t t
30299s&@top_builddir@&$ac_top_builddir_sub&;t t
30300s&@top_build_prefix@&$ac_top_build_prefix&;t t
30301s&@srcdir@&$ac_srcdir&;t t
30302s&@abs_srcdir@&$ac_abs_srcdir&;t t
30303s&@top_srcdir@&$ac_top_srcdir&;t t
30304s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30305s&@builddir@&$ac_builddir&;t t
30306s&@abs_builddir@&$ac_abs_builddir&;t t
30307s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30308s&@INSTALL@&$ac_INSTALL&;t t
30309s&@MKDIR_P@&$ac_MKDIR_P&;t t
30310$ac_datarootdir_hack
30311"
30312eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30313  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30314$as_echo "$as_me: error: could not create $ac_file" >&2;}
30315   { (exit 1); exit 1; }; }
30316
30317test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30318  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30319  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30320  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30321which seems to be undefined.  Please make sure it is defined." >&5
30322$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30323which seems to be undefined.  Please make sure it is defined." >&2;}
30324
30325  rm -f "$tmp/stdin"
30326  case $ac_file in
30327  -) cat "$tmp/out" && rm -f "$tmp/out";;
30328  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30329  esac \
30330  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30331$as_echo "$as_me: error: could not create $ac_file" >&2;}
30332   { (exit 1); exit 1; }; }
30333 ;;
30334  :H)
30335  #
30336  # CONFIG_HEADER
30337  #
30338  if test x"$ac_file" != x-; then
30339    {
30340      $as_echo "/* $configure_input  */" \
30341      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30342    } >"$tmp/config.h" \
30343      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30344$as_echo "$as_me: error: could not create $ac_file" >&2;}
30345   { (exit 1); exit 1; }; }
30346    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30347      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30348$as_echo "$as_me: $ac_file is unchanged" >&6;}
30349    else
30350      rm -f "$ac_file"
30351      mv "$tmp/config.h" "$ac_file" \
30352	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30353$as_echo "$as_me: error: could not create $ac_file" >&2;}
30354   { (exit 1); exit 1; }; }
30355    fi
30356  else
30357    $as_echo "/* $configure_input  */" \
30358      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30359      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30360$as_echo "$as_me: error: could not create -" >&2;}
30361   { (exit 1); exit 1; }; }
30362  fi
30363# Compute "$ac_file"'s index in $config_headers.
30364_am_arg="$ac_file"
30365_am_stamp_count=1
30366for _am_header in $config_headers :; do
30367  case $_am_header in
30368    $_am_arg | $_am_arg:* )
30369      break ;;
30370    * )
30371      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30372  esac
30373done
30374echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30375$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30376	 X"$_am_arg" : 'X\(//\)[^/]' \| \
30377	 X"$_am_arg" : 'X\(//\)$' \| \
30378	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30379$as_echo X"$_am_arg" |
30380    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30381	    s//\1/
30382	    q
30383	  }
30384	  /^X\(\/\/\)[^/].*/{
30385	    s//\1/
30386	    q
30387	  }
30388	  /^X\(\/\/\)$/{
30389	    s//\1/
30390	    q
30391	  }
30392	  /^X\(\/\).*/{
30393	    s//\1/
30394	    q
30395	  }
30396	  s/.*/./; q'`/stamp-h$_am_stamp_count
30397 ;;
30398
30399  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30400$as_echo "$as_me: executing $ac_file commands" >&6;}
30401 ;;
30402  esac
30403
30404
30405  case $ac_file$ac_mode in
30406    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30407  # Autoconf 2.62 quotes --file arguments for eval, but not when files
30408  # are listed without --file.  Let's play safe and only enable the eval
30409  # if we detect the quoting.
30410  case $CONFIG_FILES in
30411  *\'*) eval set x "$CONFIG_FILES" ;;
30412  *)   set x $CONFIG_FILES ;;
30413  esac
30414  shift
30415  for mf
30416  do
30417    # Strip MF so we end up with the name of the file.
30418    mf=`echo "$mf" | sed -e 's/:.*$//'`
30419    # Check whether this is an Automake generated Makefile or not.
30420    # We used to match only the files named `Makefile.in', but
30421    # some people rename them; so instead we look at the file content.
30422    # Grep'ing the first line is not enough: some people post-process
30423    # each Makefile.in and add a new line on top of each file to say so.
30424    # Grep'ing the whole file is not good either: AIX grep has a line
30425    # limit of 2048, but all sed's we know have understand at least 4000.
30426    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30427      dirpart=`$as_dirname -- "$mf" ||
30428$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30429	 X"$mf" : 'X\(//\)[^/]' \| \
30430	 X"$mf" : 'X\(//\)$' \| \
30431	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30432$as_echo X"$mf" |
30433    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30434	    s//\1/
30435	    q
30436	  }
30437	  /^X\(\/\/\)[^/].*/{
30438	    s//\1/
30439	    q
30440	  }
30441	  /^X\(\/\/\)$/{
30442	    s//\1/
30443	    q
30444	  }
30445	  /^X\(\/\).*/{
30446	    s//\1/
30447	    q
30448	  }
30449	  s/.*/./; q'`
30450    else
30451      continue
30452    fi
30453    # Extract the definition of DEPDIR, am__include, and am__quote
30454    # from the Makefile without running `make'.
30455    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30456    test -z "$DEPDIR" && continue
30457    am__include=`sed -n 's/^am__include = //p' < "$mf"`
30458    test -z "am__include" && continue
30459    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30460    # When using ansi2knr, U may be empty or an underscore; expand it
30461    U=`sed -n 's/^U = //p' < "$mf"`
30462    # Find all dependency output files, they are included files with
30463    # $(DEPDIR) in their names.  We invoke sed twice because it is the
30464    # simplest approach to changing $(DEPDIR) to its actual value in the
30465    # expansion.
30466    for file in `sed -n "
30467      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30468	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30469      # Make sure the directory exists.
30470      test -f "$dirpart/$file" && continue
30471      fdir=`$as_dirname -- "$file" ||
30472$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30473	 X"$file" : 'X\(//\)[^/]' \| \
30474	 X"$file" : 'X\(//\)$' \| \
30475	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30476$as_echo X"$file" |
30477    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30478	    s//\1/
30479	    q
30480	  }
30481	  /^X\(\/\/\)[^/].*/{
30482	    s//\1/
30483	    q
30484	  }
30485	  /^X\(\/\/\)$/{
30486	    s//\1/
30487	    q
30488	  }
30489	  /^X\(\/\).*/{
30490	    s//\1/
30491	    q
30492	  }
30493	  s/.*/./; q'`
30494      { as_dir=$dirpart/$fdir
30495  case $as_dir in #(
30496  -*) as_dir=./$as_dir;;
30497  esac
30498  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30499    as_dirs=
30500    while :; do
30501      case $as_dir in #(
30502      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30503      *) as_qdir=$as_dir;;
30504      esac
30505      as_dirs="'$as_qdir' $as_dirs"
30506      as_dir=`$as_dirname -- "$as_dir" ||
30507$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30508	 X"$as_dir" : 'X\(//\)[^/]' \| \
30509	 X"$as_dir" : 'X\(//\)$' \| \
30510	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30511$as_echo X"$as_dir" |
30512    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30513	    s//\1/
30514	    q
30515	  }
30516	  /^X\(\/\/\)[^/].*/{
30517	    s//\1/
30518	    q
30519	  }
30520	  /^X\(\/\/\)$/{
30521	    s//\1/
30522	    q
30523	  }
30524	  /^X\(\/\).*/{
30525	    s//\1/
30526	    q
30527	  }
30528	  s/.*/./; q'`
30529      test -d "$as_dir" && break
30530    done
30531    test -z "$as_dirs" || eval "mkdir $as_dirs"
30532  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30533$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30534   { (exit 1); exit 1; }; }; }
30535      # echo "creating $dirpart/$file"
30536      echo '# dummy' > "$dirpart/$file"
30537    done
30538  done
30539}
30540 ;;
30541    "libtool":C)
30542
30543    # See if we are running on zsh, and set the options which allow our
30544    # commands through without removal of \ escapes.
30545    if test -n "${ZSH_VERSION+set}" ; then
30546      setopt NO_GLOB_SUBST
30547    fi
30548
30549    cfgfile="${ofile}T"
30550    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30551    $RM "$cfgfile"
30552
30553    cat <<_LT_EOF >> "$cfgfile"
30554#! $SHELL
30555
30556# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30557# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30558# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30559# NOTE: Changes made to this file will be lost: look at ltmain.sh.
30560#
30561#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30562#                 2006, 2007, 2008 Free Software Foundation, Inc.
30563#   Written by Gordon Matzigkeit, 1996
30564#
30565#   This file is part of GNU Libtool.
30566#
30567# GNU Libtool is free software; you can redistribute it and/or
30568# modify it under the terms of the GNU General Public License as
30569# published by the Free Software Foundation; either version 2 of
30570# the License, or (at your option) any later version.
30571#
30572# As a special exception to the GNU General Public License,
30573# if you distribute this file as part of a program or library that
30574# is built using GNU Libtool, you may include this file under the
30575# same distribution terms that you use for the rest of that program.
30576#
30577# GNU Libtool is distributed in the hope that it will be useful,
30578# but WITHOUT ANY WARRANTY; without even the implied warranty of
30579# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30580# GNU General Public License for more details.
30581#
30582# You should have received a copy of the GNU General Public License
30583# along with GNU Libtool; see the file COPYING.  If not, a copy
30584# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30585# obtained by writing to the Free Software Foundation, Inc.,
30586# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30587
30588
30589# The names of the tagged configurations supported by this script.
30590available_tags="CXX "
30591
30592# ### BEGIN LIBTOOL CONFIG
30593
30594# Which release of libtool.m4 was used?
30595macro_version=$macro_version
30596macro_revision=$macro_revision
30597
30598# Whether or not to build shared libraries.
30599build_libtool_libs=$enable_shared
30600
30601# Whether or not to build static libraries.
30602build_old_libs=$enable_static
30603
30604# What type of objects to build.
30605pic_mode=$pic_mode
30606
30607# Whether or not to optimize for fast installation.
30608fast_install=$enable_fast_install
30609
30610# The host system.
30611host_alias=$host_alias
30612host=$host
30613host_os=$host_os
30614
30615# The build system.
30616build_alias=$build_alias
30617build=$build
30618build_os=$build_os
30619
30620# A sed program that does not truncate output.
30621SED=$lt_SED
30622
30623# Sed that helps us avoid accidentally triggering echo(1) options like -n.
30624Xsed="\$SED -e 1s/^X//"
30625
30626# A grep program that handles long lines.
30627GREP=$lt_GREP
30628
30629# An ERE matcher.
30630EGREP=$lt_EGREP
30631
30632# A literal string matcher.
30633FGREP=$lt_FGREP
30634
30635# A BSD- or MS-compatible name lister.
30636NM=$lt_NM
30637
30638# Whether we need soft or hard links.
30639LN_S=$lt_LN_S
30640
30641# What is the maximum length of a command?
30642max_cmd_len=$max_cmd_len
30643
30644# Object file suffix (normally "o").
30645objext=$ac_objext
30646
30647# Executable file suffix (normally "").
30648exeext=$exeext
30649
30650# whether the shell understands "unset".
30651lt_unset=$lt_unset
30652
30653# turn spaces into newlines.
30654SP2NL=$lt_lt_SP2NL
30655
30656# turn newlines into spaces.
30657NL2SP=$lt_lt_NL2SP
30658
30659# How to create reloadable object files.
30660reload_flag=$lt_reload_flag
30661reload_cmds=$lt_reload_cmds
30662
30663# An object symbol dumper.
30664OBJDUMP=$lt_OBJDUMP
30665
30666# Method to check whether dependent libraries are shared objects.
30667deplibs_check_method=$lt_deplibs_check_method
30668
30669# Command to use when deplibs_check_method == "file_magic".
30670file_magic_cmd=$lt_file_magic_cmd
30671
30672# The archiver.
30673AR=$lt_AR
30674AR_FLAGS=$lt_AR_FLAGS
30675
30676# A symbol stripping program.
30677STRIP=$lt_STRIP
30678
30679# Commands used to install an old-style archive.
30680RANLIB=$lt_RANLIB
30681old_postinstall_cmds=$lt_old_postinstall_cmds
30682old_postuninstall_cmds=$lt_old_postuninstall_cmds
30683
30684# A C compiler.
30685LTCC=$lt_CC
30686
30687# LTCC compiler flags.
30688LTCFLAGS=$lt_CFLAGS
30689
30690# Take the output of nm and produce a listing of raw symbols and C names.
30691global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30692
30693# Transform the output of nm in a proper C declaration.
30694global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30695
30696# Transform the output of nm in a C name address pair.
30697global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30698
30699# Transform the output of nm in a C name address pair when lib prefix is needed.
30700global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30701
30702# The name of the directory that contains temporary libtool files.
30703objdir=$objdir
30704
30705# Shell to use when invoking shell scripts.
30706SHELL=$lt_SHELL
30707
30708# An echo program that does not interpret backslashes.
30709ECHO=$lt_ECHO
30710
30711# Used to examine libraries when file_magic_cmd begins with "file".
30712MAGIC_CMD=$MAGIC_CMD
30713
30714# Must we lock files when doing compilation?
30715need_locks=$lt_need_locks
30716
30717# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30718DSYMUTIL=$lt_DSYMUTIL
30719
30720# Tool to change global to local symbols on Mac OS X.
30721NMEDIT=$lt_NMEDIT
30722
30723# Tool to manipulate fat objects and archives on Mac OS X.
30724LIPO=$lt_LIPO
30725
30726# ldd/readelf like tool for Mach-O binaries on Mac OS X.
30727OTOOL=$lt_OTOOL
30728
30729# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30730OTOOL64=$lt_OTOOL64
30731
30732# Old archive suffix (normally "a").
30733libext=$libext
30734
30735# Shared library suffix (normally ".so").
30736shrext_cmds=$lt_shrext_cmds
30737
30738# The commands to extract the exported symbol list from a shared archive.
30739extract_expsyms_cmds=$lt_extract_expsyms_cmds
30740
30741# Variables whose values should be saved in libtool wrapper scripts and
30742# restored at link time.
30743variables_saved_for_relink=$lt_variables_saved_for_relink
30744
30745# Do we need the "lib" prefix for modules?
30746need_lib_prefix=$need_lib_prefix
30747
30748# Do we need a version for libraries?
30749need_version=$need_version
30750
30751# Library versioning type.
30752version_type=$version_type
30753
30754# Shared library runtime path variable.
30755runpath_var=$runpath_var
30756
30757# Shared library path variable.
30758shlibpath_var=$shlibpath_var
30759
30760# Is shlibpath searched before the hard-coded library search path?
30761shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30762
30763# Format of library name prefix.
30764libname_spec=$lt_libname_spec
30765
30766# List of archive names.  First name is the real one, the rest are links.
30767# The last name is the one that the linker finds with -lNAME
30768library_names_spec=$lt_library_names_spec
30769
30770# The coded name of the library, if different from the real name.
30771soname_spec=$lt_soname_spec
30772
30773# Command to use after installation of a shared archive.
30774postinstall_cmds=$lt_postinstall_cmds
30775
30776# Command to use after uninstallation of a shared archive.
30777postuninstall_cmds=$lt_postuninstall_cmds
30778
30779# Commands used to finish a libtool library installation in a directory.
30780finish_cmds=$lt_finish_cmds
30781
30782# As "finish_cmds", except a single script fragment to be evaled but
30783# not shown.
30784finish_eval=$lt_finish_eval
30785
30786# Whether we should hardcode library paths into libraries.
30787hardcode_into_libs=$hardcode_into_libs
30788
30789# Compile-time system search path for libraries.
30790sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30791
30792# Run-time system search path for libraries.
30793sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30794
30795# Whether dlopen is supported.
30796dlopen_support=$enable_dlopen
30797
30798# Whether dlopen of programs is supported.
30799dlopen_self=$enable_dlopen_self
30800
30801# Whether dlopen of statically linked programs is supported.
30802dlopen_self_static=$enable_dlopen_self_static
30803
30804# Commands to strip libraries.
30805old_striplib=$lt_old_striplib
30806striplib=$lt_striplib
30807
30808
30809# The linker used to build libraries.
30810LD=$lt_LD
30811
30812# Commands used to build an old-style archive.
30813old_archive_cmds=$lt_old_archive_cmds
30814
30815# A language specific compiler.
30816CC=$lt_compiler
30817
30818# Is the compiler the GNU compiler?
30819with_gcc=$GCC
30820
30821# Compiler flag to turn off builtin functions.
30822no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30823
30824# How to pass a linker flag through the compiler.
30825wl=$lt_lt_prog_compiler_wl
30826
30827# Additional compiler flags for building library objects.
30828pic_flag=$lt_lt_prog_compiler_pic
30829
30830# Compiler flag to prevent dynamic linking.
30831link_static_flag=$lt_lt_prog_compiler_static
30832
30833# Does compiler simultaneously support -c and -o options?
30834compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30835
30836# Whether or not to add -lc for building shared libraries.
30837build_libtool_need_lc=$archive_cmds_need_lc
30838
30839# Whether or not to disallow shared libs when runtime libs are static.
30840allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30841
30842# Compiler flag to allow reflexive dlopens.
30843export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30844
30845# Compiler flag to generate shared objects directly from archives.
30846whole_archive_flag_spec=$lt_whole_archive_flag_spec
30847
30848# Whether the compiler copes with passing no objects directly.
30849compiler_needs_object=$lt_compiler_needs_object
30850
30851# Create an old-style archive from a shared archive.
30852old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30853
30854# Create a temporary old-style archive to link instead of a shared archive.
30855old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30856
30857# Commands used to build a shared archive.
30858archive_cmds=$lt_archive_cmds
30859archive_expsym_cmds=$lt_archive_expsym_cmds
30860
30861# Commands used to build a loadable module if different from building
30862# a shared archive.
30863module_cmds=$lt_module_cmds
30864module_expsym_cmds=$lt_module_expsym_cmds
30865
30866# Whether we are building with GNU ld or not.
30867with_gnu_ld=$lt_with_gnu_ld
30868
30869# Flag that allows shared libraries with undefined symbols to be built.
30870allow_undefined_flag=$lt_allow_undefined_flag
30871
30872# Flag that enforces no undefined symbols.
30873no_undefined_flag=$lt_no_undefined_flag
30874
30875# Flag to hardcode \$libdir into a binary during linking.
30876# This must work even if \$libdir does not exist
30877hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30878
30879# If ld is used when linking, flag to hardcode \$libdir into a binary
30880# during linking.  This must work even if \$libdir does not exist.
30881hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30882
30883# Whether we need a single "-rpath" flag with a separated argument.
30884hardcode_libdir_separator=$lt_hardcode_libdir_separator
30885
30886# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30887# DIR into the resulting binary.
30888hardcode_direct=$hardcode_direct
30889
30890# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30891# DIR into the resulting binary and the resulting library dependency is
30892# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30893# library is relocated.
30894hardcode_direct_absolute=$hardcode_direct_absolute
30895
30896# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30897# into the resulting binary.
30898hardcode_minus_L=$hardcode_minus_L
30899
30900# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30901# into the resulting binary.
30902hardcode_shlibpath_var=$hardcode_shlibpath_var
30903
30904# Set to "yes" if building a shared library automatically hardcodes DIR
30905# into the library and all subsequent libraries and executables linked
30906# against it.
30907hardcode_automatic=$hardcode_automatic
30908
30909# Set to yes if linker adds runtime paths of dependent libraries
30910# to runtime path list.
30911inherit_rpath=$inherit_rpath
30912
30913# Whether libtool must link a program against all its dependency libraries.
30914link_all_deplibs=$link_all_deplibs
30915
30916# Fix the shell variable \$srcfile for the compiler.
30917fix_srcfile_path=$lt_fix_srcfile_path
30918
30919# Set to "yes" if exported symbols are required.
30920always_export_symbols=$always_export_symbols
30921
30922# The commands to list exported symbols.
30923export_symbols_cmds=$lt_export_symbols_cmds
30924
30925# Symbols that should not be listed in the preloaded symbols.
30926exclude_expsyms=$lt_exclude_expsyms
30927
30928# Symbols that must always be exported.
30929include_expsyms=$lt_include_expsyms
30930
30931# Commands necessary for linking programs (against libraries) with templates.
30932prelink_cmds=$lt_prelink_cmds
30933
30934# Specify filename containing input files.
30935file_list_spec=$lt_file_list_spec
30936
30937# How to hardcode a shared library path into an executable.
30938hardcode_action=$hardcode_action
30939
30940# The directories searched by this compiler when creating a shared library.
30941compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30942
30943# Dependencies to place before and after the objects being linked to
30944# create a shared library.
30945predep_objects=$lt_predep_objects
30946postdep_objects=$lt_postdep_objects
30947predeps=$lt_predeps
30948postdeps=$lt_postdeps
30949
30950# The library search path used internally by the compiler when linking
30951# a shared library.
30952compiler_lib_search_path=$lt_compiler_lib_search_path
30953
30954# ### END LIBTOOL CONFIG
30955
30956_LT_EOF
30957
30958  case $host_os in
30959  aix3*)
30960    cat <<\_LT_EOF >> "$cfgfile"
30961# AIX sometimes has problems with the GCC collect2 program.  For some
30962# reason, if we set the COLLECT_NAMES environment variable, the problems
30963# vanish in a puff of smoke.
30964if test "X${COLLECT_NAMES+set}" != Xset; then
30965  COLLECT_NAMES=
30966  export COLLECT_NAMES
30967fi
30968_LT_EOF
30969    ;;
30970  esac
30971
30972
30973ltmain="$ac_aux_dir/ltmain.sh"
30974
30975
30976  # We use sed instead of cat because bash on DJGPP gets confused if
30977  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30978  # text mode, it properly converts lines to CR/LF.  This bash problem
30979  # is reportedly fixed, but why not run on old versions too?
30980  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30981    || (rm -f "$cfgfile"; exit 1)
30982
30983  case $xsi_shell in
30984  yes)
30985    cat << \_LT_EOF >> "$cfgfile"
30986
30987# func_dirname file append nondir_replacement
30988# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30989# otherwise set result to NONDIR_REPLACEMENT.
30990func_dirname ()
30991{
30992  case ${1} in
30993    */*) func_dirname_result="${1%/*}${2}" ;;
30994    *  ) func_dirname_result="${3}" ;;
30995  esac
30996}
30997
30998# func_basename file
30999func_basename ()
31000{
31001  func_basename_result="${1##*/}"
31002}
31003
31004# func_dirname_and_basename file append nondir_replacement
31005# perform func_basename and func_dirname in a single function
31006# call:
31007#   dirname:  Compute the dirname of FILE.  If nonempty,
31008#             add APPEND to the result, otherwise set result
31009#             to NONDIR_REPLACEMENT.
31010#             value returned in "$func_dirname_result"
31011#   basename: Compute filename of FILE.
31012#             value retuned in "$func_basename_result"
31013# Implementation must be kept synchronized with func_dirname
31014# and func_basename. For efficiency, we do not delegate to
31015# those functions but instead duplicate the functionality here.
31016func_dirname_and_basename ()
31017{
31018  case ${1} in
31019    */*) func_dirname_result="${1%/*}${2}" ;;
31020    *  ) func_dirname_result="${3}" ;;
31021  esac
31022  func_basename_result="${1##*/}"
31023}
31024
31025# func_stripname prefix suffix name
31026# strip PREFIX and SUFFIX off of NAME.
31027# PREFIX and SUFFIX must not contain globbing or regex special
31028# characters, hashes, percent signs, but SUFFIX may contain a leading
31029# dot (in which case that matches only a dot).
31030func_stripname ()
31031{
31032  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31033  # positional parameters, so assign one to ordinary parameter first.
31034  func_stripname_result=${3}
31035  func_stripname_result=${func_stripname_result#"${1}"}
31036  func_stripname_result=${func_stripname_result%"${2}"}
31037}
31038
31039# func_opt_split
31040func_opt_split ()
31041{
31042  func_opt_split_opt=${1%%=*}
31043  func_opt_split_arg=${1#*=}
31044}
31045
31046# func_lo2o object
31047func_lo2o ()
31048{
31049  case ${1} in
31050    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31051    *)    func_lo2o_result=${1} ;;
31052  esac
31053}
31054
31055# func_xform libobj-or-source
31056func_xform ()
31057{
31058  func_xform_result=${1%.*}.lo
31059}
31060
31061# func_arith arithmetic-term...
31062func_arith ()
31063{
31064  func_arith_result=$(( $* ))
31065}
31066
31067# func_len string
31068# STRING may not start with a hyphen.
31069func_len ()
31070{
31071  func_len_result=${#1}
31072}
31073
31074_LT_EOF
31075    ;;
31076  *) # Bourne compatible functions.
31077    cat << \_LT_EOF >> "$cfgfile"
31078
31079# func_dirname file append nondir_replacement
31080# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31081# otherwise set result to NONDIR_REPLACEMENT.
31082func_dirname ()
31083{
31084  # Extract subdirectory from the argument.
31085  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31086  if test "X$func_dirname_result" = "X${1}"; then
31087    func_dirname_result="${3}"
31088  else
31089    func_dirname_result="$func_dirname_result${2}"
31090  fi
31091}
31092
31093# func_basename file
31094func_basename ()
31095{
31096  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31097}
31098
31099
31100# func_stripname prefix suffix name
31101# strip PREFIX and SUFFIX off of NAME.
31102# PREFIX and SUFFIX must not contain globbing or regex special
31103# characters, hashes, percent signs, but SUFFIX may contain a leading
31104# dot (in which case that matches only a dot).
31105# func_strip_suffix prefix name
31106func_stripname ()
31107{
31108  case ${2} in
31109    .*) func_stripname_result=`$ECHO "X${3}" \
31110           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31111    *)  func_stripname_result=`$ECHO "X${3}" \
31112           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31113  esac
31114}
31115
31116# sed scripts:
31117my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31118my_sed_long_arg='1s/^-[^=]*=//'
31119
31120# func_opt_split
31121func_opt_split ()
31122{
31123  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31124  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31125}
31126
31127# func_lo2o object
31128func_lo2o ()
31129{
31130  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31131}
31132
31133# func_xform libobj-or-source
31134func_xform ()
31135{
31136  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31137}
31138
31139# func_arith arithmetic-term...
31140func_arith ()
31141{
31142  func_arith_result=`expr "$@"`
31143}
31144
31145# func_len string
31146# STRING may not start with a hyphen.
31147func_len ()
31148{
31149  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31150}
31151
31152_LT_EOF
31153esac
31154
31155case $lt_shell_append in
31156  yes)
31157    cat << \_LT_EOF >> "$cfgfile"
31158
31159# func_append var value
31160# Append VALUE to the end of shell variable VAR.
31161func_append ()
31162{
31163  eval "$1+=\$2"
31164}
31165_LT_EOF
31166    ;;
31167  *)
31168    cat << \_LT_EOF >> "$cfgfile"
31169
31170# func_append var value
31171# Append VALUE to the end of shell variable VAR.
31172func_append ()
31173{
31174  eval "$1=\$$1\$2"
31175}
31176
31177_LT_EOF
31178    ;;
31179  esac
31180
31181
31182  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31183    || (rm -f "$cfgfile"; exit 1)
31184
31185  mv -f "$cfgfile" "$ofile" ||
31186    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31187  chmod +x "$ofile"
31188
31189
31190    cat <<_LT_EOF >> "$ofile"
31191
31192# ### BEGIN LIBTOOL TAG CONFIG: CXX
31193
31194# The linker used to build libraries.
31195LD=$lt_LD_CXX
31196
31197# Commands used to build an old-style archive.
31198old_archive_cmds=$lt_old_archive_cmds_CXX
31199
31200# A language specific compiler.
31201CC=$lt_compiler_CXX
31202
31203# Is the compiler the GNU compiler?
31204with_gcc=$GCC_CXX
31205
31206# Compiler flag to turn off builtin functions.
31207no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31208
31209# How to pass a linker flag through the compiler.
31210wl=$lt_lt_prog_compiler_wl_CXX
31211
31212# Additional compiler flags for building library objects.
31213pic_flag=$lt_lt_prog_compiler_pic_CXX
31214
31215# Compiler flag to prevent dynamic linking.
31216link_static_flag=$lt_lt_prog_compiler_static_CXX
31217
31218# Does compiler simultaneously support -c and -o options?
31219compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31220
31221# Whether or not to add -lc for building shared libraries.
31222build_libtool_need_lc=$archive_cmds_need_lc_CXX
31223
31224# Whether or not to disallow shared libs when runtime libs are static.
31225allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31226
31227# Compiler flag to allow reflexive dlopens.
31228export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31229
31230# Compiler flag to generate shared objects directly from archives.
31231whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31232
31233# Whether the compiler copes with passing no objects directly.
31234compiler_needs_object=$lt_compiler_needs_object_CXX
31235
31236# Create an old-style archive from a shared archive.
31237old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31238
31239# Create a temporary old-style archive to link instead of a shared archive.
31240old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31241
31242# Commands used to build a shared archive.
31243archive_cmds=$lt_archive_cmds_CXX
31244archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31245
31246# Commands used to build a loadable module if different from building
31247# a shared archive.
31248module_cmds=$lt_module_cmds_CXX
31249module_expsym_cmds=$lt_module_expsym_cmds_CXX
31250
31251# Whether we are building with GNU ld or not.
31252with_gnu_ld=$lt_with_gnu_ld_CXX
31253
31254# Flag that allows shared libraries with undefined symbols to be built.
31255allow_undefined_flag=$lt_allow_undefined_flag_CXX
31256
31257# Flag that enforces no undefined symbols.
31258no_undefined_flag=$lt_no_undefined_flag_CXX
31259
31260# Flag to hardcode \$libdir into a binary during linking.
31261# This must work even if \$libdir does not exist
31262hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31263
31264# If ld is used when linking, flag to hardcode \$libdir into a binary
31265# during linking.  This must work even if \$libdir does not exist.
31266hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31267
31268# Whether we need a single "-rpath" flag with a separated argument.
31269hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31270
31271# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31272# DIR into the resulting binary.
31273hardcode_direct=$hardcode_direct_CXX
31274
31275# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31276# DIR into the resulting binary and the resulting library dependency is
31277# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31278# library is relocated.
31279hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31280
31281# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31282# into the resulting binary.
31283hardcode_minus_L=$hardcode_minus_L_CXX
31284
31285# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31286# into the resulting binary.
31287hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31288
31289# Set to "yes" if building a shared library automatically hardcodes DIR
31290# into the library and all subsequent libraries and executables linked
31291# against it.
31292hardcode_automatic=$hardcode_automatic_CXX
31293
31294# Set to yes if linker adds runtime paths of dependent libraries
31295# to runtime path list.
31296inherit_rpath=$inherit_rpath_CXX
31297
31298# Whether libtool must link a program against all its dependency libraries.
31299link_all_deplibs=$link_all_deplibs_CXX
31300
31301# Fix the shell variable \$srcfile for the compiler.
31302fix_srcfile_path=$lt_fix_srcfile_path_CXX
31303
31304# Set to "yes" if exported symbols are required.
31305always_export_symbols=$always_export_symbols_CXX
31306
31307# The commands to list exported symbols.
31308export_symbols_cmds=$lt_export_symbols_cmds_CXX
31309
31310# Symbols that should not be listed in the preloaded symbols.
31311exclude_expsyms=$lt_exclude_expsyms_CXX
31312
31313# Symbols that must always be exported.
31314include_expsyms=$lt_include_expsyms_CXX
31315
31316# Commands necessary for linking programs (against libraries) with templates.
31317prelink_cmds=$lt_prelink_cmds_CXX
31318
31319# Specify filename containing input files.
31320file_list_spec=$lt_file_list_spec_CXX
31321
31322# How to hardcode a shared library path into an executable.
31323hardcode_action=$hardcode_action_CXX
31324
31325# The directories searched by this compiler when creating a shared library.
31326compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31327
31328# Dependencies to place before and after the objects being linked to
31329# create a shared library.
31330predep_objects=$lt_predep_objects_CXX
31331postdep_objects=$lt_postdep_objects_CXX
31332predeps=$lt_predeps_CXX
31333postdeps=$lt_postdeps_CXX
31334
31335# The library search path used internally by the compiler when linking
31336# a shared library.
31337compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31338
31339# ### END LIBTOOL TAG CONFIG: CXX
31340_LT_EOF
31341
31342 ;;
31343    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
31344        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
31345      esac ;;
31346    "po-directories":C)
31347    for ac_file in $CONFIG_FILES; do
31348      # Support "outfile[:infile[:infile...]]"
31349      case "$ac_file" in
31350        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31351      esac
31352      # PO directories have a Makefile.in generated from Makefile.in.in.
31353      case "$ac_file" in */Makefile.in)
31354        # Adjust a relative srcdir.
31355        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31356        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31357        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31358        # In autoconf-2.13 it is called $ac_given_srcdir.
31359        # In autoconf-2.50 it is called $srcdir.
31360        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31361        case "$ac_given_srcdir" in
31362          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31363          /*) top_srcdir="$ac_given_srcdir" ;;
31364          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31365        esac
31366        # Treat a directory as a PO directory if and only if it has a
31367        # POTFILES.in file. This allows packages to have multiple PO
31368        # directories under different names or in different locations.
31369        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31370          rm -f "$ac_dir/POTFILES"
31371          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31372          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31373          POMAKEFILEDEPS="POTFILES.in"
31374          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31375          # on $ac_dir but don't depend on user-specified configuration
31376          # parameters.
31377          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31378            # The LINGUAS file contains the set of available languages.
31379            if test -n "$OBSOLETE_ALL_LINGUAS"; then
31380              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31381            fi
31382            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31383            # Hide the ALL_LINGUAS assigment from automake < 1.5.
31384            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31385            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31386          else
31387            # The set of available languages was given in configure.in.
31388            # Hide the ALL_LINGUAS assigment from automake < 1.5.
31389            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31390          fi
31391          # Compute POFILES
31392          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31393          # Compute UPDATEPOFILES
31394          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31395          # Compute DUMMYPOFILES
31396          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31397          # Compute GMOFILES
31398          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31399          case "$ac_given_srcdir" in
31400            .) srcdirpre= ;;
31401            *) srcdirpre='$(srcdir)/' ;;
31402          esac
31403          POFILES=
31404          UPDATEPOFILES=
31405          DUMMYPOFILES=
31406          GMOFILES=
31407          for lang in $ALL_LINGUAS; do
31408            POFILES="$POFILES $srcdirpre$lang.po"
31409            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31410            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31411            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31412          done
31413          # CATALOGS depends on both $ac_dir and the user's LINGUAS
31414          # environment variable.
31415          INST_LINGUAS=
31416          if test -n "$ALL_LINGUAS"; then
31417            for presentlang in $ALL_LINGUAS; do
31418              useit=no
31419              if test "%UNSET%" != "$LINGUAS"; then
31420                desiredlanguages="$LINGUAS"
31421              else
31422                desiredlanguages="$ALL_LINGUAS"
31423              fi
31424              for desiredlang in $desiredlanguages; do
31425                # Use the presentlang catalog if desiredlang is
31426                #   a. equal to presentlang, or
31427                #   b. a variant of presentlang (because in this case,
31428                #      presentlang can be used as a fallback for messages
31429                #      which are not translated in the desiredlang catalog).
31430                case "$desiredlang" in
31431                  "$presentlang"*) useit=yes;;
31432                esac
31433              done
31434              if test $useit = yes; then
31435                INST_LINGUAS="$INST_LINGUAS $presentlang"
31436              fi
31437            done
31438          fi
31439          CATALOGS=
31440          if test -n "$INST_LINGUAS"; then
31441            for lang in $INST_LINGUAS; do
31442              CATALOGS="$CATALOGS $lang.gmo"
31443            done
31444          fi
31445          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31446          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"
31447          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31448            if test -f "$f"; then
31449              case "$f" in
31450                *.orig | *.bak | *~) ;;
31451                *) cat "$f" >> "$ac_dir/Makefile" ;;
31452              esac
31453            fi
31454          done
31455        fi
31456        ;;
31457      esac
31458    done ;;
31459    "po/stamp-it":C)
31460    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
31461       { { $as_echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
31462$as_echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
31463   { (exit 1); exit 1; }; }
31464    fi
31465    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
31466    >"po/stamp-it.tmp"
31467    sed '/^#/d
31468	 s/^[[].*] *//
31469	 /^[ 	]*$/d
31470	'"s|^|	$ac_top_srcdir/|" \
31471      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
31472
31473    sed '/^POTFILES =/,/[^\\]$/ {
31474		/^POTFILES =/!d
31475		r po/POTFILES
31476	  }
31477	 ' "po/Makefile.in" >"po/Makefile"
31478    rm -f "po/Makefile.tmp"
31479    mv "po/stamp-it.tmp" "po/stamp-it"
31480   ;;
31481
31482  esac
31483done # for ac_tag
31484
31485
31486{ (exit 0); exit 0; }
31487_ACEOF
31488chmod +x $CONFIG_STATUS
31489ac_clean_files=$ac_clean_files_save
31490
31491test $ac_write_fail = 0 ||
31492  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31493$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31494   { (exit 1); exit 1; }; }
31495
31496
31497# configure is writing to config.log, and then calls config.status.
31498# config.status does its own redirection, appending to config.log.
31499# Unfortunately, on DOS this fails, as config.log is still kept open
31500# by configure, so config.status won't be able to write to it; its
31501# output is simply discarded.  So we exec the FD to /dev/null,
31502# effectively closing config.log, so it can be properly (re)opened and
31503# appended to by config.status.  When coming back to configure, we
31504# need to make the FD available again.
31505if test "$no_create" != yes; then
31506  ac_cs_success=:
31507  ac_config_status_args=
31508  test "$silent" = yes &&
31509    ac_config_status_args="$ac_config_status_args --quiet"
31510  exec 5>/dev/null
31511  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31512  exec 5>>config.log
31513  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31514  # would make configure fail if this is the last instruction.
31515  $ac_cs_success || { (exit 1); exit 1; }
31516fi
31517if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31518  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31519$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31520fi
31521
31522
31523