1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
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=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="src/slang.c"
586ac_default_prefix="/usr/local"
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625LIBOBJS
626slang_version
627slang_micro_version
628slang_minor_version
629slang_major_version
630PROGRAM_ELFOBJECTS
631PROGRAM_OBJECTS
632PROGRAM_HFILES
633PROGRAM_CFILES
634PROGRAM_OFILES
635SYSCONF_MODULE
636ICONV_MODULE
637ICONV_INC_DIR
638ICONV_LIB_DIR
639ICONV_INC
640ICONV_LIB
641ZLIB_MODULE
642Z_INC_DIR
643Z_LIB_DIR
644Z_INC
645Z_LIB
646PNG_MODULE
647PNG_INC_DIR
648PNG_LIB_DIR
649PNG_INC
650PNG_LIB
651ONIG_MODULE
652ONIG_INC_DIR
653ONIG_LIB_DIR
654ONIG_INC
655ONIG_LIB
656PCRE_MODULE
657PCRE_INC_DIR
658PCRE_LIB_DIR
659PCRE_INC
660PCRE_LIB
661ELFDIR
662OBJDIR
663SRCDIR
664MISC_TERMINFO_DIRS
665TERMCAP
666nc5config
667M_LIB
668SLANG_DLL_CFLAGS
669ELFLIB_BUILD_NAME
670INSTALL_ELFLIB_TARGET
671INSTALL_MODULE
672DLL_IMPLIB_NAME
673SLANG_LIB_FOR_MODULES
674ELFLIB_MAJOR_MINOR_MICRO
675ELFLIB_MAJOR_MINOR
676ELFLIB_MAJOR
677ELFLIB
678CC_SHARED
679CC_SHARED_FLAGS
680DYNAMIC_LINK_FLAGS
681ELF_DEP_LIBS
682ELF_LINK_CMD
683ELF_LINK
684ELF_CFLAGS
685ELF_CC
686DYNAMIC_LINK_LIB
687X_EXTRA_LIBS
688X_LIBS
689X_PRE_LIBS
690X_CFLAGS
691XMKMF
692LIB_SLSYSWRAP
693DSLSYSWRAP
694LIB_READLINE
695GNU_READLINE
696TERMINFO_LAYOUT
697pkgconfigdir
698INSTALL_DATA
699INSTALL_SCRIPT
700INSTALL_PROGRAM
701RANLIB
702SET_MAKE
703EGREP
704GREP
705CPP
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713CONFIG_DIR
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722target_alias
723host_alias
724build_alias
725LIBS
726ECHO_T
727ECHO_N
728ECHO_C
729DEFS
730mandir
731localedir
732libdir
733psdir
734pdfdir
735dvidir
736htmldir
737infodir
738docdir
739oldincludedir
740includedir
741localstatedir
742sharedstatedir
743sysconfdir
744datadir
745datarootdir
746libexecdir
747sbindir
748bindir
749program_transform_name
750prefix
751exec_prefix
752PACKAGE_URL
753PACKAGE_BUGREPORT
754PACKAGE_STRING
755PACKAGE_VERSION
756PACKAGE_TARNAME
757PACKAGE_NAME
758PATH_SEPARATOR
759SHELL
760RPATH'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764with_pkgconfigdir
765with_terminfo
766with_readline
767with_slsyswrap
768with_x
769enable_largefile
770enable_warnings
771with_pcre
772with_pcrelib
773with_pcreinc
774with_onig
775with_oniglib
776with_oniginc
777with_png
778with_pnglib
779with_pnginc
780with_z
781with_zlib
782with_zinc
783with_iconv
784with_iconvlib
785with_iconvinc
786'
787      ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CPP
796XMKMF'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835includedir='${prefix}/include'
836oldincludedir='/usr/include'
837docdir='${datarootdir}/doc/${PACKAGE}'
838infodir='${datarootdir}/info'
839htmldir='${docdir}'
840dvidir='${docdir}'
841pdfdir='${docdir}'
842psdir='${docdir}'
843libdir='${exec_prefix}/lib'
844localedir='${datarootdir}/locale'
845mandir='${datarootdir}/man'
846
847ac_prev=
848ac_dashdash=
849for ac_option
850do
851  # If the previous option needs an argument, assign it.
852  if test -n "$ac_prev"; then
853    eval $ac_prev=\$ac_option
854    ac_prev=
855    continue
856  fi
857
858  case $ac_option in
859  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860  *=)   ac_optarg= ;;
861  *)    ac_optarg=yes ;;
862  esac
863
864  # Accept the important Cygnus configure options, so we can diagnose typos.
865
866  case $ac_dashdash$ac_option in
867  --)
868    ac_dashdash=yes ;;
869
870  -bindir | --bindir | --bindi | --bind | --bin | --bi)
871    ac_prev=bindir ;;
872  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873    bindir=$ac_optarg ;;
874
875  -build | --build | --buil | --bui | --bu)
876    ac_prev=build_alias ;;
877  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878    build_alias=$ac_optarg ;;
879
880  -cache-file | --cache-file | --cache-fil | --cache-fi \
881  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882    ac_prev=cache_file ;;
883  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885    cache_file=$ac_optarg ;;
886
887  --config-cache | -C)
888    cache_file=config.cache ;;
889
890  -datadir | --datadir | --datadi | --datad)
891    ac_prev=datadir ;;
892  -datadir=* | --datadir=* | --datadi=* | --datad=*)
893    datadir=$ac_optarg ;;
894
895  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896  | --dataroo | --dataro | --datar)
897    ac_prev=datarootdir ;;
898  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900    datarootdir=$ac_optarg ;;
901
902  -disable-* | --disable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: $ac_useropt"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=no ;;
917
918  -docdir | --docdir | --docdi | --doc | --do)
919    ac_prev=docdir ;;
920  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921    docdir=$ac_optarg ;;
922
923  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924    ac_prev=dvidir ;;
925  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926    dvidir=$ac_optarg ;;
927
928  -enable-* | --enable-*)
929    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930    # Reject names that are not valid shell variable names.
931    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932      as_fn_error $? "invalid feature name: $ac_useropt"
933    ac_useropt_orig=$ac_useropt
934    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935    case $ac_user_opts in
936      *"
937"enable_$ac_useropt"
938"*) ;;
939      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940	 ac_unrecognized_sep=', ';;
941    esac
942    eval enable_$ac_useropt=\$ac_optarg ;;
943
944  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946  | --exec | --exe | --ex)
947    ac_prev=exec_prefix ;;
948  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950  | --exec=* | --exe=* | --ex=*)
951    exec_prefix=$ac_optarg ;;
952
953  -gas | --gas | --ga | --g)
954    # Obsolete; use --with-gas.
955    with_gas=yes ;;
956
957  -help | --help | --hel | --he | -h)
958    ac_init_help=long ;;
959  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960    ac_init_help=recursive ;;
961  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962    ac_init_help=short ;;
963
964  -host | --host | --hos | --ho)
965    ac_prev=host_alias ;;
966  -host=* | --host=* | --hos=* | --ho=*)
967    host_alias=$ac_optarg ;;
968
969  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970    ac_prev=htmldir ;;
971  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972  | --ht=*)
973    htmldir=$ac_optarg ;;
974
975  -includedir | --includedir | --includedi | --included | --include \
976  | --includ | --inclu | --incl | --inc)
977    ac_prev=includedir ;;
978  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979  | --includ=* | --inclu=* | --incl=* | --inc=*)
980    includedir=$ac_optarg ;;
981
982  -infodir | --infodir | --infodi | --infod | --info | --inf)
983    ac_prev=infodir ;;
984  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985    infodir=$ac_optarg ;;
986
987  -libdir | --libdir | --libdi | --libd)
988    ac_prev=libdir ;;
989  -libdir=* | --libdir=* | --libdi=* | --libd=*)
990    libdir=$ac_optarg ;;
991
992  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993  | --libexe | --libex | --libe)
994    ac_prev=libexecdir ;;
995  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996  | --libexe=* | --libex=* | --libe=*)
997    libexecdir=$ac_optarg ;;
998
999  -localedir | --localedir | --localedi | --localed | --locale)
1000    ac_prev=localedir ;;
1001  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002    localedir=$ac_optarg ;;
1003
1004  -localstatedir | --localstatedir | --localstatedi | --localstated \
1005  | --localstate | --localstat | --localsta | --localst | --locals)
1006    ac_prev=localstatedir ;;
1007  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009    localstatedir=$ac_optarg ;;
1010
1011  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012    ac_prev=mandir ;;
1013  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014    mandir=$ac_optarg ;;
1015
1016  -nfp | --nfp | --nf)
1017    # Obsolete; use --without-fp.
1018    with_fp=no ;;
1019
1020  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021  | --no-cr | --no-c | -n)
1022    no_create=yes ;;
1023
1024  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026    no_recursion=yes ;;
1027
1028  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030  | --oldin | --oldi | --old | --ol | --o)
1031    ac_prev=oldincludedir ;;
1032  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035    oldincludedir=$ac_optarg ;;
1036
1037  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038    ac_prev=prefix ;;
1039  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040    prefix=$ac_optarg ;;
1041
1042  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043  | --program-pre | --program-pr | --program-p)
1044    ac_prev=program_prefix ;;
1045  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047    program_prefix=$ac_optarg ;;
1048
1049  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050  | --program-suf | --program-su | --program-s)
1051    ac_prev=program_suffix ;;
1052  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054    program_suffix=$ac_optarg ;;
1055
1056  -program-transform-name | --program-transform-name \
1057  | --program-transform-nam | --program-transform-na \
1058  | --program-transform-n | --program-transform- \
1059  | --program-transform | --program-transfor \
1060  | --program-transfo | --program-transf \
1061  | --program-trans | --program-tran \
1062  | --progr-tra | --program-tr | --program-t)
1063    ac_prev=program_transform_name ;;
1064  -program-transform-name=* | --program-transform-name=* \
1065  | --program-transform-nam=* | --program-transform-na=* \
1066  | --program-transform-n=* | --program-transform-=* \
1067  | --program-transform=* | --program-transfor=* \
1068  | --program-transfo=* | --program-transf=* \
1069  | --program-trans=* | --program-tran=* \
1070  | --progr-tra=* | --program-tr=* | --program-t=*)
1071    program_transform_name=$ac_optarg ;;
1072
1073  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074    ac_prev=pdfdir ;;
1075  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076    pdfdir=$ac_optarg ;;
1077
1078  -psdir | --psdir | --psdi | --psd | --ps)
1079    ac_prev=psdir ;;
1080  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081    psdir=$ac_optarg ;;
1082
1083  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084  | -silent | --silent | --silen | --sile | --sil)
1085    silent=yes ;;
1086
1087  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088    ac_prev=sbindir ;;
1089  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090  | --sbi=* | --sb=*)
1091    sbindir=$ac_optarg ;;
1092
1093  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095  | --sharedst | --shareds | --shared | --share | --shar \
1096  | --sha | --sh)
1097    ac_prev=sharedstatedir ;;
1098  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101  | --sha=* | --sh=*)
1102    sharedstatedir=$ac_optarg ;;
1103
1104  -site | --site | --sit)
1105    ac_prev=site ;;
1106  -site=* | --site=* | --sit=*)
1107    site=$ac_optarg ;;
1108
1109  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110    ac_prev=srcdir ;;
1111  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112    srcdir=$ac_optarg ;;
1113
1114  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115  | --syscon | --sysco | --sysc | --sys | --sy)
1116    ac_prev=sysconfdir ;;
1117  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119    sysconfdir=$ac_optarg ;;
1120
1121  -target | --target | --targe | --targ | --tar | --ta | --t)
1122    ac_prev=target_alias ;;
1123  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124    target_alias=$ac_optarg ;;
1125
1126  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127    verbose=yes ;;
1128
1129  -version | --version | --versio | --versi | --vers | -V)
1130    ac_init_version=: ;;
1131
1132  -with-* | --with-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid package name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"with_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval with_$ac_useropt=\$ac_optarg ;;
1147
1148  -without-* | --without-*)
1149    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152      as_fn_error $? "invalid package name: $ac_useropt"
1153    ac_useropt_orig=$ac_useropt
1154    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155    case $ac_user_opts in
1156      *"
1157"with_$ac_useropt"
1158"*) ;;
1159      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160	 ac_unrecognized_sep=', ';;
1161    esac
1162    eval with_$ac_useropt=no ;;
1163
1164  --x)
1165    # Obsolete; use --with-x.
1166    with_x=yes ;;
1167
1168  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169  | --x-incl | --x-inc | --x-in | --x-i)
1170    ac_prev=x_includes ;;
1171  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173    x_includes=$ac_optarg ;;
1174
1175  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177    ac_prev=x_libraries ;;
1178  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180    x_libraries=$ac_optarg ;;
1181
1182  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183Try \`$0 --help' for more information"
1184    ;;
1185
1186  *=*)
1187    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188    # Reject names that are not valid shell variable names.
1189    case $ac_envvar in #(
1190      '' | [0-9]* | *[!_$as_cr_alnum]* )
1191      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192    esac
1193    eval $ac_envvar=\$ac_optarg
1194    export $ac_envvar ;;
1195
1196  *)
1197    # FIXME: should be removed in autoconf 3.0.
1198    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202    ;;
1203
1204  esac
1205done
1206
1207if test -n "$ac_prev"; then
1208  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209  as_fn_error $? "missing argument to $ac_option"
1210fi
1211
1212if test -n "$ac_unrecognized_opts"; then
1213  case $enable_option_checking in
1214    no) ;;
1215    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217  esac
1218fi
1219
1220# Check all directory arguments for consistency.
1221for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222		datadir sysconfdir sharedstatedir localstatedir includedir \
1223		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224		libdir localedir mandir
1225do
1226  eval ac_val=\$$ac_var
1227  # Remove trailing slashes.
1228  case $ac_val in
1229    */ )
1230      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231      eval $ac_var=\$ac_val;;
1232  esac
1233  # Be sure to have absolute directory names.
1234  case $ac_val in
1235    [\\/$]* | ?:[\\/]* )  continue;;
1236    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237  esac
1238  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239done
1240
1241# There might be people who depend on the old broken behavior: `$host'
1242# used to hold the argument of --host etc.
1243# FIXME: To remove some day.
1244build=$build_alias
1245host=$host_alias
1246target=$target_alias
1247
1248# FIXME: To remove some day.
1249if test "x$host_alias" != x; then
1250  if test "x$build_alias" = x; then
1251    cross_compiling=maybe
1252  elif test "x$build_alias" != "x$host_alias"; then
1253    cross_compiling=yes
1254  fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266  as_fn_error $? "working directory cannot be determined"
1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268  as_fn_error $? "pwd does not report name of working directory"
1269
1270
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273  ac_srcdir_defaulted=yes
1274  # Try the directory containing this script, then the parent directory.
1275  ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277	 X"$as_myself" : 'X\(//\)[^/]' \| \
1278	 X"$as_myself" : 'X\(//\)$' \| \
1279	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)[^/].*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\/\)$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\).*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  s/.*/./; q'`
1298  srcdir=$ac_confdir
1299  if test ! -r "$srcdir/$ac_unique_file"; then
1300    srcdir=..
1301  fi
1302else
1303  ac_srcdir_defaulted=no
1304fi
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308fi
1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310ac_abs_confdir=`(
1311	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312	pwd)`
1313# When building in place, set srcdir=.
1314if test "$ac_abs_confdir" = "$ac_pwd"; then
1315  srcdir=.
1316fi
1317# Remove unnecessary trailing slashes from srcdir.
1318# Double slashes in file names in object file debugging info
1319# mess up M-x gdb in Emacs.
1320case $srcdir in
1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322esac
1323for ac_var in $ac_precious_vars; do
1324  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_env_${ac_var}_value=\$${ac_var}
1326  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328done
1329
1330#
1331# Report the --help message.
1332#
1333if test "$ac_init_help" = "long"; then
1334  # Omit some internal or obsolete options to make the list less imposing.
1335  # This message is too long to be a string in the A/UX 3.1 sh.
1336  cat <<_ACEOF
1337\`configure' configures this package to adapt to many kinds of systems.
1338
1339Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342VAR=VALUE.  See below for descriptions of some of the useful variables.
1343
1344Defaults for the options are specified in brackets.
1345
1346Configuration:
1347  -h, --help              display this help and exit
1348      --help=short        display options specific to this package
1349      --help=recursive    display the short help of all the included packages
1350  -V, --version           display version information and exit
1351  -q, --quiet, --silent   do not print \`checking ...' messages
1352      --cache-file=FILE   cache test results in FILE [disabled]
1353  -C, --config-cache      alias for \`--cache-file=config.cache'
1354  -n, --no-create         do not create output files
1355      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1356
1357Installation directories:
1358  --prefix=PREFIX         install architecture-independent files in PREFIX
1359                          [$ac_default_prefix]
1360  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1361                          [PREFIX]
1362
1363By default, \`make install' will install all the files in
1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1365an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366for instance \`--prefix=\$HOME'.
1367
1368For better control, use the options below.
1369
1370Fine tuning of the installation directories:
1371  --bindir=DIR            user executables [EPREFIX/bin]
1372  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1373  --libexecdir=DIR        program executables [EPREFIX/libexec]
1374  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1375  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1376  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1377  --libdir=DIR            object code libraries [EPREFIX/lib]
1378  --includedir=DIR        C header files [PREFIX/include]
1379  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1380  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1381  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1382  --infodir=DIR           info documentation [DATAROOTDIR/info]
1383  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1384  --mandir=DIR            man documentation [DATAROOTDIR/man]
1385  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1386  --htmldir=DIR           html documentation [DOCDIR]
1387  --dvidir=DIR            dvi documentation [DOCDIR]
1388  --pdfdir=DIR            pdf documentation [DOCDIR]
1389  --psdir=DIR             ps documentation [DOCDIR]
1390_ACEOF
1391
1392  cat <<\_ACEOF
1393
1394X features:
1395  --x-includes=DIR    X include files are in DIR
1396  --x-libraries=DIR   X library files are in DIR
1397
1398System types:
1399  --build=BUILD     configure for building on BUILD [guessed]
1400  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401_ACEOF
1402fi
1403
1404if test -n "$ac_init_help"; then
1405
1406  cat <<\_ACEOF
1407
1408Optional Features:
1409  --disable-option-checking  ignore unrecognized --enable/--with options
1410  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1411  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1412  --disable-largefile     omit support for large files
1413  --enable-warnings       turn on GCC compiler warnings
1414
1415Optional Packages:
1416  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1417  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1418  --with-pkgconfigdir=DIR pkgconfig dir (libdir/pkgconfig)
1419  --with-terminfo=xxx     Terminfo layout: default, hpux11, osf1r5, aix4, uwin
1420  --with-readline=xxx     Use slang(default) or gnu readline for slsh
1421  --with-slsyswrap=DIR    Not for production use
1422  --with-x                use the X Window System
1423  --with-pcre=DIR      Use DIR/lib and DIR/include for pcre
1424  --with-pcrelib=DIR   pcre library in DIR
1425  --with-pcreinc=DIR   pcre include files in DIR
1426  --with-onig=DIR      Use DIR/lib and DIR/include for onig
1427  --with-oniglib=DIR   onig library in DIR
1428  --with-oniginc=DIR   onig include files in DIR
1429  --with-png=DIR      Use DIR/lib and DIR/include for png
1430  --with-pnglib=DIR   png library in DIR
1431  --with-pnginc=DIR   png include files in DIR
1432  --with-z=DIR      Use DIR/lib and DIR/include for z
1433  --with-zlib=DIR   z library in DIR
1434  --with-zinc=DIR   z include files in DIR
1435  --with-iconv=DIR      Use DIR/lib and DIR/include for iconv
1436  --with-iconvlib=DIR   iconv library in DIR
1437  --with-iconvinc=DIR   iconv include files in DIR
1438
1439Some influential environment variables:
1440  CC          C compiler command
1441  CFLAGS      C compiler flags
1442  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1443              nonstandard directory <lib dir>
1444  LIBS        libraries to pass to the linker, e.g. -l<library>
1445  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446              you have headers in a nonstandard directory <include dir>
1447  CPP         C preprocessor
1448  XMKMF       Path to xmkmf, Makefile generator for X Window System
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
1453Report bugs to the package provider.
1454_ACEOF
1455ac_status=$?
1456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459  # If there are subdirs, report their specific --help.
1460  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461    test -d "$ac_dir" ||
1462      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463      continue
1464    ac_builddir=.
1465
1466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
1469  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470  # A ".." for each directory in $ac_dir_suffix.
1471  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472  case $ac_top_builddir_sub in
1473  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475  esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
1481
1482case $srcdir in
1483  .)  # We are building in place.
1484    ac_srcdir=.
1485    ac_top_srcdir=$ac_top_builddir_sub
1486    ac_abs_top_srcdir=$ac_pwd ;;
1487  [\\/]* | ?:[\\/]* )  # Absolute name.
1488    ac_srcdir=$srcdir$ac_dir_suffix;
1489    ac_top_srcdir=$srcdir
1490    ac_abs_top_srcdir=$srcdir ;;
1491  *) # Relative name.
1492    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493    ac_top_srcdir=$ac_top_build_prefix$srcdir
1494    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495esac
1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498    cd "$ac_dir" || { ac_status=$?; continue; }
1499    # Check for guested configure.
1500    if test -f "$ac_srcdir/configure.gnu"; then
1501      echo &&
1502      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503    elif test -f "$ac_srcdir/configure"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure" --help=recursive
1506    else
1507      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508    fi || ac_status=$?
1509    cd "$ac_pwd" || { ac_status=$?; break; }
1510  done
1511fi
1512
1513test -n "$ac_init_help" && exit $ac_status
1514if $ac_init_version; then
1515  cat <<\_ACEOF
1516configure
1517generated by GNU Autoconf 2.69
1518
1519Copyright (C) 2012 Free Software Foundation, Inc.
1520This configure script is free software; the Free Software Foundation
1521gives unlimited permission to copy, distribute and modify it.
1522_ACEOF
1523  exit
1524fi
1525
1526## ------------------------ ##
1527## Autoconf initialization. ##
1528## ------------------------ ##
1529
1530# ac_fn_c_try_compile LINENO
1531# --------------------------
1532# Try to compile conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_c_try_compile ()
1534{
1535  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536  rm -f conftest.$ac_objext
1537  if { { ac_try="$ac_compile"
1538case "(($ac_try" in
1539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540  *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544  (eval "$ac_compile") 2>conftest.err
1545  ac_status=$?
1546  if test -s conftest.err; then
1547    grep -v '^ *+' conftest.err >conftest.er1
1548    cat conftest.er1 >&5
1549    mv -f conftest.er1 conftest.err
1550  fi
1551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552  test $ac_status = 0; } && {
1553	 test -z "$ac_c_werror_flag" ||
1554	 test ! -s conftest.err
1555       } && test -s conftest.$ac_objext; then :
1556  ac_retval=0
1557else
1558  $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561	ac_retval=1
1562fi
1563  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564  as_fn_set_status $ac_retval
1565
1566} # ac_fn_c_try_compile
1567
1568# ac_fn_c_try_cpp LINENO
1569# ----------------------
1570# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_cpp ()
1572{
1573  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574  if { { ac_try="$ac_cpp conftest.$ac_ext"
1575case "(($ac_try" in
1576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577  *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1582  ac_status=$?
1583  if test -s conftest.err; then
1584    grep -v '^ *+' conftest.err >conftest.er1
1585    cat conftest.er1 >&5
1586    mv -f conftest.er1 conftest.err
1587  fi
1588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589  test $ac_status = 0; } > conftest.i && {
1590	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1591	 test ! -s conftest.err
1592       }; then :
1593  ac_retval=0
1594else
1595  $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598    ac_retval=1
1599fi
1600  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601  as_fn_set_status $ac_retval
1602
1603} # ac_fn_c_try_cpp
1604
1605# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1606# -------------------------------------------------------
1607# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1608# the include files in INCLUDES and setting the cache variable VAR
1609# accordingly.
1610ac_fn_c_check_header_mongrel ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  if eval \${$3+:} false; then :
1614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615$as_echo_n "checking for $2... " >&6; }
1616if eval \${$3+:} false; then :
1617  $as_echo_n "(cached) " >&6
1618fi
1619eval ac_res=\$$3
1620	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621$as_echo "$ac_res" >&6; }
1622else
1623  # Is the header compilable?
1624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1625$as_echo_n "checking $2 usability... " >&6; }
1626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627/* end confdefs.h.  */
1628$4
1629#include <$2>
1630_ACEOF
1631if ac_fn_c_try_compile "$LINENO"; then :
1632  ac_header_compiler=yes
1633else
1634  ac_header_compiler=no
1635fi
1636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1638$as_echo "$ac_header_compiler" >&6; }
1639
1640# Is the header present?
1641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1642$as_echo_n "checking $2 presence... " >&6; }
1643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644/* end confdefs.h.  */
1645#include <$2>
1646_ACEOF
1647if ac_fn_c_try_cpp "$LINENO"; then :
1648  ac_header_preproc=yes
1649else
1650  ac_header_preproc=no
1651fi
1652rm -f conftest.err conftest.i conftest.$ac_ext
1653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1654$as_echo "$ac_header_preproc" >&6; }
1655
1656# So?  What about this header?
1657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1658  yes:no: )
1659    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1660$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1661    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1662$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1663    ;;
1664  no:yes:* )
1665    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1666$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1667    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1668$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1669    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1670$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1671    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1672$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1673    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1674$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675    ;;
1676esac
1677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678$as_echo_n "checking for $2... " >&6; }
1679if eval \${$3+:} false; then :
1680  $as_echo_n "(cached) " >&6
1681else
1682  eval "$3=\$ac_header_compiler"
1683fi
1684eval ac_res=\$$3
1685	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686$as_echo "$ac_res" >&6; }
1687fi
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690} # ac_fn_c_check_header_mongrel
1691
1692# ac_fn_c_try_run LINENO
1693# ----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695# that executables *can* be run.
1696ac_fn_c_try_run ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_link") 2>&5
1707  ac_status=$?
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710  { { case "(($ac_try" in
1711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712  *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716  (eval "$ac_try") 2>&5
1717  ac_status=$?
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; }; }; then :
1720  ac_retval=0
1721else
1722  $as_echo "$as_me: program exited with status $ac_status" >&5
1723       $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726       ac_retval=$ac_status
1727fi
1728  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_run
1733
1734# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1735# -------------------------------------------------------
1736# Tests whether HEADER exists and can be compiled using the include files in
1737# INCLUDES, setting the cache variable VAR accordingly.
1738ac_fn_c_check_header_compile ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
1743if eval \${$3+:} false; then :
1744  $as_echo_n "(cached) " >&6
1745else
1746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752  eval "$3=yes"
1753else
1754  eval "$3=no"
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757fi
1758eval ac_res=\$$3
1759	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763} # ac_fn_c_check_header_compile
1764
1765# ac_fn_c_try_link LINENO
1766# -----------------------
1767# Try to link conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_link ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  rm -f conftest.$ac_objext conftest$ac_exeext
1772  if { { ac_try="$ac_link"
1773case "(($ac_try" in
1774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775  *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779  (eval "$ac_link") 2>conftest.err
1780  ac_status=$?
1781  if test -s conftest.err; then
1782    grep -v '^ *+' conftest.err >conftest.er1
1783    cat conftest.er1 >&5
1784    mv -f conftest.er1 conftest.err
1785  fi
1786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787  test $ac_status = 0; } && {
1788	 test -z "$ac_c_werror_flag" ||
1789	 test ! -s conftest.err
1790       } && test -s conftest$ac_exeext && {
1791	 test "$cross_compiling" = yes ||
1792	 test -x conftest$ac_exeext
1793       }; then :
1794  ac_retval=0
1795else
1796  $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799	ac_retval=1
1800fi
1801  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1802  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1803  # interfere with the next link command; also delete a directory that is
1804  # left behind by Apple's compiler.  We do this before executing the actions.
1805  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807  as_fn_set_status $ac_retval
1808
1809} # ac_fn_c_try_link
1810
1811# ac_fn_c_check_func LINENO FUNC VAR
1812# ----------------------------------
1813# Tests whether FUNC exists, setting the cache variable VAR accordingly
1814ac_fn_c_check_func ()
1815{
1816  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
1819if eval \${$3+:} false; then :
1820  $as_echo_n "(cached) " >&6
1821else
1822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1826#define $2 innocuous_$2
1827
1828/* System header to define __stub macros and hopefully few prototypes,
1829    which can conflict with char $2 (); below.
1830    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831    <limits.h> exists even on freestanding compilers.  */
1832
1833#ifdef __STDC__
1834# include <limits.h>
1835#else
1836# include <assert.h>
1837#endif
1838
1839#undef $2
1840
1841/* Override any GCC internal prototype to avoid an error.
1842   Use char because int might match the return type of a GCC
1843   builtin and then its argument prototype would still apply.  */
1844#ifdef __cplusplus
1845extern "C"
1846#endif
1847char $2 ();
1848/* The GNU C library defines this for functions which it implements
1849    to always fail with ENOSYS.  Some functions are actually named
1850    something starting with __ and the normal name is an alias.  */
1851#if defined __stub_$2 || defined __stub___$2
1852choke me
1853#endif
1854
1855int
1856main ()
1857{
1858return $2 ();
1859  ;
1860  return 0;
1861}
1862_ACEOF
1863if ac_fn_c_try_link "$LINENO"; then :
1864  eval "$3=yes"
1865else
1866  eval "$3=no"
1867fi
1868rm -f core conftest.err conftest.$ac_objext \
1869    conftest$ac_exeext conftest.$ac_ext
1870fi
1871eval ac_res=\$$3
1872	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876} # ac_fn_c_check_func
1877
1878# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1879# -------------------------------------------
1880# Tests whether TYPE exists after having included INCLUDES, setting cache
1881# variable VAR accordingly.
1882ac_fn_c_check_type ()
1883{
1884  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
1887if eval \${$3+:} false; then :
1888  $as_echo_n "(cached) " >&6
1889else
1890  eval "$3=no"
1891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893$4
1894int
1895main ()
1896{
1897if (sizeof ($2))
1898	 return 0;
1899  ;
1900  return 0;
1901}
1902_ACEOF
1903if ac_fn_c_try_compile "$LINENO"; then :
1904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906$4
1907int
1908main ()
1909{
1910if (sizeof (($2)))
1911	    return 0;
1912  ;
1913  return 0;
1914}
1915_ACEOF
1916if ac_fn_c_try_compile "$LINENO"; then :
1917
1918else
1919  eval "$3=yes"
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930} # ac_fn_c_check_type
1931
1932# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1933# --------------------------------------------
1934# Tries to find the compile-time value of EXPR in a program that includes
1935# INCLUDES, setting VAR accordingly. Returns whether the value could be
1936# computed
1937ac_fn_c_compute_int ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  if test "$cross_compiling" = yes; then
1941    # Depending upon the size, compute the lo and hi bounds.
1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$4
1945int
1946main ()
1947{
1948static int test_array [1 - 2 * !(($2) >= 0)];
1949test_array [0] = 0;
1950return test_array [0];
1951
1952  ;
1953  return 0;
1954}
1955_ACEOF
1956if ac_fn_c_try_compile "$LINENO"; then :
1957  ac_lo=0 ac_mid=0
1958  while :; do
1959    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961$4
1962int
1963main ()
1964{
1965static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1966test_array [0] = 0;
1967return test_array [0];
1968
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974  ac_hi=$ac_mid; break
1975else
1976  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1977			if test $ac_lo -le $ac_mid; then
1978			  ac_lo= ac_hi=
1979			  break
1980			fi
1981			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984  done
1985else
1986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h.  */
1988$4
1989int
1990main ()
1991{
1992static int test_array [1 - 2 * !(($2) < 0)];
1993test_array [0] = 0;
1994return test_array [0];
1995
1996  ;
1997  return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001  ac_hi=-1 ac_mid=-1
2002  while :; do
2003    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h.  */
2005$4
2006int
2007main ()
2008{
2009static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2010test_array [0] = 0;
2011return test_array [0];
2012
2013  ;
2014  return 0;
2015}
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018  ac_lo=$ac_mid; break
2019else
2020  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2021			if test $ac_mid -le $ac_hi; then
2022			  ac_lo= ac_hi=
2023			  break
2024			fi
2025			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028  done
2029else
2030  ac_lo= ac_hi=
2031fi
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035# Binary search between lo and hi bounds.
2036while test "x$ac_lo" != "x$ac_hi"; do
2037  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040$4
2041int
2042main ()
2043{
2044static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2045test_array [0] = 0;
2046return test_array [0];
2047
2048  ;
2049  return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053  ac_hi=$ac_mid
2054else
2055  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058done
2059case $ac_lo in #((
2060?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2061'') ac_retval=1 ;;
2062esac
2063  else
2064    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066$4
2067static long int longval () { return $2; }
2068static unsigned long int ulongval () { return $2; }
2069#include <stdio.h>
2070#include <stdlib.h>
2071int
2072main ()
2073{
2074
2075  FILE *f = fopen ("conftest.val", "w");
2076  if (! f)
2077    return 1;
2078  if (($2) < 0)
2079    {
2080      long int i = longval ();
2081      if (i != ($2))
2082	return 1;
2083      fprintf (f, "%ld", i);
2084    }
2085  else
2086    {
2087      unsigned long int i = ulongval ();
2088      if (i != ($2))
2089	return 1;
2090      fprintf (f, "%lu", i);
2091    }
2092  /* Do not output a trailing newline, as this causes \r\n confusion
2093     on some platforms.  */
2094  return ferror (f) || fclose (f) != 0;
2095
2096  ;
2097  return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_run "$LINENO"; then :
2101  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2102else
2103  ac_retval=1
2104fi
2105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2106  conftest.$ac_objext conftest.beam conftest.$ac_ext
2107rm -f conftest.val
2108
2109  fi
2110  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111  as_fn_set_status $ac_retval
2112
2113} # ac_fn_c_compute_int
2114cat >config.log <<_ACEOF
2115This file contains any messages produced by compilers while
2116running configure, to aid debugging if configure makes a mistake.
2117
2118It was created by $as_me, which was
2119generated by GNU Autoconf 2.69.  Invocation command line was
2120
2121  $ $0 $@
2122
2123_ACEOF
2124exec 5>>config.log
2125{
2126cat <<_ASUNAME
2127## --------- ##
2128## Platform. ##
2129## --------- ##
2130
2131hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2132uname -m = `(uname -m) 2>/dev/null || echo unknown`
2133uname -r = `(uname -r) 2>/dev/null || echo unknown`
2134uname -s = `(uname -s) 2>/dev/null || echo unknown`
2135uname -v = `(uname -v) 2>/dev/null || echo unknown`
2136
2137/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2138/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2139
2140/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2141/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2142/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2143/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2144/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2145/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2146/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2147
2148_ASUNAME
2149
2150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151for as_dir in $PATH
2152do
2153  IFS=$as_save_IFS
2154  test -z "$as_dir" && as_dir=.
2155    $as_echo "PATH: $as_dir"
2156  done
2157IFS=$as_save_IFS
2158
2159} >&5
2160
2161cat >&5 <<_ACEOF
2162
2163
2164## ----------- ##
2165## Core tests. ##
2166## ----------- ##
2167
2168_ACEOF
2169
2170
2171# Keep a trace of the command line.
2172# Strip out --no-create and --no-recursion so they do not pile up.
2173# Strip out --silent because we don't want to record it for future runs.
2174# Also quote any args containing shell meta-characters.
2175# Make two passes to allow for proper duplicate-argument suppression.
2176ac_configure_args=
2177ac_configure_args0=
2178ac_configure_args1=
2179ac_must_keep_next=false
2180for ac_pass in 1 2
2181do
2182  for ac_arg
2183  do
2184    case $ac_arg in
2185    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2186    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2187    | -silent | --silent | --silen | --sile | --sil)
2188      continue ;;
2189    *\'*)
2190      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2191    esac
2192    case $ac_pass in
2193    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2194    2)
2195      as_fn_append ac_configure_args1 " '$ac_arg'"
2196      if test $ac_must_keep_next = true; then
2197	ac_must_keep_next=false # Got value, back to normal.
2198      else
2199	case $ac_arg in
2200	  *=* | --config-cache | -C | -disable-* | --disable-* \
2201	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2202	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2203	  | -with-* | --with-* | -without-* | --without-* | --x)
2204	    case "$ac_configure_args0 " in
2205	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2206	    esac
2207	    ;;
2208	  -* ) ac_must_keep_next=true ;;
2209	esac
2210      fi
2211      as_fn_append ac_configure_args " '$ac_arg'"
2212      ;;
2213    esac
2214  done
2215done
2216{ ac_configure_args0=; unset ac_configure_args0;}
2217{ ac_configure_args1=; unset ac_configure_args1;}
2218
2219# When interrupted or exit'd, cleanup temporary files, and complete
2220# config.log.  We remove comments because anyway the quotes in there
2221# would cause problems or look ugly.
2222# WARNING: Use '\'' to represent an apostrophe within the trap.
2223# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2224trap 'exit_status=$?
2225  # Save into config.log some information that might help in debugging.
2226  {
2227    echo
2228
2229    $as_echo "## ---------------- ##
2230## Cache variables. ##
2231## ---------------- ##"
2232    echo
2233    # The following way of writing the cache mishandles newlines in values,
2234(
2235  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2236    eval ac_val=\$$ac_var
2237    case $ac_val in #(
2238    *${as_nl}*)
2239      case $ac_var in #(
2240      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2241$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2242      esac
2243      case $ac_var in #(
2244      _ | IFS | as_nl) ;; #(
2245      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2246      *) { eval $ac_var=; unset $ac_var;} ;;
2247      esac ;;
2248    esac
2249  done
2250  (set) 2>&1 |
2251    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2252    *${as_nl}ac_space=\ *)
2253      sed -n \
2254	"s/'\''/'\''\\\\'\'''\''/g;
2255	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2256      ;; #(
2257    *)
2258      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2259      ;;
2260    esac |
2261    sort
2262)
2263    echo
2264
2265    $as_echo "## ----------------- ##
2266## Output variables. ##
2267## ----------------- ##"
2268    echo
2269    for ac_var in $ac_subst_vars
2270    do
2271      eval ac_val=\$$ac_var
2272      case $ac_val in
2273      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274      esac
2275      $as_echo "$ac_var='\''$ac_val'\''"
2276    done | sort
2277    echo
2278
2279    if test -n "$ac_subst_files"; then
2280      $as_echo "## ------------------- ##
2281## File substitutions. ##
2282## ------------------- ##"
2283      echo
2284      for ac_var in $ac_subst_files
2285      do
2286	eval ac_val=\$$ac_var
2287	case $ac_val in
2288	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289	esac
2290	$as_echo "$ac_var='\''$ac_val'\''"
2291      done | sort
2292      echo
2293    fi
2294
2295    if test -s confdefs.h; then
2296      $as_echo "## ----------- ##
2297## confdefs.h. ##
2298## ----------- ##"
2299      echo
2300      cat confdefs.h
2301      echo
2302    fi
2303    test "$ac_signal" != 0 &&
2304      $as_echo "$as_me: caught signal $ac_signal"
2305    $as_echo "$as_me: exit $exit_status"
2306  } >&5
2307  rm -f core *.core core.conftest.* &&
2308    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2309    exit $exit_status
2310' 0
2311for ac_signal in 1 2 13 15; do
2312  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2313done
2314ac_signal=0
2315
2316# confdefs.h avoids OS command line length limits that DEFS can exceed.
2317rm -f -r conftest* confdefs.h
2318
2319$as_echo "/* confdefs.h */" > confdefs.h
2320
2321# Predefined preprocessor variables.
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_NAME "$PACKAGE_NAME"
2325_ACEOF
2326
2327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2329_ACEOF
2330
2331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_VERSION "$PACKAGE_VERSION"
2333_ACEOF
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_STRING "$PACKAGE_STRING"
2337_ACEOF
2338
2339cat >>confdefs.h <<_ACEOF
2340#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2341_ACEOF
2342
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_URL "$PACKAGE_URL"
2345_ACEOF
2346
2347
2348# Let the site file select an alternate cache file if it wants to.
2349# Prefer an explicitly selected file to automatically selected ones.
2350ac_site_file1=NONE
2351ac_site_file2=NONE
2352if test -n "$CONFIG_SITE"; then
2353  # We do not want a PATH search for config.site.
2354  case $CONFIG_SITE in #((
2355    -*)  ac_site_file1=./$CONFIG_SITE;;
2356    */*) ac_site_file1=$CONFIG_SITE;;
2357    *)   ac_site_file1=./$CONFIG_SITE;;
2358  esac
2359elif test "x$prefix" != xNONE; then
2360  ac_site_file1=$prefix/share/config.site
2361  ac_site_file2=$prefix/etc/config.site
2362else
2363  ac_site_file1=$ac_default_prefix/share/config.site
2364  ac_site_file2=$ac_default_prefix/etc/config.site
2365fi
2366for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2367do
2368  test "x$ac_site_file" = xNONE && continue
2369  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2370    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2371$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2372    sed 's/^/| /' "$ac_site_file" >&5
2373    . "$ac_site_file" \
2374      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376as_fn_error $? "failed to load site script $ac_site_file
2377See \`config.log' for more details" "$LINENO" 5; }
2378  fi
2379done
2380
2381if test -r "$cache_file"; then
2382  # Some versions of bash will fail to source /dev/null (special files
2383  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2384  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2385    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2386$as_echo "$as_me: loading cache $cache_file" >&6;}
2387    case $cache_file in
2388      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2389      *)                      . "./$cache_file";;
2390    esac
2391  fi
2392else
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2394$as_echo "$as_me: creating cache $cache_file" >&6;}
2395  >$cache_file
2396fi
2397
2398# Check that the precious variables saved in the cache have kept the same
2399# value.
2400ac_cache_corrupted=false
2401for ac_var in $ac_precious_vars; do
2402  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2403  eval ac_new_set=\$ac_env_${ac_var}_set
2404  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2405  eval ac_new_val=\$ac_env_${ac_var}_value
2406  case $ac_old_set,$ac_new_set in
2407    set,)
2408      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2409$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2410      ac_cache_corrupted=: ;;
2411    ,set)
2412      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2413$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2414      ac_cache_corrupted=: ;;
2415    ,);;
2416    *)
2417      if test "x$ac_old_val" != "x$ac_new_val"; then
2418	# differences in whitespace do not lead to failure.
2419	ac_old_val_w=`echo x $ac_old_val`
2420	ac_new_val_w=`echo x $ac_new_val`
2421	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2422	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2423$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2424	  ac_cache_corrupted=:
2425	else
2426	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2427$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2428	  eval $ac_var=\$ac_old_val
2429	fi
2430	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2431$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2432	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2433$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2434      fi;;
2435  esac
2436  # Pass precious variables to config.status.
2437  if test "$ac_new_set" = set; then
2438    case $ac_new_val in
2439    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2440    *) ac_arg=$ac_var=$ac_new_val ;;
2441    esac
2442    case " $ac_configure_args " in
2443      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2444      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2445    esac
2446  fi
2447done
2448if $ac_cache_corrupted; then
2449  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2452$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2453  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2454fi
2455## -------------------- ##
2456## Main body of script. ##
2457## -------------------- ##
2458
2459ac_ext=c
2460ac_cpp='$CPP $CPPFLAGS'
2461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464
2465
2466#AC_PREFIX_DEFAULT($MY_PREFIX_DEAULT)
2467
2468# Installation location
2469
2470
2471ac_aux_dir=
2472for ac_dir in autoconf "$srcdir"/autoconf; do
2473  if test -f "$ac_dir/install-sh"; then
2474    ac_aux_dir=$ac_dir
2475    ac_install_sh="$ac_aux_dir/install-sh -c"
2476    break
2477  elif test -f "$ac_dir/install.sh"; then
2478    ac_aux_dir=$ac_dir
2479    ac_install_sh="$ac_aux_dir/install.sh -c"
2480    break
2481  elif test -f "$ac_dir/shtool"; then
2482    ac_aux_dir=$ac_dir
2483    ac_install_sh="$ac_aux_dir/shtool install -c"
2484    break
2485  fi
2486done
2487if test -z "$ac_aux_dir"; then
2488  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2489fi
2490
2491# These three variables are undocumented and unsupported,
2492# and are intended to be withdrawn in a future Autoconf release.
2493# They can cause serious problems if a builder's source tree is in a directory
2494# whose full name contains unusual characters.
2495ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2496ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2497ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2498
2499
2500# Make sure we can run config.sub.
2501$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2502  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2503
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2505$as_echo_n "checking build system type... " >&6; }
2506if ${ac_cv_build+:} false; then :
2507  $as_echo_n "(cached) " >&6
2508else
2509  ac_build_alias=$build_alias
2510test "x$ac_build_alias" = x &&
2511  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2512test "x$ac_build_alias" = x &&
2513  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2514ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2515  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2516
2517fi
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2519$as_echo "$ac_cv_build" >&6; }
2520case $ac_cv_build in
2521*-*-*) ;;
2522*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2523esac
2524build=$ac_cv_build
2525ac_save_IFS=$IFS; IFS='-'
2526set x $ac_cv_build
2527shift
2528build_cpu=$1
2529build_vendor=$2
2530shift; shift
2531# Remember, the first character of IFS is used to create $*,
2532# except with old shells:
2533build_os=$*
2534IFS=$ac_save_IFS
2535case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2536
2537
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2539$as_echo_n "checking host system type... " >&6; }
2540if ${ac_cv_host+:} false; then :
2541  $as_echo_n "(cached) " >&6
2542else
2543  if test "x$host_alias" = x; then
2544  ac_cv_host=$ac_cv_build
2545else
2546  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2547    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2548fi
2549
2550fi
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2552$as_echo "$ac_cv_host" >&6; }
2553case $ac_cv_host in
2554*-*-*) ;;
2555*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2556esac
2557host=$ac_cv_host
2558ac_save_IFS=$IFS; IFS='-'
2559set x $ac_cv_host
2560shift
2561host_cpu=$1
2562host_vendor=$2
2563shift; shift
2564# Remember, the first character of IFS is used to create $*,
2565# except with old shells:
2566host_os=$*
2567IFS=$ac_save_IFS
2568case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2569
2570
2571
2572
2573#These variable are initialized by JD init function
2574CONFIG_DIR=`pwd`
2575cd $srcdir
2576if test "`pwd`" != "$CONFIG_DIR"
2577then
2578  as_fn_error $? "\"This software does not support configuring from another directory.   See the INSTALL file\"" "$LINENO" 5
2579fi
2580# Note: these will differ if one is a symbolic link
2581if test -f /usr/bin/dirname; then
2582  JD_Above_Dir=`dirname $CONFIG_DIR`
2583else
2584# system is a loser
2585  JD_Above_Dir=`cd ..;pwd`
2586fi
2587JD_Above_Dir2=`cd ..;pwd`
2588
2589ac_ext=c
2590ac_cpp='$CPP $CPPFLAGS'
2591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594if test -n "$ac_tool_prefix"; then
2595  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2596set dummy ${ac_tool_prefix}gcc; ac_word=$2
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598$as_echo_n "checking for $ac_word... " >&6; }
2599if ${ac_cv_prog_CC+:} false; then :
2600  $as_echo_n "(cached) " >&6
2601else
2602  if test -n "$CC"; then
2603  ac_cv_prog_CC="$CC" # Let the user override the test.
2604else
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608  IFS=$as_save_IFS
2609  test -z "$as_dir" && as_dir=.
2610    for ac_exec_ext in '' $ac_executable_extensions; do
2611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614    break 2
2615  fi
2616done
2617  done
2618IFS=$as_save_IFS
2619
2620fi
2621fi
2622CC=$ac_cv_prog_CC
2623if test -n "$CC"; then
2624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2625$as_echo "$CC" >&6; }
2626else
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628$as_echo "no" >&6; }
2629fi
2630
2631
2632fi
2633if test -z "$ac_cv_prog_CC"; then
2634  ac_ct_CC=$CC
2635  # Extract the first word of "gcc", so it can be a program name with args.
2636set dummy gcc; ac_word=$2
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638$as_echo_n "checking for $ac_word... " >&6; }
2639if ${ac_cv_prog_ac_ct_CC+:} false; then :
2640  $as_echo_n "(cached) " >&6
2641else
2642  if test -n "$ac_ct_CC"; then
2643  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648  IFS=$as_save_IFS
2649  test -z "$as_dir" && as_dir=.
2650    for ac_exec_ext in '' $ac_executable_extensions; do
2651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652    ac_cv_prog_ac_ct_CC="gcc"
2653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654    break 2
2655  fi
2656done
2657  done
2658IFS=$as_save_IFS
2659
2660fi
2661fi
2662ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663if test -n "$ac_ct_CC"; then
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2665$as_echo "$ac_ct_CC" >&6; }
2666else
2667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668$as_echo "no" >&6; }
2669fi
2670
2671  if test "x$ac_ct_CC" = x; then
2672    CC=""
2673  else
2674    case $cross_compiling:$ac_tool_warned in
2675yes:)
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2678ac_tool_warned=yes ;;
2679esac
2680    CC=$ac_ct_CC
2681  fi
2682else
2683  CC="$ac_cv_prog_CC"
2684fi
2685
2686if test -z "$CC"; then
2687          if test -n "$ac_tool_prefix"; then
2688    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2689set dummy ${ac_tool_prefix}cc; ac_word=$2
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691$as_echo_n "checking for $ac_word... " >&6; }
2692if ${ac_cv_prog_CC+:} false; then :
2693  $as_echo_n "(cached) " >&6
2694else
2695  if test -n "$CC"; then
2696  ac_cv_prog_CC="$CC" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701  IFS=$as_save_IFS
2702  test -z "$as_dir" && as_dir=.
2703    for ac_exec_ext in '' $ac_executable_extensions; do
2704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705    ac_cv_prog_CC="${ac_tool_prefix}cc"
2706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707    break 2
2708  fi
2709done
2710  done
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715CC=$ac_cv_prog_CC
2716if test -n "$CC"; then
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718$as_echo "$CC" >&6; }
2719else
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721$as_echo "no" >&6; }
2722fi
2723
2724
2725  fi
2726fi
2727if test -z "$CC"; then
2728  # Extract the first word of "cc", so it can be a program name with args.
2729set dummy cc; ac_word=$2
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731$as_echo_n "checking for $ac_word... " >&6; }
2732if ${ac_cv_prog_CC+:} false; then :
2733  $as_echo_n "(cached) " >&6
2734else
2735  if test -n "$CC"; then
2736  ac_cv_prog_CC="$CC" # Let the user override the test.
2737else
2738  ac_prog_rejected=no
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2747       ac_prog_rejected=yes
2748       continue
2749     fi
2750    ac_cv_prog_CC="cc"
2751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752    break 2
2753  fi
2754done
2755  done
2756IFS=$as_save_IFS
2757
2758if test $ac_prog_rejected = yes; then
2759  # We found a bogon in the path, so make sure we never use it.
2760  set dummy $ac_cv_prog_CC
2761  shift
2762  if test $# != 0; then
2763    # We chose a different compiler from the bogus one.
2764    # However, it has the same basename, so the bogon will be chosen
2765    # first if we set CC to just the basename; use the full file name.
2766    shift
2767    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2768  fi
2769fi
2770fi
2771fi
2772CC=$ac_cv_prog_CC
2773if test -n "$CC"; then
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2775$as_echo "$CC" >&6; }
2776else
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778$as_echo "no" >&6; }
2779fi
2780
2781
2782fi
2783if test -z "$CC"; then
2784  if test -n "$ac_tool_prefix"; then
2785  for ac_prog in cl.exe
2786  do
2787    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2788set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790$as_echo_n "checking for $ac_word... " >&6; }
2791if ${ac_cv_prog_CC+:} false; then :
2792  $as_echo_n "(cached) " >&6
2793else
2794  if test -n "$CC"; then
2795  ac_cv_prog_CC="$CC" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800  IFS=$as_save_IFS
2801  test -z "$as_dir" && as_dir=.
2802    for ac_exec_ext in '' $ac_executable_extensions; do
2803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806    break 2
2807  fi
2808done
2809  done
2810IFS=$as_save_IFS
2811
2812fi
2813fi
2814CC=$ac_cv_prog_CC
2815if test -n "$CC"; then
2816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817$as_echo "$CC" >&6; }
2818else
2819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820$as_echo "no" >&6; }
2821fi
2822
2823
2824    test -n "$CC" && break
2825  done
2826fi
2827if test -z "$CC"; then
2828  ac_ct_CC=$CC
2829  for ac_prog in cl.exe
2830do
2831  # Extract the first word of "$ac_prog", so it can be a program name with args.
2832set dummy $ac_prog; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if ${ac_cv_prog_ac_ct_CC+:} false; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test -n "$ac_ct_CC"; then
2839  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846    for ac_exec_ext in '' $ac_executable_extensions; do
2847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848    ac_cv_prog_ac_ct_CC="$ac_prog"
2849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853  done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858ac_ct_CC=$ac_cv_prog_ac_ct_CC
2859if test -n "$ac_ct_CC"; then
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2861$as_echo "$ac_ct_CC" >&6; }
2862else
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867
2868  test -n "$ac_ct_CC" && break
2869done
2870
2871  if test "x$ac_ct_CC" = x; then
2872    CC=""
2873  else
2874    case $cross_compiling:$ac_tool_warned in
2875yes:)
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880    CC=$ac_ct_CC
2881  fi
2882fi
2883
2884fi
2885
2886
2887test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889as_fn_error $? "no acceptable C compiler found in \$PATH
2890See \`config.log' for more details" "$LINENO" 5; }
2891
2892# Provide some information about the compiler.
2893$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2894set X $ac_compile
2895ac_compiler=$2
2896for ac_option in --version -v -V -qversion; do
2897  { { ac_try="$ac_compiler $ac_option >&5"
2898case "(($ac_try" in
2899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900  *) ac_try_echo=$ac_try;;
2901esac
2902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903$as_echo "$ac_try_echo"; } >&5
2904  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2905  ac_status=$?
2906  if test -s conftest.err; then
2907    sed '10a\
2908... rest of stderr output deleted ...
2909         10q' conftest.err >conftest.er1
2910    cat conftest.er1 >&5
2911  fi
2912  rm -f conftest.er1 conftest.err
2913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914  test $ac_status = 0; }
2915done
2916
2917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918/* end confdefs.h.  */
2919
2920int
2921main ()
2922{
2923
2924  ;
2925  return 0;
2926}
2927_ACEOF
2928ac_clean_files_save=$ac_clean_files
2929ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2930# Try to create an executable without -o first, disregard a.out.
2931# It will help us diagnose broken compilers, and finding out an intuition
2932# of exeext.
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2934$as_echo_n "checking whether the C compiler works... " >&6; }
2935ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2936
2937# The possible output files:
2938ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2939
2940ac_rmfiles=
2941for ac_file in $ac_files
2942do
2943  case $ac_file in
2944    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2945    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2946  esac
2947done
2948rm -f $ac_rmfiles
2949
2950if { { ac_try="$ac_link_default"
2951case "(($ac_try" in
2952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953  *) ac_try_echo=$ac_try;;
2954esac
2955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956$as_echo "$ac_try_echo"; } >&5
2957  (eval "$ac_link_default") 2>&5
2958  ac_status=$?
2959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960  test $ac_status = 0; }; then :
2961  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2962# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2963# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2964# so that the user can short-circuit this test for compilers unknown to
2965# Autoconf.
2966for ac_file in $ac_files ''
2967do
2968  test -f "$ac_file" || continue
2969  case $ac_file in
2970    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2971	;;
2972    [ab].out )
2973	# We found the default executable, but exeext='' is most
2974	# certainly right.
2975	break;;
2976    *.* )
2977	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2978	then :; else
2979	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2980	fi
2981	# We set ac_cv_exeext here because the later test for it is not
2982	# safe: cross compilers may not add the suffix if given an `-o'
2983	# argument, so we may need to know it at that point already.
2984	# Even if this section looks crufty: it has the advantage of
2985	# actually working.
2986	break;;
2987    * )
2988	break;;
2989  esac
2990done
2991test "$ac_cv_exeext" = no && ac_cv_exeext=
2992
2993else
2994  ac_file=''
2995fi
2996if test -z "$ac_file"; then :
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998$as_echo "no" >&6; }
2999$as_echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004as_fn_error 77 "C compiler cannot create executables
3005See \`config.log' for more details" "$LINENO" 5; }
3006else
3007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008$as_echo "yes" >&6; }
3009fi
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3011$as_echo_n "checking for C compiler default output file name... " >&6; }
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3013$as_echo "$ac_file" >&6; }
3014ac_exeext=$ac_cv_exeext
3015
3016rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3017ac_clean_files=$ac_clean_files_save
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3019$as_echo_n "checking for suffix of executables... " >&6; }
3020if { { ac_try="$ac_link"
3021case "(($ac_try" in
3022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023  *) ac_try_echo=$ac_try;;
3024esac
3025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026$as_echo "$ac_try_echo"; } >&5
3027  (eval "$ac_link") 2>&5
3028  ac_status=$?
3029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030  test $ac_status = 0; }; then :
3031  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3032# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3033# work properly (i.e., refer to `conftest.exe'), while it won't with
3034# `rm'.
3035for ac_file in conftest.exe conftest conftest.*; do
3036  test -f "$ac_file" || continue
3037  case $ac_file in
3038    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3039    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3040	  break;;
3041    * ) break;;
3042  esac
3043done
3044else
3045  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3048See \`config.log' for more details" "$LINENO" 5; }
3049fi
3050rm -f conftest conftest$ac_cv_exeext
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3052$as_echo "$ac_cv_exeext" >&6; }
3053
3054rm -f conftest.$ac_ext
3055EXEEXT=$ac_cv_exeext
3056ac_exeext=$EXEEXT
3057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h.  */
3059#include <stdio.h>
3060int
3061main ()
3062{
3063FILE *f = fopen ("conftest.out", "w");
3064 return ferror (f) || fclose (f) != 0;
3065
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070ac_clean_files="$ac_clean_files conftest.out"
3071# Check that the compiler produces executables we can run.  If not, either
3072# the compiler is broken, or we cross compile.
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3074$as_echo_n "checking whether we are cross compiling... " >&6; }
3075if test "$cross_compiling" != yes; then
3076  { { ac_try="$ac_link"
3077case "(($ac_try" in
3078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079  *) ac_try_echo=$ac_try;;
3080esac
3081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082$as_echo "$ac_try_echo"; } >&5
3083  (eval "$ac_link") 2>&5
3084  ac_status=$?
3085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086  test $ac_status = 0; }
3087  if { ac_try='./conftest$ac_cv_exeext'
3088  { { case "(($ac_try" in
3089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090  *) ac_try_echo=$ac_try;;
3091esac
3092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093$as_echo "$ac_try_echo"; } >&5
3094  (eval "$ac_try") 2>&5
3095  ac_status=$?
3096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097  test $ac_status = 0; }; }; then
3098    cross_compiling=no
3099  else
3100    if test "$cross_compiling" = maybe; then
3101	cross_compiling=yes
3102    else
3103	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105as_fn_error $? "cannot run C compiled programs.
3106If you meant to cross compile, use \`--host'.
3107See \`config.log' for more details" "$LINENO" 5; }
3108    fi
3109  fi
3110fi
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3112$as_echo "$cross_compiling" >&6; }
3113
3114rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3115ac_clean_files=$ac_clean_files_save
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3117$as_echo_n "checking for suffix of object files... " >&6; }
3118if ${ac_cv_objext+:} false; then :
3119  $as_echo_n "(cached) " >&6
3120else
3121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132rm -f conftest.o conftest.obj
3133if { { ac_try="$ac_compile"
3134case "(($ac_try" in
3135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136  *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140  (eval "$ac_compile") 2>&5
3141  ac_status=$?
3142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143  test $ac_status = 0; }; then :
3144  for ac_file in conftest.o conftest.obj conftest.*; do
3145  test -f "$ac_file" || continue;
3146  case $ac_file in
3147    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3148    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3149       break;;
3150  esac
3151done
3152else
3153  $as_echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158as_fn_error $? "cannot compute suffix of object files: cannot compile
3159See \`config.log' for more details" "$LINENO" 5; }
3160fi
3161rm -f conftest.$ac_cv_objext conftest.$ac_ext
3162fi
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3164$as_echo "$ac_cv_objext" >&6; }
3165OBJEXT=$ac_cv_objext
3166ac_objext=$OBJEXT
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3168$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3169if ${ac_cv_c_compiler_gnu+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173/* end confdefs.h.  */
3174
3175int
3176main ()
3177{
3178#ifndef __GNUC__
3179       choke me
3180#endif
3181
3182  ;
3183  return 0;
3184}
3185_ACEOF
3186if ac_fn_c_try_compile "$LINENO"; then :
3187  ac_compiler_gnu=yes
3188else
3189  ac_compiler_gnu=no
3190fi
3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192ac_cv_c_compiler_gnu=$ac_compiler_gnu
3193
3194fi
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3196$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3197if test $ac_compiler_gnu = yes; then
3198  GCC=yes
3199else
3200  GCC=
3201fi
3202ac_test_CFLAGS=${CFLAGS+set}
3203ac_save_CFLAGS=$CFLAGS
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3205$as_echo_n "checking whether $CC accepts -g... " >&6; }
3206if ${ac_cv_prog_cc_g+:} false; then :
3207  $as_echo_n "(cached) " >&6
3208else
3209  ac_save_c_werror_flag=$ac_c_werror_flag
3210   ac_c_werror_flag=yes
3211   ac_cv_prog_cc_g=no
3212   CFLAGS="-g"
3213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224if ac_fn_c_try_compile "$LINENO"; then :
3225  ac_cv_prog_cc_g=yes
3226else
3227  CFLAGS=""
3228      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h.  */
3230
3231int
3232main ()
3233{
3234
3235  ;
3236  return 0;
3237}
3238_ACEOF
3239if ac_fn_c_try_compile "$LINENO"; then :
3240
3241else
3242  ac_c_werror_flag=$ac_save_c_werror_flag
3243	 CFLAGS="-g"
3244	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h.  */
3246
3247int
3248main ()
3249{
3250
3251  ;
3252  return 0;
3253}
3254_ACEOF
3255if ac_fn_c_try_compile "$LINENO"; then :
3256  ac_cv_prog_cc_g=yes
3257fi
3258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259fi
3260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261fi
3262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263   ac_c_werror_flag=$ac_save_c_werror_flag
3264fi
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3266$as_echo "$ac_cv_prog_cc_g" >&6; }
3267if test "$ac_test_CFLAGS" = set; then
3268  CFLAGS=$ac_save_CFLAGS
3269elif test $ac_cv_prog_cc_g = yes; then
3270  if test "$GCC" = yes; then
3271    CFLAGS="-g -O2"
3272  else
3273    CFLAGS="-g"
3274  fi
3275else
3276  if test "$GCC" = yes; then
3277    CFLAGS="-O2"
3278  else
3279    CFLAGS=
3280  fi
3281fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3283$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3284if ${ac_cv_prog_cc_c89+:} false; then :
3285  $as_echo_n "(cached) " >&6
3286else
3287  ac_cv_prog_cc_c89=no
3288ac_save_CC=$CC
3289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h.  */
3291#include <stdarg.h>
3292#include <stdio.h>
3293struct stat;
3294/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3295struct buf { int x; };
3296FILE * (*rcsopen) (struct buf *, struct stat *, int);
3297static char *e (p, i)
3298     char **p;
3299     int i;
3300{
3301  return p[i];
3302}
3303static char *f (char * (*g) (char **, int), char **p, ...)
3304{
3305  char *s;
3306  va_list v;
3307  va_start (v,p);
3308  s = g (p, va_arg (v,int));
3309  va_end (v);
3310  return s;
3311}
3312
3313/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3314   function prototypes and stuff, but not '\xHH' hex character constants.
3315   These don't provoke an error unfortunately, instead are silently treated
3316   as 'x'.  The following induces an error, until -std is added to get
3317   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3318   array size at least.  It's necessary to write '\x00'==0 to get something
3319   that's true only with -std.  */
3320int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3321
3322/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3323   inside strings and character constants.  */
3324#define FOO(x) 'x'
3325int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3326
3327int test (int i, double x);
3328struct s1 {int (*f) (int a);};
3329struct s2 {int (*f) (double a);};
3330int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3331int argc;
3332char **argv;
3333int
3334main ()
3335{
3336return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3337  ;
3338  return 0;
3339}
3340_ACEOF
3341for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3342	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3343do
3344  CC="$ac_save_CC $ac_arg"
3345  if ac_fn_c_try_compile "$LINENO"; then :
3346  ac_cv_prog_cc_c89=$ac_arg
3347fi
3348rm -f core conftest.err conftest.$ac_objext
3349  test "x$ac_cv_prog_cc_c89" != "xno" && break
3350done
3351rm -f conftest.$ac_ext
3352CC=$ac_save_CC
3353
3354fi
3355# AC_CACHE_VAL
3356case "x$ac_cv_prog_cc_c89" in
3357  x)
3358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3359$as_echo "none needed" >&6; } ;;
3360  xno)
3361    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3362$as_echo "unsupported" >&6; } ;;
3363  *)
3364    CC="$CC $ac_cv_prog_cc_c89"
3365    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3366$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3367esac
3368if test "x$ac_cv_prog_cc_c89" != xno; then :
3369
3370fi
3371
3372ac_ext=c
3373ac_cpp='$CPP $CPPFLAGS'
3374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377
3378
3379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3385$as_echo_n "checking how to run the C preprocessor... " >&6; }
3386# On Suns, sometimes $CPP names a directory.
3387if test -n "$CPP" && test -d "$CPP"; then
3388  CPP=
3389fi
3390if test -z "$CPP"; then
3391  if ${ac_cv_prog_CPP+:} false; then :
3392  $as_echo_n "(cached) " >&6
3393else
3394      # Double quotes because CPP needs to be expanded
3395    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3396    do
3397      ac_preproc_ok=false
3398for ac_c_preproc_warn_flag in '' yes
3399do
3400  # Use a header file that comes with gcc, so configuring glibc
3401  # with a fresh cross-compiler works.
3402  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403  # <limits.h> exists even on freestanding compilers.
3404  # On the NeXT, cc -E runs the code through the compiler's parser,
3405  # not just through cpp. "Syntax error" is here to catch this case.
3406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407/* end confdefs.h.  */
3408#ifdef __STDC__
3409# include <limits.h>
3410#else
3411# include <assert.h>
3412#endif
3413		     Syntax error
3414_ACEOF
3415if ac_fn_c_try_cpp "$LINENO"; then :
3416
3417else
3418  # Broken: fails on valid input.
3419continue
3420fi
3421rm -f conftest.err conftest.i conftest.$ac_ext
3422
3423  # OK, works on sane cases.  Now check whether nonexistent headers
3424  # can be detected and how.
3425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h.  */
3427#include <ac_nonexistent.h>
3428_ACEOF
3429if ac_fn_c_try_cpp "$LINENO"; then :
3430  # Broken: success on invalid input.
3431continue
3432else
3433  # Passes both tests.
3434ac_preproc_ok=:
3435break
3436fi
3437rm -f conftest.err conftest.i conftest.$ac_ext
3438
3439done
3440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441rm -f conftest.i conftest.err conftest.$ac_ext
3442if $ac_preproc_ok; then :
3443  break
3444fi
3445
3446    done
3447    ac_cv_prog_CPP=$CPP
3448
3449fi
3450  CPP=$ac_cv_prog_CPP
3451else
3452  ac_cv_prog_CPP=$CPP
3453fi
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3455$as_echo "$CPP" >&6; }
3456ac_preproc_ok=false
3457for ac_c_preproc_warn_flag in '' yes
3458do
3459  # Use a header file that comes with gcc, so configuring glibc
3460  # with a fresh cross-compiler works.
3461  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462  # <limits.h> exists even on freestanding compilers.
3463  # On the NeXT, cc -E runs the code through the compiler's parser,
3464  # not just through cpp. "Syntax error" is here to catch this case.
3465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h.  */
3467#ifdef __STDC__
3468# include <limits.h>
3469#else
3470# include <assert.h>
3471#endif
3472		     Syntax error
3473_ACEOF
3474if ac_fn_c_try_cpp "$LINENO"; then :
3475
3476else
3477  # Broken: fails on valid input.
3478continue
3479fi
3480rm -f conftest.err conftest.i conftest.$ac_ext
3481
3482  # OK, works on sane cases.  Now check whether nonexistent headers
3483  # can be detected and how.
3484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h.  */
3486#include <ac_nonexistent.h>
3487_ACEOF
3488if ac_fn_c_try_cpp "$LINENO"; then :
3489  # Broken: success on invalid input.
3490continue
3491else
3492  # Passes both tests.
3493ac_preproc_ok=:
3494break
3495fi
3496rm -f conftest.err conftest.i conftest.$ac_ext
3497
3498done
3499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3500rm -f conftest.i conftest.err conftest.$ac_ext
3501if $ac_preproc_ok; then :
3502
3503else
3504  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3507See \`config.log' for more details" "$LINENO" 5; }
3508fi
3509
3510ac_ext=c
3511ac_cpp='$CPP $CPPFLAGS'
3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515
3516
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3518$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3519if ${ac_cv_path_GREP+:} false; then :
3520  $as_echo_n "(cached) " >&6
3521else
3522  if test -z "$GREP"; then
3523  ac_path_GREP_found=false
3524  # Loop through the user's path and test for each of PROGNAME-LIST
3525  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3527do
3528  IFS=$as_save_IFS
3529  test -z "$as_dir" && as_dir=.
3530    for ac_prog in grep ggrep; do
3531    for ac_exec_ext in '' $ac_executable_extensions; do
3532      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3533      as_fn_executable_p "$ac_path_GREP" || continue
3534# Check for GNU ac_path_GREP and select it if it is found.
3535  # Check for GNU $ac_path_GREP
3536case `"$ac_path_GREP" --version 2>&1` in
3537*GNU*)
3538  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3539*)
3540  ac_count=0
3541  $as_echo_n 0123456789 >"conftest.in"
3542  while :
3543  do
3544    cat "conftest.in" "conftest.in" >"conftest.tmp"
3545    mv "conftest.tmp" "conftest.in"
3546    cp "conftest.in" "conftest.nl"
3547    $as_echo 'GREP' >> "conftest.nl"
3548    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3549    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3550    as_fn_arith $ac_count + 1 && ac_count=$as_val
3551    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3552      # Best one so far, save it but keep looking for a better one
3553      ac_cv_path_GREP="$ac_path_GREP"
3554      ac_path_GREP_max=$ac_count
3555    fi
3556    # 10*(2^10) chars as input seems more than enough
3557    test $ac_count -gt 10 && break
3558  done
3559  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3560esac
3561
3562      $ac_path_GREP_found && break 3
3563    done
3564  done
3565  done
3566IFS=$as_save_IFS
3567  if test -z "$ac_cv_path_GREP"; then
3568    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3569  fi
3570else
3571  ac_cv_path_GREP=$GREP
3572fi
3573
3574fi
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3576$as_echo "$ac_cv_path_GREP" >&6; }
3577 GREP="$ac_cv_path_GREP"
3578
3579
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3581$as_echo_n "checking for egrep... " >&6; }
3582if ${ac_cv_path_EGREP+:} false; then :
3583  $as_echo_n "(cached) " >&6
3584else
3585  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3586   then ac_cv_path_EGREP="$GREP -E"
3587   else
3588     if test -z "$EGREP"; then
3589  ac_path_EGREP_found=false
3590  # Loop through the user's path and test for each of PROGNAME-LIST
3591  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3593do
3594  IFS=$as_save_IFS
3595  test -z "$as_dir" && as_dir=.
3596    for ac_prog in egrep; do
3597    for ac_exec_ext in '' $ac_executable_extensions; do
3598      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3599      as_fn_executable_p "$ac_path_EGREP" || continue
3600# Check for GNU ac_path_EGREP and select it if it is found.
3601  # Check for GNU $ac_path_EGREP
3602case `"$ac_path_EGREP" --version 2>&1` in
3603*GNU*)
3604  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3605*)
3606  ac_count=0
3607  $as_echo_n 0123456789 >"conftest.in"
3608  while :
3609  do
3610    cat "conftest.in" "conftest.in" >"conftest.tmp"
3611    mv "conftest.tmp" "conftest.in"
3612    cp "conftest.in" "conftest.nl"
3613    $as_echo 'EGREP' >> "conftest.nl"
3614    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3615    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3616    as_fn_arith $ac_count + 1 && ac_count=$as_val
3617    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3618      # Best one so far, save it but keep looking for a better one
3619      ac_cv_path_EGREP="$ac_path_EGREP"
3620      ac_path_EGREP_max=$ac_count
3621    fi
3622    # 10*(2^10) chars as input seems more than enough
3623    test $ac_count -gt 10 && break
3624  done
3625  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3626esac
3627
3628      $ac_path_EGREP_found && break 3
3629    done
3630  done
3631  done
3632IFS=$as_save_IFS
3633  if test -z "$ac_cv_path_EGREP"; then
3634    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3635  fi
3636else
3637  ac_cv_path_EGREP=$EGREP
3638fi
3639
3640   fi
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3643$as_echo "$ac_cv_path_EGREP" >&6; }
3644 EGREP="$ac_cv_path_EGREP"
3645
3646
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3648$as_echo_n "checking for ANSI C header files... " >&6; }
3649if ${ac_cv_header_stdc+:} false; then :
3650  $as_echo_n "(cached) " >&6
3651else
3652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h.  */
3654#include <stdlib.h>
3655#include <stdarg.h>
3656#include <string.h>
3657#include <float.h>
3658
3659int
3660main ()
3661{
3662
3663  ;
3664  return 0;
3665}
3666_ACEOF
3667if ac_fn_c_try_compile "$LINENO"; then :
3668  ac_cv_header_stdc=yes
3669else
3670  ac_cv_header_stdc=no
3671fi
3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673
3674if test $ac_cv_header_stdc = yes; then
3675  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h.  */
3678#include <string.h>
3679
3680_ACEOF
3681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682  $EGREP "memchr" >/dev/null 2>&1; then :
3683
3684else
3685  ac_cv_header_stdc=no
3686fi
3687rm -f conftest*
3688
3689fi
3690
3691if test $ac_cv_header_stdc = yes; then
3692  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h.  */
3695#include <stdlib.h>
3696
3697_ACEOF
3698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699  $EGREP "free" >/dev/null 2>&1; then :
3700
3701else
3702  ac_cv_header_stdc=no
3703fi
3704rm -f conftest*
3705
3706fi
3707
3708if test $ac_cv_header_stdc = yes; then
3709  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3710  if test "$cross_compiling" = yes; then :
3711  :
3712else
3713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715#include <ctype.h>
3716#include <stdlib.h>
3717#if ((' ' & 0x0FF) == 0x020)
3718# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3719# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3720#else
3721# define ISLOWER(c) \
3722		   (('a' <= (c) && (c) <= 'i') \
3723		     || ('j' <= (c) && (c) <= 'r') \
3724		     || ('s' <= (c) && (c) <= 'z'))
3725# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3726#endif
3727
3728#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3729int
3730main ()
3731{
3732  int i;
3733  for (i = 0; i < 256; i++)
3734    if (XOR (islower (i), ISLOWER (i))
3735	|| toupper (i) != TOUPPER (i))
3736      return 2;
3737  return 0;
3738}
3739_ACEOF
3740if ac_fn_c_try_run "$LINENO"; then :
3741
3742else
3743  ac_cv_header_stdc=no
3744fi
3745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3746  conftest.$ac_objext conftest.beam conftest.$ac_ext
3747fi
3748
3749fi
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3752$as_echo "$ac_cv_header_stdc" >&6; }
3753if test $ac_cv_header_stdc = yes; then
3754
3755$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3756
3757fi
3758
3759# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3760for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3761		  inttypes.h stdint.h unistd.h
3762do :
3763  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3764ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3765"
3766if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3767  cat >>confdefs.h <<_ACEOF
3768#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3769_ACEOF
3770
3771fi
3772
3773done
3774
3775
3776
3777  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3778if test "x$ac_cv_header_minix_config_h" = xyes; then :
3779  MINIX=yes
3780else
3781  MINIX=
3782fi
3783
3784
3785  if test "$MINIX" = yes; then
3786
3787$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3788
3789
3790$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3791
3792
3793$as_echo "#define _MINIX 1" >>confdefs.h
3794
3795  fi
3796
3797
3798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3799$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3800if ${ac_cv_safe_to_define___extensions__+:} false; then :
3801  $as_echo_n "(cached) " >&6
3802else
3803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805
3806#         define __EXTENSIONS__ 1
3807          $ac_includes_default
3808int
3809main ()
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816if ac_fn_c_try_compile "$LINENO"; then :
3817  ac_cv_safe_to_define___extensions__=yes
3818else
3819  ac_cv_safe_to_define___extensions__=no
3820fi
3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822fi
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3824$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3825  test $ac_cv_safe_to_define___extensions__ = yes &&
3826    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3827
3828  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3829
3830  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3831
3832  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3833
3834  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3835
3836
3837if test $ac_cv_c_compiler_gnu = yes; then
3838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3839$as_echo_n "checking whether $CC needs -traditional... " >&6; }
3840if ${ac_cv_prog_gcc_traditional+:} false; then :
3841  $as_echo_n "(cached) " >&6
3842else
3843    ac_pattern="Autoconf.*'x'"
3844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h.  */
3846#include <sgtty.h>
3847Autoconf TIOCGETP
3848_ACEOF
3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3851  ac_cv_prog_gcc_traditional=yes
3852else
3853  ac_cv_prog_gcc_traditional=no
3854fi
3855rm -f conftest*
3856
3857
3858  if test $ac_cv_prog_gcc_traditional = no; then
3859    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861#include <termio.h>
3862Autoconf TCGETA
3863_ACEOF
3864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3865  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3866  ac_cv_prog_gcc_traditional=yes
3867fi
3868rm -f conftest*
3869
3870  fi
3871fi
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3873$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3874  if test $ac_cv_prog_gcc_traditional = yes; then
3875    CC="$CC -traditional"
3876  fi
3877fi
3878
3879
3880
3881
3882
3883
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3885$as_echo_n "checking for library containing strerror... " >&6; }
3886if ${ac_cv_search_strerror+:} false; then :
3887  $as_echo_n "(cached) " >&6
3888else
3889  ac_func_search_save_LIBS=$LIBS
3890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892
3893/* Override any GCC internal prototype to avoid an error.
3894   Use char because int might match the return type of a GCC
3895   builtin and then its argument prototype would still apply.  */
3896#ifdef __cplusplus
3897extern "C"
3898#endif
3899char strerror ();
3900int
3901main ()
3902{
3903return strerror ();
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908for ac_lib in '' cposix; do
3909  if test -z "$ac_lib"; then
3910    ac_res="none required"
3911  else
3912    ac_res=-l$ac_lib
3913    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3914  fi
3915  if ac_fn_c_try_link "$LINENO"; then :
3916  ac_cv_search_strerror=$ac_res
3917fi
3918rm -f core conftest.err conftest.$ac_objext \
3919    conftest$ac_exeext
3920  if ${ac_cv_search_strerror+:} false; then :
3921  break
3922fi
3923done
3924if ${ac_cv_search_strerror+:} false; then :
3925
3926else
3927  ac_cv_search_strerror=no
3928fi
3929rm conftest.$ac_ext
3930LIBS=$ac_func_search_save_LIBS
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3933$as_echo "$ac_cv_search_strerror" >&6; }
3934ac_res=$ac_cv_search_strerror
3935if test "$ac_res" != no; then :
3936  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3937
3938fi
3939
3940
3941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942/* end confdefs.h.  */
3943#ifdef hpux
3944  yes
3945#endif
3946
3947_ACEOF
3948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3949  $EGREP "yes" >/dev/null 2>&1; then :
3950
3951
3952$as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
3953
3954if test "$CC" = cc; then CC="cc -Ae"; fi
3955
3956fi
3957rm -f conftest*
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C compiler that understands ANSI prototypes" >&5
3959$as_echo_n "checking C compiler that understands ANSI prototypes... " >&6; }
3960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961/* end confdefs.h.  */
3962
3963int
3964main ()
3965{
3966
3967 extern int silly (int);
3968  ;
3969  return 0;
3970}
3971_ACEOF
3972if ac_fn_c_try_compile "$LINENO"; then :
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC looks ok.  Good." >&5
3975$as_echo "$CC looks ok.  Good." >&6; }
3976else
3977
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC is not a good enough compiler" >&5
3979$as_echo "$CC is not a good enough compiler" >&6; }
3980 as_fn_error $? "Set env variable CC to your ANSI compiler and rerun configure." "$LINENO" 5
3981
3982fi
3983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3986$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3987set x ${MAKE-make}
3988ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3989if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3990  $as_echo_n "(cached) " >&6
3991else
3992  cat >conftest.make <<\_ACEOF
3993SHELL = /bin/sh
3994all:
3995	@echo '@@@%%%=$(MAKE)=@@@%%%'
3996_ACEOF
3997# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3998case `${MAKE-make} -f conftest.make 2>/dev/null` in
3999  *@@@%%%=?*=@@@%%%*)
4000    eval ac_cv_prog_make_${ac_make}_set=yes;;
4001  *)
4002    eval ac_cv_prog_make_${ac_make}_set=no;;
4003esac
4004rm -f conftest.make
4005fi
4006if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4008$as_echo "yes" >&6; }
4009  SET_MAKE=
4010else
4011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012$as_echo "no" >&6; }
4013  SET_MAKE="MAKE=${MAKE-make}"
4014fi
4015
4016if test -n "$ac_tool_prefix"; then
4017  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4018set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020$as_echo_n "checking for $ac_word... " >&6; }
4021if ${ac_cv_prog_RANLIB+:} false; then :
4022  $as_echo_n "(cached) " >&6
4023else
4024  if test -n "$RANLIB"; then
4025  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4026else
4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028for as_dir in $PATH
4029do
4030  IFS=$as_save_IFS
4031  test -z "$as_dir" && as_dir=.
4032    for ac_exec_ext in '' $ac_executable_extensions; do
4033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036    break 2
4037  fi
4038done
4039  done
4040IFS=$as_save_IFS
4041
4042fi
4043fi
4044RANLIB=$ac_cv_prog_RANLIB
4045if test -n "$RANLIB"; then
4046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4047$as_echo "$RANLIB" >&6; }
4048else
4049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050$as_echo "no" >&6; }
4051fi
4052
4053
4054fi
4055if test -z "$ac_cv_prog_RANLIB"; then
4056  ac_ct_RANLIB=$RANLIB
4057  # Extract the first word of "ranlib", so it can be a program name with args.
4058set dummy ranlib; ac_word=$2
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060$as_echo_n "checking for $ac_word... " >&6; }
4061if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  if test -n "$ac_ct_RANLIB"; then
4065  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4066else
4067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068for as_dir in $PATH
4069do
4070  IFS=$as_save_IFS
4071  test -z "$as_dir" && as_dir=.
4072    for ac_exec_ext in '' $ac_executable_extensions; do
4073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074    ac_cv_prog_ac_ct_RANLIB="ranlib"
4075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076    break 2
4077  fi
4078done
4079  done
4080IFS=$as_save_IFS
4081
4082fi
4083fi
4084ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4085if test -n "$ac_ct_RANLIB"; then
4086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4087$as_echo "$ac_ct_RANLIB" >&6; }
4088else
4089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090$as_echo "no" >&6; }
4091fi
4092
4093  if test "x$ac_ct_RANLIB" = x; then
4094    RANLIB=":"
4095  else
4096    case $cross_compiling:$ac_tool_warned in
4097yes:)
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100ac_tool_warned=yes ;;
4101esac
4102    RANLIB=$ac_ct_RANLIB
4103  fi
4104else
4105  RANLIB="$ac_cv_prog_RANLIB"
4106fi
4107
4108# Find a good install program.  We prefer a C program (faster),
4109# so one script is as good as another.  But avoid the broken or
4110# incompatible versions:
4111# SysV /etc/install, /usr/sbin/install
4112# SunOS /usr/etc/install
4113# IRIX /sbin/install
4114# AIX /bin/install
4115# AmigaOS /C/install, which installs bootblocks on floppy discs
4116# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4117# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4118# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4119# OS/2's system install, which has a completely different semantic
4120# ./install, which can be erroneously created by make from ./install.sh.
4121# Reject install programs that cannot install multiple files.
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4123$as_echo_n "checking for a BSD-compatible install... " >&6; }
4124if test -z "$INSTALL"; then
4125if ${ac_cv_path_install+:} false; then :
4126  $as_echo_n "(cached) " >&6
4127else
4128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131  IFS=$as_save_IFS
4132  test -z "$as_dir" && as_dir=.
4133    # Account for people who put trailing slashes in PATH elements.
4134case $as_dir/ in #((
4135  ./ | .// | /[cC]/* | \
4136  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4137  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4138  /usr/ucb/* ) ;;
4139  *)
4140    # OSF1 and SCO ODT 3.0 have their own names for install.
4141    # Don't use installbsd from OSF since it installs stuff as root
4142    # by default.
4143    for ac_prog in ginstall scoinst install; do
4144      for ac_exec_ext in '' $ac_executable_extensions; do
4145	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4146	  if test $ac_prog = install &&
4147	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4148	    # AIX install.  It has an incompatible calling convention.
4149	    :
4150	  elif test $ac_prog = install &&
4151	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4152	    # program-specific install script used by HP pwplus--don't use.
4153	    :
4154	  else
4155	    rm -rf conftest.one conftest.two conftest.dir
4156	    echo one > conftest.one
4157	    echo two > conftest.two
4158	    mkdir conftest.dir
4159	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4160	      test -s conftest.one && test -s conftest.two &&
4161	      test -s conftest.dir/conftest.one &&
4162	      test -s conftest.dir/conftest.two
4163	    then
4164	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4165	      break 3
4166	    fi
4167	  fi
4168	fi
4169      done
4170    done
4171    ;;
4172esac
4173
4174  done
4175IFS=$as_save_IFS
4176
4177rm -rf conftest.one conftest.two conftest.dir
4178
4179fi
4180  if test "${ac_cv_path_install+set}" = set; then
4181    INSTALL=$ac_cv_path_install
4182  else
4183    # As a last resort, use the slow shell script.  Don't cache a
4184    # value for INSTALL within a source directory, because that will
4185    # break other packages using the cache if that directory is
4186    # removed, or if the value is a relative name.
4187    INSTALL=$ac_install_sh
4188  fi
4189fi
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4191$as_echo "$INSTALL" >&6; }
4192
4193# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4194# It thinks the first close brace ends the variable substitution.
4195test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4196
4197test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4198
4199test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4200
4201
4202
4203# Check whether --with-pkgconfigdir was given.
4204if test "${with_pkgconfigdir+set}" = set; then :
4205  withval=$with_pkgconfigdir; pkgconfigdir=${withval}
4206else
4207  pkgconfigdir='${libdir}/pkgconfig'
4208fi
4209
4210
4211
4212
4213# Check whether --with-terminfo was given.
4214if test "${with_terminfo+set}" = set; then :
4215  withval=$with_terminfo;  jd_with_terminfo_arg=$withval
4216else
4217  jd_with_terminfo_arg=default
4218fi
4219
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking terminfo layout" >&5
4221$as_echo_n "checking terminfo layout... " >&6; }
4222if test "x$jd_with_terminfo_arg" = "x"
4223then
4224  jd_with_terminfo_arg="default"
4225fi
4226if test -r src/terminfo/$jd_with_terminfo_arg.inc
4227then
4228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jd_with_terminfo_arg" >&5
4229$as_echo "$jd_with_terminfo_arg" >&6; }
4230  TERMINFO_LAYOUT="$jd_with_terminfo_arg"
4231else
4232  as_fn_error $? "-\"-with-terminfo=$jd_with_terminfo_arg is invalid.  src/terminfo/$jd_with_terminfo_arg.inc does not exist\"" "$LINENO" 5
4233fi
4234
4235
4236
4237# Check whether --with-readline was given.
4238if test "${with_readline+set}" = set; then :
4239  withval=$with_readline;  jd_with_readline_arg=$withval
4240else
4241  jd_with_readline_arg=slang
4242fi
4243
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of readline support for slsh" >&5
4245$as_echo_n "checking type of readline support for slsh... " >&6; }
4246case "x$jd_with_readline_arg" in
4247  xgnu|xGNU )
4248    GNU_READLINE=1
4249    LIB_READLINE=-lreadline
4250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gnu" >&5
4251$as_echo "gnu" >&6; };
4252    ;;
4253  *)
4254    GNU_READLINE=0
4255    LIB_READLINE="# -lreadline"
4256    { $as_echo "$as_me:${as_lineno-$LINENO}: result: slang" >&5
4257$as_echo "slang" >&6; };
4258    ;;
4259esac
4260
4261
4262
4263
4264# Check whether --with-slsyswrap was given.
4265if test "${with_slsyswrap+set}" = set; then :
4266  withval=$with_slsyswrap;  jd_with_slsyswrap_arg=$withval
4267else
4268  jd_with_slsyswrap_arg=no
4269fi
4270
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for slsyswrap" >&5
4272$as_echo_n "checking for slsyswrap... " >&6; }
4273
4274case "x$jd_with_slsyswrap_arg" in
4275  x|xno)
4276    DSLSYSWRAP=""
4277    LIB_SLSYSWRAP=""
4278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279$as_echo "no" >&6; };
4280    ;;
4281  *)
4282    DSLSYSWRAP="-I$jd_with_slsyswrap_arg/include -DSLSYSWRAP=1"
4283    LIB_SLSYSWRAP="-L$jd_with_slsyswrap_arg/lib -lslsyswrap"
4284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4285$as_echo "yes" >&6; };
4286    ;;
4287esac
4288
4289
4290
4291# For the socket module
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4293$as_echo_n "checking for X... " >&6; }
4294
4295
4296# Check whether --with-x was given.
4297if test "${with_x+set}" = set; then :
4298  withval=$with_x;
4299fi
4300
4301# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4302if test "x$with_x" = xno; then
4303  # The user explicitly disabled X.
4304  have_x=disabled
4305else
4306  case $x_includes,$x_libraries in #(
4307    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4308    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4309  $as_echo_n "(cached) " >&6
4310else
4311  # One or both of the vars are not set, and there is no cached value.
4312ac_x_includes=no ac_x_libraries=no
4313rm -f -r conftest.dir
4314if mkdir conftest.dir; then
4315  cd conftest.dir
4316  cat >Imakefile <<'_ACEOF'
4317incroot:
4318	@echo incroot='${INCROOT}'
4319usrlibdir:
4320	@echo usrlibdir='${USRLIBDIR}'
4321libdir:
4322	@echo libdir='${LIBDIR}'
4323_ACEOF
4324  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4325    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4326    for ac_var in incroot usrlibdir libdir; do
4327      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4328    done
4329    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4330    for ac_extension in a so sl dylib la dll; do
4331      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4332	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4333	ac_im_usrlibdir=$ac_im_libdir; break
4334      fi
4335    done
4336    # Screen out bogus values from the imake configuration.  They are
4337    # bogus both because they are the default anyway, and because
4338    # using them would break gcc on systems where it needs fixed includes.
4339    case $ac_im_incroot in
4340	/usr/include) ac_x_includes= ;;
4341	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4342    esac
4343    case $ac_im_usrlibdir in
4344	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
4345	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4346    esac
4347  fi
4348  cd ..
4349  rm -f -r conftest.dir
4350fi
4351
4352# Standard set of common directories for X headers.
4353# Check X11 before X11Rn because it is often a symlink to the current release.
4354ac_x_header_dirs='
4355/usr/X11/include
4356/usr/X11R7/include
4357/usr/X11R6/include
4358/usr/X11R5/include
4359/usr/X11R4/include
4360
4361/usr/include/X11
4362/usr/include/X11R7
4363/usr/include/X11R6
4364/usr/include/X11R5
4365/usr/include/X11R4
4366
4367/usr/local/X11/include
4368/usr/local/X11R7/include
4369/usr/local/X11R6/include
4370/usr/local/X11R5/include
4371/usr/local/X11R4/include
4372
4373/usr/local/include/X11
4374/usr/local/include/X11R7
4375/usr/local/include/X11R6
4376/usr/local/include/X11R5
4377/usr/local/include/X11R4
4378
4379/usr/X386/include
4380/usr/x386/include
4381/usr/XFree86/include/X11
4382
4383/usr/include
4384/usr/local/include
4385/usr/unsupported/include
4386/usr/athena/include
4387/usr/local/x11r5/include
4388/usr/lpp/Xamples/include
4389
4390/usr/openwin/include
4391/usr/openwin/share/include'
4392
4393if test "$ac_x_includes" = no; then
4394  # Guess where to find include files, by looking for Xlib.h.
4395  # First, try using that file with no special directory specified.
4396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397/* end confdefs.h.  */
4398#include <X11/Xlib.h>
4399_ACEOF
4400if ac_fn_c_try_cpp "$LINENO"; then :
4401  # We can compile using X headers with no special include directory.
4402ac_x_includes=
4403else
4404  for ac_dir in $ac_x_header_dirs; do
4405  if test -r "$ac_dir/X11/Xlib.h"; then
4406    ac_x_includes=$ac_dir
4407    break
4408  fi
4409done
4410fi
4411rm -f conftest.err conftest.i conftest.$ac_ext
4412fi # $ac_x_includes = no
4413
4414if test "$ac_x_libraries" = no; then
4415  # Check for the libraries.
4416  # See if we find them without any special options.
4417  # Don't add to $LIBS permanently.
4418  ac_save_LIBS=$LIBS
4419  LIBS="-lX11 $LIBS"
4420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421/* end confdefs.h.  */
4422#include <X11/Xlib.h>
4423int
4424main ()
4425{
4426XrmInitialize ()
4427  ;
4428  return 0;
4429}
4430_ACEOF
4431if ac_fn_c_try_link "$LINENO"; then :
4432  LIBS=$ac_save_LIBS
4433# We can link X programs with no special library path.
4434ac_x_libraries=
4435else
4436  LIBS=$ac_save_LIBS
4437for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4438do
4439  # Don't even attempt the hair of trying to link an X program!
4440  for ac_extension in a so sl dylib la dll; do
4441    if test -r "$ac_dir/libX11.$ac_extension"; then
4442      ac_x_libraries=$ac_dir
4443      break 2
4444    fi
4445  done
4446done
4447fi
4448rm -f core conftest.err conftest.$ac_objext \
4449    conftest$ac_exeext conftest.$ac_ext
4450fi # $ac_x_libraries = no
4451
4452case $ac_x_includes,$ac_x_libraries in #(
4453  no,* | *,no | *\'*)
4454    # Didn't find X, or a directory has "'" in its name.
4455    ac_cv_have_x="have_x=no";; #(
4456  *)
4457    # Record where we found X for the cache.
4458    ac_cv_have_x="have_x=yes\
4459	ac_x_includes='$ac_x_includes'\
4460	ac_x_libraries='$ac_x_libraries'"
4461esac
4462fi
4463;; #(
4464    *) have_x=yes;;
4465  esac
4466  eval "$ac_cv_have_x"
4467fi # $with_x != no
4468
4469if test "$have_x" != yes; then
4470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4471$as_echo "$have_x" >&6; }
4472  no_x=yes
4473else
4474  # If each of the values was on the command line, it overrides each guess.
4475  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4476  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4477  # Update the cache value to reflect the command line values.
4478  ac_cv_have_x="have_x=yes\
4479	ac_x_includes='$x_includes'\
4480	ac_x_libraries='$x_libraries'"
4481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4482$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4483fi
4484
4485if test "$no_x" = yes; then
4486  # Not all programs may use this symbol, but it does not hurt to define it.
4487
4488$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4489
4490  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4491else
4492  if test -n "$x_includes"; then
4493    X_CFLAGS="$X_CFLAGS -I$x_includes"
4494  fi
4495
4496  # It would also be nice to do this for all -L options, not just this one.
4497  if test -n "$x_libraries"; then
4498    X_LIBS="$X_LIBS -L$x_libraries"
4499    # For Solaris; some versions of Sun CC require a space after -R and
4500    # others require no space.  Words are not sufficient . . . .
4501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4502$as_echo_n "checking whether -R must be followed by a space... " >&6; }
4503    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4504    ac_xsave_c_werror_flag=$ac_c_werror_flag
4505    ac_c_werror_flag=yes
4506    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h.  */
4508
4509int
4510main ()
4511{
4512
4513  ;
4514  return 0;
4515}
4516_ACEOF
4517if ac_fn_c_try_link "$LINENO"; then :
4518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519$as_echo "no" >&6; }
4520       X_LIBS="$X_LIBS -R$x_libraries"
4521else
4522  LIBS="$ac_xsave_LIBS -R $x_libraries"
4523       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524/* end confdefs.h.  */
4525
4526int
4527main ()
4528{
4529
4530  ;
4531  return 0;
4532}
4533_ACEOF
4534if ac_fn_c_try_link "$LINENO"; then :
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4536$as_echo "yes" >&6; }
4537	  X_LIBS="$X_LIBS -R $x_libraries"
4538else
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4540$as_echo "neither works" >&6; }
4541fi
4542rm -f core conftest.err conftest.$ac_objext \
4543    conftest$ac_exeext conftest.$ac_ext
4544fi
4545rm -f core conftest.err conftest.$ac_objext \
4546    conftest$ac_exeext conftest.$ac_ext
4547    ac_c_werror_flag=$ac_xsave_c_werror_flag
4548    LIBS=$ac_xsave_LIBS
4549  fi
4550
4551  # Check for system-dependent libraries X programs must link with.
4552  # Do this before checking for the system-independent R6 libraries
4553  # (-lICE), since we may need -lsocket or whatever for X linking.
4554
4555  if test "$ISC" = yes; then
4556    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4557  else
4558    # Martyn Johnson says this is needed for Ultrix, if the X
4559    # libraries were built with DECnet support.  And Karl Berry says
4560    # the Alpha needs dnet_stub (dnet does not exist).
4561    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4562    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563/* end confdefs.h.  */
4564
4565/* Override any GCC internal prototype to avoid an error.
4566   Use char because int might match the return type of a GCC
4567   builtin and then its argument prototype would still apply.  */
4568#ifdef __cplusplus
4569extern "C"
4570#endif
4571char XOpenDisplay ();
4572int
4573main ()
4574{
4575return XOpenDisplay ();
4576  ;
4577  return 0;
4578}
4579_ACEOF
4580if ac_fn_c_try_link "$LINENO"; then :
4581
4582else
4583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4584$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4585if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4586  $as_echo_n "(cached) " >&6
4587else
4588  ac_check_lib_save_LIBS=$LIBS
4589LIBS="-ldnet  $LIBS"
4590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h.  */
4592
4593/* Override any GCC internal prototype to avoid an error.
4594   Use char because int might match the return type of a GCC
4595   builtin and then its argument prototype would still apply.  */
4596#ifdef __cplusplus
4597extern "C"
4598#endif
4599char dnet_ntoa ();
4600int
4601main ()
4602{
4603return dnet_ntoa ();
4604  ;
4605  return 0;
4606}
4607_ACEOF
4608if ac_fn_c_try_link "$LINENO"; then :
4609  ac_cv_lib_dnet_dnet_ntoa=yes
4610else
4611  ac_cv_lib_dnet_dnet_ntoa=no
4612fi
4613rm -f core conftest.err conftest.$ac_objext \
4614    conftest$ac_exeext conftest.$ac_ext
4615LIBS=$ac_check_lib_save_LIBS
4616fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4618$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4619if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4620  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4621fi
4622
4623    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4624      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4625$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4626if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4627  $as_echo_n "(cached) " >&6
4628else
4629  ac_check_lib_save_LIBS=$LIBS
4630LIBS="-ldnet_stub  $LIBS"
4631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h.  */
4633
4634/* Override any GCC internal prototype to avoid an error.
4635   Use char because int might match the return type of a GCC
4636   builtin and then its argument prototype would still apply.  */
4637#ifdef __cplusplus
4638extern "C"
4639#endif
4640char dnet_ntoa ();
4641int
4642main ()
4643{
4644return dnet_ntoa ();
4645  ;
4646  return 0;
4647}
4648_ACEOF
4649if ac_fn_c_try_link "$LINENO"; then :
4650  ac_cv_lib_dnet_stub_dnet_ntoa=yes
4651else
4652  ac_cv_lib_dnet_stub_dnet_ntoa=no
4653fi
4654rm -f core conftest.err conftest.$ac_objext \
4655    conftest$ac_exeext conftest.$ac_ext
4656LIBS=$ac_check_lib_save_LIBS
4657fi
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4659$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4660if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
4661  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4662fi
4663
4664    fi
4665fi
4666rm -f core conftest.err conftest.$ac_objext \
4667    conftest$ac_exeext conftest.$ac_ext
4668    LIBS="$ac_xsave_LIBS"
4669
4670    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4671    # to get the SysV transport functions.
4672    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4673    # needs -lnsl.
4674    # The nsl library prevents programs from opening the X display
4675    # on Irix 5.2, according to T.E. Dickey.
4676    # The functions gethostbyname, getservbyname, and inet_addr are
4677    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4678    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4679if test "x$ac_cv_func_gethostbyname" = xyes; then :
4680
4681fi
4682
4683    if test $ac_cv_func_gethostbyname = no; then
4684      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4685$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4686if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  ac_check_lib_save_LIBS=$LIBS
4690LIBS="-lnsl  $LIBS"
4691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h.  */
4693
4694/* Override any GCC internal prototype to avoid an error.
4695   Use char because int might match the return type of a GCC
4696   builtin and then its argument prototype would still apply.  */
4697#ifdef __cplusplus
4698extern "C"
4699#endif
4700char gethostbyname ();
4701int
4702main ()
4703{
4704return gethostbyname ();
4705  ;
4706  return 0;
4707}
4708_ACEOF
4709if ac_fn_c_try_link "$LINENO"; then :
4710  ac_cv_lib_nsl_gethostbyname=yes
4711else
4712  ac_cv_lib_nsl_gethostbyname=no
4713fi
4714rm -f core conftest.err conftest.$ac_objext \
4715    conftest$ac_exeext conftest.$ac_ext
4716LIBS=$ac_check_lib_save_LIBS
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4719$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4720if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4721  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4722fi
4723
4724      if test $ac_cv_lib_nsl_gethostbyname = no; then
4725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4726$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4727if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
4728  $as_echo_n "(cached) " >&6
4729else
4730  ac_check_lib_save_LIBS=$LIBS
4731LIBS="-lbsd  $LIBS"
4732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h.  */
4734
4735/* Override any GCC internal prototype to avoid an error.
4736   Use char because int might match the return type of a GCC
4737   builtin and then its argument prototype would still apply.  */
4738#ifdef __cplusplus
4739extern "C"
4740#endif
4741char gethostbyname ();
4742int
4743main ()
4744{
4745return gethostbyname ();
4746  ;
4747  return 0;
4748}
4749_ACEOF
4750if ac_fn_c_try_link "$LINENO"; then :
4751  ac_cv_lib_bsd_gethostbyname=yes
4752else
4753  ac_cv_lib_bsd_gethostbyname=no
4754fi
4755rm -f core conftest.err conftest.$ac_objext \
4756    conftest$ac_exeext conftest.$ac_ext
4757LIBS=$ac_check_lib_save_LIBS
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4760$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4761if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
4762  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4763fi
4764
4765      fi
4766    fi
4767
4768    # lieder@skyler.mavd.honeywell.com says without -lsocket,
4769    # socket/setsockopt and other routines are undefined under SCO ODT
4770    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4771    # on later versions), says Simon Leinen: it contains gethostby*
4772    # variants that don't use the name server (or something).  -lsocket
4773    # must be given before -lnsl if both are needed.  We assume that
4774    # if connect needs -lnsl, so does gethostbyname.
4775    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4776if test "x$ac_cv_func_connect" = xyes; then :
4777
4778fi
4779
4780    if test $ac_cv_func_connect = no; then
4781      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4782$as_echo_n "checking for connect in -lsocket... " >&6; }
4783if ${ac_cv_lib_socket_connect+:} false; then :
4784  $as_echo_n "(cached) " >&6
4785else
4786  ac_check_lib_save_LIBS=$LIBS
4787LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h.  */
4790
4791/* Override any GCC internal prototype to avoid an error.
4792   Use char because int might match the return type of a GCC
4793   builtin and then its argument prototype would still apply.  */
4794#ifdef __cplusplus
4795extern "C"
4796#endif
4797char connect ();
4798int
4799main ()
4800{
4801return connect ();
4802  ;
4803  return 0;
4804}
4805_ACEOF
4806if ac_fn_c_try_link "$LINENO"; then :
4807  ac_cv_lib_socket_connect=yes
4808else
4809  ac_cv_lib_socket_connect=no
4810fi
4811rm -f core conftest.err conftest.$ac_objext \
4812    conftest$ac_exeext conftest.$ac_ext
4813LIBS=$ac_check_lib_save_LIBS
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4816$as_echo "$ac_cv_lib_socket_connect" >&6; }
4817if test "x$ac_cv_lib_socket_connect" = xyes; then :
4818  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4819fi
4820
4821    fi
4822
4823    # Guillermo Gomez says -lposix is necessary on A/UX.
4824    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
4825if test "x$ac_cv_func_remove" = xyes; then :
4826
4827fi
4828
4829    if test $ac_cv_func_remove = no; then
4830      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4831$as_echo_n "checking for remove in -lposix... " >&6; }
4832if ${ac_cv_lib_posix_remove+:} false; then :
4833  $as_echo_n "(cached) " >&6
4834else
4835  ac_check_lib_save_LIBS=$LIBS
4836LIBS="-lposix  $LIBS"
4837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838/* end confdefs.h.  */
4839
4840/* Override any GCC internal prototype to avoid an error.
4841   Use char because int might match the return type of a GCC
4842   builtin and then its argument prototype would still apply.  */
4843#ifdef __cplusplus
4844extern "C"
4845#endif
4846char remove ();
4847int
4848main ()
4849{
4850return remove ();
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855if ac_fn_c_try_link "$LINENO"; then :
4856  ac_cv_lib_posix_remove=yes
4857else
4858  ac_cv_lib_posix_remove=no
4859fi
4860rm -f core conftest.err conftest.$ac_objext \
4861    conftest$ac_exeext conftest.$ac_ext
4862LIBS=$ac_check_lib_save_LIBS
4863fi
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4865$as_echo "$ac_cv_lib_posix_remove" >&6; }
4866if test "x$ac_cv_lib_posix_remove" = xyes; then :
4867  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4868fi
4869
4870    fi
4871
4872    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4873    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4874if test "x$ac_cv_func_shmat" = xyes; then :
4875
4876fi
4877
4878    if test $ac_cv_func_shmat = no; then
4879      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4880$as_echo_n "checking for shmat in -lipc... " >&6; }
4881if ${ac_cv_lib_ipc_shmat+:} false; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884  ac_check_lib_save_LIBS=$LIBS
4885LIBS="-lipc  $LIBS"
4886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h.  */
4888
4889/* Override any GCC internal prototype to avoid an error.
4890   Use char because int might match the return type of a GCC
4891   builtin and then its argument prototype would still apply.  */
4892#ifdef __cplusplus
4893extern "C"
4894#endif
4895char shmat ();
4896int
4897main ()
4898{
4899return shmat ();
4900  ;
4901  return 0;
4902}
4903_ACEOF
4904if ac_fn_c_try_link "$LINENO"; then :
4905  ac_cv_lib_ipc_shmat=yes
4906else
4907  ac_cv_lib_ipc_shmat=no
4908fi
4909rm -f core conftest.err conftest.$ac_objext \
4910    conftest$ac_exeext conftest.$ac_ext
4911LIBS=$ac_check_lib_save_LIBS
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4914$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4915if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
4916  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4917fi
4918
4919    fi
4920  fi
4921
4922  # Check for libraries that X11R6 Xt/Xaw programs need.
4923  ac_save_LDFLAGS=$LDFLAGS
4924  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4925  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4926  # check for ICE first), but we must link in the order -lSM -lICE or
4927  # we get undefined symbols.  So assume we have SM if we have ICE.
4928  # These have to be linked with before -lX11, unlike the other
4929  # libraries we check for below, so use a different variable.
4930  # John Interrante, Karl Berry
4931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4932$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4933if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  ac_check_lib_save_LIBS=$LIBS
4937LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940
4941/* Override any GCC internal prototype to avoid an error.
4942   Use char because int might match the return type of a GCC
4943   builtin and then its argument prototype would still apply.  */
4944#ifdef __cplusplus
4945extern "C"
4946#endif
4947char IceConnectionNumber ();
4948int
4949main ()
4950{
4951return IceConnectionNumber ();
4952  ;
4953  return 0;
4954}
4955_ACEOF
4956if ac_fn_c_try_link "$LINENO"; then :
4957  ac_cv_lib_ICE_IceConnectionNumber=yes
4958else
4959  ac_cv_lib_ICE_IceConnectionNumber=no
4960fi
4961rm -f core conftest.err conftest.$ac_objext \
4962    conftest$ac_exeext conftest.$ac_ext
4963LIBS=$ac_check_lib_save_LIBS
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4966$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4967if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
4968  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4969fi
4970
4971  LDFLAGS=$ac_save_LDFLAGS
4972
4973fi
4974
4975
4976#Check these header since they cause trouble
4977for ac_header in \
4978stdlib.h \
4979unistd.h \
4980memory.h \
4981termios.h \
4982malloc.h \
4983locale.h \
4984xlocale.h \
4985langinfo.h \
4986fcntl.h \
4987sys/fcntl.h \
4988sys/types.h \
4989sys/wait.h \
4990sys/utsname.h \
4991sys/times.h \
4992sys/statvfs.h \
4993sys/time.h \
4994utime.h \
4995floatingpoint.h \
4996ieeefp.h \
4997nan.h \
4998fenv.h \
4999sys/mman.h \
5000sys/socket.h \
5001netinet/in.h \
5002arpa/inet.h \
5003sys/un.h \
5004sys/resource.h \
5005
5006do :
5007  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5008ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5009if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5010  cat >>confdefs.h <<_ACEOF
5011#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5012_ACEOF
5013
5014fi
5015
5016done
5017
5018
5019ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5020if test "x$ac_cv_type_mode_t" = xyes; then :
5021
5022else
5023
5024cat >>confdefs.h <<_ACEOF
5025#define mode_t int
5026_ACEOF
5027
5028fi
5029
5030ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5031if test "x$ac_cv_type_pid_t" = xyes; then :
5032
5033else
5034
5035cat >>confdefs.h <<_ACEOF
5036#define pid_t int
5037_ACEOF
5038
5039fi
5040
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5042$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5043if ${ac_cv_type_uid_t+:} false; then :
5044  $as_echo_n "(cached) " >&6
5045else
5046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048#include <sys/types.h>
5049
5050_ACEOF
5051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052  $EGREP "uid_t" >/dev/null 2>&1; then :
5053  ac_cv_type_uid_t=yes
5054else
5055  ac_cv_type_uid_t=no
5056fi
5057rm -f conftest*
5058
5059fi
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5061$as_echo "$ac_cv_type_uid_t" >&6; }
5062if test $ac_cv_type_uid_t = no; then
5063
5064$as_echo "#define uid_t int" >>confdefs.h
5065
5066
5067$as_echo "#define gid_t int" >>confdefs.h
5068
5069fi
5070
5071
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
5073$as_echo_n "checking for socklen_t... " >&6; }
5074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h.  */
5076#include <sys/socket.h>
5077
5078_ACEOF
5079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5080  $EGREP "socklen_t" >/dev/null 2>&1; then :
5081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5082$as_echo "yes" >&6; }
5083else
5084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085$as_echo "no" >&6; }
5086
5087$as_echo "#define socklen_t int" >>confdefs.h
5088
5089fi
5090rm -f conftest*
5091
5092
5093ac_header_dirent=no
5094for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5095  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5097$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5098if eval \${$as_ac_Header+:} false; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h.  */
5103#include <sys/types.h>
5104#include <$ac_hdr>
5105
5106int
5107main ()
5108{
5109if ((DIR *) 0)
5110return 0;
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115if ac_fn_c_try_compile "$LINENO"; then :
5116  eval "$as_ac_Header=yes"
5117else
5118  eval "$as_ac_Header=no"
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121fi
5122eval ac_res=\$$as_ac_Header
5123	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5124$as_echo "$ac_res" >&6; }
5125if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5126  cat >>confdefs.h <<_ACEOF
5127#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5128_ACEOF
5129
5130ac_header_dirent=$ac_hdr; break
5131fi
5132
5133done
5134# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5135if test $ac_header_dirent = dirent.h; then
5136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5137$as_echo_n "checking for library containing opendir... " >&6; }
5138if ${ac_cv_search_opendir+:} false; then :
5139  $as_echo_n "(cached) " >&6
5140else
5141  ac_func_search_save_LIBS=$LIBS
5142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143/* end confdefs.h.  */
5144
5145/* Override any GCC internal prototype to avoid an error.
5146   Use char because int might match the return type of a GCC
5147   builtin and then its argument prototype would still apply.  */
5148#ifdef __cplusplus
5149extern "C"
5150#endif
5151char opendir ();
5152int
5153main ()
5154{
5155return opendir ();
5156  ;
5157  return 0;
5158}
5159_ACEOF
5160for ac_lib in '' dir; do
5161  if test -z "$ac_lib"; then
5162    ac_res="none required"
5163  else
5164    ac_res=-l$ac_lib
5165    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5166  fi
5167  if ac_fn_c_try_link "$LINENO"; then :
5168  ac_cv_search_opendir=$ac_res
5169fi
5170rm -f core conftest.err conftest.$ac_objext \
5171    conftest$ac_exeext
5172  if ${ac_cv_search_opendir+:} false; then :
5173  break
5174fi
5175done
5176if ${ac_cv_search_opendir+:} false; then :
5177
5178else
5179  ac_cv_search_opendir=no
5180fi
5181rm conftest.$ac_ext
5182LIBS=$ac_func_search_save_LIBS
5183fi
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5185$as_echo "$ac_cv_search_opendir" >&6; }
5186ac_res=$ac_cv_search_opendir
5187if test "$ac_res" != no; then :
5188  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5189
5190fi
5191
5192else
5193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5194$as_echo_n "checking for library containing opendir... " >&6; }
5195if ${ac_cv_search_opendir+:} false; then :
5196  $as_echo_n "(cached) " >&6
5197else
5198  ac_func_search_save_LIBS=$LIBS
5199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h.  */
5201
5202/* Override any GCC internal prototype to avoid an error.
5203   Use char because int might match the return type of a GCC
5204   builtin and then its argument prototype would still apply.  */
5205#ifdef __cplusplus
5206extern "C"
5207#endif
5208char opendir ();
5209int
5210main ()
5211{
5212return opendir ();
5213  ;
5214  return 0;
5215}
5216_ACEOF
5217for ac_lib in '' x; do
5218  if test -z "$ac_lib"; then
5219    ac_res="none required"
5220  else
5221    ac_res=-l$ac_lib
5222    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5223  fi
5224  if ac_fn_c_try_link "$LINENO"; then :
5225  ac_cv_search_opendir=$ac_res
5226fi
5227rm -f core conftest.err conftest.$ac_objext \
5228    conftest$ac_exeext
5229  if ${ac_cv_search_opendir+:} false; then :
5230  break
5231fi
5232done
5233if ${ac_cv_search_opendir+:} false; then :
5234
5235else
5236  ac_cv_search_opendir=no
5237fi
5238rm conftest.$ac_ext
5239LIBS=$ac_func_search_save_LIBS
5240fi
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5242$as_echo "$ac_cv_search_opendir" >&6; }
5243ac_res=$ac_cv_search_opendir
5244if test "$ac_res" != no; then :
5245  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5246
5247fi
5248
5249fi
5250
5251
5252for ac_func in \
5253memset \
5254memcpy \
5255putenv \
5256getcwd \
5257setlocale \
5258tcgetattr \
5259tcsetattr \
5260cfgetospeed \
5261sigaction \
5262sigemptyset \
5263sigprocmask \
5264sigaddset \
5265alarm \
5266pause \
5267vfscanf \
5268lstat readlink symlink link \
5269kill killpg \
5270snprintf vsnprintf \
5271getppid getegid geteuid getuid getgid setgid setuid \
5272setpgid getpgid setpgrp getpgrp setsid getsid \
5273mmap \
5274chown lchown popen mkfifo \
5275atexit on_exit umask uname \
5276times gmtime mktime gettimeofday \
5277getitimer setitimer \
5278gmtime_r ctime_r localtime_r \
5279strtod atoll strtoll \
5280issetugid \
5281isnan \
5282finite \
5283isinf \
5284round \
5285siglongjmp \
5286fork waitpid \
5287socket socketpair \
5288confstr pathconf \
5289getpriority setpriority \
5290getrusage \
5291setvbuf \
5292utime utimes \
5293ttyname ttyname_r \
5294newlocale strtod_l localeconv \
5295statvfs \
5296
5297do :
5298  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5299ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5300if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5301  cat >>confdefs.h <<_ACEOF
5302#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5303_ACEOF
5304
5305fi
5306done
5307
5308
5309if test x"$ac_cv_func_socketpair" != x"yes"; then
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
5311$as_echo_n "checking for socketpair in -lsocket... " >&6; }
5312if ${ac_cv_lib_socket_socketpair+:} false; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  ac_check_lib_save_LIBS=$LIBS
5316LIBS="-lsocket  $LIBS"
5317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h.  */
5319
5320/* Override any GCC internal prototype to avoid an error.
5321   Use char because int might match the return type of a GCC
5322   builtin and then its argument prototype would still apply.  */
5323#ifdef __cplusplus
5324extern "C"
5325#endif
5326char socketpair ();
5327int
5328main ()
5329{
5330return socketpair ();
5331  ;
5332  return 0;
5333}
5334_ACEOF
5335if ac_fn_c_try_link "$LINENO"; then :
5336  ac_cv_lib_socket_socketpair=yes
5337else
5338  ac_cv_lib_socket_socketpair=no
5339fi
5340rm -f core conftest.err conftest.$ac_objext \
5341    conftest$ac_exeext conftest.$ac_ext
5342LIBS=$ac_check_lib_save_LIBS
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
5345$as_echo "$ac_cv_lib_socket_socketpair" >&6; }
5346if test "x$ac_cv_lib_socket_socketpair" = xyes; then :
5347  $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
5348
5349fi
5350
5351fi
5352if test x"$ac_cv_func_socket" != x"yes"; then
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5354$as_echo_n "checking for socket in -lsocket... " >&6; }
5355if ${ac_cv_lib_socket_socket+:} false; then :
5356  $as_echo_n "(cached) " >&6
5357else
5358  ac_check_lib_save_LIBS=$LIBS
5359LIBS="-lsocket  $LIBS"
5360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h.  */
5362
5363/* Override any GCC internal prototype to avoid an error.
5364   Use char because int might match the return type of a GCC
5365   builtin and then its argument prototype would still apply.  */
5366#ifdef __cplusplus
5367extern "C"
5368#endif
5369char socket ();
5370int
5371main ()
5372{
5373return socket ();
5374  ;
5375  return 0;
5376}
5377_ACEOF
5378if ac_fn_c_try_link "$LINENO"; then :
5379  ac_cv_lib_socket_socket=yes
5380else
5381  ac_cv_lib_socket_socket=no
5382fi
5383rm -f core conftest.err conftest.$ac_objext \
5384    conftest$ac_exeext conftest.$ac_ext
5385LIBS=$ac_check_lib_save_LIBS
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5388$as_echo "$ac_cv_lib_socket_socket" >&6; }
5389if test "x$ac_cv_lib_socket_socket" = xyes; then :
5390  $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
5391
5392fi
5393
5394fi
5395
5396
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5398$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5399if ${jd_cv_nl_langinfo_codeset+:} false; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h.  */
5404#include <langinfo.h>
5405int
5406main ()
5407{
5408char* cs = nl_langinfo(CODESET);
5409  ;
5410  return 0;
5411}
5412_ACEOF
5413if ac_fn_c_try_link "$LINENO"; then :
5414  jd_cv_nl_langinfo_codeset=yes
5415else
5416  jd_cv_nl_langinfo_codeset=no
5417fi
5418rm -f core conftest.err conftest.$ac_objext \
5419    conftest$ac_exeext conftest.$ac_ext
5420
5421fi
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jd_cv_nl_langinfo_codeset" >&5
5423$as_echo "$jd_cv_nl_langinfo_codeset" >&6; }
5424if test $jd_cv_nl_langinfo_codeset = yes
5425then
5426
5427$as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
5428
5429fi
5430
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for environ variable" >&5
5432$as_echo_n "checking for environ variable... " >&6; }
5433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h.  */
5435
5436#include <stdlib.h>
5437extern char **environ;
5438
5439int
5440main ()
5441{
5442exit (environ == NULL);
5443  ;
5444  return 0;
5445}
5446_ACEOF
5447if ac_fn_c_try_link "$LINENO"; then :
5448  have_environ=yes
5449else
5450  have_environ=no
5451fi
5452rm -f core conftest.err conftest.$ac_objext \
5453    conftest$ac_exeext conftest.$ac_ext
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_environ" >&5
5455$as_echo "$have_environ" >&6; }
5456if test $have_environ = yes
5457then
5458
5459$as_echo "#define HAVE_ENVIRON 1" >>confdefs.h
5460
5461fi
5462
5463
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh in -lm" >&5
5465$as_echo_n "checking for acosh in -lm... " >&6; }
5466if ${ac_cv_lib_m_acosh+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  ac_check_lib_save_LIBS=$LIBS
5470LIBS="-lm  $LIBS"
5471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472/* end confdefs.h.  */
5473
5474/* Override any GCC internal prototype to avoid an error.
5475   Use char because int might match the return type of a GCC
5476   builtin and then its argument prototype would still apply.  */
5477#ifdef __cplusplus
5478extern "C"
5479#endif
5480char acosh ();
5481int
5482main ()
5483{
5484return acosh ();
5485  ;
5486  return 0;
5487}
5488_ACEOF
5489if ac_fn_c_try_link "$LINENO"; then :
5490  ac_cv_lib_m_acosh=yes
5491else
5492  ac_cv_lib_m_acosh=no
5493fi
5494rm -f core conftest.err conftest.$ac_objext \
5495    conftest$ac_exeext conftest.$ac_ext
5496LIBS=$ac_check_lib_save_LIBS
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosh" >&5
5499$as_echo "$ac_cv_lib_m_acosh" >&6; }
5500if test "x$ac_cv_lib_m_acosh" = xyes; then :
5501
5502$as_echo "#define HAVE_ACOSH 1" >>confdefs.h
5503
5504fi
5505
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh in -lm" >&5
5507$as_echo_n "checking for asinh in -lm... " >&6; }
5508if ${ac_cv_lib_m_asinh+:} false; then :
5509  $as_echo_n "(cached) " >&6
5510else
5511  ac_check_lib_save_LIBS=$LIBS
5512LIBS="-lm  $LIBS"
5513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h.  */
5515
5516/* Override any GCC internal prototype to avoid an error.
5517   Use char because int might match the return type of a GCC
5518   builtin and then its argument prototype would still apply.  */
5519#ifdef __cplusplus
5520extern "C"
5521#endif
5522char asinh ();
5523int
5524main ()
5525{
5526return asinh ();
5527  ;
5528  return 0;
5529}
5530_ACEOF
5531if ac_fn_c_try_link "$LINENO"; then :
5532  ac_cv_lib_m_asinh=yes
5533else
5534  ac_cv_lib_m_asinh=no
5535fi
5536rm -f core conftest.err conftest.$ac_objext \
5537    conftest$ac_exeext conftest.$ac_ext
5538LIBS=$ac_check_lib_save_LIBS
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinh" >&5
5541$as_echo "$ac_cv_lib_m_asinh" >&6; }
5542if test "x$ac_cv_lib_m_asinh" = xyes; then :
5543
5544$as_echo "#define HAVE_ASINH 1" >>confdefs.h
5545
5546fi
5547
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh in -lm" >&5
5549$as_echo_n "checking for atanh in -lm... " >&6; }
5550if ${ac_cv_lib_m_atanh+:} false; then :
5551  $as_echo_n "(cached) " >&6
5552else
5553  ac_check_lib_save_LIBS=$LIBS
5554LIBS="-lm  $LIBS"
5555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h.  */
5557
5558/* Override any GCC internal prototype to avoid an error.
5559   Use char because int might match the return type of a GCC
5560   builtin and then its argument prototype would still apply.  */
5561#ifdef __cplusplus
5562extern "C"
5563#endif
5564char atanh ();
5565int
5566main ()
5567{
5568return atanh ();
5569  ;
5570  return 0;
5571}
5572_ACEOF
5573if ac_fn_c_try_link "$LINENO"; then :
5574  ac_cv_lib_m_atanh=yes
5575else
5576  ac_cv_lib_m_atanh=no
5577fi
5578rm -f core conftest.err conftest.$ac_objext \
5579    conftest$ac_exeext conftest.$ac_ext
5580LIBS=$ac_check_lib_save_LIBS
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanh" >&5
5583$as_echo "$ac_cv_lib_m_atanh" >&6; }
5584if test "x$ac_cv_lib_m_atanh" = xyes; then :
5585
5586$as_echo "#define HAVE_ATANH 1" >>confdefs.h
5587
5588fi
5589
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
5591$as_echo_n "checking for hypot in -lm... " >&6; }
5592if ${ac_cv_lib_m_hypot+:} false; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595  ac_check_lib_save_LIBS=$LIBS
5596LIBS="-lm  $LIBS"
5597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h.  */
5599
5600/* Override any GCC internal prototype to avoid an error.
5601   Use char because int might match the return type of a GCC
5602   builtin and then its argument prototype would still apply.  */
5603#ifdef __cplusplus
5604extern "C"
5605#endif
5606char hypot ();
5607int
5608main ()
5609{
5610return hypot ();
5611  ;
5612  return 0;
5613}
5614_ACEOF
5615if ac_fn_c_try_link "$LINENO"; then :
5616  ac_cv_lib_m_hypot=yes
5617else
5618  ac_cv_lib_m_hypot=no
5619fi
5620rm -f core conftest.err conftest.$ac_objext \
5621    conftest$ac_exeext conftest.$ac_ext
5622LIBS=$ac_check_lib_save_LIBS
5623fi
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
5625$as_echo "$ac_cv_lib_m_hypot" >&6; }
5626if test "x$ac_cv_lib_m_hypot" = xyes; then :
5627
5628$as_echo "#define HAVE_HYPOT 1" >>confdefs.h
5629
5630fi
5631
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
5633$as_echo_n "checking for atan2 in -lm... " >&6; }
5634if ${ac_cv_lib_m_atan2+:} false; then :
5635  $as_echo_n "(cached) " >&6
5636else
5637  ac_check_lib_save_LIBS=$LIBS
5638LIBS="-lm  $LIBS"
5639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h.  */
5641
5642/* Override any GCC internal prototype to avoid an error.
5643   Use char because int might match the return type of a GCC
5644   builtin and then its argument prototype would still apply.  */
5645#ifdef __cplusplus
5646extern "C"
5647#endif
5648char atan2 ();
5649int
5650main ()
5651{
5652return atan2 ();
5653  ;
5654  return 0;
5655}
5656_ACEOF
5657if ac_fn_c_try_link "$LINENO"; then :
5658  ac_cv_lib_m_atan2=yes
5659else
5660  ac_cv_lib_m_atan2=no
5661fi
5662rm -f core conftest.err conftest.$ac_objext \
5663    conftest$ac_exeext conftest.$ac_ext
5664LIBS=$ac_check_lib_save_LIBS
5665fi
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5
5667$as_echo "$ac_cv_lib_m_atan2" >&6; }
5668if test "x$ac_cv_lib_m_atan2" = xyes; then :
5669
5670$as_echo "#define HAVE_ATAN2 1" >>confdefs.h
5671
5672fi
5673
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp in -lm" >&5
5675$as_echo_n "checking for frexp in -lm... " >&6; }
5676if ${ac_cv_lib_m_frexp+:} false; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  ac_check_lib_save_LIBS=$LIBS
5680LIBS="-lm  $LIBS"
5681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h.  */
5683
5684/* Override any GCC internal prototype to avoid an error.
5685   Use char because int might match the return type of a GCC
5686   builtin and then its argument prototype would still apply.  */
5687#ifdef __cplusplus
5688extern "C"
5689#endif
5690char frexp ();
5691int
5692main ()
5693{
5694return frexp ();
5695  ;
5696  return 0;
5697}
5698_ACEOF
5699if ac_fn_c_try_link "$LINENO"; then :
5700  ac_cv_lib_m_frexp=yes
5701else
5702  ac_cv_lib_m_frexp=no
5703fi
5704rm -f core conftest.err conftest.$ac_objext \
5705    conftest$ac_exeext conftest.$ac_ext
5706LIBS=$ac_check_lib_save_LIBS
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexp" >&5
5709$as_echo "$ac_cv_lib_m_frexp" >&6; }
5710if test "x$ac_cv_lib_m_frexp" = xyes; then :
5711
5712$as_echo "#define HAVE_FREXP 1" >>confdefs.h
5713
5714fi
5715
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf in -lm" >&5
5717$as_echo_n "checking for frexpf in -lm... " >&6; }
5718if ${ac_cv_lib_m_frexpf+:} false; then :
5719  $as_echo_n "(cached) " >&6
5720else
5721  ac_check_lib_save_LIBS=$LIBS
5722LIBS="-lm  $LIBS"
5723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725
5726/* Override any GCC internal prototype to avoid an error.
5727   Use char because int might match the return type of a GCC
5728   builtin and then its argument prototype would still apply.  */
5729#ifdef __cplusplus
5730extern "C"
5731#endif
5732char frexpf ();
5733int
5734main ()
5735{
5736return frexpf ();
5737  ;
5738  return 0;
5739}
5740_ACEOF
5741if ac_fn_c_try_link "$LINENO"; then :
5742  ac_cv_lib_m_frexpf=yes
5743else
5744  ac_cv_lib_m_frexpf=no
5745fi
5746rm -f core conftest.err conftest.$ac_objext \
5747    conftest$ac_exeext conftest.$ac_ext
5748LIBS=$ac_check_lib_save_LIBS
5749fi
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpf" >&5
5751$as_echo "$ac_cv_lib_m_frexpf" >&6; }
5752if test "x$ac_cv_lib_m_frexpf" = xyes; then :
5753
5754$as_echo "#define HAVE_FREXPF 1" >>confdefs.h
5755
5756fi
5757
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp in -lm" >&5
5759$as_echo_n "checking for ldexp in -lm... " >&6; }
5760if ${ac_cv_lib_m_ldexp+:} false; then :
5761  $as_echo_n "(cached) " >&6
5762else
5763  ac_check_lib_save_LIBS=$LIBS
5764LIBS="-lm  $LIBS"
5765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h.  */
5767
5768/* Override any GCC internal prototype to avoid an error.
5769   Use char because int might match the return type of a GCC
5770   builtin and then its argument prototype would still apply.  */
5771#ifdef __cplusplus
5772extern "C"
5773#endif
5774char ldexp ();
5775int
5776main ()
5777{
5778return ldexp ();
5779  ;
5780  return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_link "$LINENO"; then :
5784  ac_cv_lib_m_ldexp=yes
5785else
5786  ac_cv_lib_m_ldexp=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext \
5789    conftest$ac_exeext conftest.$ac_ext
5790LIBS=$ac_check_lib_save_LIBS
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexp" >&5
5793$as_echo "$ac_cv_lib_m_ldexp" >&6; }
5794if test "x$ac_cv_lib_m_ldexp" = xyes; then :
5795
5796$as_echo "#define HAVE_LDEXP 1" >>confdefs.h
5797
5798fi
5799
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf in -lm" >&5
5801$as_echo_n "checking for ldexpf in -lm... " >&6; }
5802if ${ac_cv_lib_m_ldexpf+:} false; then :
5803  $as_echo_n "(cached) " >&6
5804else
5805  ac_check_lib_save_LIBS=$LIBS
5806LIBS="-lm  $LIBS"
5807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808/* end confdefs.h.  */
5809
5810/* Override any GCC internal prototype to avoid an error.
5811   Use char because int might match the return type of a GCC
5812   builtin and then its argument prototype would still apply.  */
5813#ifdef __cplusplus
5814extern "C"
5815#endif
5816char ldexpf ();
5817int
5818main ()
5819{
5820return ldexpf ();
5821  ;
5822  return 0;
5823}
5824_ACEOF
5825if ac_fn_c_try_link "$LINENO"; then :
5826  ac_cv_lib_m_ldexpf=yes
5827else
5828  ac_cv_lib_m_ldexpf=no
5829fi
5830rm -f core conftest.err conftest.$ac_objext \
5831    conftest$ac_exeext conftest.$ac_ext
5832LIBS=$ac_check_lib_save_LIBS
5833fi
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpf" >&5
5835$as_echo "$ac_cv_lib_m_ldexpf" >&6; }
5836if test "x$ac_cv_lib_m_ldexpf" = xyes; then :
5837
5838$as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
5839
5840fi
5841
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos in -lm" >&5
5843$as_echo_n "checking for sincos in -lm... " >&6; }
5844if ${ac_cv_lib_m_sincos+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  ac_check_lib_save_LIBS=$LIBS
5848LIBS="-lm  $LIBS"
5849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850/* end confdefs.h.  */
5851
5852/* Override any GCC internal prototype to avoid an error.
5853   Use char because int might match the return type of a GCC
5854   builtin and then its argument prototype would still apply.  */
5855#ifdef __cplusplus
5856extern "C"
5857#endif
5858char sincos ();
5859int
5860main ()
5861{
5862return sincos ();
5863  ;
5864  return 0;
5865}
5866_ACEOF
5867if ac_fn_c_try_link "$LINENO"; then :
5868  ac_cv_lib_m_sincos=yes
5869else
5870  ac_cv_lib_m_sincos=no
5871fi
5872rm -f core conftest.err conftest.$ac_objext \
5873    conftest$ac_exeext conftest.$ac_ext
5874LIBS=$ac_check_lib_save_LIBS
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sincos" >&5
5877$as_echo "$ac_cv_lib_m_sincos" >&6; }
5878if test "x$ac_cv_lib_m_sincos" = xyes; then :
5879
5880$as_echo "#define HAVE_SINCOS 1" >>confdefs.h
5881
5882fi
5883
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf in -lm" >&5
5885$as_echo_n "checking for sincosf in -lm... " >&6; }
5886if ${ac_cv_lib_m_sincosf+:} false; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  ac_check_lib_save_LIBS=$LIBS
5890LIBS="-lm  $LIBS"
5891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892/* end confdefs.h.  */
5893
5894/* Override any GCC internal prototype to avoid an error.
5895   Use char because int might match the return type of a GCC
5896   builtin and then its argument prototype would still apply.  */
5897#ifdef __cplusplus
5898extern "C"
5899#endif
5900char sincosf ();
5901int
5902main ()
5903{
5904return sincosf ();
5905  ;
5906  return 0;
5907}
5908_ACEOF
5909if ac_fn_c_try_link "$LINENO"; then :
5910  ac_cv_lib_m_sincosf=yes
5911else
5912  ac_cv_lib_m_sincosf=no
5913fi
5914rm -f core conftest.err conftest.$ac_objext \
5915    conftest$ac_exeext conftest.$ac_ext
5916LIBS=$ac_check_lib_save_LIBS
5917fi
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sincosf" >&5
5919$as_echo "$ac_cv_lib_m_sincosf" >&6; }
5920if test "x$ac_cv_lib_m_sincosf" = xyes; then :
5921
5922$as_echo "#define HAVE_SINCOSF 1" >>confdefs.h
5923
5924fi
5925
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feclearexcept in -lm" >&5
5927$as_echo_n "checking for feclearexcept in -lm... " >&6; }
5928if ${ac_cv_lib_m_feclearexcept+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  ac_check_lib_save_LIBS=$LIBS
5932LIBS="-lm  $LIBS"
5933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934/* end confdefs.h.  */
5935
5936/* Override any GCC internal prototype to avoid an error.
5937   Use char because int might match the return type of a GCC
5938   builtin and then its argument prototype would still apply.  */
5939#ifdef __cplusplus
5940extern "C"
5941#endif
5942char feclearexcept ();
5943int
5944main ()
5945{
5946return feclearexcept ();
5947  ;
5948  return 0;
5949}
5950_ACEOF
5951if ac_fn_c_try_link "$LINENO"; then :
5952  ac_cv_lib_m_feclearexcept=yes
5953else
5954  ac_cv_lib_m_feclearexcept=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext \
5957    conftest$ac_exeext conftest.$ac_ext
5958LIBS=$ac_check_lib_save_LIBS
5959fi
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feclearexcept" >&5
5961$as_echo "$ac_cv_lib_m_feclearexcept" >&6; }
5962if test "x$ac_cv_lib_m_feclearexcept" = xyes; then :
5963
5964$as_echo "#define HAVE_FECLEAREXCEPT 1" >>confdefs.h
5965
5966fi
5967
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpsetsticky in -lm" >&5
5969$as_echo_n "checking for fpsetsticky in -lm... " >&6; }
5970if ${ac_cv_lib_m_fpsetsticky+:} false; then :
5971  $as_echo_n "(cached) " >&6
5972else
5973  ac_check_lib_save_LIBS=$LIBS
5974LIBS="-lm  $LIBS"
5975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h.  */
5977
5978/* Override any GCC internal prototype to avoid an error.
5979   Use char because int might match the return type of a GCC
5980   builtin and then its argument prototype would still apply.  */
5981#ifdef __cplusplus
5982extern "C"
5983#endif
5984char fpsetsticky ();
5985int
5986main ()
5987{
5988return fpsetsticky ();
5989  ;
5990  return 0;
5991}
5992_ACEOF
5993if ac_fn_c_try_link "$LINENO"; then :
5994  ac_cv_lib_m_fpsetsticky=yes
5995else
5996  ac_cv_lib_m_fpsetsticky=no
5997fi
5998rm -f core conftest.err conftest.$ac_objext \
5999    conftest$ac_exeext conftest.$ac_ext
6000LIBS=$ac_check_lib_save_LIBS
6001fi
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fpsetsticky" >&5
6003$as_echo "$ac_cv_lib_m_fpsetsticky" >&6; }
6004if test "x$ac_cv_lib_m_fpsetsticky" = xyes; then :
6005
6006$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
6007
6008fi
6009
6010
6011
6012DYNAMIC_LINK_LIB=""
6013
6014
6015ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6016if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6017
6018
6019$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
6020
6021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6022$as_echo_n "checking for dlopen in -ldl... " >&6; }
6023if ${ac_cv_lib_dl_dlopen+:} false; then :
6024  $as_echo_n "(cached) " >&6
6025else
6026  ac_check_lib_save_LIBS=$LIBS
6027LIBS="-ldl  $LIBS"
6028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030
6031/* Override any GCC internal prototype to avoid an error.
6032   Use char because int might match the return type of a GCC
6033   builtin and then its argument prototype would still apply.  */
6034#ifdef __cplusplus
6035extern "C"
6036#endif
6037char dlopen ();
6038int
6039main ()
6040{
6041return dlopen ();
6042  ;
6043  return 0;
6044}
6045_ACEOF
6046if ac_fn_c_try_link "$LINENO"; then :
6047  ac_cv_lib_dl_dlopen=yes
6048else
6049  ac_cv_lib_dl_dlopen=no
6050fi
6051rm -f core conftest.err conftest.$ac_objext \
6052    conftest$ac_exeext conftest.$ac_ext
6053LIBS=$ac_check_lib_save_LIBS
6054fi
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6056$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6057if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6058
6059    DYNAMIC_LINK_LIB="-ldl"
6060
6061$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
6062
6063
6064else
6065
6066    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6067if test "x$ac_cv_func_dlopen" = xyes; then :
6068  $as_echo "#define HAVE_DLOPEN Define if you have dlopen" >>confdefs.h
6069
6070fi
6071
6072    if test "$ac_cv_func_dlopen" != yes
6073    then
6074      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot perform dynamic linking" >&5
6075$as_echo "$as_me: WARNING: cannot perform dynamic linking" >&2;}
6076    fi
6077
6078fi
6079
6080fi
6081
6082
6083
6084
6085if test "$GCC" = yes
6086then
6087  if test X"$CFLAGS" = X
6088  then
6089     CFLAGS="-O2"
6090  fi
6091fi
6092
6093ELFLIB="lib\$(THIS_LIB).so"
6094ELFLIB_MAJOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION)"
6095ELFLIB_MAJOR_MINOR="\$(ELFLIB_MAJOR).\$(ELF_MINOR_VERSION)"
6096ELFLIB_MAJOR_MINOR_MICRO="\$(ELFLIB_MAJOR_MINOR).\$(ELF_MICRO_VERSION)"
6097
6098INSTALL_ELFLIB_TARGET="install-elf-and-links"
6099ELFLIB_BUILD_NAME="\$(ELFLIB_MAJOR_MINOR_MICRO)"
6100INSTALL_MODULE="\$(INSTALL_DATA)"
6101SLANG_DLL_CFLAGS=""
6102M_LIB="-lm"
6103
6104case "$host_os" in
6105  *linux*|*gnu*|k*bsd*-gnu )
6106    DYNAMIC_LINK_FLAGS="-Wl,-export-dynamic"
6107    ELF_CC="\$(CC)"
6108    ELF_CFLAGS="\$(CFLAGS) -fPIC"
6109    ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-O1 -Wl,--version-script,\$(VERSION_SCRIPT) -Wl,-soname,\$(ELFLIB_MAJOR)"
6110    ELF_DEP_LIBS="\$(DL_LIB) -lm -lc"
6111    CC_SHARED_FLAGS="-shared -fPIC"
6112    CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6113    ;;
6114  *solaris* )
6115    if test "$GCC" = yes
6116    then
6117      DYNAMIC_LINK_FLAGS=""
6118      ELF_CC="\$(CC)"
6119      ELF_CFLAGS="\$(CFLAGS) -fPIC"
6120      ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-ztext -Wl,-h,\$(ELFLIB_MAJOR)"
6121      ELF_DEP_LIBS="\$(DL_LIB) -lm -lc"
6122      CC_SHARED_FLAGS="-G -fPIC"
6123      CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6124    else
6125      DYNAMIC_LINK_FLAGS=""
6126      ELF_CC="\$(CC)"
6127      ELF_CFLAGS="\$(CFLAGS) -K PIC"
6128      ELF_LINK="\$(CC) \$(LDFLAGS) -G -h\$(ELFLIB_MAJOR)"
6129      ELF_DEP_LIBS="\$(DL_LIB) -lm -lc"
6130      CC_SHARED_FLAGS="-G -K PIC"
6131      CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6132    fi
6133    ;;
6134   # osr5 or unixware7 with current or late autoconf
6135  *sco3.2v5* | *unixware-5* | *sco-sysv5uw7*)
6136     if test "$GCC" = yes
6137     then
6138       DYNAMIC_LINK_FLAGS=""
6139       ELF_CC="\$(CC)"
6140       ELF_CFLAGS="\$(CFLAGS) -fPIC"
6141       ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-h,\$(ELFLIB_MAJOR)"
6142       ELF_DEP_LIBS=
6143       CC_SHARED_FLAGS="-G -fPIC"
6144       CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6145     else
6146       DYNAMIC_LINK_FLAGS=""
6147       ELF_CC="\$(CC)"
6148       ELF_CFLAGS="\$(CFLAGS) -K pic"
6149       # ELF_LINK="ld -G -z text -h#"
6150       ELF_LINK="\$(CC) \$(LDFLAGS) -G -z text -h\$(ELFLIB_MAJOR)"
6151       ELF_DEP_LIBS=
6152       CC_SHARED_FLAGS="-G -K pic"
6153       CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6154     fi
6155     ;;
6156  *irix6.5* )
6157     echo "Note: ELF compiler for host_os=$host_os may not be correct"
6158     echo "double-check: 'mode_t', 'pid_t' may be wrong!"
6159     if test "$GCC" = yes
6160     then
6161       # not tested
6162       DYNAMIC_LINK_FLAGS=""
6163       ELF_CC="\$(CC)"
6164       ELF_CFLAGS="\$(CFLAGS) -fPIC"
6165       ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-h,\$(ELFLIB_MAJOR)"
6166       ELF_DEP_LIBS=
6167       CC_SHARED_FLAGS="-shared -fPIC"
6168       CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6169     else
6170       DYNAMIC_LINK_FLAGS=""
6171       ELF_CC="\$(CC)"
6172       ELF_CFLAGS="\$(CFLAGS)"     # default anyhow
6173       ELF_LINK="\$(CC) \$(LDFLAGS) -shared -o \$(ELFLIB_MAJOR)"
6174       ELF_DEP_LIBS=
6175       CC_SHARED_FLAGS="-shared"
6176       CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6177     fi
6178     ;;
6179  *darwin* )
6180     DYNAMIC_LINK_FLAGS=""
6181     ELF_CC="\$(CC)"
6182     ELF_CFLAGS="\$(CFLAGS) -fno-common"
6183     ELF_LINK="\$(CC) \$(LDFLAGS) -dynamiclib -install_name \$(install_lib_dir)/\$(ELFLIB_MAJOR) -compatibility_version \$(ELF_MAJOR_VERSION) -current_version \$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION)"
6184     ELF_DEP_LIBS="\$(LDFLAGS) \$(DL_LIB)"
6185     CC_SHARED_FLAGS="-bundle -flat_namespace -undefined suppress -fno-common"
6186     CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6187     ELFLIB="lib\$(THIS_LIB).dylib"
6188     ELFLIB_MAJOR="lib\$(THIS_LIB).\$(ELF_MAJOR_VERSION).dylib"
6189     ELFLIB_MAJOR_MINOR="lib\$(THIS_LIB).\$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION).dylib"
6190     ELFLIB_MAJOR_MINOR_MICRO="lib\$(THIS_LIB).\$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION).\$(ELF_MICRO_VERSION).dylib"
6191     ;;
6192  *freebsd* | *dragonfly* )
6193    ELF_CC="\$(CC)"
6194    ELF_CFLAGS="\$(CFLAGS) -fPIC"
6195    #if test "X$PORTOBJFORMAT" = "Xelf" ; then
6196    #  ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-soname,\$(ELFLIB_MAJOR)"
6197    #else
6198    #  ELF_LINK="ld -Bshareable -x"
6199    #fi
6200    ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-soname,\$(ELFLIB_MAJOR)"
6201    ELF_DEP_LIBS="\$(DL_LIB) -lm"
6202    CC_SHARED_FLAGS="-shared -fPIC"
6203    CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6204    ;;
6205  *cygwin* )
6206    DYNAMIC_LINK_FLAGS=""
6207    ELF_CC="\$(CC)"
6208    SLANG_DLL_CFLAGS="-DSLANG_DLL=1"
6209    ELF_CFLAGS="\$(CFLAGS) -DBUILD_DLL=1"
6210    DLL_IMPLIB_NAME="lib\$(THIS_LIB)\$(ELFLIB_MAJOR_VERSION).dll.a"
6211    #ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-O1 -Wl,--version-script,\$(VERSION_SCRIPT) -Wl,-soname,\$(ELFLIB_MAJOR) -Wl,--out-implib=\$(DLL_IMPLIB_NAME) -Wl,-export-all-symbols -Wl,-enable-auto-import"
6212    ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-O1 -Wl,--version-script,\$(VERSION_SCRIPT) -Wl,-soname,\$(ELFLIB_MAJOR) -Wl,--out-implib=\$(DLL_IMPLIB_NAME)"
6213    ELF_DEP_LIBS="\$(DL_LIB) -lm"
6214    CC_SHARED_FLAGS="-shared -DSLANG_DLL=1"
6215    CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6216        SLANG_LIB_FOR_MODULES="-L\$(ELFDIR) -lslang"
6217    INSTALL_MODULE="\$(INSTALL)"
6218    INSTALL_ELFLIB_TARGET="install-elf-cygwin"
6219    ELFLIB="lib\$(THIS_LIB).dll"
6220    ELFLIB_MAJOR="cyg\$(THIS_LIB)-\$(ELF_MAJOR_VERSION).dll"
6221    ELFLIB_MAJOR_MINOR="cyg\$(THIS_LIB)-\$(ELF_MAJOR_VERSION)_\$(ELF_MINOR_VERSION).dll"
6222    ELFLIB_MAJOR_MINOR_MICRO="cyg\$(THIS_LIB)-\$(ELF_MAJOR_VERSION)_\$(ELF_MINOR_VERSION)_\$(ELF_MICRO_VERSION).dll"
6223    ELFLIB_BUILD_NAME="\$(ELFLIB_MAJOR)"
6224    ;;
6225  *haiku* )
6226    M_LIB=""
6227    DYNAMIC_LINK_FLAGS="-Wl,-export-dynamic"
6228    ELF_CC="\$(CC)"
6229    ELF_CFLAGS="\$(CFLAGS) -fPIC"
6230    ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-O1 -Wl,--version-script,\$(VERSION_SCRIPT) -Wl,-soname,\$(ELFLIB_MAJOR)"
6231    ELF_DEP_LIBS="\$(DL_LIB)"
6232    CC_SHARED_FLAGS="-shared -fPIC"
6233    CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6234    ;;
6235  * )
6236    echo "Note: ELF compiler for host_os=$host_os may be wrong"
6237    ELF_CC="\$(CC)"
6238    ELF_CFLAGS="\$(CFLAGS) -fPIC"
6239    ELF_LINK="\$(CC) \$(LDFLAGS) -shared"
6240    ELF_DEP_LIBS="\$(DL_LIB) -lm -lc"
6241    CC_SHARED_FLAGS="-shared -fPIC"
6242    CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
6243esac
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266case "$host_cpu" in
6267  *alpha* )
6268    if test "$GCC" = yes
6269    then
6270      IEEE_CFLAGS="-mieee"
6271    else
6272      IEEE_CFLAGS="-ieee_with_no_inexact"
6273    fi
6274    ;;
6275  * )
6276    IEEE_CFLAGS=""
6277esac
6278
6279
6280ELF_CFLAGS="$ELF_CFLAGS $IEEE_CFLAGS"
6281CFLAGS="$CFLAGS $IEEE_CFLAGS"
6282
6283
6284if test "X$libdir" != "X"
6285then
6286  if test "X$RPATH" = "X"
6287  then
6288
6289case "$host_os" in
6290  *linux*|*solaris* )
6291    if test "X$GCC" = Xyes
6292    then
6293      if test "X$ac_R_nospace" = "Xno"
6294      then
6295        RPATH="-Wl,-R,"
6296      else
6297        RPATH="-Wl,-R"
6298      fi
6299    else
6300      if test "X$ac_R_nospace" = "Xno"
6301      then
6302        RPATH="-R "
6303      else
6304	RPATH="-R"
6305      fi
6306    fi
6307  ;;
6308  *osf*|*openbsd*|*freebsd*)
6309    if test "X$GCC" = Xyes
6310    then
6311      RPATH="-Wl,-rpath,"
6312    else
6313      RPATH="-rpath "
6314    fi
6315  ;;
6316  *netbsd*)
6317    if test "X$GCC" = Xyes
6318    then
6319      RPATH="-Wl,-R"
6320    fi
6321  ;;
6322esac
6323
6324    if test "X$RPATH" != "X"
6325    then
6326      RPATH="$RPATH$libdir"
6327    fi
6328  else
6329    _already_there=0
6330    for X in `echo $RPATH | sed 's/:/ /g'`
6331    do
6332      if test "$X" = "$libdir"
6333      then
6334        _already_there=1
6335	break
6336      fi
6337    done
6338    if test $_already_there = 0
6339    then
6340      RPATH="$RPATH:$libdir"
6341    fi
6342  fi
6343fi
6344
6345
6346# The cast to long int works around a bug in the HP C Compiler
6347# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6348# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6349# This bug is HP SR number 8606223364.
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6351$as_echo_n "checking size of short... " >&6; }
6352if ${ac_cv_sizeof_short+:} false; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6356
6357else
6358  if test "$ac_cv_type_short" = yes; then
6359     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6361as_fn_error 77 "cannot compute sizeof (short)
6362See \`config.log' for more details" "$LINENO" 5; }
6363   else
6364     ac_cv_sizeof_short=0
6365   fi
6366fi
6367
6368fi
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6370$as_echo "$ac_cv_sizeof_short" >&6; }
6371
6372
6373
6374cat >>confdefs.h <<_ACEOF
6375#define SIZEOF_SHORT $ac_cv_sizeof_short
6376_ACEOF
6377
6378
6379# The cast to long int works around a bug in the HP C Compiler
6380# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6381# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6382# This bug is HP SR number 8606223364.
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6384$as_echo_n "checking size of int... " >&6; }
6385if ${ac_cv_sizeof_int+:} false; then :
6386  $as_echo_n "(cached) " >&6
6387else
6388  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6389
6390else
6391  if test "$ac_cv_type_int" = yes; then
6392     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6394as_fn_error 77 "cannot compute sizeof (int)
6395See \`config.log' for more details" "$LINENO" 5; }
6396   else
6397     ac_cv_sizeof_int=0
6398   fi
6399fi
6400
6401fi
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6403$as_echo "$ac_cv_sizeof_int" >&6; }
6404
6405
6406
6407cat >>confdefs.h <<_ACEOF
6408#define SIZEOF_INT $ac_cv_sizeof_int
6409_ACEOF
6410
6411
6412# The cast to long int works around a bug in the HP C Compiler
6413# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6414# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6415# This bug is HP SR number 8606223364.
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6417$as_echo_n "checking size of long... " >&6; }
6418if ${ac_cv_sizeof_long+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6422
6423else
6424  if test "$ac_cv_type_long" = yes; then
6425     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6427as_fn_error 77 "cannot compute sizeof (long)
6428See \`config.log' for more details" "$LINENO" 5; }
6429   else
6430     ac_cv_sizeof_long=0
6431   fi
6432fi
6433
6434fi
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6436$as_echo "$ac_cv_sizeof_long" >&6; }
6437
6438
6439
6440cat >>confdefs.h <<_ACEOF
6441#define SIZEOF_LONG $ac_cv_sizeof_long
6442_ACEOF
6443
6444
6445# The cast to long int works around a bug in the HP C Compiler
6446# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6447# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6448# This bug is HP SR number 8606223364.
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
6450$as_echo_n "checking size of float... " >&6; }
6451if ${ac_cv_sizeof_float+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
6455
6456else
6457  if test "$ac_cv_type_float" = yes; then
6458     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6460as_fn_error 77 "cannot compute sizeof (float)
6461See \`config.log' for more details" "$LINENO" 5; }
6462   else
6463     ac_cv_sizeof_float=0
6464   fi
6465fi
6466
6467fi
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
6469$as_echo "$ac_cv_sizeof_float" >&6; }
6470
6471
6472
6473cat >>confdefs.h <<_ACEOF
6474#define SIZEOF_FLOAT $ac_cv_sizeof_float
6475_ACEOF
6476
6477
6478# The cast to long int works around a bug in the HP C Compiler
6479# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6480# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6481# This bug is HP SR number 8606223364.
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
6483$as_echo_n "checking size of double... " >&6; }
6484if ${ac_cv_sizeof_double+:} false; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
6488
6489else
6490  if test "$ac_cv_type_double" = yes; then
6491     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6493as_fn_error 77 "cannot compute sizeof (double)
6494See \`config.log' for more details" "$LINENO" 5; }
6495   else
6496     ac_cv_sizeof_double=0
6497   fi
6498fi
6499
6500fi
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
6502$as_echo "$ac_cv_sizeof_double" >&6; }
6503
6504
6505
6506cat >>confdefs.h <<_ACEOF
6507#define SIZEOF_DOUBLE $ac_cv_sizeof_double
6508_ACEOF
6509
6510
6511
6512ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
6513if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
6514
6515else
6516
6517cat >>confdefs.h <<_ACEOF
6518#define ptrdiff_t long
6519_ACEOF
6520
6521fi
6522
6523
6524ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6525if test "x$ac_cv_type_size_t" = xyes; then :
6526
6527else
6528
6529cat >>confdefs.h <<_ACEOF
6530#define size_t unsigned int
6531_ACEOF
6532
6533fi
6534
6535# The cast to long int works around a bug in the HP C Compiler
6536# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6537# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6538# This bug is HP SR number 8606223364.
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
6540$as_echo_n "checking size of size_t... " >&6; }
6541if ${ac_cv_sizeof_size_t+:} false; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
6545
6546else
6547  if test "$ac_cv_type_size_t" = yes; then
6548     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6550as_fn_error 77 "cannot compute sizeof (size_t)
6551See \`config.log' for more details" "$LINENO" 5; }
6552   else
6553     ac_cv_sizeof_size_t=0
6554   fi
6555fi
6556
6557fi
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
6559$as_echo "$ac_cv_sizeof_size_t" >&6; }
6560
6561
6562
6563cat >>confdefs.h <<_ACEOF
6564#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
6565_ACEOF
6566
6567
6568
6569
6570  ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6571if test "x$ac_cv_type_long_long" = xyes; then :
6572
6573cat >>confdefs.h <<_ACEOF
6574#define HAVE_LONG_LONG 1
6575_ACEOF
6576
6577
6578fi
6579
6580  # The cast to long int works around a bug in the HP C Compiler
6581# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6582# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6583# This bug is HP SR number 8606223364.
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6585$as_echo_n "checking size of long long... " >&6; }
6586if ${ac_cv_sizeof_long_long+:} false; then :
6587  $as_echo_n "(cached) " >&6
6588else
6589  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6590
6591else
6592  if test "$ac_cv_type_long_long" = yes; then
6593     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6595as_fn_error 77 "cannot compute sizeof (long long)
6596See \`config.log' for more details" "$LINENO" 5; }
6597   else
6598     ac_cv_sizeof_long_long=0
6599   fi
6600fi
6601
6602fi
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6604$as_echo "$ac_cv_sizeof_long_long" >&6; }
6605
6606
6607
6608cat >>confdefs.h <<_ACEOF
6609#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6610_ACEOF
6611
6612
6613
6614
6615  # Check whether --enable-largefile was given.
6616if test "${enable_largefile+set}" = set; then :
6617  enableval=$enable_largefile;
6618fi
6619
6620if test "$enable_largefile" != no; then
6621
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6623$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6624if ${ac_cv_sys_largefile_CC+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  ac_cv_sys_largefile_CC=no
6628     if test "$GCC" != yes; then
6629       ac_save_CC=$CC
6630       while :; do
6631	 # IRIX 6.2 and later do not support large files by default,
6632	 # so use the C compiler's -n32 option if that helps.
6633	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h.  */
6635#include <sys/types.h>
6636 /* Check that off_t can represent 2**63 - 1 correctly.
6637    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6638    since some C++ compilers masquerading as C compilers
6639    incorrectly reject 9223372036854775807.  */
6640#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6641  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6642		       && LARGE_OFF_T % 2147483647 == 1)
6643		      ? 1 : -1];
6644int
6645main ()
6646{
6647
6648  ;
6649  return 0;
6650}
6651_ACEOF
6652	 if ac_fn_c_try_compile "$LINENO"; then :
6653  break
6654fi
6655rm -f core conftest.err conftest.$ac_objext
6656	 CC="$CC -n32"
6657	 if ac_fn_c_try_compile "$LINENO"; then :
6658  ac_cv_sys_largefile_CC=' -n32'; break
6659fi
6660rm -f core conftest.err conftest.$ac_objext
6661	 break
6662       done
6663       CC=$ac_save_CC
6664       rm -f conftest.$ac_ext
6665    fi
6666fi
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6668$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6669  if test "$ac_cv_sys_largefile_CC" != no; then
6670    CC=$CC$ac_cv_sys_largefile_CC
6671  fi
6672
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6674$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6675if ${ac_cv_sys_file_offset_bits+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  while :; do
6679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h.  */
6681#include <sys/types.h>
6682 /* Check that off_t can represent 2**63 - 1 correctly.
6683    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6684    since some C++ compilers masquerading as C compilers
6685    incorrectly reject 9223372036854775807.  */
6686#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6687  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6688		       && LARGE_OFF_T % 2147483647 == 1)
6689		      ? 1 : -1];
6690int
6691main ()
6692{
6693
6694  ;
6695  return 0;
6696}
6697_ACEOF
6698if ac_fn_c_try_compile "$LINENO"; then :
6699  ac_cv_sys_file_offset_bits=no; break
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h.  */
6704#define _FILE_OFFSET_BITS 64
6705#include <sys/types.h>
6706 /* Check that off_t can represent 2**63 - 1 correctly.
6707    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6708    since some C++ compilers masquerading as C compilers
6709    incorrectly reject 9223372036854775807.  */
6710#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6711  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6712		       && LARGE_OFF_T % 2147483647 == 1)
6713		      ? 1 : -1];
6714int
6715main ()
6716{
6717
6718  ;
6719  return 0;
6720}
6721_ACEOF
6722if ac_fn_c_try_compile "$LINENO"; then :
6723  ac_cv_sys_file_offset_bits=64; break
6724fi
6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726  ac_cv_sys_file_offset_bits=unknown
6727  break
6728done
6729fi
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6731$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6732case $ac_cv_sys_file_offset_bits in #(
6733  no | unknown) ;;
6734  *)
6735cat >>confdefs.h <<_ACEOF
6736#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6737_ACEOF
6738;;
6739esac
6740rm -rf conftest*
6741  if test $ac_cv_sys_file_offset_bits = unknown; then
6742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6743$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6744if ${ac_cv_sys_large_files+:} false; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  while :; do
6748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750#include <sys/types.h>
6751 /* Check that off_t can represent 2**63 - 1 correctly.
6752    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6753    since some C++ compilers masquerading as C compilers
6754    incorrectly reject 9223372036854775807.  */
6755#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6756  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6757		       && LARGE_OFF_T % 2147483647 == 1)
6758		      ? 1 : -1];
6759int
6760main ()
6761{
6762
6763  ;
6764  return 0;
6765}
6766_ACEOF
6767if ac_fn_c_try_compile "$LINENO"; then :
6768  ac_cv_sys_large_files=no; break
6769fi
6770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772/* end confdefs.h.  */
6773#define _LARGE_FILES 1
6774#include <sys/types.h>
6775 /* Check that off_t can represent 2**63 - 1 correctly.
6776    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6777    since some C++ compilers masquerading as C compilers
6778    incorrectly reject 9223372036854775807.  */
6779#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6780  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6781		       && LARGE_OFF_T % 2147483647 == 1)
6782		      ? 1 : -1];
6783int
6784main ()
6785{
6786
6787  ;
6788  return 0;
6789}
6790_ACEOF
6791if ac_fn_c_try_compile "$LINENO"; then :
6792  ac_cv_sys_large_files=1; break
6793fi
6794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795  ac_cv_sys_large_files=unknown
6796  break
6797done
6798fi
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6800$as_echo "$ac_cv_sys_large_files" >&6; }
6801case $ac_cv_sys_large_files in #(
6802  no | unknown) ;;
6803  *)
6804cat >>confdefs.h <<_ACEOF
6805#define _LARGE_FILES $ac_cv_sys_large_files
6806_ACEOF
6807;;
6808esac
6809rm -rf conftest*
6810  fi
6811
6812
6813fi
6814
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6816$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6817if ${ac_cv_sys_largefile_source+:} false; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  while :; do
6821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h.  */
6823#include <sys/types.h> /* for off_t */
6824     #include <stdio.h>
6825int
6826main ()
6827{
6828int (*fp) (FILE *, off_t, int) = fseeko;
6829     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6830  ;
6831  return 0;
6832}
6833_ACEOF
6834if ac_fn_c_try_link "$LINENO"; then :
6835  ac_cv_sys_largefile_source=no; break
6836fi
6837rm -f core conftest.err conftest.$ac_objext \
6838    conftest$ac_exeext conftest.$ac_ext
6839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h.  */
6841#define _LARGEFILE_SOURCE 1
6842#include <sys/types.h> /* for off_t */
6843     #include <stdio.h>
6844int
6845main ()
6846{
6847int (*fp) (FILE *, off_t, int) = fseeko;
6848     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6849  ;
6850  return 0;
6851}
6852_ACEOF
6853if ac_fn_c_try_link "$LINENO"; then :
6854  ac_cv_sys_largefile_source=1; break
6855fi
6856rm -f core conftest.err conftest.$ac_objext \
6857    conftest$ac_exeext conftest.$ac_ext
6858  ac_cv_sys_largefile_source=unknown
6859  break
6860done
6861fi
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6863$as_echo "$ac_cv_sys_largefile_source" >&6; }
6864case $ac_cv_sys_largefile_source in #(
6865  no | unknown) ;;
6866  *)
6867cat >>confdefs.h <<_ACEOF
6868#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6869_ACEOF
6870;;
6871esac
6872rm -rf conftest*
6873
6874# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6875# in glibc 2.1.3, but that breaks too many other things.
6876# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6877if test $ac_cv_sys_largefile_source != unknown; then
6878
6879$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6880
6881fi
6882
6883  ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6884if test "x$ac_cv_type_off_t" = xyes; then :
6885
6886else
6887
6888cat >>confdefs.h <<_ACEOF
6889#define off_t long int
6890_ACEOF
6891
6892fi
6893
6894  # The cast to long int works around a bug in the HP C Compiler
6895# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6896# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6897# This bug is HP SR number 8606223364.
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
6899$as_echo_n "checking size of off_t... " >&6; }
6900if ${ac_cv_sizeof_off_t+:} false; then :
6901  $as_echo_n "(cached) " >&6
6902else
6903  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
6904
6905else
6906  if test "$ac_cv_type_off_t" = yes; then
6907     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6909as_fn_error 77 "cannot compute sizeof (off_t)
6910See \`config.log' for more details" "$LINENO" 5; }
6911   else
6912     ac_cv_sizeof_off_t=0
6913   fi
6914fi
6915
6916fi
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
6918$as_echo "$ac_cv_sizeof_off_t" >&6; }
6919
6920
6921
6922cat >>confdefs.h <<_ACEOF
6923#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
6924_ACEOF
6925
6926
6927
6928
6929
6930# Extract the first word of "ncurses5-config", so it can be a program name with args.
6931set dummy ncurses5-config; ac_word=$2
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933$as_echo_n "checking for $ac_word... " >&6; }
6934if ${ac_cv_path_nc5config+:} false; then :
6935  $as_echo_n "(cached) " >&6
6936else
6937  case $nc5config in
6938  [\\/]* | ?:[\\/]*)
6939  ac_cv_path_nc5config="$nc5config" # Let the user override the test with a path.
6940  ;;
6941  *)
6942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945  IFS=$as_save_IFS
6946  test -z "$as_dir" && as_dir=.
6947    for ac_exec_ext in '' $ac_executable_extensions; do
6948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949    ac_cv_path_nc5config="$as_dir/$ac_word$ac_exec_ext"
6950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951    break 2
6952  fi
6953done
6954  done
6955IFS=$as_save_IFS
6956
6957  test -z "$ac_cv_path_nc5config" && ac_cv_path_nc5config="no"
6958  ;;
6959esac
6960fi
6961nc5config=$ac_cv_path_nc5config
6962if test -n "$nc5config"; then
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc5config" >&5
6964$as_echo "$nc5config" >&6; }
6965else
6966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967$as_echo "no" >&6; }
6968fi
6969
6970
6971if test "$nc5config" = "no"
6972then
6973  # Extract the first word of "ncursesw5-config", so it can be a program name with args.
6974set dummy ncursesw5-config; ac_word=$2
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976$as_echo_n "checking for $ac_word... " >&6; }
6977if ${ac_cv_path_nc5config+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  case $nc5config in
6981  [\\/]* | ?:[\\/]*)
6982  ac_cv_path_nc5config="$nc5config" # Let the user override the test with a path.
6983  ;;
6984  *)
6985  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988  IFS=$as_save_IFS
6989  test -z "$as_dir" && as_dir=.
6990    for ac_exec_ext in '' $ac_executable_extensions; do
6991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992    ac_cv_path_nc5config="$as_dir/$ac_word$ac_exec_ext"
6993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994    break 2
6995  fi
6996done
6997  done
6998IFS=$as_save_IFS
6999
7000  test -z "$ac_cv_path_nc5config" && ac_cv_path_nc5config="no"
7001  ;;
7002esac
7003fi
7004nc5config=$ac_cv_path_nc5config
7005if test -n "$nc5config"; then
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc5config" >&5
7007$as_echo "$nc5config" >&6; }
7008else
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010$as_echo "no" >&6; }
7011fi
7012
7013
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for terminfo" >&5
7016$as_echo_n "checking for terminfo... " >&6; }
7017if test "$nc5config" != "no"
7018then
7019   MISC_TERMINFO_DIRS=`$nc5config --terminfo`
7020else
7021   MISC_TERMINFO_DIRS=""
7022fi
7023JD_Terminfo_Dirs="$MISC_TERMINFO_DIRS \
7024                  /usr/lib/terminfo \
7025                  /usr/share/terminfo \
7026                  /usr/share/lib/terminfo \
7027		  /usr/local/lib/terminfo"
7028TERMCAP=-ltermcap
7029
7030for terminfo_dir in $JD_Terminfo_Dirs
7031do
7032   if test -d $terminfo_dir
7033   then
7034      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7035$as_echo "yes" >&6; }
7036      TERMCAP=""
7037      break
7038   fi
7039done
7040if test "$TERMCAP"; then
7041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042$as_echo "no" >&6; }
7043
7044$as_echo "#define USE_TERMCAP 1" >>confdefs.h
7045
7046fi
7047
7048
7049# Check whether --enable-warnings was given.
7050if test "${enable_warnings+set}" = set; then :
7051  enableval=$enable_warnings; gcc_warnings=$enableval
7052fi
7053
7054if test -n "$GCC"
7055then
7056  #CFLAGS="$CFLAGS -fno-strength-reduce"
7057  if test -n "$gcc_warnings"
7058  then
7059    CFLAGS="$CFLAGS -Wall -W -pedantic -Winline -Wmissing-prototypes \
7060 -Wnested-externs -Wpointer-arith -Wcast-align -Wshadow -Wstrict-prototypes \
7061 -Wformat=2"
7062    # Now trim excess whitespace
7063    CFLAGS=`echo $CFLAGS`
7064  fi
7065fi
7066
7067
7068
7069#---------------------------------------------------------------------------
7070# Set the source directory and object directory.   The makefile assumes an
7071# absolute path name.  This is because src/Makefile cds to OBJDIR and compiles
7072# the src file which is in SRCDIR
7073#---------------------------------------------------------------------------
7074SRCDIR=$CONFIG_DIR
7075if test "src" != "."
7076then
7077  if test -z "src"
7078  then
7079    SRCDIR=$SRCDIR/src
7080  else
7081    SRCDIR=$SRCDIR/src
7082  fi
7083fi
7084
7085OBJDIR=$SRCDIR/"\$(ARCH)"objs
7086ELFDIR=$SRCDIR/"\$(ARCH)"elfobjs
7087
7088
7089missingmodules=""
7090extramodules=""
7091
7092  if test "X$jd_prefix" = "X"
7093  then
7094    jd_prefix=$ac_default_prefix
7095    if test "X$prefix" != "XNONE"
7096    then
7097      jd_prefix="$prefix"
7098    fi
7099    jd_exec_prefix="$jd_prefix"
7100    if test "X$exec_prefix" != "XNONE"
7101    then
7102      jd_exec_prefix="$exec_prefix"
7103    fi
7104
7105            eval `sh <<EOF
7106      prefix=$jd_prefix
7107      exec_prefix=$jd_exec_prefix
7108      libdir=$libdir
7109      includedir=$includedir
7110      echo jd_prefix_libdir="\$libdir" jd_prefix_incdir="\$includedir"
7111EOF
7112`
7113  fi
7114
7115
7116  if test -x $ac_aux_dir/scripts/getsyslibs.sh
7117  then
7118    JD_SYS_INCLIBS=`$ac_aux_dir/scripts/getsyslibs.sh`
7119  else
7120    JD_SYS_INCLIBS=""
7121  fi
7122
7123
7124
7125
7126
7127 jd_pcre_include_dir=""
7128 jd_pcre_library_dir=""
7129 if test X"$jd_with_pcre_library" = X
7130 then
7131   jd_with_pcre_library=""
7132 fi
7133
7134
7135# Check whether --with-pcre was given.
7136if test "${with_pcre+set}" = set; then :
7137  withval=$with_pcre; jd_with_pcre_arg=$withval
7138else
7139  jd_with_pcre_arg=unspecified
7140fi
7141
7142
7143 case "x$jd_with_pcre_arg" in
7144   xno)
7145     jd_with_pcre_library="no"
7146    ;;
7147   x)
7148        jd_with_pcre_library="yes"
7149    ;;
7150   xunspecified)
7151    ;;
7152   xyes)
7153    jd_with_pcre_library="yes"
7154    ;;
7155   *)
7156    jd_with_pcre_library="yes"
7157    jd_pcre_include_dir="$jd_with_pcre_arg"/include
7158    jd_pcre_library_dir="$jd_with_pcre_arg"/lib
7159    ;;
7160 esac
7161
7162
7163# Check whether --with-pcrelib was given.
7164if test "${with_pcrelib+set}" = set; then :
7165  withval=$with_pcrelib; jd_with_pcrelib_arg=$withval
7166else
7167  jd_with_pcrelib_arg=unspecified
7168fi
7169
7170 case "x$jd_with_pcrelib_arg" in
7171   xunspecified)
7172    ;;
7173   xno)
7174    ;;
7175   x)
7176    as_fn_error $? "--with-pcrelib requres a value" "$LINENO" 5
7177    ;;
7178   *)
7179    jd_with_pcre_library="yes"
7180    jd_pcre_library_dir="$jd_with_pcrelib_arg"
7181    ;;
7182 esac
7183
7184
7185# Check whether --with-pcreinc was given.
7186if test "${with_pcreinc+set}" = set; then :
7187  withval=$with_pcreinc; jd_with_pcreinc_arg=$withval
7188else
7189  jd_with_pcreinc_arg=unspecified
7190fi
7191
7192 case "x$jd_with_pcreinc_arg" in
7193   x)
7194     as_fn_error $? "--with-pcreinc requres a value" "$LINENO" 5
7195     ;;
7196   xunspecified)
7197     ;;
7198   xno)
7199     ;;
7200   *)
7201    jd_with_pcre_library="yes"
7202    jd_pcre_include_dir="$jd_with_pcreinc_arg"
7203   ;;
7204 esac
7205
7206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pcre library and header files " >&5
7207$as_echo_n "checking for the pcre library and header files ... " >&6; }
7208  if test X"$jd_with_pcre_library" != Xno
7209  then
7210    jd_pcre_inc_file=
7211
7212    if test "X$jd_pcre_inc_file" = "X"
7213    then
7214       jd_pcre_inc_file=pcre.h
7215    fi
7216
7217    if test X"$jd_pcre_include_dir" = X
7218    then
7219      inc_and_lib_dirs="\
7220         $jd_prefix_incdir,$jd_prefix_libdir \
7221	 /usr/local/pcre/include,/usr/local/pcre/lib \
7222	 /usr/local/include/pcre,/usr/local/lib \
7223	 /usr/local/include,/usr/local/lib \
7224	 $JD_SYS_INCLIBS \
7225	 /usr/include/pcre,/usr/lib \
7226	 /usr/pcre/include,/usr/pcre/lib \
7227	 /usr/include,/usr/lib \
7228	 /opt/include/pcre,/opt/lib \
7229	 /opt/pcre/include,/opt/pcre/lib \
7230	 /opt/include,/opt/lib"
7231
7232      if test X != X
7233      then
7234        inc_and_lib_dirs="/include,/lib $inc_and_lib_dirs"
7235      fi
7236
7237      case "$host_os" in
7238         *darwin* )
7239	   exts="dylib so a"
7240	   ;;
7241	 *cygwin* )
7242	   exts="dll.a so a"
7243	   ;;
7244	 * )
7245	   exts="so a"
7246      esac
7247
7248      xincfile="$jd_pcre_inc_file"
7249      xlibfile="libpcre"
7250      jd_with_pcre_library="no"
7251
7252      for include_and_lib in $inc_and_lib_dirs
7253      do
7254        # Yuk.  Is there a better way to set these variables??
7255        xincdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $1}'`
7256	xlibdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $2}'`
7257	found=0
7258	if test -r $xincdir/$xincfile
7259	then
7260	  for E in $exts
7261	  do
7262	    if test -r "$xlibdir/$xlibfile.$E"
7263	    then
7264	      jd_pcre_include_dir="$xincdir"
7265	      jd_pcre_library_dir="$xlibdir"
7266	      jd_with_pcre_library="yes"
7267	      found=1
7268	      break
7269	    fi
7270	  done
7271	fi
7272	if test $found -eq 1
7273	then
7274	  break
7275	fi
7276      done
7277    fi
7278  fi
7279
7280  if test X"$jd_pcre_include_dir" != X -a X"$jd_pcre_library_dir" != X
7281  then
7282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: $jd_pcre_library_dir and $jd_pcre_include_dir" >&5
7283$as_echo "yes: $jd_pcre_library_dir and $jd_pcre_include_dir" >&6; }
7284    jd_with_pcre_library="yes"
7285            PCRE_LIB=-L$jd_pcre_library_dir
7286    PCRE_LIB_DIR=$jd_pcre_library_dir
7287    if test "X$jd_pcre_library_dir" = "X/usr/lib" -o "X$jd_pcre_include_dir" = "X/usr/include"
7288    then
7289      PCRE_LIB=""
7290    else
7291
7292if test "X$jd_pcre_library_dir" != "X"
7293then
7294  if test "X$RPATH" = "X"
7295  then
7296
7297case "$host_os" in
7298  *linux*|*solaris* )
7299    if test "X$GCC" = Xyes
7300    then
7301      if test "X$ac_R_nospace" = "Xno"
7302      then
7303        RPATH="-Wl,-R,"
7304      else
7305        RPATH="-Wl,-R"
7306      fi
7307    else
7308      if test "X$ac_R_nospace" = "Xno"
7309      then
7310        RPATH="-R "
7311      else
7312	RPATH="-R"
7313      fi
7314    fi
7315  ;;
7316  *osf*|*openbsd*|*freebsd*)
7317    if test "X$GCC" = Xyes
7318    then
7319      RPATH="-Wl,-rpath,"
7320    else
7321      RPATH="-rpath "
7322    fi
7323  ;;
7324  *netbsd*)
7325    if test "X$GCC" = Xyes
7326    then
7327      RPATH="-Wl,-R"
7328    fi
7329  ;;
7330esac
7331
7332    if test "X$RPATH" != "X"
7333    then
7334      RPATH="$RPATH$jd_pcre_library_dir"
7335    fi
7336  else
7337    _already_there=0
7338    for X in `echo $RPATH | sed 's/:/ /g'`
7339    do
7340      if test "$X" = "$jd_pcre_library_dir"
7341      then
7342        _already_there=1
7343	break
7344      fi
7345    done
7346    if test $_already_there = 0
7347    then
7348      RPATH="$RPATH:$jd_pcre_library_dir"
7349    fi
7350  fi
7351fi
7352
7353    fi
7354
7355    PCRE_INC=-I$jd_pcre_include_dir
7356    PCRE_INC_DIR=$jd_pcre_include_dir
7357    if test "X$jd_pcre_include_dir" = "X/usr/include"
7358    then
7359      PCRE_INC=""
7360    fi
7361  else
7362    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363$as_echo "no" >&6; }
7364    jd_with_pcre_library="no"
7365    PCRE_INC=""
7366    PCRE_LIB=""
7367    PCRE_INC_DIR=""
7368    PCRE_LIB_DIR=""
7369  fi
7370
7371
7372
7373
7374
7375if test $jd_with_pcre_library = yes
7376then
7377  PCRE_MODULE="pcre-module.so"
7378
7379$as_echo "#define HAVE_PCRE_H 1" >>confdefs.h
7380
7381  extramodules="$extramodules pcre"
7382else
7383  PCRE_MODULE=""
7384  missingmodules="$missingmodules pcre"
7385fi
7386
7387
7388
7389
7390
7391
7392 jd_onig_include_dir=""
7393 jd_onig_library_dir=""
7394 if test X"$jd_with_onig_library" = X
7395 then
7396   jd_with_onig_library=""
7397 fi
7398
7399
7400# Check whether --with-onig was given.
7401if test "${with_onig+set}" = set; then :
7402  withval=$with_onig; jd_with_onig_arg=$withval
7403else
7404  jd_with_onig_arg=unspecified
7405fi
7406
7407
7408 case "x$jd_with_onig_arg" in
7409   xno)
7410     jd_with_onig_library="no"
7411    ;;
7412   x)
7413        jd_with_onig_library="yes"
7414    ;;
7415   xunspecified)
7416    ;;
7417   xyes)
7418    jd_with_onig_library="yes"
7419    ;;
7420   *)
7421    jd_with_onig_library="yes"
7422    jd_onig_include_dir="$jd_with_onig_arg"/include
7423    jd_onig_library_dir="$jd_with_onig_arg"/lib
7424    ;;
7425 esac
7426
7427
7428# Check whether --with-oniglib was given.
7429if test "${with_oniglib+set}" = set; then :
7430  withval=$with_oniglib; jd_with_oniglib_arg=$withval
7431else
7432  jd_with_oniglib_arg=unspecified
7433fi
7434
7435 case "x$jd_with_oniglib_arg" in
7436   xunspecified)
7437    ;;
7438   xno)
7439    ;;
7440   x)
7441    as_fn_error $? "--with-oniglib requres a value" "$LINENO" 5
7442    ;;
7443   *)
7444    jd_with_onig_library="yes"
7445    jd_onig_library_dir="$jd_with_oniglib_arg"
7446    ;;
7447 esac
7448
7449
7450# Check whether --with-oniginc was given.
7451if test "${with_oniginc+set}" = set; then :
7452  withval=$with_oniginc; jd_with_oniginc_arg=$withval
7453else
7454  jd_with_oniginc_arg=unspecified
7455fi
7456
7457 case "x$jd_with_oniginc_arg" in
7458   x)
7459     as_fn_error $? "--with-oniginc requres a value" "$LINENO" 5
7460     ;;
7461   xunspecified)
7462     ;;
7463   xno)
7464     ;;
7465   *)
7466    jd_with_onig_library="yes"
7467    jd_onig_include_dir="$jd_with_oniginc_arg"
7468   ;;
7469 esac
7470
7471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the onig library and header files oniguruma.h" >&5
7472$as_echo_n "checking for the onig library and header files oniguruma.h... " >&6; }
7473  if test X"$jd_with_onig_library" != Xno
7474  then
7475    jd_onig_inc_file=oniguruma.h
7476
7477    if test "X$jd_onig_inc_file" = "X"
7478    then
7479       jd_onig_inc_file=onig.h
7480    fi
7481
7482    if test X"$jd_onig_include_dir" = X
7483    then
7484      inc_and_lib_dirs="\
7485         $jd_prefix_incdir,$jd_prefix_libdir \
7486	 /usr/local/onig/include,/usr/local/onig/lib \
7487	 /usr/local/include/onig,/usr/local/lib \
7488	 /usr/local/include,/usr/local/lib \
7489	 $JD_SYS_INCLIBS \
7490	 /usr/include/onig,/usr/lib \
7491	 /usr/onig/include,/usr/onig/lib \
7492	 /usr/include,/usr/lib \
7493	 /opt/include/onig,/opt/lib \
7494	 /opt/onig/include,/opt/onig/lib \
7495	 /opt/include,/opt/lib"
7496
7497      if test X != X
7498      then
7499        inc_and_lib_dirs="/include,/lib $inc_and_lib_dirs"
7500      fi
7501
7502      case "$host_os" in
7503         *darwin* )
7504	   exts="dylib so a"
7505	   ;;
7506	 *cygwin* )
7507	   exts="dll.a so a"
7508	   ;;
7509	 * )
7510	   exts="so a"
7511      esac
7512
7513      xincfile="$jd_onig_inc_file"
7514      xlibfile="libonig"
7515      jd_with_onig_library="no"
7516
7517      for include_and_lib in $inc_and_lib_dirs
7518      do
7519        # Yuk.  Is there a better way to set these variables??
7520        xincdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $1}'`
7521	xlibdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $2}'`
7522	found=0
7523	if test -r $xincdir/$xincfile
7524	then
7525	  for E in $exts
7526	  do
7527	    if test -r "$xlibdir/$xlibfile.$E"
7528	    then
7529	      jd_onig_include_dir="$xincdir"
7530	      jd_onig_library_dir="$xlibdir"
7531	      jd_with_onig_library="yes"
7532	      found=1
7533	      break
7534	    fi
7535	  done
7536	fi
7537	if test $found -eq 1
7538	then
7539	  break
7540	fi
7541      done
7542    fi
7543  fi
7544
7545  if test X"$jd_onig_include_dir" != X -a X"$jd_onig_library_dir" != X
7546  then
7547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: $jd_onig_library_dir and $jd_onig_include_dir" >&5
7548$as_echo "yes: $jd_onig_library_dir and $jd_onig_include_dir" >&6; }
7549    jd_with_onig_library="yes"
7550            ONIG_LIB=-L$jd_onig_library_dir
7551    ONIG_LIB_DIR=$jd_onig_library_dir
7552    if test "X$jd_onig_library_dir" = "X/usr/lib" -o "X$jd_onig_include_dir" = "X/usr/include"
7553    then
7554      ONIG_LIB=""
7555    else
7556
7557if test "X$jd_onig_library_dir" != "X"
7558then
7559  if test "X$RPATH" = "X"
7560  then
7561
7562case "$host_os" in
7563  *linux*|*solaris* )
7564    if test "X$GCC" = Xyes
7565    then
7566      if test "X$ac_R_nospace" = "Xno"
7567      then
7568        RPATH="-Wl,-R,"
7569      else
7570        RPATH="-Wl,-R"
7571      fi
7572    else
7573      if test "X$ac_R_nospace" = "Xno"
7574      then
7575        RPATH="-R "
7576      else
7577	RPATH="-R"
7578      fi
7579    fi
7580  ;;
7581  *osf*|*openbsd*|*freebsd*)
7582    if test "X$GCC" = Xyes
7583    then
7584      RPATH="-Wl,-rpath,"
7585    else
7586      RPATH="-rpath "
7587    fi
7588  ;;
7589  *netbsd*)
7590    if test "X$GCC" = Xyes
7591    then
7592      RPATH="-Wl,-R"
7593    fi
7594  ;;
7595esac
7596
7597    if test "X$RPATH" != "X"
7598    then
7599      RPATH="$RPATH$jd_onig_library_dir"
7600    fi
7601  else
7602    _already_there=0
7603    for X in `echo $RPATH | sed 's/:/ /g'`
7604    do
7605      if test "$X" = "$jd_onig_library_dir"
7606      then
7607        _already_there=1
7608	break
7609      fi
7610    done
7611    if test $_already_there = 0
7612    then
7613      RPATH="$RPATH:$jd_onig_library_dir"
7614    fi
7615  fi
7616fi
7617
7618    fi
7619
7620    ONIG_INC=-I$jd_onig_include_dir
7621    ONIG_INC_DIR=$jd_onig_include_dir
7622    if test "X$jd_onig_include_dir" = "X/usr/include"
7623    then
7624      ONIG_INC=""
7625    fi
7626  else
7627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628$as_echo "no" >&6; }
7629    jd_with_onig_library="no"
7630    ONIG_INC=""
7631    ONIG_LIB=""
7632    ONIG_INC_DIR=""
7633    ONIG_LIB_DIR=""
7634  fi
7635
7636
7637
7638
7639
7640if test $jd_with_onig_library = yes
7641then
7642  ONIG_MODULE="onig-module.so"
7643
7644$as_echo "#define HAVE_ONIGURUMA_H 1" >>confdefs.h
7645
7646  extramodules="$extramodules oniguruma"
7647else
7648  ONIG_MODULE=""
7649  missingmodules="$missingmodules oniguruma"
7650fi
7651
7652
7653
7654
7655
7656
7657 jd_png_include_dir=""
7658 jd_png_library_dir=""
7659 if test X"$jd_with_png_library" = X
7660 then
7661   jd_with_png_library=""
7662 fi
7663
7664
7665# Check whether --with-png was given.
7666if test "${with_png+set}" = set; then :
7667  withval=$with_png; jd_with_png_arg=$withval
7668else
7669  jd_with_png_arg=unspecified
7670fi
7671
7672
7673 case "x$jd_with_png_arg" in
7674   xno)
7675     jd_with_png_library="no"
7676    ;;
7677   x)
7678        jd_with_png_library="yes"
7679    ;;
7680   xunspecified)
7681    ;;
7682   xyes)
7683    jd_with_png_library="yes"
7684    ;;
7685   *)
7686    jd_with_png_library="yes"
7687    jd_png_include_dir="$jd_with_png_arg"/include
7688    jd_png_library_dir="$jd_with_png_arg"/lib
7689    ;;
7690 esac
7691
7692
7693# Check whether --with-pnglib was given.
7694if test "${with_pnglib+set}" = set; then :
7695  withval=$with_pnglib; jd_with_pnglib_arg=$withval
7696else
7697  jd_with_pnglib_arg=unspecified
7698fi
7699
7700 case "x$jd_with_pnglib_arg" in
7701   xunspecified)
7702    ;;
7703   xno)
7704    ;;
7705   x)
7706    as_fn_error $? "--with-pnglib requres a value" "$LINENO" 5
7707    ;;
7708   *)
7709    jd_with_png_library="yes"
7710    jd_png_library_dir="$jd_with_pnglib_arg"
7711    ;;
7712 esac
7713
7714
7715# Check whether --with-pnginc was given.
7716if test "${with_pnginc+set}" = set; then :
7717  withval=$with_pnginc; jd_with_pnginc_arg=$withval
7718else
7719  jd_with_pnginc_arg=unspecified
7720fi
7721
7722 case "x$jd_with_pnginc_arg" in
7723   x)
7724     as_fn_error $? "--with-pnginc requres a value" "$LINENO" 5
7725     ;;
7726   xunspecified)
7727     ;;
7728   xno)
7729     ;;
7730   *)
7731    jd_with_png_library="yes"
7732    jd_png_include_dir="$jd_with_pnginc_arg"
7733   ;;
7734 esac
7735
7736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the png library and header files " >&5
7737$as_echo_n "checking for the png library and header files ... " >&6; }
7738  if test X"$jd_with_png_library" != Xno
7739  then
7740    jd_png_inc_file=
7741
7742    if test "X$jd_png_inc_file" = "X"
7743    then
7744       jd_png_inc_file=png.h
7745    fi
7746
7747    if test X"$jd_png_include_dir" = X
7748    then
7749      inc_and_lib_dirs="\
7750         $jd_prefix_incdir,$jd_prefix_libdir \
7751	 /usr/local/png/include,/usr/local/png/lib \
7752	 /usr/local/include/png,/usr/local/lib \
7753	 /usr/local/include,/usr/local/lib \
7754	 $JD_SYS_INCLIBS \
7755	 /usr/include/png,/usr/lib \
7756	 /usr/png/include,/usr/png/lib \
7757	 /usr/include,/usr/lib \
7758	 /opt/include/png,/opt/lib \
7759	 /opt/png/include,/opt/png/lib \
7760	 /opt/include,/opt/lib"
7761
7762      if test X != X
7763      then
7764        inc_and_lib_dirs="/include,/lib $inc_and_lib_dirs"
7765      fi
7766
7767      case "$host_os" in
7768         *darwin* )
7769	   exts="dylib so a"
7770	   ;;
7771	 *cygwin* )
7772	   exts="dll.a so a"
7773	   ;;
7774	 * )
7775	   exts="so a"
7776      esac
7777
7778      xincfile="$jd_png_inc_file"
7779      xlibfile="libpng"
7780      jd_with_png_library="no"
7781
7782      for include_and_lib in $inc_and_lib_dirs
7783      do
7784        # Yuk.  Is there a better way to set these variables??
7785        xincdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $1}'`
7786	xlibdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $2}'`
7787	found=0
7788	if test -r $xincdir/$xincfile
7789	then
7790	  for E in $exts
7791	  do
7792	    if test -r "$xlibdir/$xlibfile.$E"
7793	    then
7794	      jd_png_include_dir="$xincdir"
7795	      jd_png_library_dir="$xlibdir"
7796	      jd_with_png_library="yes"
7797	      found=1
7798	      break
7799	    fi
7800	  done
7801	fi
7802	if test $found -eq 1
7803	then
7804	  break
7805	fi
7806      done
7807    fi
7808  fi
7809
7810  if test X"$jd_png_include_dir" != X -a X"$jd_png_library_dir" != X
7811  then
7812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: $jd_png_library_dir and $jd_png_include_dir" >&5
7813$as_echo "yes: $jd_png_library_dir and $jd_png_include_dir" >&6; }
7814    jd_with_png_library="yes"
7815            PNG_LIB=-L$jd_png_library_dir
7816    PNG_LIB_DIR=$jd_png_library_dir
7817    if test "X$jd_png_library_dir" = "X/usr/lib" -o "X$jd_png_include_dir" = "X/usr/include"
7818    then
7819      PNG_LIB=""
7820    else
7821
7822if test "X$jd_png_library_dir" != "X"
7823then
7824  if test "X$RPATH" = "X"
7825  then
7826
7827case "$host_os" in
7828  *linux*|*solaris* )
7829    if test "X$GCC" = Xyes
7830    then
7831      if test "X$ac_R_nospace" = "Xno"
7832      then
7833        RPATH="-Wl,-R,"
7834      else
7835        RPATH="-Wl,-R"
7836      fi
7837    else
7838      if test "X$ac_R_nospace" = "Xno"
7839      then
7840        RPATH="-R "
7841      else
7842	RPATH="-R"
7843      fi
7844    fi
7845  ;;
7846  *osf*|*openbsd*|*freebsd*)
7847    if test "X$GCC" = Xyes
7848    then
7849      RPATH="-Wl,-rpath,"
7850    else
7851      RPATH="-rpath "
7852    fi
7853  ;;
7854  *netbsd*)
7855    if test "X$GCC" = Xyes
7856    then
7857      RPATH="-Wl,-R"
7858    fi
7859  ;;
7860esac
7861
7862    if test "X$RPATH" != "X"
7863    then
7864      RPATH="$RPATH$jd_png_library_dir"
7865    fi
7866  else
7867    _already_there=0
7868    for X in `echo $RPATH | sed 's/:/ /g'`
7869    do
7870      if test "$X" = "$jd_png_library_dir"
7871      then
7872        _already_there=1
7873	break
7874      fi
7875    done
7876    if test $_already_there = 0
7877    then
7878      RPATH="$RPATH:$jd_png_library_dir"
7879    fi
7880  fi
7881fi
7882
7883    fi
7884
7885    PNG_INC=-I$jd_png_include_dir
7886    PNG_INC_DIR=$jd_png_include_dir
7887    if test "X$jd_png_include_dir" = "X/usr/include"
7888    then
7889      PNG_INC=""
7890    fi
7891  else
7892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893$as_echo "no" >&6; }
7894    jd_with_png_library="no"
7895    PNG_INC=""
7896    PNG_LIB=""
7897    PNG_INC_DIR=""
7898    PNG_LIB_DIR=""
7899  fi
7900
7901
7902
7903
7904
7905if test $jd_with_png_library = yes
7906then
7907  PNG_MODULE="png-module.so"
7908
7909$as_echo "#define HAVE_PNG_H 1" >>confdefs.h
7910
7911  extramodules="$extramodules png"
7912else
7913  PNG_MODULE=""
7914  missingmodules="$missingmodules png"
7915fi
7916
7917
7918
7919
7920
7921
7922 jd_z_include_dir=""
7923 jd_z_library_dir=""
7924 if test X"$jd_with_z_library" = X
7925 then
7926   jd_with_z_library=""
7927 fi
7928
7929
7930# Check whether --with-z was given.
7931if test "${with_z+set}" = set; then :
7932  withval=$with_z; jd_with_z_arg=$withval
7933else
7934  jd_with_z_arg=unspecified
7935fi
7936
7937
7938 case "x$jd_with_z_arg" in
7939   xno)
7940     jd_with_z_library="no"
7941    ;;
7942   x)
7943        jd_with_z_library="yes"
7944    ;;
7945   xunspecified)
7946    ;;
7947   xyes)
7948    jd_with_z_library="yes"
7949    ;;
7950   *)
7951    jd_with_z_library="yes"
7952    jd_z_include_dir="$jd_with_z_arg"/include
7953    jd_z_library_dir="$jd_with_z_arg"/lib
7954    ;;
7955 esac
7956
7957
7958# Check whether --with-zlib was given.
7959if test "${with_zlib+set}" = set; then :
7960  withval=$with_zlib; jd_with_zlib_arg=$withval
7961else
7962  jd_with_zlib_arg=unspecified
7963fi
7964
7965 case "x$jd_with_zlib_arg" in
7966   xunspecified)
7967    ;;
7968   xno)
7969    ;;
7970   x)
7971    as_fn_error $? "--with-zlib requres a value" "$LINENO" 5
7972    ;;
7973   *)
7974    jd_with_z_library="yes"
7975    jd_z_library_dir="$jd_with_zlib_arg"
7976    ;;
7977 esac
7978
7979
7980# Check whether --with-zinc was given.
7981if test "${with_zinc+set}" = set; then :
7982  withval=$with_zinc; jd_with_zinc_arg=$withval
7983else
7984  jd_with_zinc_arg=unspecified
7985fi
7986
7987 case "x$jd_with_zinc_arg" in
7988   x)
7989     as_fn_error $? "--with-zinc requres a value" "$LINENO" 5
7990     ;;
7991   xunspecified)
7992     ;;
7993   xno)
7994     ;;
7995   *)
7996    jd_with_z_library="yes"
7997    jd_z_include_dir="$jd_with_zinc_arg"
7998   ;;
7999 esac
8000
8001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the z library and header files zlib.h" >&5
8002$as_echo_n "checking for the z library and header files zlib.h... " >&6; }
8003  if test X"$jd_with_z_library" != Xno
8004  then
8005    jd_z_inc_file=zlib.h
8006
8007    if test "X$jd_z_inc_file" = "X"
8008    then
8009       jd_z_inc_file=z.h
8010    fi
8011
8012    if test X"$jd_z_include_dir" = X
8013    then
8014      inc_and_lib_dirs="\
8015         $jd_prefix_incdir,$jd_prefix_libdir \
8016	 /usr/local/z/include,/usr/local/z/lib \
8017	 /usr/local/include/z,/usr/local/lib \
8018	 /usr/local/include,/usr/local/lib \
8019	 $JD_SYS_INCLIBS \
8020	 /usr/include/z,/usr/lib \
8021	 /usr/z/include,/usr/z/lib \
8022	 /usr/include,/usr/lib \
8023	 /opt/include/z,/opt/lib \
8024	 /opt/z/include,/opt/z/lib \
8025	 /opt/include,/opt/lib"
8026
8027      if test X != X
8028      then
8029        inc_and_lib_dirs="/include,/lib $inc_and_lib_dirs"
8030      fi
8031
8032      case "$host_os" in
8033         *darwin* )
8034	   exts="dylib so a"
8035	   ;;
8036	 *cygwin* )
8037	   exts="dll.a so a"
8038	   ;;
8039	 * )
8040	   exts="so a"
8041      esac
8042
8043      xincfile="$jd_z_inc_file"
8044      xlibfile="libz"
8045      jd_with_z_library="no"
8046
8047      for include_and_lib in $inc_and_lib_dirs
8048      do
8049        # Yuk.  Is there a better way to set these variables??
8050        xincdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $1}'`
8051	xlibdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $2}'`
8052	found=0
8053	if test -r $xincdir/$xincfile
8054	then
8055	  for E in $exts
8056	  do
8057	    if test -r "$xlibdir/$xlibfile.$E"
8058	    then
8059	      jd_z_include_dir="$xincdir"
8060	      jd_z_library_dir="$xlibdir"
8061	      jd_with_z_library="yes"
8062	      found=1
8063	      break
8064	    fi
8065	  done
8066	fi
8067	if test $found -eq 1
8068	then
8069	  break
8070	fi
8071      done
8072    fi
8073  fi
8074
8075  if test X"$jd_z_include_dir" != X -a X"$jd_z_library_dir" != X
8076  then
8077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: $jd_z_library_dir and $jd_z_include_dir" >&5
8078$as_echo "yes: $jd_z_library_dir and $jd_z_include_dir" >&6; }
8079    jd_with_z_library="yes"
8080            Z_LIB=-L$jd_z_library_dir
8081    Z_LIB_DIR=$jd_z_library_dir
8082    if test "X$jd_z_library_dir" = "X/usr/lib" -o "X$jd_z_include_dir" = "X/usr/include"
8083    then
8084      Z_LIB=""
8085    else
8086
8087if test "X$jd_z_library_dir" != "X"
8088then
8089  if test "X$RPATH" = "X"
8090  then
8091
8092case "$host_os" in
8093  *linux*|*solaris* )
8094    if test "X$GCC" = Xyes
8095    then
8096      if test "X$ac_R_nospace" = "Xno"
8097      then
8098        RPATH="-Wl,-R,"
8099      else
8100        RPATH="-Wl,-R"
8101      fi
8102    else
8103      if test "X$ac_R_nospace" = "Xno"
8104      then
8105        RPATH="-R "
8106      else
8107	RPATH="-R"
8108      fi
8109    fi
8110  ;;
8111  *osf*|*openbsd*|*freebsd*)
8112    if test "X$GCC" = Xyes
8113    then
8114      RPATH="-Wl,-rpath,"
8115    else
8116      RPATH="-rpath "
8117    fi
8118  ;;
8119  *netbsd*)
8120    if test "X$GCC" = Xyes
8121    then
8122      RPATH="-Wl,-R"
8123    fi
8124  ;;
8125esac
8126
8127    if test "X$RPATH" != "X"
8128    then
8129      RPATH="$RPATH$jd_z_library_dir"
8130    fi
8131  else
8132    _already_there=0
8133    for X in `echo $RPATH | sed 's/:/ /g'`
8134    do
8135      if test "$X" = "$jd_z_library_dir"
8136      then
8137        _already_there=1
8138	break
8139      fi
8140    done
8141    if test $_already_there = 0
8142    then
8143      RPATH="$RPATH:$jd_z_library_dir"
8144    fi
8145  fi
8146fi
8147
8148    fi
8149
8150    Z_INC=-I$jd_z_include_dir
8151    Z_INC_DIR=$jd_z_include_dir
8152    if test "X$jd_z_include_dir" = "X/usr/include"
8153    then
8154      Z_INC=""
8155    fi
8156  else
8157    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }
8159    jd_with_z_library="no"
8160    Z_INC=""
8161    Z_LIB=""
8162    Z_INC_DIR=""
8163    Z_LIB_DIR=""
8164  fi
8165
8166
8167
8168
8169
8170if test $jd_with_z_library = yes
8171then
8172  ZLIB_MODULE="zlib-module.so"
8173
8174$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
8175
8176  extramodules="$extramodules z"
8177else
8178  ZLIB_MODULE=""
8179  missingmodules="$missingmodules z"
8180fi
8181
8182
8183#serial AM2
8184
8185
8186
8187
8188
8189ICONV_MODULE=""
8190
8191
8192
8193
8194 jd_iconv_include_dir=""
8195 jd_iconv_library_dir=""
8196 if test X"$jd_with_iconv_library" = X
8197 then
8198   jd_with_iconv_library=""
8199 fi
8200
8201
8202# Check whether --with-iconv was given.
8203if test "${with_iconv+set}" = set; then :
8204  withval=$with_iconv; jd_with_iconv_arg=$withval
8205else
8206  jd_with_iconv_arg=unspecified
8207fi
8208
8209
8210 case "x$jd_with_iconv_arg" in
8211   xno)
8212     jd_with_iconv_library="no"
8213    ;;
8214   x)
8215        jd_with_iconv_library="yes"
8216    ;;
8217   xunspecified)
8218    ;;
8219   xyes)
8220    jd_with_iconv_library="yes"
8221    ;;
8222   *)
8223    jd_with_iconv_library="yes"
8224    jd_iconv_include_dir="$jd_with_iconv_arg"/include
8225    jd_iconv_library_dir="$jd_with_iconv_arg"/lib
8226    ;;
8227 esac
8228
8229
8230# Check whether --with-iconvlib was given.
8231if test "${with_iconvlib+set}" = set; then :
8232  withval=$with_iconvlib; jd_with_iconvlib_arg=$withval
8233else
8234  jd_with_iconvlib_arg=unspecified
8235fi
8236
8237 case "x$jd_with_iconvlib_arg" in
8238   xunspecified)
8239    ;;
8240   xno)
8241    ;;
8242   x)
8243    as_fn_error $? "--with-iconvlib requres a value" "$LINENO" 5
8244    ;;
8245   *)
8246    jd_with_iconv_library="yes"
8247    jd_iconv_library_dir="$jd_with_iconvlib_arg"
8248    ;;
8249 esac
8250
8251
8252# Check whether --with-iconvinc was given.
8253if test "${with_iconvinc+set}" = set; then :
8254  withval=$with_iconvinc; jd_with_iconvinc_arg=$withval
8255else
8256  jd_with_iconvinc_arg=unspecified
8257fi
8258
8259 case "x$jd_with_iconvinc_arg" in
8260   x)
8261     as_fn_error $? "--with-iconvinc requres a value" "$LINENO" 5
8262     ;;
8263   xunspecified)
8264     ;;
8265   xno)
8266     ;;
8267   *)
8268    jd_with_iconv_library="yes"
8269    jd_iconv_include_dir="$jd_with_iconvinc_arg"
8270   ;;
8271 esac
8272
8273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the iconv library and header files " >&5
8274$as_echo_n "checking for the iconv library and header files ... " >&6; }
8275  if test X"$jd_with_iconv_library" != Xno
8276  then
8277    jd_iconv_inc_file=
8278
8279    if test "X$jd_iconv_inc_file" = "X"
8280    then
8281       jd_iconv_inc_file=iconv.h
8282    fi
8283
8284    if test X"$jd_iconv_include_dir" = X
8285    then
8286      inc_and_lib_dirs="\
8287         $jd_prefix_incdir,$jd_prefix_libdir \
8288	 /usr/local/iconv/include,/usr/local/iconv/lib \
8289	 /usr/local/include/iconv,/usr/local/lib \
8290	 /usr/local/include,/usr/local/lib \
8291	 $JD_SYS_INCLIBS \
8292	 /usr/include/iconv,/usr/lib \
8293	 /usr/iconv/include,/usr/iconv/lib \
8294	 /usr/include,/usr/lib \
8295	 /opt/include/iconv,/opt/lib \
8296	 /opt/iconv/include,/opt/iconv/lib \
8297	 /opt/include,/opt/lib"
8298
8299      if test X != X
8300      then
8301        inc_and_lib_dirs="/include,/lib $inc_and_lib_dirs"
8302      fi
8303
8304      case "$host_os" in
8305         *darwin* )
8306	   exts="dylib so a"
8307	   ;;
8308	 *cygwin* )
8309	   exts="dll.a so a"
8310	   ;;
8311	 * )
8312	   exts="so a"
8313      esac
8314
8315      xincfile="$jd_iconv_inc_file"
8316      xlibfile="libiconv"
8317      jd_with_iconv_library="no"
8318
8319      for include_and_lib in $inc_and_lib_dirs
8320      do
8321        # Yuk.  Is there a better way to set these variables??
8322        xincdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $1}'`
8323	xlibdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $2}'`
8324	found=0
8325	if test -r $xincdir/$xincfile
8326	then
8327	  for E in $exts
8328	  do
8329	    if test -r "$xlibdir/$xlibfile.$E"
8330	    then
8331	      jd_iconv_include_dir="$xincdir"
8332	      jd_iconv_library_dir="$xlibdir"
8333	      jd_with_iconv_library="yes"
8334	      found=1
8335	      break
8336	    fi
8337	  done
8338	fi
8339	if test $found -eq 1
8340	then
8341	  break
8342	fi
8343      done
8344    fi
8345  fi
8346
8347  if test X"$jd_iconv_include_dir" != X -a X"$jd_iconv_library_dir" != X
8348  then
8349    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: $jd_iconv_library_dir and $jd_iconv_include_dir" >&5
8350$as_echo "yes: $jd_iconv_library_dir and $jd_iconv_include_dir" >&6; }
8351    jd_with_iconv_library="yes"
8352            ICONV_LIB=-L$jd_iconv_library_dir
8353    ICONV_LIB_DIR=$jd_iconv_library_dir
8354    if test "X$jd_iconv_library_dir" = "X/usr/lib" -o "X$jd_iconv_include_dir" = "X/usr/include"
8355    then
8356      ICONV_LIB=""
8357    else
8358
8359if test "X$jd_iconv_library_dir" != "X"
8360then
8361  if test "X$RPATH" = "X"
8362  then
8363
8364case "$host_os" in
8365  *linux*|*solaris* )
8366    if test "X$GCC" = Xyes
8367    then
8368      if test "X$ac_R_nospace" = "Xno"
8369      then
8370        RPATH="-Wl,-R,"
8371      else
8372        RPATH="-Wl,-R"
8373      fi
8374    else
8375      if test "X$ac_R_nospace" = "Xno"
8376      then
8377        RPATH="-R "
8378      else
8379	RPATH="-R"
8380      fi
8381    fi
8382  ;;
8383  *osf*|*openbsd*|*freebsd*)
8384    if test "X$GCC" = Xyes
8385    then
8386      RPATH="-Wl,-rpath,"
8387    else
8388      RPATH="-rpath "
8389    fi
8390  ;;
8391  *netbsd*)
8392    if test "X$GCC" = Xyes
8393    then
8394      RPATH="-Wl,-R"
8395    fi
8396  ;;
8397esac
8398
8399    if test "X$RPATH" != "X"
8400    then
8401      RPATH="$RPATH$jd_iconv_library_dir"
8402    fi
8403  else
8404    _already_there=0
8405    for X in `echo $RPATH | sed 's/:/ /g'`
8406    do
8407      if test "$X" = "$jd_iconv_library_dir"
8408      then
8409        _already_there=1
8410	break
8411      fi
8412    done
8413    if test $_already_there = 0
8414    then
8415      RPATH="$RPATH:$jd_iconv_library_dir"
8416    fi
8417  fi
8418fi
8419
8420    fi
8421
8422    ICONV_INC=-I$jd_iconv_include_dir
8423    ICONV_INC_DIR=$jd_iconv_include_dir
8424    if test "X$jd_iconv_include_dir" = "X/usr/include"
8425    then
8426      ICONV_INC=""
8427    fi
8428  else
8429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430$as_echo "no" >&6; }
8431    jd_with_iconv_library="no"
8432    ICONV_INC=""
8433    ICONV_LIB=""
8434    ICONV_INC_DIR=""
8435    ICONV_LIB_DIR=""
8436  fi
8437
8438
8439
8440
8441
8442if test $jd_with_iconv_library = yes
8443then
8444  ICONV_MODULE="iconv-module.so"
8445
8446$as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
8447
8448  ICONV_LIB="$ICONV_LIB -liconv"
8449  extramodules="$extramodules iconv"
8450else
8451
8452
8453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8454$as_echo_n "checking for iconv... " >&6; }
8455if ${am_cv_func_iconv+:} false; then :
8456  $as_echo_n "(cached) " >&6
8457else
8458
8459    am_cv_func_iconv="no, consider installing GNU libiconv"
8460    am_cv_lib_iconv=no
8461    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h.  */
8463#include <stdlib.h>
8464#include <iconv.h>
8465int
8466main ()
8467{
8468iconv_t cd = iconv_open("","");
8469       iconv(cd,NULL,NULL,NULL,NULL);
8470       iconv_close(cd);
8471  ;
8472  return 0;
8473}
8474_ACEOF
8475if ac_fn_c_try_link "$LINENO"; then :
8476  am_cv_func_iconv=yes
8477fi
8478rm -f core conftest.err conftest.$ac_objext \
8479    conftest$ac_exeext conftest.$ac_ext
8480    if test "$am_cv_func_iconv" != yes; then
8481      am_save_LIBS="$LIBS"
8482      LIBS="$LIBS -liconv"
8483      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484/* end confdefs.h.  */
8485#include <stdlib.h>
8486#include <iconv.h>
8487int
8488main ()
8489{
8490iconv_t cd = iconv_open("","");
8491         iconv(cd,NULL,NULL,NULL,NULL);
8492         iconv_close(cd);
8493  ;
8494  return 0;
8495}
8496_ACEOF
8497if ac_fn_c_try_link "$LINENO"; then :
8498  am_cv_lib_iconv=yes
8499        am_cv_func_iconv=yes
8500fi
8501rm -f core conftest.err conftest.$ac_objext \
8502    conftest$ac_exeext conftest.$ac_ext
8503      LIBS="$am_save_LIBS"
8504    fi
8505
8506fi
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8508$as_echo "$am_cv_func_iconv" >&6; }
8509
8510  if test "$am_cv_func_iconv" = yes; then
8511
8512$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8513
8514    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8515$as_echo_n "checking for iconv declaration... " >&6; }
8516
8517    if ${am_cv_proto_iconv+:} false; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520
8521      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h.  */
8523
8524#include <stdlib.h>
8525#include <iconv.h>
8526extern
8527#ifdef __cplusplus
8528"C"
8529#endif
8530#if defined(__STDC__) || defined(__cplusplus)
8531size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8532#else
8533size_t iconv();
8534#endif
8535
8536int
8537main ()
8538{
8539
8540  ;
8541  return 0;
8542}
8543_ACEOF
8544if ac_fn_c_try_compile "$LINENO"; then :
8545  am_cv_proto_iconv_arg1=""
8546else
8547  am_cv_proto_iconv_arg1="const"
8548fi
8549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8551fi
8552
8553
8554    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8556         }$am_cv_proto_iconv" >&5
8557$as_echo "${ac_t:-
8558         }$am_cv_proto_iconv" >&6; }
8559
8560cat >>confdefs.h <<_ACEOF
8561#define ICONV_CONST $am_cv_proto_iconv_arg1
8562_ACEOF
8563
8564  fi
8565
8566  LIBICONV=
8567  if test "$am_cv_lib_iconv" = yes; then
8568    LIBICONV="-liconv"
8569  fi
8570
8571  if test "$am_cv_func_iconv" = yes
8572  then
8573    ICONV_MODULE="iconv-module.so"
8574    extramodules="$extramodules iconv"
8575    if test "X$am_cv_lib_iconv" = Xyes
8576    then
8577       ICONV_LIB=$LIBICONV
8578       ICONV_INC=""
8579    fi
8580  else
8581    missingmodules="$missingmodules iconv"
8582  fi
8583fi
8584
8585
8586for ac_func in sysconf
8587do :
8588  ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
8589if test "x$ac_cv_func_sysconf" = xyes; then :
8590  cat >>confdefs.h <<_ACEOF
8591#define HAVE_SYSCONF 1
8592_ACEOF
8593
8594 SYSCONF_MODULE="sysconf-module.so"
8595
8596else
8597  SYSCONF_MODULE=""
8598fi
8599done
8600
8601
8602
8603
8604 PROGRAM_HFILES=""
8605 PROGRAM_OFILES=""
8606 PROGRAM_CFILES=""
8607 PROGRAM_OBJECTS=""
8608 PROGRAM_ELFOBJECTS=""
8609 PROGRAM_OBJECT_RULES=""
8610 PROGRAM_ELF_ORULES=""
8611 if test -z "src/modules.unx"
8612 then
8613   Program_Modules=""
8614 else
8615   comment_re="^#"
8616   Program_Modules=`grep -v '$comment_re' src/modules.unx | awk '{print $1}'`
8617   Program_H_Modules=`grep -v '$comment_re' src/modules.unx | awk '{print $2}'`
8618   for program_module in $Program_H_Modules; do
8619     PROGRAM_HFILES="$PROGRAM_HFILES $program_module"
8620   done
8621 fi
8622 for program_module in $Program_Modules; do
8623   PROGRAM_OFILES="$PROGRAM_OFILES $program_module.o"
8624   PROGRAM_CFILES="$PROGRAM_CFILES $program_module.c"
8625   PROGRAM_OBJECTS="$PROGRAM_OBJECTS \$(OBJDIR)/$program_module.o"
8626   PROGRAM_ELFOBJECTS="$PROGRAM_ELFOBJECTS \$(ELFDIR)/$program_module.o"
8627 done
8628
8629
8630 for program_module in $Program_Modules; do
8631
8632PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
8633\$(OBJDIR)/$program_module.o : \$(SRCDIR)/$program_module.c \$(DOT_O_DEPS) \$(OBJ_O_DEPS) \$("$program_module"_O_DEP)
8634	cd \$(OBJDIR) && \$(COMPILE_CMD) \$("$program_module"_C_FLAGS) \$(SRCDIR)/$program_module.c
8635"
8636
8637
8638PROGRAM_ELF_ORULES="$PROGRAM_ELF_ORULES
8639\$(ELFDIR)/$program_module.o : \$(SRCDIR)/$program_module.c \$(DOT_O_DEPS) \$(ELF_O_DEPS) \$("$program_module"_O_DEP)
8640	cd \$(ELFDIR) && \$(ELFCOMPILE_CMD) \$("$program_module"_C_FLAGS) \$(SRCDIR)/$program_module.c
8641"
8642
8643 done
8644
8645
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SLANG_VERSION" >&5
8647$as_echo_n "checking SLANG_VERSION... " >&6; }
8648slang_version=`grep "^#define  *SLANG_VERSION " $srcdir/src/slang.h |
8649               awk '{ print $3 }'`
8650slang_major_version=`echo $slang_version |
8651 awk '{ print int($1/10000) }'`
8652slang_minor_version=`echo $slang_version $slang_major_version |
8653 awk '{ print int(($1 - $2*10000)/100) }'`
8654slang_micro_version=`echo $slang_version $slang_major_version $slang_minor_version |
8655 awk '{ print ($1 - $2*10000 - $3*100) }'`
8656
8657slang_version="$slang_major_version.$slang_minor_version.$slang_micro_version"
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $slang_version" >&5
8659$as_echo "$slang_version" >&6; }
8660
8661
8662
8663
8664
8665ac_config_headers="$ac_config_headers src/sysconf.h:src/config.hin"
8666
8667
8668
8669ac_config_files="$ac_config_files Makefile:autoconf/Makefile.in src/Makefile slsh/Makefile modules/Makefile demo/Makefile slang.pc:autoconf/slangpc.in"
8670
8671cat >confcache <<\_ACEOF
8672# This file is a shell script that caches the results of configure
8673# tests run on this system so they can be shared between configure
8674# scripts and configure runs, see configure's option --config-cache.
8675# It is not useful on other systems.  If it contains results you don't
8676# want to keep, you may remove or edit it.
8677#
8678# config.status only pays attention to the cache file if you give it
8679# the --recheck option to rerun configure.
8680#
8681# `ac_cv_env_foo' variables (set or unset) will be overridden when
8682# loading this file, other *unset* `ac_cv_foo' will be assigned the
8683# following values.
8684
8685_ACEOF
8686
8687# The following way of writing the cache mishandles newlines in values,
8688# but we know of no workaround that is simple, portable, and efficient.
8689# So, we kill variables containing newlines.
8690# Ultrix sh set writes to stderr and can't be redirected directly,
8691# and sets the high bit in the cache file unless we assign to the vars.
8692(
8693  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8694    eval ac_val=\$$ac_var
8695    case $ac_val in #(
8696    *${as_nl}*)
8697      case $ac_var in #(
8698      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8699$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8700      esac
8701      case $ac_var in #(
8702      _ | IFS | as_nl) ;; #(
8703      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8704      *) { eval $ac_var=; unset $ac_var;} ;;
8705      esac ;;
8706    esac
8707  done
8708
8709  (set) 2>&1 |
8710    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8711    *${as_nl}ac_space=\ *)
8712      # `set' does not quote correctly, so add quotes: double-quote
8713      # substitution turns \\\\ into \\, and sed turns \\ into \.
8714      sed -n \
8715	"s/'/'\\\\''/g;
8716	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8717      ;; #(
8718    *)
8719      # `set' quotes correctly as required by POSIX, so do not add quotes.
8720      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8721      ;;
8722    esac |
8723    sort
8724) |
8725  sed '
8726     /^ac_cv_env_/b end
8727     t clear
8728     :clear
8729     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8730     t end
8731     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8732     :end' >>confcache
8733if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8734  if test -w "$cache_file"; then
8735    if test "x$cache_file" != "x/dev/null"; then
8736      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8737$as_echo "$as_me: updating cache $cache_file" >&6;}
8738      if test ! -f "$cache_file" || test -h "$cache_file"; then
8739	cat confcache >"$cache_file"
8740      else
8741        case $cache_file in #(
8742        */* | ?:*)
8743	  mv -f confcache "$cache_file"$$ &&
8744	  mv -f "$cache_file"$$ "$cache_file" ;; #(
8745        *)
8746	  mv -f confcache "$cache_file" ;;
8747	esac
8748      fi
8749    fi
8750  else
8751    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8752$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8753  fi
8754fi
8755rm -f confcache
8756
8757test "x$prefix" = xNONE && prefix=$ac_default_prefix
8758# Let make expand exec_prefix.
8759test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8760
8761DEFS=-DHAVE_CONFIG_H
8762
8763ac_libobjs=
8764ac_ltlibobjs=
8765U=
8766for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8767  # 1. Remove the extension, and $U if already installed.
8768  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8769  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8770  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8771  #    will be set to the directory where LIBOBJS objects are built.
8772  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8773  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8774done
8775LIBOBJS=$ac_libobjs
8776
8777LTLIBOBJS=$ac_ltlibobjs
8778
8779
8780
8781: "${CONFIG_STATUS=./config.status}"
8782ac_write_fail=0
8783ac_clean_files_save=$ac_clean_files
8784ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8786$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8787as_write_fail=0
8788cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8789#! $SHELL
8790# Generated by $as_me.
8791# Run this file to recreate the current configuration.
8792# Compiler output produced by configure, useful for debugging
8793# configure, is in config.log if it exists.
8794
8795debug=false
8796ac_cs_recheck=false
8797ac_cs_silent=false
8798
8799SHELL=\${CONFIG_SHELL-$SHELL}
8800export SHELL
8801_ASEOF
8802cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8803## -------------------- ##
8804## M4sh Initialization. ##
8805## -------------------- ##
8806
8807# Be more Bourne compatible
8808DUALCASE=1; export DUALCASE # for MKS sh
8809if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8810  emulate sh
8811  NULLCMD=:
8812  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8813  # is contrary to our usage.  Disable this feature.
8814  alias -g '${1+"$@"}'='"$@"'
8815  setopt NO_GLOB_SUBST
8816else
8817  case `(set -o) 2>/dev/null` in #(
8818  *posix*) :
8819    set -o posix ;; #(
8820  *) :
8821     ;;
8822esac
8823fi
8824
8825
8826as_nl='
8827'
8828export as_nl
8829# Printing a long string crashes Solaris 7 /usr/bin/printf.
8830as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8831as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8832as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8833# Prefer a ksh shell builtin over an external printf program on Solaris,
8834# but without wasting forks for bash or zsh.
8835if test -z "$BASH_VERSION$ZSH_VERSION" \
8836    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8837  as_echo='print -r --'
8838  as_echo_n='print -rn --'
8839elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8840  as_echo='printf %s\n'
8841  as_echo_n='printf %s'
8842else
8843  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8844    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8845    as_echo_n='/usr/ucb/echo -n'
8846  else
8847    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8848    as_echo_n_body='eval
8849      arg=$1;
8850      case $arg in #(
8851      *"$as_nl"*)
8852	expr "X$arg" : "X\\(.*\\)$as_nl";
8853	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8854      esac;
8855      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8856    '
8857    export as_echo_n_body
8858    as_echo_n='sh -c $as_echo_n_body as_echo'
8859  fi
8860  export as_echo_body
8861  as_echo='sh -c $as_echo_body as_echo'
8862fi
8863
8864# The user is always right.
8865if test "${PATH_SEPARATOR+set}" != set; then
8866  PATH_SEPARATOR=:
8867  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8868    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8869      PATH_SEPARATOR=';'
8870  }
8871fi
8872
8873
8874# IFS
8875# We need space, tab and new line, in precisely that order.  Quoting is
8876# there to prevent editors from complaining about space-tab.
8877# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8878# splitting by setting IFS to empty value.)
8879IFS=" ""	$as_nl"
8880
8881# Find who we are.  Look in the path if we contain no directory separator.
8882as_myself=
8883case $0 in #((
8884  *[\\/]* ) as_myself=$0 ;;
8885  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886for as_dir in $PATH
8887do
8888  IFS=$as_save_IFS
8889  test -z "$as_dir" && as_dir=.
8890    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8891  done
8892IFS=$as_save_IFS
8893
8894     ;;
8895esac
8896# We did not find ourselves, most probably we were run as `sh COMMAND'
8897# in which case we are not to be found in the path.
8898if test "x$as_myself" = x; then
8899  as_myself=$0
8900fi
8901if test ! -f "$as_myself"; then
8902  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8903  exit 1
8904fi
8905
8906# Unset variables that we do not need and which cause bugs (e.g. in
8907# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8908# suppresses any "Segmentation fault" message there.  '((' could
8909# trigger a bug in pdksh 5.2.14.
8910for as_var in BASH_ENV ENV MAIL MAILPATH
8911do eval test x\${$as_var+set} = xset \
8912  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8913done
8914PS1='$ '
8915PS2='> '
8916PS4='+ '
8917
8918# NLS nuisances.
8919LC_ALL=C
8920export LC_ALL
8921LANGUAGE=C
8922export LANGUAGE
8923
8924# CDPATH.
8925(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8926
8927
8928# as_fn_error STATUS ERROR [LINENO LOG_FD]
8929# ----------------------------------------
8930# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8931# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8932# script with STATUS, using 1 if that was 0.
8933as_fn_error ()
8934{
8935  as_status=$1; test $as_status -eq 0 && as_status=1
8936  if test "$4"; then
8937    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8938    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8939  fi
8940  $as_echo "$as_me: error: $2" >&2
8941  as_fn_exit $as_status
8942} # as_fn_error
8943
8944
8945# as_fn_set_status STATUS
8946# -----------------------
8947# Set $? to STATUS, without forking.
8948as_fn_set_status ()
8949{
8950  return $1
8951} # as_fn_set_status
8952
8953# as_fn_exit STATUS
8954# -----------------
8955# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8956as_fn_exit ()
8957{
8958  set +e
8959  as_fn_set_status $1
8960  exit $1
8961} # as_fn_exit
8962
8963# as_fn_unset VAR
8964# ---------------
8965# Portably unset VAR.
8966as_fn_unset ()
8967{
8968  { eval $1=; unset $1;}
8969}
8970as_unset=as_fn_unset
8971# as_fn_append VAR VALUE
8972# ----------------------
8973# Append the text in VALUE to the end of the definition contained in VAR. Take
8974# advantage of any shell optimizations that allow amortized linear growth over
8975# repeated appends, instead of the typical quadratic growth present in naive
8976# implementations.
8977if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8978  eval 'as_fn_append ()
8979  {
8980    eval $1+=\$2
8981  }'
8982else
8983  as_fn_append ()
8984  {
8985    eval $1=\$$1\$2
8986  }
8987fi # as_fn_append
8988
8989# as_fn_arith ARG...
8990# ------------------
8991# Perform arithmetic evaluation on the ARGs, and store the result in the
8992# global $as_val. Take advantage of shells that can avoid forks. The arguments
8993# must be portable across $(()) and expr.
8994if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8995  eval 'as_fn_arith ()
8996  {
8997    as_val=$(( $* ))
8998  }'
8999else
9000  as_fn_arith ()
9001  {
9002    as_val=`expr "$@" || test $? -eq 1`
9003  }
9004fi # as_fn_arith
9005
9006
9007if expr a : '\(a\)' >/dev/null 2>&1 &&
9008   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9009  as_expr=expr
9010else
9011  as_expr=false
9012fi
9013
9014if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9015  as_basename=basename
9016else
9017  as_basename=false
9018fi
9019
9020if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9021  as_dirname=dirname
9022else
9023  as_dirname=false
9024fi
9025
9026as_me=`$as_basename -- "$0" ||
9027$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9028	 X"$0" : 'X\(//\)$' \| \
9029	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9030$as_echo X/"$0" |
9031    sed '/^.*\/\([^/][^/]*\)\/*$/{
9032	    s//\1/
9033	    q
9034	  }
9035	  /^X\/\(\/\/\)$/{
9036	    s//\1/
9037	    q
9038	  }
9039	  /^X\/\(\/\).*/{
9040	    s//\1/
9041	    q
9042	  }
9043	  s/.*/./; q'`
9044
9045# Avoid depending upon Character Ranges.
9046as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9048as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9049as_cr_digits='0123456789'
9050as_cr_alnum=$as_cr_Letters$as_cr_digits
9051
9052ECHO_C= ECHO_N= ECHO_T=
9053case `echo -n x` in #(((((
9054-n*)
9055  case `echo 'xy\c'` in
9056  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9057  xy)  ECHO_C='\c';;
9058  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9059       ECHO_T='	';;
9060  esac;;
9061*)
9062  ECHO_N='-n';;
9063esac
9064
9065rm -f conf$$ conf$$.exe conf$$.file
9066if test -d conf$$.dir; then
9067  rm -f conf$$.dir/conf$$.file
9068else
9069  rm -f conf$$.dir
9070  mkdir conf$$.dir 2>/dev/null
9071fi
9072if (echo >conf$$.file) 2>/dev/null; then
9073  if ln -s conf$$.file conf$$ 2>/dev/null; then
9074    as_ln_s='ln -s'
9075    # ... but there are two gotchas:
9076    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9077    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9078    # In both cases, we have to default to `cp -pR'.
9079    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9080      as_ln_s='cp -pR'
9081  elif ln conf$$.file conf$$ 2>/dev/null; then
9082    as_ln_s=ln
9083  else
9084    as_ln_s='cp -pR'
9085  fi
9086else
9087  as_ln_s='cp -pR'
9088fi
9089rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9090rmdir conf$$.dir 2>/dev/null
9091
9092
9093# as_fn_mkdir_p
9094# -------------
9095# Create "$as_dir" as a directory, including parents if necessary.
9096as_fn_mkdir_p ()
9097{
9098
9099  case $as_dir in #(
9100  -*) as_dir=./$as_dir;;
9101  esac
9102  test -d "$as_dir" || eval $as_mkdir_p || {
9103    as_dirs=
9104    while :; do
9105      case $as_dir in #(
9106      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9107      *) as_qdir=$as_dir;;
9108      esac
9109      as_dirs="'$as_qdir' $as_dirs"
9110      as_dir=`$as_dirname -- "$as_dir" ||
9111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9112	 X"$as_dir" : 'X\(//\)[^/]' \| \
9113	 X"$as_dir" : 'X\(//\)$' \| \
9114	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9115$as_echo X"$as_dir" |
9116    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9117	    s//\1/
9118	    q
9119	  }
9120	  /^X\(\/\/\)[^/].*/{
9121	    s//\1/
9122	    q
9123	  }
9124	  /^X\(\/\/\)$/{
9125	    s//\1/
9126	    q
9127	  }
9128	  /^X\(\/\).*/{
9129	    s//\1/
9130	    q
9131	  }
9132	  s/.*/./; q'`
9133      test -d "$as_dir" && break
9134    done
9135    test -z "$as_dirs" || eval "mkdir $as_dirs"
9136  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9137
9138
9139} # as_fn_mkdir_p
9140if mkdir -p . 2>/dev/null; then
9141  as_mkdir_p='mkdir -p "$as_dir"'
9142else
9143  test -d ./-p && rmdir ./-p
9144  as_mkdir_p=false
9145fi
9146
9147
9148# as_fn_executable_p FILE
9149# -----------------------
9150# Test if FILE is an executable regular file.
9151as_fn_executable_p ()
9152{
9153  test -f "$1" && test -x "$1"
9154} # as_fn_executable_p
9155as_test_x='test -x'
9156as_executable_p=as_fn_executable_p
9157
9158# Sed expression to map a string onto a valid CPP name.
9159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9160
9161# Sed expression to map a string onto a valid variable name.
9162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9163
9164
9165exec 6>&1
9166## ----------------------------------- ##
9167## Main body of $CONFIG_STATUS script. ##
9168## ----------------------------------- ##
9169_ASEOF
9170test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9171
9172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9173# Save the log message, to keep $0 and so on meaningful, and to
9174# report actual input values of CONFIG_FILES etc. instead of their
9175# values after options handling.
9176ac_log="
9177This file was extended by $as_me, which was
9178generated by GNU Autoconf 2.69.  Invocation command line was
9179
9180  CONFIG_FILES    = $CONFIG_FILES
9181  CONFIG_HEADERS  = $CONFIG_HEADERS
9182  CONFIG_LINKS    = $CONFIG_LINKS
9183  CONFIG_COMMANDS = $CONFIG_COMMANDS
9184  $ $0 $@
9185
9186on `(hostname || uname -n) 2>/dev/null | sed 1q`
9187"
9188
9189_ACEOF
9190
9191case $ac_config_files in *"
9192"*) set x $ac_config_files; shift; ac_config_files=$*;;
9193esac
9194
9195case $ac_config_headers in *"
9196"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9197esac
9198
9199
9200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9201# Files that config.status was made for.
9202config_files="$ac_config_files"
9203config_headers="$ac_config_headers"
9204
9205_ACEOF
9206
9207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9208ac_cs_usage="\
9209\`$as_me' instantiates files and other configuration actions
9210from templates according to the current configuration.  Unless the files
9211and actions are specified as TAGs, all are instantiated by default.
9212
9213Usage: $0 [OPTION]... [TAG]...
9214
9215  -h, --help       print this help, then exit
9216  -V, --version    print version number and configuration settings, then exit
9217      --config     print configuration, then exit
9218  -q, --quiet, --silent
9219                   do not print progress messages
9220  -d, --debug      don't remove temporary files
9221      --recheck    update $as_me by reconfiguring in the same conditions
9222      --file=FILE[:TEMPLATE]
9223                   instantiate the configuration file FILE
9224      --header=FILE[:TEMPLATE]
9225                   instantiate the configuration header FILE
9226
9227Configuration files:
9228$config_files
9229
9230Configuration headers:
9231$config_headers
9232
9233Report bugs to the package provider."
9234
9235_ACEOF
9236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9237ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9238ac_cs_version="\\
9239config.status
9240configured by $0, generated by GNU Autoconf 2.69,
9241  with options \\"\$ac_cs_config\\"
9242
9243Copyright (C) 2012 Free Software Foundation, Inc.
9244This config.status script is free software; the Free Software Foundation
9245gives unlimited permission to copy, distribute and modify it."
9246
9247ac_pwd='$ac_pwd'
9248srcdir='$srcdir'
9249INSTALL='$INSTALL'
9250test -n "\$AWK" || AWK=awk
9251_ACEOF
9252
9253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9254# The default lists apply if the user does not specify any file.
9255ac_need_defaults=:
9256while test $# != 0
9257do
9258  case $1 in
9259  --*=?*)
9260    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9261    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9262    ac_shift=:
9263    ;;
9264  --*=)
9265    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9266    ac_optarg=
9267    ac_shift=:
9268    ;;
9269  *)
9270    ac_option=$1
9271    ac_optarg=$2
9272    ac_shift=shift
9273    ;;
9274  esac
9275
9276  case $ac_option in
9277  # Handling of the options.
9278  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9279    ac_cs_recheck=: ;;
9280  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9281    $as_echo "$ac_cs_version"; exit ;;
9282  --config | --confi | --conf | --con | --co | --c )
9283    $as_echo "$ac_cs_config"; exit ;;
9284  --debug | --debu | --deb | --de | --d | -d )
9285    debug=: ;;
9286  --file | --fil | --fi | --f )
9287    $ac_shift
9288    case $ac_optarg in
9289    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9290    '') as_fn_error $? "missing file argument" ;;
9291    esac
9292    as_fn_append CONFIG_FILES " '$ac_optarg'"
9293    ac_need_defaults=false;;
9294  --header | --heade | --head | --hea )
9295    $ac_shift
9296    case $ac_optarg in
9297    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9298    esac
9299    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9300    ac_need_defaults=false;;
9301  --he | --h)
9302    # Conflict between --help and --header
9303    as_fn_error $? "ambiguous option: \`$1'
9304Try \`$0 --help' for more information.";;
9305  --help | --hel | -h )
9306    $as_echo "$ac_cs_usage"; exit ;;
9307  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9308  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9309    ac_cs_silent=: ;;
9310
9311  # This is an error.
9312  -*) as_fn_error $? "unrecognized option: \`$1'
9313Try \`$0 --help' for more information." ;;
9314
9315  *) as_fn_append ac_config_targets " $1"
9316     ac_need_defaults=false ;;
9317
9318  esac
9319  shift
9320done
9321
9322ac_configure_extra_args=
9323
9324if $ac_cs_silent; then
9325  exec 6>/dev/null
9326  ac_configure_extra_args="$ac_configure_extra_args --silent"
9327fi
9328
9329_ACEOF
9330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9331if \$ac_cs_recheck; then
9332  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9333  shift
9334  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9335  CONFIG_SHELL='$SHELL'
9336  export CONFIG_SHELL
9337  exec "\$@"
9338fi
9339
9340_ACEOF
9341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9342exec 5>>config.log
9343{
9344  echo
9345  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9346## Running $as_me. ##
9347_ASBOX
9348  $as_echo "$ac_log"
9349} >&5
9350
9351_ACEOF
9352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9353_ACEOF
9354
9355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9356
9357# Handling of arguments.
9358for ac_config_target in $ac_config_targets
9359do
9360  case $ac_config_target in
9361    "src/sysconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/sysconf.h:src/config.hin" ;;
9362    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:autoconf/Makefile.in" ;;
9363    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9364    "slsh/Makefile") CONFIG_FILES="$CONFIG_FILES slsh/Makefile" ;;
9365    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
9366    "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
9367    "slang.pc") CONFIG_FILES="$CONFIG_FILES slang.pc:autoconf/slangpc.in" ;;
9368
9369  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9370  esac
9371done
9372
9373
9374# If the user did not use the arguments to specify the items to instantiate,
9375# then the envvar interface is used.  Set only those that are not.
9376# We use the long form for the default assignment because of an extremely
9377# bizarre bug on SunOS 4.1.3.
9378if $ac_need_defaults; then
9379  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9380  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9381fi
9382
9383# Have a temporary directory for convenience.  Make it in the build tree
9384# simply because there is no reason against having it here, and in addition,
9385# creating and moving files from /tmp can sometimes cause problems.
9386# Hook for its removal unless debugging.
9387# Note that there is a small window in which the directory will not be cleaned:
9388# after its creation but before its name has been assigned to `$tmp'.
9389$debug ||
9390{
9391  tmp= ac_tmp=
9392  trap 'exit_status=$?
9393  : "${ac_tmp:=$tmp}"
9394  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9395' 0
9396  trap 'as_fn_exit 1' 1 2 13 15
9397}
9398# Create a (secure) tmp directory for tmp files.
9399
9400{
9401  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9402  test -d "$tmp"
9403}  ||
9404{
9405  tmp=./conf$$-$RANDOM
9406  (umask 077 && mkdir "$tmp")
9407} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9408ac_tmp=$tmp
9409
9410# Set up the scripts for CONFIG_FILES section.
9411# No need to generate them if there are no CONFIG_FILES.
9412# This happens for instance with `./config.status config.h'.
9413if test -n "$CONFIG_FILES"; then
9414
9415
9416ac_cr=`echo X | tr X '\015'`
9417# On cygwin, bash can eat \r inside `` if the user requested igncr.
9418# But we know of no other shell where ac_cr would be empty at this
9419# point, so we can use a bashism as a fallback.
9420if test "x$ac_cr" = x; then
9421  eval ac_cr=\$\'\\r\'
9422fi
9423ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9424if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9425  ac_cs_awk_cr='\\r'
9426else
9427  ac_cs_awk_cr=$ac_cr
9428fi
9429
9430echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9431_ACEOF
9432
9433
9434{
9435  echo "cat >conf$$subs.awk <<_ACEOF" &&
9436  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9437  echo "_ACEOF"
9438} >conf$$subs.sh ||
9439  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9440ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9441ac_delim='%!_!# '
9442for ac_last_try in false false false false false :; do
9443  . ./conf$$subs.sh ||
9444    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9445
9446  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9447  if test $ac_delim_n = $ac_delim_num; then
9448    break
9449  elif $ac_last_try; then
9450    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9451  else
9452    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9453  fi
9454done
9455rm -f conf$$subs.sh
9456
9457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9458cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9459_ACEOF
9460sed -n '
9461h
9462s/^/S["/; s/!.*/"]=/
9463p
9464g
9465s/^[^!]*!//
9466:repl
9467t repl
9468s/'"$ac_delim"'$//
9469t delim
9470:nl
9471h
9472s/\(.\{148\}\)..*/\1/
9473t more1
9474s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9475p
9476n
9477b repl
9478:more1
9479s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9480p
9481g
9482s/.\{148\}//
9483t nl
9484:delim
9485h
9486s/\(.\{148\}\)..*/\1/
9487t more2
9488s/["\\]/\\&/g; s/^/"/; s/$/"/
9489p
9490b
9491:more2
9492s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9493p
9494g
9495s/.\{148\}//
9496t delim
9497' <conf$$subs.awk | sed '
9498/^[^""]/{
9499  N
9500  s/\n//
9501}
9502' >>$CONFIG_STATUS || ac_write_fail=1
9503rm -f conf$$subs.awk
9504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9505_ACAWK
9506cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9507  for (key in S) S_is_set[key] = 1
9508  FS = ""
9509
9510}
9511{
9512  line = $ 0
9513  nfields = split(line, field, "@")
9514  substed = 0
9515  len = length(field[1])
9516  for (i = 2; i < nfields; i++) {
9517    key = field[i]
9518    keylen = length(key)
9519    if (S_is_set[key]) {
9520      value = S[key]
9521      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9522      len += length(value) + length(field[++i])
9523      substed = 1
9524    } else
9525      len += 1 + keylen
9526  }
9527
9528  print line
9529}
9530
9531_ACAWK
9532_ACEOF
9533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9534if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9535  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9536else
9537  cat
9538fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9539  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9540_ACEOF
9541
9542# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9543# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9544# trailing colons and then remove the whole line if VPATH becomes empty
9545# (actually we leave an empty line to preserve line numbers).
9546if test "x$srcdir" = x.; then
9547  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
9548h
9549s///
9550s/^/:/
9551s/[	 ]*$/:/
9552s/:\$(srcdir):/:/g
9553s/:\${srcdir}:/:/g
9554s/:@srcdir@:/:/g
9555s/^:*//
9556s/:*$//
9557x
9558s/\(=[	 ]*\).*/\1/
9559G
9560s/\n//
9561s/^[^=]*=[	 ]*$//
9562}'
9563fi
9564
9565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9566fi # test -n "$CONFIG_FILES"
9567
9568# Set up the scripts for CONFIG_HEADERS section.
9569# No need to generate them if there are no CONFIG_HEADERS.
9570# This happens for instance with `./config.status Makefile'.
9571if test -n "$CONFIG_HEADERS"; then
9572cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9573BEGIN {
9574_ACEOF
9575
9576# Transform confdefs.h into an awk script `defines.awk', embedded as
9577# here-document in config.status, that substitutes the proper values into
9578# config.h.in to produce config.h.
9579
9580# Create a delimiter string that does not exist in confdefs.h, to ease
9581# handling of long lines.
9582ac_delim='%!_!# '
9583for ac_last_try in false false :; do
9584  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9585  if test -z "$ac_tt"; then
9586    break
9587  elif $ac_last_try; then
9588    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9589  else
9590    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9591  fi
9592done
9593
9594# For the awk script, D is an array of macro values keyed by name,
9595# likewise P contains macro parameters if any.  Preserve backslash
9596# newline sequences.
9597
9598ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9599sed -n '
9600s/.\{148\}/&'"$ac_delim"'/g
9601t rset
9602:rset
9603s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
9604t def
9605d
9606:def
9607s/\\$//
9608t bsnl
9609s/["\\]/\\&/g
9610s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9611D["\1"]=" \3"/p
9612s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
9613d
9614:bsnl
9615s/["\\]/\\&/g
9616s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9617D["\1"]=" \3\\\\\\n"\\/p
9618t cont
9619s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9620t cont
9621d
9622:cont
9623n
9624s/.\{148\}/&'"$ac_delim"'/g
9625t clear
9626:clear
9627s/\\$//
9628t bsnlc
9629s/["\\]/\\&/g; s/^/"/; s/$/"/p
9630d
9631:bsnlc
9632s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9633b cont
9634' <confdefs.h | sed '
9635s/'"$ac_delim"'/"\\\
9636"/g' >>$CONFIG_STATUS || ac_write_fail=1
9637
9638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9639  for (key in D) D_is_set[key] = 1
9640  FS = ""
9641}
9642/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9643  line = \$ 0
9644  split(line, arg, " ")
9645  if (arg[1] == "#") {
9646    defundef = arg[2]
9647    mac1 = arg[3]
9648  } else {
9649    defundef = substr(arg[1], 2)
9650    mac1 = arg[2]
9651  }
9652  split(mac1, mac2, "(") #)
9653  macro = mac2[1]
9654  prefix = substr(line, 1, index(line, defundef) - 1)
9655  if (D_is_set[macro]) {
9656    # Preserve the white space surrounding the "#".
9657    print prefix "define", macro P[macro] D[macro]
9658    next
9659  } else {
9660    # Replace #undef with comments.  This is necessary, for example,
9661    # in the case of _POSIX_SOURCE, which is predefined and required
9662    # on some systems where configure will not decide to define it.
9663    if (defundef == "undef") {
9664      print "/*", prefix defundef, macro, "*/"
9665      next
9666    }
9667  }
9668}
9669{ print }
9670_ACAWK
9671_ACEOF
9672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9673  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9674fi # test -n "$CONFIG_HEADERS"
9675
9676
9677eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
9678shift
9679for ac_tag
9680do
9681  case $ac_tag in
9682  :[FHLC]) ac_mode=$ac_tag; continue;;
9683  esac
9684  case $ac_mode$ac_tag in
9685  :[FHL]*:*);;
9686  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9687  :[FH]-) ac_tag=-:-;;
9688  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9689  esac
9690  ac_save_IFS=$IFS
9691  IFS=:
9692  set x $ac_tag
9693  IFS=$ac_save_IFS
9694  shift
9695  ac_file=$1
9696  shift
9697
9698  case $ac_mode in
9699  :L) ac_source=$1;;
9700  :[FH])
9701    ac_file_inputs=
9702    for ac_f
9703    do
9704      case $ac_f in
9705      -) ac_f="$ac_tmp/stdin";;
9706      *) # Look for the file first in the build tree, then in the source tree
9707	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
9708	 # because $ac_f cannot contain `:'.
9709	 test -f "$ac_f" ||
9710	   case $ac_f in
9711	   [\\/$]*) false;;
9712	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9713	   esac ||
9714	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9715      esac
9716      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9717      as_fn_append ac_file_inputs " '$ac_f'"
9718    done
9719
9720    # Let's still pretend it is `configure' which instantiates (i.e., don't
9721    # use $as_me), people would be surprised to read:
9722    #    /* config.h.  Generated by config.status.  */
9723    configure_input='Generated from '`
9724	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9725	`' by configure.'
9726    if test x"$ac_file" != x-; then
9727      configure_input="$ac_file.  $configure_input"
9728      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9729$as_echo "$as_me: creating $ac_file" >&6;}
9730    fi
9731    # Neutralize special characters interpreted by sed in replacement strings.
9732    case $configure_input in #(
9733    *\&* | *\|* | *\\* )
9734       ac_sed_conf_input=`$as_echo "$configure_input" |
9735       sed 's/[\\\\&|]/\\\\&/g'`;; #(
9736    *) ac_sed_conf_input=$configure_input;;
9737    esac
9738
9739    case $ac_tag in
9740    *:-:* | *:-) cat >"$ac_tmp/stdin" \
9741      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9742    esac
9743    ;;
9744  esac
9745
9746  ac_dir=`$as_dirname -- "$ac_file" ||
9747$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9748	 X"$ac_file" : 'X\(//\)[^/]' \| \
9749	 X"$ac_file" : 'X\(//\)$' \| \
9750	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9751$as_echo X"$ac_file" |
9752    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9753	    s//\1/
9754	    q
9755	  }
9756	  /^X\(\/\/\)[^/].*/{
9757	    s//\1/
9758	    q
9759	  }
9760	  /^X\(\/\/\)$/{
9761	    s//\1/
9762	    q
9763	  }
9764	  /^X\(\/\).*/{
9765	    s//\1/
9766	    q
9767	  }
9768	  s/.*/./; q'`
9769  as_dir="$ac_dir"; as_fn_mkdir_p
9770  ac_builddir=.
9771
9772case "$ac_dir" in
9773.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9774*)
9775  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9776  # A ".." for each directory in $ac_dir_suffix.
9777  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9778  case $ac_top_builddir_sub in
9779  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9780  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9781  esac ;;
9782esac
9783ac_abs_top_builddir=$ac_pwd
9784ac_abs_builddir=$ac_pwd$ac_dir_suffix
9785# for backward compatibility:
9786ac_top_builddir=$ac_top_build_prefix
9787
9788case $srcdir in
9789  .)  # We are building in place.
9790    ac_srcdir=.
9791    ac_top_srcdir=$ac_top_builddir_sub
9792    ac_abs_top_srcdir=$ac_pwd ;;
9793  [\\/]* | ?:[\\/]* )  # Absolute name.
9794    ac_srcdir=$srcdir$ac_dir_suffix;
9795    ac_top_srcdir=$srcdir
9796    ac_abs_top_srcdir=$srcdir ;;
9797  *) # Relative name.
9798    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9799    ac_top_srcdir=$ac_top_build_prefix$srcdir
9800    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9801esac
9802ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9803
9804
9805  case $ac_mode in
9806  :F)
9807  #
9808  # CONFIG_FILE
9809  #
9810
9811  case $INSTALL in
9812  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9813  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9814  esac
9815_ACEOF
9816
9817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9818# If the template does not know about datarootdir, expand it.
9819# FIXME: This hack should be removed a few years after 2.60.
9820ac_datarootdir_hack=; ac_datarootdir_seen=
9821ac_sed_dataroot='
9822/datarootdir/ {
9823  p
9824  q
9825}
9826/@datadir@/p
9827/@docdir@/p
9828/@infodir@/p
9829/@localedir@/p
9830/@mandir@/p'
9831case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9832*datarootdir*) ac_datarootdir_seen=yes;;
9833*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9834  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9835$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9836_ACEOF
9837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9838  ac_datarootdir_hack='
9839  s&@datadir@&$datadir&g
9840  s&@docdir@&$docdir&g
9841  s&@infodir@&$infodir&g
9842  s&@localedir@&$localedir&g
9843  s&@mandir@&$mandir&g
9844  s&\\\${datarootdir}&$datarootdir&g' ;;
9845esac
9846_ACEOF
9847
9848# Neutralize VPATH when `$srcdir' = `.'.
9849# Shell code in configure.ac might set extrasub.
9850# FIXME: do we really want to maintain this feature?
9851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9852ac_sed_extra="$ac_vpsub
9853$extrasub
9854_ACEOF
9855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9856:t
9857/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9858s|@configure_input@|$ac_sed_conf_input|;t t
9859s&@top_builddir@&$ac_top_builddir_sub&;t t
9860s&@top_build_prefix@&$ac_top_build_prefix&;t t
9861s&@srcdir@&$ac_srcdir&;t t
9862s&@abs_srcdir@&$ac_abs_srcdir&;t t
9863s&@top_srcdir@&$ac_top_srcdir&;t t
9864s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9865s&@builddir@&$ac_builddir&;t t
9866s&@abs_builddir@&$ac_abs_builddir&;t t
9867s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9868s&@INSTALL@&$ac_INSTALL&;t t
9869$ac_datarootdir_hack
9870"
9871eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9872  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9873
9874test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9875  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9876  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
9877      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9878  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9879which seems to be undefined.  Please make sure it is defined" >&5
9880$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9881which seems to be undefined.  Please make sure it is defined" >&2;}
9882
9883  rm -f "$ac_tmp/stdin"
9884  case $ac_file in
9885  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9886  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9887  esac \
9888  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9889 ;;
9890  :H)
9891  #
9892  # CONFIG_HEADER
9893  #
9894  if test x"$ac_file" != x-; then
9895    {
9896      $as_echo "/* $configure_input  */" \
9897      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9898    } >"$ac_tmp/config.h" \
9899      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9900    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9901      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9902$as_echo "$as_me: $ac_file is unchanged" >&6;}
9903    else
9904      rm -f "$ac_file"
9905      mv "$ac_tmp/config.h" "$ac_file" \
9906	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9907    fi
9908  else
9909    $as_echo "/* $configure_input  */" \
9910      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9911      || as_fn_error $? "could not create -" "$LINENO" 5
9912  fi
9913 ;;
9914
9915
9916  esac
9917
9918done # for ac_tag
9919
9920
9921as_fn_exit 0
9922_ACEOF
9923ac_clean_files=$ac_clean_files_save
9924
9925test $ac_write_fail = 0 ||
9926  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9927
9928
9929# configure is writing to config.log, and then calls config.status.
9930# config.status does its own redirection, appending to config.log.
9931# Unfortunately, on DOS this fails, as config.log is still kept open
9932# by configure, so config.status won't be able to write to it; its
9933# output is simply discarded.  So we exec the FD to /dev/null,
9934# effectively closing config.log, so it can be properly (re)opened and
9935# appended to by config.status.  When coming back to configure, we
9936# need to make the FD available again.
9937if test "$no_create" != yes; then
9938  ac_cs_success=:
9939  ac_config_status_args=
9940  test "$silent" = yes &&
9941    ac_config_status_args="$ac_config_status_args --quiet"
9942  exec 5>/dev/null
9943  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9944  exec 5>>config.log
9945  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9946  # would make configure fail if this is the last instruction.
9947  $ac_cs_success || as_fn_exit 1
9948fi
9949if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9950  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9951$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9952fi
9953
9954
9955
9956PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
9957calc : \$(OBJDIR)/calc
9958	@echo calc created in \$(OBJDIR)
9959\$(OBJDIR)/calc : \$(OBJDIR)/calc.o \$("calc"_DEPS) \$(EXECDEPS)
9960	\$(CC) -o \$(OBJDIR)/calc \$(LDFLAGS) \$(OBJDIR)/calc.o \$("calc"_LIBS) \$(EXECLIBS)
9961\$(OBJDIR)/calc.o : \$(SRCDIR)/calc.c \$(DOT_O_DEPS) \$("calc"_O_DEP)
9962	cd \$(OBJDIR) && \$(COMPILE_CMD) \$("calc"_INC) \$(EXECINC) \$(SRCDIR)/calc.c
9963"
9964
9965
9966PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
9967untic : \$(OBJDIR)/untic
9968	@echo untic created in \$(OBJDIR)
9969\$(OBJDIR)/untic : \$(OBJDIR)/untic.o \$("untic"_DEPS) \$(EXECDEPS)
9970	\$(CC) -o \$(OBJDIR)/untic \$(LDFLAGS) \$(OBJDIR)/untic.o \$("untic"_LIBS) \$(EXECLIBS)
9971\$(OBJDIR)/untic.o : \$(SRCDIR)/untic.c \$(DOT_O_DEPS) \$("untic"_O_DEP)
9972	cd \$(OBJDIR) && \$(COMPILE_CMD) \$("untic"_INC) \$(EXECINC) \$(SRCDIR)/untic.c
9973"
9974
9975
9976 echo "$PROGRAM_OBJECT_RULES" >> src/Makefile
9977
9978
9979 echo "$PROGRAM_ELF_ORULES" >> src/Makefile
9980
9981
9982echo ""
9983echo "Configuration complete.  You may need to edit src/Makefile."
9984echo "You are compiling SLANG with the following compiler configuration:"
9985echo "       CC =" "$CC"
9986echo "   CFLAGS =" "$CFLAGS"
9987echo "  LDFLAGS =" "$LDFLAGS $DYNAMIC_LINK_FLAGS"
9988echo ""
9989echo "   ELF_CC =" "$ELF_CC"
9990echo " ELF_LINK =" "$ELF_LINK"
9991echo "ELF_CFLAGS=" "$ELF_CFLAGS"
9992echo ""
9993echo "                  prefix:" "$prefix"
9994echo "             exec_prefix:" "$exec_prefix"
9995echo "    Installation Lib Dir:" "$libdir"
9996echo "Installation Include Dir:" "$includedir"
9997echo ""
9998echo "See also src/sl-feat.h for various features."
9999
10000echo ""
10001echo "The following modules that depend upon external libraries will be built:"
10002echo "  $extramodules"
10003echo ""
10004if test "X$missingmodules" != "X"
10005then
10006  echo ""
10007  echo "While not required, it is recommended that you install the following"
10008  echo "libraries and reconfigure so that the corresponding modules can be built:"
10009  echo "  $missingmodules"
10010  echo ""
10011fi
10012echo "Type 'make' to build a shared version of the library."
10013echo "Type 'make help' for more options"
10014echo ""
10015