Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for pspg 0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and
274 $0: [email protected] about your system, including
275 $0: any error possibly output before this message. Then
276 $0: install a modern shell, or manually run the script
277 $0: under such a shell if you do have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='pspg'
606 PACKAGE_TARNAME='pspg'
607 PACKAGE_VERSION='0'
608 PACKAGE_STRING='pspg 0'
609 PACKAGE_BUGREPORT='[email protected]'
610 PACKAGE_URL=''
611
612 ac_unique_file="src"
613 # Factoring default headers for most tests.
614 ac_includes_default="\
615 #include <stddef.h>
616 #ifdef HAVE_STDIO_H
617 # include <stdio.h>
618 #endif
619 #ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 #endif
622 #ifdef HAVE_STRING_H
623 # include <string.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_STRINGS_H
632 # include <strings.h>
633 #endif
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef HAVE_UNISTD_H
641 # include <unistd.h>
642 #endif"
643
644 ac_header_c_list=
645 ac_subst_vars='LTLIBOBJS
646 LIBOBJS
647 POSTGRESQL_CFLAGS
648 COMPILE_MENU
649 COVERAGE_LDFLAGS
650 COVERAGE_CFLAGS
651 enable_debug
652 POSTGRESQL_LIBS
653 POSTGRESQL_VERSION
654 AWK
655 POSTGRESQL_LDFLAGS
656 POSTGRESQL_LIBFLAGS
657 POSTGRESQL_CPPFLAGS
658 PANEL_LIBS
659 PKG_CONFIG_LIBDIR
660 PKG_CONFIG_PATH
661 PKG_CONFIG
662 CURSES_CFLAGS
663 CURSES_LIBS
664 DEBUG_CFLAGS
665 EGREP
666 GREP
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
673 CC
674 target_alias
675 host_alias
676 build_alias
677 LIBS
678 ECHO_T
679 ECHO_N
680 ECHO_C
681 DEFS
682 mandir
683 localedir
684 libdir
685 psdir
686 pdfdir
687 dvidir
688 htmldir
689 infodir
690 docdir
691 oldincludedir
692 includedir
693 runstatedir
694 localstatedir
695 sharedstatedir
696 sysconfdir
697 datadir
698 datarootdir
699 libexecdir
700 sbindir
701 bindir
702 program_transform_name
703 prefix
704 exec_prefix
705 PACKAGE_URL
706 PACKAGE_BUGREPORT
707 PACKAGE_STRING
708 PACKAGE_VERSION
709 PACKAGE_TARNAME
710 PACKAGE_NAME
711 PATH_SEPARATOR
712 SHELL'
713 ac_subst_files=''
714 ac_user_opts='
715 enable_option_checking
716 enable_debug
717 with_ncurses
718 with_ncursesw
719 with_postgresql
720 with_menu
721 with_inotify
722 '
723 ac_precious_vars='build_alias
724 host_alias
725 target_alias
726 CC
727 CFLAGS
728 LDFLAGS
729 LIBS
730 CPPFLAGS
731 CURSES_LIBS
732 CURSES_CFLAGS
733 PKG_CONFIG
734 PKG_CONFIG_PATH
735 PKG_CONFIG_LIBDIR
736 PANEL_LIBS
737 POSTGRESQL_CPPFLAGS
738 POSTGRESQL_LIBFLAGS
739 POSTGRESQL_LDFLAGS'
740
741
742 # Initialize some variables set by options.
743 ac_init_help=
744 ac_init_version=false
745 ac_unrecognized_opts=
746 ac_unrecognized_sep=
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
749 cache_file=/dev/null
750 exec_prefix=NONE
751 no_create=
752 no_recursion=
753 prefix=NONE
754 program_prefix=NONE
755 program_suffix=NONE
756 program_transform_name=s,x,x,
757 silent=
758 site=
759 srcdir=
760 verbose=
761 x_includes=NONE
762 x_libraries=NONE
763
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 runstatedir='${localstatedir}/run'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
790
791 ac_prev=
792 ac_dashdash=
793 for ac_option
794 do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *=) ac_optarg= ;;
805 *) ac_optarg=yes ;;
806 esac
807
808 case $ac_dashdash$ac_option in
809 --)
810 ac_dashdash=yes ;;
811
812 -bindir | --bindir | --bindi | --bind | --bin | --bi)
813 ac_prev=bindir ;;
814 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 bindir=$ac_optarg ;;
816
817 -build | --build | --buil | --bui | --bu)
818 ac_prev=build_alias ;;
819 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820 build_alias=$ac_optarg ;;
821
822 -cache-file | --cache-file | --cache-fil | --cache-fi \
823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824 ac_prev=cache_file ;;
825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827 cache_file=$ac_optarg ;;
828
829 --config-cache | -C)
830 cache_file=config.cache ;;
831
832 -datadir | --datadir | --datadi | --datad)
833 ac_prev=datadir ;;
834 -datadir=* | --datadir=* | --datadi=* | --datad=*)
835 datadir=$ac_optarg ;;
836
837 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838 | --dataroo | --dataro | --datar)
839 ac_prev=datarootdir ;;
840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842 datarootdir=$ac_optarg ;;
843
844 -disable-* | --disable-*)
845 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
848 as_fn_error $? "invalid feature name: '$ac_useropt'"
849 ac_useropt_orig=$ac_useropt
850 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
851 case $ac_user_opts in
852 *"
853 "enable_$ac_useropt"
854 "*) ;;
855 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
856 ac_unrecognized_sep=', ';;
857 esac
858 eval enable_$ac_useropt=no ;;
859
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
864
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
869
870 -enable-* | --enable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 as_fn_error $? "invalid feature name: '$ac_useropt'"
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
878 *"
879 "enable_$ac_useropt"
880 "*) ;;
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
883 esac
884 eval enable_$ac_useropt=\$ac_optarg ;;
885
886 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
887 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
888 | --exec | --exe | --ex)
889 ac_prev=exec_prefix ;;
890 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
891 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
892 | --exec=* | --exe=* | --ex=*)
893 exec_prefix=$ac_optarg ;;
894
895 -gas | --gas | --ga | --g)
896 # Obsolete; use --with-gas.
897 with_gas=yes ;;
898
899 -help | --help | --hel | --he | -h)
900 ac_init_help=long ;;
901 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
902 ac_init_help=recursive ;;
903 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
904 ac_init_help=short ;;
905
906 -host | --host | --hos | --ho)
907 ac_prev=host_alias ;;
908 -host=* | --host=* | --hos=* | --ho=*)
909 host_alias=$ac_optarg ;;
910
911 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912 ac_prev=htmldir ;;
913 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914 | --ht=*)
915 htmldir=$ac_optarg ;;
916
917 -includedir | --includedir | --includedi | --included | --include \
918 | --includ | --inclu | --incl | --inc)
919 ac_prev=includedir ;;
920 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
921 | --includ=* | --inclu=* | --incl=* | --inc=*)
922 includedir=$ac_optarg ;;
923
924 -infodir | --infodir | --infodi | --infod | --info | --inf)
925 ac_prev=infodir ;;
926 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
927 infodir=$ac_optarg ;;
928
929 -libdir | --libdir | --libdi | --libd)
930 ac_prev=libdir ;;
931 -libdir=* | --libdir=* | --libdi=* | --libd=*)
932 libdir=$ac_optarg ;;
933
934 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
935 | --libexe | --libex | --libe)
936 ac_prev=libexecdir ;;
937 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
938 | --libexe=* | --libex=* | --libe=*)
939 libexecdir=$ac_optarg ;;
940
941 -localedir | --localedir | --localedi | --localed | --locale)
942 ac_prev=localedir ;;
943 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
944 localedir=$ac_optarg ;;
945
946 -localstatedir | --localstatedir | --localstatedi | --localstated \
947 | --localstate | --localstat | --localsta | --localst | --locals)
948 ac_prev=localstatedir ;;
949 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
950 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
951 localstatedir=$ac_optarg ;;
952
953 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954 ac_prev=mandir ;;
955 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956 mandir=$ac_optarg ;;
957
958 -nfp | --nfp | --nf)
959 # Obsolete; use --without-fp.
960 with_fp=no ;;
961
962 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
963 | --no-cr | --no-c | -n)
964 no_create=yes ;;
965
966 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968 no_recursion=yes ;;
969
970 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
971 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
972 | --oldin | --oldi | --old | --ol | --o)
973 ac_prev=oldincludedir ;;
974 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
975 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
976 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
977 oldincludedir=$ac_optarg ;;
978
979 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980 ac_prev=prefix ;;
981 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982 prefix=$ac_optarg ;;
983
984 -program-prefix | --program-prefix | --program-prefi | --program-pref \
985 | --program-pre | --program-pr | --program-p)
986 ac_prev=program_prefix ;;
987 -program-prefix=* | --program-prefix=* | --program-prefi=* \
988 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
989 program_prefix=$ac_optarg ;;
990
991 -program-suffix | --program-suffix | --program-suffi | --program-suff \
992 | --program-suf | --program-su | --program-s)
993 ac_prev=program_suffix ;;
994 -program-suffix=* | --program-suffix=* | --program-suffi=* \
995 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
996 program_suffix=$ac_optarg ;;
997
998 -program-transform-name | --program-transform-name \
999 | --program-transform-nam | --program-transform-na \
1000 | --program-transform-n | --program-transform- \
1001 | --program-transform | --program-transfor \
1002 | --program-transfo | --program-transf \
1003 | --program-trans | --program-tran \
1004 | --progr-tra | --program-tr | --program-t)
1005 ac_prev=program_transform_name ;;
1006 -program-transform-name=* | --program-transform-name=* \
1007 | --program-transform-nam=* | --program-transform-na=* \
1008 | --program-transform-n=* | --program-transform-=* \
1009 | --program-transform=* | --program-transfor=* \
1010 | --program-transfo=* | --program-transf=* \
1011 | --program-trans=* | --program-tran=* \
1012 | --progr-tra=* | --program-tr=* | --program-t=*)
1013 program_transform_name=$ac_optarg ;;
1014
1015 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016 ac_prev=pdfdir ;;
1017 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1018 pdfdir=$ac_optarg ;;
1019
1020 -psdir | --psdir | --psdi | --psd | --ps)
1021 ac_prev=psdir ;;
1022 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023 psdir=$ac_optarg ;;
1024
1025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026 | -silent | --silent | --silen | --sile | --sil)
1027 silent=yes ;;
1028
1029 -runstatedir | --runstatedir | --runstatedi | --runstated \
1030 | --runstate | --runstat | --runsta | --runst | --runs \
1031 | --run | --ru | --r)
1032 ac_prev=runstatedir ;;
1033 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1034 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1035 | --run=* | --ru=* | --r=*)
1036 runstatedir=$ac_optarg ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: '$ac_useropt'"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
1098
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: '$ac_useropt'"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) as_fn_error $? "unrecognized option: '$ac_option'
1134 Try '$0 --help' for more information"
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1143 esac
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1153 ;;
1154
1155 esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error $? "missing argument to $ac_option"
1161 fi
1162
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169 fi
1170
1171 # Check all directory arguments for consistency.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir runstatedir
1176 do
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1190 done
1191
1192 # There might be people who depend on the old broken behavior: '$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 elif test "x$build_alias" != "x$host_alias"; then
1204 cross_compiling=yes
1205 fi
1206 fi
1207
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
1211 test "$silent" = yes && exec 6>/dev/null
1212
1213
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error $? "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error $? "pwd does not report name of working directory"
1220
1221
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 printf "%s\n" X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\/\)[^/].*/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)$/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\).*/{
1245 s//\1/
1246 q
1247 }
1248 s/.*/./; q'`
1249 srcdir=$ac_confdir
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 srcdir=..
1252 fi
1253 else
1254 ac_srcdir_defaulted=no
1255 fi
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1259 fi
1260 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1261 ac_abs_confdir=`(
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1263 pwd)`
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 srcdir=.
1267 fi
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1271 case $srcdir in
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 esac
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 done
1280
1281 #
1282 # Report the --help message.
1283 #
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1287 cat <<_ACEOF
1288 'configure' configures pspg 0 to adapt to many kinds of systems.
1289
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1291
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1294
1295 Defaults for the options are specified in brackets.
1296
1297 Configuration:
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print 'checking ...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for '--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or '..']
1307
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 [PREFIX]
1313
1314 By default, 'make install' will install all the files in
1315 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than '$ac_default_prefix' using '--prefix',
1317 for instance '--prefix=\$HOME'.
1318
1319 For better control, use the options below.
1320
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/pspg]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1342 _ACEOF
1343
1344 cat <<\_ACEOF
1345 _ACEOF
1346 fi
1347
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of pspg 0:";;
1351 esac
1352 cat <<\_ACEOF
1353
1354 Optional Features:
1355 --disable-option-checking ignore unrecognized --enable/--with options
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --enable-debug enable debug build
1359
1360 Optional Packages:
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 --with-ncurses force the use of Ncurses or NcursesW
1364 --without-ncursesw do not use NcursesW (wide character support)
1365 --with-postgresql=[ARG] use PostgreSQL library [default=yes], optionally
1366 specify path to pg_config
1367 --without-menu
1368 --without-inotify (Linux only) do not build with inotify support
1369 (default is yes)
1370
1371 Some influential environment variables:
1372 CC C compiler command
1373 CFLAGS C compiler flags
1374 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1375 nonstandard directory <lib dir>
1376 LIBS libraries to pass to the linker, e.g. -l<library>
1377 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1378 you have headers in a nonstandard directory <include dir>
1379 CURSES_LIBS linker library for Curses, e.g. -lcurses
1380 CURSES_CFLAGS
1381 preprocessor flags for Curses, e.g. -I/usr/include/ncursesw
1382 PKG_CONFIG path to pkg-config utility
1383 PKG_CONFIG_PATH
1384 directories to add to pkg-config's search path
1385 PKG_CONFIG_LIBDIR
1386 path overriding pkg-config's built-in search path
1387 PANEL_LIBS linker library for Curses Panel, e.g. -lpanel
1388 POSTGRESQL_CPPFLAGS
1389 cpp flags for PostgreSQL overriding detected flags
1390 POSTGRESQL_LIBFLAGS
1391 libs for PostgreSQL overriding detected flags
1392 POSTGRESQL_LDFLAGS
1393 linker flags for PostgreSQL overriding detected flags
1394
1395 Use these variables to override the choices made by 'configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1397
1398 Report bugs to <[email protected]>.
1399 _ACEOF
1400 ac_status=$?
1401 fi
1402
1403 if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406 test -d "$ac_dir" ||
1407 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408 continue
1409 ac_builddir=.
1410
1411 case "$ac_dir" in
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *)
1414 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1415 # A ".." for each directory in $ac_dir_suffix.
1416 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 esac ;;
1421 esac
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1426
1427 case $srcdir in
1428 .) # We are building in place.
1429 ac_srcdir=.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1436 *) # Relative name.
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 esac
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for configure.gnu first; this name is used for a wrapper for
1445 # Metaconfig's "Configure" on case-insensitive file systems.
1446 if test -f "$ac_srcdir/configure.gnu"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449 elif test -f "$ac_srcdir/configure"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure" --help=recursive
1452 else
1453 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 fi || ac_status=$?
1455 cd "$ac_pwd" || { ac_status=$?; break; }
1456 done
1457 fi
1458
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1461 cat <<\_ACEOF
1462 pspg configure 0
1463 generated by GNU Autoconf 2.72
1464
1465 Copyright (C) 2023 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1468 _ACEOF
1469 exit
1470 fi
1471
1472 ## ------------------------ ##
1473 ## Autoconf initialization. ##
1474 ## ------------------------ ##
1475
1476 # ac_fn_c_try_compile LINENO
1477 # --------------------------
1478 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1479 ac_fn_c_try_compile ()
1480 {
1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482 rm -f conftest.$ac_objext conftest.beam
1483 if { { ac_try="$ac_compile"
1484 case "(($ac_try" in
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1487 esac
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 printf "%s\n" "$ac_try_echo"; } >&5
1490 (eval "$ac_compile") 2>conftest.err
1491 ac_status=$?
1492 if test -s conftest.err; then
1493 grep -v '^ *+' conftest.err >conftest.er1
1494 cat conftest.er1 >&5
1495 mv -f conftest.er1 conftest.err
1496 fi
1497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } && {
1499 test -z "$ac_c_werror_flag" ||
1500 test ! -s conftest.err
1501 } && test -s conftest.$ac_objext
1502 then :
1503 ac_retval=0
1504 else case e in #(
1505 e) printf "%s\n" "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1507
1508 ac_retval=1 ;;
1509 esac
1510 fi
1511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512 as_fn_set_status $ac_retval
1513
1514 } # ac_fn_c_try_compile
1515
1516 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1517 # -------------------------------------------------------
1518 # Tests whether HEADER exists and can be compiled using the include files in
1519 # INCLUDES, setting the cache variable VAR accordingly.
1520 ac_fn_c_check_header_compile ()
1521 {
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1524 printf %s "checking for $2... " >&6; }
1525 if eval test \${$3+y}
1526 then :
1527 printf %s "(cached) " >&6
1528 else case e in #(
1529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1530 /* end confdefs.h. */
1531 $4
1532 #include <$2>
1533 _ACEOF
1534 if ac_fn_c_try_compile "$LINENO"
1535 then :
1536 eval "$3=yes"
1537 else case e in #(
1538 e) eval "$3=no" ;;
1539 esac
1540 fi
1541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1542 esac
1543 fi
1544 eval ac_res=\$$3
1545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1546 printf "%s\n" "$ac_res" >&6; }
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548
1549 } # ac_fn_c_check_header_compile
1550
1551 # ac_fn_c_try_link LINENO
1552 # -----------------------
1553 # Try to link conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_link ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1558 if { { ac_try="$ac_link"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 printf "%s\n" "$ac_try_echo"; } >&5
1565 (eval "$ac_link") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest$ac_exeext && {
1577 test "$cross_compiling" = yes ||
1578 test -x conftest$ac_exeext
1579 }
1580 then :
1581 ac_retval=0
1582 else case e in #(
1583 e) printf "%s\n" "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1 ;;
1587 esac
1588 fi
1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591 # interfere with the next link command; also delete a directory that is
1592 # left behind by Apple's compiler. We do this before executing the actions.
1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_link
1598
1599 # ac_fn_c_check_func LINENO FUNC VAR
1600 # ----------------------------------
1601 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1602 ac_fn_c_check_func ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 printf %s "checking for $2... " >&6; }
1607 if eval test \${$3+y}
1608 then :
1609 printf %s "(cached) " >&6
1610 else case e in #(
1611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1613 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1615 #define $2 innocuous_$2
1616
1617 /* System header to define __stub macros and hopefully few prototypes,
1618 which can conflict with char $2 (void); below. */
1619
1620 #include <limits.h>
1621 #undef $2
1622
1623 /* Override any GCC internal prototype to avoid an error.
1624 Use char because int might match the return type of a GCC
1625 builtin and then its argument prototype would still apply. */
1626 #ifdef __cplusplus
1627 extern "C"
1628 #endif
1629 char $2 (void);
1630 /* The GNU C library defines this for functions which it implements
1631 to always fail with ENOSYS. Some functions are actually named
1632 something starting with __ and the normal name is an alias. */
1633 #if defined __stub_$2 || defined __stub___$2
1634 choke me
1635 #endif
1636
1637 int
1638 main (void)
1639 {
1640 return $2 ();
1641 ;
1642 return 0;
1643 }
1644 _ACEOF
1645 if ac_fn_c_try_link "$LINENO"
1646 then :
1647 eval "$3=yes"
1648 else case e in #(
1649 e) eval "$3=no" ;;
1650 esac
1651 fi
1652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1653 conftest$ac_exeext conftest.$ac_ext ;;
1654 esac
1655 fi
1656 eval ac_res=\$$3
1657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 printf "%s\n" "$ac_res" >&6; }
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
1661 } # ac_fn_c_check_func
1662 ac_configure_args_raw=
1663 for ac_arg
1664 do
1665 case $ac_arg in
1666 *\'*)
1667 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668 esac
1669 as_fn_append ac_configure_args_raw " '$ac_arg'"
1670 done
1671
1672 case $ac_configure_args_raw in
1673 *$as_nl*)
1674 ac_safe_unquote= ;;
1675 *)
1676 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1677 ac_unsafe_a="$ac_unsafe_z#~"
1678 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1679 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1680 esac
1681
1682 cat >config.log <<_ACEOF
1683 This file contains any messages produced by compilers while
1684 running configure, to aid debugging if configure makes a mistake.
1685
1686 It was created by pspg $as_me 0, which was
1687 generated by GNU Autoconf 2.72. Invocation command line was
1688
1689 $ $0$ac_configure_args_raw
1690
1691 _ACEOF
1692 exec 5>>config.log
1693 {
1694 cat <<_ASUNAME
1695 ## --------- ##
1696 ## Platform. ##
1697 ## --------- ##
1698
1699 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1700 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1701 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1702 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1703 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1704
1705 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1706 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1707
1708 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1709 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1710 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1711 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1712 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1713 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1714 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1715
1716 _ASUNAME
1717
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721 IFS=$as_save_IFS
1722 case $as_dir in #(((
1723 '') as_dir=./ ;;
1724 */) ;;
1725 *) as_dir=$as_dir/ ;;
1726 esac
1727 printf "%s\n" "PATH: $as_dir"
1728 done
1729 IFS=$as_save_IFS
1730
1731 } >&5
1732
1733 cat >&5 <<_ACEOF
1734
1735
1736 ## ----------- ##
1737 ## Core tests. ##
1738 ## ----------- ##
1739
1740 _ACEOF
1741
1742
1743 # Keep a trace of the command line.
1744 # Strip out --no-create and --no-recursion so they do not pile up.
1745 # Strip out --silent because we don't want to record it for future runs.
1746 # Also quote any args containing shell meta-characters.
1747 # Make two passes to allow for proper duplicate-argument suppression.
1748 ac_configure_args=
1749 ac_configure_args0=
1750 ac_configure_args1=
1751 ac_must_keep_next=false
1752 for ac_pass in 1 2
1753 do
1754 for ac_arg
1755 do
1756 case $ac_arg in
1757 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1758 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1759 | -silent | --silent | --silen | --sile | --sil)
1760 continue ;;
1761 *\'*)
1762 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 esac
1764 case $ac_pass in
1765 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1766 2)
1767 as_fn_append ac_configure_args1 " '$ac_arg'"
1768 if test $ac_must_keep_next = true; then
1769 ac_must_keep_next=false # Got value, back to normal.
1770 else
1771 case $ac_arg in
1772 *=* | --config-cache | -C | -disable-* | --disable-* \
1773 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1774 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1775 | -with-* | --with-* | -without-* | --without-* | --x)
1776 case "$ac_configure_args0 " in
1777 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1778 esac
1779 ;;
1780 -* ) ac_must_keep_next=true ;;
1781 esac
1782 fi
1783 as_fn_append ac_configure_args " '$ac_arg'"
1784 ;;
1785 esac
1786 done
1787 done
1788 { ac_configure_args0=; unset ac_configure_args0;}
1789 { ac_configure_args1=; unset ac_configure_args1;}
1790
1791 # When interrupted or exit'd, cleanup temporary files, and complete
1792 # config.log. We remove comments because anyway the quotes in there
1793 # would cause problems or look ugly.
1794 # WARNING: Use '\'' to represent an apostrophe within the trap.
1795 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1796 trap 'exit_status=$?
1797 # Sanitize IFS.
1798 IFS=" "" $as_nl"
1799 # Save into config.log some information that might help in debugging.
1800 {
1801 echo
1802
1803 printf "%s\n" "## ---------------- ##
1804 ## Cache variables. ##
1805 ## ---------------- ##"
1806 echo
1807 # The following way of writing the cache mishandles newlines in values,
1808 (
1809 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1810 eval ac_val=\$$ac_var
1811 case $ac_val in #(
1812 *${as_nl}*)
1813 case $ac_var in #(
1814 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1815 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1816 esac
1817 case $ac_var in #(
1818 _ | IFS | as_nl) ;; #(
1819 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1820 *) { eval $ac_var=; unset $ac_var;} ;;
1821 esac ;;
1822 esac
1823 done
1824 (set) 2>&1 |
1825 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1826 *${as_nl}ac_space=\ *)
1827 sed -n \
1828 "s/'\''/'\''\\\\'\'''\''/g;
1829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1830 ;; #(
1831 *)
1832 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1833 ;;
1834 esac |
1835 sort
1836 )
1837 echo
1838
1839 printf "%s\n" "## ----------------- ##
1840 ## Output variables. ##
1841 ## ----------------- ##"
1842 echo
1843 for ac_var in $ac_subst_vars
1844 do
1845 eval ac_val=\$$ac_var
1846 case $ac_val in
1847 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 esac
1849 printf "%s\n" "$ac_var='\''$ac_val'\''"
1850 done | sort
1851 echo
1852
1853 if test -n "$ac_subst_files"; then
1854 printf "%s\n" "## ------------------- ##
1855 ## File substitutions. ##
1856 ## ------------------- ##"
1857 echo
1858 for ac_var in $ac_subst_files
1859 do
1860 eval ac_val=\$$ac_var
1861 case $ac_val in
1862 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 esac
1864 printf "%s\n" "$ac_var='\''$ac_val'\''"
1865 done | sort
1866 echo
1867 fi
1868
1869 if test -s confdefs.h; then
1870 printf "%s\n" "## ----------- ##
1871 ## confdefs.h. ##
1872 ## ----------- ##"
1873 echo
1874 cat confdefs.h
1875 echo
1876 fi
1877 test "$ac_signal" != 0 &&
1878 printf "%s\n" "$as_me: caught signal $ac_signal"
1879 printf "%s\n" "$as_me: exit $exit_status"
1880 } >&5
1881 rm -f core *.core core.conftest.* &&
1882 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1883 exit $exit_status
1884 ' 0
1885 for ac_signal in 1 2 13 15; do
1886 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1887 done
1888 ac_signal=0
1889
1890 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1891 rm -f -r conftest* confdefs.h
1892
1893 printf "%s\n" "/* confdefs.h */" > confdefs.h
1894
1895 # Predefined preprocessor variables.
1896
1897 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1898
1899 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1900
1901 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1902
1903 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1904
1905 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1906
1907 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1908
1909
1910 # Let the site file select an alternate cache file if it wants to.
1911 # Prefer an explicitly selected file to automatically selected ones.
1912 if test -n "$CONFIG_SITE"; then
1913 ac_site_files="$CONFIG_SITE"
1914 elif test "x$prefix" != xNONE; then
1915 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1916 else
1917 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1918 fi
1919
1920 for ac_site_file in $ac_site_files
1921 do
1922 case $ac_site_file in #(
1923 */*) :
1924 ;; #(
1925 *) :
1926 ac_site_file=./$ac_site_file ;;
1927 esac
1928 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1930 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1931 sed 's/^/| /' "$ac_site_file" >&5
1932 . "$ac_site_file" \
1933 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1934 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1935 as_fn_error $? "failed to load site script $ac_site_file
1936 See 'config.log' for more details" "$LINENO" 5; }
1937 fi
1938 done
1939
1940 if test -r "$cache_file"; then
1941 # Some versions of bash will fail to source /dev/null (special files
1942 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1943 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1945 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1946 case $cache_file in
1947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948 *) . "./$cache_file";;
1949 esac
1950 fi
1951 else
1952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1953 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1954 >$cache_file
1955 fi
1956
1957 # Test code for whether the C compiler supports C89 (global declarations)
1958 ac_c_conftest_c89_globals='
1959 /* Does the compiler advertise C89 conformance?
1960 Do not test the value of __STDC__, because some compilers set it to 0
1961 while being otherwise adequately conformant. */
1962 #if !defined __STDC__
1963 # error "Compiler does not advertise C89 conformance"
1964 #endif
1965
1966 #include <stddef.h>
1967 #include <stdarg.h>
1968 struct stat;
1969 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1970 struct buf { int x; };
1971 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1972 static char *e (char **p, int i)
1973 {
1974 return p[i];
1975 }
1976 static char *f (char * (*g) (char **, int), char **p, ...)
1977 {
1978 char *s;
1979 va_list v;
1980 va_start (v,p);
1981 s = g (p, va_arg (v,int));
1982 va_end (v);
1983 return s;
1984 }
1985
1986 /* C89 style stringification. */
1987 #define noexpand_stringify(a) #a
1988 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
1989
1990 /* C89 style token pasting. Exercises some of the corner cases that
1991 e.g. old MSVC gets wrong, but not very hard. */
1992 #define noexpand_concat(a,b) a##b
1993 #define expand_concat(a,b) noexpand_concat(a,b)
1994 extern int vA;
1995 extern int vbee;
1996 #define aye A
1997 #define bee B
1998 int *pvA = &expand_concat(v,aye);
1999 int *pvbee = &noexpand_concat(v,bee);
2000
2001 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2002 function prototypes and stuff, but not \xHH hex character constants.
2003 These do not provoke an error unfortunately, instead are silently treated
2004 as an "x". The following induces an error, until -std is added to get
2005 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2006 array size at least. It is necessary to write \x00 == 0 to get something
2007 that is true only with -std. */
2008 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2009
2010 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2011 inside strings and character constants. */
2012 #define FOO(x) '\''x'\''
2013 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2014
2015 int test (int i, double x);
2016 struct s1 {int (*f) (int a);};
2017 struct s2 {int (*f) (double a);};
2018 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2019 int, int);'
2020
2021 # Test code for whether the C compiler supports C89 (body of main).
2022 ac_c_conftest_c89_main='
2023 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2024 '
2025
2026 # Test code for whether the C compiler supports C99 (global declarations)
2027 ac_c_conftest_c99_globals='
2028 /* Does the compiler advertise C99 conformance? */
2029 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2030 # error "Compiler does not advertise C99 conformance"
2031 #endif
2032
2033 // See if C++-style comments work.
2034
2035 #include <stdbool.h>
2036 extern int puts (const char *);
2037 extern int printf (const char *, ...);
2038 extern int dprintf (int, const char *, ...);
2039 extern void *malloc (size_t);
2040 extern void free (void *);
2041
2042 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2043 // dprintf is used instead of fprintf to avoid needing to declare
2044 // FILE and stderr.
2045 #define debug(...) dprintf (2, __VA_ARGS__)
2046 #define showlist(...) puts (#__VA_ARGS__)
2047 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2048 static void
2049 test_varargs_macros (void)
2050 {
2051 int x = 1234;
2052 int y = 5678;
2053 debug ("Flag");
2054 debug ("X = %d\n", x);
2055 showlist (The first, second, and third items.);
2056 report (x>y, "x is %d but y is %d", x, y);
2057 }
2058
2059 // Check long long types.
2060 #define BIG64 18446744073709551615ull
2061 #define BIG32 4294967295ul
2062 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2063 #if !BIG_OK
2064 #error "your preprocessor is broken"
2065 #endif
2066 #if BIG_OK
2067 #else
2068 #error "your preprocessor is broken"
2069 #endif
2070 static long long int bignum = -9223372036854775807LL;
2071 static unsigned long long int ubignum = BIG64;
2072
2073 struct incomplete_array
2074 {
2075 int datasize;
2076 double data[];
2077 };
2078
2079 struct named_init {
2080 int number;
2081 const wchar_t *name;
2082 double average;
2083 };
2084
2085 typedef const char *ccp;
2086
2087 static inline int
2088 test_restrict (ccp restrict text)
2089 {
2090 // Iterate through items via the restricted pointer.
2091 // Also check for declarations in for loops.
2092 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2093 continue;
2094 return 0;
2095 }
2096
2097 // Check varargs and va_copy.
2098 static bool
2099 test_varargs (const char *format, ...)
2100 {
2101 va_list args;
2102 va_start (args, format);
2103 va_list args_copy;
2104 va_copy (args_copy, args);
2105
2106 const char *str = "";
2107 int number = 0;
2108 float fnumber = 0;
2109
2110 while (*format)
2111 {
2112 switch (*format++)
2113 {
2114 case '\''s'\'': // string
2115 str = va_arg (args_copy, const char *);
2116 break;
2117 case '\''d'\'': // int
2118 number = va_arg (args_copy, int);
2119 break;
2120 case '\''f'\'': // float
2121 fnumber = va_arg (args_copy, double);
2122 break;
2123 default:
2124 break;
2125 }
2126 }
2127 va_end (args_copy);
2128 va_end (args);
2129
2130 return *str && number && fnumber;
2131 }
2132 '
2133
2134 # Test code for whether the C compiler supports C99 (body of main).
2135 ac_c_conftest_c99_main='
2136 // Check bool.
2137 _Bool success = false;
2138 success |= (argc != 0);
2139
2140 // Check restrict.
2141 if (test_restrict ("String literal") == 0)
2142 success = true;
2143 char *restrict newvar = "Another string";
2144
2145 // Check varargs.
2146 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2147 test_varargs_macros ();
2148
2149 // Check flexible array members.
2150 struct incomplete_array *ia =
2151 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2152 ia->datasize = 10;
2153 for (int i = 0; i < ia->datasize; ++i)
2154 ia->data[i] = i * 1.234;
2155 // Work around memory leak warnings.
2156 free (ia);
2157
2158 // Check named initializers.
2159 struct named_init ni = {
2160 .number = 34,
2161 .name = L"Test wide string",
2162 .average = 543.34343,
2163 };
2164
2165 ni.number = 58;
2166
2167 int dynamic_array[ni.number];
2168 dynamic_array[0] = argv[0][0];
2169 dynamic_array[ni.number - 1] = 543;
2170
2171 // work around unused variable warnings
2172 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2173 || dynamic_array[ni.number - 1] != 543);
2174 '
2175
2176 # Test code for whether the C compiler supports C11 (global declarations)
2177 ac_c_conftest_c11_globals='
2178 /* Does the compiler advertise C11 conformance? */
2179 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2180 # error "Compiler does not advertise C11 conformance"
2181 #endif
2182
2183 // Check _Alignas.
2184 char _Alignas (double) aligned_as_double;
2185 char _Alignas (0) no_special_alignment;
2186 extern char aligned_as_int;
2187 char _Alignas (0) _Alignas (int) aligned_as_int;
2188
2189 // Check _Alignof.
2190 enum
2191 {
2192 int_alignment = _Alignof (int),
2193 int_array_alignment = _Alignof (int[100]),
2194 char_alignment = _Alignof (char)
2195 };
2196 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2197
2198 // Check _Noreturn.
2199 int _Noreturn does_not_return (void) { for (;;) continue; }
2200
2201 // Check _Static_assert.
2202 struct test_static_assert
2203 {
2204 int x;
2205 _Static_assert (sizeof (int) <= sizeof (long int),
2206 "_Static_assert does not work in struct");
2207 long int y;
2208 };
2209
2210 // Check UTF-8 literals.
2211 #define u8 syntax error!
2212 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2213
2214 // Check duplicate typedefs.
2215 typedef long *long_ptr;
2216 typedef long int *long_ptr;
2217 typedef long_ptr long_ptr;
2218
2219 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2220 struct anonymous
2221 {
2222 union {
2223 struct { int i; int j; };
2224 struct { int k; long int l; } w;
2225 };
2226 int m;
2227 } v1;
2228 '
2229
2230 # Test code for whether the C compiler supports C11 (body of main).
2231 ac_c_conftest_c11_main='
2232 _Static_assert ((offsetof (struct anonymous, i)
2233 == offsetof (struct anonymous, w.k)),
2234 "Anonymous union alignment botch");
2235 v1.i = 2;
2236 v1.w.k = 5;
2237 ok |= v1.i != 5;
2238 '
2239
2240 # Test code for whether the C compiler supports C11 (complete).
2241 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2242 ${ac_c_conftest_c99_globals}
2243 ${ac_c_conftest_c11_globals}
2244
2245 int
2246 main (int argc, char **argv)
2247 {
2248 int ok = 0;
2249 ${ac_c_conftest_c89_main}
2250 ${ac_c_conftest_c99_main}
2251 ${ac_c_conftest_c11_main}
2252 return ok;
2253 }
2254 "
2255
2256 # Test code for whether the C compiler supports C99 (complete).
2257 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2258 ${ac_c_conftest_c99_globals}
2259
2260 int
2261 main (int argc, char **argv)
2262 {
2263 int ok = 0;
2264 ${ac_c_conftest_c89_main}
2265 ${ac_c_conftest_c99_main}
2266 return ok;
2267 }
2268 "
2269
2270 # Test code for whether the C compiler supports C89 (complete).
2271 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2272
2273 int
2274 main (int argc, char **argv)
2275 {
2276 int ok = 0;
2277 ${ac_c_conftest_c89_main}
2278 return ok;
2279 }
2280 "
2281
2282 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2283 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2284 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2285 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2286 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2287 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2288 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2289 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2290 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2291 # Check that the precious variables saved in the cache have kept the same
2292 # value.
2293 ac_cache_corrupted=false
2294 for ac_var in $ac_precious_vars; do
2295 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2296 eval ac_new_set=\$ac_env_${ac_var}_set
2297 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2298 eval ac_new_val=\$ac_env_${ac_var}_value
2299 case $ac_old_set,$ac_new_set in
2300 set,)
2301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2302 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2303 ac_cache_corrupted=: ;;
2304 ,set)
2305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2306 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2307 ac_cache_corrupted=: ;;
2308 ,);;
2309 *)
2310 if test "x$ac_old_val" != "x$ac_new_val"; then
2311 # differences in whitespace do not lead to failure.
2312 ac_old_val_w=`echo x $ac_old_val`
2313 ac_new_val_w=`echo x $ac_new_val`
2314 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2316 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2317 ac_cache_corrupted=:
2318 else
2319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2320 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2321 eval $ac_var=\$ac_old_val
2322 fi
2323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2324 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2326 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2327 fi;;
2328 esac
2329 # Pass precious variables to config.status.
2330 if test "$ac_new_set" = set; then
2331 case $ac_new_val in
2332 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2333 *) ac_arg=$ac_var=$ac_new_val ;;
2334 esac
2335 case " $ac_configure_args " in
2336 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2337 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2338 esac
2339 fi
2340 done
2341 if $ac_cache_corrupted; then
2342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2343 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2345 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2346 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2347 and start over" "$LINENO" 5
2348 fi
2349 ## -------------------- ##
2350 ## Main body of script. ##
2351 ## -------------------- ##
2352
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358
2359
2360
2361 ac_ext=c
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381 ac_ext=c
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386 if test -n "$ac_tool_prefix"; then
2387 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390 printf %s "checking for $ac_word... " >&6; }
2391 if test ${ac_cv_prog_CC+y}
2392 then :
2393 printf %s "(cached) " >&6
2394 else case e in #(
2395 e) if test -n "$CC"; then
2396 ac_cv_prog_CC="$CC" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401 IFS=$as_save_IFS
2402 case $as_dir in #(((
2403 '') as_dir=./ ;;
2404 */) ;;
2405 *) as_dir=$as_dir/ ;;
2406 esac
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2411 break 2
2412 fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi ;;
2418 esac
2419 fi
2420 CC=$ac_cv_prog_CC
2421 if test -n "$CC"; then
2422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2423 printf "%s\n" "$CC" >&6; }
2424 else
2425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426 printf "%s\n" "no" >&6; }
2427 fi
2428
2429
2430 fi
2431 if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc; ac_word=$2
2435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436 printf %s "checking for $ac_word... " >&6; }
2437 if test ${ac_cv_prog_ac_ct_CC+y}
2438 then :
2439 printf %s "(cached) " >&6
2440 else case e in #(
2441 e) if test -n "$ac_ct_CC"; then
2442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447 IFS=$as_save_IFS
2448 case $as_dir in #(((
2449 '') as_dir=./ ;;
2450 */) ;;
2451 *) as_dir=$as_dir/ ;;
2452 esac
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_ac_ct_CC="gcc"
2456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi ;;
2464 esac
2465 fi
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2469 printf "%s\n" "$ac_ct_CC" >&6; }
2470 else
2471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 printf "%s\n" "no" >&6; }
2473 fi
2474
2475 if test "x$ac_ct_CC" = x; then
2476 CC=""
2477 else
2478 case $cross_compiling:$ac_tool_warned in
2479 yes:)
2480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2481 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2482 ac_tool_warned=yes ;;
2483 esac
2484 CC=$ac_ct_CC
2485 fi
2486 else
2487 CC="$ac_cv_prog_CC"
2488 fi
2489
2490 if test -z "$CC"; then
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}cc; ac_word=$2
2494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 printf %s "checking for $ac_word... " >&6; }
2496 if test ${ac_cv_prog_CC+y}
2497 then :
2498 printf %s "(cached) " >&6
2499 else case e in #(
2500 e) if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2502 else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 for as_dir in $PATH
2505 do
2506 IFS=$as_save_IFS
2507 case $as_dir in #(((
2508 '') as_dir=./ ;;
2509 */) ;;
2510 *) as_dir=$as_dir/ ;;
2511 esac
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2514 ac_cv_prog_CC="${ac_tool_prefix}cc"
2515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi ;;
2523 esac
2524 fi
2525 CC=$ac_cv_prog_CC
2526 if test -n "$CC"; then
2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2528 printf "%s\n" "$CC" >&6; }
2529 else
2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 printf "%s\n" "no" >&6; }
2532 fi
2533
2534
2535 fi
2536 fi
2537 if test -z "$CC"; then
2538 # Extract the first word of "cc", so it can be a program name with args.
2539 set dummy cc; ac_word=$2
2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 printf %s "checking for $ac_word... " >&6; }
2542 if test ${ac_cv_prog_CC+y}
2543 then :
2544 printf %s "(cached) " >&6
2545 else case e in #(
2546 e) if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549 ac_prog_rejected=no
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553 IFS=$as_save_IFS
2554 case $as_dir in #(((
2555 '') as_dir=./ ;;
2556 */) ;;
2557 *) as_dir=$as_dir/ ;;
2558 esac
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2561 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2562 ac_prog_rejected=yes
2563 continue
2564 fi
2565 ac_cv_prog_CC="cc"
2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 if test $ac_prog_rejected = yes; then
2574 # We found a bogon in the path, so make sure we never use it.
2575 set dummy $ac_cv_prog_CC
2576 shift
2577 if test $# != 0; then
2578 # We chose a different compiler from the bogus one.
2579 # However, it has the same basename, so the bogon will be chosen
2580 # first if we set CC to just the basename; use the full file name.
2581 shift
2582 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2583 fi
2584 fi
2585 fi ;;
2586 esac
2587 fi
2588 CC=$ac_cv_prog_CC
2589 if test -n "$CC"; then
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2591 printf "%s\n" "$CC" >&6; }
2592 else
2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 printf "%s\n" "no" >&6; }
2595 fi
2596
2597
2598 fi
2599 if test -z "$CC"; then
2600 if test -n "$ac_tool_prefix"; then
2601 for ac_prog in cl.exe
2602 do
2603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 printf %s "checking for $ac_word... " >&6; }
2607 if test ${ac_cv_prog_CC+y}
2608 then :
2609 printf %s "(cached) " >&6
2610 else case e in #(
2611 e) if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617 IFS=$as_save_IFS
2618 case $as_dir in #(((
2619 '') as_dir=./ ;;
2620 */) ;;
2621 *) as_dir=$as_dir/ ;;
2622 esac
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi ;;
2634 esac
2635 fi
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2639 printf "%s\n" "$CC" >&6; }
2640 else
2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 printf "%s\n" "no" >&6; }
2643 fi
2644
2645
2646 test -n "$CC" && break
2647 done
2648 fi
2649 if test -z "$CC"; then
2650 ac_ct_CC=$CC
2651 for ac_prog in cl.exe
2652 do
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 printf %s "checking for $ac_word... " >&6; }
2657 if test ${ac_cv_prog_ac_ct_CC+y}
2658 then :
2659 printf %s "(cached) " >&6
2660 else case e in #(
2661 e) if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 case $as_dir in #(((
2669 '') as_dir=./ ;;
2670 */) ;;
2671 *) as_dir=$as_dir/ ;;
2672 esac
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_CC="$ac_prog"
2676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 fi ;;
2684 esac
2685 fi
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 printf "%s\n" "$ac_ct_CC" >&6; }
2690 else
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 printf "%s\n" "no" >&6; }
2693 fi
2694
2695
2696 test -n "$ac_ct_CC" && break
2697 done
2698
2699 if test "x$ac_ct_CC" = x; then
2700 CC=""
2701 else
2702 case $cross_compiling:$ac_tool_warned in
2703 yes:)
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706 ac_tool_warned=yes ;;
2707 esac
2708 CC=$ac_ct_CC
2709 fi
2710 fi
2711
2712 fi
2713 if test -z "$CC"; then
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2716 set dummy ${ac_tool_prefix}clang; ac_word=$2
2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 printf %s "checking for $ac_word... " >&6; }
2719 if test ${ac_cv_prog_CC+y}
2720 then :
2721 printf %s "(cached) " >&6
2722 else case e in #(
2723 e) if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 case $as_dir in #(((
2731 '') as_dir=./ ;;
2732 */) ;;
2733 *) as_dir=$as_dir/ ;;
2734 esac
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC="${ac_tool_prefix}clang"
2738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741 done
2742 done
2743 IFS=$as_save_IFS
2744
2745 fi ;;
2746 esac
2747 fi
2748 CC=$ac_cv_prog_CC
2749 if test -n "$CC"; then
2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2751 printf "%s\n" "$CC" >&6; }
2752 else
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 printf "%s\n" "no" >&6; }
2755 fi
2756
2757
2758 fi
2759 if test -z "$ac_cv_prog_CC"; then
2760 ac_ct_CC=$CC
2761 # Extract the first word of "clang", so it can be a program name with args.
2762 set dummy clang; ac_word=$2
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 printf %s "checking for $ac_word... " >&6; }
2765 if test ${ac_cv_prog_ac_ct_CC+y}
2766 then :
2767 printf %s "(cached) " >&6
2768 else case e in #(
2769 e) if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 case $as_dir in #(((
2777 '') as_dir=./ ;;
2778 */) ;;
2779 *) as_dir=$as_dir/ ;;
2780 esac
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_ac_ct_CC="clang"
2784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi ;;
2792 esac
2793 fi
2794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2795 if test -n "$ac_ct_CC"; then
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2797 printf "%s\n" "$ac_ct_CC" >&6; }
2798 else
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 printf "%s\n" "no" >&6; }
2801 fi
2802
2803 if test "x$ac_ct_CC" = x; then
2804 CC=""
2805 else
2806 case $cross_compiling:$ac_tool_warned in
2807 yes:)
2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2809 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2810 ac_tool_warned=yes ;;
2811 esac
2812 CC=$ac_ct_CC
2813 fi
2814 else
2815 CC="$ac_cv_prog_CC"
2816 fi
2817
2818 fi
2819
2820
2821 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2822 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2823 as_fn_error $? "no acceptable C compiler found in \$PATH
2824 See 'config.log' for more details" "$LINENO" 5; }
2825
2826 # Provide some information about the compiler.
2827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2828 set X $ac_compile
2829 ac_compiler=$2
2830 for ac_option in --version -v -V -qversion -version; do
2831 { { ac_try="$ac_compiler $ac_option >&5"
2832 case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2837 printf "%s\n" "$ac_try_echo"; } >&5
2838 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2839 ac_status=$?
2840 if test -s conftest.err; then
2841 sed '10a\
2842 ... rest of stderr output deleted ...
2843 10q' conftest.err >conftest.er1
2844 cat conftest.er1 >&5
2845 fi
2846 rm -f conftest.er1 conftest.err
2847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2848 test $ac_status = 0; }
2849 done
2850
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2853
2854 int
2855 main (void)
2856 {
2857
2858 ;
2859 return 0;
2860 }
2861 _ACEOF
2862 ac_clean_files_save=$ac_clean_files
2863 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2864 # Try to create an executable without -o first, disregard a.out.
2865 # It will help us diagnose broken compilers, and finding out an intuition
2866 # of exeext.
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2868 printf %s "checking whether the C compiler works... " >&6; }
2869 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2870
2871 # The possible output files:
2872 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2873
2874 ac_rmfiles=
2875 for ac_file in $ac_files
2876 do
2877 case $ac_file in
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2879 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2880 esac
2881 done
2882 rm -f $ac_rmfiles
2883
2884 if { { ac_try="$ac_link_default"
2885 case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890 printf "%s\n" "$ac_try_echo"; } >&5
2891 (eval "$ac_link_default") 2>&5
2892 ac_status=$?
2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }
2895 then :
2896 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
2897 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
2898 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2899 # so that the user can short-circuit this test for compilers unknown to
2900 # Autoconf.
2901 for ac_file in $ac_files ''
2902 do
2903 test -f "$ac_file" || continue
2904 case $ac_file in
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2906 ;;
2907 [ab].out )
2908 # We found the default executable, but exeext='' is most
2909 # certainly right.
2910 break;;
2911 *.* )
2912 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2913 then :; else
2914 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2915 fi
2916 # We set ac_cv_exeext here because the later test for it is not
2917 # safe: cross compilers may not add the suffix if given an '-o'
2918 # argument, so we may need to know it at that point already.
2919 # Even if this section looks crufty: it has the advantage of
2920 # actually working.
2921 break;;
2922 * )
2923 break;;
2924 esac
2925 done
2926 test "$ac_cv_exeext" = no && ac_cv_exeext=
2927
2928 else case e in #(
2929 e) ac_file='' ;;
2930 esac
2931 fi
2932 if test -z "$ac_file"
2933 then :
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 printf "%s\n" "no" >&6; }
2936 printf "%s\n" "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2940 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2941 as_fn_error 77 "C compiler cannot create executables
2942 See 'config.log' for more details" "$LINENO" 5; }
2943 else case e in #(
2944 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2945 printf "%s\n" "yes" >&6; } ;;
2946 esac
2947 fi
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2949 printf %s "checking for C compiler default output file name... " >&6; }
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2951 printf "%s\n" "$ac_file" >&6; }
2952 ac_exeext=$ac_cv_exeext
2953
2954 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2955 ac_clean_files=$ac_clean_files_save
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2957 printf %s "checking for suffix of executables... " >&6; }
2958 if { { ac_try="$ac_link"
2959 case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962 esac
2963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964 printf "%s\n" "$ac_try_echo"; } >&5
2965 (eval "$ac_link") 2>&5
2966 ac_status=$?
2967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968 test $ac_status = 0; }
2969 then :
2970 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
2971 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
2972 # work properly (i.e., refer to 'conftest.exe'), while it won't with
2973 # 'rm'.
2974 for ac_file in conftest.exe conftest conftest.*; do
2975 test -f "$ac_file" || continue
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 break;;
2980 * ) break;;
2981 esac
2982 done
2983 else case e in #(
2984 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2985 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2986 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2987 See 'config.log' for more details" "$LINENO" 5; } ;;
2988 esac
2989 fi
2990 rm -f conftest conftest$ac_cv_exeext
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2992 printf "%s\n" "$ac_cv_exeext" >&6; }
2993
2994 rm -f conftest.$ac_ext
2995 EXEEXT=$ac_cv_exeext
2996 ac_exeext=$EXEEXT
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h. */
2999 #include <stdio.h>
3000 int
3001 main (void)
3002 {
3003 FILE *f = fopen ("conftest.out", "w");
3004 if (!f)
3005 return 1;
3006 return ferror (f) || fclose (f) != 0;
3007
3008 ;
3009 return 0;
3010 }
3011 _ACEOF
3012 ac_clean_files="$ac_clean_files conftest.out"
3013 # Check that the compiler produces executables we can run. If not, either
3014 # the compiler is broken, or we cross compile.
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3016 printf %s "checking whether we are cross compiling... " >&6; }
3017 if test "$cross_compiling" != yes; then
3018 { { ac_try="$ac_link"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 printf "%s\n" "$ac_try_echo"; } >&5
3025 (eval "$ac_link") 2>&5
3026 ac_status=$?
3027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }
3029 if { ac_try='./conftest$ac_cv_exeext'
3030 { { case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035 printf "%s\n" "$ac_try_echo"; } >&5
3036 (eval "$ac_try") 2>&5
3037 ac_status=$?
3038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; }; then
3040 cross_compiling=no
3041 else
3042 if test "$cross_compiling" = maybe; then
3043 cross_compiling=yes
3044 else
3045 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3046 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3047 as_fn_error 77 "cannot run C compiled programs.
3048 If you meant to cross compile, use '--host'.
3049 See 'config.log' for more details" "$LINENO" 5; }
3050 fi
3051 fi
3052 fi
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3054 printf "%s\n" "$cross_compiling" >&6; }
3055
3056 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3057 conftest.o conftest.obj conftest.out
3058 ac_clean_files=$ac_clean_files_save
3059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3060 printf %s "checking for suffix of object files... " >&6; }
3061 if test ${ac_cv_objext+y}
3062 then :
3063 printf %s "(cached) " >&6
3064 else case e in #(
3065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3067
3068 int
3069 main (void)
3070 {
3071
3072 ;
3073 return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.o conftest.obj
3077 if { { ac_try="$ac_compile"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 printf "%s\n" "$ac_try_echo"; } >&5
3084 (eval "$ac_compile") 2>&5
3085 ac_status=$?
3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }
3088 then :
3089 for ac_file in conftest.o conftest.obj conftest.*; do
3090 test -f "$ac_file" || continue;
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3094 break;;
3095 esac
3096 done
3097 else case e in #(
3098 e) printf "%s\n" "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3102 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3103 as_fn_error $? "cannot compute suffix of object files: cannot compile
3104 See 'config.log' for more details" "$LINENO" 5; } ;;
3105 esac
3106 fi
3107 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3108 esac
3109 fi
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3111 printf "%s\n" "$ac_cv_objext" >&6; }
3112 OBJEXT=$ac_cv_objext
3113 ac_objext=$OBJEXT
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3115 printf %s "checking whether the compiler supports GNU C... " >&6; }
3116 if test ${ac_cv_c_compiler_gnu+y}
3117 then :
3118 printf %s "(cached) " >&6
3119 else case e in #(
3120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h. */
3122
3123 int
3124 main (void)
3125 {
3126 #ifndef __GNUC__
3127 choke me
3128 #endif
3129
3130 ;
3131 return 0;
3132 }
3133 _ACEOF
3134 if ac_fn_c_try_compile "$LINENO"
3135 then :
3136 ac_compiler_gnu=yes
3137 else case e in #(
3138 e) ac_compiler_gnu=no ;;
3139 esac
3140 fi
3141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3143 ;;
3144 esac
3145 fi
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3147 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149
3150 if test $ac_compiler_gnu = yes; then
3151 GCC=yes
3152 else
3153 GCC=
3154 fi
3155 ac_test_CFLAGS=${CFLAGS+y}
3156 ac_save_CFLAGS=$CFLAGS
3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3158 printf %s "checking whether $CC accepts -g... " >&6; }
3159 if test ${ac_cv_prog_cc_g+y}
3160 then :
3161 printf %s "(cached) " >&6
3162 else case e in #(
3163 e) ac_save_c_werror_flag=$ac_c_werror_flag
3164 ac_c_werror_flag=yes
3165 ac_cv_prog_cc_g=no
3166 CFLAGS="-g"
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3169
3170 int
3171 main (void)
3172 {
3173
3174 ;
3175 return 0;
3176 }
3177 _ACEOF
3178 if ac_fn_c_try_compile "$LINENO"
3179 then :
3180 ac_cv_prog_cc_g=yes
3181 else case e in #(
3182 e) CFLAGS=""
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3185
3186 int
3187 main (void)
3188 {
3189
3190 ;
3191 return 0;
3192 }
3193 _ACEOF
3194 if ac_fn_c_try_compile "$LINENO"
3195 then :
3196
3197 else case e in #(
3198 e) ac_c_werror_flag=$ac_save_c_werror_flag
3199 CFLAGS="-g"
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3202
3203 int
3204 main (void)
3205 {
3206
3207 ;
3208 return 0;
3209 }
3210 _ACEOF
3211 if ac_fn_c_try_compile "$LINENO"
3212 then :
3213 ac_cv_prog_cc_g=yes
3214 fi
3215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3216 esac
3217 fi
3218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3219 esac
3220 fi
3221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3222 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3223 esac
3224 fi
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3226 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3227 if test $ac_test_CFLAGS; then
3228 CFLAGS=$ac_save_CFLAGS
3229 elif test $ac_cv_prog_cc_g = yes; then
3230 if test "$GCC" = yes; then
3231 CFLAGS="-g -O2"
3232 else
3233 CFLAGS="-g"
3234 fi
3235 else
3236 if test "$GCC" = yes; then
3237 CFLAGS="-O2"
3238 else
3239 CFLAGS=
3240 fi
3241 fi
3242 ac_prog_cc_stdc=no
3243 if test x$ac_prog_cc_stdc = xno
3244 then :
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3246 printf %s "checking for $CC option to enable C11 features... " >&6; }
3247 if test ${ac_cv_prog_cc_c11+y}
3248 then :
3249 printf %s "(cached) " >&6
3250 else case e in #(
3251 e) ac_cv_prog_cc_c11=no
3252 ac_save_CC=$CC
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3255 $ac_c_conftest_c11_program
3256 _ACEOF
3257 for ac_arg in '' -std=gnu11
3258 do
3259 CC="$ac_save_CC $ac_arg"
3260 if ac_fn_c_try_compile "$LINENO"
3261 then :
3262 ac_cv_prog_cc_c11=$ac_arg
3263 fi
3264 rm -f core conftest.err conftest.$ac_objext conftest.beam
3265 test "x$ac_cv_prog_cc_c11" != "xno" && break
3266 done
3267 rm -f conftest.$ac_ext
3268 CC=$ac_save_CC ;;
3269 esac
3270 fi
3271
3272 if test "x$ac_cv_prog_cc_c11" = xno
3273 then :
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3275 printf "%s\n" "unsupported" >&6; }
3276 else case e in #(
3277 e) if test "x$ac_cv_prog_cc_c11" = x
3278 then :
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3280 printf "%s\n" "none needed" >&6; }
3281 else case e in #(
3282 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3283 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3284 CC="$CC $ac_cv_prog_cc_c11" ;;
3285 esac
3286 fi
3287 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3288 ac_prog_cc_stdc=c11 ;;
3289 esac
3290 fi
3291 fi
3292 if test x$ac_prog_cc_stdc = xno
3293 then :
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3295 printf %s "checking for $CC option to enable C99 features... " >&6; }
3296 if test ${ac_cv_prog_cc_c99+y}
3297 then :
3298 printf %s "(cached) " >&6
3299 else case e in #(
3300 e) ac_cv_prog_cc_c99=no
3301 ac_save_CC=$CC
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3304 $ac_c_conftest_c99_program
3305 _ACEOF
3306 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3307 do
3308 CC="$ac_save_CC $ac_arg"
3309 if ac_fn_c_try_compile "$LINENO"
3310 then :
3311 ac_cv_prog_cc_c99=$ac_arg
3312 fi
3313 rm -f core conftest.err conftest.$ac_objext conftest.beam
3314 test "x$ac_cv_prog_cc_c99" != "xno" && break
3315 done
3316 rm -f conftest.$ac_ext
3317 CC=$ac_save_CC ;;
3318 esac
3319 fi
3320
3321 if test "x$ac_cv_prog_cc_c99" = xno
3322 then :
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3324 printf "%s\n" "unsupported" >&6; }
3325 else case e in #(
3326 e) if test "x$ac_cv_prog_cc_c99" = x
3327 then :
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3329 printf "%s\n" "none needed" >&6; }
3330 else case e in #(
3331 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3332 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3333 CC="$CC $ac_cv_prog_cc_c99" ;;
3334 esac
3335 fi
3336 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3337 ac_prog_cc_stdc=c99 ;;
3338 esac
3339 fi
3340 fi
3341 if test x$ac_prog_cc_stdc = xno
3342 then :
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3344 printf %s "checking for $CC option to enable C89 features... " >&6; }
3345 if test ${ac_cv_prog_cc_c89+y}
3346 then :
3347 printf %s "(cached) " >&6
3348 else case e in #(
3349 e) ac_cv_prog_cc_c89=no
3350 ac_save_CC=$CC
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3353 $ac_c_conftest_c89_program
3354 _ACEOF
3355 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3356 do
3357 CC="$ac_save_CC $ac_arg"
3358 if ac_fn_c_try_compile "$LINENO"
3359 then :
3360 ac_cv_prog_cc_c89=$ac_arg
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext conftest.beam
3363 test "x$ac_cv_prog_cc_c89" != "xno" && break
3364 done
3365 rm -f conftest.$ac_ext
3366 CC=$ac_save_CC ;;
3367 esac
3368 fi
3369
3370 if test "x$ac_cv_prog_cc_c89" = xno
3371 then :
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3373 printf "%s\n" "unsupported" >&6; }
3374 else case e in #(
3375 e) if test "x$ac_cv_prog_cc_c89" = x
3376 then :
3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3378 printf "%s\n" "none needed" >&6; }
3379 else case e in #(
3380 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3381 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3382 CC="$CC $ac_cv_prog_cc_c89" ;;
3383 esac
3384 fi
3385 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3386 ac_prog_cc_stdc=c89 ;;
3387 esac
3388 fi
3389 fi
3390
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
3398 ac_header= ac_cache=
3399 for ac_item in $ac_header_c_list
3400 do
3401 if test $ac_cache; then
3402 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3403 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3404 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3405 fi
3406 ac_header= ac_cache=
3407 elif test $ac_header; then
3408 ac_cache=$ac_item
3409 else
3410 ac_header=$ac_item
3411 fi
3412 done
3413
3414
3415
3416
3417
3418
3419
3420
3421 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3422 then :
3423
3424 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3425
3426 fi
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3428 printf %s "checking for grep that handles long lines and -e... " >&6; }
3429 if test ${ac_cv_path_GREP+y}
3430 then :
3431 printf %s "(cached) " >&6
3432 else case e in #(
3433 e) if test -z "$GREP"; then
3434 ac_path_GREP_found=false
3435 # Loop through the user's path and test for each of PROGNAME-LIST
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3438 do
3439 IFS=$as_save_IFS
3440 case $as_dir in #(((
3441 '') as_dir=./ ;;
3442 */) ;;
3443 *) as_dir=$as_dir/ ;;
3444 esac
3445 for ac_prog in grep ggrep
3446 do
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3449 as_fn_executable_p "$ac_path_GREP" || continue
3450 # Check for GNU ac_path_GREP and select it if it is found.
3451 # Check for GNU $ac_path_GREP
3452 case `"$ac_path_GREP" --version 2>&1` in #(
3453 *GNU*)
3454 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3455 #(
3456 *)
3457 ac_count=0
3458 printf %s 0123456789 >"conftest.in"
3459 while :
3460 do
3461 cat "conftest.in" "conftest.in" >"conftest.tmp"
3462 mv "conftest.tmp" "conftest.in"
3463 cp "conftest.in" "conftest.nl"
3464 printf "%s\n" 'GREP' >> "conftest.nl"
3465 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3467 as_fn_arith $ac_count + 1 && ac_count=$as_val
3468 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3469 # Best one so far, save it but keep looking for a better one
3470 ac_cv_path_GREP="$ac_path_GREP"
3471 ac_path_GREP_max=$ac_count
3472 fi
3473 # 10*(2^10) chars as input seems more than enough
3474 test $ac_count -gt 10 && break
3475 done
3476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3477 esac
3478
3479 $ac_path_GREP_found && break 3
3480 done
3481 done
3482 done
3483 IFS=$as_save_IFS
3484 if test -z "$ac_cv_path_GREP"; then
3485 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3486 fi
3487 else
3488 ac_cv_path_GREP=$GREP
3489 fi
3490 ;;
3491 esac
3492 fi
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3494 printf "%s\n" "$ac_cv_path_GREP" >&6; }
3495 GREP="$ac_cv_path_GREP"
3496
3497
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3499 printf %s "checking for egrep... " >&6; }
3500 if test ${ac_cv_path_EGREP+y}
3501 then :
3502 printf %s "(cached) " >&6
3503 else case e in #(
3504 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3505 then ac_cv_path_EGREP="$GREP -E"
3506 else
3507 if test -z "$EGREP"; then
3508 ac_path_EGREP_found=false
3509 # Loop through the user's path and test for each of PROGNAME-LIST
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3512 do
3513 IFS=$as_save_IFS
3514 case $as_dir in #(((
3515 '') as_dir=./ ;;
3516 */) ;;
3517 *) as_dir=$as_dir/ ;;
3518 esac
3519 for ac_prog in egrep
3520 do
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
3523 as_fn_executable_p "$ac_path_EGREP" || continue
3524 # Check for GNU ac_path_EGREP and select it if it is found.
3525 # Check for GNU $ac_path_EGREP
3526 case `"$ac_path_EGREP" --version 2>&1` in #(
3527 *GNU*)
3528 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3529 #(
3530 *)
3531 ac_count=0
3532 printf %s 0123456789 >"conftest.in"
3533 while :
3534 do
3535 cat "conftest.in" "conftest.in" >"conftest.tmp"
3536 mv "conftest.tmp" "conftest.in"
3537 cp "conftest.in" "conftest.nl"
3538 printf "%s\n" 'EGREP' >> "conftest.nl"
3539 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3541 as_fn_arith $ac_count + 1 && ac_count=$as_val
3542 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3543 # Best one so far, save it but keep looking for a better one
3544 ac_cv_path_EGREP="$ac_path_EGREP"
3545 ac_path_EGREP_max=$ac_count
3546 fi
3547 # 10*(2^10) chars as input seems more than enough
3548 test $ac_count -gt 10 && break
3549 done
3550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3551 esac
3552
3553 $ac_path_EGREP_found && break 3
3554 done
3555 done
3556 done
3557 IFS=$as_save_IFS
3558 if test -z "$ac_cv_path_EGREP"; then
3559 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3560 fi
3561 else
3562 ac_cv_path_EGREP=$EGREP
3563 fi
3564
3565 fi ;;
3566 esac
3567 fi
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3569 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
3570 EGREP="$ac_cv_path_EGREP"
3571
3572 EGREP_TRADITIONAL=$EGREP
3573 ac_cv_path_EGREP_TRADITIONAL=$EGREP
3574
3575
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
3577 printf %s "checking whether termios.h defines TIOCGWINSZ... " >&6; }
3578 if test ${ac_cv_sys_tiocgwinsz_in_termios_h+y}
3579 then :
3580 printf %s "(cached) " >&6
3581 else case e in #(
3582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584 $ac_includes_default
3585 #include <termios.h>
3586 const int tiocgwinsz = TIOCGWINSZ;
3587
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"
3590 then :
3591 ac_cv_sys_tiocgwinsz_in_termios_h=yes
3592 else case e in #(
3593 e) ac_cv_sys_tiocgwinsz_in_termios_h=no ;;
3594 esac
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3597 esac
3598 fi
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
3600 printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
3601
3602 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
3604 printf %s "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
3605 if test ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+y}
3606 then :
3607 printf %s "(cached) " >&6
3608 else case e in #(
3609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3611 $ac_includes_default
3612 #include <sys/ioctl.h>
3613 const int tiocgwinsz = TIOCGWINSZ;
3614
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"
3617 then :
3618 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
3619 else case e in #(
3620 e) ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no ;;
3621 esac
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3624 esac
3625 fi
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
3627 printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
3628
3629 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
3630
3631 printf "%s\n" "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
3632
3633 fi
3634 fi
3635
3636
3637
3638 # ensure CFLAGS are set
3639 if test "${CFLAGS+set}"
3640 then :
3641
3642 USE_DEFAULT_CFLAGS=false
3643
3644 else case e in #(
3645 e)
3646 USE_DEFAULT_CFLAGS=true
3647 CFLAGS=""
3648 ;;
3649 esac
3650 fi
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 printf %s "checking for $ac_word... " >&6; }
3661 if test ${ac_cv_prog_CC+y}
3662 then :
3663 printf %s "(cached) " >&6
3664 else case e in #(
3665 e) if test -n "$CC"; then
3666 ac_cv_prog_CC="$CC" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671 IFS=$as_save_IFS
3672 case $as_dir in #(((
3673 '') as_dir=./ ;;
3674 */) ;;
3675 *) as_dir=$as_dir/ ;;
3676 esac
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3679 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3681 break 2
3682 fi
3683 done
3684 done
3685 IFS=$as_save_IFS
3686
3687 fi ;;
3688 esac
3689 fi
3690 CC=$ac_cv_prog_CC
3691 if test -n "$CC"; then
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3693 printf "%s\n" "$CC" >&6; }
3694 else
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 printf "%s\n" "no" >&6; }
3697 fi
3698
3699
3700 fi
3701 if test -z "$ac_cv_prog_CC"; then
3702 ac_ct_CC=$CC
3703 # Extract the first word of "gcc", so it can be a program name with args.
3704 set dummy gcc; ac_word=$2
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 printf %s "checking for $ac_word... " >&6; }
3707 if test ${ac_cv_prog_ac_ct_CC+y}
3708 then :
3709 printf %s "(cached) " >&6
3710 else case e in #(
3711 e) if test -n "$ac_ct_CC"; then
3712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717 IFS=$as_save_IFS
3718 case $as_dir in #(((
3719 '') as_dir=./ ;;
3720 */) ;;
3721 *) as_dir=$as_dir/ ;;
3722 esac
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3725 ac_cv_prog_ac_ct_CC="gcc"
3726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3727 break 2
3728 fi
3729 done
3730 done
3731 IFS=$as_save_IFS
3732
3733 fi ;;
3734 esac
3735 fi
3736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3737 if test -n "$ac_ct_CC"; then
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3739 printf "%s\n" "$ac_ct_CC" >&6; }
3740 else
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 printf "%s\n" "no" >&6; }
3743 fi
3744
3745 if test "x$ac_ct_CC" = x; then
3746 CC=""
3747 else
3748 case $cross_compiling:$ac_tool_warned in
3749 yes:)
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3751 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3752 ac_tool_warned=yes ;;
3753 esac
3754 CC=$ac_ct_CC
3755 fi
3756 else
3757 CC="$ac_cv_prog_CC"
3758 fi
3759
3760 if test -z "$CC"; then
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3763 set dummy ${ac_tool_prefix}cc; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_CC+y}
3767 then :
3768 printf %s "(cached) " >&6
3769 else case e in #(
3770 e) if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776 IFS=$as_save_IFS
3777 case $as_dir in #(((
3778 '') as_dir=./ ;;
3779 */) ;;
3780 *) as_dir=$as_dir/ ;;
3781 esac
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_CC="${ac_tool_prefix}cc"
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi ;;
3793 esac
3794 fi
3795 CC=$ac_cv_prog_CC
3796 if test -n "$CC"; then
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3798 printf "%s\n" "$CC" >&6; }
3799 else
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 printf "%s\n" "no" >&6; }
3802 fi
3803
3804
3805 fi
3806 fi
3807 if test -z "$CC"; then
3808 # Extract the first word of "cc", so it can be a program name with args.
3809 set dummy cc; ac_word=$2
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 printf %s "checking for $ac_word... " >&6; }
3812 if test ${ac_cv_prog_CC+y}
3813 then :
3814 printf %s "(cached) " >&6
3815 else case e in #(
3816 e) if test -n "$CC"; then
3817 ac_cv_prog_CC="$CC" # Let the user override the test.
3818 else
3819 ac_prog_rejected=no
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823 IFS=$as_save_IFS
3824 case $as_dir in #(((
3825 '') as_dir=./ ;;
3826 */) ;;
3827 *) as_dir=$as_dir/ ;;
3828 esac
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3831 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3832 ac_prog_rejected=yes
3833 continue
3834 fi
3835 ac_cv_prog_CC="cc"
3836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839 done
3840 done
3841 IFS=$as_save_IFS
3842
3843 if test $ac_prog_rejected = yes; then
3844 # We found a bogon in the path, so make sure we never use it.
3845 set dummy $ac_cv_prog_CC
3846 shift
3847 if test $# != 0; then
3848 # We chose a different compiler from the bogus one.
3849 # However, it has the same basename, so the bogon will be chosen
3850 # first if we set CC to just the basename; use the full file name.
3851 shift
3852 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3853 fi
3854 fi
3855 fi ;;
3856 esac
3857 fi
3858 CC=$ac_cv_prog_CC
3859 if test -n "$CC"; then
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 printf "%s\n" "$CC" >&6; }
3862 else
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 printf "%s\n" "no" >&6; }
3865 fi
3866
3867
3868 fi
3869 if test -z "$CC"; then
3870 if test -n "$ac_tool_prefix"; then
3871 for ac_prog in cl.exe
3872 do
3873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 printf %s "checking for $ac_word... " >&6; }
3877 if test ${ac_cv_prog_CC+y}
3878 then :
3879 printf %s "(cached) " >&6
3880 else case e in #(
3881 e) if test -n "$CC"; then
3882 ac_cv_prog_CC="$CC" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 case $as_dir in #(((
3889 '') as_dir=./ ;;
3890 */) ;;
3891 *) as_dir=$as_dir/ ;;
3892 esac
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899 done
3900 done
3901 IFS=$as_save_IFS
3902
3903 fi ;;
3904 esac
3905 fi
3906 CC=$ac_cv_prog_CC
3907 if test -n "$CC"; then
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909 printf "%s\n" "$CC" >&6; }
3910 else
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 printf "%s\n" "no" >&6; }
3913 fi
3914
3915
3916 test -n "$CC" && break
3917 done
3918 fi
3919 if test -z "$CC"; then
3920 ac_ct_CC=$CC
3921 for ac_prog in cl.exe
3922 do
3923 # Extract the first word of "$ac_prog", so it can be a program name with args.
3924 set dummy $ac_prog; ac_word=$2
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 printf %s "checking for $ac_word... " >&6; }
3927 if test ${ac_cv_prog_ac_ct_CC+y}
3928 then :
3929 printf %s "(cached) " >&6
3930 else case e in #(
3931 e) if test -n "$ac_ct_CC"; then
3932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3936 do
3937 IFS=$as_save_IFS
3938 case $as_dir in #(((
3939 '') as_dir=./ ;;
3940 */) ;;
3941 *) as_dir=$as_dir/ ;;
3942 esac
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3945 ac_cv_prog_ac_ct_CC="$ac_prog"
3946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3947 break 2
3948 fi
3949 done
3950 done
3951 IFS=$as_save_IFS
3952
3953 fi ;;
3954 esac
3955 fi
3956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3957 if test -n "$ac_ct_CC"; then
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3959 printf "%s\n" "$ac_ct_CC" >&6; }
3960 else
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 printf "%s\n" "no" >&6; }
3963 fi
3964
3965
3966 test -n "$ac_ct_CC" && break
3967 done
3968
3969 if test "x$ac_ct_CC" = x; then
3970 CC=""
3971 else
3972 case $cross_compiling:$ac_tool_warned in
3973 yes:)
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3976 ac_tool_warned=yes ;;
3977 esac
3978 CC=$ac_ct_CC
3979 fi
3980 fi
3981
3982 fi
3983 if test -z "$CC"; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}clang; ac_word=$2
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 printf %s "checking for $ac_word... " >&6; }
3989 if test ${ac_cv_prog_CC+y}
3990 then :
3991 printf %s "(cached) " >&6
3992 else case e in #(
3993 e) if test -n "$CC"; then
3994 ac_cv_prog_CC="$CC" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 case $as_dir in #(((
4001 '') as_dir=./ ;;
4002 */) ;;
4003 *) as_dir=$as_dir/ ;;
4004 esac
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4007 ac_cv_prog_CC="${ac_tool_prefix}clang"
4008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011 done
4012 done
4013 IFS=$as_save_IFS
4014
4015 fi ;;
4016 esac
4017 fi
4018 CC=$ac_cv_prog_CC
4019 if test -n "$CC"; then
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4021 printf "%s\n" "$CC" >&6; }
4022 else
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 printf "%s\n" "no" >&6; }
4025 fi
4026
4027
4028 fi
4029 if test -z "$ac_cv_prog_CC"; then
4030 ac_ct_CC=$CC
4031 # Extract the first word of "clang", so it can be a program name with args.
4032 set dummy clang; ac_word=$2
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 printf %s "checking for $ac_word... " >&6; }
4035 if test ${ac_cv_prog_ac_ct_CC+y}
4036 then :
4037 printf %s "(cached) " >&6
4038 else case e in #(
4039 e) if test -n "$ac_ct_CC"; then
4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045 IFS=$as_save_IFS
4046 case $as_dir in #(((
4047 '') as_dir=./ ;;
4048 */) ;;
4049 *) as_dir=$as_dir/ ;;
4050 esac
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_ac_ct_CC="clang"
4054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 fi ;;
4062 esac
4063 fi
4064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4065 if test -n "$ac_ct_CC"; then
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4067 printf "%s\n" "$ac_ct_CC" >&6; }
4068 else
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 printf "%s\n" "no" >&6; }
4071 fi
4072
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077 yes:)
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080 ac_tool_warned=yes ;;
4081 esac
4082 CC=$ac_ct_CC
4083 fi
4084 else
4085 CC="$ac_cv_prog_CC"
4086 fi
4087
4088 fi
4089
4090
4091 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4092 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4093 as_fn_error $? "no acceptable C compiler found in \$PATH
4094 See 'config.log' for more details" "$LINENO" 5; }
4095
4096 # Provide some information about the compiler.
4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4098 set X $ac_compile
4099 ac_compiler=$2
4100 for ac_option in --version -v -V -qversion -version; do
4101 { { ac_try="$ac_compiler $ac_option >&5"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 printf "%s\n" "$ac_try_echo"; } >&5
4108 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4109 ac_status=$?
4110 if test -s conftest.err; then
4111 sed '10a\
4112 ... rest of stderr output deleted ...
4113 10q' conftest.err >conftest.er1
4114 cat conftest.er1 >&5
4115 fi
4116 rm -f conftest.er1 conftest.err
4117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }
4119 done
4120
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4122 printf %s "checking whether the compiler supports GNU C... " >&6; }
4123 if test ${ac_cv_c_compiler_gnu+y}
4124 then :
4125 printf %s "(cached) " >&6
4126 else case e in #(
4127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129
4130 int
4131 main (void)
4132 {
4133 #ifndef __GNUC__
4134 choke me
4135 #endif
4136
4137 ;
4138 return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"
4142 then :
4143 ac_compiler_gnu=yes
4144 else case e in #(
4145 e) ac_compiler_gnu=no ;;
4146 esac
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4149 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4150 ;;
4151 esac
4152 fi
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4154 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156
4157 if test $ac_compiler_gnu = yes; then
4158 GCC=yes
4159 else
4160 GCC=
4161 fi
4162 ac_test_CFLAGS=${CFLAGS+y}
4163 ac_save_CFLAGS=$CFLAGS
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4165 printf %s "checking whether $CC accepts -g... " >&6; }
4166 if test ${ac_cv_prog_cc_g+y}
4167 then :
4168 printf %s "(cached) " >&6
4169 else case e in #(
4170 e) ac_save_c_werror_flag=$ac_c_werror_flag
4171 ac_c_werror_flag=yes
4172 ac_cv_prog_cc_g=no
4173 CFLAGS="-g"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176
4177 int
4178 main (void)
4179 {
4180
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"
4186 then :
4187 ac_cv_prog_cc_g=yes
4188 else case e in #(
4189 e) CFLAGS=""
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192
4193 int
4194 main (void)
4195 {
4196
4197 ;
4198 return 0;
4199 }
4200 _ACEOF
4201 if ac_fn_c_try_compile "$LINENO"
4202 then :
4203
4204 else case e in #(
4205 e) ac_c_werror_flag=$ac_save_c_werror_flag
4206 CFLAGS="-g"
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209
4210 int
4211 main (void)
4212 {
4213
4214 ;
4215 return 0;
4216 }
4217 _ACEOF
4218 if ac_fn_c_try_compile "$LINENO"
4219 then :
4220 ac_cv_prog_cc_g=yes
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4223 esac
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4226 esac
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4229 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4230 esac
4231 fi
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4233 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4234 if test $ac_test_CFLAGS; then
4235 CFLAGS=$ac_save_CFLAGS
4236 elif test $ac_cv_prog_cc_g = yes; then
4237 if test "$GCC" = yes; then
4238 CFLAGS="-g -O2"
4239 else
4240 CFLAGS="-g"
4241 fi
4242 else
4243 if test "$GCC" = yes; then
4244 CFLAGS="-O2"
4245 else
4246 CFLAGS=
4247 fi
4248 fi
4249 ac_prog_cc_stdc=no
4250 if test x$ac_prog_cc_stdc = xno
4251 then :
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4253 printf %s "checking for $CC option to enable C11 features... " >&6; }
4254 if test ${ac_cv_prog_cc_c11+y}
4255 then :
4256 printf %s "(cached) " >&6
4257 else case e in #(
4258 e) ac_cv_prog_cc_c11=no
4259 ac_save_CC=$CC
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 $ac_c_conftest_c11_program
4263 _ACEOF
4264 for ac_arg in '' -std=gnu11
4265 do
4266 CC="$ac_save_CC $ac_arg"
4267 if ac_fn_c_try_compile "$LINENO"
4268 then :
4269 ac_cv_prog_cc_c11=$ac_arg
4270 fi
4271 rm -f core conftest.err conftest.$ac_objext conftest.beam
4272 test "x$ac_cv_prog_cc_c11" != "xno" && break
4273 done
4274 rm -f conftest.$ac_ext
4275 CC=$ac_save_CC ;;
4276 esac
4277 fi
4278
4279 if test "x$ac_cv_prog_cc_c11" = xno
4280 then :
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282 printf "%s\n" "unsupported" >&6; }
4283 else case e in #(
4284 e) if test "x$ac_cv_prog_cc_c11" = x
4285 then :
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4287 printf "%s\n" "none needed" >&6; }
4288 else case e in #(
4289 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4290 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4291 CC="$CC $ac_cv_prog_cc_c11" ;;
4292 esac
4293 fi
4294 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4295 ac_prog_cc_stdc=c11 ;;
4296 esac
4297 fi
4298 fi
4299 if test x$ac_prog_cc_stdc = xno
4300 then :
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4302 printf %s "checking for $CC option to enable C99 features... " >&6; }
4303 if test ${ac_cv_prog_cc_c99+y}
4304 then :
4305 printf %s "(cached) " >&6
4306 else case e in #(
4307 e) ac_cv_prog_cc_c99=no
4308 ac_save_CC=$CC
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311 $ac_c_conftest_c99_program
4312 _ACEOF
4313 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4314 do
4315 CC="$ac_save_CC $ac_arg"
4316 if ac_fn_c_try_compile "$LINENO"
4317 then :
4318 ac_cv_prog_cc_c99=$ac_arg
4319 fi
4320 rm -f core conftest.err conftest.$ac_objext conftest.beam
4321 test "x$ac_cv_prog_cc_c99" != "xno" && break
4322 done
4323 rm -f conftest.$ac_ext
4324 CC=$ac_save_CC ;;
4325 esac
4326 fi
4327
4328 if test "x$ac_cv_prog_cc_c99" = xno
4329 then :
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4331 printf "%s\n" "unsupported" >&6; }
4332 else case e in #(
4333 e) if test "x$ac_cv_prog_cc_c99" = x
4334 then :
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4336 printf "%s\n" "none needed" >&6; }
4337 else case e in #(
4338 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4339 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4340 CC="$CC $ac_cv_prog_cc_c99" ;;
4341 esac
4342 fi
4343 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4344 ac_prog_cc_stdc=c99 ;;
4345 esac
4346 fi
4347 fi
4348 if test x$ac_prog_cc_stdc = xno
4349 then :
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4351 printf %s "checking for $CC option to enable C89 features... " >&6; }
4352 if test ${ac_cv_prog_cc_c89+y}
4353 then :
4354 printf %s "(cached) " >&6
4355 else case e in #(
4356 e) ac_cv_prog_cc_c89=no
4357 ac_save_CC=$CC
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 $ac_c_conftest_c89_program
4361 _ACEOF
4362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4363 do
4364 CC="$ac_save_CC $ac_arg"
4365 if ac_fn_c_try_compile "$LINENO"
4366 then :
4367 ac_cv_prog_cc_c89=$ac_arg
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext conftest.beam
4370 test "x$ac_cv_prog_cc_c89" != "xno" && break
4371 done
4372 rm -f conftest.$ac_ext
4373 CC=$ac_save_CC ;;
4374 esac
4375 fi
4376
4377 if test "x$ac_cv_prog_cc_c89" = xno
4378 then :
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4380 printf "%s\n" "unsupported" >&6; }
4381 else case e in #(
4382 e) if test "x$ac_cv_prog_cc_c89" = x
4383 then :
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4385 printf "%s\n" "none needed" >&6; }
4386 else case e in #(
4387 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4388 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4389 CC="$CC $ac_cv_prog_cc_c89" ;;
4390 esac
4391 fi
4392 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4393 ac_prog_cc_stdc=c89 ;;
4394 esac
4395 fi
4396 fi
4397
4398 ac_ext=c
4399 ac_cpp='$CPP $CPPFLAGS'
4400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
4404
4405 # add --enable-debug arg
4406 # Check whether --enable-debug was given.
4407 if test ${enable_debug+y}
4408 then :
4409 enableval=$enable_debug;
4410 fi
4411
4412 if test "$enable_debug" = "yes"
4413 then :
4414
4415 # add the DEBUG pre-processor define
4416
4417 printf "%s\n" "#define DEBUG 1" >>confdefs.h
4418
4419 # gcc/gdb debug options
4420 if test "$GCC" = "yes"
4421 then :
4422
4423 DEBUG_CFLAGS="-ggdb -O0"
4424
4425 else case e in #(
4426 e)
4427
4428 # default to -g
4429 if test "$ac_cv_prog_cc_g" = "yes"
4430 then :
4431
4432 DEBUG_CFLAGS="-g"
4433
4434 else case e in #(
4435 e)
4436 DEBUG_CFLAGS=""
4437 ;;
4438 esac
4439 fi
4440
4441 ;;
4442 esac
4443 fi
4444
4445 else case e in #(
4446 e)
4447 # what AC_PROG_CC would have done if CFLAGS were not set
4448 if $USE_DEFAULT_CFLAGS
4449 then :
4450
4451
4452 # default to -g
4453 if test "$ac_cv_prog_cc_g" = "yes"
4454 then :
4455
4456 DEBUG_CFLAGS="-g"
4457
4458 else case e in #(
4459 e)
4460 DEBUG_CFLAGS=""
4461 ;;
4462 esac
4463 fi
4464
4465 if test "$GCC" = "yes"
4466 then :
4467
4468 DEBUG_CFLAGS="$DEBUG_CFLAGS -O2"
4469
4470 fi
4471
4472 fi
4473 ;;
4474 esac
4475 fi
4476 DEBUG_CFLAGS=$DEBUG_CFLAGS
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4488 if test -n "$ac_tool_prefix"; then
4489 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4490 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492 printf %s "checking for $ac_word... " >&6; }
4493 if test ${ac_cv_path_PKG_CONFIG+y}
4494 then :
4495 printf %s "(cached) " >&6
4496 else case e in #(
4497 e) case $PKG_CONFIG in
4498 [\\/]* | ?:[\\/]*)
4499 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4500 ;;
4501 *)
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505 IFS=$as_save_IFS
4506 case $as_dir in #(((
4507 '') as_dir=./ ;;
4508 */) ;;
4509 *) as_dir=$as_dir/ ;;
4510 esac
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4513 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517 done
4518 done
4519 IFS=$as_save_IFS
4520
4521 ;;
4522 esac ;;
4523 esac
4524 fi
4525 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4526 if test -n "$PKG_CONFIG"; then
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4528 printf "%s\n" "$PKG_CONFIG" >&6; }
4529 else
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 printf "%s\n" "no" >&6; }
4532 fi
4533
4534
4535 fi
4536 if test -z "$ac_cv_path_PKG_CONFIG"; then
4537 ac_pt_PKG_CONFIG=$PKG_CONFIG
4538 # Extract the first word of "pkg-config", so it can be a program name with args.
4539 set dummy pkg-config; ac_word=$2
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 printf %s "checking for $ac_word... " >&6; }
4542 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4543 then :
4544 printf %s "(cached) " >&6
4545 else case e in #(
4546 e) case $ac_pt_PKG_CONFIG in
4547 [\\/]* | ?:[\\/]*)
4548 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4549 ;;
4550 *)
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554 IFS=$as_save_IFS
4555 case $as_dir in #(((
4556 '') as_dir=./ ;;
4557 */) ;;
4558 *) as_dir=$as_dir/ ;;
4559 esac
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4562 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566 done
4567 done
4568 IFS=$as_save_IFS
4569
4570 ;;
4571 esac ;;
4572 esac
4573 fi
4574 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4575 if test -n "$ac_pt_PKG_CONFIG"; then
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4577 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4578 else
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 printf "%s\n" "no" >&6; }
4581 fi
4582
4583 if test "x$ac_pt_PKG_CONFIG" = x; then
4584 PKG_CONFIG=""
4585 else
4586 case $cross_compiling:$ac_tool_warned in
4587 yes:)
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590 ac_tool_warned=yes ;;
4591 esac
4592 PKG_CONFIG=$ac_pt_PKG_CONFIG
4593 fi
4594 else
4595 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4596 fi
4597
4598 fi
4599 if test -n "$PKG_CONFIG"; then
4600 _pkg_min_version=0.9.0
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4602 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4603 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4605 printf "%s\n" "yes" >&6; }
4606 else
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 printf "%s\n" "no" >&6; }
4609 PKG_CONFIG=""
4610 fi
4611 fi
4612 if test -z "$PKG_CONFIG"; then
4613 as_fn_error $? "pkg-config not found" "$LINENO" 5
4614 fi
4615
4616
4617
4618
4619 # Check whether --with-ncurses was given.
4620 if test ${with_ncurses+y}
4621 then :
4622 withval=$with_ncurses;
4623 else case e in #(
4624 e) with_ncurses=check ;;
4625 esac
4626 fi
4627
4628
4629 # Check whether --with-ncursesw was given.
4630 if test ${with_ncursesw+y}
4631 then :
4632 withval=$with_ncursesw;
4633 else case e in #(
4634 e) with_ncursesw=check ;;
4635 esac
4636 fi
4637
4638
4639 ax_saved_LIBS=$LIBS
4640 ax_saved_CPPFLAGS=$CPPFLAGS
4641
4642 if test "x$with_ncurses" = xyes || test "x$with_ncursesw" = xyes
4643 then :
4644 ax_with_plaincurses=no
4645 else case e in #(
4646 e) ax_with_plaincurses=check ;;
4647 esac
4648 fi
4649
4650 ax_cv_curses_which=no
4651
4652 # Test for NcursesW
4653 if test "x$CURSES_LIBS" = x && test "x$with_ncursesw" != xno
4654 then :
4655
4656
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw via pkg-config" >&5
4658 printf %s "checking for ncursesw via pkg-config... " >&6; }
4659
4660
4661
4662 if test -n "$_ax_cv_ncursesw_libs"; then
4663 pkg_cv__ax_cv_ncursesw_libs="$_ax_cv_ncursesw_libs"
4664 elif test -n "$PKG_CONFIG"; then
4665 if test -n "$PKG_CONFIG" && \
4666 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
4667 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
4668 ac_status=$?
4669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }; then
4671 pkg_cv__ax_cv_ncursesw_libs=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
4672 test "x$?" != "x0" && pkg_failed=yes
4673 else
4674 pkg_failed=yes
4675 fi
4676 else
4677 pkg_failed=untried
4678 fi
4679 if test -n "$_ax_cv_ncursesw_cppflags"; then
4680 pkg_cv__ax_cv_ncursesw_cppflags="$_ax_cv_ncursesw_cppflags"
4681 elif test -n "$PKG_CONFIG"; then
4682 if test -n "$PKG_CONFIG" && \
4683 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
4684 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
4685 ac_status=$?
4686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4687 test $ac_status = 0; }; then
4688 pkg_cv__ax_cv_ncursesw_cppflags=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
4689 test "x$?" != "x0" && pkg_failed=yes
4690 else
4691 pkg_failed=yes
4692 fi
4693 else
4694 pkg_failed=untried
4695 fi
4696
4697 if test "x$pkg_failed" = "xyes" || test "x$pkg_failed" = "xuntried"
4698 then :
4699
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 printf "%s\n" "no" >&6; }
4702 # No suitable .pc file found, have to find flags via fallback
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw via fallback" >&5
4704 printf %s "checking for ncursesw via fallback... " >&6; }
4705 if test ${ax_cv_ncursesw+y}
4706 then :
4707 printf %s "(cached) " >&6
4708 else case e in #(
4709 e)
4710 printf "%s\n"
4711 pkg_cv__ax_cv_ncursesw_libs="-lncursesw"
4712 pkg_cv__ax_cv_ncursesw_cppflags="-D_GNU_SOURCE $CURSES_CFLAGS"
4713 LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncursesw_libs"
4714 CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncursesw_cppflags"
4715
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr() with $pkg_cv__ax_cv_ncursesw_libs" >&5
4717 printf %s "checking for initscr() with $pkg_cv__ax_cv_ncursesw_libs... " >&6; }
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 /* Override any GCC internal prototype to avoid an error.
4722 Use char because int might match the return type of a GCC
4723 builtin and then its argument prototype would still apply.
4724 The 'extern "C"' is for builds by C++ compilers;
4725 although this is not generally supported in C code supporting it here
4726 has little cost and some practical benefit (sr 110532). */
4727 #ifdef __cplusplus
4728 extern "C"
4729 #endif
4730 char initscr (void);
4731 int
4732 main (void)
4733 {
4734 return initscr ();
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_link "$LINENO"
4740 then :
4741
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4743 printf "%s\n" "yes" >&6; }
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncursesw_libs" >&5
4745 printf %s "checking for nodelay() with $pkg_cv__ax_cv_ncursesw_libs... " >&6; }
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748
4749 /* Override any GCC internal prototype to avoid an error.
4750 Use char because int might match the return type of a GCC
4751 builtin and then its argument prototype would still apply.
4752 The 'extern "C"' is for builds by C++ compilers;
4753 although this is not generally supported in C code supporting it here
4754 has little cost and some practical benefit (sr 110532). */
4755 #ifdef __cplusplus
4756 extern "C"
4757 #endif
4758 char nodelay (void);
4759 int
4760 main (void)
4761 {
4762 return nodelay ();
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_c_try_link "$LINENO"
4768 then :
4769
4770 ax_cv_ncursesw=yes
4771
4772 else case e in #(
4773 e)
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 printf "%s\n" "no" >&6; }
4776 pkg_cv__ax_cv_ncursesw_libs="$pkg_cv__ax_cv_ncursesw_libs -ltinfow"
4777 LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncursesw_libs"
4778
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncursesw_libs" >&5
4780 printf %s "checking for nodelay() with $pkg_cv__ax_cv_ncursesw_libs... " >&6; }
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783
4784 /* Override any GCC internal prototype to avoid an error.
4785 Use char because int might match the return type of a GCC
4786 builtin and then its argument prototype would still apply.
4787 The 'extern "C"' is for builds by C++ compilers;
4788 although this is not generally supported in C code supporting it here
4789 has little cost and some practical benefit (sr 110532). */
4790 #ifdef __cplusplus
4791 extern "C"
4792 #endif
4793 char nodelay (void);
4794 int
4795 main (void)
4796 {
4797 return nodelay ();
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 if ac_fn_c_try_link "$LINENO"
4803 then :
4804
4805 ax_cv_ncursesw=yes
4806
4807 else case e in #(
4808 e)
4809 ax_cv_ncursesw=no
4810 ;;
4811 esac
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4814 conftest$ac_exeext conftest.$ac_ext
4815 ;;
4816 esac
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4819 conftest$ac_exeext conftest.$ac_ext
4820
4821 else case e in #(
4822 e)
4823 ax_cv_ncursesw=no
4824 ;;
4825 esac
4826 fi
4827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4828 conftest$ac_exeext conftest.$ac_ext
4829 ;;
4830 esac
4831 fi
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ncursesw" >&5
4833 printf "%s\n" "$ax_cv_ncursesw" >&6; }
4834
4835 else case e in #(
4836 e)
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4838 printf "%s\n" "yes" >&6; }
4839 # Found .pc file, using its information
4840 LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncursesw_libs"
4841 CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncursesw_cppflags"
4842 ax_cv_ncursesw=yes
4843 ;;
4844 esac
4845 fi
4846
4847
4848 if test "x$ax_cv_ncursesw" = xno && test "x$with_ncursesw" = xyes
4849 then :
4850
4851 as_fn_error $? "--with-ncursesw specified but could not find NcursesW library" "$LINENO" 5
4852
4853 fi
4854
4855 if test "x$ax_cv_ncursesw" = xyes
4856 then :
4857
4858 ax_cv_curses=yes
4859 ax_cv_curses_which=ncursesw
4860 CURSES_LIBS="$pkg_cv__ax_cv_ncursesw_libs"
4861 CURSES_CFLAGS="$pkg_cv__ax_cv_ncursesw_cppflags"
4862
4863 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
4864
4865
4866 printf "%s\n" "#define HAVE_CURSES 1" >>confdefs.h
4867
4868
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ncursesw/curses.h" >&5
4870 printf %s "checking for working ncursesw/curses.h... " >&6; }
4871 if test ${ax_cv_header_ncursesw_curses_h+y}
4872 then :
4873 printf %s "(cached) " >&6
4874 else case e in #(
4875 e)
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4878
4879 #define _XOPEN_SOURCE_EXTENDED 1
4880 #include <ncursesw/curses.h>
4881
4882 int
4883 main (void)
4884 {
4885
4886 chtype a = A_BOLD;
4887 int b = KEY_LEFT;
4888 chtype c = COLOR_PAIR(1) & A_COLOR;
4889 attr_t d = WA_NORMAL;
4890 cchar_t e;
4891 wint_t f;
4892 int g = getattrs(stdscr);
4893 int h = getcurx(stdscr) + getmaxx(stdscr);
4894 initscr();
4895 init_pair(1, COLOR_WHITE, COLOR_RED);
4896 wattr_set(stdscr, d, 0, NULL);
4897 wget_wch(stdscr, &f);
4898
4899 ;
4900 return 0;
4901 }
4902 _ACEOF
4903 if ac_fn_c_try_link "$LINENO"
4904 then :
4905 ax_cv_header_ncursesw_curses_h=yes
4906 else case e in #(
4907 e) ax_cv_header_ncursesw_curses_h=no ;;
4908 esac
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4911 conftest$ac_exeext conftest.$ac_ext
4912 ;;
4913 esac
4914 fi
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_curses_h" >&5
4916 printf "%s\n" "$ax_cv_header_ncursesw_curses_h" >&6; }
4917 if test "x$ax_cv_header_ncursesw_curses_h" = xyes
4918 then :
4919
4920 ax_cv_curses_enhanced=yes
4921 ax_cv_curses_color=yes
4922 ax_cv_curses_obsolete=yes
4923
4924 printf "%s\n" "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
4925
4926
4927 printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
4928
4929
4930 printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
4931
4932
4933 printf "%s\n" "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h
4934
4935
4936 fi
4937
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ncursesw.h" >&5
4939 printf %s "checking for working ncursesw.h... " >&6; }
4940 if test ${ax_cv_header_ncursesw_h+y}
4941 then :
4942 printf %s "(cached) " >&6
4943 else case e in #(
4944 e)
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947
4948 #define _XOPEN_SOURCE_EXTENDED 1
4949 #include <ncursesw.h>
4950
4951 int
4952 main (void)
4953 {
4954
4955 chtype a = A_BOLD;
4956 int b = KEY_LEFT;
4957 chtype c = COLOR_PAIR(1) & A_COLOR;
4958 attr_t d = WA_NORMAL;
4959 cchar_t e;
4960 wint_t f;
4961 int g = getattrs(stdscr);
4962 int h = getcurx(stdscr) + getmaxx(stdscr);
4963 initscr();
4964 init_pair(1, COLOR_WHITE, COLOR_RED);
4965 wattr_set(stdscr, d, 0, NULL);
4966 wget_wch(stdscr, &f);
4967
4968 ;
4969 return 0;
4970 }
4971 _ACEOF
4972 if ac_fn_c_try_link "$LINENO"
4973 then :
4974 ax_cv_header_ncursesw_h=yes
4975 else case e in #(
4976 e) ax_cv_header_ncursesw_h=no ;;
4977 esac
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4980 conftest$ac_exeext conftest.$ac_ext
4981 ;;
4982 esac
4983 fi
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_h" >&5
4985 printf "%s\n" "$ax_cv_header_ncursesw_h" >&6; }
4986 if test "x$ax_cv_header_ncursesw_h" = xyes
4987 then :
4988
4989 ax_cv_curses_enhanced=yes
4990 ax_cv_curses_color=yes
4991 ax_cv_curses_obsolete=yes
4992
4993 printf "%s\n" "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
4994
4995
4996 printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
4997
4998
4999 printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
5000
5001
5002 printf "%s\n" "#define HAVE_NCURSESW_H 1" >>confdefs.h
5003
5004
5005 fi
5006
5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ncurses.h" >&5
5008 printf %s "checking for working ncurses.h... " >&6; }
5009 if test ${ax_cv_header_ncurses_h_with_ncursesw+y}
5010 then :
5011 printf %s "(cached) " >&6
5012 else case e in #(
5013 e)
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016
5017 #define _XOPEN_SOURCE_EXTENDED 1
5018 #include <ncurses.h>
5019
5020 int
5021 main (void)
5022 {
5023
5024 chtype a = A_BOLD;
5025 int b = KEY_LEFT;
5026 chtype c = COLOR_PAIR(1) & A_COLOR;
5027 attr_t d = WA_NORMAL;
5028 cchar_t e;
5029 wint_t f;
5030 int g = getattrs(stdscr);
5031 int h = getcurx(stdscr) + getmaxx(stdscr);
5032 initscr();
5033 init_pair(1, COLOR_WHITE, COLOR_RED);
5034 wattr_set(stdscr, d, 0, NULL);
5035 wget_wch(stdscr, &f);
5036
5037 ;
5038 return 0;
5039 }
5040 _ACEOF
5041 if ac_fn_c_try_link "$LINENO"
5042 then :
5043 ax_cv_header_ncurses_h_with_ncursesw=yes
5044 else case e in #(
5045 e) ax_cv_header_ncurses_h_with_ncursesw=no ;;
5046 esac
5047 fi
5048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5049 conftest$ac_exeext conftest.$ac_ext
5050 ;;
5051 esac
5052 fi
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_h_with_ncursesw" >&5
5054 printf "%s\n" "$ax_cv_header_ncurses_h_with_ncursesw" >&6; }
5055 if test "x$ax_cv_header_ncurses_h_with_ncursesw" = xyes
5056 then :
5057
5058 ax_cv_curses_enhanced=yes
5059 ax_cv_curses_color=yes
5060 ax_cv_curses_obsolete=yes
5061
5062 printf "%s\n" "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
5063
5064
5065 printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
5066
5067
5068 printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
5069
5070
5071 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
5072
5073
5074 fi
5075
5076 if test "x$ax_cv_header_ncursesw_curses_h" = xno && test "x$ax_cv_header_ncursesw_h" = xno && test "x$ax_cv_header_ncurses_h_with_ncursesw" = xno
5077 then :
5078
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working ncursesw/curses.h, ncursesw.h or ncurses.h" >&5
5080 printf "%s\n" "$as_me: WARNING: could not find a working ncursesw/curses.h, ncursesw.h or ncurses.h" >&2;}
5081
5082 fi
5083
5084 fi
5085
5086 fi
5087 unset pkg_cv__ax_cv_ncursesw_libs
5088 unset pkg_cv__ax_cv_ncursesw_cppflags
5089
5090 # Test for Ncurses
5091 if test "x$CURSES_LIBS" = x && test "x$with_ncurses" != xno && test "x$ax_cv_curses_which" = xno
5092 then :
5093
5094
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses via pkg-config" >&5
5096 printf %s "checking for ncurses via pkg-config... " >&6; }
5097
5098
5099
5100 if test -n "$_ax_cv_ncurses_libs"; then
5101 pkg_cv__ax_cv_ncurses_libs="$_ax_cv_ncurses_libs"
5102 elif test -n "$PKG_CONFIG"; then
5103 if test -n "$PKG_CONFIG" && \
5104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
5105 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
5106 ac_status=$?
5107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; }; then
5109 pkg_cv__ax_cv_ncurses_libs=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
5110 test "x$?" != "x0" && pkg_failed=yes
5111 else
5112 pkg_failed=yes
5113 fi
5114 else
5115 pkg_failed=untried
5116 fi
5117 if test -n "$_ax_cv_ncurses_cppflags"; then
5118 pkg_cv__ax_cv_ncurses_cppflags="$_ax_cv_ncurses_cppflags"
5119 elif test -n "$PKG_CONFIG"; then
5120 if test -n "$PKG_CONFIG" && \
5121 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
5122 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
5123 ac_status=$?
5124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5125 test $ac_status = 0; }; then
5126 pkg_cv__ax_cv_ncurses_cppflags=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
5127 test "x$?" != "x0" && pkg_failed=yes
5128 else
5129 pkg_failed=yes
5130 fi
5131 else
5132 pkg_failed=untried
5133 fi
5134
5135 if test "x$pkg_failed" = "xyes" || test "x$pkg_failed" = "xuntried"
5136 then :
5137
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 printf "%s\n" "no" >&6; }
5140 # No suitable .pc file found, have to find flags via fallback
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses via fallback" >&5
5142 printf %s "checking for ncurses via fallback... " >&6; }
5143 if test ${ax_cv_ncurses+y}
5144 then :
5145 printf %s "(cached) " >&6
5146 else case e in #(
5147 e)
5148 printf "%s\n"
5149 pkg_cv__ax_cv_ncurses_libs="-lncurses"
5150 pkg_cv__ax_cv_ncurses_cppflags="-D_GNU_SOURCE $CURSES_CFLAGS"
5151 LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncurses_libs"
5152 CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncurses_cppflags"
5153
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr() with $pkg_cv__ax_cv_ncurses_libs" >&5
5155 printf %s "checking for initscr() with $pkg_cv__ax_cv_ncurses_libs... " >&6; }
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158
5159 /* Override any GCC internal prototype to avoid an error.
5160 Use char because int might match the return type of a GCC
5161 builtin and then its argument prototype would still apply.
5162 The 'extern "C"' is for builds by C++ compilers;
5163 although this is not generally supported in C code supporting it here
5164 has little cost and some practical benefit (sr 110532). */
5165 #ifdef __cplusplus
5166 extern "C"
5167 #endif
5168 char initscr (void);
5169 int
5170 main (void)
5171 {
5172 return initscr ();
5173 ;
5174 return 0;
5175 }
5176 _ACEOF
5177 if ac_fn_c_try_link "$LINENO"
5178 then :
5179
5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5181 printf "%s\n" "yes" >&6; }
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncurses_libs" >&5
5183 printf %s "checking for nodelay() with $pkg_cv__ax_cv_ncurses_libs... " >&6; }
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186
5187 /* Override any GCC internal prototype to avoid an error.
5188 Use char because int might match the return type of a GCC
5189 builtin and then its argument prototype would still apply.
5190 The 'extern "C"' is for builds by C++ compilers;
5191 although this is not generally supported in C code supporting it here
5192 has little cost and some practical benefit (sr 110532). */
5193 #ifdef __cplusplus
5194 extern "C"
5195 #endif
5196 char nodelay (void);
5197 int
5198 main (void)
5199 {
5200 return nodelay ();
5201 ;
5202 return 0;
5203 }
5204 _ACEOF
5205 if ac_fn_c_try_link "$LINENO"
5206 then :
5207
5208 ax_cv_ncurses=yes
5209
5210 else case e in #(
5211 e)
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 printf "%s\n" "no" >&6; }
5214 pkg_cv__ax_cv_ncurses_libs="$pkg_cv__ax_cv_ncurses_libs -ltinfo"
5215
5216 LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncurses_libs"
5217
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncurses_libs" >&5
5219 printf %s "checking for nodelay() with $pkg_cv__ax_cv_ncurses_libs... " >&6; }
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222
5223 /* Override any GCC internal prototype to avoid an error.
5224 Use char because int might match the return type of a GCC
5225 builtin and then its argument prototype would still apply.
5226 The 'extern "C"' is for builds by C++ compilers;
5227 although this is not generally supported in C code supporting it here
5228 has little cost and some practical benefit (sr 110532). */
5229 #ifdef __cplusplus
5230 extern "C"
5231 #endif
5232 char nodelay (void);
5233 int
5234 main (void)
5235 {
5236 return nodelay ();
5237 ;
5238 return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_link "$LINENO"
5242 then :
5243
5244 ax_cv_ncurses=yes
5245
5246 else case e in #(
5247 e)
5248 ax_cv_ncurses=no
5249 ;;
5250 esac
5251 fi
5252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5253 conftest$ac_exeext conftest.$ac_ext
5254 ;;
5255 esac
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5258 conftest$ac_exeext conftest.$ac_ext
5259
5260 else case e in #(
5261 e)
5262 ax_cv_ncurses=no
5263 ;;
5264 esac
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5267 conftest$ac_exeext conftest.$ac_ext
5268 ;;
5269 esac
5270 fi
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ncurses" >&5
5272 printf "%s\n" "$ax_cv_ncurses" >&6; }
5273
5274 else case e in #(
5275 e)
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5277 printf "%s\n" "yes" >&6; }
5278 # Found .pc file, using its information
5279 LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncurses_libs"
5280 CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncurses_cppflags"
5281 ax_cv_ncurses=yes
5282 ;;
5283 esac
5284 fi
5285
5286
5287 if test "x$ax_cv_ncurses" = xno && test "x$with_ncurses" = xyes
5288 then :
5289
5290 as_fn_error $? "--with-ncurses specified but could not find Ncurses library" "$LINENO" 5
5291
5292 fi
5293
5294 if test "x$ax_cv_ncurses" = xyes
5295 then :
5296
5297 ax_cv_curses=yes
5298 ax_cv_curses_which=ncurses
5299 CURSES_LIBS="$pkg_cv__ax_cv_ncurses_libs"
5300 CURSES_CFLAGS="$pkg_cv__ax_cv_ncurses_cppflags"
5301
5302 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
5303
5304
5305 printf "%s\n" "#define HAVE_CURSES 1" >>confdefs.h
5306
5307
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ncurses/curses.h" >&5
5309 printf %s "checking for working ncurses/curses.h... " >&6; }
5310 if test ${ax_cv_header_ncurses_curses_h+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else case e in #(
5314 e)
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317
5318 #include <ncurses/curses.h>
5319
5320 int
5321 main (void)
5322 {
5323
5324 chtype a = A_BOLD;
5325 int b = KEY_LEFT;
5326 chtype c = COLOR_PAIR(1) & A_COLOR;
5327 int g = getattrs(stdscr);
5328 int h = getcurx(stdscr) + getmaxx(stdscr);
5329 initscr();
5330 init_pair(1, COLOR_WHITE, COLOR_RED);
5331
5332 ;
5333 return 0;
5334 }
5335 _ACEOF
5336 if ac_fn_c_try_link "$LINENO"
5337 then :
5338 ax_cv_header_ncurses_curses_h=yes
5339 else case e in #(
5340 e) ax_cv_header_ncurses_curses_h=no ;;
5341 esac
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5344 conftest$ac_exeext conftest.$ac_ext
5345 ;;
5346 esac
5347 fi
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_curses_h" >&5
5349 printf "%s\n" "$ax_cv_header_ncurses_curses_h" >&6; }
5350 if test "x$ax_cv_header_ncurses_curses_h" = xyes
5351 then :
5352
5353 ax_cv_curses_color=yes
5354 ax_cv_curses_obsolete=yes
5355
5356 printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
5357
5358
5359 printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
5360
5361
5362 printf "%s\n" "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h
5363
5364
5365 fi
5366
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ncurses.h" >&5
5368 printf %s "checking for working ncurses.h... " >&6; }
5369 if test ${ax_cv_header_ncurses_h+y}
5370 then :
5371 printf %s "(cached) " >&6
5372 else case e in #(
5373 e)
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376
5377 #include <ncurses.h>
5378
5379 int
5380 main (void)
5381 {
5382
5383 chtype a = A_BOLD;
5384 int b = KEY_LEFT;
5385 chtype c = COLOR_PAIR(1) & A_COLOR;
5386 int g = getattrs(stdscr);
5387 int h = getcurx(stdscr) + getmaxx(stdscr);
5388 initscr();
5389 init_pair(1, COLOR_WHITE, COLOR_RED);
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_link "$LINENO"
5396 then :
5397 ax_cv_header_ncurses_h=yes
5398 else case e in #(
5399 e) ax_cv_header_ncurses_h=no ;;
5400 esac
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5403 conftest$ac_exeext conftest.$ac_ext
5404 ;;
5405 esac
5406 fi
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_h" >&5
5408 printf "%s\n" "$ax_cv_header_ncurses_h" >&6; }
5409 if test "x$ax_cv_header_ncurses_h" = xyes
5410 then :
5411
5412 ax_cv_curses_color=yes
5413 ax_cv_curses_obsolete=yes
5414
5415 printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
5416
5417
5418 printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
5419
5420
5421 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
5422
5423
5424 fi
5425
5426 if test "x$ax_cv_header_ncurses_curses_h" = xno && test "x$ax_cv_header_ncurses_h" = xno
5427 then :
5428
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working ncurses/curses.h or ncurses.h" >&5
5430 printf "%s\n" "$as_me: WARNING: could not find a working ncurses/curses.h or ncurses.h" >&2;}
5431
5432 fi
5433
5434 fi
5435
5436 fi
5437 unset pkg_cv__ax_cv_ncurses_libs
5438 unset pkg_cv__ax_cv_ncurses_cppflags
5439
5440 # Test for plain Curses (or if CURSES_LIBS was set by user)
5441 if test "x$with_plaincurses" != xno && test "x$ax_cv_curses_which" = xno
5442 then :
5443
5444 if test "x$CURSES_LIBS" != x
5445 then :
5446
5447 LIBS="$ax_saved_LIBS $CURSES_LIBS"
5448
5449 else case e in #(
5450 e)
5451 LIBS="$ax_saved_LIBS -lcurses"
5452 ;;
5453 esac
5454 fi
5455
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Curses library" >&5
5457 printf %s "checking for Curses library... " >&6; }
5458 if test ${ax_cv_plaincurses+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else case e in #(
5462 e)
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465
5466 /* Override any GCC internal prototype to avoid an error.
5467 Use char because int might match the return type of a GCC
5468 builtin and then its argument prototype would still apply.
5469 The 'extern "C"' is for builds by C++ compilers;
5470 although this is not generally supported in C code supporting it here
5471 has little cost and some practical benefit (sr 110532). */
5472 #ifdef __cplusplus
5473 extern "C"
5474 #endif
5475 char initscr (void);
5476 int
5477 main (void)
5478 {
5479 return initscr ();
5480 ;
5481 return 0;
5482 }
5483 _ACEOF
5484 if ac_fn_c_try_link "$LINENO"
5485 then :
5486 ax_cv_plaincurses=yes
5487 else case e in #(
5488 e) ax_cv_plaincurses=no ;;
5489 esac
5490 fi
5491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5492 conftest$ac_exeext conftest.$ac_ext
5493 ;;
5494 esac
5495 fi
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses" >&5
5497 printf "%s\n" "$ax_cv_plaincurses" >&6; }
5498
5499 if test "x$ax_cv_plaincurses" = xyes
5500 then :
5501
5502 ax_cv_curses=yes
5503 ax_cv_curses_which=plaincurses
5504 if test "x$CURSES_LIBS" = x
5505 then :
5506
5507 CURSES_LIBS="-lcurses"
5508
5509 fi
5510
5511 printf "%s\n" "#define HAVE_CURSES 1" >>confdefs.h
5512
5513
5514 # Check for base conformance (and header file)
5515
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working curses.h" >&5
5517 printf %s "checking for working curses.h... " >&6; }
5518 if test ${ax_cv_header_curses_h+y}
5519 then :
5520 printf %s "(cached) " >&6
5521 else case e in #(
5522 e)
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525
5526 #include <curses.h>
5527
5528 int
5529 main (void)
5530 {
5531
5532 chtype a = A_BOLD;
5533 int b = KEY_LEFT;
5534 initscr();
5535
5536 ;
5537 return 0;
5538 }
5539 _ACEOF
5540 if ac_fn_c_try_link "$LINENO"
5541 then :
5542 ax_cv_header_curses_h=yes
5543 else case e in #(
5544 e) ax_cv_header_curses_h=no ;;
5545 esac
5546 fi
5547 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5548 conftest$ac_exeext conftest.$ac_ext
5549 ;;
5550 esac
5551 fi
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_curses_h" >&5
5553 printf "%s\n" "$ax_cv_header_curses_h" >&6; }
5554 if test "x$ax_cv_header_curses_h" = xyes
5555 then :
5556
5557
5558 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
5559
5560
5561 # Check for X/Open Enhanced conformance
5562
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X/Open Enhanced Curses conformance" >&5
5564 printf %s "checking for X/Open Enhanced Curses conformance... " >&6; }
5565 if test ${ax_cv_plaincurses_enhanced+y}
5566 then :
5567 printf %s "(cached) " >&6
5568 else case e in #(
5569 e)
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572
5573 #define _XOPEN_SOURCE_EXTENDED 1
5574 #include <curses.h>
5575 #ifndef _XOPEN_CURSES
5576 #error "this Curses library is not enhanced"
5577 "this Curses library is not enhanced"
5578 #endif
5579
5580 int
5581 main (void)
5582 {
5583
5584 chtype a = A_BOLD;
5585 int b = KEY_LEFT;
5586 chtype c = COLOR_PAIR(1) & A_COLOR;
5587 attr_t d = WA_NORMAL;
5588 cchar_t e;
5589 wint_t f;
5590 initscr();
5591 init_pair(1, COLOR_WHITE, COLOR_RED);
5592 wattr_set(stdscr, d, 0, NULL);
5593 wget_wch(stdscr, &f);
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 if ac_fn_c_try_link "$LINENO"
5600 then :
5601 ax_cv_plaincurses_enhanced=yes
5602 else case e in #(
5603 e) ax_cv_plaincurses_enhanced=no ;;
5604 esac
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5607 conftest$ac_exeext conftest.$ac_ext
5608 ;;
5609 esac
5610 fi
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_enhanced" >&5
5612 printf "%s\n" "$ax_cv_plaincurses_enhanced" >&6; }
5613 if test "x$ax_cv_plaincurses_enhanced" = xyes
5614 then :
5615
5616 ax_cv_curses_enhanced=yes
5617 ax_cv_curses_color=yes
5618
5619 printf "%s\n" "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
5620
5621
5622 printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
5623
5624
5625 fi
5626
5627 # Check for color functions
5628
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Curses color functions" >&5
5630 printf %s "checking for Curses color functions... " >&6; }
5631 if test ${ax_cv_plaincurses_color+y}
5632 then :
5633 printf %s "(cached) " >&6
5634 else case e in #(
5635 e)
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638
5639 #define _XOPEN_SOURCE_EXTENDED 1
5640 #include <curses.h>
5641
5642 int
5643 main (void)
5644 {
5645
5646 chtype a = A_BOLD;
5647 int b = KEY_LEFT;
5648 chtype c = COLOR_PAIR(1) & A_COLOR;
5649 initscr();
5650 init_pair(1, COLOR_WHITE, COLOR_RED);
5651
5652 ;
5653 return 0;
5654 }
5655 _ACEOF
5656 if ac_fn_c_try_link "$LINENO"
5657 then :
5658 ax_cv_plaincurses_color=yes
5659 else case e in #(
5660 e) ax_cv_plaincurses_color=no ;;
5661 esac
5662 fi
5663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5664 conftest$ac_exeext conftest.$ac_ext
5665 ;;
5666 esac
5667 fi
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_color" >&5
5669 printf "%s\n" "$ax_cv_plaincurses_color" >&6; }
5670 if test "x$ax_cv_plaincurses_color" = xyes
5671 then :
5672
5673 ax_cv_curses_color=yes
5674
5675 printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
5676
5677
5678 fi
5679
5680 # Check for obsolete functions
5681
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for obsolete Curses functions" >&5
5683 printf %s "checking for obsolete Curses functions... " >&6; }
5684 if test ${ax_cv_plaincurses_obsolete+y}
5685 then :
5686 printf %s "(cached) " >&6
5687 else case e in #(
5688 e)
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691
5692 #include <curses.h>
5693
5694 int
5695 main (void)
5696 {
5697
5698 chtype a = A_BOLD;
5699 int b = KEY_LEFT;
5700 int g = getattrs(stdscr);
5701 int h = getcurx(stdscr) + getmaxx(stdscr);
5702 initscr();
5703
5704 ;
5705 return 0;
5706 }
5707 _ACEOF
5708 if ac_fn_c_try_link "$LINENO"
5709 then :
5710 ax_cv_plaincurses_obsolete=yes
5711 else case e in #(
5712 e) ax_cv_plaincurses_obsolete=no ;;
5713 esac
5714 fi
5715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5716 conftest$ac_exeext conftest.$ac_ext
5717 ;;
5718 esac
5719 fi
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_obsolete" >&5
5721 printf "%s\n" "$ax_cv_plaincurses_obsolete" >&6; }
5722 if test "x$ax_cv_plaincurses_obsolete" = xyes
5723 then :
5724
5725 ax_cv_curses_obsolete=yes
5726
5727 printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
5728
5729
5730 fi
5731
5732 fi
5733
5734 if test "x$ax_cv_header_curses_h" = xno
5735 then :
5736
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working curses.h" >&5
5738 printf "%s\n" "$as_me: WARNING: could not find a working curses.h" >&2;}
5739
5740 fi
5741
5742 fi
5743
5744 fi
5745
5746 if test "x$ax_cv_curses" != xyes
5747 then :
5748 ax_cv_curses=no
5749 fi
5750 if test "x$ax_cv_curses_enhanced" != xyes
5751 then :
5752 ax_cv_curses_enhanced=no
5753 fi
5754 if test "x$ax_cv_curses_color" != xyes
5755 then :
5756 ax_cv_curses_color=no
5757 fi
5758 if test "x$ax_cv_curses_obsolete" != xyes
5759 then :
5760 ax_cv_curses_obsolete=no
5761 fi
5762
5763 LIBS=$ax_saved_LIBS
5764 CPPFLAGS=$ax_saved_CPPFLAGS
5765
5766 unset ax_saved_LIBS
5767 unset ax_saved_CPPFLAGS
5768
5769
5770
5771
5772
5773
5774
5775 if test "x$PANEL_LIBS" != x
5776 then :
5777
5778
5779
5780
5781 ax_saved_LIBS=$LIBS
5782 ax_saved_CPPFLAGS=$CPPFLAGS
5783
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Curses Panel library with panel.h" >&5
5785 printf %s "checking for Curses Panel library with panel.h... " >&6; }
5786 if test ${ax_cv_header_panel_h+y}
5787 then :
5788 printf %s "(cached) " >&6
5789 else case e in #(
5790 e)
5791 LIBS="$ax_saved_LIBS $PANEL_LIBS $CURSES_LIBS"
5792 CPPFLAGS="$ax_saved_CPPFLAGS $CURSES_CFLAGS"
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795
5796 #include <panel.h>
5797
5798 int
5799 main (void)
5800 {
5801
5802 WINDOW *win = newwin(0, 0, 0, 0);
5803 PANEL *pan = new_panel(win);
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 if ac_fn_c_try_link "$LINENO"
5810 then :
5811 ax_cv_header_panel_h=yes
5812 else case e in #(
5813 e) ax_cv_header_panel_h=no ;;
5814 esac
5815 fi
5816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5817 conftest$ac_exeext conftest.$ac_ext
5818 ;;
5819 esac
5820 fi
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_panel_h" >&5
5822 printf "%s\n" "$ax_cv_header_panel_h" >&6; }
5823 if test "x$ax_cv_header_panel_h" = xyes
5824 then :
5825
5826 ax_cv_panel=yes
5827
5828
5829 printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h
5830
5831
5832 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h
5833
5834
5835 else case e in #(
5836 e)
5837 if test "x$ax_cv_panel" = xyes
5838 then :
5839
5840 else case e in #(
5841 e) ax_cv_panel=no ;;
5842 esac
5843 fi
5844 ;;
5845 esac
5846 fi
5847
5848 LIBS=$ax_saved_LIBS
5849 CPPFLAGS=$ax_saved_CPPFLAGS
5850 unset ax_saved_LIBS
5851 unset ax_saved_CPPFLAGS
5852
5853
5854
5855 else case e in #(
5856 e)
5857 if test "x$ax_cv_curses_which" = xncursesw
5858 then :
5859
5860
5861
5862
5863 ax_saved_LIBS=$LIBS
5864 ax_saved_CPPFLAGS=$CPPFLAGS
5865
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Curses Panel library with ncursesw/panel.h" >&5
5867 printf %s "checking for Curses Panel library with ncursesw/panel.h... " >&6; }
5868 if test ${ax_cv_header_ncursesw_panel_h+y}
5869 then :
5870 printf %s "(cached) " >&6
5871 else case e in #(
5872 e)
5873 LIBS="$ax_saved_LIBS -lpanelw $CURSES_LIBS"
5874 CPPFLAGS="$ax_saved_CPPFLAGS $CURSES_CFLAGS"
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877
5878 #include <ncursesw/panel.h>
5879
5880 int
5881 main (void)
5882 {
5883
5884 WINDOW *win = newwin(0, 0, 0, 0);
5885 PANEL *pan = new_panel(win);
5886
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 if ac_fn_c_try_link "$LINENO"
5892 then :
5893 ax_cv_header_ncursesw_panel_h=yes
5894 else case e in #(
5895 e) ax_cv_header_ncursesw_panel_h=no ;;
5896 esac
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5899 conftest$ac_exeext conftest.$ac_ext
5900 ;;
5901 esac
5902 fi
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_panel_h" >&5
5904 printf "%s\n" "$ax_cv_header_ncursesw_panel_h" >&6; }
5905 if test "x$ax_cv_header_ncursesw_panel_h" = xyes
5906 then :
5907
5908 ax_cv_panel=yes
5909 PANEL_LIBS="-lpanelw"
5910
5911 printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h
5912
5913
5914 printf "%s\n" "#define HAVE_NCURSESW_PANEL_H 1" >>confdefs.h
5915
5916
5917 else case e in #(
5918 e)
5919 if test "x$ax_cv_panel" = xyes
5920 then :
5921
5922 else case e in #(
5923 e) ax_cv_panel=no ;;
5924 esac
5925 fi
5926 ;;
5927 esac
5928 fi
5929
5930 LIBS=$ax_saved_LIBS
5931 CPPFLAGS=$ax_saved_CPPFLAGS
5932 unset ax_saved_LIBS
5933 unset ax_saved_CPPFLAGS
5934
5935
5936 if test x$ax_cv_panel != "xyes"
5937 then :
5938
5939
5940
5941
5942 ax_saved_LIBS=$LIBS
5943 ax_saved_CPPFLAGS=$CPPFLAGS
5944
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Curses Panel library with panel.h" >&5
5946 printf %s "checking for Curses Panel library with panel.h... " >&6; }
5947 if test ${ax_cv_header_panel_h+y}
5948 then :
5949 printf %s "(cached) " >&6
5950 else case e in #(
5951 e)
5952 LIBS="$ax_saved_LIBS -lpanel $CURSES_LIBS"
5953 CPPFLAGS="$ax_saved_CPPFLAGS $CURSES_CFLAGS"
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956
5957 #include <panel.h>
5958
5959 int
5960 main (void)
5961 {
5962
5963 WINDOW *win = newwin(0, 0, 0, 0);
5964 PANEL *pan = new_panel(win);
5965
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 if ac_fn_c_try_link "$LINENO"
5971 then :
5972 ax_cv_header_panel_h=yes
5973 else case e in #(
5974 e) ax_cv_header_panel_h=no ;;
5975 esac
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5978 conftest$ac_exeext conftest.$ac_ext
5979 ;;
5980 esac
5981 fi
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_panel_h" >&5
5983 printf "%s\n" "$ax_cv_header_panel_h" >&6; }
5984 if test "x$ax_cv_header_panel_h" = xyes
5985 then :
5986
5987 ax_cv_panel=yes
5988 PANEL_LIBS="-lpanel"
5989
5990 printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h
5991
5992
5993 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h
5994
5995
5996 else case e in #(
5997 e)
5998 if test "x$ax_cv_panel" = xyes
5999 then :
6000
6001 else case e in #(
6002 e) ax_cv_panel=no ;;
6003 esac
6004 fi
6005 ;;
6006 esac
6007 fi
6008
6009 LIBS=$ax_saved_LIBS
6010 CPPFLAGS=$ax_saved_CPPFLAGS
6011 unset ax_saved_LIBS
6012 unset ax_saved_CPPFLAGS
6013
6014
6015
6016 fi
6017
6018 elif test "x$ax_cv_curses_which" = xncurses
6019 then :
6020
6021
6022
6023
6024 ax_saved_LIBS=$LIBS
6025 ax_saved_CPPFLAGS=$CPPFLAGS
6026
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Curses Panel library with panel.h" >&5
6028 printf %s "checking for Curses Panel library with panel.h... " >&6; }
6029 if test ${ax_cv_header_panel_h+y}
6030 then :
6031 printf %s "(cached) " >&6
6032 else case e in #(
6033 e)
6034 LIBS="$ax_saved_LIBS -lpanel $CURSES_LIBS"
6035 CPPFLAGS="$ax_saved_CPPFLAGS $CURSES_CFLAGS"
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038
6039 #include <panel.h>
6040
6041 int
6042 main (void)
6043 {
6044
6045 WINDOW *win = newwin(0, 0, 0, 0);
6046 PANEL *pan = new_panel(win);
6047
6048 ;
6049 return 0;
6050 }
6051 _ACEOF
6052 if ac_fn_c_try_link "$LINENO"
6053 then :
6054 ax_cv_header_panel_h=yes
6055 else case e in #(
6056 e) ax_cv_header_panel_h=no ;;
6057 esac
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6060 conftest$ac_exeext conftest.$ac_ext
6061 ;;
6062 esac
6063 fi
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_panel_h" >&5
6065 printf "%s\n" "$ax_cv_header_panel_h" >&6; }
6066 if test "x$ax_cv_header_panel_h" = xyes
6067 then :
6068
6069 ax_cv_panel=yes
6070 PANEL_LIBS="-lpanel"
6071
6072 printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h
6073
6074
6075 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h
6076
6077
6078 else case e in #(
6079 e)
6080 if test "x$ax_cv_panel" = xyes
6081 then :
6082
6083 else case e in #(
6084 e) ax_cv_panel=no ;;
6085 esac
6086 fi
6087 ;;
6088 esac
6089 fi
6090
6091 LIBS=$ax_saved_LIBS
6092 CPPFLAGS=$ax_saved_CPPFLAGS
6093 unset ax_saved_LIBS
6094 unset ax_saved_CPPFLAGS
6095
6096
6097 if test x$ax_cv_panel != "xyes"
6098 then :
6099
6100
6101
6102
6103 ax_saved_LIBS=$LIBS
6104 ax_saved_CPPFLAGS=$CPPFLAGS
6105
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Curses Panel library with ncurses/panel.h" >&5
6107 printf %s "checking for Curses Panel library with ncurses/panel.h... " >&6; }
6108 if test ${ax_cv_header_ncurses_panel_h+y}
6109 then :
6110 printf %s "(cached) " >&6
6111 else case e in #(
6112 e)
6113 LIBS="$ax_saved_LIBS -lpanel $CURSES_LIBS"
6114 CPPFLAGS="$ax_saved_CPPFLAGS $CURSES_CFLAGS"
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117
6118 #include <ncurses/panel.h>
6119
6120 int
6121 main (void)
6122 {
6123
6124 WINDOW *win = newwin(0, 0, 0, 0);
6125 PANEL *pan = new_panel(win);
6126
6127 ;
6128 return 0;
6129 }
6130 _ACEOF
6131 if ac_fn_c_try_link "$LINENO"
6132 then :
6133 ax_cv_header_ncurses_panel_h=yes
6134 else case e in #(
6135 e) ax_cv_header_ncurses_panel_h=no ;;
6136 esac
6137 fi
6138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6139 conftest$ac_exeext conftest.$ac_ext
6140 ;;
6141 esac
6142 fi
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_panel_h" >&5
6144 printf "%s\n" "$ax_cv_header_ncurses_panel_h" >&6; }
6145 if test "x$ax_cv_header_ncurses_panel_h" = xyes
6146 then :
6147
6148 ax_cv_panel=yes
6149 PANEL_LIBS="-lpanel"
6150
6151 printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h
6152
6153
6154 printf "%s\n" "#define HAVE_NCURSES_PANEL_H 1" >>confdefs.h
6155
6156
6157 else case e in #(
6158 e)
6159 if test "x$ax_cv_panel" = xyes
6160 then :
6161
6162 else case e in #(
6163 e) ax_cv_panel=no ;;
6164 esac
6165 fi
6166 ;;
6167 esac
6168 fi
6169
6170 LIBS=$ax_saved_LIBS
6171 CPPFLAGS=$ax_saved_CPPFLAGS
6172 unset ax_saved_LIBS
6173 unset ax_saved_CPPFLAGS
6174
6175
6176
6177 fi
6178
6179 elif test "x$ax_cv_curses_which" = xplaincurses
6180 then :
6181
6182
6183
6184
6185 ax_saved_LIBS=$LIBS
6186 ax_saved_CPPFLAGS=$CPPFLAGS
6187
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Curses Panel library with panel.h" >&5
6189 printf %s "checking for Curses Panel library with panel.h... " >&6; }
6190 if test ${ax_cv_header_panel_h+y}
6191 then :
6192 printf %s "(cached) " >&6
6193 else case e in #(
6194 e)
6195 LIBS="$ax_saved_LIBS -lpanel $CURSES_LIBS"
6196 CPPFLAGS="$ax_saved_CPPFLAGS $CURSES_CFLAGS"
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199
6200 #include <panel.h>
6201
6202 int
6203 main (void)
6204 {
6205
6206 WINDOW *win = newwin(0, 0, 0, 0);
6207 PANEL *pan = new_panel(win);
6208
6209 ;
6210 return 0;
6211 }
6212 _ACEOF
6213 if ac_fn_c_try_link "$LINENO"
6214 then :
6215 ax_cv_header_panel_h=yes
6216 else case e in #(
6217 e) ax_cv_header_panel_h=no ;;
6218 esac
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6221 conftest$ac_exeext conftest.$ac_ext
6222 ;;
6223 esac
6224 fi
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_panel_h" >&5
6226 printf "%s\n" "$ax_cv_header_panel_h" >&6; }
6227 if test "x$ax_cv_header_panel_h" = xyes
6228 then :
6229
6230 ax_cv_panel=yes
6231 PANEL_LIBS="-lpanel"
6232
6233 printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h
6234
6235
6236 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h
6237
6238
6239 else case e in #(
6240 e)
6241 if test "x$ax_cv_panel" = xyes
6242 then :
6243
6244 else case e in #(
6245 e) ax_cv_panel=no ;;
6246 esac
6247 fi
6248 ;;
6249 esac
6250 fi
6251
6252 LIBS=$ax_saved_LIBS
6253 CPPFLAGS=$ax_saved_CPPFLAGS
6254 unset ax_saved_LIBS
6255 unset ax_saved_CPPFLAGS
6256
6257
6258
6259 fi
6260 ;;
6261 esac
6262 fi
6263
6264
6265
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6267 printf %s "checking for a readline compatible library... " >&6; }
6268 if test ${ax_cv_lib_readline+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else case e in #(
6272 e)
6273 ORIG_LIBS="$LIBS"
6274 for readline_lib in readline edit editline; do
6275 for termcap_lib in "" termcap curses ncurses; do
6276 if test -z "$termcap_lib"; then
6277 TRY_LIB="-l$readline_lib"
6278 else
6279 TRY_LIB="-l$readline_lib -l$termcap_lib"
6280 fi
6281 LIBS="$ORIG_LIBS $TRY_LIB"
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284
6285 /* Override any GCC internal prototype to avoid an error.
6286 Use char because int might match the return type of a GCC
6287 builtin and then its argument prototype would still apply.
6288 The 'extern "C"' is for builds by C++ compilers;
6289 although this is not generally supported in C code supporting it here
6290 has little cost and some practical benefit (sr 110532). */
6291 #ifdef __cplusplus
6292 extern "C"
6293 #endif
6294 char readline (void);
6295 int
6296 main (void)
6297 {
6298 return readline ();
6299 ;
6300 return 0;
6301 }
6302 _ACEOF
6303 if ac_fn_c_try_link "$LINENO"
6304 then :
6305 ax_cv_lib_readline="$TRY_LIB"
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6308 conftest$ac_exeext conftest.$ac_ext
6309 if test -n "$ax_cv_lib_readline"; then
6310 break
6311 fi
6312 done
6313 if test -n "$ax_cv_lib_readline"; then
6314 break
6315 fi
6316 done
6317 if test -z "$ax_cv_lib_readline"; then
6318 ax_cv_lib_readline="no"
6319 fi
6320 LIBS="$ORIG_LIBS"
6321 ;;
6322 esac
6323 fi
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
6325 printf "%s\n" "$ax_cv_lib_readline" >&6; }
6326
6327 if test "$ax_cv_lib_readline" != "no"; then
6328 LIBS="$LIBS $ax_cv_lib_readline"
6329
6330 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
6331
6332 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
6333 if test "x$ac_cv_header_readline_h" = xyes
6334 then :
6335 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h
6336
6337 fi
6338 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
6339 if test "x$ac_cv_header_readline_readline_h" = xyes
6340 then :
6341 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
6342
6343 fi
6344
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6346 printf %s "checking whether readline supports history... " >&6; }
6347 if test ${ax_cv_lib_readline_history+y}
6348 then :
6349 printf %s "(cached) " >&6
6350 else case e in #(
6351 e)
6352 ax_cv_lib_readline_history="no"
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355
6356 /* Override any GCC internal prototype to avoid an error.
6357 Use char because int might match the return type of a GCC
6358 builtin and then its argument prototype would still apply.
6359 The 'extern "C"' is for builds by C++ compilers;
6360 although this is not generally supported in C code supporting it here
6361 has little cost and some practical benefit (sr 110532). */
6362 #ifdef __cplusplus
6363 extern "C"
6364 #endif
6365 char add_history (void);
6366 int
6367 main (void)
6368 {
6369 return add_history ();
6370 ;
6371 return 0;
6372 }
6373 _ACEOF
6374 if ac_fn_c_try_link "$LINENO"
6375 then :
6376 ax_cv_lib_readline_history="yes"
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6379 conftest$ac_exeext conftest.$ac_ext
6380 ;;
6381 esac
6382 fi
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
6384 printf "%s\n" "$ax_cv_lib_readline_history" >&6; }
6385 if test "$ax_cv_lib_readline_history" = "yes"; then
6386
6387 printf "%s\n" "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6388
6389 ac_fn_c_check_header_compile "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
6390 if test "x$ac_cv_header_history_h" = xyes
6391 then :
6392 printf "%s\n" "#define HAVE_HISTORY_H 1" >>confdefs.h
6393
6394 fi
6395 ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
6396 if test "x$ac_cv_header_readline_history_h" = xyes
6397 then :
6398 printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
6399
6400 fi
6401
6402 fi
6403 fi
6404
6405 for ac_prog in gawk mawk nawk awk
6406 do
6407 # Extract the first word of "$ac_prog", so it can be a program name with args.
6408 set dummy $ac_prog; ac_word=$2
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 printf %s "checking for $ac_word... " >&6; }
6411 if test ${ac_cv_prog_AWK+y}
6412 then :
6413 printf %s "(cached) " >&6
6414 else case e in #(
6415 e) if test -n "$AWK"; then
6416 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421 IFS=$as_save_IFS
6422 case $as_dir in #(((
6423 '') as_dir=./ ;;
6424 */) ;;
6425 *) as_dir=$as_dir/ ;;
6426 esac
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_AWK="$ac_prog"
6430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi ;;
6438 esac
6439 fi
6440 AWK=$ac_cv_prog_AWK
6441 if test -n "$AWK"; then
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6443 printf "%s\n" "$AWK" >&6; }
6444 else
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 printf "%s\n" "no" >&6; }
6447 fi
6448
6449
6450 test -n "$AWK" && break
6451 done
6452
6453
6454
6455 # Check whether --with-postgresql was given.
6456 if test ${with_postgresql+y}
6457 then :
6458 withval=$with_postgresql;
6459 case $withval in #(
6460 [nN][oO]) :
6461 want_postgresql="no" ;; #(
6462 [yY][eE][sS]) :
6463 want_postgresql="yes" ;; #(
6464 *) :
6465
6466 want_postgresql="yes"
6467 PG_CONFIG="$withval"
6468 ;;
6469 esac
6470
6471 else case e in #(
6472 e) want_postgresql="yes"
6473 ;;
6474 esac
6475 fi
6476
6477
6478
6479
6480
6481
6482 # populate cache
6483 if test "X$POSTGRESQL_CPPFLAGS" != X
6484 then :
6485 ac_cv_POSTGRESQL_CPPFLAGS="$POSTGRESQL_CPPFLAGS"
6486 fi
6487 if test "X$POSTGRESQL_LDFLAGS" != X
6488 then :
6489 ac_cv_POSTGRESQL_LDFLAGS="$POSTGRESQL_LDFLAGS"
6490 fi
6491 if test "X$POSTGRESQL_LIBS" != X
6492 then :
6493 ac_cv_POSTGRESQL_LIBS="$POSTGRESQL_LIBS"
6494 fi
6495
6496 postgresql_version_req=
6497 found_postgresql="no"
6498
6499 POSTGRESQL_VERSION=""
6500
6501 if test X"$want_postgresql" = "Xyes"
6502 then :
6503
6504
6505
6506 found_postgresql=no
6507
6508 while true; do
6509
6510
6511
6512
6513
6514
6515
6516 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6517 if test -n "$ac_tool_prefix"; then
6518 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 printf %s "checking for $ac_word... " >&6; }
6522 if test ${ac_cv_path_PKG_CONFIG+y}
6523 then :
6524 printf %s "(cached) " >&6
6525 else case e in #(
6526 e) case $PKG_CONFIG in
6527 [\\/]* | ?:[\\/]*)
6528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6529 ;;
6530 *)
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534 IFS=$as_save_IFS
6535 case $as_dir in #(((
6536 '') as_dir=./ ;;
6537 */) ;;
6538 *) as_dir=$as_dir/ ;;
6539 esac
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6542 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 ;;
6551 esac ;;
6552 esac
6553 fi
6554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6555 if test -n "$PKG_CONFIG"; then
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6557 printf "%s\n" "$PKG_CONFIG" >&6; }
6558 else
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 printf "%s\n" "no" >&6; }
6561 fi
6562
6563
6564 fi
6565 if test -z "$ac_cv_path_PKG_CONFIG"; then
6566 ac_pt_PKG_CONFIG=$PKG_CONFIG
6567 # Extract the first word of "pkg-config", so it can be a program name with args.
6568 set dummy pkg-config; ac_word=$2
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 printf %s "checking for $ac_word... " >&6; }
6571 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6572 then :
6573 printf %s "(cached) " >&6
6574 else case e in #(
6575 e) case $ac_pt_PKG_CONFIG in
6576 [\\/]* | ?:[\\/]*)
6577 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6578 ;;
6579 *)
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583 IFS=$as_save_IFS
6584 case $as_dir in #(((
6585 '') as_dir=./ ;;
6586 */) ;;
6587 *) as_dir=$as_dir/ ;;
6588 esac
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6591 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6593 break 2
6594 fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599 ;;
6600 esac ;;
6601 esac
6602 fi
6603 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6604 if test -n "$ac_pt_PKG_CONFIG"; then
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6606 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6607 else
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 printf "%s\n" "no" >&6; }
6610 fi
6611
6612 if test "x$ac_pt_PKG_CONFIG" = x; then
6613 PKG_CONFIG=""
6614 else
6615 case $cross_compiling:$ac_tool_warned in
6616 yes:)
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6619 ac_tool_warned=yes ;;
6620 esac
6621 PKG_CONFIG=$ac_pt_PKG_CONFIG
6622 fi
6623 else
6624 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6625 fi
6626
6627 fi
6628 if test -n "$PKG_CONFIG"; then
6629 _pkg_min_version=0.9.0
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6631 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6632 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6634 printf "%s\n" "yes" >&6; }
6635 else
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 printf "%s\n" "no" >&6; }
6638 PKG_CONFIG=""
6639 fi
6640 fi
6641 if test -z "$PKG_CONFIG"; then
6642 as_fn_error $? "pkg-config not found" "$LINENO" 5
6643 fi
6644 if test X$PKG_CONFIG = X
6645 then :
6646 break
6647 fi
6648
6649 _AX_LIB_POSTGRESQL_PKG_CONFIG_fail=no;
6650 if test "X$postgresql_version_req" = "X"
6651 then :
6652 if test -n "$PKG_CONFIG" && \
6653 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpq\""; } >&5
6654 ($PKG_CONFIG --exists --print-errors "libpq") 2>&5
6655 ac_status=$?
6656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657 test $ac_status = 0; }; then
6658 found_postgresql_pkg_config=yes
6659 else
6660 found_postgresql=no
6661 fi
6662 else case e in #(
6663 e) if test -n "$PKG_CONFIG" && \
6664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpq >= \"\$postgresql_version_req\"\""; } >&5
6665 ($PKG_CONFIG --exists --print-errors "libpq >= "$postgresql_version_req"") 2>&5
6666 ac_status=$?
6667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668 test $ac_status = 0; }; then
6669 found_postgresql=yes
6670 else
6671 found_postgresql=no
6672 fi ;;
6673 esac
6674 fi
6675 if test "X$found_postgresql" = "Xno"
6676 then :
6677 break
6678 fi
6679
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL libraries CPPFLAGS" >&5
6681 printf %s "checking for the PostgreSQL libraries CPPFLAGS... " >&6; }
6682 if test ${ac_cv_POSTGRESQL_CPPFLAGS+y}
6683 then :
6684 printf %s "(cached) " >&6
6685 else case e in #(
6686 e) ac_cv_POSTGRESQL_CPPFLAGS="`$PKG_CONFIG libpq --cflags-only-I`" || _AX_LIB_POSTGRESQL_PKG_CONFIG_fail=yes ;;
6687 esac
6688 fi
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_POSTGRESQL_CPPFLAGS" >&5
6690 printf "%s\n" "$ac_cv_POSTGRESQL_CPPFLAGS" >&6; }
6691 if test "X$_AX_LIB_POSTGRESQL_PKG_CONFIG_fail" = "Xyes"
6692 then :
6693 break
6694 fi
6695 POSTGRESQL_CPPFLAGS="$ac_cv_POSTGRESQL_CPPFLAGS"
6696
6697
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL libraries LDFLAGS" >&5
6699 printf %s "checking for the PostgreSQL libraries LDFLAGS... " >&6; }
6700 if test ${ac_cv_POSTGRESQL_LDFLAGS+y}
6701 then :
6702 printf %s "(cached) " >&6
6703 else case e in #(
6704 e) ac_cv_POSTGRESQL_LDFLAGS="`$PKG_CONFIG libpq --libs-only-L --libs-only-other`" || _AX_LIB_POSTGRESQL_PKG_CONFIG_fail=yes ;;
6705 esac
6706 fi
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_POSTGRESQL_LDFLAGS" >&5
6708 printf "%s\n" "$ac_cv_POSTGRESQL_LDFLAGS" >&6; }
6709 if test "X$_AX_LIB_POSTGRESQL_PKG_CONFIG_fail" = "Xyes"
6710 then :
6711 break
6712 fi
6713 POSTGRESQL_LDFLAGS="$ac_cv_POSTGRESQL_LDFLAGS"
6714
6715
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL libraries LIBS" >&5
6717 printf %s "checking for the PostgreSQL libraries LIBS... " >&6; }
6718 if test ${ac_cv_POSTGRESQL_LIBS+y}
6719 then :
6720 printf %s "(cached) " >&6
6721 else case e in #(
6722 e) ac_cv_POSTGRESQL_LIBS="`$PKG_CONFIG libpq --libs-only-l`" || _AX_LIB_POSTGRESQL_PKG_CONFIG_fail=ye ;;
6723 esac
6724 fi
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_POSTGRESQL_LIBS" >&5
6726 printf "%s\n" "$ac_cv_POSTGRESQL_LIBS" >&6; }
6727 if test "X$_AX_LIB_POSTGRESQL_PKG_CONFIG_fail" = "Xyes"
6728 then :
6729 break
6730 fi
6731 POSTGRESQL_LIBS="$ac_cv_POSTGRESQL_LIBS"
6732
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL version" >&5
6734 printf %s "checking for the PostgreSQL version... " >&6; }
6735 if test ${ac_cv_POSTGRESQL_VERSION+y}
6736 then :
6737 printf %s "(cached) " >&6
6738 else case e in #(
6739 e) ac_cv_POSTGRESQL_VERSION="`$PKG_CONFIG libpq --modversion`" || _AX_LIB_POSTGRESQL_PKG_CONFIG_fail=yes ;;
6740 esac
6741 fi
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_POSTGRESQL_VERSION" >&5
6743 printf "%s\n" "$ac_cv_POSTGRESQL_VERSION" >&6; }
6744 if test "X$_AX_LIB_POSTGRESQL_PKG_CONFIG_fail" = "Xyes"
6745 then :
6746 break
6747 fi
6748 POSTGRESQL_VERSION="$ac_cv_POSTGRESQL_VERSION"
6749
6750 found_postgresql=yes
6751 break;
6752 done
6753
6754
6755
6756
6757 if test X"$found_postgresql" = "Xno"
6758 then :
6759
6760 found_postgresql="no"
6761 _AX_LIB_POSTGRESQL_OLD_fail="no"
6762 while true; do
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pg_config program" >&5
6764 printf %s "checking for the pg_config program... " >&6; }
6765 if test ${ac_cv_path_PG_CONFIG+y}
6766 then :
6767 printf %s "(cached) " >&6
6768 else case e in #(
6769 e) if test -z "$PG_CONFIG"; then
6770 ac_path_PG_CONFIG_found=false
6771 # Loop through the user's path and test for each of PROGNAME-LIST
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775 IFS=$as_save_IFS
6776 case $as_dir in #(((
6777 '') as_dir=./ ;;
6778 */) ;;
6779 *) as_dir=$as_dir/ ;;
6780 esac
6781 for ac_prog in pg_config
6782 do
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 ac_path_PG_CONFIG="$as_dir$ac_prog$ac_exec_ext"
6785 as_fn_executable_p "$ac_path_PG_CONFIG" || continue
6786 ac_cv_path_PG_CONFIG="";$ac_path_PG_CONFIG --includedir > /dev/null \
6787 && ac_cv_path_PG_CONFIG=$ac_path_PG_CONFIG ac_path_PG_CONFIG_found=:
6788 $ac_path_PG_CONFIG_found && break 3
6789 done
6790 done
6791 done
6792 IFS=$as_save_IFS
6793 if test -z "$ac_cv_path_PG_CONFIG"; then
6794 ac_cv_path_PG_CONFIG=""
6795 fi
6796 else
6797 ac_cv_path_PG_CONFIG=$PG_CONFIG
6798 fi
6799 ;;
6800 esac
6801 fi
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PG_CONFIG" >&5
6803 printf "%s\n" "$ac_cv_path_PG_CONFIG" >&6; }
6804 PG_CONFIG=$ac_cv_path_PG_CONFIG
6805 if test "X$PG_CONFIG" = "X"
6806 then :
6807 break
6808 fi
6809
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL libraries CPPFLAGS" >&5
6811 printf %s "checking for the PostgreSQL libraries CPPFLAGS... " >&6; }
6812 if test ${ac_cv_POSTGRESQL_CPPFLAGS+y}
6813 then :
6814 printf %s "(cached) " >&6
6815 else case e in #(
6816 e) ac_cv_POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`" || _AX_LIB_POSTGRESQL_OLD_fail=yes ;;
6817 esac
6818 fi
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_POSTGRESQL_CPPFLAGS" >&5
6820 printf "%s\n" "$ac_cv_POSTGRESQL_CPPFLAGS" >&6; }
6821 if test "X$_AX_LIB_POSTGRESQL_OLD_fail" = "Xyes"
6822 then :
6823 break
6824 fi
6825 POSTGRESQL_CPPFLAGS="$ac_cv_POSTGRESQL_CPPFLAGS"
6826
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL libraries LDFLAGS" >&5
6828 printf %s "checking for the PostgreSQL libraries LDFLAGS... " >&6; }
6829 if test ${ac_cv_POSTGRESQL_LDFLAGS+y}
6830 then :
6831 printf %s "(cached) " >&6
6832 else case e in #(
6833 e) ac_cv_POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir`" || _AX_LIB_POSTGRESQL_OLD_fail=yes ;;
6834 esac
6835 fi
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_POSTGRESQL_LDFLAGS" >&5
6837 printf "%s\n" "$ac_cv_POSTGRESQL_LDFLAGS" >&6; }
6838 if test "X$_AX_LIB_POSTGRESQL_OLD_fail" = "Xyes"
6839 then :
6840 break
6841 fi
6842 POSTGRESQL_LDFLAGS="$ac_cv_POSTGRESQL_LDFLAGS"
6843
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL libraries LIBS" >&5
6845 printf %s "checking for the PostgreSQL libraries LIBS... " >&6; }
6846 if test ${ac_cv_POSTGRESQL_LIBS+y}
6847 then :
6848 printf %s "(cached) " >&6
6849 else case e in #(
6850 e) ac_cv_POSTGRESQL_LIBS="-lpq" ;;
6851 esac
6852 fi
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_POSTGRESQL_LIBS" >&5
6854 printf "%s\n" "$ac_cv_POSTGRESQL_LIBS" >&6; }
6855 POSTGRESQL_LIBS="$ac_cv_POSTGRESQL_LIBS"
6856
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL version" >&5
6858 printf %s "checking for the PostgreSQL version... " >&6; }
6859 if test ${ac_cv_POSTGRESQL_VERSION+y}
6860 then :
6861 printf %s "(cached) " >&6
6862 else case e in #(
6863 e)
6864 ac_cv_POSTGRESQL_VERSION=`$PG_CONFIG --version | sed "s/^PostgreSQL[[:space:]][[:space:]]*\([0-9.][0-9.]*\).*/\1/"` \
6865 || _AX_LIB_POSTGRESQL_OLD_fail=yes
6866 ;;
6867 esac
6868 fi
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_POSTGRESQL_VERSION" >&5
6870 printf "%s\n" "$ac_cv_POSTGRESQL_VERSION" >&6; }
6871 if test "X$_AX_LIB_POSTGRESQL_OLD_fail" = "Xyes"
6872 then :
6873 break
6874 fi
6875 POSTGRESQL_VERSION="$ac_cv_POSTGRESQL_VERSION"
6876
6877
6878 if test X"$postgresql_version_req" != "X"
6879 then :
6880
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PostgreSQL version $POSTGRESQL_VERSION is >= $postgresql_version_req" >&5
6882 printf %s "checking if PostgreSQL version $POSTGRESQL_VERSION is >= $postgresql_version_req... " >&6; }
6883
6884
6885
6886 # Used to indicate true or false condition
6887 ax_compare_version=false
6888
6889 # Convert the two version strings to be compared into a format that
6890 # allows a simple string comparison. The end result is that a version
6891 # string of the form 1.12.5-r617 will be converted to the form
6892 # 0001001200050617. In other words, each number is zero padded to four
6893 # digits, and non digits are removed.
6894
6895 ax_compare_version_A=`echo "$POSTGRESQL_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
6896 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
6897 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
6898 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
6899 -e 's/[^0-9]//g'`
6900
6901
6902 ax_compare_version_B=`echo "$postgresql_version_req" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
6903 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
6904 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
6905 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
6906 -e 's/[^0-9]//g'`
6907
6908
6909 ax_compare_version=`echo "x$ax_compare_version_A
6910 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
6911
6912
6913
6914 if test "$ax_compare_version" = "true" ; then
6915 found_postgresql_req_version=yes
6916 else found_postgresql_req_version=no
6917 fi
6918
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_postgresql_req_version" >&5
6920 printf "%s\n" "$found_postgresql_req_version" >&6; }
6921
6922 fi
6923 if test "Xfound_postgresql_req_version" = "Xno"
6924 then :
6925 break
6926 fi
6927
6928 found_postgresql="yes"
6929 break
6930 done
6931
6932 fi
6933
6934 if test X"$found_postgresql" = Xyes
6935 then :
6936
6937 _AX_LIB_POSTGRESQL_OLD_CPPFLAGS="$CPPFLAGS"
6938 CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS"
6939 _AX_LIB_POSTGRESQL_OLD_LDFLAGS="$LDFLAGS"
6940 LDFLAGS="$LDFLAGS $POSTGRESQL_LDFLAGS"
6941 _AX_LIB_POSTGRESQL_OLD_LIBS="$LIBS"
6942 LIBS="$LIBS $POSTGRESQL_LIBS"
6943 while true; do
6944 ac_fn_c_check_header_compile "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
6945 if test "x$ac_cv_header_libpq_fe_h" = xyes
6946 then :
6947
6948 else case e in #(
6949 e) found_postgresql=no ;;
6950 esac
6951 fi
6952
6953 if test "X$found_postgresql" = "Xno"
6954 then :
6955 break
6956 fi
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL library linking is working" >&5
6958 printf %s "checking for the PostgreSQL library linking is working... " >&6; }
6959 if test ${ac_cv_postgresql_found+y}
6960 then :
6961 printf %s "(cached) " >&6
6962 else case e in #(
6963 e)
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966
6967
6968 #include <libpq-fe.h>
6969
6970 int
6971 main (void)
6972 {
6973
6974 char conninfo[]="dbname = postgres";
6975 PGconn *conn;
6976 conn = PQconnectdb(conninfo);
6977
6978
6979 ;
6980 return 0;
6981 }
6982
6983 _ACEOF
6984 if ac_fn_c_try_link "$LINENO"
6985 then :
6986 ac_cv_postgresql_found=yes
6987 else case e in #(
6988 e) ac_cv_postgresql_found=no ;;
6989 esac
6990 fi
6991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6992 conftest$ac_exeext conftest.$ac_ext
6993 ;;
6994 esac
6995 fi
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_postgresql_found" >&5
6997 printf "%s\n" "$ac_cv_postgresql_found" >&6; }
6998 found_postgresql="$ac_cv_postgresql_found"
6999 if test "X$found_postgresql" = "Xno"
7000 then :
7001 break
7002 fi
7003 break
7004 done
7005 CPPFLAGS="$_AX_LIB_POSTGRESQL_OLD_CPPFLAGS"
7006 LDFLAGS="$_AX_LIB_POSTGRESQL_OLD_LDFLAGS"
7007 LIBS="$_AX_LIB_POSTGRESQL_OLD_LIBS"
7008
7009 fi
7010
7011
7012 if test "x$found_postgresql" = "xyes"
7013 then :
7014
7015
7016 printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h
7017
7018 fi
7019
7020 fi
7021
7022
7023
7024
7025
7026
7027 if test "x$found_postgresql" = "xyes"
7028 then :
7029 :
7030 else case e in #(
7031 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PostgreSQL library not found" >&5
7032 printf "%s\n" "$as_me: PostgreSQL library not found" >&6;} ;;
7033 esac
7034 fi
7035
7036
7037
7038 case "$ax_cv_ncurses" in "no")
7039 as_fn_error $? "ncurses not found" "$LINENO" 5
7040 esac
7041 case "$ax_cv_ncursesw" in "no")
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The found ncurses library does not support wide-char." >&5
7043 printf "%s\n" "$as_me: WARNING: The found ncurses library does not support wide-char." >&2;}
7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This means that pspg will not correctly render UTF-8." >&5
7045 printf "%s\n" "$as_me: WARNING: This means that pspg will not correctly render UTF-8." >&2;}
7046 esac
7047
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for roundl in -lm" >&5
7049 printf %s "checking for roundl in -lm... " >&6; }
7050 if test ${ac_cv_lib_m_roundl+y}
7051 then :
7052 printf %s "(cached) " >&6
7053 else case e in #(
7054 e) ac_check_lib_save_LIBS=$LIBS
7055 LIBS="-lm $LIBS"
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058
7059 /* Override any GCC internal prototype to avoid an error.
7060 Use char because int might match the return type of a GCC
7061 builtin and then its argument prototype would still apply.
7062 The 'extern "C"' is for builds by C++ compilers;
7063 although this is not generally supported in C code supporting it here
7064 has little cost and some practical benefit (sr 110532). */
7065 #ifdef __cplusplus
7066 extern "C"
7067 #endif
7068 char roundl (void);
7069 int
7070 main (void)
7071 {
7072 return roundl ();
7073 ;
7074 return 0;
7075 }
7076 _ACEOF
7077 if ac_fn_c_try_link "$LINENO"
7078 then :
7079 ac_cv_lib_m_roundl=yes
7080 else case e in #(
7081 e) ac_cv_lib_m_roundl=no ;;
7082 esac
7083 fi
7084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7085 conftest$ac_exeext conftest.$ac_ext
7086 LIBS=$ac_check_lib_save_LIBS ;;
7087 esac
7088 fi
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundl" >&5
7090 printf "%s\n" "$ac_cv_lib_m_roundl" >&6; }
7091 if test "x$ac_cv_lib_m_roundl" = xyes
7092 then :
7093 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
7094
7095 LIBS="-lm $LIBS"
7096
7097 fi
7098
7099
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7101 printf %s "checking for library containing clock_gettime... " >&6; }
7102 if test ${ac_cv_search_clock_gettime+y}
7103 then :
7104 printf %s "(cached) " >&6
7105 else case e in #(
7106 e) ac_func_search_save_LIBS=$LIBS
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109
7110 /* Override any GCC internal prototype to avoid an error.
7111 Use char because int might match the return type of a GCC
7112 builtin and then its argument prototype would still apply.
7113 The 'extern "C"' is for builds by C++ compilers;
7114 although this is not generally supported in C code supporting it here
7115 has little cost and some practical benefit (sr 110532). */
7116 #ifdef __cplusplus
7117 extern "C"
7118 #endif
7119 char clock_gettime (void);
7120 int
7121 main (void)
7122 {
7123 return clock_gettime ();
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 for ac_lib in '' rt posix4
7129 do
7130 if test -z "$ac_lib"; then
7131 ac_res="none required"
7132 else
7133 ac_res=-l$ac_lib
7134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7135 fi
7136 if ac_fn_c_try_link "$LINENO"
7137 then :
7138 ac_cv_search_clock_gettime=$ac_res
7139 fi
7140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7141 conftest$ac_exeext
7142 if test ${ac_cv_search_clock_gettime+y}
7143 then :
7144 break
7145 fi
7146 done
7147 if test ${ac_cv_search_clock_gettime+y}
7148 then :
7149
7150 else case e in #(
7151 e) ac_cv_search_clock_gettime=no ;;
7152 esac
7153 fi
7154 rm conftest.$ac_ext
7155 LIBS=$ac_func_search_save_LIBS ;;
7156 esac
7157 fi
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7159 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
7160 ac_res=$ac_cv_search_clock_gettime
7161 if test "$ac_res" != no
7162 then :
7163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7164
7165 else case e in #(
7166 e) as_fn_error $? "Function clock_gettime not available." "$LINENO" 5
7167 ;;
7168 esac
7169 fi
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185 ac_config_files="$ac_config_files config.make"
7186
7187
7188
7189 # Check whether --with-menu was given.
7190 if test ${with_menu+y}
7191 then :
7192 withval=$with_menu; compile_menu=no
7193 else case e in #(
7194 e) compile_menu=yes ;;
7195 esac
7196 fi
7197
7198
7199 if test "x$compile_menu" != "xyes"; then
7200 COMPILE_MENU=0
7201 else
7202 if test "$ax_cv_panel" != yes; then
7203 as_fn_error $? "ncurses panel library not found" "$LINENO" 5
7204 fi
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pspg will be compiled with menu" >&5
7206 printf "%s\n" "$as_me: pspg will be compiled with menu" >&6;}
7207 CFLAGS="$CFLAGS -DCOMPILE_MENU"
7208 COMPILE_MENU=1
7209 fi
7210
7211 # supply -g if --enable-debug
7212 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
7213 CFLAGS="$CFLAGS -g"
7214 fi
7215
7216 for ac_header in sys/inotify.h
7217 do :
7218 ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
7219 if test "x$ac_cv_header_sys_inotify_h" = xyes
7220 then :
7221 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
7222 have_inotify=yes
7223 else case e in #(
7224 e) have_inotify=no ;;
7225 esac
7226 fi
7227
7228 done
7229
7230
7231 # Check whether --with-inotify was given.
7232 if test ${with_inotify+y}
7233 then :
7234 withval=$with_inotify; with_inotify=no
7235 else case e in #(
7236 e) with_inotify=yes ;;
7237 esac
7238 fi
7239
7240
7241 if test "x$have_inotify" = "xyes"; then
7242 if test "x$with_inotify" != "xyes"; then
7243 have_inotify=no
7244 else
7245
7246 printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
7247
7248 fi
7249 fi
7250
7251
7252 for ac_header in sys/event.h
7253 do :
7254 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
7255 if test "x$ac_cv_header_sys_event_h" = xyes
7256 then :
7257 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
7258 have_kqueue=yes
7259 else case e in #(
7260 e) have_kqueue=no ;;
7261 esac
7262 fi
7263
7264 done
7265
7266 if test "x$have_kqueue" = "xyes"; then
7267
7268
7269 for ac_func in kqueue
7270 do :
7271 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7272 if test "x$ac_cv_func_kqueue" = xyes
7273 then :
7274 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
7275 have_kqueue=yes
7276 else case e in #(
7277 e) have_kqueue=no ;;
7278 esac
7279 fi
7280
7281 done
7282
7283 if test "x$have_kqueue" = "xyes"; then
7284
7285 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
7286
7287 fi
7288 fi
7289
7290 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
7291 if test "x$ac_cv_header_sys_utsname_h" = xyes
7292 then :
7293 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
7294
7295 fi
7296
7297
7298 cat >confcache <<\_ACEOF
7299 # This file is a shell script that caches the results of configure
7300 # tests run on this system so they can be shared between configure
7301 # scripts and configure runs, see configure's option --config-cache.
7302 # It is not useful on other systems. If it contains results you don't
7303 # want to keep, you may remove or edit it.
7304 #
7305 # config.status only pays attention to the cache file if you give it
7306 # the --recheck option to rerun configure.
7307 #
7308 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
7309 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
7310 # following values.
7311
7312 _ACEOF
7313
7314 # The following way of writing the cache mishandles newlines in values,
7315 # but we know of no workaround that is simple, portable, and efficient.
7316 # So, we kill variables containing newlines.
7317 # Ultrix sh set writes to stderr and can't be redirected directly,
7318 # and sets the high bit in the cache file unless we assign to the vars.
7319 (
7320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7321 eval ac_val=\$$ac_var
7322 case $ac_val in #(
7323 *${as_nl}*)
7324 case $ac_var in #(
7325 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7326 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7327 esac
7328 case $ac_var in #(
7329 _ | IFS | as_nl) ;; #(
7330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7331 *) { eval $ac_var=; unset $ac_var;} ;;
7332 esac ;;
7333 esac
7334 done
7335
7336 (set) 2>&1 |
7337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7338 *${as_nl}ac_space=\ *)
7339 # 'set' does not quote correctly, so add quotes: double-quote
7340 # substitution turns \\\\ into \\, and sed turns \\ into \.
7341 sed -n \
7342 "s/'/'\\\\''/g;
7343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7344 ;; #(
7345 *)
7346 # 'set' quotes correctly as required by POSIX, so do not add quotes.
7347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7348 ;;
7349 esac |
7350 sort
7351 ) |
7352 sed '
7353 /^ac_cv_env_/b end
7354 t clear
7355 :clear
7356 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7357 t end
7358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7359 :end' >>confcache
7360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7361 if test -w "$cache_file"; then
7362 if test "x$cache_file" != "x/dev/null"; then
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7364 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7365 if test ! -f "$cache_file" || test -h "$cache_file"; then
7366 cat confcache >"$cache_file"
7367 else
7368 case $cache_file in #(
7369 */* | ?:*)
7370 mv -f confcache "$cache_file"$$ &&
7371 mv -f "$cache_file"$$ "$cache_file" ;; #(
7372 *)
7373 mv -f confcache "$cache_file" ;;
7374 esac
7375 fi
7376 fi
7377 else
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7379 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7380 fi
7381 fi
7382 rm -f confcache
7383
7384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7385 # Let make expand exec_prefix.
7386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7387
7388 # Transform confdefs.h into DEFS.
7389 # Protect against shell expansion while executing Makefile rules.
7390 # Protect against Makefile macro expansion.
7391 #
7392 # If the first sed substitution is executed (which looks for macros that
7393 # take arguments), then branch to the quote section. Otherwise,
7394 # look for a macro that doesn't take arguments.
7395 ac_script='
7396 :mline
7397 /\\$/{
7398 N
7399 s,\\\n,,
7400 b mline
7401 }
7402 t clear
7403 :clear
7404 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7405 t quote
7406 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7407 t quote
7408 b any
7409 :quote
7410 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7411 s/\$/$$/g
7412 H
7413 :any
7414 ${
7415 g
7416 s/^\n//
7417 s/\n/ /g
7418 p
7419 }
7420 '
7421 DEFS=`sed -n "$ac_script" confdefs.h`
7422
7423
7424 ac_libobjs=
7425 ac_ltlibobjs=
7426 U=
7427 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7428 # 1. Remove the extension, and $U if already installed.
7429 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7430 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7431 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7432 # will be set to the directory where LIBOBJS objects are built.
7433 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7434 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7435 done
7436 LIBOBJS=$ac_libobjs
7437
7438 LTLIBOBJS=$ac_ltlibobjs
7439
7440
7441
7442 : "${CONFIG_STATUS=./config.status}"
7443 ac_write_fail=0
7444 ac_clean_files_save=$ac_clean_files
7445 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7447 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7448 as_write_fail=0
7449 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7450 #! $SHELL
7451 # Generated by $as_me.
7452 # Run this file to recreate the current configuration.
7453 # Compiler output produced by configure, useful for debugging
7454 # configure, is in config.log if it exists.
7455
7456 debug=false
7457 ac_cs_recheck=false
7458 ac_cs_silent=false
7459
7460 SHELL=\${CONFIG_SHELL-$SHELL}
7461 export SHELL
7462 _ASEOF
7463 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7464 ## -------------------- ##
7465 ## M4sh Initialization. ##
7466 ## -------------------- ##
7467
7468 # Be more Bourne compatible
7469 DUALCASE=1; export DUALCASE # for MKS sh
7470 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7471 then :
7472 emulate sh
7473 NULLCMD=:
7474 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7475 # is contrary to our usage. Disable this feature.
7476 alias -g '${1+"$@"}'='"$@"'
7477 setopt NO_GLOB_SUBST
7478 else case e in #(
7479 e) case `(set -o) 2>/dev/null` in #(
7480 *posix*) :
7481 set -o posix ;; #(
7482 *) :
7483 ;;
7484 esac ;;
7485 esac
7486 fi
7487
7488
7489
7490 # Reset variables that may have inherited troublesome values from
7491 # the environment.
7492
7493 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7494 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7495 # side effect of setting IFS to empty, thus disabling word splitting.)
7496 # Quoting is to prevent editors from complaining about space-tab.
7497 as_nl='
7498 '
7499 export as_nl
7500 IFS=" "" $as_nl"
7501
7502 PS1='$ '
7503 PS2='> '
7504 PS4='+ '
7505
7506 # Ensure predictable behavior from utilities with locale-dependent output.
7507 LC_ALL=C
7508 export LC_ALL
7509 LANGUAGE=C
7510 export LANGUAGE
7511
7512 # We cannot yet rely on "unset" to work, but we need these variables
7513 # to be unset--not just set to an empty or harmless value--now, to
7514 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7515 # also avoids known problems related to "unset" and subshell syntax
7516 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7517 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7518 do eval test \${$as_var+y} \
7519 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7520 done
7521
7522 # Ensure that fds 0, 1, and 2 are open.
7523 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7524 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7525 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7526
7527 # The user is always right.
7528 if ${PATH_SEPARATOR+false} :; then
7529 PATH_SEPARATOR=:
7530 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7531 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7532 PATH_SEPARATOR=';'
7533 }
7534 fi
7535
7536
7537 # Find who we are. Look in the path if we contain no directory separator.
7538 as_myself=
7539 case $0 in #((
7540 *[\\/]* ) as_myself=$0 ;;
7541 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544 IFS=$as_save_IFS
7545 case $as_dir in #(((
7546 '') as_dir=./ ;;
7547 */) ;;
7548 *) as_dir=$as_dir/ ;;
7549 esac
7550 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7551 done
7552 IFS=$as_save_IFS
7553
7554 ;;
7555 esac
7556 # We did not find ourselves, most probably we were run as 'sh COMMAND'
7557 # in which case we are not to be found in the path.
7558 if test "x$as_myself" = x; then
7559 as_myself=$0
7560 fi
7561 if test ! -f "$as_myself"; then
7562 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7563 exit 1
7564 fi
7565
7566
7567
7568 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7569 # ----------------------------------------
7570 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7571 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7572 # script with STATUS, using 1 if that was 0.
7573 as_fn_error ()
7574 {
7575 as_status=$1; test $as_status -eq 0 && as_status=1
7576 if test "$4"; then
7577 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7579 fi
7580 printf "%s\n" "$as_me: error: $2" >&2
7581 as_fn_exit $as_status
7582 } # as_fn_error
7583
7584
7585 # as_fn_set_status STATUS
7586 # -----------------------
7587 # Set $? to STATUS, without forking.
7588 as_fn_set_status ()
7589 {
7590 return $1
7591 } # as_fn_set_status
7592
7593 # as_fn_exit STATUS
7594 # -----------------
7595 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7596 as_fn_exit ()
7597 {
7598 set +e
7599 as_fn_set_status $1
7600 exit $1
7601 } # as_fn_exit
7602
7603 # as_fn_unset VAR
7604 # ---------------
7605 # Portably unset VAR.
7606 as_fn_unset ()
7607 {
7608 { eval $1=; unset $1;}
7609 }
7610 as_unset=as_fn_unset
7611
7612 # as_fn_append VAR VALUE
7613 # ----------------------
7614 # Append the text in VALUE to the end of the definition contained in VAR. Take
7615 # advantage of any shell optimizations that allow amortized linear growth over
7616 # repeated appends, instead of the typical quadratic growth present in naive
7617 # implementations.
7618 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7619 then :
7620 eval 'as_fn_append ()
7621 {
7622 eval $1+=\$2
7623 }'
7624 else case e in #(
7625 e) as_fn_append ()
7626 {
7627 eval $1=\$$1\$2
7628 } ;;
7629 esac
7630 fi # as_fn_append
7631
7632 # as_fn_arith ARG...
7633 # ------------------
7634 # Perform arithmetic evaluation on the ARGs, and store the result in the
7635 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7636 # must be portable across $(()) and expr.
7637 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7638 then :
7639 eval 'as_fn_arith ()
7640 {
7641 as_val=$(( $* ))
7642 }'
7643 else case e in #(
7644 e) as_fn_arith ()
7645 {
7646 as_val=`expr "$@" || test $? -eq 1`
7647 } ;;
7648 esac
7649 fi # as_fn_arith
7650
7651
7652 if expr a : '\(a\)' >/dev/null 2>&1 &&
7653 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7654 as_expr=expr
7655 else
7656 as_expr=false
7657 fi
7658
7659 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7660 as_basename=basename
7661 else
7662 as_basename=false
7663 fi
7664
7665 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7666 as_dirname=dirname
7667 else
7668 as_dirname=false
7669 fi
7670
7671 as_me=`$as_basename -- "$0" ||
7672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7673 X"$0" : 'X\(//\)$' \| \
7674 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7675 printf "%s\n" X/"$0" |
7676 sed '/^.*\/\([^/][^/]*\)\/*$/{
7677 s//\1/
7678 q
7679 }
7680 /^X\/\(\/\/\)$/{
7681 s//\1/
7682 q
7683 }
7684 /^X\/\(\/\).*/{
7685 s//\1/
7686 q
7687 }
7688 s/.*/./; q'`
7689
7690 # Avoid depending upon Character Ranges.
7691 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7692 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7693 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7694 as_cr_digits='0123456789'
7695 as_cr_alnum=$as_cr_Letters$as_cr_digits
7696
7697
7698 # Determine whether it's possible to make 'echo' print without a newline.
7699 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7700 # for compatibility with existing Makefiles.
7701 ECHO_C= ECHO_N= ECHO_T=
7702 case `echo -n x` in #(((((
7703 -n*)
7704 case `echo 'xy\c'` in
7705 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7706 xy) ECHO_C='\c';;
7707 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7708 ECHO_T=' ';;
7709 esac;;
7710 *)
7711 ECHO_N='-n';;
7712 esac
7713
7714 # For backward compatibility with old third-party macros, we provide
7715 # the shell variables $as_echo and $as_echo_n. New code should use
7716 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7717 as_echo='printf %s\n'
7718 as_echo_n='printf %s'
7719
7720 rm -f conf$$ conf$$.exe conf$$.file
7721 if test -d conf$$.dir; then
7722 rm -f conf$$.dir/conf$$.file
7723 else
7724 rm -f conf$$.dir
7725 mkdir conf$$.dir 2>/dev/null
7726 fi
7727 if (echo >conf$$.file) 2>/dev/null; then
7728 if ln -s conf$$.file conf$$ 2>/dev/null; then
7729 as_ln_s='ln -s'
7730 # ... but there are two gotchas:
7731 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
7732 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
7733 # In both cases, we have to default to 'cp -pR'.
7734 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7735 as_ln_s='cp -pR'
7736 elif ln conf$$.file conf$$ 2>/dev/null; then
7737 as_ln_s=ln
7738 else
7739 as_ln_s='cp -pR'
7740 fi
7741 else
7742 as_ln_s='cp -pR'
7743 fi
7744 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7745 rmdir conf$$.dir 2>/dev/null
7746
7747
7748 # as_fn_mkdir_p
7749 # -------------
7750 # Create "$as_dir" as a directory, including parents if necessary.
7751 as_fn_mkdir_p ()
7752 {
7753
7754 case $as_dir in #(
7755 -*) as_dir=./$as_dir;;
7756 esac
7757 test -d "$as_dir" || eval $as_mkdir_p || {
7758 as_dirs=
7759 while :; do
7760 case $as_dir in #(
7761 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7762 *) as_qdir=$as_dir;;
7763 esac
7764 as_dirs="'$as_qdir' $as_dirs"
7765 as_dir=`$as_dirname -- "$as_dir" ||
7766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7767 X"$as_dir" : 'X\(//\)[^/]' \| \
7768 X"$as_dir" : 'X\(//\)$' \| \
7769 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7770 printf "%s\n" X"$as_dir" |
7771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7772 s//\1/
7773 q
7774 }
7775 /^X\(\/\/\)[^/].*/{
7776 s//\1/
7777 q
7778 }
7779 /^X\(\/\/\)$/{
7780 s//\1/
7781 q
7782 }
7783 /^X\(\/\).*/{
7784 s//\1/
7785 q
7786 }
7787 s/.*/./; q'`
7788 test -d "$as_dir" && break
7789 done
7790 test -z "$as_dirs" || eval "mkdir $as_dirs"
7791 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7792
7793
7794 } # as_fn_mkdir_p
7795 if mkdir -p . 2>/dev/null; then
7796 as_mkdir_p='mkdir -p "$as_dir"'
7797 else
7798 test -d ./-p && rmdir ./-p
7799 as_mkdir_p=false
7800 fi
7801
7802
7803 # as_fn_executable_p FILE
7804 # -----------------------
7805 # Test if FILE is an executable regular file.
7806 as_fn_executable_p ()
7807 {
7808 test -f "$1" && test -x "$1"
7809 } # as_fn_executable_p
7810 as_test_x='test -x'
7811 as_executable_p=as_fn_executable_p
7812
7813 # Sed expression to map a string onto a valid CPP name.
7814 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7815 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
7816
7817 # Sed expression to map a string onto a valid variable name.
7818 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7819 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
7820
7821
7822 exec 6>&1
7823 ## ----------------------------------- ##
7824 ## Main body of $CONFIG_STATUS script. ##
7825 ## ----------------------------------- ##
7826 _ASEOF
7827 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7828
7829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7830 # Save the log message, to keep $0 and so on meaningful, and to
7831 # report actual input values of CONFIG_FILES etc. instead of their
7832 # values after options handling.
7833 ac_log="
7834 This file was extended by pspg $as_me 0, which was
7835 generated by GNU Autoconf 2.72. Invocation command line was
7836
7837 CONFIG_FILES = $CONFIG_FILES
7838 CONFIG_HEADERS = $CONFIG_HEADERS
7839 CONFIG_LINKS = $CONFIG_LINKS
7840 CONFIG_COMMANDS = $CONFIG_COMMANDS
7841 $ $0 $@
7842
7843 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7844 "
7845
7846 _ACEOF
7847
7848 case $ac_config_files in *"
7849 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7850 esac
7851
7852
7853
7854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7855 # Files that config.status was made for.
7856 config_files="$ac_config_files"
7857
7858 _ACEOF
7859
7860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7861 ac_cs_usage="\
7862 '$as_me' instantiates files and other configuration actions
7863 from templates according to the current configuration. Unless the files
7864 and actions are specified as TAGs, all are instantiated by default.
7865
7866 Usage: $0 [OPTION]... [TAG]...
7867
7868 -h, --help print this help, then exit
7869 -V, --version print version number and configuration settings, then exit
7870 --config print configuration, then exit
7871 -q, --quiet, --silent
7872 do not print progress messages
7873 -d, --debug don't remove temporary files
7874 --recheck update $as_me by reconfiguring in the same conditions
7875 --file=FILE[:TEMPLATE]
7876 instantiate the configuration file FILE
7877
7878 Configuration files:
7879 $config_files
7880
7881 Report bugs to <[email protected]>."
7882
7883 _ACEOF
7884 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7885 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7887 ac_cs_config='$ac_cs_config_escaped'
7888 ac_cs_version="\\
7889 pspg config.status 0
7890 configured by $0, generated by GNU Autoconf 2.72,
7891 with options \\"\$ac_cs_config\\"
7892
7893 Copyright (C) 2023 Free Software Foundation, Inc.
7894 This config.status script is free software; the Free Software Foundation
7895 gives unlimited permission to copy, distribute and modify it."
7896
7897 ac_pwd='$ac_pwd'
7898 srcdir='$srcdir'
7899 AWK='$AWK'
7900 test -n "\$AWK" || AWK=awk
7901 _ACEOF
7902
7903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7904 # The default lists apply if the user does not specify any file.
7905 ac_need_defaults=:
7906 while test $# != 0
7907 do
7908 case $1 in
7909 --*=?*)
7910 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7911 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7912 ac_shift=:
7913 ;;
7914 --*=)
7915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7916 ac_optarg=
7917 ac_shift=:
7918 ;;
7919 *)
7920 ac_option=$1
7921 ac_optarg=$2
7922 ac_shift=shift
7923 ;;
7924 esac
7925
7926 case $ac_option in
7927 # Handling of the options.
7928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7929 ac_cs_recheck=: ;;
7930 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7931 printf "%s\n" "$ac_cs_version"; exit ;;
7932 --config | --confi | --conf | --con | --co | --c )
7933 printf "%s\n" "$ac_cs_config"; exit ;;
7934 --debug | --debu | --deb | --de | --d | -d )
7935 debug=: ;;
7936 --file | --fil | --fi | --f )
7937 $ac_shift
7938 case $ac_optarg in
7939 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7940 '') as_fn_error $? "missing file argument" ;;
7941 esac
7942 as_fn_append CONFIG_FILES " '$ac_optarg'"
7943 ac_need_defaults=false;;
7944 --he | --h | --help | --hel | -h )
7945 printf "%s\n" "$ac_cs_usage"; exit ;;
7946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7947 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7948 ac_cs_silent=: ;;
7949
7950 # This is an error.
7951 -*) as_fn_error $? "unrecognized option: '$1'
7952 Try '$0 --help' for more information." ;;
7953
7954 *) as_fn_append ac_config_targets " $1"
7955 ac_need_defaults=false ;;
7956
7957 esac
7958 shift
7959 done
7960
7961 ac_configure_extra_args=
7962
7963 if $ac_cs_silent; then
7964 exec 6>/dev/null
7965 ac_configure_extra_args="$ac_configure_extra_args --silent"
7966 fi
7967
7968 _ACEOF
7969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7970 if \$ac_cs_recheck; then
7971 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7972 shift
7973 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7974 CONFIG_SHELL='$SHELL'
7975 export CONFIG_SHELL
7976 exec "\$@"
7977 fi
7978
7979 _ACEOF
7980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7981 exec 5>>config.log
7982 {
7983 echo
7984 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7985 ## Running $as_me. ##
7986 _ASBOX
7987 printf "%s\n" "$ac_log"
7988 } >&5
7989
7990 _ACEOF
7991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7992 _ACEOF
7993
7994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7995
7996 # Handling of arguments.
7997 for ac_config_target in $ac_config_targets
7998 do
7999 case $ac_config_target in
8000 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8001
8002 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
8003 esac
8004 done
8005
8006
8007 # If the user did not use the arguments to specify the items to instantiate,
8008 # then the envvar interface is used. Set only those that are not.
8009 # We use the long form for the default assignment because of an extremely
8010 # bizarre bug on SunOS 4.1.3.
8011 if $ac_need_defaults; then
8012 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8013 fi
8014
8015 # Have a temporary directory for convenience. Make it in the build tree
8016 # simply because there is no reason against having it here, and in addition,
8017 # creating and moving files from /tmp can sometimes cause problems.
8018 # Hook for its removal unless debugging.
8019 # Note that there is a small window in which the directory will not be cleaned:
8020 # after its creation but before its name has been assigned to '$tmp'.
8021 $debug ||
8022 {
8023 tmp= ac_tmp=
8024 trap 'exit_status=$?
8025 : "${ac_tmp:=$tmp}"
8026 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8027 ' 0
8028 trap 'as_fn_exit 1' 1 2 13 15
8029 }
8030 # Create a (secure) tmp directory for tmp files.
8031
8032 {
8033 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8034 test -d "$tmp"
8035 } ||
8036 {
8037 tmp=./conf$$-$RANDOM
8038 (umask 077 && mkdir "$tmp")
8039 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8040 ac_tmp=$tmp
8041
8042 # Set up the scripts for CONFIG_FILES section.
8043 # No need to generate them if there are no CONFIG_FILES.
8044 # This happens for instance with './config.status config.h'.
8045 if test -n "$CONFIG_FILES"; then
8046
8047
8048 ac_cr=`echo X | tr X '\015'`
8049 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8050 # But we know of no other shell where ac_cr would be empty at this
8051 # point, so we can use a bashism as a fallback.
8052 if test "x$ac_cr" = x; then
8053 eval ac_cr=\$\'\\r\'
8054 fi
8055 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8056 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8057 ac_cs_awk_cr='\\r'
8058 else
8059 ac_cs_awk_cr=$ac_cr
8060 fi
8061
8062 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8063 _ACEOF
8064
8065
8066 {
8067 echo "cat >conf$$subs.awk <<_ACEOF" &&
8068 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8069 echo "_ACEOF"
8070 } >conf$$subs.sh ||
8071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8072 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8073 ac_delim='%!_!# '
8074 for ac_last_try in false false false false false :; do
8075 . ./conf$$subs.sh ||
8076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8077
8078 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8079 if test $ac_delim_n = $ac_delim_num; then
8080 break
8081 elif $ac_last_try; then
8082 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8083 else
8084 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8085 fi
8086 done
8087 rm -f conf$$subs.sh
8088
8089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8090 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8091 _ACEOF
8092 sed -n '
8093 h
8094 s/^/S["/; s/!.*/"]=/
8095 p
8096 g
8097 s/^[^!]*!//
8098 :repl
8099 t repl
8100 s/'"$ac_delim"'$//
8101 t delim
8102 :nl
8103 h
8104 s/\(.\{148\}\)..*/\1/
8105 t more1
8106 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8107 p
8108 n
8109 b repl
8110 :more1
8111 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8112 p
8113 g
8114 s/.\{148\}//
8115 t nl
8116 :delim
8117 h
8118 s/\(.\{148\}\)..*/\1/
8119 t more2
8120 s/["\\]/\\&/g; s/^/"/; s/$/"/
8121 p
8122 b
8123 :more2
8124 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8125 p
8126 g
8127 s/.\{148\}//
8128 t delim
8129 ' <conf$$subs.awk | sed '
8130 /^[^""]/{
8131 N
8132 s/\n//
8133 }
8134 ' >>$CONFIG_STATUS || ac_write_fail=1
8135 rm -f conf$$subs.awk
8136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8137 _ACAWK
8138 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8139 for (key in S) S_is_set[key] = 1
8140 FS = ""
8141
8142 }
8143 {
8144 line = $ 0
8145 nfields = split(line, field, "@")
8146 substed = 0
8147 len = length(field[1])
8148 for (i = 2; i < nfields; i++) {
8149 key = field[i]
8150 keylen = length(key)
8151 if (S_is_set[key]) {
8152 value = S[key]
8153 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8154 len += length(value) + length(field[++i])
8155 substed = 1
8156 } else
8157 len += 1 + keylen
8158 }
8159
8160 print line
8161 }
8162
8163 _ACAWK
8164 _ACEOF
8165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8166 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8167 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8168 else
8169 cat
8170 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8171 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8172 _ACEOF
8173
8174 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8175 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8176 # trailing colons and then remove the whole line if VPATH becomes empty
8177 # (actually we leave an empty line to preserve line numbers).
8178 if test "x$srcdir" = x.; then
8179 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8180 h
8181 s///
8182 s/^/:/
8183 s/[ ]*$/:/
8184 s/:\$(srcdir):/:/g
8185 s/:\${srcdir}:/:/g
8186 s/:@srcdir@:/:/g
8187 s/^:*//
8188 s/:*$//
8189 x
8190 s/\(=[ ]*\).*/\1/
8191 G
8192 s/\n//
8193 s/^[^=]*=[ ]*$//
8194 }'
8195 fi
8196
8197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8198 fi # test -n "$CONFIG_FILES"
8199
8200
8201 eval set X " :F $CONFIG_FILES "
8202 shift
8203 for ac_tag
8204 do
8205 case $ac_tag in
8206 :[FHLC]) ac_mode=$ac_tag; continue;;
8207 esac
8208 case $ac_mode$ac_tag in
8209 :[FHL]*:*);;
8210 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
8211 :[FH]-) ac_tag=-:-;;
8212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8213 esac
8214 ac_save_IFS=$IFS
8215 IFS=:
8216 set x $ac_tag
8217 IFS=$ac_save_IFS
8218 shift
8219 ac_file=$1
8220 shift
8221
8222 case $ac_mode in
8223 :L) ac_source=$1;;
8224 :[FH])
8225 ac_file_inputs=
8226 for ac_f
8227 do
8228 case $ac_f in
8229 -) ac_f="$ac_tmp/stdin";;
8230 *) # Look for the file first in the build tree, then in the source tree
8231 # (if the path is not absolute). The absolute path cannot be DOS-style,
8232 # because $ac_f cannot contain ':'.
8233 test -f "$ac_f" ||
8234 case $ac_f in
8235 [\\/$]*) false;;
8236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8237 esac ||
8238 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
8239 esac
8240 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8241 as_fn_append ac_file_inputs " '$ac_f'"
8242 done
8243
8244 # Let's still pretend it is 'configure' which instantiates (i.e., don't
8245 # use $as_me), people would be surprised to read:
8246 # /* config.h. Generated by config.status. */
8247 configure_input='Generated from '`
8248 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8249 `' by configure.'
8250 if test x"$ac_file" != x-; then
8251 configure_input="$ac_file. $configure_input"
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8253 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8254 fi
8255 # Neutralize special characters interpreted by sed in replacement strings.
8256 case $configure_input in #(
8257 *\&* | *\|* | *\\* )
8258 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8259 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8260 *) ac_sed_conf_input=$configure_input;;
8261 esac
8262
8263 case $ac_tag in
8264 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8266 esac
8267 ;;
8268 esac
8269
8270 ac_dir=`$as_dirname -- "$ac_file" ||
8271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8272 X"$ac_file" : 'X\(//\)[^/]' \| \
8273 X"$ac_file" : 'X\(//\)$' \| \
8274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8275 printf "%s\n" X"$ac_file" |
8276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8277 s//\1/
8278 q
8279 }
8280 /^X\(\/\/\)[^/].*/{
8281 s//\1/
8282 q
8283 }
8284 /^X\(\/\/\)$/{
8285 s//\1/
8286 q
8287 }
8288 /^X\(\/\).*/{
8289 s//\1/
8290 q
8291 }
8292 s/.*/./; q'`
8293 as_dir="$ac_dir"; as_fn_mkdir_p
8294 ac_builddir=.
8295
8296 case "$ac_dir" in
8297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8298 *)
8299 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8300 # A ".." for each directory in $ac_dir_suffix.
8301 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8302 case $ac_top_builddir_sub in
8303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8305 esac ;;
8306 esac
8307 ac_abs_top_builddir=$ac_pwd
8308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8309 # for backward compatibility:
8310 ac_top_builddir=$ac_top_build_prefix
8311
8312 case $srcdir in
8313 .) # We are building in place.
8314 ac_srcdir=.
8315 ac_top_srcdir=$ac_top_builddir_sub
8316 ac_abs_top_srcdir=$ac_pwd ;;
8317 [\\/]* | ?:[\\/]* ) # Absolute name.
8318 ac_srcdir=$srcdir$ac_dir_suffix;
8319 ac_top_srcdir=$srcdir
8320 ac_abs_top_srcdir=$srcdir ;;
8321 *) # Relative name.
8322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8323 ac_top_srcdir=$ac_top_build_prefix$srcdir
8324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8325 esac
8326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8327
8328
8329 case $ac_mode in
8330 :F)
8331 #
8332 # CONFIG_FILE
8333 #
8334
8335 _ACEOF
8336
8337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8338 # If the template does not know about datarootdir, expand it.
8339 # FIXME: This hack should be removed a few years after 2.60.
8340 ac_datarootdir_hack=; ac_datarootdir_seen=
8341 ac_sed_dataroot='
8342 /datarootdir/ {
8343 p
8344 q
8345 }
8346 /@datadir@/p
8347 /@docdir@/p
8348 /@infodir@/p
8349 /@localedir@/p
8350 /@mandir@/p'
8351 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8352 *datarootdir*) ac_datarootdir_seen=yes;;
8353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8355 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8356 _ACEOF
8357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8358 ac_datarootdir_hack='
8359 s&@datadir@&$datadir&g
8360 s&@docdir@&$docdir&g
8361 s&@infodir@&$infodir&g
8362 s&@localedir@&$localedir&g
8363 s&@mandir@&$mandir&g
8364 s&\\\${datarootdir}&$datarootdir&g' ;;
8365 esac
8366 _ACEOF
8367
8368 # Neutralize VPATH when '$srcdir' = '.'.
8369 # Shell code in configure.ac might set extrasub.
8370 # FIXME: do we really want to maintain this feature?
8371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8372 ac_sed_extra="$ac_vpsub
8373 $extrasub
8374 _ACEOF
8375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8376 :t
8377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8378 s|@configure_input@|$ac_sed_conf_input|;t t
8379 s&@top_builddir@&$ac_top_builddir_sub&;t t
8380 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8381 s&@srcdir@&$ac_srcdir&;t t
8382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8383 s&@top_srcdir@&$ac_top_srcdir&;t t
8384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8385 s&@builddir@&$ac_builddir&;t t
8386 s&@abs_builddir@&$ac_abs_builddir&;t t
8387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8388 $ac_datarootdir_hack
8389 "
8390 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8391 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8392
8393 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8394 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8396 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
8398 which seems to be undefined. Please make sure it is defined" >&5
8399 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
8400 which seems to be undefined. Please make sure it is defined" >&2;}
8401
8402 rm -f "$ac_tmp/stdin"
8403 case $ac_file in
8404 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8405 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8406 esac \
8407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8408 ;;
8409
8410
8411
8412 esac
8413
8414 done # for ac_tag
8415
8416
8417 as_fn_exit 0
8418 _ACEOF
8419 ac_clean_files=$ac_clean_files_save
8420
8421 test $ac_write_fail = 0 ||
8422 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8423
8424
8425 # configure is writing to config.log, and then calls config.status.
8426 # config.status does its own redirection, appending to config.log.
8427 # Unfortunately, on DOS this fails, as config.log is still kept open
8428 # by configure, so config.status won't be able to write to it; its
8429 # output is simply discarded. So we exec the FD to /dev/null,
8430 # effectively closing config.log, so it can be properly (re)opened and
8431 # appended to by config.status. When coming back to configure, we
8432 # need to make the FD available again.
8433 if test "$no_create" != yes; then
8434 ac_cs_success=:
8435 ac_config_status_args=
8436 test "$silent" = yes &&
8437 ac_config_status_args="$ac_config_status_args --quiet"
8438 exec 5>/dev/null
8439 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8440 exec 5>>config.log
8441 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8442 # would make configure fail if this is the last instruction.
8443 $ac_cs_success || as_fn_exit 1
8444 fi
8445 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8447 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8448 fi
8449
8450