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