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