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