1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for yasm 1.3.0.
4#
5# Report bugs to <bug-yasm@tortall.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: bug-yasm@tortall.net about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='yasm'
582PACKAGE_TARNAME='yasm'
583PACKAGE_VERSION='1.3.0'
584PACKAGE_STRING='yasm 1.3.0'
585PACKAGE_BUGREPORT='bug-yasm@tortall.net'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624gt_needs=
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628LIBOBJS
629HAVE_PYTHON_BINDINGS_FALSE
630HAVE_PYTHON_BINDINGS_TRUE
631HAVE_PYTHON_FALSE
632HAVE_PYTHON_TRUE
633PYTHON_INCLUDES
634pkgpyexecdir
635pyexecdir
636pkgpythondir
637pythondir
638PYTHON_PLATFORM
639PYTHON_EXEC_PREFIX
640PYTHON_PREFIX
641PYTHON_VERSION
642PYTHON
643CPP_FOR_HOST
644CCLD_FOR_BUILD
645CC_FOR_BUILD
646MORE_CFLAGS
647GCC
648ARCH
649POSUB
650LTLIBINTL
651LIBINTL
652INTLLIBS
653LTLIBICONV
654LIBICONV
655INTL_MACOSX_LIBS
656host_os
657host_vendor
658host_cpu
659host
660build_os
661build_vendor
662build_cpu
663build
664XGETTEXT_EXTRA_OPTIONS
665MSGMERGE
666XGETTEXT_015
667XGETTEXT
668GMSGFMT_015
669MSGFMT_015
670GMSGFMT
671MSGFMT
672GETTEXT_MACRO_VERSION
673USE_NLS
674SED
675EGREP
676GREP
677BUILD_MAN_FALSE
678BUILD_MAN_TRUE
679XMLTO
680RANLIB
681ac_ct_AR
682AR
683LN_S
684CPP
685am__fastdepCC_FALSE
686am__fastdepCC_TRUE
687CCDEPMODE
688am__nodep
689AMDEPBACKSLASH
690AMDEP_FALSE
691AMDEP_TRUE
692am__quote
693am__include
694DEPDIR
695OBJEXT
696EXEEXT
697ac_ct_CC
698CPPFLAGS
699LDFLAGS
700CFLAGS
701CC
702MAINT
703MAINTAINER_MODE_FALSE
704MAINTAINER_MODE_TRUE
705AM_BACKSLASH
706AM_DEFAULT_VERBOSITY
707AM_DEFAULT_V
708AM_V
709am__untar
710am__tar
711AMTAR
712am__leading_dot
713SET_MAKE
714AWK
715mkdir_p
716MKDIR_P
717INSTALL_STRIP_PROGRAM
718STRIP
719install_sh
720MAKEINFO
721AUTOHEADER
722AUTOMAKE
723AUTOCONF
724ACLOCAL
725VERSION
726PACKAGE
727CYGPATH_W
728am__isrc
729INSTALL_DATA
730INSTALL_SCRIPT
731INSTALL_PROGRAM
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
773enable_silent_rules
774enable_maintainer_mode
775enable_debug
776enable_warnerror
777enable_profiling
778enable_gcov
779enable_python
780enable_python_bindings
781enable_dependency_tracking
782with_dmalloc
783enable_nls
784with_gnu_ld
785enable_rpath
786with_libiconv_prefix
787with_libintl_prefix
788'
789      ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797CPP
798CC_FOR_BUILD
799CCLD_FOR_BUILD
800CPP_FOR_HOST
801PYTHON'
802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
840includedir='${prefix}/include'
841oldincludedir='/usr/include'
842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843infodir='${datarootdir}/info'
844htmldir='${docdir}'
845dvidir='${docdir}'
846pdfdir='${docdir}'
847psdir='${docdir}'
848libdir='${exec_prefix}/lib'
849localedir='${datarootdir}/locale'
850mandir='${datarootdir}/man'
851
852ac_prev=
853ac_dashdash=
854for ac_option
855do
856  # If the previous option needs an argument, assign it.
857  if test -n "$ac_prev"; then
858    eval $ac_prev=\$ac_option
859    ac_prev=
860    continue
861  fi
862
863  case $ac_option in
864  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865  *=)   ac_optarg= ;;
866  *)    ac_optarg=yes ;;
867  esac
868
869  # Accept the important Cygnus configure options, so we can diagnose typos.
870
871  case $ac_dashdash$ac_option in
872  --)
873    ac_dashdash=yes ;;
874
875  -bindir | --bindir | --bindi | --bind | --bin | --bi)
876    ac_prev=bindir ;;
877  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878    bindir=$ac_optarg ;;
879
880  -build | --build | --buil | --bui | --bu)
881    ac_prev=build_alias ;;
882  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883    build_alias=$ac_optarg ;;
884
885  -cache-file | --cache-file | --cache-fil | --cache-fi \
886  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887    ac_prev=cache_file ;;
888  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890    cache_file=$ac_optarg ;;
891
892  --config-cache | -C)
893    cache_file=config.cache ;;
894
895  -datadir | --datadir | --datadi | --datad)
896    ac_prev=datadir ;;
897  -datadir=* | --datadir=* | --datadi=* | --datad=*)
898    datadir=$ac_optarg ;;
899
900  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901  | --dataroo | --dataro | --datar)
902    ac_prev=datarootdir ;;
903  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905    datarootdir=$ac_optarg ;;
906
907  -disable-* | --disable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: $ac_useropt"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=no ;;
922
923  -docdir | --docdir | --docdi | --doc | --do)
924    ac_prev=docdir ;;
925  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926    docdir=$ac_optarg ;;
927
928  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929    ac_prev=dvidir ;;
930  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931    dvidir=$ac_optarg ;;
932
933  -enable-* | --enable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: $ac_useropt"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=\$ac_optarg ;;
948
949  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951  | --exec | --exe | --ex)
952    ac_prev=exec_prefix ;;
953  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955  | --exec=* | --exe=* | --ex=*)
956    exec_prefix=$ac_optarg ;;
957
958  -gas | --gas | --ga | --g)
959    # Obsolete; use --with-gas.
960    with_gas=yes ;;
961
962  -help | --help | --hel | --he | -h)
963    ac_init_help=long ;;
964  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965    ac_init_help=recursive ;;
966  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967    ac_init_help=short ;;
968
969  -host | --host | --hos | --ho)
970    ac_prev=host_alias ;;
971  -host=* | --host=* | --hos=* | --ho=*)
972    host_alias=$ac_optarg ;;
973
974  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975    ac_prev=htmldir ;;
976  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977  | --ht=*)
978    htmldir=$ac_optarg ;;
979
980  -includedir | --includedir | --includedi | --included | --include \
981  | --includ | --inclu | --incl | --inc)
982    ac_prev=includedir ;;
983  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984  | --includ=* | --inclu=* | --incl=* | --inc=*)
985    includedir=$ac_optarg ;;
986
987  -infodir | --infodir | --infodi | --infod | --info | --inf)
988    ac_prev=infodir ;;
989  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990    infodir=$ac_optarg ;;
991
992  -libdir | --libdir | --libdi | --libd)
993    ac_prev=libdir ;;
994  -libdir=* | --libdir=* | --libdi=* | --libd=*)
995    libdir=$ac_optarg ;;
996
997  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998  | --libexe | --libex | --libe)
999    ac_prev=libexecdir ;;
1000  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001  | --libexe=* | --libex=* | --libe=*)
1002    libexecdir=$ac_optarg ;;
1003
1004  -localedir | --localedir | --localedi | --localed | --locale)
1005    ac_prev=localedir ;;
1006  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007    localedir=$ac_optarg ;;
1008
1009  -localstatedir | --localstatedir | --localstatedi | --localstated \
1010  | --localstate | --localstat | --localsta | --localst | --locals)
1011    ac_prev=localstatedir ;;
1012  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014    localstatedir=$ac_optarg ;;
1015
1016  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017    ac_prev=mandir ;;
1018  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019    mandir=$ac_optarg ;;
1020
1021  -nfp | --nfp | --nf)
1022    # Obsolete; use --without-fp.
1023    with_fp=no ;;
1024
1025  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026  | --no-cr | --no-c | -n)
1027    no_create=yes ;;
1028
1029  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031    no_recursion=yes ;;
1032
1033  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035  | --oldin | --oldi | --old | --ol | --o)
1036    ac_prev=oldincludedir ;;
1037  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040    oldincludedir=$ac_optarg ;;
1041
1042  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043    ac_prev=prefix ;;
1044  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045    prefix=$ac_optarg ;;
1046
1047  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048  | --program-pre | --program-pr | --program-p)
1049    ac_prev=program_prefix ;;
1050  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052    program_prefix=$ac_optarg ;;
1053
1054  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055  | --program-suf | --program-su | --program-s)
1056    ac_prev=program_suffix ;;
1057  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059    program_suffix=$ac_optarg ;;
1060
1061  -program-transform-name | --program-transform-name \
1062  | --program-transform-nam | --program-transform-na \
1063  | --program-transform-n | --program-transform- \
1064  | --program-transform | --program-transfor \
1065  | --program-transfo | --program-transf \
1066  | --program-trans | --program-tran \
1067  | --progr-tra | --program-tr | --program-t)
1068    ac_prev=program_transform_name ;;
1069  -program-transform-name=* | --program-transform-name=* \
1070  | --program-transform-nam=* | --program-transform-na=* \
1071  | --program-transform-n=* | --program-transform-=* \
1072  | --program-transform=* | --program-transfor=* \
1073  | --program-transfo=* | --program-transf=* \
1074  | --program-trans=* | --program-tran=* \
1075  | --progr-tra=* | --program-tr=* | --program-t=*)
1076    program_transform_name=$ac_optarg ;;
1077
1078  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079    ac_prev=pdfdir ;;
1080  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081    pdfdir=$ac_optarg ;;
1082
1083  -psdir | --psdir | --psdi | --psd | --ps)
1084    ac_prev=psdir ;;
1085  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086    psdir=$ac_optarg ;;
1087
1088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089  | -silent | --silent | --silen | --sile | --sil)
1090    silent=yes ;;
1091
1092  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093    ac_prev=sbindir ;;
1094  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095  | --sbi=* | --sb=*)
1096    sbindir=$ac_optarg ;;
1097
1098  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100  | --sharedst | --shareds | --shared | --share | --shar \
1101  | --sha | --sh)
1102    ac_prev=sharedstatedir ;;
1103  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106  | --sha=* | --sh=*)
1107    sharedstatedir=$ac_optarg ;;
1108
1109  -site | --site | --sit)
1110    ac_prev=site ;;
1111  -site=* | --site=* | --sit=*)
1112    site=$ac_optarg ;;
1113
1114  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115    ac_prev=srcdir ;;
1116  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117    srcdir=$ac_optarg ;;
1118
1119  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120  | --syscon | --sysco | --sysc | --sys | --sy)
1121    ac_prev=sysconfdir ;;
1122  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124    sysconfdir=$ac_optarg ;;
1125
1126  -target | --target | --targe | --targ | --tar | --ta | --t)
1127    ac_prev=target_alias ;;
1128  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129    target_alias=$ac_optarg ;;
1130
1131  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132    verbose=yes ;;
1133
1134  -version | --version | --versio | --versi | --vers | -V)
1135    ac_init_version=: ;;
1136
1137  -with-* | --with-*)
1138    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141      as_fn_error $? "invalid package name: $ac_useropt"
1142    ac_useropt_orig=$ac_useropt
1143    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144    case $ac_user_opts in
1145      *"
1146"with_$ac_useropt"
1147"*) ;;
1148      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149	 ac_unrecognized_sep=', ';;
1150    esac
1151    eval with_$ac_useropt=\$ac_optarg ;;
1152
1153  -without-* | --without-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: $ac_useropt"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=no ;;
1168
1169  --x)
1170    # Obsolete; use --with-x.
1171    with_x=yes ;;
1172
1173  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174  | --x-incl | --x-inc | --x-in | --x-i)
1175    ac_prev=x_includes ;;
1176  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178    x_includes=$ac_optarg ;;
1179
1180  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182    ac_prev=x_libraries ;;
1183  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185    x_libraries=$ac_optarg ;;
1186
1187  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188Try \`$0 --help' for more information"
1189    ;;
1190
1191  *=*)
1192    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193    # Reject names that are not valid shell variable names.
1194    case $ac_envvar in #(
1195      '' | [0-9]* | *[!_$as_cr_alnum]* )
1196      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197    esac
1198    eval $ac_envvar=\$ac_optarg
1199    export $ac_envvar ;;
1200
1201  *)
1202    # FIXME: should be removed in autoconf 3.0.
1203    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207    ;;
1208
1209  esac
1210done
1211
1212if test -n "$ac_prev"; then
1213  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214  as_fn_error $? "missing argument to $ac_option"
1215fi
1216
1217if test -n "$ac_unrecognized_opts"; then
1218  case $enable_option_checking in
1219    no) ;;
1220    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222  esac
1223fi
1224
1225# Check all directory arguments for consistency.
1226for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227		datadir sysconfdir sharedstatedir localstatedir includedir \
1228		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229		libdir localedir mandir
1230do
1231  eval ac_val=\$$ac_var
1232  # Remove trailing slashes.
1233  case $ac_val in
1234    */ )
1235      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236      eval $ac_var=\$ac_val;;
1237  esac
1238  # Be sure to have absolute directory names.
1239  case $ac_val in
1240    [\\/$]* | ?:[\\/]* )  continue;;
1241    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242  esac
1243  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244done
1245
1246# There might be people who depend on the old broken behavior: `$host'
1247# used to hold the argument of --host etc.
1248# FIXME: To remove some day.
1249build=$build_alias
1250host=$host_alias
1251target=$target_alias
1252
1253# FIXME: To remove some day.
1254if test "x$host_alias" != x; then
1255  if test "x$build_alias" = x; then
1256    cross_compiling=maybe
1257  elif test "x$build_alias" != "x$host_alias"; then
1258    cross_compiling=yes
1259  fi
1260fi
1261
1262ac_tool_prefix=
1263test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265test "$silent" = yes && exec 6>/dev/null
1266
1267
1268ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269ac_ls_di=`ls -di .` &&
1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271  as_fn_error $? "working directory cannot be determined"
1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273  as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276# Find the source files, if location was not specified.
1277if test -z "$srcdir"; then
1278  ac_srcdir_defaulted=yes
1279  # Try the directory containing this script, then the parent directory.
1280  ac_confdir=`$as_dirname -- "$as_myself" ||
1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282	 X"$as_myself" : 'X\(//\)[^/]' \| \
1283	 X"$as_myself" : 'X\(//\)$' \| \
1284	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285$as_echo X"$as_myself" |
1286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)[^/].*/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)$/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\).*/{
1299	    s//\1/
1300	    q
1301	  }
1302	  s/.*/./; q'`
1303  srcdir=$ac_confdir
1304  if test ! -r "$srcdir/$ac_unique_file"; then
1305    srcdir=..
1306  fi
1307else
1308  ac_srcdir_defaulted=no
1309fi
1310if test ! -r "$srcdir/$ac_unique_file"; then
1311  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313fi
1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315ac_abs_confdir=`(
1316	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317	pwd)`
1318# When building in place, set srcdir=.
1319if test "$ac_abs_confdir" = "$ac_pwd"; then
1320  srcdir=.
1321fi
1322# Remove unnecessary trailing slashes from srcdir.
1323# Double slashes in file names in object file debugging info
1324# mess up M-x gdb in Emacs.
1325case $srcdir in
1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327esac
1328for ac_var in $ac_precious_vars; do
1329  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_env_${ac_var}_value=\$${ac_var}
1331  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333done
1334
1335#
1336# Report the --help message.
1337#
1338if test "$ac_init_help" = "long"; then
1339  # Omit some internal or obsolete options to make the list less imposing.
1340  # This message is too long to be a string in the A/UX 3.1 sh.
1341  cat <<_ACEOF
1342\`configure' configures yasm 1.3.0 to adapt to many kinds of systems.
1343
1344Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347VAR=VALUE.  See below for descriptions of some of the useful variables.
1348
1349Defaults for the options are specified in brackets.
1350
1351Configuration:
1352  -h, --help              display this help and exit
1353      --help=short        display options specific to this package
1354      --help=recursive    display the short help of all the included packages
1355  -V, --version           display version information and exit
1356  -q, --quiet, --silent   do not print \`checking ...' messages
1357      --cache-file=FILE   cache test results in FILE [disabled]
1358  -C, --config-cache      alias for \`--cache-file=config.cache'
1359  -n, --no-create         do not create output files
1360      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1361
1362Installation directories:
1363  --prefix=PREFIX         install architecture-independent files in PREFIX
1364                          [$ac_default_prefix]
1365  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1366                          [PREFIX]
1367
1368By default, \`make install' will install all the files in
1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1370an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371for instance \`--prefix=\$HOME'.
1372
1373For better control, use the options below.
1374
1375Fine tuning of the installation directories:
1376  --bindir=DIR            user executables [EPREFIX/bin]
1377  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1378  --libexecdir=DIR        program executables [EPREFIX/libexec]
1379  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1380  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1381  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1382  --libdir=DIR            object code libraries [EPREFIX/lib]
1383  --includedir=DIR        C header files [PREFIX/include]
1384  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1385  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1386  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1387  --infodir=DIR           info documentation [DATAROOTDIR/info]
1388  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1389  --mandir=DIR            man documentation [DATAROOTDIR/man]
1390  --docdir=DIR            documentation root [DATAROOTDIR/doc/yasm]
1391  --htmldir=DIR           html documentation [DOCDIR]
1392  --dvidir=DIR            dvi documentation [DOCDIR]
1393  --pdfdir=DIR            pdf documentation [DOCDIR]
1394  --psdir=DIR             ps documentation [DOCDIR]
1395_ACEOF
1396
1397  cat <<\_ACEOF
1398
1399Program names:
1400  --program-prefix=PREFIX            prepend PREFIX to installed program names
1401  --program-suffix=SUFFIX            append SUFFIX to installed program names
1402  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1403
1404System types:
1405  --build=BUILD     configure for building on BUILD [guessed]
1406  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1407_ACEOF
1408fi
1409
1410if test -n "$ac_init_help"; then
1411  case $ac_init_help in
1412     short | recursive ) echo "Configuration of yasm 1.3.0:";;
1413   esac
1414  cat <<\_ACEOF
1415
1416Optional Features:
1417  --disable-option-checking  ignore unrecognized --enable/--with options
1418  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1419  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1420  --enable-silent-rules   less verbose build output (undo: "make V=1")
1421  --disable-silent-rules  verbose build output (undo: "make V=0")
1422  --enable-maintainer-mode
1423                          enable make rules and dependencies not useful (and
1424                          sometimes confusing) to the casual installer
1425  --enable-debug          Turn on debugging and compile time warnings
1426  --enable-warnerror      Treat GCC warnings as errors
1427  --enable-profiling      Enable profiling (requires GCC)
1428  --enable-gcov           Enable gcov code coverage (requires GCC)
1429  --enable-python         Enable Python-requiring portions of build
1430  --enable-python-bindings
1431                          Build Python bindings
1432  --enable-dependency-tracking
1433                          do not reject slow dependency extractors
1434  --disable-dependency-tracking
1435                          speeds up one-time build
1436  --disable-nls           do not use Native Language Support
1437  --disable-rpath         do not hardcode runtime library paths
1438
1439Optional Packages:
1440  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1441  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1442  --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1443  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1444  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1445  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1446  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1447  --without-libintl-prefix     don't search for libintl in includedir and libdir
1448
1449Some influential environment variables:
1450  CC          C compiler command
1451  CFLAGS      C compiler flags
1452  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1453              nonstandard directory <lib dir>
1454  LIBS        libraries to pass to the linker, e.g. -l<library>
1455  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456              you have headers in a nonstandard directory <include dir>
1457  CPP         C preprocessor
1458  CC_FOR_BUILD
1459              build system C compiler
1460  CCLD_FOR_BUILD
1461              build system C linker frontend
1462  CPP_FOR_HOST
1463              host system C preprocessor
1464  PYTHON      the Python interpreter
1465
1466Use these variables to override the choices made by `configure' or to help
1467it to find libraries and programs with nonstandard names/locations.
1468
1469Report bugs to <bug-yasm@tortall.net>.
1470_ACEOF
1471ac_status=$?
1472fi
1473
1474if test "$ac_init_help" = "recursive"; then
1475  # If there are subdirs, report their specific --help.
1476  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477    test -d "$ac_dir" ||
1478      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479      continue
1480    ac_builddir=.
1481
1482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
1485  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486  # A ".." for each directory in $ac_dir_suffix.
1487  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488  case $ac_top_builddir_sub in
1489  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491  esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
1497
1498case $srcdir in
1499  .)  # We are building in place.
1500    ac_srcdir=.
1501    ac_top_srcdir=$ac_top_builddir_sub
1502    ac_abs_top_srcdir=$ac_pwd ;;
1503  [\\/]* | ?:[\\/]* )  # Absolute name.
1504    ac_srcdir=$srcdir$ac_dir_suffix;
1505    ac_top_srcdir=$srcdir
1506    ac_abs_top_srcdir=$srcdir ;;
1507  *) # Relative name.
1508    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509    ac_top_srcdir=$ac_top_build_prefix$srcdir
1510    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511esac
1512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514    cd "$ac_dir" || { ac_status=$?; continue; }
1515    # Check for guested configure.
1516    if test -f "$ac_srcdir/configure.gnu"; then
1517      echo &&
1518      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519    elif test -f "$ac_srcdir/configure"; then
1520      echo &&
1521      $SHELL "$ac_srcdir/configure" --help=recursive
1522    else
1523      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524    fi || ac_status=$?
1525    cd "$ac_pwd" || { ac_status=$?; break; }
1526  done
1527fi
1528
1529test -n "$ac_init_help" && exit $ac_status
1530if $ac_init_version; then
1531  cat <<\_ACEOF
1532yasm configure 1.3.0
1533generated by GNU Autoconf 2.69
1534
1535Copyright (C) 2012 Free Software Foundation, Inc.
1536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
1538_ACEOF
1539  exit
1540fi
1541
1542## ------------------------ ##
1543## Autoconf initialization. ##
1544## ------------------------ ##
1545
1546# ac_fn_c_try_compile LINENO
1547# --------------------------
1548# Try to compile conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_c_try_compile ()
1550{
1551  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552  rm -f conftest.$ac_objext
1553  if { { ac_try="$ac_compile"
1554case "(($ac_try" in
1555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556  *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560  (eval "$ac_compile") 2>conftest.err
1561  ac_status=$?
1562  if test -s conftest.err; then
1563    grep -v '^ *+' conftest.err >conftest.er1
1564    cat conftest.er1 >&5
1565    mv -f conftest.er1 conftest.err
1566  fi
1567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568  test $ac_status = 0; } && {
1569	 test -z "$ac_c_werror_flag" ||
1570	 test ! -s conftest.err
1571       } && test -s conftest.$ac_objext; then :
1572  ac_retval=0
1573else
1574  $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577	ac_retval=1
1578fi
1579  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580  as_fn_set_status $ac_retval
1581
1582} # ac_fn_c_try_compile
1583
1584# ac_fn_c_try_cpp LINENO
1585# ----------------------
1586# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_cpp ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  if { { ac_try="$ac_cpp conftest.$ac_ext"
1591case "(($ac_try" in
1592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593  *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598  ac_status=$?
1599  if test -s conftest.err; then
1600    grep -v '^ *+' conftest.err >conftest.er1
1601    cat conftest.er1 >&5
1602    mv -f conftest.er1 conftest.err
1603  fi
1604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605  test $ac_status = 0; } > conftest.i && {
1606	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607	 test ! -s conftest.err
1608       }; then :
1609  ac_retval=0
1610else
1611  $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614    ac_retval=1
1615fi
1616  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617  as_fn_set_status $ac_retval
1618
1619} # ac_fn_c_try_cpp
1620
1621# ac_fn_c_try_run LINENO
1622# ----------------------
1623# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1624# that executables *can* be run.
1625ac_fn_c_try_run ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  if { { ac_try="$ac_link"
1629case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_link") 2>&5
1636  ac_status=$?
1637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1639  { { case "(($ac_try" in
1640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641  *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645  (eval "$ac_try") 2>&5
1646  ac_status=$?
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; }; }; then :
1649  ac_retval=0
1650else
1651  $as_echo "$as_me: program exited with status $ac_status" >&5
1652       $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655       ac_retval=$ac_status
1656fi
1657  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659  as_fn_set_status $ac_retval
1660
1661} # ac_fn_c_try_run
1662
1663# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1664# -------------------------------------------------------
1665# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666# the include files in INCLUDES and setting the cache variable VAR
1667# accordingly.
1668ac_fn_c_check_header_mongrel ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  if eval \${$3+:} false; then :
1672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673$as_echo_n "checking for $2... " >&6; }
1674if eval \${$3+:} false; then :
1675  $as_echo_n "(cached) " >&6
1676fi
1677eval ac_res=\$$3
1678	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679$as_echo "$ac_res" >&6; }
1680else
1681  # Is the header compilable?
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683$as_echo_n "checking $2 usability... " >&6; }
1684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h.  */
1686$4
1687#include <$2>
1688_ACEOF
1689if ac_fn_c_try_compile "$LINENO"; then :
1690  ac_header_compiler=yes
1691else
1692  ac_header_compiler=no
1693fi
1694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696$as_echo "$ac_header_compiler" >&6; }
1697
1698# Is the header present?
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700$as_echo_n "checking $2 presence... " >&6; }
1701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h.  */
1703#include <$2>
1704_ACEOF
1705if ac_fn_c_try_cpp "$LINENO"; then :
1706  ac_header_preproc=yes
1707else
1708  ac_header_preproc=no
1709fi
1710rm -f conftest.err conftest.i conftest.$ac_ext
1711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712$as_echo "$ac_header_preproc" >&6; }
1713
1714# So?  What about this header?
1715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1716  yes:no: )
1717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721    ;;
1722  no:yes:* )
1723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1726$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1730$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733( $as_echo "## ----------------------------------- ##
1734## Report this to bug-yasm@tortall.net ##
1735## ----------------------------------- ##"
1736     ) | sed "s/^/$as_me: WARNING:     /" >&2
1737    ;;
1738esac
1739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
1741if eval \${$3+:} false; then :
1742  $as_echo_n "(cached) " >&6
1743else
1744  eval "$3=\$ac_header_compiler"
1745fi
1746eval ac_res=\$$3
1747	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749fi
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752} # ac_fn_c_check_header_mongrel
1753
1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists and can be compiled using the include files in
1757# INCLUDES, setting the cache variable VAR accordingly.
1758ac_fn_c_check_header_compile ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if eval \${$3+:} false; then :
1764  $as_echo_n "(cached) " >&6
1765else
1766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h.  */
1768$4
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772  eval "$3=yes"
1773else
1774  eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_header_compile
1784
1785# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1786# -------------------------------------------
1787# Tests whether TYPE exists after having included INCLUDES, setting cache
1788# variable VAR accordingly.
1789ac_fn_c_check_type ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if eval \${$3+:} false; then :
1795  $as_echo_n "(cached) " >&6
1796else
1797  eval "$3=no"
1798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h.  */
1800$4
1801int
1802main ()
1803{
1804if (sizeof ($2))
1805	 return 0;
1806  ;
1807  return 0;
1808}
1809_ACEOF
1810if ac_fn_c_try_compile "$LINENO"; then :
1811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813$4
1814int
1815main ()
1816{
1817if (sizeof (($2)))
1818	    return 0;
1819  ;
1820  return 0;
1821}
1822_ACEOF
1823if ac_fn_c_try_compile "$LINENO"; then :
1824
1825else
1826  eval "$3=yes"
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831fi
1832eval ac_res=\$$3
1833	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834$as_echo "$ac_res" >&6; }
1835  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836
1837} # ac_fn_c_check_type
1838
1839# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1840# --------------------------------------------
1841# Tries to find the compile-time value of EXPR in a program that includes
1842# INCLUDES, setting VAR accordingly. Returns whether the value could be
1843# computed
1844ac_fn_c_compute_int ()
1845{
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  if test "$cross_compiling" = yes; then
1848    # Depending upon the size, compute the lo and hi bounds.
1849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851$4
1852int
1853main ()
1854{
1855static int test_array [1 - 2 * !(($2) >= 0)];
1856test_array [0] = 0;
1857return test_array [0];
1858
1859  ;
1860  return 0;
1861}
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"; then :
1864  ac_lo=0 ac_mid=0
1865  while :; do
1866    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868$4
1869int
1870main ()
1871{
1872static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1873test_array [0] = 0;
1874return test_array [0];
1875
1876  ;
1877  return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881  ac_hi=$ac_mid; break
1882else
1883  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1884			if test $ac_lo -le $ac_mid; then
1885			  ac_lo= ac_hi=
1886			  break
1887			fi
1888			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1889fi
1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891  done
1892else
1893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h.  */
1895$4
1896int
1897main ()
1898{
1899static int test_array [1 - 2 * !(($2) < 0)];
1900test_array [0] = 0;
1901return test_array [0];
1902
1903  ;
1904  return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908  ac_hi=-1 ac_mid=-1
1909  while :; do
1910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h.  */
1912$4
1913int
1914main ()
1915{
1916static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1917test_array [0] = 0;
1918return test_array [0];
1919
1920  ;
1921  return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925  ac_lo=$ac_mid; break
1926else
1927  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1928			if test $ac_mid -le $ac_hi; then
1929			  ac_lo= ac_hi=
1930			  break
1931			fi
1932			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1933fi
1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935  done
1936else
1937  ac_lo= ac_hi=
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942# Binary search between lo and hi bounds.
1943while test "x$ac_lo" != "x$ac_hi"; do
1944  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947$4
1948int
1949main ()
1950{
1951static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1952test_array [0] = 0;
1953return test_array [0];
1954
1955  ;
1956  return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960  ac_hi=$ac_mid
1961else
1962  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965done
1966case $ac_lo in #((
1967?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1968'') ac_retval=1 ;;
1969esac
1970  else
1971    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973$4
1974static long int longval () { return $2; }
1975static unsigned long int ulongval () { return $2; }
1976#include <stdio.h>
1977#include <stdlib.h>
1978int
1979main ()
1980{
1981
1982  FILE *f = fopen ("conftest.val", "w");
1983  if (! f)
1984    return 1;
1985  if (($2) < 0)
1986    {
1987      long int i = longval ();
1988      if (i != ($2))
1989	return 1;
1990      fprintf (f, "%ld", i);
1991    }
1992  else
1993    {
1994      unsigned long int i = ulongval ();
1995      if (i != ($2))
1996	return 1;
1997      fprintf (f, "%lu", i);
1998    }
1999  /* Do not output a trailing newline, as this causes \r\n confusion
2000     on some platforms.  */
2001  return ferror (f) || fclose (f) != 0;
2002
2003  ;
2004  return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_run "$LINENO"; then :
2008  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2009else
2010  ac_retval=1
2011fi
2012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2013  conftest.$ac_objext conftest.beam conftest.$ac_ext
2014rm -f conftest.val
2015
2016  fi
2017  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018  as_fn_set_status $ac_retval
2019
2020} # ac_fn_c_compute_int
2021
2022# ac_fn_c_try_link LINENO
2023# -----------------------
2024# Try to link conftest.$ac_ext, and return whether this succeeded.
2025ac_fn_c_try_link ()
2026{
2027  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028  rm -f conftest.$ac_objext conftest$ac_exeext
2029  if { { ac_try="$ac_link"
2030case "(($ac_try" in
2031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032  *) ac_try_echo=$ac_try;;
2033esac
2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035$as_echo "$ac_try_echo"; } >&5
2036  (eval "$ac_link") 2>conftest.err
2037  ac_status=$?
2038  if test -s conftest.err; then
2039    grep -v '^ *+' conftest.err >conftest.er1
2040    cat conftest.er1 >&5
2041    mv -f conftest.er1 conftest.err
2042  fi
2043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044  test $ac_status = 0; } && {
2045	 test -z "$ac_c_werror_flag" ||
2046	 test ! -s conftest.err
2047       } && test -s conftest$ac_exeext && {
2048	 test "$cross_compiling" = yes ||
2049	 test -x conftest$ac_exeext
2050       }; then :
2051  ac_retval=0
2052else
2053  $as_echo "$as_me: failed program was:" >&5
2054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056	ac_retval=1
2057fi
2058  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2059  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2060  # interfere with the next link command; also delete a directory that is
2061  # left behind by Apple's compiler.  We do this before executing the actions.
2062  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064  as_fn_set_status $ac_retval
2065
2066} # ac_fn_c_try_link
2067
2068# ac_fn_c_check_func LINENO FUNC VAR
2069# ----------------------------------
2070# Tests whether FUNC exists, setting the cache variable VAR accordingly
2071ac_fn_c_check_func ()
2072{
2073  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075$as_echo_n "checking for $2... " >&6; }
2076if eval \${$3+:} false; then :
2077  $as_echo_n "(cached) " >&6
2078else
2079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2082   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2083#define $2 innocuous_$2
2084
2085/* System header to define __stub macros and hopefully few prototypes,
2086    which can conflict with char $2 (); below.
2087    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2088    <limits.h> exists even on freestanding compilers.  */
2089
2090#ifdef __STDC__
2091# include <limits.h>
2092#else
2093# include <assert.h>
2094#endif
2095
2096#undef $2
2097
2098/* Override any GCC internal prototype to avoid an error.
2099   Use char because int might match the return type of a GCC
2100   builtin and then its argument prototype would still apply.  */
2101#ifdef __cplusplus
2102extern "C"
2103#endif
2104char $2 ();
2105/* The GNU C library defines this for functions which it implements
2106    to always fail with ENOSYS.  Some functions are actually named
2107    something starting with __ and the normal name is an alias.  */
2108#if defined __stub_$2 || defined __stub___$2
2109choke me
2110#endif
2111
2112int
2113main ()
2114{
2115return $2 ();
2116  ;
2117  return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_link "$LINENO"; then :
2121  eval "$3=yes"
2122else
2123  eval "$3=no"
2124fi
2125rm -f core conftest.err conftest.$ac_objext \
2126    conftest$ac_exeext conftest.$ac_ext
2127fi
2128eval ac_res=\$$3
2129	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130$as_echo "$ac_res" >&6; }
2131  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133} # ac_fn_c_check_func
2134cat >config.log <<_ACEOF
2135This file contains any messages produced by compilers while
2136running configure, to aid debugging if configure makes a mistake.
2137
2138It was created by yasm $as_me 1.3.0, which was
2139generated by GNU Autoconf 2.69.  Invocation command line was
2140
2141  $ $0 $@
2142
2143_ACEOF
2144exec 5>>config.log
2145{
2146cat <<_ASUNAME
2147## --------- ##
2148## Platform. ##
2149## --------- ##
2150
2151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156
2157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2159
2160/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2161/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2163/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2164/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2165/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2166/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2167
2168_ASUNAME
2169
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173  IFS=$as_save_IFS
2174  test -z "$as_dir" && as_dir=.
2175    $as_echo "PATH: $as_dir"
2176  done
2177IFS=$as_save_IFS
2178
2179} >&5
2180
2181cat >&5 <<_ACEOF
2182
2183
2184## ----------- ##
2185## Core tests. ##
2186## ----------- ##
2187
2188_ACEOF
2189
2190
2191# Keep a trace of the command line.
2192# Strip out --no-create and --no-recursion so they do not pile up.
2193# Strip out --silent because we don't want to record it for future runs.
2194# Also quote any args containing shell meta-characters.
2195# Make two passes to allow for proper duplicate-argument suppression.
2196ac_configure_args=
2197ac_configure_args0=
2198ac_configure_args1=
2199ac_must_keep_next=false
2200for ac_pass in 1 2
2201do
2202  for ac_arg
2203  do
2204    case $ac_arg in
2205    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207    | -silent | --silent | --silen | --sile | --sil)
2208      continue ;;
2209    *\'*)
2210      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2211    esac
2212    case $ac_pass in
2213    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2214    2)
2215      as_fn_append ac_configure_args1 " '$ac_arg'"
2216      if test $ac_must_keep_next = true; then
2217	ac_must_keep_next=false # Got value, back to normal.
2218      else
2219	case $ac_arg in
2220	  *=* | --config-cache | -C | -disable-* | --disable-* \
2221	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223	  | -with-* | --with-* | -without-* | --without-* | --x)
2224	    case "$ac_configure_args0 " in
2225	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2226	    esac
2227	    ;;
2228	  -* ) ac_must_keep_next=true ;;
2229	esac
2230      fi
2231      as_fn_append ac_configure_args " '$ac_arg'"
2232      ;;
2233    esac
2234  done
2235done
2236{ ac_configure_args0=; unset ac_configure_args0;}
2237{ ac_configure_args1=; unset ac_configure_args1;}
2238
2239# When interrupted or exit'd, cleanup temporary files, and complete
2240# config.log.  We remove comments because anyway the quotes in there
2241# would cause problems or look ugly.
2242# WARNING: Use '\'' to represent an apostrophe within the trap.
2243# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2244trap 'exit_status=$?
2245  # Save into config.log some information that might help in debugging.
2246  {
2247    echo
2248
2249    $as_echo "## ---------------- ##
2250## Cache variables. ##
2251## ---------------- ##"
2252    echo
2253    # The following way of writing the cache mishandles newlines in values,
2254(
2255  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256    eval ac_val=\$$ac_var
2257    case $ac_val in #(
2258    *${as_nl}*)
2259      case $ac_var in #(
2260      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262      esac
2263      case $ac_var in #(
2264      _ | IFS | as_nl) ;; #(
2265      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266      *) { eval $ac_var=; unset $ac_var;} ;;
2267      esac ;;
2268    esac
2269  done
2270  (set) 2>&1 |
2271    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272    *${as_nl}ac_space=\ *)
2273      sed -n \
2274	"s/'\''/'\''\\\\'\'''\''/g;
2275	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276      ;; #(
2277    *)
2278      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279      ;;
2280    esac |
2281    sort
2282)
2283    echo
2284
2285    $as_echo "## ----------------- ##
2286## Output variables. ##
2287## ----------------- ##"
2288    echo
2289    for ac_var in $ac_subst_vars
2290    do
2291      eval ac_val=\$$ac_var
2292      case $ac_val in
2293      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294      esac
2295      $as_echo "$ac_var='\''$ac_val'\''"
2296    done | sort
2297    echo
2298
2299    if test -n "$ac_subst_files"; then
2300      $as_echo "## ------------------- ##
2301## File substitutions. ##
2302## ------------------- ##"
2303      echo
2304      for ac_var in $ac_subst_files
2305      do
2306	eval ac_val=\$$ac_var
2307	case $ac_val in
2308	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309	esac
2310	$as_echo "$ac_var='\''$ac_val'\''"
2311      done | sort
2312      echo
2313    fi
2314
2315    if test -s confdefs.h; then
2316      $as_echo "## ----------- ##
2317## confdefs.h. ##
2318## ----------- ##"
2319      echo
2320      cat confdefs.h
2321      echo
2322    fi
2323    test "$ac_signal" != 0 &&
2324      $as_echo "$as_me: caught signal $ac_signal"
2325    $as_echo "$as_me: exit $exit_status"
2326  } >&5
2327  rm -f core *.core core.conftest.* &&
2328    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2329    exit $exit_status
2330' 0
2331for ac_signal in 1 2 13 15; do
2332  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2333done
2334ac_signal=0
2335
2336# confdefs.h avoids OS command line length limits that DEFS can exceed.
2337rm -f -r conftest* confdefs.h
2338
2339$as_echo "/* confdefs.h */" > confdefs.h
2340
2341# Predefined preprocessor variables.
2342
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_NAME "$PACKAGE_NAME"
2345_ACEOF
2346
2347cat >>confdefs.h <<_ACEOF
2348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2349_ACEOF
2350
2351cat >>confdefs.h <<_ACEOF
2352#define PACKAGE_VERSION "$PACKAGE_VERSION"
2353_ACEOF
2354
2355cat >>confdefs.h <<_ACEOF
2356#define PACKAGE_STRING "$PACKAGE_STRING"
2357_ACEOF
2358
2359cat >>confdefs.h <<_ACEOF
2360#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2361_ACEOF
2362
2363cat >>confdefs.h <<_ACEOF
2364#define PACKAGE_URL "$PACKAGE_URL"
2365_ACEOF
2366
2367
2368# Let the site file select an alternate cache file if it wants to.
2369# Prefer an explicitly selected file to automatically selected ones.
2370ac_site_file1=NONE
2371ac_site_file2=NONE
2372if test -n "$CONFIG_SITE"; then
2373  # We do not want a PATH search for config.site.
2374  case $CONFIG_SITE in #((
2375    -*)  ac_site_file1=./$CONFIG_SITE;;
2376    */*) ac_site_file1=$CONFIG_SITE;;
2377    *)   ac_site_file1=./$CONFIG_SITE;;
2378  esac
2379elif test "x$prefix" != xNONE; then
2380  ac_site_file1=$prefix/share/config.site
2381  ac_site_file2=$prefix/etc/config.site
2382else
2383  ac_site_file1=$ac_default_prefix/share/config.site
2384  ac_site_file2=$ac_default_prefix/etc/config.site
2385fi
2386for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2387do
2388  test "x$ac_site_file" = xNONE && continue
2389  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2390    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392    sed 's/^/| /' "$ac_site_file" >&5
2393    . "$ac_site_file" \
2394      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396as_fn_error $? "failed to load site script $ac_site_file
2397See \`config.log' for more details" "$LINENO" 5; }
2398  fi
2399done
2400
2401if test -r "$cache_file"; then
2402  # Some versions of bash will fail to source /dev/null (special files
2403  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2404  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2405    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406$as_echo "$as_me: loading cache $cache_file" >&6;}
2407    case $cache_file in
2408      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409      *)                      . "./$cache_file";;
2410    esac
2411  fi
2412else
2413  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414$as_echo "$as_me: creating cache $cache_file" >&6;}
2415  >$cache_file
2416fi
2417
2418gt_needs="$gt_needs "
2419# Check that the precious variables saved in the cache have kept the same
2420# value.
2421ac_cache_corrupted=false
2422for ac_var in $ac_precious_vars; do
2423  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424  eval ac_new_set=\$ac_env_${ac_var}_set
2425  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426  eval ac_new_val=\$ac_env_${ac_var}_value
2427  case $ac_old_set,$ac_new_set in
2428    set,)
2429      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431      ac_cache_corrupted=: ;;
2432    ,set)
2433      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435      ac_cache_corrupted=: ;;
2436    ,);;
2437    *)
2438      if test "x$ac_old_val" != "x$ac_new_val"; then
2439	# differences in whitespace do not lead to failure.
2440	ac_old_val_w=`echo x $ac_old_val`
2441	ac_new_val_w=`echo x $ac_new_val`
2442	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445	  ac_cache_corrupted=:
2446	else
2447	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449	  eval $ac_var=\$ac_old_val
2450	fi
2451	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2452$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2453	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2454$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2455      fi;;
2456  esac
2457  # Pass precious variables to config.status.
2458  if test "$ac_new_set" = set; then
2459    case $ac_new_val in
2460    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461    *) ac_arg=$ac_var=$ac_new_val ;;
2462    esac
2463    case " $ac_configure_args " in
2464      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2465      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466    esac
2467  fi
2468done
2469if $ac_cache_corrupted; then
2470  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2475fi
2476## -------------------- ##
2477## Main body of script. ##
2478## -------------------- ##
2479
2480ac_ext=c
2481ac_cpp='$CPP $CPPFLAGS'
2482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485
2486
2487#AC_CONFIG_SRCDIR([src/main.c])
2488ac_aux_dir=
2489for ac_dir in config "$srcdir"/config; do
2490  if test -f "$ac_dir/install-sh"; then
2491    ac_aux_dir=$ac_dir
2492    ac_install_sh="$ac_aux_dir/install-sh -c"
2493    break
2494  elif test -f "$ac_dir/install.sh"; then
2495    ac_aux_dir=$ac_dir
2496    ac_install_sh="$ac_aux_dir/install.sh -c"
2497    break
2498  elif test -f "$ac_dir/shtool"; then
2499    ac_aux_dir=$ac_dir
2500    ac_install_sh="$ac_aux_dir/shtool install -c"
2501    break
2502  fi
2503done
2504if test -z "$ac_aux_dir"; then
2505  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2506fi
2507
2508# These three variables are undocumented and unsupported,
2509# and are intended to be withdrawn in a future Autoconf release.
2510# They can cause serious problems if a builder's source tree is in a directory
2511# whose full name contains unusual characters.
2512ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2513ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2514ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2515
2516
2517ac_config_headers="$ac_config_headers config.h"
2518
2519
2520am__api_version='1.14'
2521
2522# Find a good install program.  We prefer a C program (faster),
2523# so one script is as good as another.  But avoid the broken or
2524# incompatible versions:
2525# SysV /etc/install, /usr/sbin/install
2526# SunOS /usr/etc/install
2527# IRIX /sbin/install
2528# AIX /bin/install
2529# AmigaOS /C/install, which installs bootblocks on floppy discs
2530# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2531# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2532# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2533# OS/2's system install, which has a completely different semantic
2534# ./install, which can be erroneously created by make from ./install.sh.
2535# Reject install programs that cannot install multiple files.
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2537$as_echo_n "checking for a BSD-compatible install... " >&6; }
2538if test -z "$INSTALL"; then
2539if ${ac_cv_path_install+:} false; then :
2540  $as_echo_n "(cached) " >&6
2541else
2542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545  IFS=$as_save_IFS
2546  test -z "$as_dir" && as_dir=.
2547    # Account for people who put trailing slashes in PATH elements.
2548case $as_dir/ in #((
2549  ./ | .// | /[cC]/* | \
2550  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2551  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2552  /usr/ucb/* ) ;;
2553  *)
2554    # OSF1 and SCO ODT 3.0 have their own names for install.
2555    # Don't use installbsd from OSF since it installs stuff as root
2556    # by default.
2557    for ac_prog in ginstall scoinst install; do
2558      for ac_exec_ext in '' $ac_executable_extensions; do
2559	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2560	  if test $ac_prog = install &&
2561	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562	    # AIX install.  It has an incompatible calling convention.
2563	    :
2564	  elif test $ac_prog = install &&
2565	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566	    # program-specific install script used by HP pwplus--don't use.
2567	    :
2568	  else
2569	    rm -rf conftest.one conftest.two conftest.dir
2570	    echo one > conftest.one
2571	    echo two > conftest.two
2572	    mkdir conftest.dir
2573	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2574	      test -s conftest.one && test -s conftest.two &&
2575	      test -s conftest.dir/conftest.one &&
2576	      test -s conftest.dir/conftest.two
2577	    then
2578	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2579	      break 3
2580	    fi
2581	  fi
2582	fi
2583      done
2584    done
2585    ;;
2586esac
2587
2588  done
2589IFS=$as_save_IFS
2590
2591rm -rf conftest.one conftest.two conftest.dir
2592
2593fi
2594  if test "${ac_cv_path_install+set}" = set; then
2595    INSTALL=$ac_cv_path_install
2596  else
2597    # As a last resort, use the slow shell script.  Don't cache a
2598    # value for INSTALL within a source directory, because that will
2599    # break other packages using the cache if that directory is
2600    # removed, or if the value is a relative name.
2601    INSTALL=$ac_install_sh
2602  fi
2603fi
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2605$as_echo "$INSTALL" >&6; }
2606
2607# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608# It thinks the first close brace ends the variable substitution.
2609test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2610
2611test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2612
2613test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2614
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2616$as_echo_n "checking whether build environment is sane... " >&6; }
2617# Reject unsafe characters in $srcdir or the absolute working directory
2618# name.  Accept space and tab only in the latter.
2619am_lf='
2620'
2621case `pwd` in
2622  *[\\\"\#\$\&\'\`$am_lf]*)
2623    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2624esac
2625case $srcdir in
2626  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2627    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2628esac
2629
2630# Do 'set' in a subshell so we don't clobber the current shell's
2631# arguments.  Must try -L first in case configure is actually a
2632# symlink; some systems play weird games with the mod time of symlinks
2633# (eg FreeBSD returns the mod time of the symlink's containing
2634# directory).
2635if (
2636   am_has_slept=no
2637   for am_try in 1 2; do
2638     echo "timestamp, slept: $am_has_slept" > conftest.file
2639     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2640     if test "$*" = "X"; then
2641	# -L didn't work.
2642	set X `ls -t "$srcdir/configure" conftest.file`
2643     fi
2644     if test "$*" != "X $srcdir/configure conftest.file" \
2645	&& test "$*" != "X conftest.file $srcdir/configure"; then
2646
2647	# If neither matched, then we have a broken ls.  This can happen
2648	# if, for instance, CONFIG_SHELL is bash and it inherits a
2649	# broken ls alias from the environment.  This has actually
2650	# happened.  Such a system could not be considered "sane".
2651	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2652  alias in your environment" "$LINENO" 5
2653     fi
2654     if test "$2" = conftest.file || test $am_try -eq 2; then
2655       break
2656     fi
2657     # Just in case.
2658     sleep 1
2659     am_has_slept=yes
2660   done
2661   test "$2" = conftest.file
2662   )
2663then
2664   # Ok.
2665   :
2666else
2667   as_fn_error $? "newly created file is older than distributed files!
2668Check your system clock" "$LINENO" 5
2669fi
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671$as_echo "yes" >&6; }
2672# If we didn't sleep, we still need to ensure time stamps of config.status and
2673# generated files are strictly newer.
2674am_sleep_pid=
2675if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2676  ( sleep 1 ) &
2677  am_sleep_pid=$!
2678fi
2679
2680rm -f conftest.file
2681
2682test "$program_prefix" != NONE &&
2683  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2684# Use a double $ so make ignores it.
2685test "$program_suffix" != NONE &&
2686  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2687# Double any \ or $.
2688# By default was `s,x,x', remove it if useless.
2689ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2690program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2691
2692# expand $ac_aux_dir to an absolute path
2693am_aux_dir=`cd $ac_aux_dir && pwd`
2694
2695if test x"${MISSING+set}" != xset; then
2696  case $am_aux_dir in
2697  *\ * | *\	*)
2698    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2699  *)
2700    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2701  esac
2702fi
2703# Use eval to expand $SHELL
2704if eval "$MISSING --is-lightweight"; then
2705  am_missing_run="$MISSING "
2706else
2707  am_missing_run=
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2709$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2710fi
2711
2712if test x"${install_sh}" != xset; then
2713  case $am_aux_dir in
2714  *\ * | *\	*)
2715    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2716  *)
2717    install_sh="\${SHELL} $am_aux_dir/install-sh"
2718  esac
2719fi
2720
2721# Installed binaries are usually stripped using 'strip' when the user
2722# run "make install-strip".  However 'strip' might not be the right
2723# tool to use in cross-compilation environments, therefore Automake
2724# will honor the 'STRIP' environment variable to overrule this program.
2725if test "$cross_compiling" != no; then
2726  if test -n "$ac_tool_prefix"; then
2727  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2728set dummy ${ac_tool_prefix}strip; ac_word=$2
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730$as_echo_n "checking for $ac_word... " >&6; }
2731if ${ac_cv_prog_STRIP+:} false; then :
2732  $as_echo_n "(cached) " >&6
2733else
2734  if test -n "$STRIP"; then
2735  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  test -z "$as_dir" && as_dir=.
2742    for ac_exec_ext in '' $ac_executable_extensions; do
2743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746    break 2
2747  fi
2748done
2749  done
2750IFS=$as_save_IFS
2751
2752fi
2753fi
2754STRIP=$ac_cv_prog_STRIP
2755if test -n "$STRIP"; then
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2757$as_echo "$STRIP" >&6; }
2758else
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760$as_echo "no" >&6; }
2761fi
2762
2763
2764fi
2765if test -z "$ac_cv_prog_STRIP"; then
2766  ac_ct_STRIP=$STRIP
2767  # Extract the first word of "strip", so it can be a program name with args.
2768set dummy strip; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  if test -n "$ac_ct_STRIP"; then
2775  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780  IFS=$as_save_IFS
2781  test -z "$as_dir" && as_dir=.
2782    for ac_exec_ext in '' $ac_executable_extensions; do
2783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784    ac_cv_prog_ac_ct_STRIP="strip"
2785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786    break 2
2787  fi
2788done
2789  done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2795if test -n "$ac_ct_STRIP"; then
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2797$as_echo "$ac_ct_STRIP" >&6; }
2798else
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
2803  if test "x$ac_ct_STRIP" = x; then
2804    STRIP=":"
2805  else
2806    case $cross_compiling:$ac_tool_warned in
2807yes:)
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2810ac_tool_warned=yes ;;
2811esac
2812    STRIP=$ac_ct_STRIP
2813  fi
2814else
2815  STRIP="$ac_cv_prog_STRIP"
2816fi
2817
2818fi
2819INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2820
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2822$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2823if test -z "$MKDIR_P"; then
2824  if ${ac_cv_path_mkdir+:} false; then :
2825  $as_echo_n "(cached) " >&6
2826else
2827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2829do
2830  IFS=$as_save_IFS
2831  test -z "$as_dir" && as_dir=.
2832    for ac_prog in mkdir gmkdir; do
2833	 for ac_exec_ext in '' $ac_executable_extensions; do
2834	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2835	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2836	     'mkdir (GNU coreutils) '* | \
2837	     'mkdir (coreutils) '* | \
2838	     'mkdir (fileutils) '4.1*)
2839	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2840	       break 3;;
2841	   esac
2842	 done
2843       done
2844  done
2845IFS=$as_save_IFS
2846
2847fi
2848
2849  test -d ./--version && rmdir ./--version
2850  if test "${ac_cv_path_mkdir+set}" = set; then
2851    MKDIR_P="$ac_cv_path_mkdir -p"
2852  else
2853    # As a last resort, use the slow shell script.  Don't cache a
2854    # value for MKDIR_P within a source directory, because that will
2855    # break other packages using the cache if that directory is
2856    # removed, or if the value is a relative name.
2857    MKDIR_P="$ac_install_sh -d"
2858  fi
2859fi
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2861$as_echo "$MKDIR_P" >&6; }
2862
2863for ac_prog in gawk mawk nawk awk
2864do
2865  # Extract the first word of "$ac_prog", so it can be a program name with args.
2866set dummy $ac_prog; ac_word=$2
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868$as_echo_n "checking for $ac_word... " >&6; }
2869if ${ac_cv_prog_AWK+:} false; then :
2870  $as_echo_n "(cached) " >&6
2871else
2872  if test -n "$AWK"; then
2873  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878  IFS=$as_save_IFS
2879  test -z "$as_dir" && as_dir=.
2880    for ac_exec_ext in '' $ac_executable_extensions; do
2881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882    ac_cv_prog_AWK="$ac_prog"
2883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884    break 2
2885  fi
2886done
2887  done
2888IFS=$as_save_IFS
2889
2890fi
2891fi
2892AWK=$ac_cv_prog_AWK
2893if test -n "$AWK"; then
2894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2895$as_echo "$AWK" >&6; }
2896else
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898$as_echo "no" >&6; }
2899fi
2900
2901
2902  test -n "$AWK" && break
2903done
2904
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2906$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2907set x ${MAKE-make}
2908ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2909if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2910  $as_echo_n "(cached) " >&6
2911else
2912  cat >conftest.make <<\_ACEOF
2913SHELL = /bin/sh
2914all:
2915	@echo '@@@%%%=$(MAKE)=@@@%%%'
2916_ACEOF
2917# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2918case `${MAKE-make} -f conftest.make 2>/dev/null` in
2919  *@@@%%%=?*=@@@%%%*)
2920    eval ac_cv_prog_make_${ac_make}_set=yes;;
2921  *)
2922    eval ac_cv_prog_make_${ac_make}_set=no;;
2923esac
2924rm -f conftest.make
2925fi
2926if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2928$as_echo "yes" >&6; }
2929  SET_MAKE=
2930else
2931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932$as_echo "no" >&6; }
2933  SET_MAKE="MAKE=${MAKE-make}"
2934fi
2935
2936rm -rf .tst 2>/dev/null
2937mkdir .tst 2>/dev/null
2938if test -d .tst; then
2939  am__leading_dot=.
2940else
2941  am__leading_dot=_
2942fi
2943rmdir .tst 2>/dev/null
2944
2945# Check whether --enable-silent-rules was given.
2946if test "${enable_silent_rules+set}" = set; then :
2947  enableval=$enable_silent_rules;
2948fi
2949
2950case $enable_silent_rules in # (((
2951  yes) AM_DEFAULT_VERBOSITY=0;;
2952   no) AM_DEFAULT_VERBOSITY=1;;
2953    *) AM_DEFAULT_VERBOSITY=1;;
2954esac
2955am_make=${MAKE-make}
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2957$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2958if ${am_cv_make_support_nested_variables+:} false; then :
2959  $as_echo_n "(cached) " >&6
2960else
2961  if $as_echo 'TRUE=$(BAR$(V))
2962BAR0=false
2963BAR1=true
2964V=1
2965am__doit:
2966	@$(TRUE)
2967.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2968  am_cv_make_support_nested_variables=yes
2969else
2970  am_cv_make_support_nested_variables=no
2971fi
2972fi
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2974$as_echo "$am_cv_make_support_nested_variables" >&6; }
2975if test $am_cv_make_support_nested_variables = yes; then
2976    AM_V='$(V)'
2977  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2978else
2979  AM_V=$AM_DEFAULT_VERBOSITY
2980  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2981fi
2982AM_BACKSLASH='\'
2983
2984if test "`cd $srcdir && pwd`" != "`pwd`"; then
2985  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2986  # is not polluted with repeated "-I."
2987  am__isrc=' -I$(srcdir)'
2988  # test to see if srcdir already configured
2989  if test -f $srcdir/config.status; then
2990    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2991  fi
2992fi
2993
2994# test whether we have cygpath
2995if test -z "$CYGPATH_W"; then
2996  if (cygpath --version) >/dev/null 2>/dev/null; then
2997    CYGPATH_W='cygpath -w'
2998  else
2999    CYGPATH_W=echo
3000  fi
3001fi
3002
3003
3004# Define the identity of the package.
3005 PACKAGE='yasm'
3006 VERSION='1.3.0'
3007
3008
3009cat >>confdefs.h <<_ACEOF
3010#define PACKAGE "$PACKAGE"
3011_ACEOF
3012
3013
3014cat >>confdefs.h <<_ACEOF
3015#define VERSION "$VERSION"
3016_ACEOF
3017
3018# Some tools Automake needs.
3019
3020ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3021
3022
3023AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3024
3025
3026AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3027
3028
3029AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3030
3031
3032MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3033
3034# For better backward compatibility.  To be removed once Automake 1.9.x
3035# dies out for good.  For more background, see:
3036# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3037# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3038mkdir_p='$(MKDIR_P)'
3039
3040# We need awk for the "check" target.  The system "awk" is bad on
3041# some platforms.
3042# Always define AMTAR for backward compatibility.  Yes, it's still used
3043# in the wild :-(  We should find a proper way to deprecate it ...
3044AMTAR='$${TAR-tar}'
3045
3046
3047# We'll loop over all known methods to create a tar archive until one works.
3048_am_tools='gnutar  pax cpio none'
3049
3050am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3051
3052
3053
3054
3055
3056
3057# POSIX will say in a future version that running "rm -f" with no argument
3058# is OK; and we want to be able to make that assumption in our Makefile
3059# recipes.  So use an aggressive probe to check that the usage we want is
3060# actually supported "in the wild" to an acceptable degree.
3061# See automake bug#10828.
3062# To make any issue more visible, cause the running configure to be aborted
3063# by default if the 'rm' program in use doesn't match our expectations; the
3064# user can still override this though.
3065if rm -f && rm -fr && rm -rf; then : OK; else
3066  cat >&2 <<'END'
3067Oops!
3068
3069Your 'rm' program seems unable to run without file operands specified
3070on the command line, even when the '-f' option is present.  This is contrary
3071to the behaviour of most rm programs out there, and not conforming with
3072the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3073
3074Please tell bug-automake@gnu.org about your system, including the value
3075of your $PATH and any error possibly output before this message.  This
3076can help us improve future automake versions.
3077
3078END
3079  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3080    echo 'Configuration will proceed anyway, since you have set the' >&2
3081    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3082    echo >&2
3083  else
3084    cat >&2 <<'END'
3085Aborting the configuration process, to ensure you take notice of the issue.
3086
3087You can download and install GNU coreutils to get an 'rm' implementation
3088that behaves properly: <http://www.gnu.org/software/coreutils/>.
3089
3090If you want to complete the configuration process using your problematic
3091'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3092to "yes", and re-run configure.
3093
3094END
3095    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3096  fi
3097fi
3098
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3100$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3101    # Check whether --enable-maintainer-mode was given.
3102if test "${enable_maintainer_mode+set}" = set; then :
3103  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3104else
3105  USE_MAINTAINER_MODE=no
3106fi
3107
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3109$as_echo "$USE_MAINTAINER_MODE" >&6; }
3110   if test $USE_MAINTAINER_MODE = yes; then
3111  MAINTAINER_MODE_TRUE=
3112  MAINTAINER_MODE_FALSE='#'
3113else
3114  MAINTAINER_MODE_TRUE='#'
3115  MAINTAINER_MODE_FALSE=
3116fi
3117
3118  MAINT=$MAINTAINER_MODE_TRUE
3119
3120
3121
3122#
3123# autoconf command-line options
3124#
3125# Check whether --enable-debug was given.
3126if test "${enable_debug+set}" = set; then :
3127  enableval=$enable_debug; case "${enableval}" in
3128  yes) debugging="yes" ;;
3129  no)  debugging="no" ;;
3130  *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
3131esac
3132fi
3133
3134
3135# Check whether --enable-warnerror was given.
3136if test "${enable_warnerror+set}" = set; then :
3137  enableval=$enable_warnerror; case "${enableval}" in
3138  yes) warnerror="yes" ;;
3139  no)  warnerror="no" ;;
3140  *) as_fn_error $? "bad value ${enableval} for --enable-warnerror" "$LINENO" 5 ;;
3141esac
3142fi
3143
3144
3145# Check whether --enable-profiling was given.
3146if test "${enable_profiling+set}" = set; then :
3147  enableval=$enable_profiling; case "${enableval}" in
3148  yes) profiling="yes" ;;
3149  no)  profiling="no" ;;
3150  *) as_fn_error $? "bad value ${enableval} for --enable-profiling" "$LINENO" 5 ;;
3151esac
3152fi
3153
3154
3155# Check whether --enable-gcov was given.
3156if test "${enable_gcov+set}" = set; then :
3157  enableval=$enable_gcov; case "${enableval}" in
3158  yes) gcov="yes" ;;
3159  no)  gcov="no" ;;
3160  *) as_fn_error $? "bad value ${enableval} for --enable-gcov" "$LINENO" 5 ;;
3161esac
3162fi
3163
3164
3165# Check whether --enable-python was given.
3166if test "${enable_python+set}" = set; then :
3167  enableval=$enable_python; case "${enableval}" in
3168  yes) enable_python="yes" ;;
3169  no)  enable_python="no" ;;
3170  *) as_fn_error $? "bad value ${enableval} for --enable-python" "$LINENO" 5 ;;
3171esac
3172else
3173  enable_python="auto"
3174fi
3175
3176
3177# Check whether --enable-python-bindings was given.
3178if test "${enable_python_bindings+set}" = set; then :
3179  enableval=$enable_python_bindings; case "${enableval}" in
3180  yes) enable_python_bindings="yes" ;;
3181  no)  enable_python_bindings="no" ;;
3182  *) as_fn_error $? "bad value ${enableval} for --enable-python-bindings" "$LINENO" 5 ;;
3183esac
3184else
3185  enable_python_bindings="no"
3186fi
3187
3188
3189#
3190# Checks for programs.
3191#
3192DEPDIR="${am__leading_dot}deps"
3193
3194ac_config_commands="$ac_config_commands depfiles"
3195
3196
3197am_make=${MAKE-make}
3198cat > confinc << 'END'
3199am__doit:
3200	@echo this is the am__doit target
3201.PHONY: am__doit
3202END
3203# If we don't find an include directive, just comment out the code.
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3205$as_echo_n "checking for style of include used by $am_make... " >&6; }
3206am__include="#"
3207am__quote=
3208_am_result=none
3209# First try GNU make style include.
3210echo "include confinc" > confmf
3211# Ignore all kinds of additional output from 'make'.
3212case `$am_make -s -f confmf 2> /dev/null` in #(
3213*the\ am__doit\ target*)
3214  am__include=include
3215  am__quote=
3216  _am_result=GNU
3217  ;;
3218esac
3219# Now try BSD make style include.
3220if test "$am__include" = "#"; then
3221   echo '.include "confinc"' > confmf
3222   case `$am_make -s -f confmf 2> /dev/null` in #(
3223   *the\ am__doit\ target*)
3224     am__include=.include
3225     am__quote="\""
3226     _am_result=BSD
3227     ;;
3228   esac
3229fi
3230
3231
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3233$as_echo "$_am_result" >&6; }
3234rm -f confinc confmf
3235
3236# Check whether --enable-dependency-tracking was given.
3237if test "${enable_dependency_tracking+set}" = set; then :
3238  enableval=$enable_dependency_tracking;
3239fi
3240
3241if test "x$enable_dependency_tracking" != xno; then
3242  am_depcomp="$ac_aux_dir/depcomp"
3243  AMDEPBACKSLASH='\'
3244  am__nodep='_no'
3245fi
3246 if test "x$enable_dependency_tracking" != xno; then
3247  AMDEP_TRUE=
3248  AMDEP_FALSE='#'
3249else
3250  AMDEP_TRUE='#'
3251  AMDEP_FALSE=
3252fi
3253
3254
3255ac_ext=c
3256ac_cpp='$CPP $CPPFLAGS'
3257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260if test -n "$ac_tool_prefix"; then
3261  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3262set dummy ${ac_tool_prefix}gcc; ac_word=$2
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
3265if ${ac_cv_prog_CC+:} false; then :
3266  $as_echo_n "(cached) " >&6
3267else
3268  if test -n "$CC"; then
3269  ac_cv_prog_CC="$CC" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274  IFS=$as_save_IFS
3275  test -z "$as_dir" && as_dir=.
3276    for ac_exec_ext in '' $ac_executable_extensions; do
3277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280    break 2
3281  fi
3282done
3283  done
3284IFS=$as_save_IFS
3285
3286fi
3287fi
3288CC=$ac_cv_prog_CC
3289if test -n "$CC"; then
3290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291$as_echo "$CC" >&6; }
3292else
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295fi
3296
3297
3298fi
3299if test -z "$ac_cv_prog_CC"; then
3300  ac_ct_CC=$CC
3301  # Extract the first word of "gcc", so it can be a program name with args.
3302set dummy gcc; ac_word=$2
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304$as_echo_n "checking for $ac_word... " >&6; }
3305if ${ac_cv_prog_ac_ct_CC+:} false; then :
3306  $as_echo_n "(cached) " >&6
3307else
3308  if test -n "$ac_ct_CC"; then
3309  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310else
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314  IFS=$as_save_IFS
3315  test -z "$as_dir" && as_dir=.
3316    for ac_exec_ext in '' $ac_executable_extensions; do
3317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318    ac_cv_prog_ac_ct_CC="gcc"
3319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320    break 2
3321  fi
3322done
3323  done
3324IFS=$as_save_IFS
3325
3326fi
3327fi
3328ac_ct_CC=$ac_cv_prog_ac_ct_CC
3329if test -n "$ac_ct_CC"; then
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3331$as_echo "$ac_ct_CC" >&6; }
3332else
3333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335fi
3336
3337  if test "x$ac_ct_CC" = x; then
3338    CC=""
3339  else
3340    case $cross_compiling:$ac_tool_warned in
3341yes:)
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344ac_tool_warned=yes ;;
3345esac
3346    CC=$ac_ct_CC
3347  fi
3348else
3349  CC="$ac_cv_prog_CC"
3350fi
3351
3352if test -z "$CC"; then
3353          if test -n "$ac_tool_prefix"; then
3354    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3355set dummy ${ac_tool_prefix}cc; ac_word=$2
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357$as_echo_n "checking for $ac_word... " >&6; }
3358if ${ac_cv_prog_CC+:} false; then :
3359  $as_echo_n "(cached) " >&6
3360else
3361  if test -n "$CC"; then
3362  ac_cv_prog_CC="$CC" # Let the user override the test.
3363else
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369    for ac_exec_ext in '' $ac_executable_extensions; do
3370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371    ac_cv_prog_CC="${ac_tool_prefix}cc"
3372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373    break 2
3374  fi
3375done
3376  done
3377IFS=$as_save_IFS
3378
3379fi
3380fi
3381CC=$ac_cv_prog_CC
3382if test -n "$CC"; then
3383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3384$as_echo "$CC" >&6; }
3385else
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387$as_echo "no" >&6; }
3388fi
3389
3390
3391  fi
3392fi
3393if test -z "$CC"; then
3394  # Extract the first word of "cc", so it can be a program name with args.
3395set dummy cc; ac_word=$2
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397$as_echo_n "checking for $ac_word... " >&6; }
3398if ${ac_cv_prog_CC+:} false; then :
3399  $as_echo_n "(cached) " >&6
3400else
3401  if test -n "$CC"; then
3402  ac_cv_prog_CC="$CC" # Let the user override the test.
3403else
3404  ac_prog_rejected=no
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408  IFS=$as_save_IFS
3409  test -z "$as_dir" && as_dir=.
3410    for ac_exec_ext in '' $ac_executable_extensions; do
3411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3413       ac_prog_rejected=yes
3414       continue
3415     fi
3416    ac_cv_prog_CC="cc"
3417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418    break 2
3419  fi
3420done
3421  done
3422IFS=$as_save_IFS
3423
3424if test $ac_prog_rejected = yes; then
3425  # We found a bogon in the path, so make sure we never use it.
3426  set dummy $ac_cv_prog_CC
3427  shift
3428  if test $# != 0; then
3429    # We chose a different compiler from the bogus one.
3430    # However, it has the same basename, so the bogon will be chosen
3431    # first if we set CC to just the basename; use the full file name.
3432    shift
3433    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3434  fi
3435fi
3436fi
3437fi
3438CC=$ac_cv_prog_CC
3439if test -n "$CC"; then
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441$as_echo "$CC" >&6; }
3442else
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448fi
3449if test -z "$CC"; then
3450  if test -n "$ac_tool_prefix"; then
3451  for ac_prog in cl.exe
3452  do
3453    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456$as_echo_n "checking for $ac_word... " >&6; }
3457if ${ac_cv_prog_CC+:} false; then :
3458  $as_echo_n "(cached) " >&6
3459else
3460  if test -n "$CC"; then
3461  ac_cv_prog_CC="$CC" # Let the user override the test.
3462else
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466  IFS=$as_save_IFS
3467  test -z "$as_dir" && as_dir=.
3468    for ac_exec_ext in '' $ac_executable_extensions; do
3469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472    break 2
3473  fi
3474done
3475  done
3476IFS=$as_save_IFS
3477
3478fi
3479fi
3480CC=$ac_cv_prog_CC
3481if test -n "$CC"; then
3482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483$as_echo "$CC" >&6; }
3484else
3485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486$as_echo "no" >&6; }
3487fi
3488
3489
3490    test -n "$CC" && break
3491  done
3492fi
3493if test -z "$CC"; then
3494  ac_ct_CC=$CC
3495  for ac_prog in cl.exe
3496do
3497  # Extract the first word of "$ac_prog", so it can be a program name with args.
3498set dummy $ac_prog; ac_word=$2
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500$as_echo_n "checking for $ac_word... " >&6; }
3501if ${ac_cv_prog_ac_ct_CC+:} false; then :
3502  $as_echo_n "(cached) " >&6
3503else
3504  if test -n "$ac_ct_CC"; then
3505  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3506else
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510  IFS=$as_save_IFS
3511  test -z "$as_dir" && as_dir=.
3512    for ac_exec_ext in '' $ac_executable_extensions; do
3513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514    ac_cv_prog_ac_ct_CC="$ac_prog"
3515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516    break 2
3517  fi
3518done
3519  done
3520IFS=$as_save_IFS
3521
3522fi
3523fi
3524ac_ct_CC=$ac_cv_prog_ac_ct_CC
3525if test -n "$ac_ct_CC"; then
3526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3527$as_echo "$ac_ct_CC" >&6; }
3528else
3529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530$as_echo "no" >&6; }
3531fi
3532
3533
3534  test -n "$ac_ct_CC" && break
3535done
3536
3537  if test "x$ac_ct_CC" = x; then
3538    CC=""
3539  else
3540    case $cross_compiling:$ac_tool_warned in
3541yes:)
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3544ac_tool_warned=yes ;;
3545esac
3546    CC=$ac_ct_CC
3547  fi
3548fi
3549
3550fi
3551
3552
3553test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555as_fn_error $? "no acceptable C compiler found in \$PATH
3556See \`config.log' for more details" "$LINENO" 5; }
3557
3558# Provide some information about the compiler.
3559$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3560set X $ac_compile
3561ac_compiler=$2
3562for ac_option in --version -v -V -qversion; do
3563  { { ac_try="$ac_compiler $ac_option >&5"
3564case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569$as_echo "$ac_try_echo"; } >&5
3570  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3571  ac_status=$?
3572  if test -s conftest.err; then
3573    sed '10a\
3574... rest of stderr output deleted ...
3575         10q' conftest.err >conftest.er1
3576    cat conftest.er1 >&5
3577  fi
3578  rm -f conftest.er1 conftest.err
3579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580  test $ac_status = 0; }
3581done
3582
3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585
3586int
3587main ()
3588{
3589
3590  ;
3591  return 0;
3592}
3593_ACEOF
3594ac_clean_files_save=$ac_clean_files
3595ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3596# Try to create an executable without -o first, disregard a.out.
3597# It will help us diagnose broken compilers, and finding out an intuition
3598# of exeext.
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3600$as_echo_n "checking whether the C compiler works... " >&6; }
3601ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3602
3603# The possible output files:
3604ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3605
3606ac_rmfiles=
3607for ac_file in $ac_files
3608do
3609  case $ac_file in
3610    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3612  esac
3613done
3614rm -f $ac_rmfiles
3615
3616if { { ac_try="$ac_link_default"
3617case "(($ac_try" in
3618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619  *) ac_try_echo=$ac_try;;
3620esac
3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622$as_echo "$ac_try_echo"; } >&5
3623  (eval "$ac_link_default") 2>&5
3624  ac_status=$?
3625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626  test $ac_status = 0; }; then :
3627  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3628# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3629# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3630# so that the user can short-circuit this test for compilers unknown to
3631# Autoconf.
3632for ac_file in $ac_files ''
3633do
3634  test -f "$ac_file" || continue
3635  case $ac_file in
3636    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3637	;;
3638    [ab].out )
3639	# We found the default executable, but exeext='' is most
3640	# certainly right.
3641	break;;
3642    *.* )
3643	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3644	then :; else
3645	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646	fi
3647	# We set ac_cv_exeext here because the later test for it is not
3648	# safe: cross compilers may not add the suffix if given an `-o'
3649	# argument, so we may need to know it at that point already.
3650	# Even if this section looks crufty: it has the advantage of
3651	# actually working.
3652	break;;
3653    * )
3654	break;;
3655  esac
3656done
3657test "$ac_cv_exeext" = no && ac_cv_exeext=
3658
3659else
3660  ac_file=''
3661fi
3662if test -z "$ac_file"; then :
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
3665$as_echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670as_fn_error 77 "C compiler cannot create executables
3671See \`config.log' for more details" "$LINENO" 5; }
3672else
3673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3674$as_echo "yes" >&6; }
3675fi
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3677$as_echo_n "checking for C compiler default output file name... " >&6; }
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3679$as_echo "$ac_file" >&6; }
3680ac_exeext=$ac_cv_exeext
3681
3682rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3683ac_clean_files=$ac_clean_files_save
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3685$as_echo_n "checking for suffix of executables... " >&6; }
3686if { { ac_try="$ac_link"
3687case "(($ac_try" in
3688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689  *) ac_try_echo=$ac_try;;
3690esac
3691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692$as_echo "$ac_try_echo"; } >&5
3693  (eval "$ac_link") 2>&5
3694  ac_status=$?
3695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696  test $ac_status = 0; }; then :
3697  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3698# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3699# work properly (i.e., refer to `conftest.exe'), while it won't with
3700# `rm'.
3701for ac_file in conftest.exe conftest conftest.*; do
3702  test -f "$ac_file" || continue
3703  case $ac_file in
3704    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706	  break;;
3707    * ) break;;
3708  esac
3709done
3710else
3711  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3714See \`config.log' for more details" "$LINENO" 5; }
3715fi
3716rm -f conftest conftest$ac_cv_exeext
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3718$as_echo "$ac_cv_exeext" >&6; }
3719
3720rm -f conftest.$ac_ext
3721EXEEXT=$ac_cv_exeext
3722ac_exeext=$EXEEXT
3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h.  */
3725#include <stdio.h>
3726int
3727main ()
3728{
3729FILE *f = fopen ("conftest.out", "w");
3730 return ferror (f) || fclose (f) != 0;
3731
3732  ;
3733  return 0;
3734}
3735_ACEOF
3736ac_clean_files="$ac_clean_files conftest.out"
3737# Check that the compiler produces executables we can run.  If not, either
3738# the compiler is broken, or we cross compile.
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3740$as_echo_n "checking whether we are cross compiling... " >&6; }
3741if test "$cross_compiling" != yes; then
3742  { { ac_try="$ac_link"
3743case "(($ac_try" in
3744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745  *) ac_try_echo=$ac_try;;
3746esac
3747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748$as_echo "$ac_try_echo"; } >&5
3749  (eval "$ac_link") 2>&5
3750  ac_status=$?
3751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752  test $ac_status = 0; }
3753  if { ac_try='./conftest$ac_cv_exeext'
3754  { { case "(($ac_try" in
3755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756  *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759$as_echo "$ac_try_echo"; } >&5
3760  (eval "$ac_try") 2>&5
3761  ac_status=$?
3762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763  test $ac_status = 0; }; }; then
3764    cross_compiling=no
3765  else
3766    if test "$cross_compiling" = maybe; then
3767	cross_compiling=yes
3768    else
3769	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771as_fn_error $? "cannot run C compiled programs.
3772If you meant to cross compile, use \`--host'.
3773See \`config.log' for more details" "$LINENO" 5; }
3774    fi
3775  fi
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3778$as_echo "$cross_compiling" >&6; }
3779
3780rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3781ac_clean_files=$ac_clean_files_save
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3783$as_echo_n "checking for suffix of object files... " >&6; }
3784if ${ac_cv_objext+:} false; then :
3785  $as_echo_n "(cached) " >&6
3786else
3787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h.  */
3789
3790int
3791main ()
3792{
3793
3794  ;
3795  return 0;
3796}
3797_ACEOF
3798rm -f conftest.o conftest.obj
3799if { { ac_try="$ac_compile"
3800case "(($ac_try" in
3801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802  *) ac_try_echo=$ac_try;;
3803esac
3804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805$as_echo "$ac_try_echo"; } >&5
3806  (eval "$ac_compile") 2>&5
3807  ac_status=$?
3808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809  test $ac_status = 0; }; then :
3810  for ac_file in conftest.o conftest.obj conftest.*; do
3811  test -f "$ac_file" || continue;
3812  case $ac_file in
3813    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3814    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3815       break;;
3816  esac
3817done
3818else
3819  $as_echo "$as_me: failed program was:" >&5
3820sed 's/^/| /' conftest.$ac_ext >&5
3821
3822{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824as_fn_error $? "cannot compute suffix of object files: cannot compile
3825See \`config.log' for more details" "$LINENO" 5; }
3826fi
3827rm -f conftest.$ac_cv_objext conftest.$ac_ext
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3830$as_echo "$ac_cv_objext" >&6; }
3831OBJEXT=$ac_cv_objext
3832ac_objext=$OBJEXT
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3834$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3835if ${ac_cv_c_compiler_gnu+:} false; then :
3836  $as_echo_n "(cached) " >&6
3837else
3838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h.  */
3840
3841int
3842main ()
3843{
3844#ifndef __GNUC__
3845       choke me
3846#endif
3847
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852if ac_fn_c_try_compile "$LINENO"; then :
3853  ac_compiler_gnu=yes
3854else
3855  ac_compiler_gnu=no
3856fi
3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858ac_cv_c_compiler_gnu=$ac_compiler_gnu
3859
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3862$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3863if test $ac_compiler_gnu = yes; then
3864  GCC=yes
3865else
3866  GCC=
3867fi
3868ac_test_CFLAGS=${CFLAGS+set}
3869ac_save_CFLAGS=$CFLAGS
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3871$as_echo_n "checking whether $CC accepts -g... " >&6; }
3872if ${ac_cv_prog_cc_g+:} false; then :
3873  $as_echo_n "(cached) " >&6
3874else
3875  ac_save_c_werror_flag=$ac_c_werror_flag
3876   ac_c_werror_flag=yes
3877   ac_cv_prog_cc_g=no
3878   CFLAGS="-g"
3879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881
3882int
3883main ()
3884{
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890if ac_fn_c_try_compile "$LINENO"; then :
3891  ac_cv_prog_cc_g=yes
3892else
3893  CFLAGS=""
3894      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905if ac_fn_c_try_compile "$LINENO"; then :
3906
3907else
3908  ac_c_werror_flag=$ac_save_c_werror_flag
3909	 CFLAGS="-g"
3910	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h.  */
3912
3913int
3914main ()
3915{
3916
3917  ;
3918  return 0;
3919}
3920_ACEOF
3921if ac_fn_c_try_compile "$LINENO"; then :
3922  ac_cv_prog_cc_g=yes
3923fi
3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925fi
3926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927fi
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929   ac_c_werror_flag=$ac_save_c_werror_flag
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3932$as_echo "$ac_cv_prog_cc_g" >&6; }
3933if test "$ac_test_CFLAGS" = set; then
3934  CFLAGS=$ac_save_CFLAGS
3935elif test $ac_cv_prog_cc_g = yes; then
3936  if test "$GCC" = yes; then
3937    CFLAGS="-g -O2"
3938  else
3939    CFLAGS="-g"
3940  fi
3941else
3942  if test "$GCC" = yes; then
3943    CFLAGS="-O2"
3944  else
3945    CFLAGS=
3946  fi
3947fi
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3949$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3950if ${ac_cv_prog_cc_c89+:} false; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953  ac_cv_prog_cc_c89=no
3954ac_save_CC=$CC
3955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h.  */
3957#include <stdarg.h>
3958#include <stdio.h>
3959struct stat;
3960/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3961struct buf { int x; };
3962FILE * (*rcsopen) (struct buf *, struct stat *, int);
3963static char *e (p, i)
3964     char **p;
3965     int i;
3966{
3967  return p[i];
3968}
3969static char *f (char * (*g) (char **, int), char **p, ...)
3970{
3971  char *s;
3972  va_list v;
3973  va_start (v,p);
3974  s = g (p, va_arg (v,int));
3975  va_end (v);
3976  return s;
3977}
3978
3979/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3980   function prototypes and stuff, but not '\xHH' hex character constants.
3981   These don't provoke an error unfortunately, instead are silently treated
3982   as 'x'.  The following induces an error, until -std is added to get
3983   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3984   array size at least.  It's necessary to write '\x00'==0 to get something
3985   that's true only with -std.  */
3986int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3987
3988/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3989   inside strings and character constants.  */
3990#define FOO(x) 'x'
3991int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3992
3993int test (int i, double x);
3994struct s1 {int (*f) (int a);};
3995struct s2 {int (*f) (double a);};
3996int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3997int argc;
3998char **argv;
3999int
4000main ()
4001{
4002return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4003  ;
4004  return 0;
4005}
4006_ACEOF
4007for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4008	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4009do
4010  CC="$ac_save_CC $ac_arg"
4011  if ac_fn_c_try_compile "$LINENO"; then :
4012  ac_cv_prog_cc_c89=$ac_arg
4013fi
4014rm -f core conftest.err conftest.$ac_objext
4015  test "x$ac_cv_prog_cc_c89" != "xno" && break
4016done
4017rm -f conftest.$ac_ext
4018CC=$ac_save_CC
4019
4020fi
4021# AC_CACHE_VAL
4022case "x$ac_cv_prog_cc_c89" in
4023  x)
4024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4025$as_echo "none needed" >&6; } ;;
4026  xno)
4027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4028$as_echo "unsupported" >&6; } ;;
4029  *)
4030    CC="$CC $ac_cv_prog_cc_c89"
4031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4032$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4033esac
4034if test "x$ac_cv_prog_cc_c89" != xno; then :
4035
4036fi
4037
4038ac_ext=c
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044ac_ext=c
4045ac_cpp='$CPP $CPPFLAGS'
4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4050$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4051if ${am_cv_prog_cc_c_o+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h.  */
4056
4057int
4058main ()
4059{
4060
4061  ;
4062  return 0;
4063}
4064_ACEOF
4065  # Make sure it works both with $CC and with simple cc.
4066  # Following AC_PROG_CC_C_O, we do the test twice because some
4067  # compilers refuse to overwrite an existing .o file with -o,
4068  # though they will create one.
4069  am_cv_prog_cc_c_o=yes
4070  for am_i in 1 2; do
4071    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4072   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } \
4076         && test -f conftest2.$ac_objext; then
4077      : OK
4078    else
4079      am_cv_prog_cc_c_o=no
4080      break
4081    fi
4082  done
4083  rm -f core conftest*
4084  unset am_i
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4087$as_echo "$am_cv_prog_cc_c_o" >&6; }
4088if test "$am_cv_prog_cc_c_o" != yes; then
4089   # Losing compiler, so override with the script.
4090   # FIXME: It is wrong to rewrite CC.
4091   # But if we don't then we get into trouble of one sort or another.
4092   # A longer-term fix would be to have automake use am__CC in this case,
4093   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4094   CC="$am_aux_dir/compile $CC"
4095fi
4096ac_ext=c
4097ac_cpp='$CPP $CPPFLAGS'
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102
4103depcc="$CC"   am_compiler_list=
4104
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4106$as_echo_n "checking dependency style of $depcc... " >&6; }
4107if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4108  $as_echo_n "(cached) " >&6
4109else
4110  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4111  # We make a subdir and do the tests there.  Otherwise we can end up
4112  # making bogus files that we don't know about and never remove.  For
4113  # instance it was reported that on HP-UX the gcc test will end up
4114  # making a dummy file named 'D' -- because '-MD' means "put the output
4115  # in D".
4116  rm -rf conftest.dir
4117  mkdir conftest.dir
4118  # Copy depcomp to subdir because otherwise we won't find it if we're
4119  # using a relative directory.
4120  cp "$am_depcomp" conftest.dir
4121  cd conftest.dir
4122  # We will build objects and dependencies in a subdirectory because
4123  # it helps to detect inapplicable dependency modes.  For instance
4124  # both Tru64's cc and ICC support -MD to output dependencies as a
4125  # side effect of compilation, but ICC will put the dependencies in
4126  # the current directory while Tru64 will put them in the object
4127  # directory.
4128  mkdir sub
4129
4130  am_cv_CC_dependencies_compiler_type=none
4131  if test "$am_compiler_list" = ""; then
4132     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4133  fi
4134  am__universal=false
4135  case " $depcc " in #(
4136     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4137     esac
4138
4139  for depmode in $am_compiler_list; do
4140    # Setup a source with many dependencies, because some compilers
4141    # like to wrap large dependency lists on column 80 (with \), and
4142    # we should not choose a depcomp mode which is confused by this.
4143    #
4144    # We need to recreate these files for each test, as the compiler may
4145    # overwrite some of them when testing with obscure command lines.
4146    # This happens at least with the AIX C compiler.
4147    : > sub/conftest.c
4148    for i in 1 2 3 4 5 6; do
4149      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4150      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4151      # Solaris 10 /bin/sh.
4152      echo '/* dummy */' > sub/conftst$i.h
4153    done
4154    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4155
4156    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4157    # mode.  It turns out that the SunPro C++ compiler does not properly
4158    # handle '-M -o', and we need to detect this.  Also, some Intel
4159    # versions had trouble with output in subdirs.
4160    am__obj=sub/conftest.${OBJEXT-o}
4161    am__minus_obj="-o $am__obj"
4162    case $depmode in
4163    gcc)
4164      # This depmode causes a compiler race in universal mode.
4165      test "$am__universal" = false || continue
4166      ;;
4167    nosideeffect)
4168      # After this tag, mechanisms are not by side-effect, so they'll
4169      # only be used when explicitly requested.
4170      if test "x$enable_dependency_tracking" = xyes; then
4171	continue
4172      else
4173	break
4174      fi
4175      ;;
4176    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4177      # This compiler won't grok '-c -o', but also, the minuso test has
4178      # not run yet.  These depmodes are late enough in the game, and
4179      # so weak that their functioning should not be impacted.
4180      am__obj=conftest.${OBJEXT-o}
4181      am__minus_obj=
4182      ;;
4183    none) break ;;
4184    esac
4185    if depmode=$depmode \
4186       source=sub/conftest.c object=$am__obj \
4187       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4188       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4189         >/dev/null 2>conftest.err &&
4190       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4191       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4192       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4193       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4194      # icc doesn't choke on unknown options, it will just issue warnings
4195      # or remarks (even with -Werror).  So we grep stderr for any message
4196      # that says an option was ignored or not supported.
4197      # When given -MP, icc 7.0 and 7.1 complain thusly:
4198      #   icc: Command line warning: ignoring option '-M'; no argument required
4199      # The diagnosis changed in icc 8.0:
4200      #   icc: Command line remark: option '-MP' not supported
4201      if (grep 'ignoring option' conftest.err ||
4202          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4203        am_cv_CC_dependencies_compiler_type=$depmode
4204        break
4205      fi
4206    fi
4207  done
4208
4209  cd ..
4210  rm -rf conftest.dir
4211else
4212  am_cv_CC_dependencies_compiler_type=none
4213fi
4214
4215fi
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4217$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4218CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4219
4220 if
4221  test "x$enable_dependency_tracking" != xno \
4222  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4223  am__fastdepCC_TRUE=
4224  am__fastdepCC_FALSE='#'
4225else
4226  am__fastdepCC_TRUE='#'
4227  am__fastdepCC_FALSE=
4228fi
4229
4230
4231ac_ext=c
4232ac_cpp='$CPP $CPPFLAGS'
4233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4237$as_echo_n "checking how to run the C preprocessor... " >&6; }
4238# On Suns, sometimes $CPP names a directory.
4239if test -n "$CPP" && test -d "$CPP"; then
4240  CPP=
4241fi
4242if test -z "$CPP"; then
4243  if ${ac_cv_prog_CPP+:} false; then :
4244  $as_echo_n "(cached) " >&6
4245else
4246      # Double quotes because CPP needs to be expanded
4247    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4248    do
4249      ac_preproc_ok=false
4250for ac_c_preproc_warn_flag in '' yes
4251do
4252  # Use a header file that comes with gcc, so configuring glibc
4253  # with a fresh cross-compiler works.
4254  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255  # <limits.h> exists even on freestanding compilers.
4256  # On the NeXT, cc -E runs the code through the compiler's parser,
4257  # not just through cpp. "Syntax error" is here to catch this case.
4258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h.  */
4260#ifdef __STDC__
4261# include <limits.h>
4262#else
4263# include <assert.h>
4264#endif
4265		     Syntax error
4266_ACEOF
4267if ac_fn_c_try_cpp "$LINENO"; then :
4268
4269else
4270  # Broken: fails on valid input.
4271continue
4272fi
4273rm -f conftest.err conftest.i conftest.$ac_ext
4274
4275  # OK, works on sane cases.  Now check whether nonexistent headers
4276  # can be detected and how.
4277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279#include <ac_nonexistent.h>
4280_ACEOF
4281if ac_fn_c_try_cpp "$LINENO"; then :
4282  # Broken: success on invalid input.
4283continue
4284else
4285  # Passes both tests.
4286ac_preproc_ok=:
4287break
4288fi
4289rm -f conftest.err conftest.i conftest.$ac_ext
4290
4291done
4292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4293rm -f conftest.i conftest.err conftest.$ac_ext
4294if $ac_preproc_ok; then :
4295  break
4296fi
4297
4298    done
4299    ac_cv_prog_CPP=$CPP
4300
4301fi
4302  CPP=$ac_cv_prog_CPP
4303else
4304  ac_cv_prog_CPP=$CPP
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4307$as_echo "$CPP" >&6; }
4308ac_preproc_ok=false
4309for ac_c_preproc_warn_flag in '' yes
4310do
4311  # Use a header file that comes with gcc, so configuring glibc
4312  # with a fresh cross-compiler works.
4313  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4314  # <limits.h> exists even on freestanding compilers.
4315  # On the NeXT, cc -E runs the code through the compiler's parser,
4316  # not just through cpp. "Syntax error" is here to catch this case.
4317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319#ifdef __STDC__
4320# include <limits.h>
4321#else
4322# include <assert.h>
4323#endif
4324		     Syntax error
4325_ACEOF
4326if ac_fn_c_try_cpp "$LINENO"; then :
4327
4328else
4329  # Broken: fails on valid input.
4330continue
4331fi
4332rm -f conftest.err conftest.i conftest.$ac_ext
4333
4334  # OK, works on sane cases.  Now check whether nonexistent headers
4335  # can be detected and how.
4336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338#include <ac_nonexistent.h>
4339_ACEOF
4340if ac_fn_c_try_cpp "$LINENO"; then :
4341  # Broken: success on invalid input.
4342continue
4343else
4344  # Passes both tests.
4345ac_preproc_ok=:
4346break
4347fi
4348rm -f conftest.err conftest.i conftest.$ac_ext
4349
4350done
4351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4352rm -f conftest.i conftest.err conftest.$ac_ext
4353if $ac_preproc_ok; then :
4354
4355else
4356  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4358as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4359See \`config.log' for more details" "$LINENO" 5; }
4360fi
4361
4362ac_ext=c
4363ac_cpp='$CPP $CPPFLAGS'
4364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367
4368   case $ac_cv_prog_cc_stdc in #(
4369  no) :
4370    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4371  *) :
4372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4373$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4374if ${ac_cv_prog_cc_c99+:} false; then :
4375  $as_echo_n "(cached) " >&6
4376else
4377  ac_cv_prog_cc_c99=no
4378ac_save_CC=$CC
4379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380/* end confdefs.h.  */
4381#include <stdarg.h>
4382#include <stdbool.h>
4383#include <stdlib.h>
4384#include <wchar.h>
4385#include <stdio.h>
4386
4387// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4388#define debug(...) fprintf (stderr, __VA_ARGS__)
4389#define showlist(...) puts (#__VA_ARGS__)
4390#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4391static void
4392test_varargs_macros (void)
4393{
4394  int x = 1234;
4395  int y = 5678;
4396  debug ("Flag");
4397  debug ("X = %d\n", x);
4398  showlist (The first, second, and third items.);
4399  report (x>y, "x is %d but y is %d", x, y);
4400}
4401
4402// Check long long types.
4403#define BIG64 18446744073709551615ull
4404#define BIG32 4294967295ul
4405#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4406#if !BIG_OK
4407  your preprocessor is broken;
4408#endif
4409#if BIG_OK
4410#else
4411  your preprocessor is broken;
4412#endif
4413static long long int bignum = -9223372036854775807LL;
4414static unsigned long long int ubignum = BIG64;
4415
4416struct incomplete_array
4417{
4418  int datasize;
4419  double data[];
4420};
4421
4422struct named_init {
4423  int number;
4424  const wchar_t *name;
4425  double average;
4426};
4427
4428typedef const char *ccp;
4429
4430static inline int
4431test_restrict (ccp restrict text)
4432{
4433  // See if C++-style comments work.
4434  // Iterate through items via the restricted pointer.
4435  // Also check for declarations in for loops.
4436  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4437    continue;
4438  return 0;
4439}
4440
4441// Check varargs and va_copy.
4442static void
4443test_varargs (const char *format, ...)
4444{
4445  va_list args;
4446  va_start (args, format);
4447  va_list args_copy;
4448  va_copy (args_copy, args);
4449
4450  const char *str;
4451  int number;
4452  float fnumber;
4453
4454  while (*format)
4455    {
4456      switch (*format++)
4457	{
4458	case 's': // string
4459	  str = va_arg (args_copy, const char *);
4460	  break;
4461	case 'd': // int
4462	  number = va_arg (args_copy, int);
4463	  break;
4464	case 'f': // float
4465	  fnumber = va_arg (args_copy, double);
4466	  break;
4467	default:
4468	  break;
4469	}
4470    }
4471  va_end (args_copy);
4472  va_end (args);
4473}
4474
4475int
4476main ()
4477{
4478
4479  // Check bool.
4480  _Bool success = false;
4481
4482  // Check restrict.
4483  if (test_restrict ("String literal") == 0)
4484    success = true;
4485  char *restrict newvar = "Another string";
4486
4487  // Check varargs.
4488  test_varargs ("s, d' f .", "string", 65, 34.234);
4489  test_varargs_macros ();
4490
4491  // Check flexible array members.
4492  struct incomplete_array *ia =
4493    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4494  ia->datasize = 10;
4495  for (int i = 0; i < ia->datasize; ++i)
4496    ia->data[i] = i * 1.234;
4497
4498  // Check named initializers.
4499  struct named_init ni = {
4500    .number = 34,
4501    .name = L"Test wide string",
4502    .average = 543.34343,
4503  };
4504
4505  ni.number = 58;
4506
4507  int dynamic_array[ni.number];
4508  dynamic_array[ni.number - 1] = 543;
4509
4510  // work around unused variable warnings
4511  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4512	  || dynamic_array[ni.number - 1] != 543);
4513
4514  ;
4515  return 0;
4516}
4517_ACEOF
4518for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4519do
4520  CC="$ac_save_CC $ac_arg"
4521  if ac_fn_c_try_compile "$LINENO"; then :
4522  ac_cv_prog_cc_c99=$ac_arg
4523fi
4524rm -f core conftest.err conftest.$ac_objext
4525  test "x$ac_cv_prog_cc_c99" != "xno" && break
4526done
4527rm -f conftest.$ac_ext
4528CC=$ac_save_CC
4529
4530fi
4531# AC_CACHE_VAL
4532case "x$ac_cv_prog_cc_c99" in
4533  x)
4534    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4535$as_echo "none needed" >&6; } ;;
4536  xno)
4537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4538$as_echo "unsupported" >&6; } ;;
4539  *)
4540    CC="$CC $ac_cv_prog_cc_c99"
4541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4542$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4543esac
4544if test "x$ac_cv_prog_cc_c99" != xno; then :
4545  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4546else
4547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4548$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4549if ${ac_cv_prog_cc_c89+:} false; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552  ac_cv_prog_cc_c89=no
4553ac_save_CC=$CC
4554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555/* end confdefs.h.  */
4556#include <stdarg.h>
4557#include <stdio.h>
4558struct stat;
4559/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4560struct buf { int x; };
4561FILE * (*rcsopen) (struct buf *, struct stat *, int);
4562static char *e (p, i)
4563     char **p;
4564     int i;
4565{
4566  return p[i];
4567}
4568static char *f (char * (*g) (char **, int), char **p, ...)
4569{
4570  char *s;
4571  va_list v;
4572  va_start (v,p);
4573  s = g (p, va_arg (v,int));
4574  va_end (v);
4575  return s;
4576}
4577
4578/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4579   function prototypes and stuff, but not '\xHH' hex character constants.
4580   These don't provoke an error unfortunately, instead are silently treated
4581   as 'x'.  The following induces an error, until -std is added to get
4582   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4583   array size at least.  It's necessary to write '\x00'==0 to get something
4584   that's true only with -std.  */
4585int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4586
4587/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4588   inside strings and character constants.  */
4589#define FOO(x) 'x'
4590int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4591
4592int test (int i, double x);
4593struct s1 {int (*f) (int a);};
4594struct s2 {int (*f) (double a);};
4595int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4596int argc;
4597char **argv;
4598int
4599main ()
4600{
4601return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4602  ;
4603  return 0;
4604}
4605_ACEOF
4606for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4607	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4608do
4609  CC="$ac_save_CC $ac_arg"
4610  if ac_fn_c_try_compile "$LINENO"; then :
4611  ac_cv_prog_cc_c89=$ac_arg
4612fi
4613rm -f core conftest.err conftest.$ac_objext
4614  test "x$ac_cv_prog_cc_c89" != "xno" && break
4615done
4616rm -f conftest.$ac_ext
4617CC=$ac_save_CC
4618
4619fi
4620# AC_CACHE_VAL
4621case "x$ac_cv_prog_cc_c89" in
4622  x)
4623    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4624$as_echo "none needed" >&6; } ;;
4625  xno)
4626    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4627$as_echo "unsupported" >&6; } ;;
4628  *)
4629    CC="$CC $ac_cv_prog_cc_c89"
4630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4631$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4632esac
4633if test "x$ac_cv_prog_cc_c89" != xno; then :
4634  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4635else
4636  ac_cv_prog_cc_stdc=no
4637fi
4638
4639fi
4640 ;;
4641esac
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4643$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4644  if ${ac_cv_prog_cc_stdc+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646fi
4647
4648  case $ac_cv_prog_cc_stdc in #(
4649  no) :
4650    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4651$as_echo "unsupported" >&6; } ;; #(
4652  '') :
4653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4654$as_echo "none needed" >&6; } ;; #(
4655  *) :
4656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4657$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4658esac
4659
4660
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4662$as_echo_n "checking whether ln -s works... " >&6; }
4663LN_S=$as_ln_s
4664if test "$LN_S" = "ln -s"; then
4665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4666$as_echo "yes" >&6; }
4667else
4668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4669$as_echo "no, using $LN_S" >&6; }
4670fi
4671
4672#automake default ARFLAGS to "cru"
4673if test -n "$ac_tool_prefix"; then
4674  for ac_prog in $AR ar
4675  do
4676    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4677set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679$as_echo_n "checking for $ac_word... " >&6; }
4680if ${ac_cv_prog_AR+:} false; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683  if test -n "$AR"; then
4684  ac_cv_prog_AR="$AR" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689  IFS=$as_save_IFS
4690  test -z "$as_dir" && as_dir=.
4691    for ac_exec_ext in '' $ac_executable_extensions; do
4692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695    break 2
4696  fi
4697done
4698  done
4699IFS=$as_save_IFS
4700
4701fi
4702fi
4703AR=$ac_cv_prog_AR
4704if test -n "$AR"; then
4705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4706$as_echo "$AR" >&6; }
4707else
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709$as_echo "no" >&6; }
4710fi
4711
4712
4713    test -n "$AR" && break
4714  done
4715fi
4716if test -z "$AR"; then
4717  ac_ct_AR=$AR
4718  for ac_prog in $AR ar
4719do
4720  # Extract the first word of "$ac_prog", so it can be a program name with args.
4721set dummy $ac_prog; ac_word=$2
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723$as_echo_n "checking for $ac_word... " >&6; }
4724if ${ac_cv_prog_ac_ct_AR+:} false; then :
4725  $as_echo_n "(cached) " >&6
4726else
4727  if test -n "$ac_ct_AR"; then
4728  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4729else
4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH
4732do
4733  IFS=$as_save_IFS
4734  test -z "$as_dir" && as_dir=.
4735    for ac_exec_ext in '' $ac_executable_extensions; do
4736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737    ac_cv_prog_ac_ct_AR="$ac_prog"
4738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739    break 2
4740  fi
4741done
4742  done
4743IFS=$as_save_IFS
4744
4745fi
4746fi
4747ac_ct_AR=$ac_cv_prog_ac_ct_AR
4748if test -n "$ac_ct_AR"; then
4749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4750$as_echo "$ac_ct_AR" >&6; }
4751else
4752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753$as_echo "no" >&6; }
4754fi
4755
4756
4757  test -n "$ac_ct_AR" && break
4758done
4759
4760  if test "x$ac_ct_AR" = x; then
4761    AR="ar"
4762  else
4763    case $cross_compiling:$ac_tool_warned in
4764yes:)
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767ac_tool_warned=yes ;;
4768esac
4769    AR=$ac_ct_AR
4770  fi
4771fi
4772
4773if test -n "$ac_tool_prefix"; then
4774  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4775set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777$as_echo_n "checking for $ac_word... " >&6; }
4778if ${ac_cv_prog_RANLIB+:} false; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781  if test -n "$RANLIB"; then
4782  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4783else
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787  IFS=$as_save_IFS
4788  test -z "$as_dir" && as_dir=.
4789    for ac_exec_ext in '' $ac_executable_extensions; do
4790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793    break 2
4794  fi
4795done
4796  done
4797IFS=$as_save_IFS
4798
4799fi
4800fi
4801RANLIB=$ac_cv_prog_RANLIB
4802if test -n "$RANLIB"; then
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4804$as_echo "$RANLIB" >&6; }
4805else
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807$as_echo "no" >&6; }
4808fi
4809
4810
4811fi
4812if test -z "$ac_cv_prog_RANLIB"; then
4813  ac_ct_RANLIB=$RANLIB
4814  # Extract the first word of "ranlib", so it can be a program name with args.
4815set dummy ranlib; ac_word=$2
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817$as_echo_n "checking for $ac_word... " >&6; }
4818if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821  if test -n "$ac_ct_RANLIB"; then
4822  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4823else
4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827  IFS=$as_save_IFS
4828  test -z "$as_dir" && as_dir=.
4829    for ac_exec_ext in '' $ac_executable_extensions; do
4830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831    ac_cv_prog_ac_ct_RANLIB="ranlib"
4832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833    break 2
4834  fi
4835done
4836  done
4837IFS=$as_save_IFS
4838
4839fi
4840fi
4841ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4842if test -n "$ac_ct_RANLIB"; then
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4844$as_echo "$ac_ct_RANLIB" >&6; }
4845else
4846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847$as_echo "no" >&6; }
4848fi
4849
4850  if test "x$ac_ct_RANLIB" = x; then
4851    RANLIB=":"
4852  else
4853    case $cross_compiling:$ac_tool_warned in
4854yes:)
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857ac_tool_warned=yes ;;
4858esac
4859    RANLIB=$ac_ct_RANLIB
4860  fi
4861else
4862  RANLIB="$ac_cv_prog_RANLIB"
4863fi
4864
4865
4866# REQUIRE a standard (ANSI/ISO) C compiler
4867if test "$ac_cv_prog_cc_stdc" = no; then
4868	as_fn_error $? "A standard (ANSI/ISO C89) C compiler is required." "$LINENO" 5
4869fi
4870
4871# Check for xmlto (for rendering manpages, needed only for development)
4872for ac_prog in $XMLTO xmlto
4873do
4874  # Extract the first word of "$ac_prog", so it can be a program name with args.
4875set dummy $ac_prog; ac_word=$2
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877$as_echo_n "checking for $ac_word... " >&6; }
4878if ${ac_cv_prog_XMLTO+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  if test -n "$XMLTO"; then
4882  ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
4883else
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887  IFS=$as_save_IFS
4888  test -z "$as_dir" && as_dir=.
4889    for ac_exec_ext in '' $ac_executable_extensions; do
4890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891    ac_cv_prog_XMLTO="$ac_prog"
4892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893    break 2
4894  fi
4895done
4896  done
4897IFS=$as_save_IFS
4898
4899fi
4900fi
4901XMLTO=$ac_cv_prog_XMLTO
4902if test -n "$XMLTO"; then
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
4904$as_echo "$XMLTO" >&6; }
4905else
4906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907$as_echo "no" >&6; }
4908fi
4909
4910
4911  test -n "$XMLTO" && break
4912done
4913test -n "$XMLTO" || XMLTO=":"
4914
4915if test "$XMLTO" = ":"; then
4916  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found, manpages will not be rebuilt." >&5
4917$as_echo "$as_me: WARNING: xmlto not found, manpages will not be rebuilt." >&2;}
4918fi
4919 if test "$XMLTO" != ":"; then
4920  BUILD_MAN_TRUE=
4921  BUILD_MAN_FALSE='#'
4922else
4923  BUILD_MAN_TRUE='#'
4924  BUILD_MAN_FALSE=
4925fi
4926
4927
4928# Check for compiler output filename suffixes.
4929
4930
4931
4932#
4933# Checks for libraries.
4934#
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
4936$as_echo_n "checking if malloc debugging is wanted... " >&6; }
4937
4938# Check whether --with-dmalloc was given.
4939if test "${with_dmalloc+set}" = set; then :
4940  withval=$with_dmalloc; if test "$withval" = yes; then
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4942$as_echo "yes" >&6; }
4943
4944$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
4945
4946  LIBS="$LIBS -ldmalloc"
4947  LDFLAGS="$LDFLAGS -g"
4948else
4949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950$as_echo "no" >&6; }
4951fi
4952else
4953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954$as_echo "no" >&6; }
4955fi
4956
4957
4958
4959#
4960# Checks for header files.
4961#
4962
4963
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4965$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4966if ${ac_cv_path_GREP+:} false; then :
4967  $as_echo_n "(cached) " >&6
4968else
4969  if test -z "$GREP"; then
4970  ac_path_GREP_found=false
4971  # Loop through the user's path and test for each of PROGNAME-LIST
4972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4974do
4975  IFS=$as_save_IFS
4976  test -z "$as_dir" && as_dir=.
4977    for ac_prog in grep ggrep; do
4978    for ac_exec_ext in '' $ac_executable_extensions; do
4979      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4980      as_fn_executable_p "$ac_path_GREP" || continue
4981# Check for GNU ac_path_GREP and select it if it is found.
4982  # Check for GNU $ac_path_GREP
4983case `"$ac_path_GREP" --version 2>&1` in
4984*GNU*)
4985  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4986*)
4987  ac_count=0
4988  $as_echo_n 0123456789 >"conftest.in"
4989  while :
4990  do
4991    cat "conftest.in" "conftest.in" >"conftest.tmp"
4992    mv "conftest.tmp" "conftest.in"
4993    cp "conftest.in" "conftest.nl"
4994    $as_echo 'GREP' >> "conftest.nl"
4995    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4996    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4997    as_fn_arith $ac_count + 1 && ac_count=$as_val
4998    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4999      # Best one so far, save it but keep looking for a better one
5000      ac_cv_path_GREP="$ac_path_GREP"
5001      ac_path_GREP_max=$ac_count
5002    fi
5003    # 10*(2^10) chars as input seems more than enough
5004    test $ac_count -gt 10 && break
5005  done
5006  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5007esac
5008
5009      $ac_path_GREP_found && break 3
5010    done
5011  done
5012  done
5013IFS=$as_save_IFS
5014  if test -z "$ac_cv_path_GREP"; then
5015    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5016  fi
5017else
5018  ac_cv_path_GREP=$GREP
5019fi
5020
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5023$as_echo "$ac_cv_path_GREP" >&6; }
5024 GREP="$ac_cv_path_GREP"
5025
5026
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5028$as_echo_n "checking for egrep... " >&6; }
5029if ${ac_cv_path_EGREP+:} false; then :
5030  $as_echo_n "(cached) " >&6
5031else
5032  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5033   then ac_cv_path_EGREP="$GREP -E"
5034   else
5035     if test -z "$EGREP"; then
5036  ac_path_EGREP_found=false
5037  # Loop through the user's path and test for each of PROGNAME-LIST
5038  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5040do
5041  IFS=$as_save_IFS
5042  test -z "$as_dir" && as_dir=.
5043    for ac_prog in egrep; do
5044    for ac_exec_ext in '' $ac_executable_extensions; do
5045      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5046      as_fn_executable_p "$ac_path_EGREP" || continue
5047# Check for GNU ac_path_EGREP and select it if it is found.
5048  # Check for GNU $ac_path_EGREP
5049case `"$ac_path_EGREP" --version 2>&1` in
5050*GNU*)
5051  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5052*)
5053  ac_count=0
5054  $as_echo_n 0123456789 >"conftest.in"
5055  while :
5056  do
5057    cat "conftest.in" "conftest.in" >"conftest.tmp"
5058    mv "conftest.tmp" "conftest.in"
5059    cp "conftest.in" "conftest.nl"
5060    $as_echo 'EGREP' >> "conftest.nl"
5061    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5062    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5063    as_fn_arith $ac_count + 1 && ac_count=$as_val
5064    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5065      # Best one so far, save it but keep looking for a better one
5066      ac_cv_path_EGREP="$ac_path_EGREP"
5067      ac_path_EGREP_max=$ac_count
5068    fi
5069    # 10*(2^10) chars as input seems more than enough
5070    test $ac_count -gt 10 && break
5071  done
5072  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5073esac
5074
5075      $ac_path_EGREP_found && break 3
5076    done
5077  done
5078  done
5079IFS=$as_save_IFS
5080  if test -z "$ac_cv_path_EGREP"; then
5081    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5082  fi
5083else
5084  ac_cv_path_EGREP=$EGREP
5085fi
5086
5087   fi
5088fi
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5090$as_echo "$ac_cv_path_EGREP" >&6; }
5091 EGREP="$ac_cv_path_EGREP"
5092
5093
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5095$as_echo_n "checking for ANSI C header files... " >&6; }
5096if ${ac_cv_header_stdc+:} false; then :
5097  $as_echo_n "(cached) " >&6
5098else
5099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100/* end confdefs.h.  */
5101#include <stdlib.h>
5102#include <stdarg.h>
5103#include <string.h>
5104#include <float.h>
5105
5106int
5107main ()
5108{
5109
5110  ;
5111  return 0;
5112}
5113_ACEOF
5114if ac_fn_c_try_compile "$LINENO"; then :
5115  ac_cv_header_stdc=yes
5116else
5117  ac_cv_header_stdc=no
5118fi
5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120
5121if test $ac_cv_header_stdc = yes; then
5122  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124/* end confdefs.h.  */
5125#include <string.h>
5126
5127_ACEOF
5128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5129  $EGREP "memchr" >/dev/null 2>&1; then :
5130
5131else
5132  ac_cv_header_stdc=no
5133fi
5134rm -f conftest*
5135
5136fi
5137
5138if test $ac_cv_header_stdc = yes; then
5139  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141/* end confdefs.h.  */
5142#include <stdlib.h>
5143
5144_ACEOF
5145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5146  $EGREP "free" >/dev/null 2>&1; then :
5147
5148else
5149  ac_cv_header_stdc=no
5150fi
5151rm -f conftest*
5152
5153fi
5154
5155if test $ac_cv_header_stdc = yes; then
5156  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5157  if test "$cross_compiling" = yes; then :
5158  :
5159else
5160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162#include <ctype.h>
5163#include <stdlib.h>
5164#if ((' ' & 0x0FF) == 0x020)
5165# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5166# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5167#else
5168# define ISLOWER(c) \
5169		   (('a' <= (c) && (c) <= 'i') \
5170		     || ('j' <= (c) && (c) <= 'r') \
5171		     || ('s' <= (c) && (c) <= 'z'))
5172# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5173#endif
5174
5175#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5176int
5177main ()
5178{
5179  int i;
5180  for (i = 0; i < 256; i++)
5181    if (XOR (islower (i), ISLOWER (i))
5182	|| toupper (i) != TOUPPER (i))
5183      return 2;
5184  return 0;
5185}
5186_ACEOF
5187if ac_fn_c_try_run "$LINENO"; then :
5188
5189else
5190  ac_cv_header_stdc=no
5191fi
5192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5193  conftest.$ac_objext conftest.beam conftest.$ac_ext
5194fi
5195
5196fi
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5199$as_echo "$ac_cv_header_stdc" >&6; }
5200if test $ac_cv_header_stdc = yes; then
5201
5202$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5203
5204fi
5205
5206# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5207for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5208		  inttypes.h stdint.h unistd.h
5209do :
5210  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5211ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5212"
5213if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5214  cat >>confdefs.h <<_ACEOF
5215#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5216_ACEOF
5217
5218fi
5219
5220done
5221
5222
5223for ac_header in strings.h libgen.h unistd.h direct.h sys/stat.h
5224do :
5225  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5227if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5228  cat >>confdefs.h <<_ACEOF
5229#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5230_ACEOF
5231
5232fi
5233
5234done
5235
5236
5237# REQUIRE standard C headers
5238if test "$ac_cv_header_stdc" != yes; then
5239	as_fn_error $? "Standard (ANSI/ISO C89) header files are required." "$LINENO" 5
5240fi
5241
5242#
5243# Checks for typedefs, structures, and compiler characteristics.
5244#
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5246$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5247if ${ac_cv_c_const+:} false; then :
5248  $as_echo_n "(cached) " >&6
5249else
5250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251/* end confdefs.h.  */
5252
5253int
5254main ()
5255{
5256
5257#ifndef __cplusplus
5258  /* Ultrix mips cc rejects this sort of thing.  */
5259  typedef int charset[2];
5260  const charset cs = { 0, 0 };
5261  /* SunOS 4.1.1 cc rejects this.  */
5262  char const *const *pcpcc;
5263  char **ppc;
5264  /* NEC SVR4.0.2 mips cc rejects this.  */
5265  struct point {int x, y;};
5266  static struct point const zero = {0,0};
5267  /* AIX XL C 1.02.0.0 rejects this.
5268     It does not let you subtract one const X* pointer from another in
5269     an arm of an if-expression whose if-part is not a constant
5270     expression */
5271  const char *g = "string";
5272  pcpcc = &g + (g ? g-g : 0);
5273  /* HPUX 7.0 cc rejects these. */
5274  ++pcpcc;
5275  ppc = (char**) pcpcc;
5276  pcpcc = (char const *const *) ppc;
5277  { /* SCO 3.2v4 cc rejects this sort of thing.  */
5278    char tx;
5279    char *t = &tx;
5280    char const *s = 0 ? (char *) 0 : (char const *) 0;
5281
5282    *t++ = 0;
5283    if (s) return 0;
5284  }
5285  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5286    int x[] = {25, 17};
5287    const int *foo = &x[0];
5288    ++foo;
5289  }
5290  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5291    typedef const int *iptr;
5292    iptr p = 0;
5293    ++p;
5294  }
5295  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5296       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5297    struct s { int j; const int *ap[3]; } bx;
5298    struct s *b = &bx; b->j = 5;
5299  }
5300  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5301    const int foo = 10;
5302    if (!foo) return 0;
5303  }
5304  return !cs[0] && !zero.x;
5305#endif
5306
5307  ;
5308  return 0;
5309}
5310_ACEOF
5311if ac_fn_c_try_compile "$LINENO"; then :
5312  ac_cv_c_const=yes
5313else
5314  ac_cv_c_const=no
5315fi
5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5319$as_echo "$ac_cv_c_const" >&6; }
5320if test $ac_cv_c_const = no; then
5321
5322$as_echo "#define const /**/" >>confdefs.h
5323
5324fi
5325
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5327$as_echo_n "checking for inline... " >&6; }
5328if ${ac_cv_c_inline+:} false; then :
5329  $as_echo_n "(cached) " >&6
5330else
5331  ac_cv_c_inline=no
5332for ac_kw in inline __inline__ __inline; do
5333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h.  */
5335#ifndef __cplusplus
5336typedef int foo_t;
5337static $ac_kw foo_t static_foo () {return 0; }
5338$ac_kw foo_t foo () {return 0; }
5339#endif
5340
5341_ACEOF
5342if ac_fn_c_try_compile "$LINENO"; then :
5343  ac_cv_c_inline=$ac_kw
5344fi
5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346  test "$ac_cv_c_inline" != no && break
5347done
5348
5349fi
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5351$as_echo "$ac_cv_c_inline" >&6; }
5352
5353case $ac_cv_c_inline in
5354  inline | yes) ;;
5355  *)
5356    case $ac_cv_c_inline in
5357      no) ac_val=;;
5358      *) ac_val=$ac_cv_c_inline;;
5359    esac
5360    cat >>confdefs.h <<_ACEOF
5361#ifndef __cplusplus
5362#define inline $ac_val
5363#endif
5364_ACEOF
5365    ;;
5366esac
5367
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5369$as_echo_n "checking for function prototypes... " >&6; }
5370if test "$ac_cv_prog_cc_c89" != no; then
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5372$as_echo "yes" >&6; }
5373
5374$as_echo "#define PROTOTYPES 1" >>confdefs.h
5375
5376
5377$as_echo "#define __PROTOTYPES 1" >>confdefs.h
5378
5379else
5380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381$as_echo "no" >&6; }
5382fi
5383
5384ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5385if test "x$ac_cv_type_size_t" = xyes; then :
5386
5387else
5388
5389cat >>confdefs.h <<_ACEOF
5390#define size_t unsigned int
5391_ACEOF
5392
5393fi
5394
5395# ------ AX CREATE STDINT H -------------------------------------
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
5397$as_echo_n "checking for stdint types... " >&6; }
5398ac_stdint_h=`echo libyasm-stdint.h`
5399# try to shortcircuit - if the default include path of the compiler
5400# can find a "stdint.h" header then we assume that all compilers can.
5401if ${ac_cv_header_stdint_t+:} false; then :
5402  $as_echo_n "(cached) " >&6
5403else
5404
5405old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5406old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5407old_CFLAGS="$CFLAGS"     ; CFLAGS=""
5408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409/* end confdefs.h.  */
5410#include <stdint.h>
5411int
5412main ()
5413{
5414int_least32_t v = 0;
5415  ;
5416  return 0;
5417}
5418_ACEOF
5419if ac_fn_c_try_compile "$LINENO"; then :
5420  ac_cv_stdint_result="(assuming C99 compatible system)"
5421 ac_cv_header_stdint_t="stdint.h";
5422else
5423  ac_cv_header_stdint_t=""
5424fi
5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426CXXFLAGS="$old_CXXFLAGS"
5427CPPFLAGS="$old_CPPFLAGS"
5428CFLAGS="$old_CFLAGS"
5429fi
5430
5431
5432v="... $ac_cv_header_stdint_h"
5433if test "$ac_stdint_h" = "stdint.h" ; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
5435$as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
5436elif test "$ac_stdint_h" = "inttypes.h" ; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
5438$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
5439elif test "_$ac_cv_header_stdint_t" = "_" ; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
5441$as_echo "(putting them into $ac_stdint_h)$v" >&6; }
5442else
5443 ac_cv_header_stdint="$ac_cv_header_stdint_t"
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
5445$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
5446fi
5447
5448if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5449
5450
5451inttype_headers=`echo  | sed -e 's/,/ /g'`
5452
5453ac_cv_stdint_result="(no helpful system typedefs seen)"
5454
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
5456$as_echo_n "checking for stdint uintptr_t... " >&6; }
5457if ${ac_cv_header_stdint_x+:} false; then :
5458  $as_echo_n "(cached) " >&6
5459else
5460
5461 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5463$as_echo "(..)" >&6; }
5464  for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
5465   unset ac_cv_type_uintptr_t
5466   unset ac_cv_type_uint64_t
5467   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
5468"
5469if test "x$ac_cv_type_uintptr_t" = xyes; then :
5470  ac_cv_header_stdint_x=$i
5471else
5472  continue
5473fi
5474
5475   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
5476"
5477if test "x$ac_cv_type_uint64_t" = xyes; then :
5478  and64="/uint64_t"
5479else
5480  and64=""
5481fi
5482
5483   break;
5484  done
5485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
5486$as_echo_n "checking for stdint uintptr_t... " >&6; }
5487
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
5490$as_echo "$ac_cv_header_stdint_x" >&6; }
5491
5492
5493if test "_$ac_cv_header_stdint_x" = "_" ; then
5494
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
5496$as_echo_n "checking for stdint uint32_t... " >&6; }
5497if ${ac_cv_header_stdint_o+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500
5501 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5503$as_echo "(..)" >&6; }
5504  for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
5505   unset ac_cv_type_uint32_t
5506   unset ac_cv_type_uint64_t
5507   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
5508"
5509if test "x$ac_cv_type_uint32_t" = xyes; then :
5510  ac_cv_header_stdint_o=$i
5511else
5512  continue
5513fi
5514
5515   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
5516"
5517if test "x$ac_cv_type_uint64_t" = xyes; then :
5518  and64="/uint64_t"
5519else
5520  and64=""
5521fi
5522
5523   break;
5524  done
5525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
5526$as_echo_n "checking for stdint uint32_t... " >&6; }
5527
5528fi
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
5530$as_echo "$ac_cv_header_stdint_o" >&6; }
5531
5532fi
5533
5534if test "_$ac_cv_header_stdint_x" = "_" ; then
5535if test "_$ac_cv_header_stdint_o" = "_" ; then
5536
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
5538$as_echo_n "checking for stdint u_int32_t... " >&6; }
5539if ${ac_cv_header_stdint_u+:} false; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542
5543 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
5544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5545$as_echo "(..)" >&6; }
5546  for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
5547   unset ac_cv_type_u_int32_t
5548   unset ac_cv_type_u_int64_t
5549   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
5550"
5551if test "x$ac_cv_type_u_int32_t" = xyes; then :
5552  ac_cv_header_stdint_u=$i
5553else
5554  continue
5555fi
5556
5557   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
5558"
5559if test "x$ac_cv_type_u_int64_t" = xyes; then :
5560  and64="/u_int64_t"
5561else
5562  and64=""
5563fi
5564
5565   break;
5566  done
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
5568$as_echo_n "checking for stdint u_int32_t... " >&6; }
5569
5570fi
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
5572$as_echo "$ac_cv_header_stdint_u" >&6; }
5573
5574fi fi
5575
5576if test "_$ac_cv_header_stdint_x" = "_" ; then
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
5578$as_echo_n "checking for stdint datatype model... " >&6; }
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5580$as_echo "(..)" >&6; }
5581
5582   # The cast to long int works around a bug in the HP C Compiler
5583# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5584# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5585# This bug is HP SR number 8606223364.
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
5587$as_echo_n "checking size of char... " >&6; }
5588if ${ac_cv_sizeof_char+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
5592
5593else
5594  if test "$ac_cv_type_char" = yes; then
5595     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5597as_fn_error 77 "cannot compute sizeof (char)
5598See \`config.log' for more details" "$LINENO" 5; }
5599   else
5600     ac_cv_sizeof_char=0
5601   fi
5602fi
5603
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
5606$as_echo "$ac_cv_sizeof_char" >&6; }
5607
5608
5609
5610cat >>confdefs.h <<_ACEOF
5611#define SIZEOF_CHAR $ac_cv_sizeof_char
5612_ACEOF
5613
5614
5615   # The cast to long int works around a bug in the HP C Compiler
5616# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5617# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5618# This bug is HP SR number 8606223364.
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5620$as_echo_n "checking size of short... " >&6; }
5621if ${ac_cv_sizeof_short+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5625
5626else
5627  if test "$ac_cv_type_short" = yes; then
5628     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5630as_fn_error 77 "cannot compute sizeof (short)
5631See \`config.log' for more details" "$LINENO" 5; }
5632   else
5633     ac_cv_sizeof_short=0
5634   fi
5635fi
5636
5637fi
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5639$as_echo "$ac_cv_sizeof_short" >&6; }
5640
5641
5642
5643cat >>confdefs.h <<_ACEOF
5644#define SIZEOF_SHORT $ac_cv_sizeof_short
5645_ACEOF
5646
5647
5648   # The cast to long int works around a bug in the HP C Compiler
5649# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5650# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5651# This bug is HP SR number 8606223364.
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5653$as_echo_n "checking size of int... " >&6; }
5654if ${ac_cv_sizeof_int+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5658
5659else
5660  if test "$ac_cv_type_int" = yes; then
5661     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5663as_fn_error 77 "cannot compute sizeof (int)
5664See \`config.log' for more details" "$LINENO" 5; }
5665   else
5666     ac_cv_sizeof_int=0
5667   fi
5668fi
5669
5670fi
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5672$as_echo "$ac_cv_sizeof_int" >&6; }
5673
5674
5675
5676cat >>confdefs.h <<_ACEOF
5677#define SIZEOF_INT $ac_cv_sizeof_int
5678_ACEOF
5679
5680
5681   # The cast to long int works around a bug in the HP C Compiler
5682# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5683# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5684# This bug is HP SR number 8606223364.
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5686$as_echo_n "checking size of long... " >&6; }
5687if ${ac_cv_sizeof_long+:} false; then :
5688  $as_echo_n "(cached) " >&6
5689else
5690  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5691
5692else
5693  if test "$ac_cv_type_long" = yes; then
5694     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5696as_fn_error 77 "cannot compute sizeof (long)
5697See \`config.log' for more details" "$LINENO" 5; }
5698   else
5699     ac_cv_sizeof_long=0
5700   fi
5701fi
5702
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5705$as_echo "$ac_cv_sizeof_long" >&6; }
5706
5707
5708
5709cat >>confdefs.h <<_ACEOF
5710#define SIZEOF_LONG $ac_cv_sizeof_long
5711_ACEOF
5712
5713
5714   # The cast to long int works around a bug in the HP C Compiler
5715# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5716# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5717# This bug is HP SR number 8606223364.
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5719$as_echo_n "checking size of void*... " >&6; }
5720if ${ac_cv_sizeof_voidp+:} false; then :
5721  $as_echo_n "(cached) " >&6
5722else
5723  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
5724
5725else
5726  if test "$ac_cv_type_voidp" = yes; then
5727     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5729as_fn_error 77 "cannot compute sizeof (void*)
5730See \`config.log' for more details" "$LINENO" 5; }
5731   else
5732     ac_cv_sizeof_voidp=0
5733   fi
5734fi
5735
5736fi
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5738$as_echo "$ac_cv_sizeof_voidp" >&6; }
5739
5740
5741
5742cat >>confdefs.h <<_ACEOF
5743#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5744_ACEOF
5745
5746
5747   ac_cv_char_data_model=""
5748   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
5749   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
5750   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
5751   ac_cv_long_data_model=""
5752   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
5753   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
5754   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
5756$as_echo_n "checking data model... " >&6; }
5757   case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
5758    122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
5759    122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
5760    122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
5761    124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
5762    124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
5763    124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
5764    124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
5765    128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
5766    128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
5767    222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
5768    333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
5769    444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
5770    666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
5771    888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
5772    222/*|333/*|444/*|666/*|888/*) :
5773                 ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
5774     *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
5775   esac
5776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
5777$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
5778
5779fi
5780
5781if test "_$ac_cv_header_stdint_x" != "_" ; then
5782   ac_cv_header_stdint="$ac_cv_header_stdint_x"
5783elif  test "_$ac_cv_header_stdint_o" != "_" ; then
5784   ac_cv_header_stdint="$ac_cv_header_stdint_o"
5785elif  test "_$ac_cv_header_stdint_u" != "_" ; then
5786   ac_cv_header_stdint="$ac_cv_header_stdint_u"
5787else
5788   ac_cv_header_stdint="stddef.h"
5789fi
5790
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
5792$as_echo_n "checking for extra inttypes in chosen header... " >&6; }
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
5794$as_echo "($ac_cv_header_stdint)" >&6; }
5795unset ac_cv_type_int_least32_t
5796unset ac_cv_type_int_fast32_t
5797ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
5798"
5799if test "x$ac_cv_type_int_least32_t" = xyes; then :
5800
5801fi
5802
5803ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
5804"
5805if test "x$ac_cv_type_int_fast32_t" = xyes; then :
5806
5807fi
5808
5809ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
5810"
5811if test "x$ac_cv_type_intmax_t" = xyes; then :
5812
5813fi
5814
5815
5816fi # shortcircut to system "stdint.h"
5817# ------------------ PREPARE VARIABLES ------------------------------
5818#if test "$GCC" = "yes" ; then
5819#ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
5820#else
5821ac_cv_stdint_message="using $CC"
5822#fi
5823
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
5825$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
5826
5827# ----------------- DONE inttypes.h checks START header -------------
5828ac_config_commands="$ac_config_commands $ac_stdint_h"
5829
5830
5831
5832#
5833# Checks for library functions.
5834#
5835for ac_func in abort toascii vsnprintf
5836do :
5837  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5838ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5839if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5840  cat >>confdefs.h <<_ACEOF
5841#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5842_ACEOF
5843
5844fi
5845done
5846
5847for ac_func in strsep mergesort getcwd
5848do :
5849  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5850ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5851if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5852  cat >>confdefs.h <<_ACEOF
5853#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5854_ACEOF
5855
5856fi
5857done
5858
5859for ac_func in popen ftruncate
5860do :
5861  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5862ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5863if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5864  cat >>confdefs.h <<_ACEOF
5865#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5866_ACEOF
5867
5868fi
5869done
5870
5871# Look for the case-insensitive comparison functions
5872for ac_func in strcasecmp strncasecmp stricmp _stricmp strcmpi
5873do :
5874  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5875ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5876if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5877  cat >>confdefs.h <<_ACEOF
5878#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5879_ACEOF
5880
5881fi
5882done
5883
5884
5885#
5886# Check for gettext() and other i18n/l10n things.
5887#
5888ALL_LINGUAS=""
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5890$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5891if ${ac_cv_path_SED+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5895     for ac_i in 1 2 3 4 5 6 7; do
5896       ac_script="$ac_script$as_nl$ac_script"
5897     done
5898     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5899     { ac_script=; unset ac_script;}
5900     if test -z "$SED"; then
5901  ac_path_SED_found=false
5902  # Loop through the user's path and test for each of PROGNAME-LIST
5903  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906  IFS=$as_save_IFS
5907  test -z "$as_dir" && as_dir=.
5908    for ac_prog in sed gsed; do
5909    for ac_exec_ext in '' $ac_executable_extensions; do
5910      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5911      as_fn_executable_p "$ac_path_SED" || continue
5912# Check for GNU ac_path_SED and select it if it is found.
5913  # Check for GNU $ac_path_SED
5914case `"$ac_path_SED" --version 2>&1` in
5915*GNU*)
5916  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5917*)
5918  ac_count=0
5919  $as_echo_n 0123456789 >"conftest.in"
5920  while :
5921  do
5922    cat "conftest.in" "conftest.in" >"conftest.tmp"
5923    mv "conftest.tmp" "conftest.in"
5924    cp "conftest.in" "conftest.nl"
5925    $as_echo '' >> "conftest.nl"
5926    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5927    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5928    as_fn_arith $ac_count + 1 && ac_count=$as_val
5929    if test $ac_count -gt ${ac_path_SED_max-0}; then
5930      # Best one so far, save it but keep looking for a better one
5931      ac_cv_path_SED="$ac_path_SED"
5932      ac_path_SED_max=$ac_count
5933    fi
5934    # 10*(2^10) chars as input seems more than enough
5935    test $ac_count -gt 10 && break
5936  done
5937  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5938esac
5939
5940      $ac_path_SED_found && break 3
5941    done
5942  done
5943  done
5944IFS=$as_save_IFS
5945  if test -z "$ac_cv_path_SED"; then
5946    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5947  fi
5948else
5949  ac_cv_path_SED=$SED
5950fi
5951
5952fi
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5954$as_echo "$ac_cv_path_SED" >&6; }
5955 SED="$ac_cv_path_SED"
5956  rm -f conftest.sed
5957
5958
5959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5960$as_echo_n "checking whether NLS is requested... " >&6; }
5961    # Check whether --enable-nls was given.
5962if test "${enable_nls+set}" = set; then :
5963  enableval=$enable_nls; USE_NLS=$enableval
5964else
5965  USE_NLS=yes
5966fi
5967
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5969$as_echo "$USE_NLS" >&6; }
5970
5971
5972
5973
5974      GETTEXT_MACRO_VERSION=0.18
5975
5976
5977
5978
5979# Prepare PATH_SEPARATOR.
5980# The user is always right.
5981if test "${PATH_SEPARATOR+set}" != set; then
5982  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5983  # contains only /bin. Note that ksh looks also at the FPATH variable,
5984  # so we have to set that as well for the test.
5985  PATH_SEPARATOR=:
5986  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5987    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5988           || PATH_SEPARATOR=';'
5989       }
5990fi
5991
5992# Find out how to test for executable files. Don't use a zero-byte file,
5993# as systems may use methods other than mode bits to determine executability.
5994cat >conf$$.file <<_ASEOF
5995#! /bin/sh
5996exit 0
5997_ASEOF
5998chmod +x conf$$.file
5999if test -x conf$$.file >/dev/null 2>&1; then
6000  ac_executable_p="test -x"
6001else
6002  ac_executable_p="test -f"
6003fi
6004rm -f conf$$.file
6005
6006# Extract the first word of "msgfmt", so it can be a program name with args.
6007set dummy msgfmt; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
6010if ${ac_cv_path_MSGFMT+:} false; then :
6011  $as_echo_n "(cached) " >&6
6012else
6013  case "$MSGFMT" in
6014  [\\/]* | ?:[\\/]*)
6015    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6016    ;;
6017  *)
6018    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6019    for ac_dir in $PATH; do
6020      IFS="$ac_save_IFS"
6021      test -z "$ac_dir" && ac_dir=.
6022      for ac_exec_ext in '' $ac_executable_extensions; do
6023        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6024          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6025          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6026     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6027            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6028            break 2
6029          fi
6030        fi
6031      done
6032    done
6033    IFS="$ac_save_IFS"
6034  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6035    ;;
6036esac
6037fi
6038MSGFMT="$ac_cv_path_MSGFMT"
6039if test "$MSGFMT" != ":"; then
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6041$as_echo "$MSGFMT" >&6; }
6042else
6043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044$as_echo "no" >&6; }
6045fi
6046
6047  # Extract the first word of "gmsgfmt", so it can be a program name with args.
6048set dummy gmsgfmt; ac_word=$2
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
6051if ${ac_cv_path_GMSGFMT+:} false; then :
6052  $as_echo_n "(cached) " >&6
6053else
6054  case $GMSGFMT in
6055  [\\/]* | ?:[\\/]*)
6056  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6057  ;;
6058  *)
6059  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064    for ac_exec_ext in '' $ac_executable_extensions; do
6065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071  done
6072IFS=$as_save_IFS
6073
6074  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6075  ;;
6076esac
6077fi
6078GMSGFMT=$ac_cv_path_GMSGFMT
6079if test -n "$GMSGFMT"; then
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6081$as_echo "$GMSGFMT" >&6; }
6082else
6083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087
6088
6089    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6090    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6091    *) MSGFMT_015=$MSGFMT ;;
6092  esac
6093
6094  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6095    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6096    *) GMSGFMT_015=$GMSGFMT ;;
6097  esac
6098
6099
6100
6101# Prepare PATH_SEPARATOR.
6102# The user is always right.
6103if test "${PATH_SEPARATOR+set}" != set; then
6104  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6105  # contains only /bin. Note that ksh looks also at the FPATH variable,
6106  # so we have to set that as well for the test.
6107  PATH_SEPARATOR=:
6108  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6109    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6110           || PATH_SEPARATOR=';'
6111       }
6112fi
6113
6114# Find out how to test for executable files. Don't use a zero-byte file,
6115# as systems may use methods other than mode bits to determine executability.
6116cat >conf$$.file <<_ASEOF
6117#! /bin/sh
6118exit 0
6119_ASEOF
6120chmod +x conf$$.file
6121if test -x conf$$.file >/dev/null 2>&1; then
6122  ac_executable_p="test -x"
6123else
6124  ac_executable_p="test -f"
6125fi
6126rm -f conf$$.file
6127
6128# Extract the first word of "xgettext", so it can be a program name with args.
6129set dummy xgettext; ac_word=$2
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131$as_echo_n "checking for $ac_word... " >&6; }
6132if ${ac_cv_path_XGETTEXT+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  case "$XGETTEXT" in
6136  [\\/]* | ?:[\\/]*)
6137    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6138    ;;
6139  *)
6140    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6141    for ac_dir in $PATH; do
6142      IFS="$ac_save_IFS"
6143      test -z "$ac_dir" && ac_dir=.
6144      for ac_exec_ext in '' $ac_executable_extensions; do
6145        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6146          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6147          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6148     (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
6149            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6150            break 2
6151          fi
6152        fi
6153      done
6154    done
6155    IFS="$ac_save_IFS"
6156  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6157    ;;
6158esac
6159fi
6160XGETTEXT="$ac_cv_path_XGETTEXT"
6161if test "$XGETTEXT" != ":"; then
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6163$as_echo "$XGETTEXT" >&6; }
6164else
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
6168
6169    rm -f messages.po
6170
6171    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6172    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6173    *) XGETTEXT_015=$XGETTEXT ;;
6174  esac
6175
6176
6177
6178# Prepare PATH_SEPARATOR.
6179# The user is always right.
6180if test "${PATH_SEPARATOR+set}" != set; then
6181  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6182  # contains only /bin. Note that ksh looks also at the FPATH variable,
6183  # so we have to set that as well for the test.
6184  PATH_SEPARATOR=:
6185  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6186    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6187           || PATH_SEPARATOR=';'
6188       }
6189fi
6190
6191# Find out how to test for executable files. Don't use a zero-byte file,
6192# as systems may use methods other than mode bits to determine executability.
6193cat >conf$$.file <<_ASEOF
6194#! /bin/sh
6195exit 0
6196_ASEOF
6197chmod +x conf$$.file
6198if test -x conf$$.file >/dev/null 2>&1; then
6199  ac_executable_p="test -x"
6200else
6201  ac_executable_p="test -f"
6202fi
6203rm -f conf$$.file
6204
6205# Extract the first word of "msgmerge", so it can be a program name with args.
6206set dummy msgmerge; ac_word=$2
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208$as_echo_n "checking for $ac_word... " >&6; }
6209if ${ac_cv_path_MSGMERGE+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  case "$MSGMERGE" in
6213  [\\/]* | ?:[\\/]*)
6214    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6215    ;;
6216  *)
6217    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6218    for ac_dir in $PATH; do
6219      IFS="$ac_save_IFS"
6220      test -z "$ac_dir" && ac_dir=.
6221      for ac_exec_ext in '' $ac_executable_extensions; do
6222        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6223          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6224          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6225            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6226            break 2
6227          fi
6228        fi
6229      done
6230    done
6231    IFS="$ac_save_IFS"
6232  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6233    ;;
6234esac
6235fi
6236MSGMERGE="$ac_cv_path_MSGMERGE"
6237if test "$MSGMERGE" != ":"; then
6238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6239$as_echo "$MSGMERGE" >&6; }
6240else
6241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
6243fi
6244
6245
6246        test -n "$localedir" || localedir='${datadir}/locale'
6247
6248
6249    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6250
6251
6252  ac_config_commands="$ac_config_commands po-directories"
6253
6254
6255
6256      if test "X$prefix" = "XNONE"; then
6257    acl_final_prefix="$ac_default_prefix"
6258  else
6259    acl_final_prefix="$prefix"
6260  fi
6261  if test "X$exec_prefix" = "XNONE"; then
6262    acl_final_exec_prefix='${prefix}'
6263  else
6264    acl_final_exec_prefix="$exec_prefix"
6265  fi
6266  acl_save_prefix="$prefix"
6267  prefix="$acl_final_prefix"
6268  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6269  prefix="$acl_save_prefix"
6270
6271# Make sure we can run config.sub.
6272$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6273  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6274
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6276$as_echo_n "checking build system type... " >&6; }
6277if ${ac_cv_build+:} false; then :
6278  $as_echo_n "(cached) " >&6
6279else
6280  ac_build_alias=$build_alias
6281test "x$ac_build_alias" = x &&
6282  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6283test "x$ac_build_alias" = x &&
6284  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6285ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6286  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6287
6288fi
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6290$as_echo "$ac_cv_build" >&6; }
6291case $ac_cv_build in
6292*-*-*) ;;
6293*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6294esac
6295build=$ac_cv_build
6296ac_save_IFS=$IFS; IFS='-'
6297set x $ac_cv_build
6298shift
6299build_cpu=$1
6300build_vendor=$2
6301shift; shift
6302# Remember, the first character of IFS is used to create $*,
6303# except with old shells:
6304build_os=$*
6305IFS=$ac_save_IFS
6306case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6307
6308
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6310$as_echo_n "checking host system type... " >&6; }
6311if ${ac_cv_host+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  if test "x$host_alias" = x; then
6315  ac_cv_host=$ac_cv_build
6316else
6317  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6318    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6319fi
6320
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6323$as_echo "$ac_cv_host" >&6; }
6324case $ac_cv_host in
6325*-*-*) ;;
6326*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6327esac
6328host=$ac_cv_host
6329ac_save_IFS=$IFS; IFS='-'
6330set x $ac_cv_host
6331shift
6332host_cpu=$1
6333host_vendor=$2
6334shift; shift
6335# Remember, the first character of IFS is used to create $*,
6336# except with old shells:
6337host_os=$*
6338IFS=$ac_save_IFS
6339case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6340
6341
6342
6343
6344# Check whether --with-gnu-ld was given.
6345if test "${with_gnu_ld+set}" = set; then :
6346  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6347else
6348  with_gnu_ld=no
6349fi
6350
6351# Prepare PATH_SEPARATOR.
6352# The user is always right.
6353if test "${PATH_SEPARATOR+set}" != set; then
6354  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6355  # contains only /bin. Note that ksh looks also at the FPATH variable,
6356  # so we have to set that as well for the test.
6357  PATH_SEPARATOR=:
6358  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6359    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6360           || PATH_SEPARATOR=';'
6361       }
6362fi
6363
6364ac_prog=ld
6365if test "$GCC" = yes; then
6366  # Check if gcc -print-prog-name=ld gives a path.
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6368$as_echo_n "checking for ld used by $CC... " >&6; }
6369  case $host in
6370  *-*-mingw*)
6371    # gcc leaves a trailing carriage return which upsets mingw
6372    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6373  *)
6374    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6375  esac
6376  case $ac_prog in
6377    # Accept absolute paths.
6378    [\\/]* | ?:[\\/]*)
6379      re_direlt='/[^/][^/]*/\.\./'
6380      # Canonicalize the pathname of ld
6381      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
6382      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
6383        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6384      done
6385      test -z "$LD" && LD="$ac_prog"
6386      ;;
6387  "")
6388    # If it fails, then pretend we aren't using GCC.
6389    ac_prog=ld
6390    ;;
6391  *)
6392    # If it is relative, then search for the first ld in PATH.
6393    with_gnu_ld=unknown
6394    ;;
6395  esac
6396elif test "$with_gnu_ld" = yes; then
6397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6398$as_echo_n "checking for GNU ld... " >&6; }
6399else
6400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6401$as_echo_n "checking for non-GNU ld... " >&6; }
6402fi
6403if ${acl_cv_path_LD+:} false; then :
6404  $as_echo_n "(cached) " >&6
6405else
6406  if test -z "$LD"; then
6407  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6408  for ac_dir in $PATH; do
6409    IFS="$acl_save_ifs"
6410    test -z "$ac_dir" && ac_dir=.
6411    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6412      acl_cv_path_LD="$ac_dir/$ac_prog"
6413      # Check to see if the program is GNU ld.  I'd rather use --version,
6414      # but apparently some variants of GNU ld only accept -v.
6415      # Break only if it was the GNU/non-GNU ld that we prefer.
6416      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
6417      *GNU* | *'with BFD'*)
6418        test "$with_gnu_ld" != no && break
6419        ;;
6420      *)
6421        test "$with_gnu_ld" != yes && break
6422        ;;
6423      esac
6424    fi
6425  done
6426  IFS="$acl_save_ifs"
6427else
6428  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6429fi
6430fi
6431
6432LD="$acl_cv_path_LD"
6433if test -n "$LD"; then
6434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6435$as_echo "$LD" >&6; }
6436else
6437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438$as_echo "no" >&6; }
6439fi
6440test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6442$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6443if ${acl_cv_prog_gnu_ld+:} false; then :
6444  $as_echo_n "(cached) " >&6
6445else
6446  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6447case `$LD -v 2>&1 </dev/null` in
6448*GNU* | *'with BFD'*)
6449  acl_cv_prog_gnu_ld=yes
6450  ;;
6451*)
6452  acl_cv_prog_gnu_ld=no
6453  ;;
6454esac
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6457$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6458with_gnu_ld=$acl_cv_prog_gnu_ld
6459
6460
6461
6462
6463                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6464$as_echo_n "checking for shared library run path origin... " >&6; }
6465if ${acl_cv_rpath+:} false; then :
6466  $as_echo_n "(cached) " >&6
6467else
6468
6469    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6470    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6471    . ./conftest.sh
6472    rm -f ./conftest.sh
6473    acl_cv_rpath=done
6474
6475fi
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6477$as_echo "$acl_cv_rpath" >&6; }
6478  wl="$acl_cv_wl"
6479  acl_libext="$acl_cv_libext"
6480  acl_shlibext="$acl_cv_shlibext"
6481  acl_libname_spec="$acl_cv_libname_spec"
6482  acl_library_names_spec="$acl_cv_library_names_spec"
6483  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6484  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6485  acl_hardcode_direct="$acl_cv_hardcode_direct"
6486  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6487    # Check whether --enable-rpath was given.
6488if test "${enable_rpath+set}" = set; then :
6489  enableval=$enable_rpath; :
6490else
6491  enable_rpath=yes
6492fi
6493
6494
6495
6496
6497  acl_libdirstem=lib
6498  acl_libdirstem2=
6499  case "$host_os" in
6500    solaris*)
6501                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6502$as_echo_n "checking for 64-bit host... " >&6; }
6503if ${gl_cv_solaris_64bit+:} false; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507/* end confdefs.h.  */
6508
6509#ifdef _LP64
6510sixtyfour bits
6511#endif
6512
6513_ACEOF
6514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6516  gl_cv_solaris_64bit=yes
6517else
6518  gl_cv_solaris_64bit=no
6519fi
6520rm -f conftest*
6521
6522
6523fi
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6525$as_echo "$gl_cv_solaris_64bit" >&6; }
6526      if test $gl_cv_solaris_64bit = yes; then
6527        acl_libdirstem=lib/64
6528        case "$host_cpu" in
6529          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6530          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6531        esac
6532      fi
6533      ;;
6534    *)
6535      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6536      if test -n "$searchpath"; then
6537        acl_save_IFS="${IFS= 	}"; IFS=":"
6538        for searchdir in $searchpath; do
6539          if test -d "$searchdir"; then
6540            case "$searchdir" in
6541              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6542              */../ | */.. )
6543                # Better ignore directories of this form. They are misleading.
6544                ;;
6545              *) searchdir=`cd "$searchdir" && pwd`
6546                 case "$searchdir" in
6547                   */lib64 ) acl_libdirstem=lib64 ;;
6548                 esac ;;
6549            esac
6550          fi
6551        done
6552        IFS="$acl_save_IFS"
6553      fi
6554      ;;
6555  esac
6556  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569    use_additional=yes
6570
6571  acl_save_prefix="$prefix"
6572  prefix="$acl_final_prefix"
6573  acl_save_exec_prefix="$exec_prefix"
6574  exec_prefix="$acl_final_exec_prefix"
6575
6576    eval additional_includedir=\"$includedir\"
6577    eval additional_libdir=\"$libdir\"
6578
6579  exec_prefix="$acl_save_exec_prefix"
6580  prefix="$acl_save_prefix"
6581
6582
6583# Check whether --with-libiconv-prefix was given.
6584if test "${with_libiconv_prefix+set}" = set; then :
6585  withval=$with_libiconv_prefix;
6586    if test "X$withval" = "Xno"; then
6587      use_additional=no
6588    else
6589      if test "X$withval" = "X"; then
6590
6591  acl_save_prefix="$prefix"
6592  prefix="$acl_final_prefix"
6593  acl_save_exec_prefix="$exec_prefix"
6594  exec_prefix="$acl_final_exec_prefix"
6595
6596          eval additional_includedir=\"$includedir\"
6597          eval additional_libdir=\"$libdir\"
6598
6599  exec_prefix="$acl_save_exec_prefix"
6600  prefix="$acl_save_prefix"
6601
6602      else
6603        additional_includedir="$withval/include"
6604        additional_libdir="$withval/$acl_libdirstem"
6605        if test "$acl_libdirstem2" != "$acl_libdirstem" \
6606           && ! test -d "$withval/$acl_libdirstem"; then
6607          additional_libdir="$withval/$acl_libdirstem2"
6608        fi
6609      fi
6610    fi
6611
6612fi
6613
6614      LIBICONV=
6615  LTLIBICONV=
6616  INCICONV=
6617  LIBICONV_PREFIX=
6618      HAVE_LIBICONV=
6619  rpathdirs=
6620  ltrpathdirs=
6621  names_already_handled=
6622  names_next_round='iconv '
6623  while test -n "$names_next_round"; do
6624    names_this_round="$names_next_round"
6625    names_next_round=
6626    for name in $names_this_round; do
6627      already_handled=
6628      for n in $names_already_handled; do
6629        if test "$n" = "$name"; then
6630          already_handled=yes
6631          break
6632        fi
6633      done
6634      if test -z "$already_handled"; then
6635        names_already_handled="$names_already_handled $name"
6636                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6637        eval value=\"\$HAVE_LIB$uppername\"
6638        if test -n "$value"; then
6639          if test "$value" = yes; then
6640            eval value=\"\$LIB$uppername\"
6641            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6642            eval value=\"\$LTLIB$uppername\"
6643            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6644          else
6645                                    :
6646          fi
6647        else
6648                              found_dir=
6649          found_la=
6650          found_so=
6651          found_a=
6652          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6653          if test -n "$acl_shlibext"; then
6654            shrext=".$acl_shlibext"             # typically: shrext=.so
6655          else
6656            shrext=
6657          fi
6658          if test $use_additional = yes; then
6659            dir="$additional_libdir"
6660                                    if test -n "$acl_shlibext"; then
6661              if test -f "$dir/$libname$shrext"; then
6662                found_dir="$dir"
6663                found_so="$dir/$libname$shrext"
6664              else
6665                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6666                  ver=`(cd "$dir" && \
6667                        for f in "$libname$shrext".*; do echo "$f"; done \
6668                        | sed -e "s,^$libname$shrext\\\\.,," \
6669                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6670                        | sed 1q ) 2>/dev/null`
6671                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6672                    found_dir="$dir"
6673                    found_so="$dir/$libname$shrext.$ver"
6674                  fi
6675                else
6676                  eval library_names=\"$acl_library_names_spec\"
6677                  for f in $library_names; do
6678                    if test -f "$dir/$f"; then
6679                      found_dir="$dir"
6680                      found_so="$dir/$f"
6681                      break
6682                    fi
6683                  done
6684                fi
6685              fi
6686            fi
6687                        if test "X$found_dir" = "X"; then
6688              if test -f "$dir/$libname.$acl_libext"; then
6689                found_dir="$dir"
6690                found_a="$dir/$libname.$acl_libext"
6691              fi
6692            fi
6693            if test "X$found_dir" != "X"; then
6694              if test -f "$dir/$libname.la"; then
6695                found_la="$dir/$libname.la"
6696              fi
6697            fi
6698          fi
6699          if test "X$found_dir" = "X"; then
6700            for x in $LDFLAGS $LTLIBICONV; do
6701
6702  acl_save_prefix="$prefix"
6703  prefix="$acl_final_prefix"
6704  acl_save_exec_prefix="$exec_prefix"
6705  exec_prefix="$acl_final_exec_prefix"
6706  eval x=\"$x\"
6707  exec_prefix="$acl_save_exec_prefix"
6708  prefix="$acl_save_prefix"
6709
6710              case "$x" in
6711                -L*)
6712                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6713                                    if test -n "$acl_shlibext"; then
6714                    if test -f "$dir/$libname$shrext"; then
6715                      found_dir="$dir"
6716                      found_so="$dir/$libname$shrext"
6717                    else
6718                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6719                        ver=`(cd "$dir" && \
6720                              for f in "$libname$shrext".*; do echo "$f"; done \
6721                              | sed -e "s,^$libname$shrext\\\\.,," \
6722                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6723                              | sed 1q ) 2>/dev/null`
6724                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6725                          found_dir="$dir"
6726                          found_so="$dir/$libname$shrext.$ver"
6727                        fi
6728                      else
6729                        eval library_names=\"$acl_library_names_spec\"
6730                        for f in $library_names; do
6731                          if test -f "$dir/$f"; then
6732                            found_dir="$dir"
6733                            found_so="$dir/$f"
6734                            break
6735                          fi
6736                        done
6737                      fi
6738                    fi
6739                  fi
6740                                    if test "X$found_dir" = "X"; then
6741                    if test -f "$dir/$libname.$acl_libext"; then
6742                      found_dir="$dir"
6743                      found_a="$dir/$libname.$acl_libext"
6744                    fi
6745                  fi
6746                  if test "X$found_dir" != "X"; then
6747                    if test -f "$dir/$libname.la"; then
6748                      found_la="$dir/$libname.la"
6749                    fi
6750                  fi
6751                  ;;
6752              esac
6753              if test "X$found_dir" != "X"; then
6754                break
6755              fi
6756            done
6757          fi
6758          if test "X$found_dir" != "X"; then
6759                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6760            if test "X$found_so" != "X"; then
6761                                                        if test "$enable_rpath" = no \
6762                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6763                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6764                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6765              else
6766                                                                                haveit=
6767                for x in $ltrpathdirs; do
6768                  if test "X$x" = "X$found_dir"; then
6769                    haveit=yes
6770                    break
6771                  fi
6772                done
6773                if test -z "$haveit"; then
6774                  ltrpathdirs="$ltrpathdirs $found_dir"
6775                fi
6776                                if test "$acl_hardcode_direct" = yes; then
6777                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6778                else
6779                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6780                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6781                                                            haveit=
6782                    for x in $rpathdirs; do
6783                      if test "X$x" = "X$found_dir"; then
6784                        haveit=yes
6785                        break
6786                      fi
6787                    done
6788                    if test -z "$haveit"; then
6789                      rpathdirs="$rpathdirs $found_dir"
6790                    fi
6791                  else
6792                                                                                haveit=
6793                    for x in $LDFLAGS $LIBICONV; do
6794
6795  acl_save_prefix="$prefix"
6796  prefix="$acl_final_prefix"
6797  acl_save_exec_prefix="$exec_prefix"
6798  exec_prefix="$acl_final_exec_prefix"
6799  eval x=\"$x\"
6800  exec_prefix="$acl_save_exec_prefix"
6801  prefix="$acl_save_prefix"
6802
6803                      if test "X$x" = "X-L$found_dir"; then
6804                        haveit=yes
6805                        break
6806                      fi
6807                    done
6808                    if test -z "$haveit"; then
6809                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6810                    fi
6811                    if test "$acl_hardcode_minus_L" != no; then
6812                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6813                    else
6814                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6815                    fi
6816                  fi
6817                fi
6818              fi
6819            else
6820              if test "X$found_a" != "X"; then
6821                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6822              else
6823                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6824              fi
6825            fi
6826                        additional_includedir=
6827            case "$found_dir" in
6828              */$acl_libdirstem | */$acl_libdirstem/)
6829                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6830                if test "$name" = 'iconv'; then
6831                  LIBICONV_PREFIX="$basedir"
6832                fi
6833                additional_includedir="$basedir/include"
6834                ;;
6835              */$acl_libdirstem2 | */$acl_libdirstem2/)
6836                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6837                if test "$name" = 'iconv'; then
6838                  LIBICONV_PREFIX="$basedir"
6839                fi
6840                additional_includedir="$basedir/include"
6841                ;;
6842            esac
6843            if test "X$additional_includedir" != "X"; then
6844                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6845                haveit=
6846                if test "X$additional_includedir" = "X/usr/local/include"; then
6847                  if test -n "$GCC"; then
6848                    case $host_os in
6849                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6850                    esac
6851                  fi
6852                fi
6853                if test -z "$haveit"; then
6854                  for x in $CPPFLAGS $INCICONV; do
6855
6856  acl_save_prefix="$prefix"
6857  prefix="$acl_final_prefix"
6858  acl_save_exec_prefix="$exec_prefix"
6859  exec_prefix="$acl_final_exec_prefix"
6860  eval x=\"$x\"
6861  exec_prefix="$acl_save_exec_prefix"
6862  prefix="$acl_save_prefix"
6863
6864                    if test "X$x" = "X-I$additional_includedir"; then
6865                      haveit=yes
6866                      break
6867                    fi
6868                  done
6869                  if test -z "$haveit"; then
6870                    if test -d "$additional_includedir"; then
6871                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6872                    fi
6873                  fi
6874                fi
6875              fi
6876            fi
6877                        if test -n "$found_la"; then
6878                                                        save_libdir="$libdir"
6879              case "$found_la" in
6880                */* | *\\*) . "$found_la" ;;
6881                *) . "./$found_la" ;;
6882              esac
6883              libdir="$save_libdir"
6884                            for dep in $dependency_libs; do
6885                case "$dep" in
6886                  -L*)
6887                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6888                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6889                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6890                      haveit=
6891                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6892                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6893                        if test -n "$GCC"; then
6894                          case $host_os in
6895                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6896                          esac
6897                        fi
6898                      fi
6899                      if test -z "$haveit"; then
6900                        haveit=
6901                        for x in $LDFLAGS $LIBICONV; do
6902
6903  acl_save_prefix="$prefix"
6904  prefix="$acl_final_prefix"
6905  acl_save_exec_prefix="$exec_prefix"
6906  exec_prefix="$acl_final_exec_prefix"
6907  eval x=\"$x\"
6908  exec_prefix="$acl_save_exec_prefix"
6909  prefix="$acl_save_prefix"
6910
6911                          if test "X$x" = "X-L$additional_libdir"; then
6912                            haveit=yes
6913                            break
6914                          fi
6915                        done
6916                        if test -z "$haveit"; then
6917                          if test -d "$additional_libdir"; then
6918                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6919                          fi
6920                        fi
6921                        haveit=
6922                        for x in $LDFLAGS $LTLIBICONV; do
6923
6924  acl_save_prefix="$prefix"
6925  prefix="$acl_final_prefix"
6926  acl_save_exec_prefix="$exec_prefix"
6927  exec_prefix="$acl_final_exec_prefix"
6928  eval x=\"$x\"
6929  exec_prefix="$acl_save_exec_prefix"
6930  prefix="$acl_save_prefix"
6931
6932                          if test "X$x" = "X-L$additional_libdir"; then
6933                            haveit=yes
6934                            break
6935                          fi
6936                        done
6937                        if test -z "$haveit"; then
6938                          if test -d "$additional_libdir"; then
6939                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6940                          fi
6941                        fi
6942                      fi
6943                    fi
6944                    ;;
6945                  -R*)
6946                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6947                    if test "$enable_rpath" != no; then
6948                                                                  haveit=
6949                      for x in $rpathdirs; do
6950                        if test "X$x" = "X$dir"; then
6951                          haveit=yes
6952                          break
6953                        fi
6954                      done
6955                      if test -z "$haveit"; then
6956                        rpathdirs="$rpathdirs $dir"
6957                      fi
6958                                                                  haveit=
6959                      for x in $ltrpathdirs; do
6960                        if test "X$x" = "X$dir"; then
6961                          haveit=yes
6962                          break
6963                        fi
6964                      done
6965                      if test -z "$haveit"; then
6966                        ltrpathdirs="$ltrpathdirs $dir"
6967                      fi
6968                    fi
6969                    ;;
6970                  -l*)
6971                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6972                    ;;
6973                  *.la)
6974                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6975                    ;;
6976                  *)
6977                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6978                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6979                    ;;
6980                esac
6981              done
6982            fi
6983          else
6984                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6985            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6986          fi
6987        fi
6988      fi
6989    done
6990  done
6991  if test "X$rpathdirs" != "X"; then
6992    if test -n "$acl_hardcode_libdir_separator"; then
6993                        alldirs=
6994      for found_dir in $rpathdirs; do
6995        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6996      done
6997            acl_save_libdir="$libdir"
6998      libdir="$alldirs"
6999      eval flag=\"$acl_hardcode_libdir_flag_spec\"
7000      libdir="$acl_save_libdir"
7001      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7002    else
7003            for found_dir in $rpathdirs; do
7004        acl_save_libdir="$libdir"
7005        libdir="$found_dir"
7006        eval flag=\"$acl_hardcode_libdir_flag_spec\"
7007        libdir="$acl_save_libdir"
7008        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7009      done
7010    fi
7011  fi
7012  if test "X$ltrpathdirs" != "X"; then
7013            for found_dir in $ltrpathdirs; do
7014      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7015    done
7016  fi
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7049$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7050if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  gt_save_LIBS="$LIBS"
7054     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056/* end confdefs.h.  */
7057#include <CoreFoundation/CFPreferences.h>
7058int
7059main ()
7060{
7061CFPreferencesCopyAppValue(NULL, NULL)
7062  ;
7063  return 0;
7064}
7065_ACEOF
7066if ac_fn_c_try_link "$LINENO"; then :
7067  gt_cv_func_CFPreferencesCopyAppValue=yes
7068else
7069  gt_cv_func_CFPreferencesCopyAppValue=no
7070fi
7071rm -f core conftest.err conftest.$ac_objext \
7072    conftest$ac_exeext conftest.$ac_ext
7073     LIBS="$gt_save_LIBS"
7074fi
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7076$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7077  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7078
7079$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7080
7081  fi
7082    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7083$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7084if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7085  $as_echo_n "(cached) " >&6
7086else
7087  gt_save_LIBS="$LIBS"
7088     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7089     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090/* end confdefs.h.  */
7091#include <CoreFoundation/CFLocale.h>
7092int
7093main ()
7094{
7095CFLocaleCopyCurrent();
7096  ;
7097  return 0;
7098}
7099_ACEOF
7100if ac_fn_c_try_link "$LINENO"; then :
7101  gt_cv_func_CFLocaleCopyCurrent=yes
7102else
7103  gt_cv_func_CFLocaleCopyCurrent=no
7104fi
7105rm -f core conftest.err conftest.$ac_objext \
7106    conftest$ac_exeext conftest.$ac_ext
7107     LIBS="$gt_save_LIBS"
7108fi
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7110$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7111  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7112
7113$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7114
7115  fi
7116  INTL_MACOSX_LIBS=
7117  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7118    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7119  fi
7120
7121
7122
7123
7124
7125
7126  LIBINTL=
7127  LTLIBINTL=
7128  POSUB=
7129
7130    case " $gt_needs " in
7131    *" need-formatstring-macros "*) gt_api_version=3 ;;
7132    *" need-ngettext "*) gt_api_version=2 ;;
7133    *) gt_api_version=1 ;;
7134  esac
7135  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7136  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7137
7138    if test "$USE_NLS" = "yes"; then
7139    gt_use_preinstalled_gnugettext=no
7140
7141
7142        if test $gt_api_version -ge 3; then
7143          gt_revision_test_code='
7144#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7145#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7146#endif
7147typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7148'
7149        else
7150          gt_revision_test_code=
7151        fi
7152        if test $gt_api_version -ge 2; then
7153          gt_expression_test_code=' + * ngettext ("", "", 0)'
7154        else
7155          gt_expression_test_code=
7156        fi
7157
7158        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7159$as_echo_n "checking for GNU gettext in libc... " >&6; }
7160if eval \${$gt_func_gnugettext_libc+:} false; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165
7166#include <libintl.h>
7167$gt_revision_test_code
7168extern int _nl_msg_cat_cntr;
7169extern int *_nl_domain_bindings;
7170
7171int
7172main ()
7173{
7174
7175bindtextdomain ("", "");
7176return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7177
7178  ;
7179  return 0;
7180}
7181_ACEOF
7182if ac_fn_c_try_link "$LINENO"; then :
7183  eval "$gt_func_gnugettext_libc=yes"
7184else
7185  eval "$gt_func_gnugettext_libc=no"
7186fi
7187rm -f core conftest.err conftest.$ac_objext \
7188    conftest$ac_exeext conftest.$ac_ext
7189fi
7190eval ac_res=\$$gt_func_gnugettext_libc
7191	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7192$as_echo "$ac_res" >&6; }
7193
7194        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7195
7196
7197
7198
7199
7200          am_save_CPPFLAGS="$CPPFLAGS"
7201
7202  for element in $INCICONV; do
7203    haveit=
7204    for x in $CPPFLAGS; do
7205
7206  acl_save_prefix="$prefix"
7207  prefix="$acl_final_prefix"
7208  acl_save_exec_prefix="$exec_prefix"
7209  exec_prefix="$acl_final_exec_prefix"
7210  eval x=\"$x\"
7211  exec_prefix="$acl_save_exec_prefix"
7212  prefix="$acl_save_prefix"
7213
7214      if test "X$x" = "X$element"; then
7215        haveit=yes
7216        break
7217      fi
7218    done
7219    if test -z "$haveit"; then
7220      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7221    fi
7222  done
7223
7224
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7226$as_echo_n "checking for iconv... " >&6; }
7227if ${am_cv_func_iconv+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230
7231    am_cv_func_iconv="no, consider installing GNU libiconv"
7232    am_cv_lib_iconv=no
7233    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h.  */
7235
7236#include <stdlib.h>
7237#include <iconv.h>
7238
7239int
7240main ()
7241{
7242iconv_t cd = iconv_open("","");
7243           iconv(cd,NULL,NULL,NULL,NULL);
7244           iconv_close(cd);
7245  ;
7246  return 0;
7247}
7248_ACEOF
7249if ac_fn_c_try_link "$LINENO"; then :
7250  am_cv_func_iconv=yes
7251fi
7252rm -f core conftest.err conftest.$ac_objext \
7253    conftest$ac_exeext conftest.$ac_ext
7254    if test "$am_cv_func_iconv" != yes; then
7255      am_save_LIBS="$LIBS"
7256      LIBS="$LIBS $LIBICONV"
7257      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h.  */
7259
7260#include <stdlib.h>
7261#include <iconv.h>
7262
7263int
7264main ()
7265{
7266iconv_t cd = iconv_open("","");
7267             iconv(cd,NULL,NULL,NULL,NULL);
7268             iconv_close(cd);
7269  ;
7270  return 0;
7271}
7272_ACEOF
7273if ac_fn_c_try_link "$LINENO"; then :
7274  am_cv_lib_iconv=yes
7275        am_cv_func_iconv=yes
7276fi
7277rm -f core conftest.err conftest.$ac_objext \
7278    conftest$ac_exeext conftest.$ac_ext
7279      LIBS="$am_save_LIBS"
7280    fi
7281
7282fi
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7284$as_echo "$am_cv_func_iconv" >&6; }
7285  if test "$am_cv_func_iconv" = yes; then
7286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7287$as_echo_n "checking for working iconv... " >&6; }
7288if ${am_cv_func_iconv_works+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291
7292                  am_save_LIBS="$LIBS"
7293      if test $am_cv_lib_iconv = yes; then
7294        LIBS="$LIBS $LIBICONV"
7295      fi
7296      if test "$cross_compiling" = yes; then :
7297
7298         case "$host_os" in
7299           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7300           *)            am_cv_func_iconv_works="guessing yes" ;;
7301         esac
7302
7303else
7304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305/* end confdefs.h.  */
7306
7307#include <iconv.h>
7308#include <string.h>
7309int main ()
7310{
7311  int result = 0;
7312  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7313     returns.  */
7314  {
7315    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7316    if (cd_utf8_to_88591 != (iconv_t)(-1))
7317      {
7318        static const char input[] = "\342\202\254"; /* EURO SIGN */
7319        char buf[10];
7320        const char *inptr = input;
7321        size_t inbytesleft = strlen (input);
7322        char *outptr = buf;
7323        size_t outbytesleft = sizeof (buf);
7324        size_t res = iconv (cd_utf8_to_88591,
7325                            (char **) &inptr, &inbytesleft,
7326                            &outptr, &outbytesleft);
7327        if (res == 0)
7328          result |= 1;
7329        iconv_close (cd_utf8_to_88591);
7330      }
7331  }
7332  /* Test against Solaris 10 bug: Failures are not distinguishable from
7333     successful returns.  */
7334  {
7335    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7336    if (cd_ascii_to_88591 != (iconv_t)(-1))
7337      {
7338        static const char input[] = "\263";
7339        char buf[10];
7340        const char *inptr = input;
7341        size_t inbytesleft = strlen (input);
7342        char *outptr = buf;
7343        size_t outbytesleft = sizeof (buf);
7344        size_t res = iconv (cd_ascii_to_88591,
7345                            (char **) &inptr, &inbytesleft,
7346                            &outptr, &outbytesleft);
7347        if (res == 0)
7348          result |= 2;
7349        iconv_close (cd_ascii_to_88591);
7350      }
7351  }
7352  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
7353  {
7354    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7355    if (cd_88591_to_utf8 != (iconv_t)(-1))
7356      {
7357        static const char input[] = "\304";
7358        static char buf[2] = { (char)0xDE, (char)0xAD };
7359        const char *inptr = input;
7360        size_t inbytesleft = 1;
7361        char *outptr = buf;
7362        size_t outbytesleft = 1;
7363        size_t res = iconv (cd_88591_to_utf8,
7364                            (char **) &inptr, &inbytesleft,
7365                            &outptr, &outbytesleft);
7366        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7367          result |= 4;
7368        iconv_close (cd_88591_to_utf8);
7369      }
7370  }
7371#if 0 /* This bug could be worked around by the caller.  */
7372  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7373  {
7374    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7375    if (cd_88591_to_utf8 != (iconv_t)(-1))
7376      {
7377        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7378        char buf[50];
7379        const char *inptr = input;
7380        size_t inbytesleft = strlen (input);
7381        char *outptr = buf;
7382        size_t outbytesleft = sizeof (buf);
7383        size_t res = iconv (cd_88591_to_utf8,
7384                            (char **) &inptr, &inbytesleft,
7385                            &outptr, &outbytesleft);
7386        if ((int)res > 0)
7387          result |= 8;
7388        iconv_close (cd_88591_to_utf8);
7389      }
7390  }
7391#endif
7392  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7393     provided.  */
7394  if (/* Try standardized names.  */
7395      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7396      /* Try IRIX, OSF/1 names.  */
7397      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7398      /* Try AIX names.  */
7399      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7400      /* Try HP-UX names.  */
7401      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7402    result |= 16;
7403  return result;
7404}
7405_ACEOF
7406if ac_fn_c_try_run "$LINENO"; then :
7407  am_cv_func_iconv_works=yes
7408else
7409  am_cv_func_iconv_works=no
7410fi
7411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7412  conftest.$ac_objext conftest.beam conftest.$ac_ext
7413fi
7414
7415      LIBS="$am_save_LIBS"
7416
7417fi
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7419$as_echo "$am_cv_func_iconv_works" >&6; }
7420    case "$am_cv_func_iconv_works" in
7421      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7422      *)   am_func_iconv=yes ;;
7423    esac
7424  else
7425    am_func_iconv=no am_cv_lib_iconv=no
7426  fi
7427  if test "$am_func_iconv" = yes; then
7428
7429$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7430
7431  fi
7432  if test "$am_cv_lib_iconv" = yes; then
7433    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7434$as_echo_n "checking how to link with libiconv... " >&6; }
7435    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7436$as_echo "$LIBICONV" >&6; }
7437  else
7438            CPPFLAGS="$am_save_CPPFLAGS"
7439    LIBICONV=
7440    LTLIBICONV=
7441  fi
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453    use_additional=yes
7454
7455  acl_save_prefix="$prefix"
7456  prefix="$acl_final_prefix"
7457  acl_save_exec_prefix="$exec_prefix"
7458  exec_prefix="$acl_final_exec_prefix"
7459
7460    eval additional_includedir=\"$includedir\"
7461    eval additional_libdir=\"$libdir\"
7462
7463  exec_prefix="$acl_save_exec_prefix"
7464  prefix="$acl_save_prefix"
7465
7466
7467# Check whether --with-libintl-prefix was given.
7468if test "${with_libintl_prefix+set}" = set; then :
7469  withval=$with_libintl_prefix;
7470    if test "X$withval" = "Xno"; then
7471      use_additional=no
7472    else
7473      if test "X$withval" = "X"; then
7474
7475  acl_save_prefix="$prefix"
7476  prefix="$acl_final_prefix"
7477  acl_save_exec_prefix="$exec_prefix"
7478  exec_prefix="$acl_final_exec_prefix"
7479
7480          eval additional_includedir=\"$includedir\"
7481          eval additional_libdir=\"$libdir\"
7482
7483  exec_prefix="$acl_save_exec_prefix"
7484  prefix="$acl_save_prefix"
7485
7486      else
7487        additional_includedir="$withval/include"
7488        additional_libdir="$withval/$acl_libdirstem"
7489        if test "$acl_libdirstem2" != "$acl_libdirstem" \
7490           && ! test -d "$withval/$acl_libdirstem"; then
7491          additional_libdir="$withval/$acl_libdirstem2"
7492        fi
7493      fi
7494    fi
7495
7496fi
7497
7498      LIBINTL=
7499  LTLIBINTL=
7500  INCINTL=
7501  LIBINTL_PREFIX=
7502      HAVE_LIBINTL=
7503  rpathdirs=
7504  ltrpathdirs=
7505  names_already_handled=
7506  names_next_round='intl '
7507  while test -n "$names_next_round"; do
7508    names_this_round="$names_next_round"
7509    names_next_round=
7510    for name in $names_this_round; do
7511      already_handled=
7512      for n in $names_already_handled; do
7513        if test "$n" = "$name"; then
7514          already_handled=yes
7515          break
7516        fi
7517      done
7518      if test -z "$already_handled"; then
7519        names_already_handled="$names_already_handled $name"
7520                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7521        eval value=\"\$HAVE_LIB$uppername\"
7522        if test -n "$value"; then
7523          if test "$value" = yes; then
7524            eval value=\"\$LIB$uppername\"
7525            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7526            eval value=\"\$LTLIB$uppername\"
7527            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7528          else
7529                                    :
7530          fi
7531        else
7532                              found_dir=
7533          found_la=
7534          found_so=
7535          found_a=
7536          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7537          if test -n "$acl_shlibext"; then
7538            shrext=".$acl_shlibext"             # typically: shrext=.so
7539          else
7540            shrext=
7541          fi
7542          if test $use_additional = yes; then
7543            dir="$additional_libdir"
7544                                    if test -n "$acl_shlibext"; then
7545              if test -f "$dir/$libname$shrext"; then
7546                found_dir="$dir"
7547                found_so="$dir/$libname$shrext"
7548              else
7549                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7550                  ver=`(cd "$dir" && \
7551                        for f in "$libname$shrext".*; do echo "$f"; done \
7552                        | sed -e "s,^$libname$shrext\\\\.,," \
7553                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7554                        | sed 1q ) 2>/dev/null`
7555                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7556                    found_dir="$dir"
7557                    found_so="$dir/$libname$shrext.$ver"
7558                  fi
7559                else
7560                  eval library_names=\"$acl_library_names_spec\"
7561                  for f in $library_names; do
7562                    if test -f "$dir/$f"; then
7563                      found_dir="$dir"
7564                      found_so="$dir/$f"
7565                      break
7566                    fi
7567                  done
7568                fi
7569              fi
7570            fi
7571                        if test "X$found_dir" = "X"; then
7572              if test -f "$dir/$libname.$acl_libext"; then
7573                found_dir="$dir"
7574                found_a="$dir/$libname.$acl_libext"
7575              fi
7576            fi
7577            if test "X$found_dir" != "X"; then
7578              if test -f "$dir/$libname.la"; then
7579                found_la="$dir/$libname.la"
7580              fi
7581            fi
7582          fi
7583          if test "X$found_dir" = "X"; then
7584            for x in $LDFLAGS $LTLIBINTL; do
7585
7586  acl_save_prefix="$prefix"
7587  prefix="$acl_final_prefix"
7588  acl_save_exec_prefix="$exec_prefix"
7589  exec_prefix="$acl_final_exec_prefix"
7590  eval x=\"$x\"
7591  exec_prefix="$acl_save_exec_prefix"
7592  prefix="$acl_save_prefix"
7593
7594              case "$x" in
7595                -L*)
7596                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7597                                    if test -n "$acl_shlibext"; then
7598                    if test -f "$dir/$libname$shrext"; then
7599                      found_dir="$dir"
7600                      found_so="$dir/$libname$shrext"
7601                    else
7602                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7603                        ver=`(cd "$dir" && \
7604                              for f in "$libname$shrext".*; do echo "$f"; done \
7605                              | sed -e "s,^$libname$shrext\\\\.,," \
7606                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7607                              | sed 1q ) 2>/dev/null`
7608                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7609                          found_dir="$dir"
7610                          found_so="$dir/$libname$shrext.$ver"
7611                        fi
7612                      else
7613                        eval library_names=\"$acl_library_names_spec\"
7614                        for f in $library_names; do
7615                          if test -f "$dir/$f"; then
7616                            found_dir="$dir"
7617                            found_so="$dir/$f"
7618                            break
7619                          fi
7620                        done
7621                      fi
7622                    fi
7623                  fi
7624                                    if test "X$found_dir" = "X"; then
7625                    if test -f "$dir/$libname.$acl_libext"; then
7626                      found_dir="$dir"
7627                      found_a="$dir/$libname.$acl_libext"
7628                    fi
7629                  fi
7630                  if test "X$found_dir" != "X"; then
7631                    if test -f "$dir/$libname.la"; then
7632                      found_la="$dir/$libname.la"
7633                    fi
7634                  fi
7635                  ;;
7636              esac
7637              if test "X$found_dir" != "X"; then
7638                break
7639              fi
7640            done
7641          fi
7642          if test "X$found_dir" != "X"; then
7643                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7644            if test "X$found_so" != "X"; then
7645                                                        if test "$enable_rpath" = no \
7646                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7647                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7648                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7649              else
7650                                                                                haveit=
7651                for x in $ltrpathdirs; do
7652                  if test "X$x" = "X$found_dir"; then
7653                    haveit=yes
7654                    break
7655                  fi
7656                done
7657                if test -z "$haveit"; then
7658                  ltrpathdirs="$ltrpathdirs $found_dir"
7659                fi
7660                                if test "$acl_hardcode_direct" = yes; then
7661                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7662                else
7663                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7664                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7665                                                            haveit=
7666                    for x in $rpathdirs; do
7667                      if test "X$x" = "X$found_dir"; then
7668                        haveit=yes
7669                        break
7670                      fi
7671                    done
7672                    if test -z "$haveit"; then
7673                      rpathdirs="$rpathdirs $found_dir"
7674                    fi
7675                  else
7676                                                                                haveit=
7677                    for x in $LDFLAGS $LIBINTL; do
7678
7679  acl_save_prefix="$prefix"
7680  prefix="$acl_final_prefix"
7681  acl_save_exec_prefix="$exec_prefix"
7682  exec_prefix="$acl_final_exec_prefix"
7683  eval x=\"$x\"
7684  exec_prefix="$acl_save_exec_prefix"
7685  prefix="$acl_save_prefix"
7686
7687                      if test "X$x" = "X-L$found_dir"; then
7688                        haveit=yes
7689                        break
7690                      fi
7691                    done
7692                    if test -z "$haveit"; then
7693                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7694                    fi
7695                    if test "$acl_hardcode_minus_L" != no; then
7696                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7697                    else
7698                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7699                    fi
7700                  fi
7701                fi
7702              fi
7703            else
7704              if test "X$found_a" != "X"; then
7705                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7706              else
7707                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7708              fi
7709            fi
7710                        additional_includedir=
7711            case "$found_dir" in
7712              */$acl_libdirstem | */$acl_libdirstem/)
7713                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7714                if test "$name" = 'intl'; then
7715                  LIBINTL_PREFIX="$basedir"
7716                fi
7717                additional_includedir="$basedir/include"
7718                ;;
7719              */$acl_libdirstem2 | */$acl_libdirstem2/)
7720                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7721                if test "$name" = 'intl'; then
7722                  LIBINTL_PREFIX="$basedir"
7723                fi
7724                additional_includedir="$basedir/include"
7725                ;;
7726            esac
7727            if test "X$additional_includedir" != "X"; then
7728                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7729                haveit=
7730                if test "X$additional_includedir" = "X/usr/local/include"; then
7731                  if test -n "$GCC"; then
7732                    case $host_os in
7733                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7734                    esac
7735                  fi
7736                fi
7737                if test -z "$haveit"; then
7738                  for x in $CPPFLAGS $INCINTL; do
7739
7740  acl_save_prefix="$prefix"
7741  prefix="$acl_final_prefix"
7742  acl_save_exec_prefix="$exec_prefix"
7743  exec_prefix="$acl_final_exec_prefix"
7744  eval x=\"$x\"
7745  exec_prefix="$acl_save_exec_prefix"
7746  prefix="$acl_save_prefix"
7747
7748                    if test "X$x" = "X-I$additional_includedir"; then
7749                      haveit=yes
7750                      break
7751                    fi
7752                  done
7753                  if test -z "$haveit"; then
7754                    if test -d "$additional_includedir"; then
7755                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7756                    fi
7757                  fi
7758                fi
7759              fi
7760            fi
7761                        if test -n "$found_la"; then
7762                                                        save_libdir="$libdir"
7763              case "$found_la" in
7764                */* | *\\*) . "$found_la" ;;
7765                *) . "./$found_la" ;;
7766              esac
7767              libdir="$save_libdir"
7768                            for dep in $dependency_libs; do
7769                case "$dep" in
7770                  -L*)
7771                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7772                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7773                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7774                      haveit=
7775                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7776                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7777                        if test -n "$GCC"; then
7778                          case $host_os in
7779                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7780                          esac
7781                        fi
7782                      fi
7783                      if test -z "$haveit"; then
7784                        haveit=
7785                        for x in $LDFLAGS $LIBINTL; do
7786
7787  acl_save_prefix="$prefix"
7788  prefix="$acl_final_prefix"
7789  acl_save_exec_prefix="$exec_prefix"
7790  exec_prefix="$acl_final_exec_prefix"
7791  eval x=\"$x\"
7792  exec_prefix="$acl_save_exec_prefix"
7793  prefix="$acl_save_prefix"
7794
7795                          if test "X$x" = "X-L$additional_libdir"; then
7796                            haveit=yes
7797                            break
7798                          fi
7799                        done
7800                        if test -z "$haveit"; then
7801                          if test -d "$additional_libdir"; then
7802                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7803                          fi
7804                        fi
7805                        haveit=
7806                        for x in $LDFLAGS $LTLIBINTL; do
7807
7808  acl_save_prefix="$prefix"
7809  prefix="$acl_final_prefix"
7810  acl_save_exec_prefix="$exec_prefix"
7811  exec_prefix="$acl_final_exec_prefix"
7812  eval x=\"$x\"
7813  exec_prefix="$acl_save_exec_prefix"
7814  prefix="$acl_save_prefix"
7815
7816                          if test "X$x" = "X-L$additional_libdir"; then
7817                            haveit=yes
7818                            break
7819                          fi
7820                        done
7821                        if test -z "$haveit"; then
7822                          if test -d "$additional_libdir"; then
7823                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7824                          fi
7825                        fi
7826                      fi
7827                    fi
7828                    ;;
7829                  -R*)
7830                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7831                    if test "$enable_rpath" != no; then
7832                                                                  haveit=
7833                      for x in $rpathdirs; do
7834                        if test "X$x" = "X$dir"; then
7835                          haveit=yes
7836                          break
7837                        fi
7838                      done
7839                      if test -z "$haveit"; then
7840                        rpathdirs="$rpathdirs $dir"
7841                      fi
7842                                                                  haveit=
7843                      for x in $ltrpathdirs; do
7844                        if test "X$x" = "X$dir"; then
7845                          haveit=yes
7846                          break
7847                        fi
7848                      done
7849                      if test -z "$haveit"; then
7850                        ltrpathdirs="$ltrpathdirs $dir"
7851                      fi
7852                    fi
7853                    ;;
7854                  -l*)
7855                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7856                    ;;
7857                  *.la)
7858                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7859                    ;;
7860                  *)
7861                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7862                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7863                    ;;
7864                esac
7865              done
7866            fi
7867          else
7868                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7869            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7870          fi
7871        fi
7872      fi
7873    done
7874  done
7875  if test "X$rpathdirs" != "X"; then
7876    if test -n "$acl_hardcode_libdir_separator"; then
7877                        alldirs=
7878      for found_dir in $rpathdirs; do
7879        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7880      done
7881            acl_save_libdir="$libdir"
7882      libdir="$alldirs"
7883      eval flag=\"$acl_hardcode_libdir_flag_spec\"
7884      libdir="$acl_save_libdir"
7885      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7886    else
7887            for found_dir in $rpathdirs; do
7888        acl_save_libdir="$libdir"
7889        libdir="$found_dir"
7890        eval flag=\"$acl_hardcode_libdir_flag_spec\"
7891        libdir="$acl_save_libdir"
7892        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7893      done
7894    fi
7895  fi
7896  if test "X$ltrpathdirs" != "X"; then
7897            for found_dir in $ltrpathdirs; do
7898      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7899    done
7900  fi
7901
7902
7903
7904
7905
7906
7907          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7908$as_echo_n "checking for GNU gettext in libintl... " >&6; }
7909if eval \${$gt_func_gnugettext_libintl+:} false; then :
7910  $as_echo_n "(cached) " >&6
7911else
7912  gt_save_CPPFLAGS="$CPPFLAGS"
7913            CPPFLAGS="$CPPFLAGS $INCINTL"
7914            gt_save_LIBS="$LIBS"
7915            LIBS="$LIBS $LIBINTL"
7916                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917/* end confdefs.h.  */
7918
7919#include <libintl.h>
7920$gt_revision_test_code
7921extern int _nl_msg_cat_cntr;
7922extern
7923#ifdef __cplusplus
7924"C"
7925#endif
7926const char *_nl_expand_alias (const char *);
7927
7928int
7929main ()
7930{
7931
7932bindtextdomain ("", "");
7933return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7934
7935  ;
7936  return 0;
7937}
7938_ACEOF
7939if ac_fn_c_try_link "$LINENO"; then :
7940  eval "$gt_func_gnugettext_libintl=yes"
7941else
7942  eval "$gt_func_gnugettext_libintl=no"
7943fi
7944rm -f core conftest.err conftest.$ac_objext \
7945    conftest$ac_exeext conftest.$ac_ext
7946                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7947              LIBS="$LIBS $LIBICONV"
7948              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h.  */
7950
7951#include <libintl.h>
7952$gt_revision_test_code
7953extern int _nl_msg_cat_cntr;
7954extern
7955#ifdef __cplusplus
7956"C"
7957#endif
7958const char *_nl_expand_alias (const char *);
7959
7960int
7961main ()
7962{
7963
7964bindtextdomain ("", "");
7965return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7966
7967  ;
7968  return 0;
7969}
7970_ACEOF
7971if ac_fn_c_try_link "$LINENO"; then :
7972  LIBINTL="$LIBINTL $LIBICONV"
7973                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7974                 eval "$gt_func_gnugettext_libintl=yes"
7975
7976fi
7977rm -f core conftest.err conftest.$ac_objext \
7978    conftest$ac_exeext conftest.$ac_ext
7979            fi
7980            CPPFLAGS="$gt_save_CPPFLAGS"
7981            LIBS="$gt_save_LIBS"
7982fi
7983eval ac_res=\$$gt_func_gnugettext_libintl
7984	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7985$as_echo "$ac_res" >&6; }
7986        fi
7987
7988                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7989           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7990                && test "$PACKAGE" != gettext-runtime \
7991                && test "$PACKAGE" != gettext-tools; }; then
7992          gt_use_preinstalled_gnugettext=yes
7993        else
7994                    LIBINTL=
7995          LTLIBINTL=
7996          INCINTL=
7997        fi
7998
7999
8000
8001    if test -n "$INTL_MACOSX_LIBS"; then
8002      if test "$gt_use_preinstalled_gnugettext" = "yes" \
8003         || test "$nls_cv_use_gnu_gettext" = "yes"; then
8004                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8005        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8006      fi
8007    fi
8008
8009    if test "$gt_use_preinstalled_gnugettext" = "yes" \
8010       || test "$nls_cv_use_gnu_gettext" = "yes"; then
8011
8012$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8013
8014    else
8015      USE_NLS=no
8016    fi
8017  fi
8018
8019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8020$as_echo_n "checking whether to use NLS... " >&6; }
8021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8022$as_echo "$USE_NLS" >&6; }
8023  if test "$USE_NLS" = "yes"; then
8024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8025$as_echo_n "checking where the gettext function comes from... " >&6; }
8026    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8027      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8028        gt_source="external libintl"
8029      else
8030        gt_source="libc"
8031      fi
8032    else
8033      gt_source="included intl directory"
8034    fi
8035    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8036$as_echo "$gt_source" >&6; }
8037  fi
8038
8039  if test "$USE_NLS" = "yes"; then
8040
8041    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8042      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8043        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8044$as_echo_n "checking how to link with libintl... " >&6; }
8045        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8046$as_echo "$LIBINTL" >&6; }
8047
8048  for element in $INCINTL; do
8049    haveit=
8050    for x in $CPPFLAGS; do
8051
8052  acl_save_prefix="$prefix"
8053  prefix="$acl_final_prefix"
8054  acl_save_exec_prefix="$exec_prefix"
8055  exec_prefix="$acl_final_exec_prefix"
8056  eval x=\"$x\"
8057  exec_prefix="$acl_save_exec_prefix"
8058  prefix="$acl_save_prefix"
8059
8060      if test "X$x" = "X$element"; then
8061        haveit=yes
8062        break
8063      fi
8064    done
8065    if test -z "$haveit"; then
8066      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8067    fi
8068  done
8069
8070      fi
8071
8072
8073$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8074
8075
8076$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8077
8078    fi
8079
8080        POSUB=po
8081  fi
8082
8083
8084
8085    INTLLIBS="$LIBINTL"
8086
8087
8088
8089
8090
8091
8092# autoheader templates for AM_GNU_GETTEXT checks.
8093
8094
8095
8096
8097
8098
8099# Check for GNU C Library
8100
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU C Library" >&5
8102$as_echo_n "checking for GNU C Library... " >&6; }
8103if ${yasm_cv_header_gnulib+:} false; then :
8104  $as_echo_n "(cached) " >&6
8105else
8106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h.  */
8108#include <features.h>
8109	#ifdef __GNU_LIBRARY__
8110	  gnulib
8111	#endif
8112
8113_ACEOF
8114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115  $EGREP "gnulib" >/dev/null 2>&1; then :
8116  yasm_cv_header_gnulib=yes
8117else
8118  yasm_cv_header_gnulib=no
8119fi
8120rm -f conftest*
8121
8122fi
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $yasm_cv_header_gnulib" >&5
8124$as_echo "$yasm_cv_header_gnulib" >&6; }
8125if test "$yasm_cv_header_gnulib" = yes; then
8126	$as_echo "#define HAVE_GNU_C_LIBRARY 1" >>confdefs.h
8127
8128fi
8129
8130# Force x86 architecture only for now.
8131ARCH=x86
8132
8133
8134
8135# Require things for --enable-maintainer-mode option.
8136if test "$USE_MAINTAINER_MODE" = "yes"; then
8137  # Enable debugging
8138  if test "$debugging" != "no"; then
8139    debugging=yes
8140  fi
8141
8142  # Enable more warnings
8143  if test "$GCC" = "yes"; then
8144    MORE_CFLAGS="$MORE_CFLAGS -W"
8145    MORE_CFLAGS="$MORE_CFLAGS -Waggregate-return"
8146    MORE_CFLAGS="$MORE_CFLAGS -Wbad-function-cast"
8147    MORE_CFLAGS="$MORE_CFLAGS -Wcast-align"
8148    MORE_CFLAGS="$MORE_CFLAGS -Wcast-qual"
8149    MORE_CFLAGS="$MORE_CFLAGS -Wchar-subscripts"
8150#    MORE_CFLAGS="$MORE_CFLAGS -Wconversion"
8151#    MORE_CFLAGS="$MORE_CFLAGS -Wdeclaration-after-statement"
8152#    MORE_CFLAGS="$MORE_CFLAGS -Wendif-labels"
8153    MORE_CFLAGS="$MORE_CFLAGS -Winline"
8154    MORE_CFLAGS="$MORE_CFLAGS -Wmissing-declarations"
8155    MORE_CFLAGS="$MORE_CFLAGS -Wmissing-prototypes"
8156    MORE_CFLAGS="$MORE_CFLAGS -Wnested-externs"
8157    MORE_CFLAGS="$MORE_CFLAGS -Wpointer-arith"
8158    MORE_CFLAGS="$MORE_CFLAGS -Wreturn-type"
8159    MORE_CFLAGS="$MORE_CFLAGS -Wshadow"
8160    MORE_CFLAGS="$MORE_CFLAGS -Wsign-compare"
8161    MORE_CFLAGS="$MORE_CFLAGS -Wstrict-prototypes"
8162    MORE_CFLAGS="$MORE_CFLAGS -Wswitch"
8163    MORE_CFLAGS="$MORE_CFLAGS -Wwrite-strings"
8164    MORE_CFLAGS="$MORE_CFLAGS -Wno-undef"
8165#    MORE_CFLAGS="$MORE_CFLAGS -Wno-unused"
8166    MORE_CFLAGS="$MORE_CFLAGS -Wno-unused-parameter"
8167  fi
8168fi
8169
8170#
8171# Add some more CFLAGS for various options.
8172#
8173
8174if test "$debugging" = "no" ; then
8175
8176  CFLAGS="`echo $CFLAGS' ' | sed -e 's/-g[0-9] //g' | sed -e 's/-g//g'`"
8177
8178fi
8179
8180# Turn warnings into errors
8181if test "$warnerror" = "yes"; then
8182  if test "$GCC" = "yes"; then
8183    MORE_CFLAGS="$MORE_CFLAGS -Werror"
8184  fi
8185fi
8186
8187# Enable output of profiling information
8188if test "$profiling" = "yes"; then
8189  if test "$GCC" = "yes"; then
8190    MORE_CFLAGS="$MORE_CFLAGS -pg"
8191  fi
8192fi
8193
8194# Enable output of gcov information
8195if test "$gcov" = "yes"; then
8196  if test "$GCC" = "yes"; then
8197    MORE_CFLAGS="$MORE_CFLAGS -fprofile-arcs -ftest-coverage"
8198  fi
8199fi
8200
8201# If we're using GCC, then we can turn on -ansi -pedantic -Wall too.
8202if test "$USE_MAINTAINER_MODE" = "yes"; then
8203  if test "$GCC" = yes; then
8204    MORE_CFLAGS="-ansi -pedantic -Wall $MORE_CFLAGS"
8205  fi
8206fi
8207
8208
8209
8210
8211if test "${build}" != "${host}" ; then
8212  CC_FOR_BUILD=${CC_FOR_BUILD-cc}
8213  CCLD_FOR_BUILD=${CCLD_FOR_BUILD-cc}
8214else
8215  CC_FOR_BUILD="\$(CC)"
8216  CCLD_FOR_BUILD="\$(CC)"
8217fi
8218
8219
8220
8221
8222if test "$build" != "$target" || test "$build" != "$host"; then
8223  CPP_PROG="${CPP_FOR_HOST-cc -E}"
8224else
8225  CPP_PROG="${CPP}"
8226fi
8227
8228cat >>confdefs.h <<_ACEOF
8229#define CPP_PROG "${CPP_PROG}"
8230_ACEOF
8231
8232
8233# Detect if we have Python
8234if test x$enable_python = xno; then
8235    have_python=no
8236else
8237    { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for Python" >&5
8238$as_echo "$as_me: Checking for Python" >&6;}
8239    have_python=no
8240
8241
8242
8243
8244
8245
8246        if test -n "$PYTHON"; then
8247      # If the user set $PYTHON, use it and don't search something else.
8248      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.4" >&5
8249$as_echo_n "checking whether $PYTHON version is >= 2.4... " >&6; }
8250      prog="import sys
8251# split strings by '.' and convert to numeric.  Append some zeros
8252# because we need at least 4 digits for the hex conversion.
8253# map returns an iterator in Python 3.0 and a list in 2.x
8254minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
8255minverhex = 0
8256# xrange is not present in Python 3.0 and range returns an iterator
8257for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8258sys.exit(sys.hexversion < minverhex)"
8259  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8260   ($PYTHON -c "$prog") >&5 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; then :
8264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8265$as_echo "yes" >&6; }
8266else
8267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268$as_echo "no" >&6; }
8269			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
8270fi
8271      am_display_PYTHON=$PYTHON
8272    else
8273      # Otherwise, try each interpreter until we find one that satisfies
8274      # VERSION.
8275      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
8276$as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
8277if ${am_cv_pathless_PYTHON+:} false; then :
8278  $as_echo_n "(cached) " >&6
8279else
8280
8281	for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
8282	  test "$am_cv_pathless_PYTHON" = none && break
8283	  prog="import sys
8284# split strings by '.' and convert to numeric.  Append some zeros
8285# because we need at least 4 digits for the hex conversion.
8286# map returns an iterator in Python 3.0 and a list in 2.x
8287minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
8288minverhex = 0
8289# xrange is not present in Python 3.0 and range returns an iterator
8290for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8291sys.exit(sys.hexversion < minverhex)"
8292  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
8293   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
8294   ac_status=$?
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); }; then :
8297  break
8298fi
8299	done
8300fi
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
8302$as_echo "$am_cv_pathless_PYTHON" >&6; }
8303      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8304      if test "$am_cv_pathless_PYTHON" = none; then
8305	PYTHON=:
8306      else
8307        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
8308set dummy $am_cv_pathless_PYTHON; ac_word=$2
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310$as_echo_n "checking for $ac_word... " >&6; }
8311if ${ac_cv_path_PYTHON+:} false; then :
8312  $as_echo_n "(cached) " >&6
8313else
8314  case $PYTHON in
8315  [\\/]* | ?:[\\/]*)
8316  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8317  ;;
8318  *)
8319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322  IFS=$as_save_IFS
8323  test -z "$as_dir" && as_dir=.
8324    for ac_exec_ext in '' $ac_executable_extensions; do
8325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8326    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328    break 2
8329  fi
8330done
8331  done
8332IFS=$as_save_IFS
8333
8334  ;;
8335esac
8336fi
8337PYTHON=$ac_cv_path_PYTHON
8338if test -n "$PYTHON"; then
8339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8340$as_echo "$PYTHON" >&6; }
8341else
8342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343$as_echo "no" >&6; }
8344fi
8345
8346
8347      fi
8348      am_display_PYTHON=$am_cv_pathless_PYTHON
8349    fi
8350
8351
8352  if test "$PYTHON" = :; then
8353      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python not found" >&5
8354$as_echo "$as_me: WARNING: Python not found" >&2;}
8355  else
8356
8357
8358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
8359$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
8360if ${am_cv_python_version+:} false; then :
8361  $as_echo_n "(cached) " >&6
8362else
8363  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
8364fi
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
8366$as_echo "$am_cv_python_version" >&6; }
8367  PYTHON_VERSION=$am_cv_python_version
8368
8369
8370
8371  PYTHON_PREFIX='${prefix}'
8372
8373  PYTHON_EXEC_PREFIX='${exec_prefix}'
8374
8375
8376
8377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
8378$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
8379if ${am_cv_python_platform+:} false; then :
8380  $as_echo_n "(cached) " >&6
8381else
8382  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
8383fi
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
8385$as_echo "$am_cv_python_platform" >&6; }
8386  PYTHON_PLATFORM=$am_cv_python_platform
8387
8388
8389  # Just factor out some code duplication.
8390  am_python_setup_sysconfig="\
8391import sys
8392# Prefer sysconfig over distutils.sysconfig, for better compatibility
8393# with python 3.x.  See automake bug#10227.
8394try:
8395    import sysconfig
8396except ImportError:
8397    can_use_sysconfig = 0
8398else:
8399    can_use_sysconfig = 1
8400# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
8401# <https://github.com/pypa/virtualenv/issues/118>
8402try:
8403    from platform import python_implementation
8404    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
8405        can_use_sysconfig = 0
8406except ImportError:
8407    pass"
8408
8409
8410            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
8411$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
8412if ${am_cv_python_pythondir+:} false; then :
8413  $as_echo_n "(cached) " >&6
8414else
8415  if test "x$prefix" = xNONE
8416     then
8417       am_py_prefix=$ac_default_prefix
8418     else
8419       am_py_prefix=$prefix
8420     fi
8421     am_cv_python_pythondir=`$PYTHON -c "
8422$am_python_setup_sysconfig
8423if can_use_sysconfig:
8424    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
8425else:
8426    from distutils import sysconfig
8427    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
8428sys.stdout.write(sitedir)"`
8429     case $am_cv_python_pythondir in
8430     $am_py_prefix*)
8431       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
8432       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
8433       ;;
8434     *)
8435       case $am_py_prefix in
8436         /usr|/System*) ;;
8437         *)
8438	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
8439	  ;;
8440       esac
8441       ;;
8442     esac
8443
8444fi
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
8446$as_echo "$am_cv_python_pythondir" >&6; }
8447  pythondir=$am_cv_python_pythondir
8448
8449
8450
8451  pkgpythondir=\${pythondir}/$PACKAGE
8452
8453
8454        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
8455$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
8456if ${am_cv_python_pyexecdir+:} false; then :
8457  $as_echo_n "(cached) " >&6
8458else
8459  if test "x$exec_prefix" = xNONE
8460     then
8461       am_py_exec_prefix=$am_py_prefix
8462     else
8463       am_py_exec_prefix=$exec_prefix
8464     fi
8465     am_cv_python_pyexecdir=`$PYTHON -c "
8466$am_python_setup_sysconfig
8467if can_use_sysconfig:
8468    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
8469else:
8470    from distutils import sysconfig
8471    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
8472sys.stdout.write(sitedir)"`
8473     case $am_cv_python_pyexecdir in
8474     $am_py_exec_prefix*)
8475       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
8476       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
8477       ;;
8478     *)
8479       case $am_py_exec_prefix in
8480         /usr|/System*) ;;
8481         *)
8482	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
8483	   ;;
8484       esac
8485       ;;
8486     esac
8487
8488fi
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
8490$as_echo "$am_cv_python_pyexecdir" >&6; }
8491  pyexecdir=$am_cv_python_pyexecdir
8492
8493
8494
8495  pkgpyexecdir=\${pyexecdir}/$PACKAGE
8496
8497
8498
8499  fi
8500
8501
8502
8503    if test -z "$PYTHON" || test "$PYTHON" = : ; then
8504        have_python=no
8505    else
8506        have_python=yes
8507    fi
8508
8509    if test x$have_python = xno ; then
8510        if test x$enable_python = xyes ; then
8511            as_fn_error $? "Python explicitly requested, but a suitable Python version was not found" "$LINENO" 5
8512        else
8513            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a suitable version of Python" >&5
8514$as_echo "$as_me: WARNING: Could not find a suitable version of Python" >&2;}
8515        fi
8516    fi
8517fi
8518
8519# Detect if we can build Python bindings
8520# (needs Python, Python headers, and Cython)
8521if test x$enable_python_bindings = xno; then
8522    have_python_bindings=no
8523else
8524    { $as_echo "$as_me:${as_lineno-$LINENO}: Checking to see if we can build Python bindings" >&5
8525$as_echo "$as_me: Checking to see if we can build Python bindings" >&6;}
8526    have_python_bindings=no
8527    if test x$have_python = xyes; then
8528        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cython >= 0.11.3" >&5
8529$as_echo_n "checking for Cython >= 0.11.3... " >&6; }
8530        prog="import re, sys
8531from Cython.Compiler.Version import version
8532def get_int(arg):
8533    matched = re.match(r'\d+', arg)
8534    if matched is None:
8535        return 0
8536    else:
8537        return int(matched.group(0))
8538# split strings by '.' and convert to numeric.  Append some zeros
8539# because we need at least 4 digits for the hex conversion.
8540ver = map(get_int, version.rstrip('abcdefghijklmnopqrstuvwxyz').split('.')) + [0, 0, 0]
8541verhex = 0
8542for i in range(0, 4): verhex = (verhex << 8) + ver[i]
8543minver = map(get_int, '0.11.3'.split('.')) + [0, 0, 0]
8544minverhex = 0
8545for i in range(0, 4): minverhex = (minverhex << 8) + minver[i]
8546sys.exit(verhex < minverhex)"
8547  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8548   ($PYTHON -c "$prog") >&5 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; then :
8552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8553$as_echo "yes" >&6; }
8554                                      have_cython=yes
8555else
8556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557$as_echo "no" >&6; }
8558                                      have_cython=no
8559fi
8560
8561
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
8563$as_echo_n "checking for headers required to compile python extensions... " >&6; }
8564py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
8565py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
8566PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
8567if test "$py_prefix" != "$py_exec_prefix"; then
8568  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
8569fi
8570
8571save_CPPFLAGS="$CPPFLAGS"
8572CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
8573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574/* end confdefs.h.  */
8575#include <Python.h>
8576_ACEOF
8577if ac_fn_c_try_cpp "$LINENO"; then :
8578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8579$as_echo "found" >&6; }
8580have_python_headers=yes
8581else
8582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8583$as_echo "not found" >&6; }
8584have_python_headers=no
8585fi
8586rm -f conftest.err conftest.i conftest.$ac_ext
8587CPPFLAGS="$save_CPPFLAGS"
8588
8589
8590        if test x$have_cython = xyes -a x$have_python_headers = xyes ; then
8591            have_python_bindings=yes
8592        fi
8593    fi
8594
8595    if test x$have_python_bindings = xno ; then
8596        if test x$enable_python_bindings = xyes ; then
8597            as_fn_error $? "Building Python bindings explicitly requested, but can't build Python bindings because either Cython, Python headers or a suitable Python version was not found" "$LINENO" 5
8598        else
8599            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find either Cython, the Python headers or a suitable version of Python, not building Python bindings" >&5
8600$as_echo "$as_me: WARNING: Couldn't find either Cython, the Python headers or a suitable version of Python, not building Python bindings" >&2;}
8601        fi
8602    fi
8603fi
8604
8605 if test x$have_python = xyes; then
8606  HAVE_PYTHON_TRUE=
8607  HAVE_PYTHON_FALSE='#'
8608else
8609  HAVE_PYTHON_TRUE='#'
8610  HAVE_PYTHON_FALSE=
8611fi
8612
8613 if test x$have_python_bindings = xyes; then
8614  HAVE_PYTHON_BINDINGS_TRUE=
8615  HAVE_PYTHON_BINDINGS_FALSE='#'
8616else
8617  HAVE_PYTHON_BINDINGS_TRUE='#'
8618  HAVE_PYTHON_BINDINGS_FALSE=
8619fi
8620
8621
8622ac_config_files="$ac_config_files Makefile po/Makefile.in"
8623
8624cat >confcache <<\_ACEOF
8625# This file is a shell script that caches the results of configure
8626# tests run on this system so they can be shared between configure
8627# scripts and configure runs, see configure's option --config-cache.
8628# It is not useful on other systems.  If it contains results you don't
8629# want to keep, you may remove or edit it.
8630#
8631# config.status only pays attention to the cache file if you give it
8632# the --recheck option to rerun configure.
8633#
8634# `ac_cv_env_foo' variables (set or unset) will be overridden when
8635# loading this file, other *unset* `ac_cv_foo' will be assigned the
8636# following values.
8637
8638_ACEOF
8639
8640# The following way of writing the cache mishandles newlines in values,
8641# but we know of no workaround that is simple, portable, and efficient.
8642# So, we kill variables containing newlines.
8643# Ultrix sh set writes to stderr and can't be redirected directly,
8644# and sets the high bit in the cache file unless we assign to the vars.
8645(
8646  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8647    eval ac_val=\$$ac_var
8648    case $ac_val in #(
8649    *${as_nl}*)
8650      case $ac_var in #(
8651      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8652$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8653      esac
8654      case $ac_var in #(
8655      _ | IFS | as_nl) ;; #(
8656      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8657      *) { eval $ac_var=; unset $ac_var;} ;;
8658      esac ;;
8659    esac
8660  done
8661
8662  (set) 2>&1 |
8663    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8664    *${as_nl}ac_space=\ *)
8665      # `set' does not quote correctly, so add quotes: double-quote
8666      # substitution turns \\\\ into \\, and sed turns \\ into \.
8667      sed -n \
8668	"s/'/'\\\\''/g;
8669	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8670      ;; #(
8671    *)
8672      # `set' quotes correctly as required by POSIX, so do not add quotes.
8673      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8674      ;;
8675    esac |
8676    sort
8677) |
8678  sed '
8679     /^ac_cv_env_/b end
8680     t clear
8681     :clear
8682     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8683     t end
8684     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8685     :end' >>confcache
8686if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8687  if test -w "$cache_file"; then
8688    if test "x$cache_file" != "x/dev/null"; then
8689      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8690$as_echo "$as_me: updating cache $cache_file" >&6;}
8691      if test ! -f "$cache_file" || test -h "$cache_file"; then
8692	cat confcache >"$cache_file"
8693      else
8694        case $cache_file in #(
8695        */* | ?:*)
8696	  mv -f confcache "$cache_file"$$ &&
8697	  mv -f "$cache_file"$$ "$cache_file" ;; #(
8698        *)
8699	  mv -f confcache "$cache_file" ;;
8700	esac
8701      fi
8702    fi
8703  else
8704    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8705$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8706  fi
8707fi
8708rm -f confcache
8709
8710test "x$prefix" = xNONE && prefix=$ac_default_prefix
8711# Let make expand exec_prefix.
8712test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8713
8714DEFS=-DHAVE_CONFIG_H
8715
8716ac_libobjs=
8717ac_ltlibobjs=
8718U=
8719for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8720  # 1. Remove the extension, and $U if already installed.
8721  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8722  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8723  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8724  #    will be set to the directory where LIBOBJS objects are built.
8725  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8726  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8727done
8728LIBOBJS=$ac_libobjs
8729
8730LTLIBOBJS=$ac_ltlibobjs
8731
8732
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8734$as_echo_n "checking that generated files are newer than configure... " >&6; }
8735   if test -n "$am_sleep_pid"; then
8736     # Hide warnings about reused PIDs.
8737     wait $am_sleep_pid 2>/dev/null
8738   fi
8739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8740$as_echo "done" >&6; }
8741 if test -n "$EXEEXT"; then
8742  am__EXEEXT_TRUE=
8743  am__EXEEXT_FALSE='#'
8744else
8745  am__EXEEXT_TRUE='#'
8746  am__EXEEXT_FALSE=
8747fi
8748
8749if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8750  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8751Usually this means the macro was only invoked conditionally." "$LINENO" 5
8752fi
8753if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8754  as_fn_error $? "conditional \"AMDEP\" was never defined.
8755Usually this means the macro was only invoked conditionally." "$LINENO" 5
8756fi
8757if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8758  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8759Usually this means the macro was only invoked conditionally." "$LINENO" 5
8760fi
8761if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
8762  as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
8763Usually this means the macro was only invoked conditionally." "$LINENO" 5
8764fi
8765if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
8766  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
8767Usually this means the macro was only invoked conditionally." "$LINENO" 5
8768fi
8769if test -z "${HAVE_PYTHON_BINDINGS_TRUE}" && test -z "${HAVE_PYTHON_BINDINGS_FALSE}"; then
8770  as_fn_error $? "conditional \"HAVE_PYTHON_BINDINGS\" was never defined.
8771Usually this means the macro was only invoked conditionally." "$LINENO" 5
8772fi
8773
8774: "${CONFIG_STATUS=./config.status}"
8775ac_write_fail=0
8776ac_clean_files_save=$ac_clean_files
8777ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8779$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8780as_write_fail=0
8781cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8782#! $SHELL
8783# Generated by $as_me.
8784# Run this file to recreate the current configuration.
8785# Compiler output produced by configure, useful for debugging
8786# configure, is in config.log if it exists.
8787
8788debug=false
8789ac_cs_recheck=false
8790ac_cs_silent=false
8791
8792SHELL=\${CONFIG_SHELL-$SHELL}
8793export SHELL
8794_ASEOF
8795cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8796## -------------------- ##
8797## M4sh Initialization. ##
8798## -------------------- ##
8799
8800# Be more Bourne compatible
8801DUALCASE=1; export DUALCASE # for MKS sh
8802if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8803  emulate sh
8804  NULLCMD=:
8805  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8806  # is contrary to our usage.  Disable this feature.
8807  alias -g '${1+"$@"}'='"$@"'
8808  setopt NO_GLOB_SUBST
8809else
8810  case `(set -o) 2>/dev/null` in #(
8811  *posix*) :
8812    set -o posix ;; #(
8813  *) :
8814     ;;
8815esac
8816fi
8817
8818
8819as_nl='
8820'
8821export as_nl
8822# Printing a long string crashes Solaris 7 /usr/bin/printf.
8823as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8824as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8825as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8826# Prefer a ksh shell builtin over an external printf program on Solaris,
8827# but without wasting forks for bash or zsh.
8828if test -z "$BASH_VERSION$ZSH_VERSION" \
8829    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8830  as_echo='print -r --'
8831  as_echo_n='print -rn --'
8832elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8833  as_echo='printf %s\n'
8834  as_echo_n='printf %s'
8835else
8836  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8837    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8838    as_echo_n='/usr/ucb/echo -n'
8839  else
8840    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8841    as_echo_n_body='eval
8842      arg=$1;
8843      case $arg in #(
8844      *"$as_nl"*)
8845	expr "X$arg" : "X\\(.*\\)$as_nl";
8846	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8847      esac;
8848      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8849    '
8850    export as_echo_n_body
8851    as_echo_n='sh -c $as_echo_n_body as_echo'
8852  fi
8853  export as_echo_body
8854  as_echo='sh -c $as_echo_body as_echo'
8855fi
8856
8857# The user is always right.
8858if test "${PATH_SEPARATOR+set}" != set; then
8859  PATH_SEPARATOR=:
8860  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8861    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8862      PATH_SEPARATOR=';'
8863  }
8864fi
8865
8866
8867# IFS
8868# We need space, tab and new line, in precisely that order.  Quoting is
8869# there to prevent editors from complaining about space-tab.
8870# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8871# splitting by setting IFS to empty value.)
8872IFS=" ""	$as_nl"
8873
8874# Find who we are.  Look in the path if we contain no directory separator.
8875as_myself=
8876case $0 in #((
8877  *[\\/]* ) as_myself=$0 ;;
8878  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879for as_dir in $PATH
8880do
8881  IFS=$as_save_IFS
8882  test -z "$as_dir" && as_dir=.
8883    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8884  done
8885IFS=$as_save_IFS
8886
8887     ;;
8888esac
8889# We did not find ourselves, most probably we were run as `sh COMMAND'
8890# in which case we are not to be found in the path.
8891if test "x$as_myself" = x; then
8892  as_myself=$0
8893fi
8894if test ! -f "$as_myself"; then
8895  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8896  exit 1
8897fi
8898
8899# Unset variables that we do not need and which cause bugs (e.g. in
8900# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8901# suppresses any "Segmentation fault" message there.  '((' could
8902# trigger a bug in pdksh 5.2.14.
8903for as_var in BASH_ENV ENV MAIL MAILPATH
8904do eval test x\${$as_var+set} = xset \
8905  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8906done
8907PS1='$ '
8908PS2='> '
8909PS4='+ '
8910
8911# NLS nuisances.
8912LC_ALL=C
8913export LC_ALL
8914LANGUAGE=C
8915export LANGUAGE
8916
8917# CDPATH.
8918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8919
8920
8921# as_fn_error STATUS ERROR [LINENO LOG_FD]
8922# ----------------------------------------
8923# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8924# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8925# script with STATUS, using 1 if that was 0.
8926as_fn_error ()
8927{
8928  as_status=$1; test $as_status -eq 0 && as_status=1
8929  if test "$4"; then
8930    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8931    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8932  fi
8933  $as_echo "$as_me: error: $2" >&2
8934  as_fn_exit $as_status
8935} # as_fn_error
8936
8937
8938# as_fn_set_status STATUS
8939# -----------------------
8940# Set $? to STATUS, without forking.
8941as_fn_set_status ()
8942{
8943  return $1
8944} # as_fn_set_status
8945
8946# as_fn_exit STATUS
8947# -----------------
8948# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8949as_fn_exit ()
8950{
8951  set +e
8952  as_fn_set_status $1
8953  exit $1
8954} # as_fn_exit
8955
8956# as_fn_unset VAR
8957# ---------------
8958# Portably unset VAR.
8959as_fn_unset ()
8960{
8961  { eval $1=; unset $1;}
8962}
8963as_unset=as_fn_unset
8964# as_fn_append VAR VALUE
8965# ----------------------
8966# Append the text in VALUE to the end of the definition contained in VAR. Take
8967# advantage of any shell optimizations that allow amortized linear growth over
8968# repeated appends, instead of the typical quadratic growth present in naive
8969# implementations.
8970if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8971  eval 'as_fn_append ()
8972  {
8973    eval $1+=\$2
8974  }'
8975else
8976  as_fn_append ()
8977  {
8978    eval $1=\$$1\$2
8979  }
8980fi # as_fn_append
8981
8982# as_fn_arith ARG...
8983# ------------------
8984# Perform arithmetic evaluation on the ARGs, and store the result in the
8985# global $as_val. Take advantage of shells that can avoid forks. The arguments
8986# must be portable across $(()) and expr.
8987if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8988  eval 'as_fn_arith ()
8989  {
8990    as_val=$(( $* ))
8991  }'
8992else
8993  as_fn_arith ()
8994  {
8995    as_val=`expr "$@" || test $? -eq 1`
8996  }
8997fi # as_fn_arith
8998
8999
9000if expr a : '\(a\)' >/dev/null 2>&1 &&
9001   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9002  as_expr=expr
9003else
9004  as_expr=false
9005fi
9006
9007if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9008  as_basename=basename
9009else
9010  as_basename=false
9011fi
9012
9013if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9014  as_dirname=dirname
9015else
9016  as_dirname=false
9017fi
9018
9019as_me=`$as_basename -- "$0" ||
9020$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9021	 X"$0" : 'X\(//\)$' \| \
9022	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9023$as_echo X/"$0" |
9024    sed '/^.*\/\([^/][^/]*\)\/*$/{
9025	    s//\1/
9026	    q
9027	  }
9028	  /^X\/\(\/\/\)$/{
9029	    s//\1/
9030	    q
9031	  }
9032	  /^X\/\(\/\).*/{
9033	    s//\1/
9034	    q
9035	  }
9036	  s/.*/./; q'`
9037
9038# Avoid depending upon Character Ranges.
9039as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9040as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9041as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9042as_cr_digits='0123456789'
9043as_cr_alnum=$as_cr_Letters$as_cr_digits
9044
9045ECHO_C= ECHO_N= ECHO_T=
9046case `echo -n x` in #(((((
9047-n*)
9048  case `echo 'xy\c'` in
9049  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9050  xy)  ECHO_C='\c';;
9051  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9052       ECHO_T='	';;
9053  esac;;
9054*)
9055  ECHO_N='-n';;
9056esac
9057
9058rm -f conf$$ conf$$.exe conf$$.file
9059if test -d conf$$.dir; then
9060  rm -f conf$$.dir/conf$$.file
9061else
9062  rm -f conf$$.dir
9063  mkdir conf$$.dir 2>/dev/null
9064fi
9065if (echo >conf$$.file) 2>/dev/null; then
9066  if ln -s conf$$.file conf$$ 2>/dev/null; then
9067    as_ln_s='ln -s'
9068    # ... but there are two gotchas:
9069    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9070    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9071    # In both cases, we have to default to `cp -pR'.
9072    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9073      as_ln_s='cp -pR'
9074  elif ln conf$$.file conf$$ 2>/dev/null; then
9075    as_ln_s=ln
9076  else
9077    as_ln_s='cp -pR'
9078  fi
9079else
9080  as_ln_s='cp -pR'
9081fi
9082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9083rmdir conf$$.dir 2>/dev/null
9084
9085
9086# as_fn_mkdir_p
9087# -------------
9088# Create "$as_dir" as a directory, including parents if necessary.
9089as_fn_mkdir_p ()
9090{
9091
9092  case $as_dir in #(
9093  -*) as_dir=./$as_dir;;
9094  esac
9095  test -d "$as_dir" || eval $as_mkdir_p || {
9096    as_dirs=
9097    while :; do
9098      case $as_dir in #(
9099      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9100      *) as_qdir=$as_dir;;
9101      esac
9102      as_dirs="'$as_qdir' $as_dirs"
9103      as_dir=`$as_dirname -- "$as_dir" ||
9104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9105	 X"$as_dir" : 'X\(//\)[^/]' \| \
9106	 X"$as_dir" : 'X\(//\)$' \| \
9107	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9108$as_echo X"$as_dir" |
9109    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9110	    s//\1/
9111	    q
9112	  }
9113	  /^X\(\/\/\)[^/].*/{
9114	    s//\1/
9115	    q
9116	  }
9117	  /^X\(\/\/\)$/{
9118	    s//\1/
9119	    q
9120	  }
9121	  /^X\(\/\).*/{
9122	    s//\1/
9123	    q
9124	  }
9125	  s/.*/./; q'`
9126      test -d "$as_dir" && break
9127    done
9128    test -z "$as_dirs" || eval "mkdir $as_dirs"
9129  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9130
9131
9132} # as_fn_mkdir_p
9133if mkdir -p . 2>/dev/null; then
9134  as_mkdir_p='mkdir -p "$as_dir"'
9135else
9136  test -d ./-p && rmdir ./-p
9137  as_mkdir_p=false
9138fi
9139
9140
9141# as_fn_executable_p FILE
9142# -----------------------
9143# Test if FILE is an executable regular file.
9144as_fn_executable_p ()
9145{
9146  test -f "$1" && test -x "$1"
9147} # as_fn_executable_p
9148as_test_x='test -x'
9149as_executable_p=as_fn_executable_p
9150
9151# Sed expression to map a string onto a valid CPP name.
9152as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9153
9154# Sed expression to map a string onto a valid variable name.
9155as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9156
9157
9158exec 6>&1
9159## ----------------------------------- ##
9160## Main body of $CONFIG_STATUS script. ##
9161## ----------------------------------- ##
9162_ASEOF
9163test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9164
9165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9166# Save the log message, to keep $0 and so on meaningful, and to
9167# report actual input values of CONFIG_FILES etc. instead of their
9168# values after options handling.
9169ac_log="
9170This file was extended by yasm $as_me 1.3.0, which was
9171generated by GNU Autoconf 2.69.  Invocation command line was
9172
9173  CONFIG_FILES    = $CONFIG_FILES
9174  CONFIG_HEADERS  = $CONFIG_HEADERS
9175  CONFIG_LINKS    = $CONFIG_LINKS
9176  CONFIG_COMMANDS = $CONFIG_COMMANDS
9177  $ $0 $@
9178
9179on `(hostname || uname -n) 2>/dev/null | sed 1q`
9180"
9181
9182_ACEOF
9183
9184case $ac_config_files in *"
9185"*) set x $ac_config_files; shift; ac_config_files=$*;;
9186esac
9187
9188case $ac_config_headers in *"
9189"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9190esac
9191
9192
9193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9194# Files that config.status was made for.
9195config_files="$ac_config_files"
9196config_headers="$ac_config_headers"
9197config_commands="$ac_config_commands"
9198
9199_ACEOF
9200
9201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9202ac_cs_usage="\
9203\`$as_me' instantiates files and other configuration actions
9204from templates according to the current configuration.  Unless the files
9205and actions are specified as TAGs, all are instantiated by default.
9206
9207Usage: $0 [OPTION]... [TAG]...
9208
9209  -h, --help       print this help, then exit
9210  -V, --version    print version number and configuration settings, then exit
9211      --config     print configuration, then exit
9212  -q, --quiet, --silent
9213                   do not print progress messages
9214  -d, --debug      don't remove temporary files
9215      --recheck    update $as_me by reconfiguring in the same conditions
9216      --file=FILE[:TEMPLATE]
9217                   instantiate the configuration file FILE
9218      --header=FILE[:TEMPLATE]
9219                   instantiate the configuration header FILE
9220
9221Configuration files:
9222$config_files
9223
9224Configuration headers:
9225$config_headers
9226
9227Configuration commands:
9228$config_commands
9229
9230Report bugs to <bug-yasm@tortall.net>."
9231
9232_ACEOF
9233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9234ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9235ac_cs_version="\\
9236yasm config.status 1.3.0
9237configured by $0, generated by GNU Autoconf 2.69,
9238  with options \\"\$ac_cs_config\\"
9239
9240Copyright (C) 2012 Free Software Foundation, Inc.
9241This config.status script is free software; the Free Software Foundation
9242gives unlimited permission to copy, distribute and modify it."
9243
9244ac_pwd='$ac_pwd'
9245srcdir='$srcdir'
9246INSTALL='$INSTALL'
9247MKDIR_P='$MKDIR_P'
9248AWK='$AWK'
9249test -n "\$AWK" || AWK=awk
9250_ACEOF
9251
9252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9253# The default lists apply if the user does not specify any file.
9254ac_need_defaults=:
9255while test $# != 0
9256do
9257  case $1 in
9258  --*=?*)
9259    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9260    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9261    ac_shift=:
9262    ;;
9263  --*=)
9264    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9265    ac_optarg=
9266    ac_shift=:
9267    ;;
9268  *)
9269    ac_option=$1
9270    ac_optarg=$2
9271    ac_shift=shift
9272    ;;
9273  esac
9274
9275  case $ac_option in
9276  # Handling of the options.
9277  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9278    ac_cs_recheck=: ;;
9279  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9280    $as_echo "$ac_cs_version"; exit ;;
9281  --config | --confi | --conf | --con | --co | --c )
9282    $as_echo "$ac_cs_config"; exit ;;
9283  --debug | --debu | --deb | --de | --d | -d )
9284    debug=: ;;
9285  --file | --fil | --fi | --f )
9286    $ac_shift
9287    case $ac_optarg in
9288    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9289    '') as_fn_error $? "missing file argument" ;;
9290    esac
9291    as_fn_append CONFIG_FILES " '$ac_optarg'"
9292    ac_need_defaults=false;;
9293  --header | --heade | --head | --hea )
9294    $ac_shift
9295    case $ac_optarg in
9296    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9297    esac
9298    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9299    ac_need_defaults=false;;
9300  --he | --h)
9301    # Conflict between --help and --header
9302    as_fn_error $? "ambiguous option: \`$1'
9303Try \`$0 --help' for more information.";;
9304  --help | --hel | -h )
9305    $as_echo "$ac_cs_usage"; exit ;;
9306  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9307  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9308    ac_cs_silent=: ;;
9309
9310  # This is an error.
9311  -*) as_fn_error $? "unrecognized option: \`$1'
9312Try \`$0 --help' for more information." ;;
9313
9314  *) as_fn_append ac_config_targets " $1"
9315     ac_need_defaults=false ;;
9316
9317  esac
9318  shift
9319done
9320
9321ac_configure_extra_args=
9322
9323if $ac_cs_silent; then
9324  exec 6>/dev/null
9325  ac_configure_extra_args="$ac_configure_extra_args --silent"
9326fi
9327
9328_ACEOF
9329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9330if \$ac_cs_recheck; then
9331  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9332  shift
9333  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9334  CONFIG_SHELL='$SHELL'
9335  export CONFIG_SHELL
9336  exec "\$@"
9337fi
9338
9339_ACEOF
9340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9341exec 5>>config.log
9342{
9343  echo
9344  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9345## Running $as_me. ##
9346_ASBOX
9347  $as_echo "$ac_log"
9348} >&5
9349
9350_ACEOF
9351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9352#
9353# INIT-COMMANDS
9354#
9355AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9356# variables for create stdint.h replacement
9357PACKAGE="$PACKAGE"
9358VERSION="$VERSION"
9359ac_stdint_h="$ac_stdint_h"
9360_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
9361ac_cv_stdint_message="$ac_cv_stdint_message"
9362ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
9363ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
9364ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
9365ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
9366ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
9367ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
9368ac_cv_char_data_model="$ac_cv_char_data_model"
9369ac_cv_long_data_model="$ac_cv_long_data_model"
9370ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
9371ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
9372ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
9373
9374# Capture the value of obsolete ALL_LINGUAS because we need it to compute
9375    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9376    # from automake < 1.5.
9377    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9378    # Capture the value of LINGUAS because we need it to compute CATALOGS.
9379    LINGUAS="${LINGUAS-%UNSET%}"
9380
9381
9382_ACEOF
9383
9384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9385
9386# Handling of arguments.
9387for ac_config_target in $ac_config_targets
9388do
9389  case $ac_config_target in
9390    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9391    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9392    "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
9393    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9394    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9395    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9396
9397  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9398  esac
9399done
9400
9401
9402# If the user did not use the arguments to specify the items to instantiate,
9403# then the envvar interface is used.  Set only those that are not.
9404# We use the long form for the default assignment because of an extremely
9405# bizarre bug on SunOS 4.1.3.
9406if $ac_need_defaults; then
9407  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9408  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9409  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9410fi
9411
9412# Have a temporary directory for convenience.  Make it in the build tree
9413# simply because there is no reason against having it here, and in addition,
9414# creating and moving files from /tmp can sometimes cause problems.
9415# Hook for its removal unless debugging.
9416# Note that there is a small window in which the directory will not be cleaned:
9417# after its creation but before its name has been assigned to `$tmp'.
9418$debug ||
9419{
9420  tmp= ac_tmp=
9421  trap 'exit_status=$?
9422  : "${ac_tmp:=$tmp}"
9423  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9424' 0
9425  trap 'as_fn_exit 1' 1 2 13 15
9426}
9427# Create a (secure) tmp directory for tmp files.
9428
9429{
9430  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9431  test -d "$tmp"
9432}  ||
9433{
9434  tmp=./conf$$-$RANDOM
9435  (umask 077 && mkdir "$tmp")
9436} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9437ac_tmp=$tmp
9438
9439# Set up the scripts for CONFIG_FILES section.
9440# No need to generate them if there are no CONFIG_FILES.
9441# This happens for instance with `./config.status config.h'.
9442if test -n "$CONFIG_FILES"; then
9443
9444
9445ac_cr=`echo X | tr X '\015'`
9446# On cygwin, bash can eat \r inside `` if the user requested igncr.
9447# But we know of no other shell where ac_cr would be empty at this
9448# point, so we can use a bashism as a fallback.
9449if test "x$ac_cr" = x; then
9450  eval ac_cr=\$\'\\r\'
9451fi
9452ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9453if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9454  ac_cs_awk_cr='\\r'
9455else
9456  ac_cs_awk_cr=$ac_cr
9457fi
9458
9459echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9460_ACEOF
9461
9462
9463{
9464  echo "cat >conf$$subs.awk <<_ACEOF" &&
9465  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9466  echo "_ACEOF"
9467} >conf$$subs.sh ||
9468  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9469ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9470ac_delim='%!_!# '
9471for ac_last_try in false false false false false :; do
9472  . ./conf$$subs.sh ||
9473    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9474
9475  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9476  if test $ac_delim_n = $ac_delim_num; then
9477    break
9478  elif $ac_last_try; then
9479    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9480  else
9481    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9482  fi
9483done
9484rm -f conf$$subs.sh
9485
9486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9487cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9488_ACEOF
9489sed -n '
9490h
9491s/^/S["/; s/!.*/"]=/
9492p
9493g
9494s/^[^!]*!//
9495:repl
9496t repl
9497s/'"$ac_delim"'$//
9498t delim
9499:nl
9500h
9501s/\(.\{148\}\)..*/\1/
9502t more1
9503s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9504p
9505n
9506b repl
9507:more1
9508s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9509p
9510g
9511s/.\{148\}//
9512t nl
9513:delim
9514h
9515s/\(.\{148\}\)..*/\1/
9516t more2
9517s/["\\]/\\&/g; s/^/"/; s/$/"/
9518p
9519b
9520:more2
9521s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9522p
9523g
9524s/.\{148\}//
9525t delim
9526' <conf$$subs.awk | sed '
9527/^[^""]/{
9528  N
9529  s/\n//
9530}
9531' >>$CONFIG_STATUS || ac_write_fail=1
9532rm -f conf$$subs.awk
9533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9534_ACAWK
9535cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9536  for (key in S) S_is_set[key] = 1
9537  FS = ""
9538
9539}
9540{
9541  line = $ 0
9542  nfields = split(line, field, "@")
9543  substed = 0
9544  len = length(field[1])
9545  for (i = 2; i < nfields; i++) {
9546    key = field[i]
9547    keylen = length(key)
9548    if (S_is_set[key]) {
9549      value = S[key]
9550      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9551      len += length(value) + length(field[++i])
9552      substed = 1
9553    } else
9554      len += 1 + keylen
9555  }
9556
9557  print line
9558}
9559
9560_ACAWK
9561_ACEOF
9562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9563if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9564  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9565else
9566  cat
9567fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9568  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9569_ACEOF
9570
9571# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9572# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9573# trailing colons and then remove the whole line if VPATH becomes empty
9574# (actually we leave an empty line to preserve line numbers).
9575if test "x$srcdir" = x.; then
9576  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
9577h
9578s///
9579s/^/:/
9580s/[	 ]*$/:/
9581s/:\$(srcdir):/:/g
9582s/:\${srcdir}:/:/g
9583s/:@srcdir@:/:/g
9584s/^:*//
9585s/:*$//
9586x
9587s/\(=[	 ]*\).*/\1/
9588G
9589s/\n//
9590s/^[^=]*=[	 ]*$//
9591}'
9592fi
9593
9594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9595fi # test -n "$CONFIG_FILES"
9596
9597# Set up the scripts for CONFIG_HEADERS section.
9598# No need to generate them if there are no CONFIG_HEADERS.
9599# This happens for instance with `./config.status Makefile'.
9600if test -n "$CONFIG_HEADERS"; then
9601cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9602BEGIN {
9603_ACEOF
9604
9605# Transform confdefs.h into an awk script `defines.awk', embedded as
9606# here-document in config.status, that substitutes the proper values into
9607# config.h.in to produce config.h.
9608
9609# Create a delimiter string that does not exist in confdefs.h, to ease
9610# handling of long lines.
9611ac_delim='%!_!# '
9612for ac_last_try in false false :; do
9613  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9614  if test -z "$ac_tt"; then
9615    break
9616  elif $ac_last_try; then
9617    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9618  else
9619    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9620  fi
9621done
9622
9623# For the awk script, D is an array of macro values keyed by name,
9624# likewise P contains macro parameters if any.  Preserve backslash
9625# newline sequences.
9626
9627ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9628sed -n '
9629s/.\{148\}/&'"$ac_delim"'/g
9630t rset
9631:rset
9632s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
9633t def
9634d
9635:def
9636s/\\$//
9637t bsnl
9638s/["\\]/\\&/g
9639s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9640D["\1"]=" \3"/p
9641s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
9642d
9643:bsnl
9644s/["\\]/\\&/g
9645s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9646D["\1"]=" \3\\\\\\n"\\/p
9647t cont
9648s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9649t cont
9650d
9651:cont
9652n
9653s/.\{148\}/&'"$ac_delim"'/g
9654t clear
9655:clear
9656s/\\$//
9657t bsnlc
9658s/["\\]/\\&/g; s/^/"/; s/$/"/p
9659d
9660:bsnlc
9661s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9662b cont
9663' <confdefs.h | sed '
9664s/'"$ac_delim"'/"\\\
9665"/g' >>$CONFIG_STATUS || ac_write_fail=1
9666
9667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9668  for (key in D) D_is_set[key] = 1
9669  FS = ""
9670}
9671/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9672  line = \$ 0
9673  split(line, arg, " ")
9674  if (arg[1] == "#") {
9675    defundef = arg[2]
9676    mac1 = arg[3]
9677  } else {
9678    defundef = substr(arg[1], 2)
9679    mac1 = arg[2]
9680  }
9681  split(mac1, mac2, "(") #)
9682  macro = mac2[1]
9683  prefix = substr(line, 1, index(line, defundef) - 1)
9684  if (D_is_set[macro]) {
9685    # Preserve the white space surrounding the "#".
9686    print prefix "define", macro P[macro] D[macro]
9687    next
9688  } else {
9689    # Replace #undef with comments.  This is necessary, for example,
9690    # in the case of _POSIX_SOURCE, which is predefined and required
9691    # on some systems where configure will not decide to define it.
9692    if (defundef == "undef") {
9693      print "/*", prefix defundef, macro, "*/"
9694      next
9695    }
9696  }
9697}
9698{ print }
9699_ACAWK
9700_ACEOF
9701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9702  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9703fi # test -n "$CONFIG_HEADERS"
9704
9705
9706eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9707shift
9708for ac_tag
9709do
9710  case $ac_tag in
9711  :[FHLC]) ac_mode=$ac_tag; continue;;
9712  esac
9713  case $ac_mode$ac_tag in
9714  :[FHL]*:*);;
9715  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9716  :[FH]-) ac_tag=-:-;;
9717  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9718  esac
9719  ac_save_IFS=$IFS
9720  IFS=:
9721  set x $ac_tag
9722  IFS=$ac_save_IFS
9723  shift
9724  ac_file=$1
9725  shift
9726
9727  case $ac_mode in
9728  :L) ac_source=$1;;
9729  :[FH])
9730    ac_file_inputs=
9731    for ac_f
9732    do
9733      case $ac_f in
9734      -) ac_f="$ac_tmp/stdin";;
9735      *) # Look for the file first in the build tree, then in the source tree
9736	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
9737	 # because $ac_f cannot contain `:'.
9738	 test -f "$ac_f" ||
9739	   case $ac_f in
9740	   [\\/$]*) false;;
9741	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9742	   esac ||
9743	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9744      esac
9745      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9746      as_fn_append ac_file_inputs " '$ac_f'"
9747    done
9748
9749    # Let's still pretend it is `configure' which instantiates (i.e., don't
9750    # use $as_me), people would be surprised to read:
9751    #    /* config.h.  Generated by config.status.  */
9752    configure_input='Generated from '`
9753	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9754	`' by configure.'
9755    if test x"$ac_file" != x-; then
9756      configure_input="$ac_file.  $configure_input"
9757      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9758$as_echo "$as_me: creating $ac_file" >&6;}
9759    fi
9760    # Neutralize special characters interpreted by sed in replacement strings.
9761    case $configure_input in #(
9762    *\&* | *\|* | *\\* )
9763       ac_sed_conf_input=`$as_echo "$configure_input" |
9764       sed 's/[\\\\&|]/\\\\&/g'`;; #(
9765    *) ac_sed_conf_input=$configure_input;;
9766    esac
9767
9768    case $ac_tag in
9769    *:-:* | *:-) cat >"$ac_tmp/stdin" \
9770      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9771    esac
9772    ;;
9773  esac
9774
9775  ac_dir=`$as_dirname -- "$ac_file" ||
9776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9777	 X"$ac_file" : 'X\(//\)[^/]' \| \
9778	 X"$ac_file" : 'X\(//\)$' \| \
9779	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9780$as_echo X"$ac_file" |
9781    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9782	    s//\1/
9783	    q
9784	  }
9785	  /^X\(\/\/\)[^/].*/{
9786	    s//\1/
9787	    q
9788	  }
9789	  /^X\(\/\/\)$/{
9790	    s//\1/
9791	    q
9792	  }
9793	  /^X\(\/\).*/{
9794	    s//\1/
9795	    q
9796	  }
9797	  s/.*/./; q'`
9798  as_dir="$ac_dir"; as_fn_mkdir_p
9799  ac_builddir=.
9800
9801case "$ac_dir" in
9802.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9803*)
9804  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9805  # A ".." for each directory in $ac_dir_suffix.
9806  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9807  case $ac_top_builddir_sub in
9808  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9809  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9810  esac ;;
9811esac
9812ac_abs_top_builddir=$ac_pwd
9813ac_abs_builddir=$ac_pwd$ac_dir_suffix
9814# for backward compatibility:
9815ac_top_builddir=$ac_top_build_prefix
9816
9817case $srcdir in
9818  .)  # We are building in place.
9819    ac_srcdir=.
9820    ac_top_srcdir=$ac_top_builddir_sub
9821    ac_abs_top_srcdir=$ac_pwd ;;
9822  [\\/]* | ?:[\\/]* )  # Absolute name.
9823    ac_srcdir=$srcdir$ac_dir_suffix;
9824    ac_top_srcdir=$srcdir
9825    ac_abs_top_srcdir=$srcdir ;;
9826  *) # Relative name.
9827    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9828    ac_top_srcdir=$ac_top_build_prefix$srcdir
9829    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9830esac
9831ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9832
9833
9834  case $ac_mode in
9835  :F)
9836  #
9837  # CONFIG_FILE
9838  #
9839
9840  case $INSTALL in
9841  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9842  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9843  esac
9844  ac_MKDIR_P=$MKDIR_P
9845  case $MKDIR_P in
9846  [\\/$]* | ?:[\\/]* ) ;;
9847  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9848  esac
9849_ACEOF
9850
9851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9852# If the template does not know about datarootdir, expand it.
9853# FIXME: This hack should be removed a few years after 2.60.
9854ac_datarootdir_hack=; ac_datarootdir_seen=
9855ac_sed_dataroot='
9856/datarootdir/ {
9857  p
9858  q
9859}
9860/@datadir@/p
9861/@docdir@/p
9862/@infodir@/p
9863/@localedir@/p
9864/@mandir@/p'
9865case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9866*datarootdir*) ac_datarootdir_seen=yes;;
9867*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9868  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9869$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9870_ACEOF
9871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9872  ac_datarootdir_hack='
9873  s&@datadir@&$datadir&g
9874  s&@docdir@&$docdir&g
9875  s&@infodir@&$infodir&g
9876  s&@localedir@&$localedir&g
9877  s&@mandir@&$mandir&g
9878  s&\\\${datarootdir}&$datarootdir&g' ;;
9879esac
9880_ACEOF
9881
9882# Neutralize VPATH when `$srcdir' = `.'.
9883# Shell code in configure.ac might set extrasub.
9884# FIXME: do we really want to maintain this feature?
9885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9886ac_sed_extra="$ac_vpsub
9887$extrasub
9888_ACEOF
9889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9890:t
9891/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9892s|@configure_input@|$ac_sed_conf_input|;t t
9893s&@top_builddir@&$ac_top_builddir_sub&;t t
9894s&@top_build_prefix@&$ac_top_build_prefix&;t t
9895s&@srcdir@&$ac_srcdir&;t t
9896s&@abs_srcdir@&$ac_abs_srcdir&;t t
9897s&@top_srcdir@&$ac_top_srcdir&;t t
9898s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9899s&@builddir@&$ac_builddir&;t t
9900s&@abs_builddir@&$ac_abs_builddir&;t t
9901s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9902s&@INSTALL@&$ac_INSTALL&;t t
9903s&@MKDIR_P@&$ac_MKDIR_P&;t t
9904$ac_datarootdir_hack
9905"
9906eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9907  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9908
9909test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9910  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9911  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
9912      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9913  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9914which seems to be undefined.  Please make sure it is defined" >&5
9915$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9916which seems to be undefined.  Please make sure it is defined" >&2;}
9917
9918  rm -f "$ac_tmp/stdin"
9919  case $ac_file in
9920  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9921  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9922  esac \
9923  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9924 ;;
9925  :H)
9926  #
9927  # CONFIG_HEADER
9928  #
9929  if test x"$ac_file" != x-; then
9930    {
9931      $as_echo "/* $configure_input  */" \
9932      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9933    } >"$ac_tmp/config.h" \
9934      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9935    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9936      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9937$as_echo "$as_me: $ac_file is unchanged" >&6;}
9938    else
9939      rm -f "$ac_file"
9940      mv "$ac_tmp/config.h" "$ac_file" \
9941	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9942    fi
9943  else
9944    $as_echo "/* $configure_input  */" \
9945      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9946      || as_fn_error $? "could not create -" "$LINENO" 5
9947  fi
9948# Compute "$ac_file"'s index in $config_headers.
9949_am_arg="$ac_file"
9950_am_stamp_count=1
9951for _am_header in $config_headers :; do
9952  case $_am_header in
9953    $_am_arg | $_am_arg:* )
9954      break ;;
9955    * )
9956      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9957  esac
9958done
9959echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9960$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9961	 X"$_am_arg" : 'X\(//\)[^/]' \| \
9962	 X"$_am_arg" : 'X\(//\)$' \| \
9963	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9964$as_echo X"$_am_arg" |
9965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9966	    s//\1/
9967	    q
9968	  }
9969	  /^X\(\/\/\)[^/].*/{
9970	    s//\1/
9971	    q
9972	  }
9973	  /^X\(\/\/\)$/{
9974	    s//\1/
9975	    q
9976	  }
9977	  /^X\(\/\).*/{
9978	    s//\1/
9979	    q
9980	  }
9981	  s/.*/./; q'`/stamp-h$_am_stamp_count
9982 ;;
9983
9984  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9985$as_echo "$as_me: executing $ac_file commands" >&6;}
9986 ;;
9987  esac
9988
9989
9990  case $ac_file$ac_mode in
9991    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9992  # Older Autoconf quotes --file arguments for eval, but not when files
9993  # are listed without --file.  Let's play safe and only enable the eval
9994  # if we detect the quoting.
9995  case $CONFIG_FILES in
9996  *\'*) eval set x "$CONFIG_FILES" ;;
9997  *)   set x $CONFIG_FILES ;;
9998  esac
9999  shift
10000  for mf
10001  do
10002    # Strip MF so we end up with the name of the file.
10003    mf=`echo "$mf" | sed -e 's/:.*$//'`
10004    # Check whether this is an Automake generated Makefile or not.
10005    # We used to match only the files named 'Makefile.in', but
10006    # some people rename them; so instead we look at the file content.
10007    # Grep'ing the first line is not enough: some people post-process
10008    # each Makefile.in and add a new line on top of each file to say so.
10009    # Grep'ing the whole file is not good either: AIX grep has a line
10010    # limit of 2048, but all sed's we know have understand at least 4000.
10011    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10012      dirpart=`$as_dirname -- "$mf" ||
10013$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10014	 X"$mf" : 'X\(//\)[^/]' \| \
10015	 X"$mf" : 'X\(//\)$' \| \
10016	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10017$as_echo X"$mf" |
10018    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10019	    s//\1/
10020	    q
10021	  }
10022	  /^X\(\/\/\)[^/].*/{
10023	    s//\1/
10024	    q
10025	  }
10026	  /^X\(\/\/\)$/{
10027	    s//\1/
10028	    q
10029	  }
10030	  /^X\(\/\).*/{
10031	    s//\1/
10032	    q
10033	  }
10034	  s/.*/./; q'`
10035    else
10036      continue
10037    fi
10038    # Extract the definition of DEPDIR, am__include, and am__quote
10039    # from the Makefile without running 'make'.
10040    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10041    test -z "$DEPDIR" && continue
10042    am__include=`sed -n 's/^am__include = //p' < "$mf"`
10043    test -z "$am__include" && continue
10044    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10045    # Find all dependency output files, they are included files with
10046    # $(DEPDIR) in their names.  We invoke sed twice because it is the
10047    # simplest approach to changing $(DEPDIR) to its actual value in the
10048    # expansion.
10049    for file in `sed -n "
10050      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10051	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10052      # Make sure the directory exists.
10053      test -f "$dirpart/$file" && continue
10054      fdir=`$as_dirname -- "$file" ||
10055$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10056	 X"$file" : 'X\(//\)[^/]' \| \
10057	 X"$file" : 'X\(//\)$' \| \
10058	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10059$as_echo X"$file" |
10060    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10061	    s//\1/
10062	    q
10063	  }
10064	  /^X\(\/\/\)[^/].*/{
10065	    s//\1/
10066	    q
10067	  }
10068	  /^X\(\/\/\)$/{
10069	    s//\1/
10070	    q
10071	  }
10072	  /^X\(\/\).*/{
10073	    s//\1/
10074	    q
10075	  }
10076	  s/.*/./; q'`
10077      as_dir=$dirpart/$fdir; as_fn_mkdir_p
10078      # echo "creating $dirpart/$file"
10079      echo '# dummy' > "$dirpart/$file"
10080    done
10081  done
10082}
10083 ;;
10084    "$ac_stdint_h":C)
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
10086$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
10087ac_stdint=$tmp/_stdint.h
10088
10089echo "#ifndef" $_ac_stdint_h >$ac_stdint
10090echo "#define" $_ac_stdint_h "1" >>$ac_stdint
10091echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
10092echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
10093echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
10094if test "_$ac_cv_header_stdint_t" != "_" ; then
10095echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
10096echo "#include <stdint.h>" >>$ac_stdint
10097echo "#endif" >>$ac_stdint
10098echo "#endif" >>$ac_stdint
10099else
10100
10101cat >>$ac_stdint <<STDINT_EOF
10102
10103/* ................... shortcircuit part ........................... */
10104
10105#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
10106#include <stdint.h>
10107#else
10108#include <stddef.h>
10109
10110/* .................... configured part ............................ */
10111
10112STDINT_EOF
10113
10114echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
10115if test "_$ac_cv_header_stdint_x" != "_" ; then
10116  ac_header="$ac_cv_header_stdint_x"
10117  echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
10118else
10119  echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
10120fi
10121
10122echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
10123if  test "_$ac_cv_header_stdint_o" != "_" ; then
10124  ac_header="$ac_cv_header_stdint_o"
10125  echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
10126else
10127  echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
10128fi
10129
10130echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
10131if  test "_$ac_cv_header_stdint_u" != "_" ; then
10132  ac_header="$ac_cv_header_stdint_u"
10133  echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
10134else
10135  echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
10136fi
10137
10138echo "" >>$ac_stdint
10139
10140if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
10141  echo "#include <$ac_header>" >>$ac_stdint
10142  echo "" >>$ac_stdint
10143fi fi
10144
10145echo "/* which 64bit typedef has been found */" >>$ac_stdint
10146if test "$ac_cv_type_uint64_t" = "yes" ; then
10147echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
10148else
10149echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
10150fi
10151if test "$ac_cv_type_u_int64_t" = "yes" ; then
10152echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
10153else
10154echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
10155fi
10156echo "" >>$ac_stdint
10157
10158echo "/* which type model has been detected */" >>$ac_stdint
10159if test "_$ac_cv_char_data_model" != "_" ; then
10160echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
10161echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
10162else
10163echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
10164echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
10165fi
10166echo "" >>$ac_stdint
10167
10168echo "/* whether int_least types were detected */" >>$ac_stdint
10169if test "$ac_cv_type_int_least32_t" = "yes"; then
10170echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
10171else
10172echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
10173fi
10174echo "/* whether int_fast types were detected */" >>$ac_stdint
10175if test "$ac_cv_type_int_fast32_t" = "yes"; then
10176echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
10177else
10178echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
10179fi
10180echo "/* whether intmax_t type was detected */" >>$ac_stdint
10181if test "$ac_cv_type_intmax_t" = "yes"; then
10182echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
10183else
10184echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
10185fi
10186echo "" >>$ac_stdint
10187
10188  cat >>$ac_stdint <<STDINT_EOF
10189/* .................... detections part ............................ */
10190
10191/* whether we need to define bitspecific types from compiler base types */
10192#ifndef _STDINT_HEADER_INTPTR
10193#ifndef _STDINT_HEADER_UINT32
10194#ifndef _STDINT_HEADER_U_INT32
10195#define _STDINT_NEED_INT_MODEL_T
10196#else
10197#define _STDINT_HAVE_U_INT_TYPES
10198#endif
10199#endif
10200#endif
10201
10202#ifdef _STDINT_HAVE_U_INT_TYPES
10203#undef _STDINT_NEED_INT_MODEL_T
10204#endif
10205
10206#ifdef  _STDINT_CHAR_MODEL
10207#if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
10208#ifndef _STDINT_BYTE_MODEL
10209#define _STDINT_BYTE_MODEL 12
10210#endif
10211#endif
10212#endif
10213
10214#ifndef _STDINT_HAVE_INT_LEAST32_T
10215#define _STDINT_NEED_INT_LEAST_T
10216#endif
10217
10218#ifndef _STDINT_HAVE_INT_FAST32_T
10219#define _STDINT_NEED_INT_FAST_T
10220#endif
10221
10222#ifndef _STDINT_HEADER_INTPTR
10223#define _STDINT_NEED_INTPTR_T
10224#endif
10225
10226#ifndef _STDINT_HAVE_INTMAX_T
10227#define _STDINT_NEED_INTMAX_T
10228#endif
10229
10230/* .................... definition part ............................ */
10231
10232/* some system headers have good uint64_t */
10233#ifndef _HAVE_UINT64_T
10234#if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
10235#define _HAVE_UINT64_T
10236#elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
10237#define _HAVE_UINT64_T
10238typedef u_int64_t uint64_t;
10239#endif
10240#endif
10241
10242#ifndef _HAVE_UINT64_T
10243/* .. here are some common heuristics using compiler runtime specifics */
10244#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
10245#define _HAVE_UINT64_T
10246#define _HAVE_LONGLONG_UINT64_T
10247typedef long long int64_t;
10248typedef unsigned long long uint64_t;
10249
10250#elif !defined __STRICT_ANSI__
10251#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
10252#define _HAVE_UINT64_T
10253typedef __int64 int64_t;
10254typedef unsigned __int64 uint64_t;
10255
10256#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
10257/* note: all ELF-systems seem to have loff-support which needs 64-bit */
10258#if !defined _NO_LONGLONG
10259#define _HAVE_UINT64_T
10260#define _HAVE_LONGLONG_UINT64_T
10261typedef long long int64_t;
10262typedef unsigned long long uint64_t;
10263#endif
10264
10265#elif defined __alpha || (defined __mips && defined _ABIN32)
10266#if !defined _NO_LONGLONG
10267typedef long int64_t;
10268typedef unsigned long uint64_t;
10269#endif
10270  /* compiler/cpu type to define int64_t */
10271#endif
10272#endif
10273#endif
10274
10275#if defined _STDINT_HAVE_U_INT_TYPES
10276/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
10277typedef u_int8_t uint8_t;
10278typedef u_int16_t uint16_t;
10279typedef u_int32_t uint32_t;
10280
10281/* glibc compatibility */
10282#ifndef __int8_t_defined
10283#define __int8_t_defined
10284#endif
10285#endif
10286
10287#ifdef _STDINT_NEED_INT_MODEL_T
10288/* we must guess all the basic types. Apart from byte-adressable system, */
10289/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
10290/* (btw, those nibble-addressable systems are way off, or so we assume) */
10291
10292
10293#if defined _STDINT_BYTE_MODEL
10294#if _STDINT_LONG_MODEL+0 == 242
10295/* 2:4:2 =  IP16 = a normal 16-bit system                */
10296typedef unsigned char   uint8_t;
10297typedef unsigned short  uint16_t;
10298typedef unsigned long   uint32_t;
10299#ifndef __int8_t_defined
10300#define __int8_t_defined
10301typedef          char    int8_t;
10302typedef          short   int16_t;
10303typedef          long    int32_t;
10304#endif
10305#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
10306/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
10307/* 4:4:4 = ILP32 = a normal 32-bit system                */
10308typedef unsigned char   uint8_t;
10309typedef unsigned short  uint16_t;
10310typedef unsigned int    uint32_t;
10311#ifndef __int8_t_defined
10312#define __int8_t_defined
10313typedef          char    int8_t;
10314typedef          short   int16_t;
10315typedef          int     int32_t;
10316#endif
10317#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
10318/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
10319/* 4:8:8 =  LP64 = a normal 64-bit system                 */
10320typedef unsigned char   uint8_t;
10321typedef unsigned short  uint16_t;
10322typedef unsigned int    uint32_t;
10323#ifndef __int8_t_defined
10324#define __int8_t_defined
10325typedef          char    int8_t;
10326typedef          short   int16_t;
10327typedef          int     int32_t;
10328#endif
10329/* this system has a "long" of 64bit */
10330#ifndef _HAVE_UINT64_T
10331#define _HAVE_UINT64_T
10332typedef unsigned long   uint64_t;
10333typedef          long    int64_t;
10334#endif
10335#elif _STDINT_LONG_MODEL+0 == 448
10336/*      LLP64   a 64-bit system derived from a 32-bit system */
10337typedef unsigned char   uint8_t;
10338typedef unsigned short  uint16_t;
10339typedef unsigned int    uint32_t;
10340#ifndef __int8_t_defined
10341#define __int8_t_defined
10342typedef          char    int8_t;
10343typedef          short   int16_t;
10344typedef          int     int32_t;
10345#endif
10346/* assuming the system has a "long long" */
10347#ifndef _HAVE_UINT64_T
10348#define _HAVE_UINT64_T
10349#define _HAVE_LONGLONG_UINT64_T
10350typedef unsigned long long uint64_t;
10351typedef          long long  int64_t;
10352#endif
10353#else
10354#define _STDINT_NO_INT32_T
10355#endif
10356#else
10357#define _STDINT_NO_INT8_T
10358#define _STDINT_NO_INT32_T
10359#endif
10360#endif
10361
10362/*
10363 * quote from SunOS-5.8 sys/inttypes.h:
10364 * Use at your own risk.  As of February 1996, the committee is squarely
10365 * behind the fixed sized types; the "least" and "fast" types are still being
10366 * discussed.  The probability that the "fast" types may be removed before
10367 * the standard is finalized is high enough that they are not currently
10368 * implemented.
10369 */
10370
10371#if defined _STDINT_NEED_INT_LEAST_T
10372typedef  int8_t    int_least8_t;
10373typedef  int16_t   int_least16_t;
10374typedef  int32_t   int_least32_t;
10375#ifdef _HAVE_UINT64_T
10376typedef  int64_t   int_least64_t;
10377#endif
10378
10379typedef uint8_t   uint_least8_t;
10380typedef uint16_t  uint_least16_t;
10381typedef uint32_t  uint_least32_t;
10382#ifdef _HAVE_UINT64_T
10383typedef uint64_t  uint_least64_t;
10384#endif
10385  /* least types */
10386#endif
10387
10388#if defined _STDINT_NEED_INT_FAST_T
10389typedef  int8_t    int_fast8_t;
10390typedef  int       int_fast16_t;
10391typedef  int32_t   int_fast32_t;
10392#ifdef _HAVE_UINT64_T
10393typedef  int64_t   int_fast64_t;
10394#endif
10395
10396typedef uint8_t   uint_fast8_t;
10397typedef unsigned  uint_fast16_t;
10398typedef uint32_t  uint_fast32_t;
10399#ifdef _HAVE_UINT64_T
10400typedef uint64_t  uint_fast64_t;
10401#endif
10402  /* fast types */
10403#endif
10404
10405#ifdef _STDINT_NEED_INTMAX_T
10406#ifdef _HAVE_UINT64_T
10407typedef  int64_t       intmax_t;
10408typedef uint64_t      uintmax_t;
10409#else
10410typedef          long  intmax_t;
10411typedef unsigned long uintmax_t;
10412#endif
10413#endif
10414
10415#ifdef _STDINT_NEED_INTPTR_T
10416#ifndef __intptr_t_defined
10417#define __intptr_t_defined
10418/* we encourage using "long" to store pointer values, never use "int" ! */
10419#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
10420typedef  unsinged int   uintptr_t;
10421typedef           int    intptr_t;
10422#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
10423typedef  unsigned long  uintptr_t;
10424typedef           long   intptr_t;
10425#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
10426typedef        uint64_t uintptr_t;
10427typedef         int64_t  intptr_t;
10428#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
10429typedef  unsigned long  uintptr_t;
10430typedef           long   intptr_t;
10431#endif
10432#endif
10433#endif
10434
10435/* The ISO C99 standard specifies that in C++ implementations these
10436   should only be defined if explicitly requested.  */
10437#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
10438#ifndef UINT32_C
10439
10440/* Signed.  */
10441# define INT8_C(c)      c
10442# define INT16_C(c)     c
10443# define INT32_C(c)     c
10444# ifdef _HAVE_LONGLONG_UINT64_T
10445#  define INT64_C(c)    c ## L
10446# else
10447#  define INT64_C(c)    c ## LL
10448# endif
10449
10450/* Unsigned.  */
10451# define UINT8_C(c)     c ## U
10452# define UINT16_C(c)    c ## U
10453# define UINT32_C(c)    c ## U
10454# ifdef _HAVE_LONGLONG_UINT64_T
10455#  define UINT64_C(c)   c ## UL
10456# else
10457#  define UINT64_C(c)   c ## ULL
10458# endif
10459
10460/* Maximal type.  */
10461# ifdef _HAVE_LONGLONG_UINT64_T
10462#  define INTMAX_C(c)   c ## L
10463#  define UINTMAX_C(c)  c ## UL
10464# else
10465#  define INTMAX_C(c)   c ## LL
10466#  define UINTMAX_C(c)  c ## ULL
10467# endif
10468
10469  /* literalnumbers */
10470#endif
10471#endif
10472
10473/* These limits are merily those of a two complement byte-oriented system */
10474
10475/* Minimum of signed integral types.  */
10476# define INT8_MIN               (-128)
10477# define INT16_MIN              (-32767-1)
10478# define INT32_MIN              (-2147483647-1)
10479# define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
10480/* Maximum of signed integral types.  */
10481# define INT8_MAX               (127)
10482# define INT16_MAX              (32767)
10483# define INT32_MAX              (2147483647)
10484# define INT64_MAX              (__INT64_C(9223372036854775807))
10485
10486/* Maximum of unsigned integral types.  */
10487# define UINT8_MAX              (255)
10488# define UINT16_MAX             (65535)
10489# define UINT32_MAX             (4294967295U)
10490# define UINT64_MAX             (__UINT64_C(18446744073709551615))
10491
10492/* Minimum of signed integral types having a minimum size.  */
10493# define INT_LEAST8_MIN         INT8_MIN
10494# define INT_LEAST16_MIN        INT16_MIN
10495# define INT_LEAST32_MIN        INT32_MIN
10496# define INT_LEAST64_MIN        INT64_MIN
10497/* Maximum of signed integral types having a minimum size.  */
10498# define INT_LEAST8_MAX         INT8_MAX
10499# define INT_LEAST16_MAX        INT16_MAX
10500# define INT_LEAST32_MAX        INT32_MAX
10501# define INT_LEAST64_MAX        INT64_MAX
10502
10503/* Maximum of unsigned integral types having a minimum size.  */
10504# define UINT_LEAST8_MAX        UINT8_MAX
10505# define UINT_LEAST16_MAX       UINT16_MAX
10506# define UINT_LEAST32_MAX       UINT32_MAX
10507# define UINT_LEAST64_MAX       UINT64_MAX
10508
10509  /* shortcircuit*/
10510#endif
10511  /* once */
10512#endif
10513#endif
10514STDINT_EOF
10515fi
10516    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
10517      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
10518$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
10519    else
10520      ac_dir=`$as_dirname -- "$ac_stdint_h" ||
10521$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10522	 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
10523	 X"$ac_stdint_h" : 'X\(//\)$' \| \
10524	 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
10525$as_echo X"$ac_stdint_h" |
10526    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10527	    s//\1/
10528	    q
10529	  }
10530	  /^X\(\/\/\)[^/].*/{
10531	    s//\1/
10532	    q
10533	  }
10534	  /^X\(\/\/\)$/{
10535	    s//\1/
10536	    q
10537	  }
10538	  /^X\(\/\).*/{
10539	    s//\1/
10540	    q
10541	  }
10542	  s/.*/./; q'`
10543      as_dir="$ac_dir"; as_fn_mkdir_p
10544      rm -f $ac_stdint_h
10545      mv $ac_stdint $ac_stdint_h
10546    fi
10547 ;;
10548    "po-directories":C)
10549    for ac_file in $CONFIG_FILES; do
10550      # Support "outfile[:infile[:infile...]]"
10551      case "$ac_file" in
10552        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10553      esac
10554      # PO directories have a Makefile.in generated from Makefile.in.in.
10555      case "$ac_file" in */Makefile.in)
10556        # Adjust a relative srcdir.
10557        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10558        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10559        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10560        # In autoconf-2.13 it is called $ac_given_srcdir.
10561        # In autoconf-2.50 it is called $srcdir.
10562        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10563        case "$ac_given_srcdir" in
10564          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10565          /*) top_srcdir="$ac_given_srcdir" ;;
10566          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10567        esac
10568        # Treat a directory as a PO directory if and only if it has a
10569        # POTFILES.in file. This allows packages to have multiple PO
10570        # directories under different names or in different locations.
10571        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10572          rm -f "$ac_dir/POTFILES"
10573          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10574          gt_tab=`printf '\t'`
10575          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10576          POMAKEFILEDEPS="POTFILES.in"
10577          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10578          # on $ac_dir but don't depend on user-specified configuration
10579          # parameters.
10580          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10581            # The LINGUAS file contains the set of available languages.
10582            if test -n "$OBSOLETE_ALL_LINGUAS"; then
10583              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10584            fi
10585            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10586            # Hide the ALL_LINGUAS assignment from automake < 1.5.
10587            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10588            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10589          else
10590            # The set of available languages was given in configure.in.
10591            # Hide the ALL_LINGUAS assignment from automake < 1.5.
10592            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10593          fi
10594          # Compute POFILES
10595          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10596          # Compute UPDATEPOFILES
10597          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10598          # Compute DUMMYPOFILES
10599          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10600          # Compute GMOFILES
10601          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10602          case "$ac_given_srcdir" in
10603            .) srcdirpre= ;;
10604            *) srcdirpre='$(srcdir)/' ;;
10605          esac
10606          POFILES=
10607          UPDATEPOFILES=
10608          DUMMYPOFILES=
10609          GMOFILES=
10610          for lang in $ALL_LINGUAS; do
10611            POFILES="$POFILES $srcdirpre$lang.po"
10612            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10613            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10614            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10615          done
10616          # CATALOGS depends on both $ac_dir and the user's LINGUAS
10617          # environment variable.
10618          INST_LINGUAS=
10619          if test -n "$ALL_LINGUAS"; then
10620            for presentlang in $ALL_LINGUAS; do
10621              useit=no
10622              if test "%UNSET%" != "$LINGUAS"; then
10623                desiredlanguages="$LINGUAS"
10624              else
10625                desiredlanguages="$ALL_LINGUAS"
10626              fi
10627              for desiredlang in $desiredlanguages; do
10628                # Use the presentlang catalog if desiredlang is
10629                #   a. equal to presentlang, or
10630                #   b. a variant of presentlang (because in this case,
10631                #      presentlang can be used as a fallback for messages
10632                #      which are not translated in the desiredlang catalog).
10633                case "$desiredlang" in
10634                  "$presentlang"*) useit=yes;;
10635                esac
10636              done
10637              if test $useit = yes; then
10638                INST_LINGUAS="$INST_LINGUAS $presentlang"
10639              fi
10640            done
10641          fi
10642          CATALOGS=
10643          if test -n "$INST_LINGUAS"; then
10644            for lang in $INST_LINGUAS; do
10645              CATALOGS="$CATALOGS $lang.gmo"
10646            done
10647          fi
10648          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10649          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"
10650          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10651            if test -f "$f"; then
10652              case "$f" in
10653                *.orig | *.bak | *~) ;;
10654                *) cat "$f" >> "$ac_dir/Makefile" ;;
10655              esac
10656            fi
10657          done
10658        fi
10659        ;;
10660      esac
10661    done ;;
10662
10663  esac
10664done # for ac_tag
10665
10666
10667as_fn_exit 0
10668_ACEOF
10669ac_clean_files=$ac_clean_files_save
10670
10671test $ac_write_fail = 0 ||
10672  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10673
10674
10675# configure is writing to config.log, and then calls config.status.
10676# config.status does its own redirection, appending to config.log.
10677# Unfortunately, on DOS this fails, as config.log is still kept open
10678# by configure, so config.status won't be able to write to it; its
10679# output is simply discarded.  So we exec the FD to /dev/null,
10680# effectively closing config.log, so it can be properly (re)opened and
10681# appended to by config.status.  When coming back to configure, we
10682# need to make the FD available again.
10683if test "$no_create" != yes; then
10684  ac_cs_success=:
10685  ac_config_status_args=
10686  test "$silent" = yes &&
10687    ac_config_status_args="$ac_config_status_args --quiet"
10688  exec 5>/dev/null
10689  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10690  exec 5>>config.log
10691  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10692  # would make configure fail if this is the last instruction.
10693  $ac_cs_success || as_fn_exit 1
10694fi
10695if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10696  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10697$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10698fi
10699
10700