1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Scale2x 3.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='Scale2x'
579PACKAGE_TARNAME='scale2x'
580PACKAGE_VERSION='3.1'
581PACKAGE_STRING='Scale2x 3.1'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="scalerx.c"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='am__EXEEXT_FALSE
623am__EXEEXT_TRUE
624LTLIBOBJS
625LIBOBJS
626TESTENV
627ALLOCA
628EGREP
629GREP
630CPP
631WINE
632OBJEXT
633EXEEXT
634ac_ct_CC
635CPPFLAGS
636LDFLAGS
637CFLAGS
638CC
639host_os
640host_vendor
641host_cpu
642host
643build_os
644build_vendor
645build_cpu
646build
647AM_BACKSLASH
648AM_DEFAULT_VERBOSITY
649AM_DEFAULT_V
650AM_V
651am__untar
652am__tar
653AMTAR
654am__leading_dot
655SET_MAKE
656AWK
657mkdir_p
658MKDIR_P
659INSTALL_STRIP_PROGRAM
660STRIP
661install_sh
662MAKEINFO
663AUTOHEADER
664AUTOMAKE
665AUTOCONF
666ACLOCAL
667VERSION
668PACKAGE
669CYGPATH_W
670am__isrc
671INSTALL_DATA
672INSTALL_SCRIPT
673INSTALL_PROGRAM
674target_alias
675host_alias
676build_alias
677LIBS
678ECHO_T
679ECHO_N
680ECHO_C
681DEFS
682mandir
683localedir
684libdir
685psdir
686pdfdir
687dvidir
688htmldir
689infodir
690docdir
691oldincludedir
692includedir
693localstatedir
694sharedstatedir
695sysconfdir
696datadir
697datarootdir
698libexecdir
699sbindir
700bindir
701program_transform_name
702prefix
703exec_prefix
704PACKAGE_URL
705PACKAGE_BUGREPORT
706PACKAGE_STRING
707PACKAGE_VERSION
708PACKAGE_TARNAME
709PACKAGE_NAME
710PATH_SEPARATOR
711SHELL'
712ac_subst_files=''
713ac_user_opts='
714enable_option_checking
715enable_silent_rules
716'
717      ac_precious_vars='build_alias
718host_alias
719target_alias
720CC
721CFLAGS
722LDFLAGS
723LIBS
724CPPFLAGS
725CPP
726TESTENV'
727
728
729# Initialize some variables set by options.
730ac_init_help=
731ac_init_version=false
732ac_unrecognized_opts=
733ac_unrecognized_sep=
734# The variables have the same names as the options, with
735# dashes changed to underlines.
736cache_file=/dev/null
737exec_prefix=NONE
738no_create=
739no_recursion=
740prefix=NONE
741program_prefix=NONE
742program_suffix=NONE
743program_transform_name=s,x,x,
744silent=
745site=
746srcdir=
747verbose=
748x_includes=NONE
749x_libraries=NONE
750
751# Installation directory options.
752# These are left unexpanded so users can "make install exec_prefix=/foo"
753# and all the variables that are supposed to be based on exec_prefix
754# by default will actually change.
755# Use braces instead of parens because sh, perl, etc. also accept them.
756# (The list follows the same order as the GNU Coding Standards.)
757bindir='${exec_prefix}/bin'
758sbindir='${exec_prefix}/sbin'
759libexecdir='${exec_prefix}/libexec'
760datarootdir='${prefix}/share'
761datadir='${datarootdir}'
762sysconfdir='${prefix}/etc'
763sharedstatedir='${prefix}/com'
764localstatedir='${prefix}/var'
765includedir='${prefix}/include'
766oldincludedir='/usr/include'
767docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
768infodir='${datarootdir}/info'
769htmldir='${docdir}'
770dvidir='${docdir}'
771pdfdir='${docdir}'
772psdir='${docdir}'
773libdir='${exec_prefix}/lib'
774localedir='${datarootdir}/locale'
775mandir='${datarootdir}/man'
776
777ac_prev=
778ac_dashdash=
779for ac_option
780do
781  # If the previous option needs an argument, assign it.
782  if test -n "$ac_prev"; then
783    eval $ac_prev=\$ac_option
784    ac_prev=
785    continue
786  fi
787
788  case $ac_option in
789  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790  *=)   ac_optarg= ;;
791  *)    ac_optarg=yes ;;
792  esac
793
794  # Accept the important Cygnus configure options, so we can diagnose typos.
795
796  case $ac_dashdash$ac_option in
797  --)
798    ac_dashdash=yes ;;
799
800  -bindir | --bindir | --bindi | --bind | --bin | --bi)
801    ac_prev=bindir ;;
802  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803    bindir=$ac_optarg ;;
804
805  -build | --build | --buil | --bui | --bu)
806    ac_prev=build_alias ;;
807  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808    build_alias=$ac_optarg ;;
809
810  -cache-file | --cache-file | --cache-fil | --cache-fi \
811  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812    ac_prev=cache_file ;;
813  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815    cache_file=$ac_optarg ;;
816
817  --config-cache | -C)
818    cache_file=config.cache ;;
819
820  -datadir | --datadir | --datadi | --datad)
821    ac_prev=datadir ;;
822  -datadir=* | --datadir=* | --datadi=* | --datad=*)
823    datadir=$ac_optarg ;;
824
825  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826  | --dataroo | --dataro | --datar)
827    ac_prev=datarootdir ;;
828  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830    datarootdir=$ac_optarg ;;
831
832  -disable-* | --disable-*)
833    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834    # Reject names that are not valid shell variable names.
835    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836      as_fn_error $? "invalid feature name: $ac_useropt"
837    ac_useropt_orig=$ac_useropt
838    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839    case $ac_user_opts in
840      *"
841"enable_$ac_useropt"
842"*) ;;
843      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844	 ac_unrecognized_sep=', ';;
845    esac
846    eval enable_$ac_useropt=no ;;
847
848  -docdir | --docdir | --docdi | --doc | --do)
849    ac_prev=docdir ;;
850  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851    docdir=$ac_optarg ;;
852
853  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854    ac_prev=dvidir ;;
855  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856    dvidir=$ac_optarg ;;
857
858  -enable-* | --enable-*)
859    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860    # Reject names that are not valid shell variable names.
861    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862      as_fn_error $? "invalid feature name: $ac_useropt"
863    ac_useropt_orig=$ac_useropt
864    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865    case $ac_user_opts in
866      *"
867"enable_$ac_useropt"
868"*) ;;
869      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
870	 ac_unrecognized_sep=', ';;
871    esac
872    eval enable_$ac_useropt=\$ac_optarg ;;
873
874  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
875  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
876  | --exec | --exe | --ex)
877    ac_prev=exec_prefix ;;
878  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
879  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
880  | --exec=* | --exe=* | --ex=*)
881    exec_prefix=$ac_optarg ;;
882
883  -gas | --gas | --ga | --g)
884    # Obsolete; use --with-gas.
885    with_gas=yes ;;
886
887  -help | --help | --hel | --he | -h)
888    ac_init_help=long ;;
889  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
890    ac_init_help=recursive ;;
891  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
892    ac_init_help=short ;;
893
894  -host | --host | --hos | --ho)
895    ac_prev=host_alias ;;
896  -host=* | --host=* | --hos=* | --ho=*)
897    host_alias=$ac_optarg ;;
898
899  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
900    ac_prev=htmldir ;;
901  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
902  | --ht=*)
903    htmldir=$ac_optarg ;;
904
905  -includedir | --includedir | --includedi | --included | --include \
906  | --includ | --inclu | --incl | --inc)
907    ac_prev=includedir ;;
908  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
909  | --includ=* | --inclu=* | --incl=* | --inc=*)
910    includedir=$ac_optarg ;;
911
912  -infodir | --infodir | --infodi | --infod | --info | --inf)
913    ac_prev=infodir ;;
914  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
915    infodir=$ac_optarg ;;
916
917  -libdir | --libdir | --libdi | --libd)
918    ac_prev=libdir ;;
919  -libdir=* | --libdir=* | --libdi=* | --libd=*)
920    libdir=$ac_optarg ;;
921
922  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
923  | --libexe | --libex | --libe)
924    ac_prev=libexecdir ;;
925  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
926  | --libexe=* | --libex=* | --libe=*)
927    libexecdir=$ac_optarg ;;
928
929  -localedir | --localedir | --localedi | --localed | --locale)
930    ac_prev=localedir ;;
931  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
932    localedir=$ac_optarg ;;
933
934  -localstatedir | --localstatedir | --localstatedi | --localstated \
935  | --localstate | --localstat | --localsta | --localst | --locals)
936    ac_prev=localstatedir ;;
937  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
938  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
939    localstatedir=$ac_optarg ;;
940
941  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
942    ac_prev=mandir ;;
943  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
944    mandir=$ac_optarg ;;
945
946  -nfp | --nfp | --nf)
947    # Obsolete; use --without-fp.
948    with_fp=no ;;
949
950  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951  | --no-cr | --no-c | -n)
952    no_create=yes ;;
953
954  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956    no_recursion=yes ;;
957
958  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
959  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
960  | --oldin | --oldi | --old | --ol | --o)
961    ac_prev=oldincludedir ;;
962  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
963  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
964  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
965    oldincludedir=$ac_optarg ;;
966
967  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
968    ac_prev=prefix ;;
969  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970    prefix=$ac_optarg ;;
971
972  -program-prefix | --program-prefix | --program-prefi | --program-pref \
973  | --program-pre | --program-pr | --program-p)
974    ac_prev=program_prefix ;;
975  -program-prefix=* | --program-prefix=* | --program-prefi=* \
976  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
977    program_prefix=$ac_optarg ;;
978
979  -program-suffix | --program-suffix | --program-suffi | --program-suff \
980  | --program-suf | --program-su | --program-s)
981    ac_prev=program_suffix ;;
982  -program-suffix=* | --program-suffix=* | --program-suffi=* \
983  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
984    program_suffix=$ac_optarg ;;
985
986  -program-transform-name | --program-transform-name \
987  | --program-transform-nam | --program-transform-na \
988  | --program-transform-n | --program-transform- \
989  | --program-transform | --program-transfor \
990  | --program-transfo | --program-transf \
991  | --program-trans | --program-tran \
992  | --progr-tra | --program-tr | --program-t)
993    ac_prev=program_transform_name ;;
994  -program-transform-name=* | --program-transform-name=* \
995  | --program-transform-nam=* | --program-transform-na=* \
996  | --program-transform-n=* | --program-transform-=* \
997  | --program-transform=* | --program-transfor=* \
998  | --program-transfo=* | --program-transf=* \
999  | --program-trans=* | --program-tran=* \
1000  | --progr-tra=* | --program-tr=* | --program-t=*)
1001    program_transform_name=$ac_optarg ;;
1002
1003  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1004    ac_prev=pdfdir ;;
1005  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1006    pdfdir=$ac_optarg ;;
1007
1008  -psdir | --psdir | --psdi | --psd | --ps)
1009    ac_prev=psdir ;;
1010  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011    psdir=$ac_optarg ;;
1012
1013  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014  | -silent | --silent | --silen | --sile | --sil)
1015    silent=yes ;;
1016
1017  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1018    ac_prev=sbindir ;;
1019  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1020  | --sbi=* | --sb=*)
1021    sbindir=$ac_optarg ;;
1022
1023  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1024  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1025  | --sharedst | --shareds | --shared | --share | --shar \
1026  | --sha | --sh)
1027    ac_prev=sharedstatedir ;;
1028  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1029  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1030  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1031  | --sha=* | --sh=*)
1032    sharedstatedir=$ac_optarg ;;
1033
1034  -site | --site | --sit)
1035    ac_prev=site ;;
1036  -site=* | --site=* | --sit=*)
1037    site=$ac_optarg ;;
1038
1039  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1040    ac_prev=srcdir ;;
1041  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1042    srcdir=$ac_optarg ;;
1043
1044  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1045  | --syscon | --sysco | --sysc | --sys | --sy)
1046    ac_prev=sysconfdir ;;
1047  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1048  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1049    sysconfdir=$ac_optarg ;;
1050
1051  -target | --target | --targe | --targ | --tar | --ta | --t)
1052    ac_prev=target_alias ;;
1053  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1054    target_alias=$ac_optarg ;;
1055
1056  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1057    verbose=yes ;;
1058
1059  -version | --version | --versio | --versi | --vers | -V)
1060    ac_init_version=: ;;
1061
1062  -with-* | --with-*)
1063    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1064    # Reject names that are not valid shell variable names.
1065    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066      as_fn_error $? "invalid package name: $ac_useropt"
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"with_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1074	 ac_unrecognized_sep=', ';;
1075    esac
1076    eval with_$ac_useropt=\$ac_optarg ;;
1077
1078  -without-* | --without-*)
1079    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080    # Reject names that are not valid shell variable names.
1081    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082      as_fn_error $? "invalid package name: $ac_useropt"
1083    ac_useropt_orig=$ac_useropt
1084    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085    case $ac_user_opts in
1086      *"
1087"with_$ac_useropt"
1088"*) ;;
1089      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090	 ac_unrecognized_sep=', ';;
1091    esac
1092    eval with_$ac_useropt=no ;;
1093
1094  --x)
1095    # Obsolete; use --with-x.
1096    with_x=yes ;;
1097
1098  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099  | --x-incl | --x-inc | --x-in | --x-i)
1100    ac_prev=x_includes ;;
1101  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103    x_includes=$ac_optarg ;;
1104
1105  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107    ac_prev=x_libraries ;;
1108  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110    x_libraries=$ac_optarg ;;
1111
1112  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1113Try \`$0 --help' for more information"
1114    ;;
1115
1116  *=*)
1117    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118    # Reject names that are not valid shell variable names.
1119    case $ac_envvar in #(
1120      '' | [0-9]* | *[!_$as_cr_alnum]* )
1121      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1122    esac
1123    eval $ac_envvar=\$ac_optarg
1124    export $ac_envvar ;;
1125
1126  *)
1127    # FIXME: should be removed in autoconf 3.0.
1128    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1129    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1131    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1132    ;;
1133
1134  esac
1135done
1136
1137if test -n "$ac_prev"; then
1138  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139  as_fn_error $? "missing argument to $ac_option"
1140fi
1141
1142if test -n "$ac_unrecognized_opts"; then
1143  case $enable_option_checking in
1144    no) ;;
1145    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1146    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1147  esac
1148fi
1149
1150# Check all directory arguments for consistency.
1151for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1152		datadir sysconfdir sharedstatedir localstatedir includedir \
1153		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1154		libdir localedir mandir
1155do
1156  eval ac_val=\$$ac_var
1157  # Remove trailing slashes.
1158  case $ac_val in
1159    */ )
1160      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1161      eval $ac_var=\$ac_val;;
1162  esac
1163  # Be sure to have absolute directory names.
1164  case $ac_val in
1165    [\\/$]* | ?:[\\/]* )  continue;;
1166    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1167  esac
1168  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1169done
1170
1171# There might be people who depend on the old broken behavior: `$host'
1172# used to hold the argument of --host etc.
1173# FIXME: To remove some day.
1174build=$build_alias
1175host=$host_alias
1176target=$target_alias
1177
1178# FIXME: To remove some day.
1179if test "x$host_alias" != x; then
1180  if test "x$build_alias" = x; then
1181    cross_compiling=maybe
1182  elif test "x$build_alias" != "x$host_alias"; then
1183    cross_compiling=yes
1184  fi
1185fi
1186
1187ac_tool_prefix=
1188test -n "$host_alias" && ac_tool_prefix=$host_alias-
1189
1190test "$silent" = yes && exec 6>/dev/null
1191
1192
1193ac_pwd=`pwd` && test -n "$ac_pwd" &&
1194ac_ls_di=`ls -di .` &&
1195ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1196  as_fn_error $? "working directory cannot be determined"
1197test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1198  as_fn_error $? "pwd does not report name of working directory"
1199
1200
1201# Find the source files, if location was not specified.
1202if test -z "$srcdir"; then
1203  ac_srcdir_defaulted=yes
1204  # Try the directory containing this script, then the parent directory.
1205  ac_confdir=`$as_dirname -- "$as_myself" ||
1206$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207	 X"$as_myself" : 'X\(//\)[^/]' \| \
1208	 X"$as_myself" : 'X\(//\)$' \| \
1209	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1210$as_echo X"$as_myself" |
1211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212	    s//\1/
1213	    q
1214	  }
1215	  /^X\(\/\/\)[^/].*/{
1216	    s//\1/
1217	    q
1218	  }
1219	  /^X\(\/\/\)$/{
1220	    s//\1/
1221	    q
1222	  }
1223	  /^X\(\/\).*/{
1224	    s//\1/
1225	    q
1226	  }
1227	  s/.*/./; q'`
1228  srcdir=$ac_confdir
1229  if test ! -r "$srcdir/$ac_unique_file"; then
1230    srcdir=..
1231  fi
1232else
1233  ac_srcdir_defaulted=no
1234fi
1235if test ! -r "$srcdir/$ac_unique_file"; then
1236  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1238fi
1239ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1240ac_abs_confdir=`(
1241	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1242	pwd)`
1243# When building in place, set srcdir=.
1244if test "$ac_abs_confdir" = "$ac_pwd"; then
1245  srcdir=.
1246fi
1247# Remove unnecessary trailing slashes from srcdir.
1248# Double slashes in file names in object file debugging info
1249# mess up M-x gdb in Emacs.
1250case $srcdir in
1251*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1252esac
1253for ac_var in $ac_precious_vars; do
1254  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1255  eval ac_env_${ac_var}_value=\$${ac_var}
1256  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1257  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1258done
1259
1260#
1261# Report the --help message.
1262#
1263if test "$ac_init_help" = "long"; then
1264  # Omit some internal or obsolete options to make the list less imposing.
1265  # This message is too long to be a string in the A/UX 3.1 sh.
1266  cat <<_ACEOF
1267\`configure' configures Scale2x 3.1 to adapt to many kinds of systems.
1268
1269Usage: $0 [OPTION]... [VAR=VALUE]...
1270
1271To assign environment variables (e.g., CC, CFLAGS...), specify them as
1272VAR=VALUE.  See below for descriptions of some of the useful variables.
1273
1274Defaults for the options are specified in brackets.
1275
1276Configuration:
1277  -h, --help              display this help and exit
1278      --help=short        display options specific to this package
1279      --help=recursive    display the short help of all the included packages
1280  -V, --version           display version information and exit
1281  -q, --quiet, --silent   do not print \`checking ...' messages
1282      --cache-file=FILE   cache test results in FILE [disabled]
1283  -C, --config-cache      alias for \`--cache-file=config.cache'
1284  -n, --no-create         do not create output files
1285      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1286
1287Installation directories:
1288  --prefix=PREFIX         install architecture-independent files in PREFIX
1289                          [$ac_default_prefix]
1290  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1291                          [PREFIX]
1292
1293By default, \`make install' will install all the files in
1294\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1295an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1296for instance \`--prefix=\$HOME'.
1297
1298For better control, use the options below.
1299
1300Fine tuning of the installation directories:
1301  --bindir=DIR            user executables [EPREFIX/bin]
1302  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1303  --libexecdir=DIR        program executables [EPREFIX/libexec]
1304  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1305  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1306  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1307  --libdir=DIR            object code libraries [EPREFIX/lib]
1308  --includedir=DIR        C header files [PREFIX/include]
1309  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1310  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1311  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1312  --infodir=DIR           info documentation [DATAROOTDIR/info]
1313  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1314  --mandir=DIR            man documentation [DATAROOTDIR/man]
1315  --docdir=DIR            documentation root [DATAROOTDIR/doc/scale2x]
1316  --htmldir=DIR           html documentation [DOCDIR]
1317  --dvidir=DIR            dvi documentation [DOCDIR]
1318  --pdfdir=DIR            pdf documentation [DOCDIR]
1319  --psdir=DIR             ps documentation [DOCDIR]
1320_ACEOF
1321
1322  cat <<\_ACEOF
1323
1324Program names:
1325  --program-prefix=PREFIX            prepend PREFIX to installed program names
1326  --program-suffix=SUFFIX            append SUFFIX to installed program names
1327  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1328
1329System types:
1330  --build=BUILD     configure for building on BUILD [guessed]
1331  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1332_ACEOF
1333fi
1334
1335if test -n "$ac_init_help"; then
1336  case $ac_init_help in
1337     short | recursive ) echo "Configuration of Scale2x 3.1:";;
1338   esac
1339  cat <<\_ACEOF
1340
1341Optional Features:
1342  --disable-option-checking  ignore unrecognized --enable/--with options
1343  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1344  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1345  --enable-silent-rules   less verbose build output (undo: "make V=1")
1346  --disable-silent-rules  verbose build output (undo: "make V=0")
1347
1348Some influential environment variables:
1349  CC          C compiler command
1350  CFLAGS      C compiler flags
1351  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1352              nonstandard directory <lib dir>
1353  LIBS        libraries to pass to the linker, e.g. -l<library>
1354  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1355              you have headers in a nonstandard directory <include dir>
1356  CPP         C preprocessor
1357  TESTENV     Test environment
1358
1359Use these variables to override the choices made by `configure' or to help
1360it to find libraries and programs with nonstandard names/locations.
1361
1362Report bugs to the package provider.
1363_ACEOF
1364ac_status=$?
1365fi
1366
1367if test "$ac_init_help" = "recursive"; then
1368  # If there are subdirs, report their specific --help.
1369  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370    test -d "$ac_dir" ||
1371      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1372      continue
1373    ac_builddir=.
1374
1375case "$ac_dir" in
1376.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377*)
1378  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1379  # A ".." for each directory in $ac_dir_suffix.
1380  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1381  case $ac_top_builddir_sub in
1382  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384  esac ;;
1385esac
1386ac_abs_top_builddir=$ac_pwd
1387ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388# for backward compatibility:
1389ac_top_builddir=$ac_top_build_prefix
1390
1391case $srcdir in
1392  .)  # We are building in place.
1393    ac_srcdir=.
1394    ac_top_srcdir=$ac_top_builddir_sub
1395    ac_abs_top_srcdir=$ac_pwd ;;
1396  [\\/]* | ?:[\\/]* )  # Absolute name.
1397    ac_srcdir=$srcdir$ac_dir_suffix;
1398    ac_top_srcdir=$srcdir
1399    ac_abs_top_srcdir=$srcdir ;;
1400  *) # Relative name.
1401    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402    ac_top_srcdir=$ac_top_build_prefix$srcdir
1403    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404esac
1405ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406
1407    cd "$ac_dir" || { ac_status=$?; continue; }
1408    # Check for guested configure.
1409    if test -f "$ac_srcdir/configure.gnu"; then
1410      echo &&
1411      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412    elif test -f "$ac_srcdir/configure"; then
1413      echo &&
1414      $SHELL "$ac_srcdir/configure" --help=recursive
1415    else
1416      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417    fi || ac_status=$?
1418    cd "$ac_pwd" || { ac_status=$?; break; }
1419  done
1420fi
1421
1422test -n "$ac_init_help" && exit $ac_status
1423if $ac_init_version; then
1424  cat <<\_ACEOF
1425Scale2x configure 3.1
1426generated by GNU Autoconf 2.69
1427
1428Copyright (C) 2012 Free Software Foundation, Inc.
1429This configure script is free software; the Free Software Foundation
1430gives unlimited permission to copy, distribute and modify it.
1431_ACEOF
1432  exit
1433fi
1434
1435## ------------------------ ##
1436## Autoconf initialization. ##
1437## ------------------------ ##
1438
1439# ac_fn_c_try_compile LINENO
1440# --------------------------
1441# Try to compile conftest.$ac_ext, and return whether this succeeded.
1442ac_fn_c_try_compile ()
1443{
1444  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445  rm -f conftest.$ac_objext
1446  if { { ac_try="$ac_compile"
1447case "(($ac_try" in
1448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449  *) ac_try_echo=$ac_try;;
1450esac
1451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452$as_echo "$ac_try_echo"; } >&5
1453  (eval "$ac_compile") 2>conftest.err
1454  ac_status=$?
1455  if test -s conftest.err; then
1456    grep -v '^ *+' conftest.err >conftest.er1
1457    cat conftest.er1 >&5
1458    mv -f conftest.er1 conftest.err
1459  fi
1460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461  test $ac_status = 0; } && {
1462	 test -z "$ac_c_werror_flag" ||
1463	 test ! -s conftest.err
1464       } && test -s conftest.$ac_objext; then :
1465  ac_retval=0
1466else
1467  $as_echo "$as_me: failed program was:" >&5
1468sed 's/^/| /' conftest.$ac_ext >&5
1469
1470	ac_retval=1
1471fi
1472  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1473  as_fn_set_status $ac_retval
1474
1475} # ac_fn_c_try_compile
1476
1477# ac_fn_c_try_link LINENO
1478# -----------------------
1479# Try to link conftest.$ac_ext, and return whether this succeeded.
1480ac_fn_c_try_link ()
1481{
1482  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483  rm -f conftest.$ac_objext conftest$ac_exeext
1484  if { { ac_try="$ac_link"
1485case "(($ac_try" in
1486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487  *) ac_try_echo=$ac_try;;
1488esac
1489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490$as_echo "$ac_try_echo"; } >&5
1491  (eval "$ac_link") 2>conftest.err
1492  ac_status=$?
1493  if test -s conftest.err; then
1494    grep -v '^ *+' conftest.err >conftest.er1
1495    cat conftest.er1 >&5
1496    mv -f conftest.er1 conftest.err
1497  fi
1498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499  test $ac_status = 0; } && {
1500	 test -z "$ac_c_werror_flag" ||
1501	 test ! -s conftest.err
1502       } && test -s conftest$ac_exeext && {
1503	 test "$cross_compiling" = yes ||
1504	 test -x conftest$ac_exeext
1505       }; then :
1506  ac_retval=0
1507else
1508  $as_echo "$as_me: failed program was:" >&5
1509sed 's/^/| /' conftest.$ac_ext >&5
1510
1511	ac_retval=1
1512fi
1513  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1514  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1515  # interfere with the next link command; also delete a directory that is
1516  # left behind by Apple's compiler.  We do this before executing the actions.
1517  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1518  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519  as_fn_set_status $ac_retval
1520
1521} # ac_fn_c_try_link
1522
1523# ac_fn_c_try_cpp LINENO
1524# ----------------------
1525# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_c_try_cpp ()
1527{
1528  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529  if { { ac_try="$ac_cpp conftest.$ac_ext"
1530case "(($ac_try" in
1531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532  *) ac_try_echo=$ac_try;;
1533esac
1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535$as_echo "$ac_try_echo"; } >&5
1536  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1537  ac_status=$?
1538  if test -s conftest.err; then
1539    grep -v '^ *+' conftest.err >conftest.er1
1540    cat conftest.er1 >&5
1541    mv -f conftest.er1 conftest.err
1542  fi
1543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544  test $ac_status = 0; } > conftest.i && {
1545	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1546	 test ! -s conftest.err
1547       }; then :
1548  ac_retval=0
1549else
1550  $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
1552
1553    ac_retval=1
1554fi
1555  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556  as_fn_set_status $ac_retval
1557
1558} # ac_fn_c_try_cpp
1559
1560# ac_fn_c_try_run LINENO
1561# ----------------------
1562# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1563# that executables *can* be run.
1564ac_fn_c_try_run ()
1565{
1566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567  if { { ac_try="$ac_link"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_link") 2>&5
1575  ac_status=$?
1576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1578  { { case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584  (eval "$ac_try") 2>&5
1585  ac_status=$?
1586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587  test $ac_status = 0; }; }; then :
1588  ac_retval=0
1589else
1590  $as_echo "$as_me: program exited with status $ac_status" >&5
1591       $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594       ac_retval=$ac_status
1595fi
1596  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598  as_fn_set_status $ac_retval
1599
1600} # ac_fn_c_try_run
1601
1602# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603# -------------------------------------------------------
1604# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605# the include files in INCLUDES and setting the cache variable VAR
1606# accordingly.
1607ac_fn_c_check_header_mongrel ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  if eval \${$3+:} false; then :
1611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612$as_echo_n "checking for $2... " >&6; }
1613if eval \${$3+:} false; then :
1614  $as_echo_n "(cached) " >&6
1615fi
1616eval ac_res=\$$3
1617	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618$as_echo "$ac_res" >&6; }
1619else
1620  # Is the header compilable?
1621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622$as_echo_n "checking $2 usability... " >&6; }
1623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624/* end confdefs.h.  */
1625$4
1626#include <$2>
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"; then :
1629  ac_header_compiler=yes
1630else
1631  ac_header_compiler=no
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635$as_echo "$ac_header_compiler" >&6; }
1636
1637# Is the header present?
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639$as_echo_n "checking $2 presence... " >&6; }
1640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h.  */
1642#include <$2>
1643_ACEOF
1644if ac_fn_c_try_cpp "$LINENO"; then :
1645  ac_header_preproc=yes
1646else
1647  ac_header_preproc=no
1648fi
1649rm -f conftest.err conftest.i conftest.$ac_ext
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651$as_echo "$ac_header_preproc" >&6; }
1652
1653# So?  What about this header?
1654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655  yes:no: )
1656    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660    ;;
1661  no:yes:* )
1662    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1665$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1666    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1669$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672    ;;
1673esac
1674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
1676if eval \${$3+:} false; then :
1677  $as_echo_n "(cached) " >&6
1678else
1679  eval "$3=\$ac_header_compiler"
1680fi
1681eval ac_res=\$$3
1682	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687} # ac_fn_c_check_header_mongrel
1688
1689# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1690# -------------------------------------------------------
1691# Tests whether HEADER exists and can be compiled using the include files in
1692# INCLUDES, setting the cache variable VAR accordingly.
1693ac_fn_c_check_header_compile ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697$as_echo_n "checking for $2... " >&6; }
1698if eval \${$3+:} false; then :
1699  $as_echo_n "(cached) " >&6
1700else
1701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h.  */
1703$4
1704#include <$2>
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"; then :
1707  eval "$3=yes"
1708else
1709  eval "$3=no"
1710fi
1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712fi
1713eval ac_res=\$$3
1714	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715$as_echo "$ac_res" >&6; }
1716  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718} # ac_fn_c_check_header_compile
1719
1720# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1721# -------------------------------------------
1722# Tests whether TYPE exists after having included INCLUDES, setting cache
1723# variable VAR accordingly.
1724ac_fn_c_check_type ()
1725{
1726  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728$as_echo_n "checking for $2... " >&6; }
1729if eval \${$3+:} false; then :
1730  $as_echo_n "(cached) " >&6
1731else
1732  eval "$3=no"
1733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h.  */
1735$4
1736int
1737main ()
1738{
1739if (sizeof ($2))
1740	 return 0;
1741  ;
1742  return 0;
1743}
1744_ACEOF
1745if ac_fn_c_try_compile "$LINENO"; then :
1746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748$4
1749int
1750main ()
1751{
1752if (sizeof (($2)))
1753	    return 0;
1754  ;
1755  return 0;
1756}
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759
1760else
1761  eval "$3=yes"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772} # ac_fn_c_check_type
1773
1774# ac_fn_c_check_func LINENO FUNC VAR
1775# ----------------------------------
1776# Tests whether FUNC exists, setting the cache variable VAR accordingly
1777ac_fn_c_check_func ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
1782if eval \${$3+:} false; then :
1783  $as_echo_n "(cached) " >&6
1784else
1785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h.  */
1787/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1789#define $2 innocuous_$2
1790
1791/* System header to define __stub macros and hopefully few prototypes,
1792    which can conflict with char $2 (); below.
1793    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794    <limits.h> exists even on freestanding compilers.  */
1795
1796#ifdef __STDC__
1797# include <limits.h>
1798#else
1799# include <assert.h>
1800#endif
1801
1802#undef $2
1803
1804/* Override any GCC internal prototype to avoid an error.
1805   Use char because int might match the return type of a GCC
1806   builtin and then its argument prototype would still apply.  */
1807#ifdef __cplusplus
1808extern "C"
1809#endif
1810char $2 ();
1811/* The GNU C library defines this for functions which it implements
1812    to always fail with ENOSYS.  Some functions are actually named
1813    something starting with __ and the normal name is an alias.  */
1814#if defined __stub_$2 || defined __stub___$2
1815choke me
1816#endif
1817
1818int
1819main ()
1820{
1821return $2 ();
1822  ;
1823  return 0;
1824}
1825_ACEOF
1826if ac_fn_c_try_link "$LINENO"; then :
1827  eval "$3=yes"
1828else
1829  eval "$3=no"
1830fi
1831rm -f core conftest.err conftest.$ac_objext \
1832    conftest$ac_exeext conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839} # ac_fn_c_check_func
1840cat >config.log <<_ACEOF
1841This file contains any messages produced by compilers while
1842running configure, to aid debugging if configure makes a mistake.
1843
1844It was created by Scale2x $as_me 3.1, which was
1845generated by GNU Autoconf 2.69.  Invocation command line was
1846
1847  $ $0 $@
1848
1849_ACEOF
1850exec 5>>config.log
1851{
1852cat <<_ASUNAME
1853## --------- ##
1854## Platform. ##
1855## --------- ##
1856
1857hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1858uname -m = `(uname -m) 2>/dev/null || echo unknown`
1859uname -r = `(uname -r) 2>/dev/null || echo unknown`
1860uname -s = `(uname -s) 2>/dev/null || echo unknown`
1861uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862
1863/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1864/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1865
1866/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1867/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1868/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1869/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1870/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1871/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1872/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1873
1874_ASUNAME
1875
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879  IFS=$as_save_IFS
1880  test -z "$as_dir" && as_dir=.
1881    $as_echo "PATH: $as_dir"
1882  done
1883IFS=$as_save_IFS
1884
1885} >&5
1886
1887cat >&5 <<_ACEOF
1888
1889
1890## ----------- ##
1891## Core tests. ##
1892## ----------- ##
1893
1894_ACEOF
1895
1896
1897# Keep a trace of the command line.
1898# Strip out --no-create and --no-recursion so they do not pile up.
1899# Strip out --silent because we don't want to record it for future runs.
1900# Also quote any args containing shell meta-characters.
1901# Make two passes to allow for proper duplicate-argument suppression.
1902ac_configure_args=
1903ac_configure_args0=
1904ac_configure_args1=
1905ac_must_keep_next=false
1906for ac_pass in 1 2
1907do
1908  for ac_arg
1909  do
1910    case $ac_arg in
1911    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1912    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1913    | -silent | --silent | --silen | --sile | --sil)
1914      continue ;;
1915    *\'*)
1916      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1917    esac
1918    case $ac_pass in
1919    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1920    2)
1921      as_fn_append ac_configure_args1 " '$ac_arg'"
1922      if test $ac_must_keep_next = true; then
1923	ac_must_keep_next=false # Got value, back to normal.
1924      else
1925	case $ac_arg in
1926	  *=* | --config-cache | -C | -disable-* | --disable-* \
1927	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1928	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1929	  | -with-* | --with-* | -without-* | --without-* | --x)
1930	    case "$ac_configure_args0 " in
1931	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1932	    esac
1933	    ;;
1934	  -* ) ac_must_keep_next=true ;;
1935	esac
1936      fi
1937      as_fn_append ac_configure_args " '$ac_arg'"
1938      ;;
1939    esac
1940  done
1941done
1942{ ac_configure_args0=; unset ac_configure_args0;}
1943{ ac_configure_args1=; unset ac_configure_args1;}
1944
1945# When interrupted or exit'd, cleanup temporary files, and complete
1946# config.log.  We remove comments because anyway the quotes in there
1947# would cause problems or look ugly.
1948# WARNING: Use '\'' to represent an apostrophe within the trap.
1949# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1950trap 'exit_status=$?
1951  # Save into config.log some information that might help in debugging.
1952  {
1953    echo
1954
1955    $as_echo "## ---------------- ##
1956## Cache variables. ##
1957## ---------------- ##"
1958    echo
1959    # The following way of writing the cache mishandles newlines in values,
1960(
1961  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1962    eval ac_val=\$$ac_var
1963    case $ac_val in #(
1964    *${as_nl}*)
1965      case $ac_var in #(
1966      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1967$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1968      esac
1969      case $ac_var in #(
1970      _ | IFS | as_nl) ;; #(
1971      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1972      *) { eval $ac_var=; unset $ac_var;} ;;
1973      esac ;;
1974    esac
1975  done
1976  (set) 2>&1 |
1977    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1978    *${as_nl}ac_space=\ *)
1979      sed -n \
1980	"s/'\''/'\''\\\\'\'''\''/g;
1981	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1982      ;; #(
1983    *)
1984      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1985      ;;
1986    esac |
1987    sort
1988)
1989    echo
1990
1991    $as_echo "## ----------------- ##
1992## Output variables. ##
1993## ----------------- ##"
1994    echo
1995    for ac_var in $ac_subst_vars
1996    do
1997      eval ac_val=\$$ac_var
1998      case $ac_val in
1999      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000      esac
2001      $as_echo "$ac_var='\''$ac_val'\''"
2002    done | sort
2003    echo
2004
2005    if test -n "$ac_subst_files"; then
2006      $as_echo "## ------------------- ##
2007## File substitutions. ##
2008## ------------------- ##"
2009      echo
2010      for ac_var in $ac_subst_files
2011      do
2012	eval ac_val=\$$ac_var
2013	case $ac_val in
2014	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015	esac
2016	$as_echo "$ac_var='\''$ac_val'\''"
2017      done | sort
2018      echo
2019    fi
2020
2021    if test -s confdefs.h; then
2022      $as_echo "## ----------- ##
2023## confdefs.h. ##
2024## ----------- ##"
2025      echo
2026      cat confdefs.h
2027      echo
2028    fi
2029    test "$ac_signal" != 0 &&
2030      $as_echo "$as_me: caught signal $ac_signal"
2031    $as_echo "$as_me: exit $exit_status"
2032  } >&5
2033  rm -f core *.core core.conftest.* &&
2034    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2035    exit $exit_status
2036' 0
2037for ac_signal in 1 2 13 15; do
2038  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2039done
2040ac_signal=0
2041
2042# confdefs.h avoids OS command line length limits that DEFS can exceed.
2043rm -f -r conftest* confdefs.h
2044
2045$as_echo "/* confdefs.h */" > confdefs.h
2046
2047# Predefined preprocessor variables.
2048
2049cat >>confdefs.h <<_ACEOF
2050#define PACKAGE_NAME "$PACKAGE_NAME"
2051_ACEOF
2052
2053cat >>confdefs.h <<_ACEOF
2054#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2055_ACEOF
2056
2057cat >>confdefs.h <<_ACEOF
2058#define PACKAGE_VERSION "$PACKAGE_VERSION"
2059_ACEOF
2060
2061cat >>confdefs.h <<_ACEOF
2062#define PACKAGE_STRING "$PACKAGE_STRING"
2063_ACEOF
2064
2065cat >>confdefs.h <<_ACEOF
2066#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2067_ACEOF
2068
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_URL "$PACKAGE_URL"
2071_ACEOF
2072
2073
2074# Let the site file select an alternate cache file if it wants to.
2075# Prefer an explicitly selected file to automatically selected ones.
2076ac_site_file1=NONE
2077ac_site_file2=NONE
2078if test -n "$CONFIG_SITE"; then
2079  # We do not want a PATH search for config.site.
2080  case $CONFIG_SITE in #((
2081    -*)  ac_site_file1=./$CONFIG_SITE;;
2082    */*) ac_site_file1=$CONFIG_SITE;;
2083    *)   ac_site_file1=./$CONFIG_SITE;;
2084  esac
2085elif test "x$prefix" != xNONE; then
2086  ac_site_file1=$prefix/share/config.site
2087  ac_site_file2=$prefix/etc/config.site
2088else
2089  ac_site_file1=$ac_default_prefix/share/config.site
2090  ac_site_file2=$ac_default_prefix/etc/config.site
2091fi
2092for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2093do
2094  test "x$ac_site_file" = xNONE && continue
2095  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2096    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2097$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2098    sed 's/^/| /' "$ac_site_file" >&5
2099    . "$ac_site_file" \
2100      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2102as_fn_error $? "failed to load site script $ac_site_file
2103See \`config.log' for more details" "$LINENO" 5; }
2104  fi
2105done
2106
2107if test -r "$cache_file"; then
2108  # Some versions of bash will fail to source /dev/null (special files
2109  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2110  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2111    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2112$as_echo "$as_me: loading cache $cache_file" >&6;}
2113    case $cache_file in
2114      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2115      *)                      . "./$cache_file";;
2116    esac
2117  fi
2118else
2119  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2120$as_echo "$as_me: creating cache $cache_file" >&6;}
2121  >$cache_file
2122fi
2123
2124# Check that the precious variables saved in the cache have kept the same
2125# value.
2126ac_cache_corrupted=false
2127for ac_var in $ac_precious_vars; do
2128  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2129  eval ac_new_set=\$ac_env_${ac_var}_set
2130  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2131  eval ac_new_val=\$ac_env_${ac_var}_value
2132  case $ac_old_set,$ac_new_set in
2133    set,)
2134      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2135$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2136      ac_cache_corrupted=: ;;
2137    ,set)
2138      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2139$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2140      ac_cache_corrupted=: ;;
2141    ,);;
2142    *)
2143      if test "x$ac_old_val" != "x$ac_new_val"; then
2144	# differences in whitespace do not lead to failure.
2145	ac_old_val_w=`echo x $ac_old_val`
2146	ac_new_val_w=`echo x $ac_new_val`
2147	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2148	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2149$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2150	  ac_cache_corrupted=:
2151	else
2152	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2153$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2154	  eval $ac_var=\$ac_old_val
2155	fi
2156	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2157$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2158	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2159$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2160      fi;;
2161  esac
2162  # Pass precious variables to config.status.
2163  if test "$ac_new_set" = set; then
2164    case $ac_new_val in
2165    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2166    *) ac_arg=$ac_var=$ac_new_val ;;
2167    esac
2168    case " $ac_configure_args " in
2169      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2170      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2171    esac
2172  fi
2173done
2174if $ac_cache_corrupted; then
2175  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2177  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2178$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2179  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2180fi
2181## -------------------- ##
2182## Main body of script. ##
2183## -------------------- ##
2184
2185ac_ext=c
2186ac_cpp='$CPP $CPPFLAGS'
2187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190
2191
2192
2193am__api_version='1.14'
2194
2195ac_aux_dir=
2196for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197  if test -f "$ac_dir/install-sh"; then
2198    ac_aux_dir=$ac_dir
2199    ac_install_sh="$ac_aux_dir/install-sh -c"
2200    break
2201  elif test -f "$ac_dir/install.sh"; then
2202    ac_aux_dir=$ac_dir
2203    ac_install_sh="$ac_aux_dir/install.sh -c"
2204    break
2205  elif test -f "$ac_dir/shtool"; then
2206    ac_aux_dir=$ac_dir
2207    ac_install_sh="$ac_aux_dir/shtool install -c"
2208    break
2209  fi
2210done
2211if test -z "$ac_aux_dir"; then
2212  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2213fi
2214
2215# These three variables are undocumented and unsupported,
2216# and are intended to be withdrawn in a future Autoconf release.
2217# They can cause serious problems if a builder's source tree is in a directory
2218# whose full name contains unusual characters.
2219ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2220ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2221ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2222
2223
2224# Find a good install program.  We prefer a C program (faster),
2225# so one script is as good as another.  But avoid the broken or
2226# incompatible versions:
2227# SysV /etc/install, /usr/sbin/install
2228# SunOS /usr/etc/install
2229# IRIX /sbin/install
2230# AIX /bin/install
2231# AmigaOS /C/install, which installs bootblocks on floppy discs
2232# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2233# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2234# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2235# OS/2's system install, which has a completely different semantic
2236# ./install, which can be erroneously created by make from ./install.sh.
2237# Reject install programs that cannot install multiple files.
2238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2239$as_echo_n "checking for a BSD-compatible install... " >&6; }
2240if test -z "$INSTALL"; then
2241if ${ac_cv_path_install+:} false; then :
2242  $as_echo_n "(cached) " >&6
2243else
2244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247  IFS=$as_save_IFS
2248  test -z "$as_dir" && as_dir=.
2249    # Account for people who put trailing slashes in PATH elements.
2250case $as_dir/ in #((
2251  ./ | .// | /[cC]/* | \
2252  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2253  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2254  /usr/ucb/* ) ;;
2255  *)
2256    # OSF1 and SCO ODT 3.0 have their own names for install.
2257    # Don't use installbsd from OSF since it installs stuff as root
2258    # by default.
2259    for ac_prog in ginstall scoinst install; do
2260      for ac_exec_ext in '' $ac_executable_extensions; do
2261	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2262	  if test $ac_prog = install &&
2263	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264	    # AIX install.  It has an incompatible calling convention.
2265	    :
2266	  elif test $ac_prog = install &&
2267	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2268	    # program-specific install script used by HP pwplus--don't use.
2269	    :
2270	  else
2271	    rm -rf conftest.one conftest.two conftest.dir
2272	    echo one > conftest.one
2273	    echo two > conftest.two
2274	    mkdir conftest.dir
2275	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2276	      test -s conftest.one && test -s conftest.two &&
2277	      test -s conftest.dir/conftest.one &&
2278	      test -s conftest.dir/conftest.two
2279	    then
2280	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2281	      break 3
2282	    fi
2283	  fi
2284	fi
2285      done
2286    done
2287    ;;
2288esac
2289
2290  done
2291IFS=$as_save_IFS
2292
2293rm -rf conftest.one conftest.two conftest.dir
2294
2295fi
2296  if test "${ac_cv_path_install+set}" = set; then
2297    INSTALL=$ac_cv_path_install
2298  else
2299    # As a last resort, use the slow shell script.  Don't cache a
2300    # value for INSTALL within a source directory, because that will
2301    # break other packages using the cache if that directory is
2302    # removed, or if the value is a relative name.
2303    INSTALL=$ac_install_sh
2304  fi
2305fi
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2307$as_echo "$INSTALL" >&6; }
2308
2309# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2310# It thinks the first close brace ends the variable substitution.
2311test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2312
2313test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2314
2315test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2316
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2318$as_echo_n "checking whether build environment is sane... " >&6; }
2319# Reject unsafe characters in $srcdir or the absolute working directory
2320# name.  Accept space and tab only in the latter.
2321am_lf='
2322'
2323case `pwd` in
2324  *[\\\"\#\$\&\'\`$am_lf]*)
2325    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2326esac
2327case $srcdir in
2328  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2329    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2330esac
2331
2332# Do 'set' in a subshell so we don't clobber the current shell's
2333# arguments.  Must try -L first in case configure is actually a
2334# symlink; some systems play weird games with the mod time of symlinks
2335# (eg FreeBSD returns the mod time of the symlink's containing
2336# directory).
2337if (
2338   am_has_slept=no
2339   for am_try in 1 2; do
2340     echo "timestamp, slept: $am_has_slept" > conftest.file
2341     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2342     if test "$*" = "X"; then
2343	# -L didn't work.
2344	set X `ls -t "$srcdir/configure" conftest.file`
2345     fi
2346     if test "$*" != "X $srcdir/configure conftest.file" \
2347	&& test "$*" != "X conftest.file $srcdir/configure"; then
2348
2349	# If neither matched, then we have a broken ls.  This can happen
2350	# if, for instance, CONFIG_SHELL is bash and it inherits a
2351	# broken ls alias from the environment.  This has actually
2352	# happened.  Such a system could not be considered "sane".
2353	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2354  alias in your environment" "$LINENO" 5
2355     fi
2356     if test "$2" = conftest.file || test $am_try -eq 2; then
2357       break
2358     fi
2359     # Just in case.
2360     sleep 1
2361     am_has_slept=yes
2362   done
2363   test "$2" = conftest.file
2364   )
2365then
2366   # Ok.
2367   :
2368else
2369   as_fn_error $? "newly created file is older than distributed files!
2370Check your system clock" "$LINENO" 5
2371fi
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2373$as_echo "yes" >&6; }
2374# If we didn't sleep, we still need to ensure time stamps of config.status and
2375# generated files are strictly newer.
2376am_sleep_pid=
2377if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2378  ( sleep 1 ) &
2379  am_sleep_pid=$!
2380fi
2381
2382rm -f conftest.file
2383
2384test "$program_prefix" != NONE &&
2385  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2386# Use a double $ so make ignores it.
2387test "$program_suffix" != NONE &&
2388  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2389# Double any \ or $.
2390# By default was `s,x,x', remove it if useless.
2391ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2392program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2393
2394# expand $ac_aux_dir to an absolute path
2395am_aux_dir=`cd $ac_aux_dir && pwd`
2396
2397if test x"${MISSING+set}" != xset; then
2398  case $am_aux_dir in
2399  *\ * | *\	*)
2400    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2401  *)
2402    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2403  esac
2404fi
2405# Use eval to expand $SHELL
2406if eval "$MISSING --is-lightweight"; then
2407  am_missing_run="$MISSING "
2408else
2409  am_missing_run=
2410  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2411$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2412fi
2413
2414if test x"${install_sh}" != xset; then
2415  case $am_aux_dir in
2416  *\ * | *\	*)
2417    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2418  *)
2419    install_sh="\${SHELL} $am_aux_dir/install-sh"
2420  esac
2421fi
2422
2423# Installed binaries are usually stripped using 'strip' when the user
2424# run "make install-strip".  However 'strip' might not be the right
2425# tool to use in cross-compilation environments, therefore Automake
2426# will honor the 'STRIP' environment variable to overrule this program.
2427if test "$cross_compiling" != no; then
2428  if test -n "$ac_tool_prefix"; then
2429  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2430set dummy ${ac_tool_prefix}strip; ac_word=$2
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432$as_echo_n "checking for $ac_word... " >&6; }
2433if ${ac_cv_prog_STRIP+:} false; then :
2434  $as_echo_n "(cached) " >&6
2435else
2436  if test -n "$STRIP"; then
2437  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442  IFS=$as_save_IFS
2443  test -z "$as_dir" && as_dir=.
2444    for ac_exec_ext in '' $ac_executable_extensions; do
2445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448    break 2
2449  fi
2450done
2451  done
2452IFS=$as_save_IFS
2453
2454fi
2455fi
2456STRIP=$ac_cv_prog_STRIP
2457if test -n "$STRIP"; then
2458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2459$as_echo "$STRIP" >&6; }
2460else
2461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462$as_echo "no" >&6; }
2463fi
2464
2465
2466fi
2467if test -z "$ac_cv_prog_STRIP"; then
2468  ac_ct_STRIP=$STRIP
2469  # Extract the first word of "strip", so it can be a program name with args.
2470set dummy strip; ac_word=$2
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472$as_echo_n "checking for $ac_word... " >&6; }
2473if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2474  $as_echo_n "(cached) " >&6
2475else
2476  if test -n "$ac_ct_STRIP"; then
2477  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482  IFS=$as_save_IFS
2483  test -z "$as_dir" && as_dir=.
2484    for ac_exec_ext in '' $ac_executable_extensions; do
2485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486    ac_cv_prog_ac_ct_STRIP="strip"
2487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488    break 2
2489  fi
2490done
2491  done
2492IFS=$as_save_IFS
2493
2494fi
2495fi
2496ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2497if test -n "$ac_ct_STRIP"; then
2498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2499$as_echo "$ac_ct_STRIP" >&6; }
2500else
2501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502$as_echo "no" >&6; }
2503fi
2504
2505  if test "x$ac_ct_STRIP" = x; then
2506    STRIP=":"
2507  else
2508    case $cross_compiling:$ac_tool_warned in
2509yes:)
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2512ac_tool_warned=yes ;;
2513esac
2514    STRIP=$ac_ct_STRIP
2515  fi
2516else
2517  STRIP="$ac_cv_prog_STRIP"
2518fi
2519
2520fi
2521INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2522
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2524$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2525if test -z "$MKDIR_P"; then
2526  if ${ac_cv_path_mkdir+:} false; then :
2527  $as_echo_n "(cached) " >&6
2528else
2529  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2531do
2532  IFS=$as_save_IFS
2533  test -z "$as_dir" && as_dir=.
2534    for ac_prog in mkdir gmkdir; do
2535	 for ac_exec_ext in '' $ac_executable_extensions; do
2536	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2537	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2538	     'mkdir (GNU coreutils) '* | \
2539	     'mkdir (coreutils) '* | \
2540	     'mkdir (fileutils) '4.1*)
2541	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2542	       break 3;;
2543	   esac
2544	 done
2545       done
2546  done
2547IFS=$as_save_IFS
2548
2549fi
2550
2551  test -d ./--version && rmdir ./--version
2552  if test "${ac_cv_path_mkdir+set}" = set; then
2553    MKDIR_P="$ac_cv_path_mkdir -p"
2554  else
2555    # As a last resort, use the slow shell script.  Don't cache a
2556    # value for MKDIR_P within a source directory, because that will
2557    # break other packages using the cache if that directory is
2558    # removed, or if the value is a relative name.
2559    MKDIR_P="$ac_install_sh -d"
2560  fi
2561fi
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2563$as_echo "$MKDIR_P" >&6; }
2564
2565for ac_prog in gawk mawk nawk awk
2566do
2567  # Extract the first word of "$ac_prog", so it can be a program name with args.
2568set dummy $ac_prog; ac_word=$2
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570$as_echo_n "checking for $ac_word... " >&6; }
2571if ${ac_cv_prog_AWK+:} false; then :
2572  $as_echo_n "(cached) " >&6
2573else
2574  if test -n "$AWK"; then
2575  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2576else
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580  IFS=$as_save_IFS
2581  test -z "$as_dir" && as_dir=.
2582    for ac_exec_ext in '' $ac_executable_extensions; do
2583  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584    ac_cv_prog_AWK="$ac_prog"
2585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586    break 2
2587  fi
2588done
2589  done
2590IFS=$as_save_IFS
2591
2592fi
2593fi
2594AWK=$ac_cv_prog_AWK
2595if test -n "$AWK"; then
2596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2597$as_echo "$AWK" >&6; }
2598else
2599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600$as_echo "no" >&6; }
2601fi
2602
2603
2604  test -n "$AWK" && break
2605done
2606
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2608$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2609set x ${MAKE-make}
2610ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2611if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2612  $as_echo_n "(cached) " >&6
2613else
2614  cat >conftest.make <<\_ACEOF
2615SHELL = /bin/sh
2616all:
2617	@echo '@@@%%%=$(MAKE)=@@@%%%'
2618_ACEOF
2619# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2620case `${MAKE-make} -f conftest.make 2>/dev/null` in
2621  *@@@%%%=?*=@@@%%%*)
2622    eval ac_cv_prog_make_${ac_make}_set=yes;;
2623  *)
2624    eval ac_cv_prog_make_${ac_make}_set=no;;
2625esac
2626rm -f conftest.make
2627fi
2628if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2630$as_echo "yes" >&6; }
2631  SET_MAKE=
2632else
2633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634$as_echo "no" >&6; }
2635  SET_MAKE="MAKE=${MAKE-make}"
2636fi
2637
2638rm -rf .tst 2>/dev/null
2639mkdir .tst 2>/dev/null
2640if test -d .tst; then
2641  am__leading_dot=.
2642else
2643  am__leading_dot=_
2644fi
2645rmdir .tst 2>/dev/null
2646
2647# Check whether --enable-silent-rules was given.
2648if test "${enable_silent_rules+set}" = set; then :
2649  enableval=$enable_silent_rules;
2650fi
2651
2652case $enable_silent_rules in # (((
2653  yes) AM_DEFAULT_VERBOSITY=0;;
2654   no) AM_DEFAULT_VERBOSITY=1;;
2655    *) AM_DEFAULT_VERBOSITY=1;;
2656esac
2657am_make=${MAKE-make}
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2659$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2660if ${am_cv_make_support_nested_variables+:} false; then :
2661  $as_echo_n "(cached) " >&6
2662else
2663  if $as_echo 'TRUE=$(BAR$(V))
2664BAR0=false
2665BAR1=true
2666V=1
2667am__doit:
2668	@$(TRUE)
2669.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2670  am_cv_make_support_nested_variables=yes
2671else
2672  am_cv_make_support_nested_variables=no
2673fi
2674fi
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2676$as_echo "$am_cv_make_support_nested_variables" >&6; }
2677if test $am_cv_make_support_nested_variables = yes; then
2678    AM_V='$(V)'
2679  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2680else
2681  AM_V=$AM_DEFAULT_VERBOSITY
2682  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2683fi
2684AM_BACKSLASH='\'
2685
2686if test "`cd $srcdir && pwd`" != "`pwd`"; then
2687  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2688  # is not polluted with repeated "-I."
2689  am__isrc=' -I$(srcdir)'
2690  # test to see if srcdir already configured
2691  if test -f $srcdir/config.status; then
2692    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2693  fi
2694fi
2695
2696# test whether we have cygpath
2697if test -z "$CYGPATH_W"; then
2698  if (cygpath --version) >/dev/null 2>/dev/null; then
2699    CYGPATH_W='cygpath -w'
2700  else
2701    CYGPATH_W=echo
2702  fi
2703fi
2704
2705
2706# Define the identity of the package.
2707 PACKAGE='scale2x'
2708 VERSION='3.1'
2709
2710
2711cat >>confdefs.h <<_ACEOF
2712#define PACKAGE "$PACKAGE"
2713_ACEOF
2714
2715
2716cat >>confdefs.h <<_ACEOF
2717#define VERSION "$VERSION"
2718_ACEOF
2719
2720# Some tools Automake needs.
2721
2722ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2723
2724
2725AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2726
2727
2728AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2729
2730
2731AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2732
2733
2734MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2735
2736# For better backward compatibility.  To be removed once Automake 1.9.x
2737# dies out for good.  For more background, see:
2738# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2739# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2740mkdir_p='$(MKDIR_P)'
2741
2742# We need awk for the "check" target.  The system "awk" is bad on
2743# some platforms.
2744# Always define AMTAR for backward compatibility.  Yes, it's still used
2745# in the wild :-(  We should find a proper way to deprecate it ...
2746AMTAR='$${TAR-tar}'
2747
2748
2749# We'll loop over all known methods to create a tar archive until one works.
2750_am_tools='gnutar  pax cpio none'
2751
2752am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2753
2754
2755
2756
2757
2758
2759# POSIX will say in a future version that running "rm -f" with no argument
2760# is OK; and we want to be able to make that assumption in our Makefile
2761# recipes.  So use an aggressive probe to check that the usage we want is
2762# actually supported "in the wild" to an acceptable degree.
2763# See automake bug#10828.
2764# To make any issue more visible, cause the running configure to be aborted
2765# by default if the 'rm' program in use doesn't match our expectations; the
2766# user can still override this though.
2767if rm -f && rm -fr && rm -rf; then : OK; else
2768  cat >&2 <<'END'
2769Oops!
2770
2771Your 'rm' program seems unable to run without file operands specified
2772on the command line, even when the '-f' option is present.  This is contrary
2773to the behaviour of most rm programs out there, and not conforming with
2774the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2775
2776Please tell bug-automake@gnu.org about your system, including the value
2777of your $PATH and any error possibly output before this message.  This
2778can help us improve future automake versions.
2779
2780END
2781  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2782    echo 'Configuration will proceed anyway, since you have set the' >&2
2783    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2784    echo >&2
2785  else
2786    cat >&2 <<'END'
2787Aborting the configuration process, to ensure you take notice of the issue.
2788
2789You can download and install GNU coreutils to get an 'rm' implementation
2790that behaves properly: <http://www.gnu.org/software/coreutils/>.
2791
2792If you want to complete the configuration process using your problematic
2793'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2794to "yes", and re-run configure.
2795
2796END
2797    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2798  fi
2799fi
2800ac_config_headers="$ac_config_headers config.h"
2801
2802# Make sure we can run config.sub.
2803$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2804  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2805
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2807$as_echo_n "checking build system type... " >&6; }
2808if ${ac_cv_build+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  ac_build_alias=$build_alias
2812test "x$ac_build_alias" = x &&
2813  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2814test "x$ac_build_alias" = x &&
2815  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2816ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2817  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2818
2819fi
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2821$as_echo "$ac_cv_build" >&6; }
2822case $ac_cv_build in
2823*-*-*) ;;
2824*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2825esac
2826build=$ac_cv_build
2827ac_save_IFS=$IFS; IFS='-'
2828set x $ac_cv_build
2829shift
2830build_cpu=$1
2831build_vendor=$2
2832shift; shift
2833# Remember, the first character of IFS is used to create $*,
2834# except with old shells:
2835build_os=$*
2836IFS=$ac_save_IFS
2837case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2838
2839
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2841$as_echo_n "checking host system type... " >&6; }
2842if ${ac_cv_host+:} false; then :
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test "x$host_alias" = x; then
2846  ac_cv_host=$ac_cv_build
2847else
2848  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2850fi
2851
2852fi
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2854$as_echo "$ac_cv_host" >&6; }
2855case $ac_cv_host in
2856*-*-*) ;;
2857*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2858esac
2859host=$ac_cv_host
2860ac_save_IFS=$IFS; IFS='-'
2861set x $ac_cv_host
2862shift
2863host_cpu=$1
2864host_vendor=$2
2865shift; shift
2866# Remember, the first character of IFS is used to create $*,
2867# except with old shells:
2868host_os=$*
2869IFS=$ac_save_IFS
2870case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2871
2872
2873
2874# Checks for programs.
2875ac_ext=c
2876ac_cpp='$CPP $CPPFLAGS'
2877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880if test -n "$ac_tool_prefix"; then
2881  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2882set dummy ${ac_tool_prefix}gcc; ac_word=$2
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884$as_echo_n "checking for $ac_word... " >&6; }
2885if ${ac_cv_prog_CC+:} false; then :
2886  $as_echo_n "(cached) " >&6
2887else
2888  if test -n "$CC"; then
2889  ac_cv_prog_CC="$CC" # Let the user override the test.
2890else
2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH
2893do
2894  IFS=$as_save_IFS
2895  test -z "$as_dir" && as_dir=.
2896    for ac_exec_ext in '' $ac_executable_extensions; do
2897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900    break 2
2901  fi
2902done
2903  done
2904IFS=$as_save_IFS
2905
2906fi
2907fi
2908CC=$ac_cv_prog_CC
2909if test -n "$CC"; then
2910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911$as_echo "$CC" >&6; }
2912else
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914$as_echo "no" >&6; }
2915fi
2916
2917
2918fi
2919if test -z "$ac_cv_prog_CC"; then
2920  ac_ct_CC=$CC
2921  # Extract the first word of "gcc", so it can be a program name with args.
2922set dummy gcc; ac_word=$2
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924$as_echo_n "checking for $ac_word... " >&6; }
2925if ${ac_cv_prog_ac_ct_CC+:} false; then :
2926  $as_echo_n "(cached) " >&6
2927else
2928  if test -n "$ac_ct_CC"; then
2929  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930else
2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934  IFS=$as_save_IFS
2935  test -z "$as_dir" && as_dir=.
2936    for ac_exec_ext in '' $ac_executable_extensions; do
2937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938    ac_cv_prog_ac_ct_CC="gcc"
2939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943  done
2944IFS=$as_save_IFS
2945
2946fi
2947fi
2948ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949if test -n "$ac_ct_CC"; then
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951$as_echo "$ac_ct_CC" >&6; }
2952else
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954$as_echo "no" >&6; }
2955fi
2956
2957  if test "x$ac_ct_CC" = x; then
2958    CC=""
2959  else
2960    case $cross_compiling:$ac_tool_warned in
2961yes:)
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2964ac_tool_warned=yes ;;
2965esac
2966    CC=$ac_ct_CC
2967  fi
2968else
2969  CC="$ac_cv_prog_CC"
2970fi
2971
2972if test -z "$CC"; then
2973          if test -n "$ac_tool_prefix"; then
2974    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2975set dummy ${ac_tool_prefix}cc; ac_word=$2
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977$as_echo_n "checking for $ac_word... " >&6; }
2978if ${ac_cv_prog_CC+:} false; then :
2979  $as_echo_n "(cached) " >&6
2980else
2981  if test -n "$CC"; then
2982  ac_cv_prog_CC="$CC" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987  IFS=$as_save_IFS
2988  test -z "$as_dir" && as_dir=.
2989    for ac_exec_ext in '' $ac_executable_extensions; do
2990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991    ac_cv_prog_CC="${ac_tool_prefix}cc"
2992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993    break 2
2994  fi
2995done
2996  done
2997IFS=$as_save_IFS
2998
2999fi
3000fi
3001CC=$ac_cv_prog_CC
3002if test -n "$CC"; then
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004$as_echo "$CC" >&6; }
3005else
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
3008fi
3009
3010
3011  fi
3012fi
3013if test -z "$CC"; then
3014  # Extract the first word of "cc", so it can be a program name with args.
3015set dummy cc; ac_word=$2
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017$as_echo_n "checking for $ac_word... " >&6; }
3018if ${ac_cv_prog_CC+:} false; then :
3019  $as_echo_n "(cached) " >&6
3020else
3021  if test -n "$CC"; then
3022  ac_cv_prog_CC="$CC" # Let the user override the test.
3023else
3024  ac_prog_rejected=no
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028  IFS=$as_save_IFS
3029  test -z "$as_dir" && as_dir=.
3030    for ac_exec_ext in '' $ac_executable_extensions; do
3031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3033       ac_prog_rejected=yes
3034       continue
3035     fi
3036    ac_cv_prog_CC="cc"
3037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041  done
3042IFS=$as_save_IFS
3043
3044if test $ac_prog_rejected = yes; then
3045  # We found a bogon in the path, so make sure we never use it.
3046  set dummy $ac_cv_prog_CC
3047  shift
3048  if test $# != 0; then
3049    # We chose a different compiler from the bogus one.
3050    # However, it has the same basename, so the bogon will be chosen
3051    # first if we set CC to just the basename; use the full file name.
3052    shift
3053    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3054  fi
3055fi
3056fi
3057fi
3058CC=$ac_cv_prog_CC
3059if test -n "$CC"; then
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061$as_echo "$CC" >&6; }
3062else
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064$as_echo "no" >&6; }
3065fi
3066
3067
3068fi
3069if test -z "$CC"; then
3070  if test -n "$ac_tool_prefix"; then
3071  for ac_prog in cl.exe
3072  do
3073    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076$as_echo_n "checking for $ac_word... " >&6; }
3077if ${ac_cv_prog_CC+:} false; then :
3078  $as_echo_n "(cached) " >&6
3079else
3080  if test -n "$CC"; then
3081  ac_cv_prog_CC="$CC" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088    for ac_exec_ext in '' $ac_executable_extensions; do
3089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092    break 2
3093  fi
3094done
3095  done
3096IFS=$as_save_IFS
3097
3098fi
3099fi
3100CC=$ac_cv_prog_CC
3101if test -n "$CC"; then
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103$as_echo "$CC" >&6; }
3104else
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106$as_echo "no" >&6; }
3107fi
3108
3109
3110    test -n "$CC" && break
3111  done
3112fi
3113if test -z "$CC"; then
3114  ac_ct_CC=$CC
3115  for ac_prog in cl.exe
3116do
3117  # Extract the first word of "$ac_prog", so it can be a program name with args.
3118set dummy $ac_prog; ac_word=$2
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120$as_echo_n "checking for $ac_word... " >&6; }
3121if ${ac_cv_prog_ac_ct_CC+:} false; then :
3122  $as_echo_n "(cached) " >&6
3123else
3124  if test -n "$ac_ct_CC"; then
3125  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130  IFS=$as_save_IFS
3131  test -z "$as_dir" && as_dir=.
3132    for ac_exec_ext in '' $ac_executable_extensions; do
3133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134    ac_cv_prog_ac_ct_CC="$ac_prog"
3135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136    break 2
3137  fi
3138done
3139  done
3140IFS=$as_save_IFS
3141
3142fi
3143fi
3144ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145if test -n "$ac_ct_CC"; then
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3147$as_echo "$ac_ct_CC" >&6; }
3148else
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
3151fi
3152
3153
3154  test -n "$ac_ct_CC" && break
3155done
3156
3157  if test "x$ac_ct_CC" = x; then
3158    CC=""
3159  else
3160    case $cross_compiling:$ac_tool_warned in
3161yes:)
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164ac_tool_warned=yes ;;
3165esac
3166    CC=$ac_ct_CC
3167  fi
3168fi
3169
3170fi
3171
3172
3173test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175as_fn_error $? "no acceptable C compiler found in \$PATH
3176See \`config.log' for more details" "$LINENO" 5; }
3177
3178# Provide some information about the compiler.
3179$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3180set X $ac_compile
3181ac_compiler=$2
3182for ac_option in --version -v -V -qversion; do
3183  { { ac_try="$ac_compiler $ac_option >&5"
3184case "(($ac_try" in
3185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186  *) ac_try_echo=$ac_try;;
3187esac
3188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189$as_echo "$ac_try_echo"; } >&5
3190  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3191  ac_status=$?
3192  if test -s conftest.err; then
3193    sed '10a\
3194... rest of stderr output deleted ...
3195         10q' conftest.err >conftest.er1
3196    cat conftest.er1 >&5
3197  fi
3198  rm -f conftest.er1 conftest.err
3199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200  test $ac_status = 0; }
3201done
3202
3203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204/* end confdefs.h.  */
3205
3206int
3207main ()
3208{
3209
3210  ;
3211  return 0;
3212}
3213_ACEOF
3214ac_clean_files_save=$ac_clean_files
3215ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3216# Try to create an executable without -o first, disregard a.out.
3217# It will help us diagnose broken compilers, and finding out an intuition
3218# of exeext.
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3220$as_echo_n "checking whether the C compiler works... " >&6; }
3221ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3222
3223# The possible output files:
3224ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3225
3226ac_rmfiles=
3227for ac_file in $ac_files
3228do
3229  case $ac_file in
3230    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3232  esac
3233done
3234rm -f $ac_rmfiles
3235
3236if { { ac_try="$ac_link_default"
3237case "(($ac_try" in
3238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239  *) ac_try_echo=$ac_try;;
3240esac
3241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242$as_echo "$ac_try_echo"; } >&5
3243  (eval "$ac_link_default") 2>&5
3244  ac_status=$?
3245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246  test $ac_status = 0; }; then :
3247  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3248# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3249# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3250# so that the user can short-circuit this test for compilers unknown to
3251# Autoconf.
3252for ac_file in $ac_files ''
3253do
3254  test -f "$ac_file" || continue
3255  case $ac_file in
3256    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3257	;;
3258    [ab].out )
3259	# We found the default executable, but exeext='' is most
3260	# certainly right.
3261	break;;
3262    *.* )
3263	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3264	then :; else
3265	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3266	fi
3267	# We set ac_cv_exeext here because the later test for it is not
3268	# safe: cross compilers may not add the suffix if given an `-o'
3269	# argument, so we may need to know it at that point already.
3270	# Even if this section looks crufty: it has the advantage of
3271	# actually working.
3272	break;;
3273    * )
3274	break;;
3275  esac
3276done
3277test "$ac_cv_exeext" = no && ac_cv_exeext=
3278
3279else
3280  ac_file=''
3281fi
3282if test -z "$ac_file"; then :
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284$as_echo "no" >&6; }
3285$as_echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290as_fn_error 77 "C compiler cannot create executables
3291See \`config.log' for more details" "$LINENO" 5; }
3292else
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294$as_echo "yes" >&6; }
3295fi
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297$as_echo_n "checking for C compiler default output file name... " >&6; }
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3299$as_echo "$ac_file" >&6; }
3300ac_exeext=$ac_cv_exeext
3301
3302rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3303ac_clean_files=$ac_clean_files_save
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3305$as_echo_n "checking for suffix of executables... " >&6; }
3306if { { ac_try="$ac_link"
3307case "(($ac_try" in
3308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309  *) ac_try_echo=$ac_try;;
3310esac
3311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312$as_echo "$ac_try_echo"; } >&5
3313  (eval "$ac_link") 2>&5
3314  ac_status=$?
3315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316  test $ac_status = 0; }; then :
3317  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3318# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3319# work properly (i.e., refer to `conftest.exe'), while it won't with
3320# `rm'.
3321for ac_file in conftest.exe conftest conftest.*; do
3322  test -f "$ac_file" || continue
3323  case $ac_file in
3324    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326	  break;;
3327    * ) break;;
3328  esac
3329done
3330else
3331  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3334See \`config.log' for more details" "$LINENO" 5; }
3335fi
3336rm -f conftest conftest$ac_cv_exeext
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3338$as_echo "$ac_cv_exeext" >&6; }
3339
3340rm -f conftest.$ac_ext
3341EXEEXT=$ac_cv_exeext
3342ac_exeext=$EXEEXT
3343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344/* end confdefs.h.  */
3345#include <stdio.h>
3346int
3347main ()
3348{
3349FILE *f = fopen ("conftest.out", "w");
3350 return ferror (f) || fclose (f) != 0;
3351
3352  ;
3353  return 0;
3354}
3355_ACEOF
3356ac_clean_files="$ac_clean_files conftest.out"
3357# Check that the compiler produces executables we can run.  If not, either
3358# the compiler is broken, or we cross compile.
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3360$as_echo_n "checking whether we are cross compiling... " >&6; }
3361if test "$cross_compiling" != yes; then
3362  { { ac_try="$ac_link"
3363case "(($ac_try" in
3364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365  *) ac_try_echo=$ac_try;;
3366esac
3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368$as_echo "$ac_try_echo"; } >&5
3369  (eval "$ac_link") 2>&5
3370  ac_status=$?
3371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372  test $ac_status = 0; }
3373  if { ac_try='./conftest$ac_cv_exeext'
3374  { { case "(($ac_try" in
3375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376  *) ac_try_echo=$ac_try;;
3377esac
3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379$as_echo "$ac_try_echo"; } >&5
3380  (eval "$ac_try") 2>&5
3381  ac_status=$?
3382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383  test $ac_status = 0; }; }; then
3384    cross_compiling=no
3385  else
3386    if test "$cross_compiling" = maybe; then
3387	cross_compiling=yes
3388    else
3389	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391as_fn_error $? "cannot run C compiled programs.
3392If you meant to cross compile, use \`--host'.
3393See \`config.log' for more details" "$LINENO" 5; }
3394    fi
3395  fi
3396fi
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3398$as_echo "$cross_compiling" >&6; }
3399
3400rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3401ac_clean_files=$ac_clean_files_save
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3403$as_echo_n "checking for suffix of object files... " >&6; }
3404if ${ac_cv_objext+:} false; then :
3405  $as_echo_n "(cached) " >&6
3406else
3407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408/* end confdefs.h.  */
3409
3410int
3411main ()
3412{
3413
3414  ;
3415  return 0;
3416}
3417_ACEOF
3418rm -f conftest.o conftest.obj
3419if { { ac_try="$ac_compile"
3420case "(($ac_try" in
3421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422  *) ac_try_echo=$ac_try;;
3423esac
3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425$as_echo "$ac_try_echo"; } >&5
3426  (eval "$ac_compile") 2>&5
3427  ac_status=$?
3428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429  test $ac_status = 0; }; then :
3430  for ac_file in conftest.o conftest.obj conftest.*; do
3431  test -f "$ac_file" || continue;
3432  case $ac_file in
3433    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3434    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435       break;;
3436  esac
3437done
3438else
3439  $as_echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
3442{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444as_fn_error $? "cannot compute suffix of object files: cannot compile
3445See \`config.log' for more details" "$LINENO" 5; }
3446fi
3447rm -f conftest.$ac_cv_objext conftest.$ac_ext
3448fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3450$as_echo "$ac_cv_objext" >&6; }
3451OBJEXT=$ac_cv_objext
3452ac_objext=$OBJEXT
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3454$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3455if ${ac_cv_c_compiler_gnu+:} false; then :
3456  $as_echo_n "(cached) " >&6
3457else
3458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459/* end confdefs.h.  */
3460
3461int
3462main ()
3463{
3464#ifndef __GNUC__
3465       choke me
3466#endif
3467
3468  ;
3469  return 0;
3470}
3471_ACEOF
3472if ac_fn_c_try_compile "$LINENO"; then :
3473  ac_compiler_gnu=yes
3474else
3475  ac_compiler_gnu=no
3476fi
3477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479
3480fi
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3482$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3483if test $ac_compiler_gnu = yes; then
3484  GCC=yes
3485else
3486  GCC=
3487fi
3488ac_test_CFLAGS=${CFLAGS+set}
3489ac_save_CFLAGS=$CFLAGS
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3491$as_echo_n "checking whether $CC accepts -g... " >&6; }
3492if ${ac_cv_prog_cc_g+:} false; then :
3493  $as_echo_n "(cached) " >&6
3494else
3495  ac_save_c_werror_flag=$ac_c_werror_flag
3496   ac_c_werror_flag=yes
3497   ac_cv_prog_cc_g=no
3498   CFLAGS="-g"
3499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500/* end confdefs.h.  */
3501
3502int
3503main ()
3504{
3505
3506  ;
3507  return 0;
3508}
3509_ACEOF
3510if ac_fn_c_try_compile "$LINENO"; then :
3511  ac_cv_prog_cc_g=yes
3512else
3513  CFLAGS=""
3514      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525if ac_fn_c_try_compile "$LINENO"; then :
3526
3527else
3528  ac_c_werror_flag=$ac_save_c_werror_flag
3529	 CFLAGS="-g"
3530	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h.  */
3532
3533int
3534main ()
3535{
3536
3537  ;
3538  return 0;
3539}
3540_ACEOF
3541if ac_fn_c_try_compile "$LINENO"; then :
3542  ac_cv_prog_cc_g=yes
3543fi
3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545fi
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547fi
3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549   ac_c_werror_flag=$ac_save_c_werror_flag
3550fi
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3552$as_echo "$ac_cv_prog_cc_g" >&6; }
3553if test "$ac_test_CFLAGS" = set; then
3554  CFLAGS=$ac_save_CFLAGS
3555elif test $ac_cv_prog_cc_g = yes; then
3556  if test "$GCC" = yes; then
3557    CFLAGS="-g -O2"
3558  else
3559    CFLAGS="-g"
3560  fi
3561else
3562  if test "$GCC" = yes; then
3563    CFLAGS="-O2"
3564  else
3565    CFLAGS=
3566  fi
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3569$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3570if ${ac_cv_prog_cc_c89+:} false; then :
3571  $as_echo_n "(cached) " >&6
3572else
3573  ac_cv_prog_cc_c89=no
3574ac_save_CC=$CC
3575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h.  */
3577#include <stdarg.h>
3578#include <stdio.h>
3579struct stat;
3580/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3581struct buf { int x; };
3582FILE * (*rcsopen) (struct buf *, struct stat *, int);
3583static char *e (p, i)
3584     char **p;
3585     int i;
3586{
3587  return p[i];
3588}
3589static char *f (char * (*g) (char **, int), char **p, ...)
3590{
3591  char *s;
3592  va_list v;
3593  va_start (v,p);
3594  s = g (p, va_arg (v,int));
3595  va_end (v);
3596  return s;
3597}
3598
3599/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3600   function prototypes and stuff, but not '\xHH' hex character constants.
3601   These don't provoke an error unfortunately, instead are silently treated
3602   as 'x'.  The following induces an error, until -std is added to get
3603   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3604   array size at least.  It's necessary to write '\x00'==0 to get something
3605   that's true only with -std.  */
3606int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3607
3608/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3609   inside strings and character constants.  */
3610#define FOO(x) 'x'
3611int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3612
3613int test (int i, double x);
3614struct s1 {int (*f) (int a);};
3615struct s2 {int (*f) (double a);};
3616int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3617int argc;
3618char **argv;
3619int
3620main ()
3621{
3622return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3628	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3629do
3630  CC="$ac_save_CC $ac_arg"
3631  if ac_fn_c_try_compile "$LINENO"; then :
3632  ac_cv_prog_cc_c89=$ac_arg
3633fi
3634rm -f core conftest.err conftest.$ac_objext
3635  test "x$ac_cv_prog_cc_c89" != "xno" && break
3636done
3637rm -f conftest.$ac_ext
3638CC=$ac_save_CC
3639
3640fi
3641# AC_CACHE_VAL
3642case "x$ac_cv_prog_cc_c89" in
3643  x)
3644    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645$as_echo "none needed" >&6; } ;;
3646  xno)
3647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3648$as_echo "unsupported" >&6; } ;;
3649  *)
3650    CC="$CC $ac_cv_prog_cc_c89"
3651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3652$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3653esac
3654if test "x$ac_cv_prog_cc_c89" != xno; then :
3655
3656fi
3657
3658ac_ext=c
3659ac_cpp='$CPP $CPPFLAGS'
3660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663
3664ac_ext=c
3665ac_cpp='$CPP $CPPFLAGS'
3666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3670$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3671if ${am_cv_prog_cc_c_o+:} false; then :
3672  $as_echo_n "(cached) " >&6
3673else
3674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676
3677int
3678main ()
3679{
3680
3681  ;
3682  return 0;
3683}
3684_ACEOF
3685  # Make sure it works both with $CC and with simple cc.
3686  # Following AC_PROG_CC_C_O, we do the test twice because some
3687  # compilers refuse to overwrite an existing .o file with -o,
3688  # though they will create one.
3689  am_cv_prog_cc_c_o=yes
3690  for am_i in 1 2; do
3691    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3692   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3693   ac_status=$?
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); } \
3696         && test -f conftest2.$ac_objext; then
3697      : OK
3698    else
3699      am_cv_prog_cc_c_o=no
3700      break
3701    fi
3702  done
3703  rm -f core conftest*
3704  unset am_i
3705fi
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3707$as_echo "$am_cv_prog_cc_c_o" >&6; }
3708if test "$am_cv_prog_cc_c_o" != yes; then
3709   # Losing compiler, so override with the script.
3710   # FIXME: It is wrong to rewrite CC.
3711   # But if we don't then we get into trouble of one sort or another.
3712   # A longer-term fix would be to have automake use am__CC in this case,
3713   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3714   CC="$am_aux_dir/compile $CC"
3715fi
3716ac_ext=c
3717ac_cpp='$CPP $CPPFLAGS'
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
3722
3723# Extract the first word of "wine", so it can be a program name with args.
3724set dummy wine; ac_word=$2
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726$as_echo_n "checking for $ac_word... " >&6; }
3727if ${ac_cv_prog_WINE+:} false; then :
3728  $as_echo_n "(cached) " >&6
3729else
3730  if test -n "$WINE"; then
3731  ac_cv_prog_WINE="$WINE" # Let the user override the test.
3732else
3733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734for as_dir in $PATH
3735do
3736  IFS=$as_save_IFS
3737  test -z "$as_dir" && as_dir=.
3738    for ac_exec_ext in '' $ac_executable_extensions; do
3739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740    ac_cv_prog_WINE="wine"
3741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742    break 2
3743  fi
3744done
3745  done
3746IFS=$as_save_IFS
3747
3748fi
3749fi
3750WINE=$ac_cv_prog_WINE
3751if test -n "$WINE"; then
3752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINE" >&5
3753$as_echo "$WINE" >&6; }
3754else
3755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756$as_echo "no" >&6; }
3757fi
3758
3759
3760
3761# Checks for libraries.
3762
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
3764$as_echo_n "checking for log in -lm... " >&6; }
3765if ${ac_cv_lib_m_log+:} false; then :
3766  $as_echo_n "(cached) " >&6
3767else
3768  ac_check_lib_save_LIBS=$LIBS
3769LIBS="-lm  $LIBS"
3770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h.  */
3772
3773/* Override any GCC internal prototype to avoid an error.
3774   Use char because int might match the return type of a GCC
3775   builtin and then its argument prototype would still apply.  */
3776#ifdef __cplusplus
3777extern "C"
3778#endif
3779char log ();
3780int
3781main ()
3782{
3783return log ();
3784  ;
3785  return 0;
3786}
3787_ACEOF
3788if ac_fn_c_try_link "$LINENO"; then :
3789  ac_cv_lib_m_log=yes
3790else
3791  ac_cv_lib_m_log=no
3792fi
3793rm -f core conftest.err conftest.$ac_objext \
3794    conftest$ac_exeext conftest.$ac_ext
3795LIBS=$ac_check_lib_save_LIBS
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5
3798$as_echo "$ac_cv_lib_m_log" >&6; }
3799if test "x$ac_cv_lib_m_log" = xyes; then :
3800  cat >>confdefs.h <<_ACEOF
3801#define HAVE_LIBM 1
3802_ACEOF
3803
3804  LIBS="-lm $LIBS"
3805
3806else
3807  as_fn_error $? "the libm library is missing" "$LINENO" 5
3808fi
3809
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for adler32 in -lz" >&5
3811$as_echo_n "checking for adler32 in -lz... " >&6; }
3812if ${ac_cv_lib_z_adler32+:} false; then :
3813  $as_echo_n "(cached) " >&6
3814else
3815  ac_check_lib_save_LIBS=$LIBS
3816LIBS="-lz  $LIBS"
3817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h.  */
3819
3820/* Override any GCC internal prototype to avoid an error.
3821   Use char because int might match the return type of a GCC
3822   builtin and then its argument prototype would still apply.  */
3823#ifdef __cplusplus
3824extern "C"
3825#endif
3826char adler32 ();
3827int
3828main ()
3829{
3830return adler32 ();
3831  ;
3832  return 0;
3833}
3834_ACEOF
3835if ac_fn_c_try_link "$LINENO"; then :
3836  ac_cv_lib_z_adler32=yes
3837else
3838  ac_cv_lib_z_adler32=no
3839fi
3840rm -f core conftest.err conftest.$ac_objext \
3841    conftest$ac_exeext conftest.$ac_ext
3842LIBS=$ac_check_lib_save_LIBS
3843fi
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_adler32" >&5
3845$as_echo "$ac_cv_lib_z_adler32" >&6; }
3846if test "x$ac_cv_lib_z_adler32" = xyes; then :
3847  cat >>confdefs.h <<_ACEOF
3848#define HAVE_LIBZ 1
3849_ACEOF
3850
3851  LIBS="-lz $LIBS"
3852
3853else
3854  as_fn_error $? "the libz library is missing" "$LINENO" 5
3855fi
3856
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_IHDR in -lpng" >&5
3858$as_echo_n "checking for png_get_IHDR in -lpng... " >&6; }
3859if ${ac_cv_lib_png_png_get_IHDR+:} false; then :
3860  $as_echo_n "(cached) " >&6
3861else
3862  ac_check_lib_save_LIBS=$LIBS
3863LIBS="-lpng  $LIBS"
3864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865/* end confdefs.h.  */
3866
3867/* Override any GCC internal prototype to avoid an error.
3868   Use char because int might match the return type of a GCC
3869   builtin and then its argument prototype would still apply.  */
3870#ifdef __cplusplus
3871extern "C"
3872#endif
3873char png_get_IHDR ();
3874int
3875main ()
3876{
3877return png_get_IHDR ();
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882if ac_fn_c_try_link "$LINENO"; then :
3883  ac_cv_lib_png_png_get_IHDR=yes
3884else
3885  ac_cv_lib_png_png_get_IHDR=no
3886fi
3887rm -f core conftest.err conftest.$ac_objext \
3888    conftest$ac_exeext conftest.$ac_ext
3889LIBS=$ac_check_lib_save_LIBS
3890fi
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_IHDR" >&5
3892$as_echo "$ac_cv_lib_png_png_get_IHDR" >&6; }
3893if test "x$ac_cv_lib_png_png_get_IHDR" = xyes; then :
3894  cat >>confdefs.h <<_ACEOF
3895#define HAVE_LIBPNG 1
3896_ACEOF
3897
3898  LIBS="-lpng $LIBS"
3899
3900else
3901  as_fn_error $? "the libpng library is missing" "$LINENO" 5
3902fi
3903
3904
3905# Checks for header files.
3906ac_ext=c
3907ac_cpp='$CPP $CPPFLAGS'
3908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3912$as_echo_n "checking how to run the C preprocessor... " >&6; }
3913# On Suns, sometimes $CPP names a directory.
3914if test -n "$CPP" && test -d "$CPP"; then
3915  CPP=
3916fi
3917if test -z "$CPP"; then
3918  if ${ac_cv_prog_CPP+:} false; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921      # Double quotes because CPP needs to be expanded
3922    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3923    do
3924      ac_preproc_ok=false
3925for ac_c_preproc_warn_flag in '' yes
3926do
3927  # Use a header file that comes with gcc, so configuring glibc
3928  # with a fresh cross-compiler works.
3929  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3930  # <limits.h> exists even on freestanding compilers.
3931  # On the NeXT, cc -E runs the code through the compiler's parser,
3932  # not just through cpp. "Syntax error" is here to catch this case.
3933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h.  */
3935#ifdef __STDC__
3936# include <limits.h>
3937#else
3938# include <assert.h>
3939#endif
3940		     Syntax error
3941_ACEOF
3942if ac_fn_c_try_cpp "$LINENO"; then :
3943
3944else
3945  # Broken: fails on valid input.
3946continue
3947fi
3948rm -f conftest.err conftest.i conftest.$ac_ext
3949
3950  # OK, works on sane cases.  Now check whether nonexistent headers
3951  # can be detected and how.
3952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h.  */
3954#include <ac_nonexistent.h>
3955_ACEOF
3956if ac_fn_c_try_cpp "$LINENO"; then :
3957  # Broken: success on invalid input.
3958continue
3959else
3960  # Passes both tests.
3961ac_preproc_ok=:
3962break
3963fi
3964rm -f conftest.err conftest.i conftest.$ac_ext
3965
3966done
3967# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3968rm -f conftest.i conftest.err conftest.$ac_ext
3969if $ac_preproc_ok; then :
3970  break
3971fi
3972
3973    done
3974    ac_cv_prog_CPP=$CPP
3975
3976fi
3977  CPP=$ac_cv_prog_CPP
3978else
3979  ac_cv_prog_CPP=$CPP
3980fi
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3982$as_echo "$CPP" >&6; }
3983ac_preproc_ok=false
3984for ac_c_preproc_warn_flag in '' yes
3985do
3986  # Use a header file that comes with gcc, so configuring glibc
3987  # with a fresh cross-compiler works.
3988  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989  # <limits.h> exists even on freestanding compilers.
3990  # On the NeXT, cc -E runs the code through the compiler's parser,
3991  # not just through cpp. "Syntax error" is here to catch this case.
3992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h.  */
3994#ifdef __STDC__
3995# include <limits.h>
3996#else
3997# include <assert.h>
3998#endif
3999		     Syntax error
4000_ACEOF
4001if ac_fn_c_try_cpp "$LINENO"; then :
4002
4003else
4004  # Broken: fails on valid input.
4005continue
4006fi
4007rm -f conftest.err conftest.i conftest.$ac_ext
4008
4009  # OK, works on sane cases.  Now check whether nonexistent headers
4010  # can be detected and how.
4011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013#include <ac_nonexistent.h>
4014_ACEOF
4015if ac_fn_c_try_cpp "$LINENO"; then :
4016  # Broken: success on invalid input.
4017continue
4018else
4019  # Passes both tests.
4020ac_preproc_ok=:
4021break
4022fi
4023rm -f conftest.err conftest.i conftest.$ac_ext
4024
4025done
4026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027rm -f conftest.i conftest.err conftest.$ac_ext
4028if $ac_preproc_ok; then :
4029
4030else
4031  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4034See \`config.log' for more details" "$LINENO" 5; }
4035fi
4036
4037ac_ext=c
4038ac_cpp='$CPP $CPPFLAGS'
4039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4045$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4046if ${ac_cv_path_GREP+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049  if test -z "$GREP"; then
4050  ac_path_GREP_found=false
4051  # Loop through the user's path and test for each of PROGNAME-LIST
4052  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054do
4055  IFS=$as_save_IFS
4056  test -z "$as_dir" && as_dir=.
4057    for ac_prog in grep ggrep; do
4058    for ac_exec_ext in '' $ac_executable_extensions; do
4059      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4060      as_fn_executable_p "$ac_path_GREP" || continue
4061# Check for GNU ac_path_GREP and select it if it is found.
4062  # Check for GNU $ac_path_GREP
4063case `"$ac_path_GREP" --version 2>&1` in
4064*GNU*)
4065  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4066*)
4067  ac_count=0
4068  $as_echo_n 0123456789 >"conftest.in"
4069  while :
4070  do
4071    cat "conftest.in" "conftest.in" >"conftest.tmp"
4072    mv "conftest.tmp" "conftest.in"
4073    cp "conftest.in" "conftest.nl"
4074    $as_echo 'GREP' >> "conftest.nl"
4075    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077    as_fn_arith $ac_count + 1 && ac_count=$as_val
4078    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4079      # Best one so far, save it but keep looking for a better one
4080      ac_cv_path_GREP="$ac_path_GREP"
4081      ac_path_GREP_max=$ac_count
4082    fi
4083    # 10*(2^10) chars as input seems more than enough
4084    test $ac_count -gt 10 && break
4085  done
4086  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087esac
4088
4089      $ac_path_GREP_found && break 3
4090    done
4091  done
4092  done
4093IFS=$as_save_IFS
4094  if test -z "$ac_cv_path_GREP"; then
4095    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4096  fi
4097else
4098  ac_cv_path_GREP=$GREP
4099fi
4100
4101fi
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4103$as_echo "$ac_cv_path_GREP" >&6; }
4104 GREP="$ac_cv_path_GREP"
4105
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4108$as_echo_n "checking for egrep... " >&6; }
4109if ${ac_cv_path_EGREP+:} false; then :
4110  $as_echo_n "(cached) " >&6
4111else
4112  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4113   then ac_cv_path_EGREP="$GREP -E"
4114   else
4115     if test -z "$EGREP"; then
4116  ac_path_EGREP_found=false
4117  # Loop through the user's path and test for each of PROGNAME-LIST
4118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120do
4121  IFS=$as_save_IFS
4122  test -z "$as_dir" && as_dir=.
4123    for ac_prog in egrep; do
4124    for ac_exec_ext in '' $ac_executable_extensions; do
4125      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4126      as_fn_executable_p "$ac_path_EGREP" || continue
4127# Check for GNU ac_path_EGREP and select it if it is found.
4128  # Check for GNU $ac_path_EGREP
4129case `"$ac_path_EGREP" --version 2>&1` in
4130*GNU*)
4131  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4132*)
4133  ac_count=0
4134  $as_echo_n 0123456789 >"conftest.in"
4135  while :
4136  do
4137    cat "conftest.in" "conftest.in" >"conftest.tmp"
4138    mv "conftest.tmp" "conftest.in"
4139    cp "conftest.in" "conftest.nl"
4140    $as_echo 'EGREP' >> "conftest.nl"
4141    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143    as_fn_arith $ac_count + 1 && ac_count=$as_val
4144    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4145      # Best one so far, save it but keep looking for a better one
4146      ac_cv_path_EGREP="$ac_path_EGREP"
4147      ac_path_EGREP_max=$ac_count
4148    fi
4149    # 10*(2^10) chars as input seems more than enough
4150    test $ac_count -gt 10 && break
4151  done
4152  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153esac
4154
4155      $ac_path_EGREP_found && break 3
4156    done
4157  done
4158  done
4159IFS=$as_save_IFS
4160  if test -z "$ac_cv_path_EGREP"; then
4161    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162  fi
4163else
4164  ac_cv_path_EGREP=$EGREP
4165fi
4166
4167   fi
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4170$as_echo "$ac_cv_path_EGREP" >&6; }
4171 EGREP="$ac_cv_path_EGREP"
4172
4173
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4175$as_echo_n "checking for ANSI C header files... " >&6; }
4176if ${ac_cv_header_stdc+:} false; then :
4177  $as_echo_n "(cached) " >&6
4178else
4179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h.  */
4181#include <stdlib.h>
4182#include <stdarg.h>
4183#include <string.h>
4184#include <float.h>
4185
4186int
4187main ()
4188{
4189
4190  ;
4191  return 0;
4192}
4193_ACEOF
4194if ac_fn_c_try_compile "$LINENO"; then :
4195  ac_cv_header_stdc=yes
4196else
4197  ac_cv_header_stdc=no
4198fi
4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200
4201if test $ac_cv_header_stdc = yes; then
4202  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h.  */
4205#include <string.h>
4206
4207_ACEOF
4208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209  $EGREP "memchr" >/dev/null 2>&1; then :
4210
4211else
4212  ac_cv_header_stdc=no
4213fi
4214rm -f conftest*
4215
4216fi
4217
4218if test $ac_cv_header_stdc = yes; then
4219  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h.  */
4222#include <stdlib.h>
4223
4224_ACEOF
4225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226  $EGREP "free" >/dev/null 2>&1; then :
4227
4228else
4229  ac_cv_header_stdc=no
4230fi
4231rm -f conftest*
4232
4233fi
4234
4235if test $ac_cv_header_stdc = yes; then
4236  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4237  if test "$cross_compiling" = yes; then :
4238  :
4239else
4240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h.  */
4242#include <ctype.h>
4243#include <stdlib.h>
4244#if ((' ' & 0x0FF) == 0x020)
4245# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247#else
4248# define ISLOWER(c) \
4249		   (('a' <= (c) && (c) <= 'i') \
4250		     || ('j' <= (c) && (c) <= 'r') \
4251		     || ('s' <= (c) && (c) <= 'z'))
4252# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253#endif
4254
4255#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256int
4257main ()
4258{
4259  int i;
4260  for (i = 0; i < 256; i++)
4261    if (XOR (islower (i), ISLOWER (i))
4262	|| toupper (i) != TOUPPER (i))
4263      return 2;
4264  return 0;
4265}
4266_ACEOF
4267if ac_fn_c_try_run "$LINENO"; then :
4268
4269else
4270  ac_cv_header_stdc=no
4271fi
4272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4273  conftest.$ac_objext conftest.beam conftest.$ac_ext
4274fi
4275
4276fi
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4279$as_echo "$ac_cv_header_stdc" >&6; }
4280if test $ac_cv_header_stdc = yes; then
4281
4282$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4283
4284fi
4285
4286# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4287for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4288		  inttypes.h stdint.h unistd.h
4289do :
4290  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4291ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4292"
4293if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4294  cat >>confdefs.h <<_ACEOF
4295#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4296_ACEOF
4297
4298fi
4299
4300done
4301
4302
4303for ac_header in unistd.h getopt.h
4304do :
4305  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4306ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4307if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4308  cat >>confdefs.h <<_ACEOF
4309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4310_ACEOF
4311
4312fi
4313
4314done
4315
4316
4317# Checks for typedefs, structures, and compiler characteristics.
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4319$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4320if ${ac_cv_c_const+:} false; then :
4321  $as_echo_n "(cached) " >&6
4322else
4323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324/* end confdefs.h.  */
4325
4326int
4327main ()
4328{
4329
4330#ifndef __cplusplus
4331  /* Ultrix mips cc rejects this sort of thing.  */
4332  typedef int charset[2];
4333  const charset cs = { 0, 0 };
4334  /* SunOS 4.1.1 cc rejects this.  */
4335  char const *const *pcpcc;
4336  char **ppc;
4337  /* NEC SVR4.0.2 mips cc rejects this.  */
4338  struct point {int x, y;};
4339  static struct point const zero = {0,0};
4340  /* AIX XL C 1.02.0.0 rejects this.
4341     It does not let you subtract one const X* pointer from another in
4342     an arm of an if-expression whose if-part is not a constant
4343     expression */
4344  const char *g = "string";
4345  pcpcc = &g + (g ? g-g : 0);
4346  /* HPUX 7.0 cc rejects these. */
4347  ++pcpcc;
4348  ppc = (char**) pcpcc;
4349  pcpcc = (char const *const *) ppc;
4350  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4351    char tx;
4352    char *t = &tx;
4353    char const *s = 0 ? (char *) 0 : (char const *) 0;
4354
4355    *t++ = 0;
4356    if (s) return 0;
4357  }
4358  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4359    int x[] = {25, 17};
4360    const int *foo = &x[0];
4361    ++foo;
4362  }
4363  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4364    typedef const int *iptr;
4365    iptr p = 0;
4366    ++p;
4367  }
4368  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4369       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4370    struct s { int j; const int *ap[3]; } bx;
4371    struct s *b = &bx; b->j = 5;
4372  }
4373  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4374    const int foo = 10;
4375    if (!foo) return 0;
4376  }
4377  return !cs[0] && !zero.x;
4378#endif
4379
4380  ;
4381  return 0;
4382}
4383_ACEOF
4384if ac_fn_c_try_compile "$LINENO"; then :
4385  ac_cv_c_const=yes
4386else
4387  ac_cv_c_const=no
4388fi
4389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4392$as_echo "$ac_cv_c_const" >&6; }
4393if test $ac_cv_c_const = no; then
4394
4395$as_echo "#define const /**/" >>confdefs.h
4396
4397fi
4398
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4400$as_echo_n "checking for inline... " >&6; }
4401if ${ac_cv_c_inline+:} false; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404  ac_cv_c_inline=no
4405for ac_kw in inline __inline__ __inline; do
4406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h.  */
4408#ifndef __cplusplus
4409typedef int foo_t;
4410static $ac_kw foo_t static_foo () {return 0; }
4411$ac_kw foo_t foo () {return 0; }
4412#endif
4413
4414_ACEOF
4415if ac_fn_c_try_compile "$LINENO"; then :
4416  ac_cv_c_inline=$ac_kw
4417fi
4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419  test "$ac_cv_c_inline" != no && break
4420done
4421
4422fi
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4424$as_echo "$ac_cv_c_inline" >&6; }
4425
4426case $ac_cv_c_inline in
4427  inline | yes) ;;
4428  *)
4429    case $ac_cv_c_inline in
4430      no) ac_val=;;
4431      *) ac_val=$ac_cv_c_inline;;
4432    esac
4433    cat >>confdefs.h <<_ACEOF
4434#ifndef __cplusplus
4435#define inline $ac_val
4436#endif
4437_ACEOF
4438    ;;
4439esac
4440
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4442$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4443if ${ac_cv_c_restrict+:} false; then :
4444  $as_echo_n "(cached) " >&6
4445else
4446  ac_cv_c_restrict=no
4447   # The order here caters to the fact that C++ does not require restrict.
4448   for ac_kw in __restrict __restrict__ _Restrict restrict; do
4449     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450/* end confdefs.h.  */
4451typedef int * int_ptr;
4452	int foo (int_ptr $ac_kw ip) {
4453	return ip[0];
4454       }
4455int
4456main ()
4457{
4458int s[1];
4459	int * $ac_kw t = s;
4460	t[0] = 0;
4461	return foo(t)
4462  ;
4463  return 0;
4464}
4465_ACEOF
4466if ac_fn_c_try_compile "$LINENO"; then :
4467  ac_cv_c_restrict=$ac_kw
4468fi
4469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470     test "$ac_cv_c_restrict" != no && break
4471   done
4472
4473fi
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4475$as_echo "$ac_cv_c_restrict" >&6; }
4476
4477 case $ac_cv_c_restrict in
4478   restrict) ;;
4479   no) $as_echo "#define restrict /**/" >>confdefs.h
4480 ;;
4481   *)  cat >>confdefs.h <<_ACEOF
4482#define restrict $ac_cv_c_restrict
4483_ACEOF
4484 ;;
4485 esac
4486
4487
4488# Checks for library functions.
4489ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4490if test "x$ac_cv_type_size_t" = xyes; then :
4491
4492else
4493
4494cat >>confdefs.h <<_ACEOF
4495#define size_t unsigned int
4496_ACEOF
4497
4498fi
4499
4500# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4501# for constant arguments.  Useless!
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4503$as_echo_n "checking for working alloca.h... " >&6; }
4504if ${ac_cv_working_alloca_h+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509#include <alloca.h>
4510int
4511main ()
4512{
4513char *p = (char *) alloca (2 * sizeof (int));
4514			  if (p) return 0;
4515  ;
4516  return 0;
4517}
4518_ACEOF
4519if ac_fn_c_try_link "$LINENO"; then :
4520  ac_cv_working_alloca_h=yes
4521else
4522  ac_cv_working_alloca_h=no
4523fi
4524rm -f core conftest.err conftest.$ac_objext \
4525    conftest$ac_exeext conftest.$ac_ext
4526fi
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4528$as_echo "$ac_cv_working_alloca_h" >&6; }
4529if test $ac_cv_working_alloca_h = yes; then
4530
4531$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4532
4533fi
4534
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4536$as_echo_n "checking for alloca... " >&6; }
4537if ${ac_cv_func_alloca_works+:} false; then :
4538  $as_echo_n "(cached) " >&6
4539else
4540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541/* end confdefs.h.  */
4542#ifdef __GNUC__
4543# define alloca __builtin_alloca
4544#else
4545# ifdef _MSC_VER
4546#  include <malloc.h>
4547#  define alloca _alloca
4548# else
4549#  ifdef HAVE_ALLOCA_H
4550#   include <alloca.h>
4551#  else
4552#   ifdef _AIX
4553 #pragma alloca
4554#   else
4555#    ifndef alloca /* predefined by HP cc +Olibcalls */
4556void *alloca (size_t);
4557#    endif
4558#   endif
4559#  endif
4560# endif
4561#endif
4562
4563int
4564main ()
4565{
4566char *p = (char *) alloca (1);
4567				    if (p) return 0;
4568  ;
4569  return 0;
4570}
4571_ACEOF
4572if ac_fn_c_try_link "$LINENO"; then :
4573  ac_cv_func_alloca_works=yes
4574else
4575  ac_cv_func_alloca_works=no
4576fi
4577rm -f core conftest.err conftest.$ac_objext \
4578    conftest$ac_exeext conftest.$ac_ext
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4581$as_echo "$ac_cv_func_alloca_works" >&6; }
4582
4583if test $ac_cv_func_alloca_works = yes; then
4584
4585$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4586
4587else
4588  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4589# that cause trouble.  Some versions do not even contain alloca or
4590# contain a buggy version.  If you still want to use their alloca,
4591# use ar to extract alloca.o from them instead of compiling alloca.c.
4592
4593ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4594
4595$as_echo "#define C_ALLOCA 1" >>confdefs.h
4596
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4599$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4600if ${ac_cv_os_cray+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h.  */
4605#if defined CRAY && ! defined CRAY2
4606webecray
4607#else
4608wenotbecray
4609#endif
4610
4611_ACEOF
4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613  $EGREP "webecray" >/dev/null 2>&1; then :
4614  ac_cv_os_cray=yes
4615else
4616  ac_cv_os_cray=no
4617fi
4618rm -f conftest*
4619
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4622$as_echo "$ac_cv_os_cray" >&6; }
4623if test $ac_cv_os_cray = yes; then
4624  for ac_func in _getb67 GETB67 getb67; do
4625    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4626ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4627if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4628
4629cat >>confdefs.h <<_ACEOF
4630#define CRAY_STACKSEG_END $ac_func
4631_ACEOF
4632
4633    break
4634fi
4635
4636  done
4637fi
4638
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4640$as_echo_n "checking stack direction for C alloca... " >&6; }
4641if ${ac_cv_c_stack_direction+:} false; then :
4642  $as_echo_n "(cached) " >&6
4643else
4644  if test "$cross_compiling" = yes; then :
4645  ac_cv_c_stack_direction=0
4646else
4647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h.  */
4649$ac_includes_default
4650int
4651find_stack_direction (int *addr, int depth)
4652{
4653  int dir, dummy = 0;
4654  if (! addr)
4655    addr = &dummy;
4656  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4657  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4658  return dir + dummy;
4659}
4660
4661int
4662main (int argc, char **argv)
4663{
4664  return find_stack_direction (0, argc + !argv + 20) < 0;
4665}
4666_ACEOF
4667if ac_fn_c_try_run "$LINENO"; then :
4668  ac_cv_c_stack_direction=1
4669else
4670  ac_cv_c_stack_direction=-1
4671fi
4672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4673  conftest.$ac_objext conftest.beam conftest.$ac_ext
4674fi
4675
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4678$as_echo "$ac_cv_c_stack_direction" >&6; }
4679cat >>confdefs.h <<_ACEOF
4680#define STACK_DIRECTION $ac_cv_c_stack_direction
4681_ACEOF
4682
4683
4684fi
4685
4686for ac_func in getopt getopt_long
4687do :
4688  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4689ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4690if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4691  cat >>confdefs.h <<_ACEOF
4692#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4693_ACEOF
4694
4695fi
4696done
4697
4698
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4700$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4701if ${ac_cv_c_bigendian+:} false; then :
4702  $as_echo_n "(cached) " >&6
4703else
4704  ac_cv_c_bigendian=unknown
4705    # See if we're dealing with a universal compiler.
4706    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h.  */
4708#ifndef __APPLE_CC__
4709	       not a universal capable compiler
4710	     #endif
4711	     typedef int dummy;
4712
4713_ACEOF
4714if ac_fn_c_try_compile "$LINENO"; then :
4715
4716	# Check for potential -arch flags.  It is not universal unless
4717	# there are at least two -arch flags with different values.
4718	ac_arch=
4719	ac_prev=
4720	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4721	 if test -n "$ac_prev"; then
4722	   case $ac_word in
4723	     i?86 | x86_64 | ppc | ppc64)
4724	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4725		 ac_arch=$ac_word
4726	       else
4727		 ac_cv_c_bigendian=universal
4728		 break
4729	       fi
4730	       ;;
4731	   esac
4732	   ac_prev=
4733	 elif test "x$ac_word" = "x-arch"; then
4734	   ac_prev=arch
4735	 fi
4736       done
4737fi
4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739    if test $ac_cv_c_bigendian = unknown; then
4740      # See if sys/param.h defines the BYTE_ORDER macro.
4741      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742/* end confdefs.h.  */
4743#include <sys/types.h>
4744	     #include <sys/param.h>
4745
4746int
4747main ()
4748{
4749#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4750		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4751		     && LITTLE_ENDIAN)
4752	      bogus endian macros
4753	     #endif
4754
4755  ;
4756  return 0;
4757}
4758_ACEOF
4759if ac_fn_c_try_compile "$LINENO"; then :
4760  # It does; now see whether it defined to BIG_ENDIAN or not.
4761	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762/* end confdefs.h.  */
4763#include <sys/types.h>
4764		#include <sys/param.h>
4765
4766int
4767main ()
4768{
4769#if BYTE_ORDER != BIG_ENDIAN
4770		 not big endian
4771		#endif
4772
4773  ;
4774  return 0;
4775}
4776_ACEOF
4777if ac_fn_c_try_compile "$LINENO"; then :
4778  ac_cv_c_bigendian=yes
4779else
4780  ac_cv_c_bigendian=no
4781fi
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
4784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785    fi
4786    if test $ac_cv_c_bigendian = unknown; then
4787      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4788      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h.  */
4790#include <limits.h>
4791
4792int
4793main ()
4794{
4795#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4796	      bogus endian macros
4797	     #endif
4798
4799  ;
4800  return 0;
4801}
4802_ACEOF
4803if ac_fn_c_try_compile "$LINENO"; then :
4804  # It does; now see whether it defined to _BIG_ENDIAN or not.
4805	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h.  */
4807#include <limits.h>
4808
4809int
4810main ()
4811{
4812#ifndef _BIG_ENDIAN
4813		 not big endian
4814		#endif
4815
4816  ;
4817  return 0;
4818}
4819_ACEOF
4820if ac_fn_c_try_compile "$LINENO"; then :
4821  ac_cv_c_bigendian=yes
4822else
4823  ac_cv_c_bigendian=no
4824fi
4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826fi
4827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828    fi
4829    if test $ac_cv_c_bigendian = unknown; then
4830      # Compile a test program.
4831      if test "$cross_compiling" = yes; then :
4832  # Try to guess by grepping values from an object file.
4833	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834/* end confdefs.h.  */
4835short int ascii_mm[] =
4836		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4837		short int ascii_ii[] =
4838		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4839		int use_ascii (int i) {
4840		  return ascii_mm[i] + ascii_ii[i];
4841		}
4842		short int ebcdic_ii[] =
4843		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4844		short int ebcdic_mm[] =
4845		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4846		int use_ebcdic (int i) {
4847		  return ebcdic_mm[i] + ebcdic_ii[i];
4848		}
4849		extern int foo;
4850
4851int
4852main ()
4853{
4854return use_ascii (foo) == use_ebcdic (foo);
4855  ;
4856  return 0;
4857}
4858_ACEOF
4859if ac_fn_c_try_compile "$LINENO"; then :
4860  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4861	      ac_cv_c_bigendian=yes
4862	    fi
4863	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4864	      if test "$ac_cv_c_bigendian" = unknown; then
4865		ac_cv_c_bigendian=no
4866	      else
4867		# finding both strings is unlikely to happen, but who knows?
4868		ac_cv_c_bigendian=unknown
4869	      fi
4870	    fi
4871fi
4872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873else
4874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875/* end confdefs.h.  */
4876$ac_includes_default
4877int
4878main ()
4879{
4880
4881	     /* Are we little or big endian?  From Harbison&Steele.  */
4882	     union
4883	     {
4884	       long int l;
4885	       char c[sizeof (long int)];
4886	     } u;
4887	     u.l = 1;
4888	     return u.c[sizeof (long int) - 1] == 1;
4889
4890  ;
4891  return 0;
4892}
4893_ACEOF
4894if ac_fn_c_try_run "$LINENO"; then :
4895  ac_cv_c_bigendian=no
4896else
4897  ac_cv_c_bigendian=yes
4898fi
4899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4900  conftest.$ac_objext conftest.beam conftest.$ac_ext
4901fi
4902
4903    fi
4904fi
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4906$as_echo "$ac_cv_c_bigendian" >&6; }
4907 case $ac_cv_c_bigendian in #(
4908   yes)
4909     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4910;; #(
4911   no)
4912      ;; #(
4913   universal)
4914
4915$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4916
4917     ;; #(
4918   *)
4919     as_fn_error $? "unknown endianness
4920 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4921 esac
4922
4923
4924
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wall" >&5
4926$as_echo_n "checking whether ${CC-cc} accepts -Wall... " >&6; }
4927echo 'void f(){}' > conftest.c
4928if test -z "`${CC-cc} -c -Wall conftest.c 2>&1`"; then
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4930$as_echo "yes" >&6; }
4931  CFLAGS="$CFLAGS -Wall"
4932else
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934$as_echo "no" >&6; }
4935
4936fi
4937rm -f conftest*
4938
4939
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wextra" >&5
4941$as_echo_n "checking whether ${CC-cc} accepts -Wextra... " >&6; }
4942echo 'void f(){}' > conftest.c
4943if test -z "`${CC-cc} -c -Wextra conftest.c 2>&1`"; then
4944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4945$as_echo "yes" >&6; }
4946  CFLAGS="$CFLAGS -Wextra"
4947else
4948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949$as_echo "no" >&6; }
4950
4951fi
4952rm -f conftest*
4953
4954
4955case $host in #(
4956  *-*-mingw*) :
4957    TESTENV="$WINE" ;; #(
4958  *) :
4959
4960 ;;
4961esac
4962
4963
4964ac_config_files="$ac_config_files Makefile"
4965
4966cat >confcache <<\_ACEOF
4967# This file is a shell script that caches the results of configure
4968# tests run on this system so they can be shared between configure
4969# scripts and configure runs, see configure's option --config-cache.
4970# It is not useful on other systems.  If it contains results you don't
4971# want to keep, you may remove or edit it.
4972#
4973# config.status only pays attention to the cache file if you give it
4974# the --recheck option to rerun configure.
4975#
4976# `ac_cv_env_foo' variables (set or unset) will be overridden when
4977# loading this file, other *unset* `ac_cv_foo' will be assigned the
4978# following values.
4979
4980_ACEOF
4981
4982# The following way of writing the cache mishandles newlines in values,
4983# but we know of no workaround that is simple, portable, and efficient.
4984# So, we kill variables containing newlines.
4985# Ultrix sh set writes to stderr and can't be redirected directly,
4986# and sets the high bit in the cache file unless we assign to the vars.
4987(
4988  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4989    eval ac_val=\$$ac_var
4990    case $ac_val in #(
4991    *${as_nl}*)
4992      case $ac_var in #(
4993      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4995      esac
4996      case $ac_var in #(
4997      _ | IFS | as_nl) ;; #(
4998      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4999      *) { eval $ac_var=; unset $ac_var;} ;;
5000      esac ;;
5001    esac
5002  done
5003
5004  (set) 2>&1 |
5005    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5006    *${as_nl}ac_space=\ *)
5007      # `set' does not quote correctly, so add quotes: double-quote
5008      # substitution turns \\\\ into \\, and sed turns \\ into \.
5009      sed -n \
5010	"s/'/'\\\\''/g;
5011	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5012      ;; #(
5013    *)
5014      # `set' quotes correctly as required by POSIX, so do not add quotes.
5015      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5016      ;;
5017    esac |
5018    sort
5019) |
5020  sed '
5021     /^ac_cv_env_/b end
5022     t clear
5023     :clear
5024     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5025     t end
5026     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5027     :end' >>confcache
5028if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5029  if test -w "$cache_file"; then
5030    if test "x$cache_file" != "x/dev/null"; then
5031      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5032$as_echo "$as_me: updating cache $cache_file" >&6;}
5033      if test ! -f "$cache_file" || test -h "$cache_file"; then
5034	cat confcache >"$cache_file"
5035      else
5036        case $cache_file in #(
5037        */* | ?:*)
5038	  mv -f confcache "$cache_file"$$ &&
5039	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5040        *)
5041	  mv -f confcache "$cache_file" ;;
5042	esac
5043      fi
5044    fi
5045  else
5046    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5047$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5048  fi
5049fi
5050rm -f confcache
5051
5052test "x$prefix" = xNONE && prefix=$ac_default_prefix
5053# Let make expand exec_prefix.
5054test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5055
5056DEFS=-DHAVE_CONFIG_H
5057
5058ac_libobjs=
5059ac_ltlibobjs=
5060U=
5061for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5062  # 1. Remove the extension, and $U if already installed.
5063  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5064  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5065  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5066  #    will be set to the directory where LIBOBJS objects are built.
5067  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5068  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5069done
5070LIBOBJS=$ac_libobjs
5071
5072LTLIBOBJS=$ac_ltlibobjs
5073
5074
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5076$as_echo_n "checking that generated files are newer than configure... " >&6; }
5077   if test -n "$am_sleep_pid"; then
5078     # Hide warnings about reused PIDs.
5079     wait $am_sleep_pid 2>/dev/null
5080   fi
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5082$as_echo "done" >&6; }
5083 if test -n "$EXEEXT"; then
5084  am__EXEEXT_TRUE=
5085  am__EXEEXT_FALSE='#'
5086else
5087  am__EXEEXT_TRUE='#'
5088  am__EXEEXT_FALSE=
5089fi
5090
5091
5092
5093: "${CONFIG_STATUS=./config.status}"
5094ac_write_fail=0
5095ac_clean_files_save=$ac_clean_files
5096ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5098$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5099as_write_fail=0
5100cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5101#! $SHELL
5102# Generated by $as_me.
5103# Run this file to recreate the current configuration.
5104# Compiler output produced by configure, useful for debugging
5105# configure, is in config.log if it exists.
5106
5107debug=false
5108ac_cs_recheck=false
5109ac_cs_silent=false
5110
5111SHELL=\${CONFIG_SHELL-$SHELL}
5112export SHELL
5113_ASEOF
5114cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5115## -------------------- ##
5116## M4sh Initialization. ##
5117## -------------------- ##
5118
5119# Be more Bourne compatible
5120DUALCASE=1; export DUALCASE # for MKS sh
5121if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5122  emulate sh
5123  NULLCMD=:
5124  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5125  # is contrary to our usage.  Disable this feature.
5126  alias -g '${1+"$@"}'='"$@"'
5127  setopt NO_GLOB_SUBST
5128else
5129  case `(set -o) 2>/dev/null` in #(
5130  *posix*) :
5131    set -o posix ;; #(
5132  *) :
5133     ;;
5134esac
5135fi
5136
5137
5138as_nl='
5139'
5140export as_nl
5141# Printing a long string crashes Solaris 7 /usr/bin/printf.
5142as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5143as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5144as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5145# Prefer a ksh shell builtin over an external printf program on Solaris,
5146# but without wasting forks for bash or zsh.
5147if test -z "$BASH_VERSION$ZSH_VERSION" \
5148    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5149  as_echo='print -r --'
5150  as_echo_n='print -rn --'
5151elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5152  as_echo='printf %s\n'
5153  as_echo_n='printf %s'
5154else
5155  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5156    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5157    as_echo_n='/usr/ucb/echo -n'
5158  else
5159    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5160    as_echo_n_body='eval
5161      arg=$1;
5162      case $arg in #(
5163      *"$as_nl"*)
5164	expr "X$arg" : "X\\(.*\\)$as_nl";
5165	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5166      esac;
5167      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5168    '
5169    export as_echo_n_body
5170    as_echo_n='sh -c $as_echo_n_body as_echo'
5171  fi
5172  export as_echo_body
5173  as_echo='sh -c $as_echo_body as_echo'
5174fi
5175
5176# The user is always right.
5177if test "${PATH_SEPARATOR+set}" != set; then
5178  PATH_SEPARATOR=:
5179  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5180    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5181      PATH_SEPARATOR=';'
5182  }
5183fi
5184
5185
5186# IFS
5187# We need space, tab and new line, in precisely that order.  Quoting is
5188# there to prevent editors from complaining about space-tab.
5189# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5190# splitting by setting IFS to empty value.)
5191IFS=" ""	$as_nl"
5192
5193# Find who we are.  Look in the path if we contain no directory separator.
5194as_myself=
5195case $0 in #((
5196  *[\\/]* ) as_myself=$0 ;;
5197  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200  IFS=$as_save_IFS
5201  test -z "$as_dir" && as_dir=.
5202    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5203  done
5204IFS=$as_save_IFS
5205
5206     ;;
5207esac
5208# We did not find ourselves, most probably we were run as `sh COMMAND'
5209# in which case we are not to be found in the path.
5210if test "x$as_myself" = x; then
5211  as_myself=$0
5212fi
5213if test ! -f "$as_myself"; then
5214  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5215  exit 1
5216fi
5217
5218# Unset variables that we do not need and which cause bugs (e.g. in
5219# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5220# suppresses any "Segmentation fault" message there.  '((' could
5221# trigger a bug in pdksh 5.2.14.
5222for as_var in BASH_ENV ENV MAIL MAILPATH
5223do eval test x\${$as_var+set} = xset \
5224  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5225done
5226PS1='$ '
5227PS2='> '
5228PS4='+ '
5229
5230# NLS nuisances.
5231LC_ALL=C
5232export LC_ALL
5233LANGUAGE=C
5234export LANGUAGE
5235
5236# CDPATH.
5237(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5238
5239
5240# as_fn_error STATUS ERROR [LINENO LOG_FD]
5241# ----------------------------------------
5242# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5243# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5244# script with STATUS, using 1 if that was 0.
5245as_fn_error ()
5246{
5247  as_status=$1; test $as_status -eq 0 && as_status=1
5248  if test "$4"; then
5249    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5250    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5251  fi
5252  $as_echo "$as_me: error: $2" >&2
5253  as_fn_exit $as_status
5254} # as_fn_error
5255
5256
5257# as_fn_set_status STATUS
5258# -----------------------
5259# Set $? to STATUS, without forking.
5260as_fn_set_status ()
5261{
5262  return $1
5263} # as_fn_set_status
5264
5265# as_fn_exit STATUS
5266# -----------------
5267# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5268as_fn_exit ()
5269{
5270  set +e
5271  as_fn_set_status $1
5272  exit $1
5273} # as_fn_exit
5274
5275# as_fn_unset VAR
5276# ---------------
5277# Portably unset VAR.
5278as_fn_unset ()
5279{
5280  { eval $1=; unset $1;}
5281}
5282as_unset=as_fn_unset
5283# as_fn_append VAR VALUE
5284# ----------------------
5285# Append the text in VALUE to the end of the definition contained in VAR. Take
5286# advantage of any shell optimizations that allow amortized linear growth over
5287# repeated appends, instead of the typical quadratic growth present in naive
5288# implementations.
5289if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5290  eval 'as_fn_append ()
5291  {
5292    eval $1+=\$2
5293  }'
5294else
5295  as_fn_append ()
5296  {
5297    eval $1=\$$1\$2
5298  }
5299fi # as_fn_append
5300
5301# as_fn_arith ARG...
5302# ------------------
5303# Perform arithmetic evaluation on the ARGs, and store the result in the
5304# global $as_val. Take advantage of shells that can avoid forks. The arguments
5305# must be portable across $(()) and expr.
5306if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5307  eval 'as_fn_arith ()
5308  {
5309    as_val=$(( $* ))
5310  }'
5311else
5312  as_fn_arith ()
5313  {
5314    as_val=`expr "$@" || test $? -eq 1`
5315  }
5316fi # as_fn_arith
5317
5318
5319if expr a : '\(a\)' >/dev/null 2>&1 &&
5320   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5321  as_expr=expr
5322else
5323  as_expr=false
5324fi
5325
5326if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5327  as_basename=basename
5328else
5329  as_basename=false
5330fi
5331
5332if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5333  as_dirname=dirname
5334else
5335  as_dirname=false
5336fi
5337
5338as_me=`$as_basename -- "$0" ||
5339$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5340	 X"$0" : 'X\(//\)$' \| \
5341	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5342$as_echo X/"$0" |
5343    sed '/^.*\/\([^/][^/]*\)\/*$/{
5344	    s//\1/
5345	    q
5346	  }
5347	  /^X\/\(\/\/\)$/{
5348	    s//\1/
5349	    q
5350	  }
5351	  /^X\/\(\/\).*/{
5352	    s//\1/
5353	    q
5354	  }
5355	  s/.*/./; q'`
5356
5357# Avoid depending upon Character Ranges.
5358as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5359as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5360as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5361as_cr_digits='0123456789'
5362as_cr_alnum=$as_cr_Letters$as_cr_digits
5363
5364ECHO_C= ECHO_N= ECHO_T=
5365case `echo -n x` in #(((((
5366-n*)
5367  case `echo 'xy\c'` in
5368  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5369  xy)  ECHO_C='\c';;
5370  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5371       ECHO_T='	';;
5372  esac;;
5373*)
5374  ECHO_N='-n';;
5375esac
5376
5377rm -f conf$$ conf$$.exe conf$$.file
5378if test -d conf$$.dir; then
5379  rm -f conf$$.dir/conf$$.file
5380else
5381  rm -f conf$$.dir
5382  mkdir conf$$.dir 2>/dev/null
5383fi
5384if (echo >conf$$.file) 2>/dev/null; then
5385  if ln -s conf$$.file conf$$ 2>/dev/null; then
5386    as_ln_s='ln -s'
5387    # ... but there are two gotchas:
5388    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5389    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5390    # In both cases, we have to default to `cp -pR'.
5391    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5392      as_ln_s='cp -pR'
5393  elif ln conf$$.file conf$$ 2>/dev/null; then
5394    as_ln_s=ln
5395  else
5396    as_ln_s='cp -pR'
5397  fi
5398else
5399  as_ln_s='cp -pR'
5400fi
5401rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5402rmdir conf$$.dir 2>/dev/null
5403
5404
5405# as_fn_mkdir_p
5406# -------------
5407# Create "$as_dir" as a directory, including parents if necessary.
5408as_fn_mkdir_p ()
5409{
5410
5411  case $as_dir in #(
5412  -*) as_dir=./$as_dir;;
5413  esac
5414  test -d "$as_dir" || eval $as_mkdir_p || {
5415    as_dirs=
5416    while :; do
5417      case $as_dir in #(
5418      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5419      *) as_qdir=$as_dir;;
5420      esac
5421      as_dirs="'$as_qdir' $as_dirs"
5422      as_dir=`$as_dirname -- "$as_dir" ||
5423$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5424	 X"$as_dir" : 'X\(//\)[^/]' \| \
5425	 X"$as_dir" : 'X\(//\)$' \| \
5426	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5427$as_echo X"$as_dir" |
5428    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5429	    s//\1/
5430	    q
5431	  }
5432	  /^X\(\/\/\)[^/].*/{
5433	    s//\1/
5434	    q
5435	  }
5436	  /^X\(\/\/\)$/{
5437	    s//\1/
5438	    q
5439	  }
5440	  /^X\(\/\).*/{
5441	    s//\1/
5442	    q
5443	  }
5444	  s/.*/./; q'`
5445      test -d "$as_dir" && break
5446    done
5447    test -z "$as_dirs" || eval "mkdir $as_dirs"
5448  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5449
5450
5451} # as_fn_mkdir_p
5452if mkdir -p . 2>/dev/null; then
5453  as_mkdir_p='mkdir -p "$as_dir"'
5454else
5455  test -d ./-p && rmdir ./-p
5456  as_mkdir_p=false
5457fi
5458
5459
5460# as_fn_executable_p FILE
5461# -----------------------
5462# Test if FILE is an executable regular file.
5463as_fn_executable_p ()
5464{
5465  test -f "$1" && test -x "$1"
5466} # as_fn_executable_p
5467as_test_x='test -x'
5468as_executable_p=as_fn_executable_p
5469
5470# Sed expression to map a string onto a valid CPP name.
5471as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5472
5473# Sed expression to map a string onto a valid variable name.
5474as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5475
5476
5477exec 6>&1
5478## ----------------------------------- ##
5479## Main body of $CONFIG_STATUS script. ##
5480## ----------------------------------- ##
5481_ASEOF
5482test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5483
5484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5485# Save the log message, to keep $0 and so on meaningful, and to
5486# report actual input values of CONFIG_FILES etc. instead of their
5487# values after options handling.
5488ac_log="
5489This file was extended by Scale2x $as_me 3.1, which was
5490generated by GNU Autoconf 2.69.  Invocation command line was
5491
5492  CONFIG_FILES    = $CONFIG_FILES
5493  CONFIG_HEADERS  = $CONFIG_HEADERS
5494  CONFIG_LINKS    = $CONFIG_LINKS
5495  CONFIG_COMMANDS = $CONFIG_COMMANDS
5496  $ $0 $@
5497
5498on `(hostname || uname -n) 2>/dev/null | sed 1q`
5499"
5500
5501_ACEOF
5502
5503case $ac_config_files in *"
5504"*) set x $ac_config_files; shift; ac_config_files=$*;;
5505esac
5506
5507case $ac_config_headers in *"
5508"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5509esac
5510
5511
5512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5513# Files that config.status was made for.
5514config_files="$ac_config_files"
5515config_headers="$ac_config_headers"
5516
5517_ACEOF
5518
5519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5520ac_cs_usage="\
5521\`$as_me' instantiates files and other configuration actions
5522from templates according to the current configuration.  Unless the files
5523and actions are specified as TAGs, all are instantiated by default.
5524
5525Usage: $0 [OPTION]... [TAG]...
5526
5527  -h, --help       print this help, then exit
5528  -V, --version    print version number and configuration settings, then exit
5529      --config     print configuration, then exit
5530  -q, --quiet, --silent
5531                   do not print progress messages
5532  -d, --debug      don't remove temporary files
5533      --recheck    update $as_me by reconfiguring in the same conditions
5534      --file=FILE[:TEMPLATE]
5535                   instantiate the configuration file FILE
5536      --header=FILE[:TEMPLATE]
5537                   instantiate the configuration header FILE
5538
5539Configuration files:
5540$config_files
5541
5542Configuration headers:
5543$config_headers
5544
5545Report bugs to the package provider."
5546
5547_ACEOF
5548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5549ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5550ac_cs_version="\\
5551Scale2x config.status 3.1
5552configured by $0, generated by GNU Autoconf 2.69,
5553  with options \\"\$ac_cs_config\\"
5554
5555Copyright (C) 2012 Free Software Foundation, Inc.
5556This config.status script is free software; the Free Software Foundation
5557gives unlimited permission to copy, distribute and modify it."
5558
5559ac_pwd='$ac_pwd'
5560srcdir='$srcdir'
5561INSTALL='$INSTALL'
5562MKDIR_P='$MKDIR_P'
5563AWK='$AWK'
5564test -n "\$AWK" || AWK=awk
5565_ACEOF
5566
5567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5568# The default lists apply if the user does not specify any file.
5569ac_need_defaults=:
5570while test $# != 0
5571do
5572  case $1 in
5573  --*=?*)
5574    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5575    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5576    ac_shift=:
5577    ;;
5578  --*=)
5579    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5580    ac_optarg=
5581    ac_shift=:
5582    ;;
5583  *)
5584    ac_option=$1
5585    ac_optarg=$2
5586    ac_shift=shift
5587    ;;
5588  esac
5589
5590  case $ac_option in
5591  # Handling of the options.
5592  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5593    ac_cs_recheck=: ;;
5594  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5595    $as_echo "$ac_cs_version"; exit ;;
5596  --config | --confi | --conf | --con | --co | --c )
5597    $as_echo "$ac_cs_config"; exit ;;
5598  --debug | --debu | --deb | --de | --d | -d )
5599    debug=: ;;
5600  --file | --fil | --fi | --f )
5601    $ac_shift
5602    case $ac_optarg in
5603    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5604    '') as_fn_error $? "missing file argument" ;;
5605    esac
5606    as_fn_append CONFIG_FILES " '$ac_optarg'"
5607    ac_need_defaults=false;;
5608  --header | --heade | --head | --hea )
5609    $ac_shift
5610    case $ac_optarg in
5611    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5612    esac
5613    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5614    ac_need_defaults=false;;
5615  --he | --h)
5616    # Conflict between --help and --header
5617    as_fn_error $? "ambiguous option: \`$1'
5618Try \`$0 --help' for more information.";;
5619  --help | --hel | -h )
5620    $as_echo "$ac_cs_usage"; exit ;;
5621  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5622  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5623    ac_cs_silent=: ;;
5624
5625  # This is an error.
5626  -*) as_fn_error $? "unrecognized option: \`$1'
5627Try \`$0 --help' for more information." ;;
5628
5629  *) as_fn_append ac_config_targets " $1"
5630     ac_need_defaults=false ;;
5631
5632  esac
5633  shift
5634done
5635
5636ac_configure_extra_args=
5637
5638if $ac_cs_silent; then
5639  exec 6>/dev/null
5640  ac_configure_extra_args="$ac_configure_extra_args --silent"
5641fi
5642
5643_ACEOF
5644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5645if \$ac_cs_recheck; then
5646  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5647  shift
5648  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5649  CONFIG_SHELL='$SHELL'
5650  export CONFIG_SHELL
5651  exec "\$@"
5652fi
5653
5654_ACEOF
5655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5656exec 5>>config.log
5657{
5658  echo
5659  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5660## Running $as_me. ##
5661_ASBOX
5662  $as_echo "$ac_log"
5663} >&5
5664
5665_ACEOF
5666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5667_ACEOF
5668
5669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5670
5671# Handling of arguments.
5672for ac_config_target in $ac_config_targets
5673do
5674  case $ac_config_target in
5675    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5676    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5677
5678  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5679  esac
5680done
5681
5682
5683# If the user did not use the arguments to specify the items to instantiate,
5684# then the envvar interface is used.  Set only those that are not.
5685# We use the long form for the default assignment because of an extremely
5686# bizarre bug on SunOS 4.1.3.
5687if $ac_need_defaults; then
5688  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5689  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5690fi
5691
5692# Have a temporary directory for convenience.  Make it in the build tree
5693# simply because there is no reason against having it here, and in addition,
5694# creating and moving files from /tmp can sometimes cause problems.
5695# Hook for its removal unless debugging.
5696# Note that there is a small window in which the directory will not be cleaned:
5697# after its creation but before its name has been assigned to `$tmp'.
5698$debug ||
5699{
5700  tmp= ac_tmp=
5701  trap 'exit_status=$?
5702  : "${ac_tmp:=$tmp}"
5703  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5704' 0
5705  trap 'as_fn_exit 1' 1 2 13 15
5706}
5707# Create a (secure) tmp directory for tmp files.
5708
5709{
5710  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5711  test -d "$tmp"
5712}  ||
5713{
5714  tmp=./conf$$-$RANDOM
5715  (umask 077 && mkdir "$tmp")
5716} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5717ac_tmp=$tmp
5718
5719# Set up the scripts for CONFIG_FILES section.
5720# No need to generate them if there are no CONFIG_FILES.
5721# This happens for instance with `./config.status config.h'.
5722if test -n "$CONFIG_FILES"; then
5723
5724
5725ac_cr=`echo X | tr X '\015'`
5726# On cygwin, bash can eat \r inside `` if the user requested igncr.
5727# But we know of no other shell where ac_cr would be empty at this
5728# point, so we can use a bashism as a fallback.
5729if test "x$ac_cr" = x; then
5730  eval ac_cr=\$\'\\r\'
5731fi
5732ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5733if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5734  ac_cs_awk_cr='\\r'
5735else
5736  ac_cs_awk_cr=$ac_cr
5737fi
5738
5739echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5740_ACEOF
5741
5742
5743{
5744  echo "cat >conf$$subs.awk <<_ACEOF" &&
5745  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5746  echo "_ACEOF"
5747} >conf$$subs.sh ||
5748  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5749ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5750ac_delim='%!_!# '
5751for ac_last_try in false false false false false :; do
5752  . ./conf$$subs.sh ||
5753    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5754
5755  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5756  if test $ac_delim_n = $ac_delim_num; then
5757    break
5758  elif $ac_last_try; then
5759    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5760  else
5761    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5762  fi
5763done
5764rm -f conf$$subs.sh
5765
5766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5767cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5768_ACEOF
5769sed -n '
5770h
5771s/^/S["/; s/!.*/"]=/
5772p
5773g
5774s/^[^!]*!//
5775:repl
5776t repl
5777s/'"$ac_delim"'$//
5778t delim
5779:nl
5780h
5781s/\(.\{148\}\)..*/\1/
5782t more1
5783s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5784p
5785n
5786b repl
5787:more1
5788s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5789p
5790g
5791s/.\{148\}//
5792t nl
5793:delim
5794h
5795s/\(.\{148\}\)..*/\1/
5796t more2
5797s/["\\]/\\&/g; s/^/"/; s/$/"/
5798p
5799b
5800:more2
5801s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5802p
5803g
5804s/.\{148\}//
5805t delim
5806' <conf$$subs.awk | sed '
5807/^[^""]/{
5808  N
5809  s/\n//
5810}
5811' >>$CONFIG_STATUS || ac_write_fail=1
5812rm -f conf$$subs.awk
5813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5814_ACAWK
5815cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5816  for (key in S) S_is_set[key] = 1
5817  FS = ""
5818
5819}
5820{
5821  line = $ 0
5822  nfields = split(line, field, "@")
5823  substed = 0
5824  len = length(field[1])
5825  for (i = 2; i < nfields; i++) {
5826    key = field[i]
5827    keylen = length(key)
5828    if (S_is_set[key]) {
5829      value = S[key]
5830      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5831      len += length(value) + length(field[++i])
5832      substed = 1
5833    } else
5834      len += 1 + keylen
5835  }
5836
5837  print line
5838}
5839
5840_ACAWK
5841_ACEOF
5842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5843if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5844  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5845else
5846  cat
5847fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5848  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5849_ACEOF
5850
5851# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5852# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5853# trailing colons and then remove the whole line if VPATH becomes empty
5854# (actually we leave an empty line to preserve line numbers).
5855if test "x$srcdir" = x.; then
5856  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5857h
5858s///
5859s/^/:/
5860s/[	 ]*$/:/
5861s/:\$(srcdir):/:/g
5862s/:\${srcdir}:/:/g
5863s/:@srcdir@:/:/g
5864s/^:*//
5865s/:*$//
5866x
5867s/\(=[	 ]*\).*/\1/
5868G
5869s/\n//
5870s/^[^=]*=[	 ]*$//
5871}'
5872fi
5873
5874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5875fi # test -n "$CONFIG_FILES"
5876
5877# Set up the scripts for CONFIG_HEADERS section.
5878# No need to generate them if there are no CONFIG_HEADERS.
5879# This happens for instance with `./config.status Makefile'.
5880if test -n "$CONFIG_HEADERS"; then
5881cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5882BEGIN {
5883_ACEOF
5884
5885# Transform confdefs.h into an awk script `defines.awk', embedded as
5886# here-document in config.status, that substitutes the proper values into
5887# config.h.in to produce config.h.
5888
5889# Create a delimiter string that does not exist in confdefs.h, to ease
5890# handling of long lines.
5891ac_delim='%!_!# '
5892for ac_last_try in false false :; do
5893  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5894  if test -z "$ac_tt"; then
5895    break
5896  elif $ac_last_try; then
5897    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5898  else
5899    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5900  fi
5901done
5902
5903# For the awk script, D is an array of macro values keyed by name,
5904# likewise P contains macro parameters if any.  Preserve backslash
5905# newline sequences.
5906
5907ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5908sed -n '
5909s/.\{148\}/&'"$ac_delim"'/g
5910t rset
5911:rset
5912s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5913t def
5914d
5915:def
5916s/\\$//
5917t bsnl
5918s/["\\]/\\&/g
5919s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5920D["\1"]=" \3"/p
5921s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5922d
5923:bsnl
5924s/["\\]/\\&/g
5925s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5926D["\1"]=" \3\\\\\\n"\\/p
5927t cont
5928s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5929t cont
5930d
5931:cont
5932n
5933s/.\{148\}/&'"$ac_delim"'/g
5934t clear
5935:clear
5936s/\\$//
5937t bsnlc
5938s/["\\]/\\&/g; s/^/"/; s/$/"/p
5939d
5940:bsnlc
5941s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5942b cont
5943' <confdefs.h | sed '
5944s/'"$ac_delim"'/"\\\
5945"/g' >>$CONFIG_STATUS || ac_write_fail=1
5946
5947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5948  for (key in D) D_is_set[key] = 1
5949  FS = ""
5950}
5951/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5952  line = \$ 0
5953  split(line, arg, " ")
5954  if (arg[1] == "#") {
5955    defundef = arg[2]
5956    mac1 = arg[3]
5957  } else {
5958    defundef = substr(arg[1], 2)
5959    mac1 = arg[2]
5960  }
5961  split(mac1, mac2, "(") #)
5962  macro = mac2[1]
5963  prefix = substr(line, 1, index(line, defundef) - 1)
5964  if (D_is_set[macro]) {
5965    # Preserve the white space surrounding the "#".
5966    print prefix "define", macro P[macro] D[macro]
5967    next
5968  } else {
5969    # Replace #undef with comments.  This is necessary, for example,
5970    # in the case of _POSIX_SOURCE, which is predefined and required
5971    # on some systems where configure will not decide to define it.
5972    if (defundef == "undef") {
5973      print "/*", prefix defundef, macro, "*/"
5974      next
5975    }
5976  }
5977}
5978{ print }
5979_ACAWK
5980_ACEOF
5981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5982  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5983fi # test -n "$CONFIG_HEADERS"
5984
5985
5986eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
5987shift
5988for ac_tag
5989do
5990  case $ac_tag in
5991  :[FHLC]) ac_mode=$ac_tag; continue;;
5992  esac
5993  case $ac_mode$ac_tag in
5994  :[FHL]*:*);;
5995  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5996  :[FH]-) ac_tag=-:-;;
5997  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5998  esac
5999  ac_save_IFS=$IFS
6000  IFS=:
6001  set x $ac_tag
6002  IFS=$ac_save_IFS
6003  shift
6004  ac_file=$1
6005  shift
6006
6007  case $ac_mode in
6008  :L) ac_source=$1;;
6009  :[FH])
6010    ac_file_inputs=
6011    for ac_f
6012    do
6013      case $ac_f in
6014      -) ac_f="$ac_tmp/stdin";;
6015      *) # Look for the file first in the build tree, then in the source tree
6016	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6017	 # because $ac_f cannot contain `:'.
6018	 test -f "$ac_f" ||
6019	   case $ac_f in
6020	   [\\/$]*) false;;
6021	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6022	   esac ||
6023	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6024      esac
6025      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6026      as_fn_append ac_file_inputs " '$ac_f'"
6027    done
6028
6029    # Let's still pretend it is `configure' which instantiates (i.e., don't
6030    # use $as_me), people would be surprised to read:
6031    #    /* config.h.  Generated by config.status.  */
6032    configure_input='Generated from '`
6033	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6034	`' by configure.'
6035    if test x"$ac_file" != x-; then
6036      configure_input="$ac_file.  $configure_input"
6037      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6038$as_echo "$as_me: creating $ac_file" >&6;}
6039    fi
6040    # Neutralize special characters interpreted by sed in replacement strings.
6041    case $configure_input in #(
6042    *\&* | *\|* | *\\* )
6043       ac_sed_conf_input=`$as_echo "$configure_input" |
6044       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6045    *) ac_sed_conf_input=$configure_input;;
6046    esac
6047
6048    case $ac_tag in
6049    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6050      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6051    esac
6052    ;;
6053  esac
6054
6055  ac_dir=`$as_dirname -- "$ac_file" ||
6056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6057	 X"$ac_file" : 'X\(//\)[^/]' \| \
6058	 X"$ac_file" : 'X\(//\)$' \| \
6059	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6060$as_echo X"$ac_file" |
6061    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6062	    s//\1/
6063	    q
6064	  }
6065	  /^X\(\/\/\)[^/].*/{
6066	    s//\1/
6067	    q
6068	  }
6069	  /^X\(\/\/\)$/{
6070	    s//\1/
6071	    q
6072	  }
6073	  /^X\(\/\).*/{
6074	    s//\1/
6075	    q
6076	  }
6077	  s/.*/./; q'`
6078  as_dir="$ac_dir"; as_fn_mkdir_p
6079  ac_builddir=.
6080
6081case "$ac_dir" in
6082.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6083*)
6084  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6085  # A ".." for each directory in $ac_dir_suffix.
6086  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6087  case $ac_top_builddir_sub in
6088  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6089  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6090  esac ;;
6091esac
6092ac_abs_top_builddir=$ac_pwd
6093ac_abs_builddir=$ac_pwd$ac_dir_suffix
6094# for backward compatibility:
6095ac_top_builddir=$ac_top_build_prefix
6096
6097case $srcdir in
6098  .)  # We are building in place.
6099    ac_srcdir=.
6100    ac_top_srcdir=$ac_top_builddir_sub
6101    ac_abs_top_srcdir=$ac_pwd ;;
6102  [\\/]* | ?:[\\/]* )  # Absolute name.
6103    ac_srcdir=$srcdir$ac_dir_suffix;
6104    ac_top_srcdir=$srcdir
6105    ac_abs_top_srcdir=$srcdir ;;
6106  *) # Relative name.
6107    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6108    ac_top_srcdir=$ac_top_build_prefix$srcdir
6109    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6110esac
6111ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6112
6113
6114  case $ac_mode in
6115  :F)
6116  #
6117  # CONFIG_FILE
6118  #
6119
6120  case $INSTALL in
6121  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6122  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6123  esac
6124  ac_MKDIR_P=$MKDIR_P
6125  case $MKDIR_P in
6126  [\\/$]* | ?:[\\/]* ) ;;
6127  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6128  esac
6129_ACEOF
6130
6131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6132# If the template does not know about datarootdir, expand it.
6133# FIXME: This hack should be removed a few years after 2.60.
6134ac_datarootdir_hack=; ac_datarootdir_seen=
6135ac_sed_dataroot='
6136/datarootdir/ {
6137  p
6138  q
6139}
6140/@datadir@/p
6141/@docdir@/p
6142/@infodir@/p
6143/@localedir@/p
6144/@mandir@/p'
6145case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6146*datarootdir*) ac_datarootdir_seen=yes;;
6147*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6148  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6149$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6150_ACEOF
6151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6152  ac_datarootdir_hack='
6153  s&@datadir@&$datadir&g
6154  s&@docdir@&$docdir&g
6155  s&@infodir@&$infodir&g
6156  s&@localedir@&$localedir&g
6157  s&@mandir@&$mandir&g
6158  s&\\\${datarootdir}&$datarootdir&g' ;;
6159esac
6160_ACEOF
6161
6162# Neutralize VPATH when `$srcdir' = `.'.
6163# Shell code in configure.ac might set extrasub.
6164# FIXME: do we really want to maintain this feature?
6165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6166ac_sed_extra="$ac_vpsub
6167$extrasub
6168_ACEOF
6169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6170:t
6171/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6172s|@configure_input@|$ac_sed_conf_input|;t t
6173s&@top_builddir@&$ac_top_builddir_sub&;t t
6174s&@top_build_prefix@&$ac_top_build_prefix&;t t
6175s&@srcdir@&$ac_srcdir&;t t
6176s&@abs_srcdir@&$ac_abs_srcdir&;t t
6177s&@top_srcdir@&$ac_top_srcdir&;t t
6178s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6179s&@builddir@&$ac_builddir&;t t
6180s&@abs_builddir@&$ac_abs_builddir&;t t
6181s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6182s&@INSTALL@&$ac_INSTALL&;t t
6183s&@MKDIR_P@&$ac_MKDIR_P&;t t
6184$ac_datarootdir_hack
6185"
6186eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6187  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6188
6189test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6190  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6191  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6192      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6193  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6194which seems to be undefined.  Please make sure it is defined" >&5
6195$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6196which seems to be undefined.  Please make sure it is defined" >&2;}
6197
6198  rm -f "$ac_tmp/stdin"
6199  case $ac_file in
6200  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6201  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6202  esac \
6203  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6204 ;;
6205  :H)
6206  #
6207  # CONFIG_HEADER
6208  #
6209  if test x"$ac_file" != x-; then
6210    {
6211      $as_echo "/* $configure_input  */" \
6212      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6213    } >"$ac_tmp/config.h" \
6214      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6215    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6216      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6217$as_echo "$as_me: $ac_file is unchanged" >&6;}
6218    else
6219      rm -f "$ac_file"
6220      mv "$ac_tmp/config.h" "$ac_file" \
6221	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6222    fi
6223  else
6224    $as_echo "/* $configure_input  */" \
6225      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6226      || as_fn_error $? "could not create -" "$LINENO" 5
6227  fi
6228# Compute "$ac_file"'s index in $config_headers.
6229_am_arg="$ac_file"
6230_am_stamp_count=1
6231for _am_header in $config_headers :; do
6232  case $_am_header in
6233    $_am_arg | $_am_arg:* )
6234      break ;;
6235    * )
6236      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6237  esac
6238done
6239echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6240$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6241	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6242	 X"$_am_arg" : 'X\(//\)$' \| \
6243	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6244$as_echo X"$_am_arg" |
6245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6246	    s//\1/
6247	    q
6248	  }
6249	  /^X\(\/\/\)[^/].*/{
6250	    s//\1/
6251	    q
6252	  }
6253	  /^X\(\/\/\)$/{
6254	    s//\1/
6255	    q
6256	  }
6257	  /^X\(\/\).*/{
6258	    s//\1/
6259	    q
6260	  }
6261	  s/.*/./; q'`/stamp-h$_am_stamp_count
6262 ;;
6263
6264
6265  esac
6266
6267done # for ac_tag
6268
6269
6270as_fn_exit 0
6271_ACEOF
6272ac_clean_files=$ac_clean_files_save
6273
6274test $ac_write_fail = 0 ||
6275  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6276
6277
6278# configure is writing to config.log, and then calls config.status.
6279# config.status does its own redirection, appending to config.log.
6280# Unfortunately, on DOS this fails, as config.log is still kept open
6281# by configure, so config.status won't be able to write to it; its
6282# output is simply discarded.  So we exec the FD to /dev/null,
6283# effectively closing config.log, so it can be properly (re)opened and
6284# appended to by config.status.  When coming back to configure, we
6285# need to make the FD available again.
6286if test "$no_create" != yes; then
6287  ac_cs_success=:
6288  ac_config_status_args=
6289  test "$silent" = yes &&
6290    ac_config_status_args="$ac_config_status_args --quiet"
6291  exec 5>/dev/null
6292  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6293  exec 5>>config.log
6294  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6295  # would make configure fail if this is the last instruction.
6296  $ac_cs_success || as_fn_exit 1
6297fi
6298if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6299  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6300$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6301fi
6302
6303
6304