blob: 8842ff9fab1b3589227b271f757a70240509dfa9 [file] [log] [blame]
LuK133752a81d52025-07-08 18:07:20 -04001#! /bin/sh
2# Generated automatically by configure.
3# Run this file to recreate the current configuration.
4# Compiler output produced by configure, useful for debugging
5# configure, is in config.log if it exists.
6
7me=`echo "$0" | sed -e 's,.*\/,,'`
8
9debug=false
10SHELL=${CONFIG_SHELL-/bin/sh}
11ac_cs_invocation="$0 $@"
12
13CLICOLOR_FORCE= GREP_OPTIONS=
14unset CLICOLOR_FORCE GREP_OPTIONS
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22
23# Name of the executable.
24as_me=`echo "$0" |sed 's,.*[\\/],,'`
25
26if expr a : '\(a\)' >/dev/null 2>&1; then
27 as_expr="expr"
28else
29 as_expr="false"
30fi
31
32rm -f conf$$ conf$$.exe conf$$.file
33echo >conf$$.file
34if ln -s conf$$.file conf$$ 2>/dev/null; then
35 # We could just check for DJGPP; but this test a) works b) is more generic
36 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37 if test -f conf$$.exe; then
38 # Don't use ln at all; we don't have any links
39 as_ln_s='cp -p'
40 else
41 as_ln_s='ln -s'
42 fi
43elif ln conf$$.file conf$$ 2>/dev/null; then
44 as_ln_s='ln'
45else
46 as_ln_s='cp -p'
47fi
48rm -f conf$$ conf$$.exe conf$$.file
49
50as_executable_p="test -f"
51
52# Support unset when possible.
53if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
54 as_unset="unset"
55else
56 as_unset="false"
57fi
58
59# NLS nuisances.
60$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
61$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
62$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
63$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
64$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
65$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
66$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
67$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
68
69# IFS
70# We need space, tab and new line, in precisely that order.
71as_nl='
72'
73IFS=" $as_nl"
74
75# CDPATH.
76$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
77
78exec 6>&1
79
80config_files=" include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h man/man_db.renames man/Makefile include/Makefile ncurses/Makefile progs/Makefile panel/Makefile menu/Makefile form/Makefile test/Makefile misc/Makefile c++/Makefile misc/run_tic.sh:misc/run_tic.in misc/ncurses-config:misc/ncurses-config.in man/ncursesw6-config.1:man/MKncu_config.in Makefile"
81config_headers=" include/ncurses_cfg.h:include/ncurses_cfg.hin"
82config_commands=" default"
83
84ac_cs_usage="\
85\`$as_me' instantiates files from templates according to the
86current configuration.
87
88Usage: $0 [OPTIONS] [FILE]...
89
90 -h, --help print this help, then exit
91 -V, --version print version number, then exit
92 -d, --debug don't remove temporary files
93 --recheck update $as_me by reconfiguring in the same conditions
94 --file=FILE[:TEMPLATE]
95 instantiate the configuration file FILE
96 --header=FILE[:TEMPLATE]
97 instantiate the configuration header FILE
98
99Configuration files:
100$config_files
101
102Configuration headers:
103$config_headers
104
105Configuration commands:
106$config_commands
107
108Report bugs to <dickey@invisible-island.net>."
109ac_cs_version="\
110config.status
111configured by ./configure, generated by GNU Autoconf 2.52.20231210,
112 with options \"--enable-tcap-names --with-terminfo-dirs=/system_ext/etc/terminfo --with-default-terminfo-dir=/system_ext/etc/terminfo\"
113
114Copyright 2003-2022,2023 Thomas E. Dickey
115Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
116Free Software Foundation, Inc.
117This config.status script is free software; the Free Software Foundation
118gives unlimited permission to copy, distribute and modify it."
119srcdir="."
120INSTALL="/usr/bin/install -c"
121# If no file are specified by the user, then we need to provide default
122# value. By we need to know if files were specified by the user.
123ac_need_defaults=:
124while test $# != 0
125do
126 case $1 in
127 --*=*)
128 ac_option=`expr "x$1" : 'x\([^=]*\)='`
129 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
130 shift
131 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
132 shift
133 ;;
134 -*);;
135 *) # This is not an option, so the user has probably given explicit
136 # arguments.
137 ac_need_defaults=false;;
138 esac
139
140 case $1 in
141 # Handling of the options.
142 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
143 echo "running /bin/sh ./configure " --enable-tcap-names --with-terminfo-dirs=/system_ext/etc/terminfo --with-default-terminfo-dir=/system_ext/etc/terminfo " --no-create --no-recursion"
144 exec /bin/sh ./configure --enable-tcap-names --with-terminfo-dirs=/system_ext/etc/terminfo --with-default-terminfo-dir=/system_ext/etc/terminfo --no-create --no-recursion ;;
145 --version | --vers* | -V )
146 echo "$ac_cs_version"; exit 0 ;;
147 --he | --h)
148 # Conflict between --help and --header
149 { { echo "$as_me:29763: error: ambiguous option: $1
150Try \`$0 --help' for more information." >&5
151echo "$as_me: error: ambiguous option: $1
152Try \`$0 --help' for more information." >&2;}
153 { (exit 1); exit 1; }; };;
154 --help | --hel | -h )
155 echo "$ac_cs_usage"; exit 0 ;;
156 --debug | --d* | -d )
157 debug=: ;;
158 --file | --fil | --fi | --f )
159 shift
160 CONFIG_FILES="$CONFIG_FILES $1"
161 ac_need_defaults=false;;
162 --header | --heade | --head | --hea )
163 shift
164 CONFIG_HEADERS="$CONFIG_HEADERS $1"
165 ac_need_defaults=false;;
166
167 # This is an error.
168 -*) { { echo "$as_me:29782: error: unrecognized option: $1
169Try \`$0 --help' for more information." >&5
170echo "$as_me: error: unrecognized option: $1
171Try \`$0 --help' for more information." >&2;}
172 { (exit 1); exit 1; }; } ;;
173
174 *) ac_config_targets="$ac_config_targets $1" ;;
175
176 esac
177 shift
178done
179
180exec 5>>config.log
181cat >&5 << _ACEOF
182
183## ----------------------- ##
184## Running config.status. ##
185## ----------------------- ##
186
187This file was extended by $as_me 2.52.20231210, executed with
188 CONFIG_FILES = $CONFIG_FILES
189 CONFIG_HEADERS = $CONFIG_HEADERS
190 CONFIG_LINKS = $CONFIG_LINKS
191 CONFIG_COMMANDS = $CONFIG_COMMANDS
192 > "$ac_cs_invocation"
193on `(hostname || uname -n) 2>/dev/null | sed 1q`
194
195_ACEOF
196#
197# INIT-COMMANDS section.
198#
199
200### Special initialization commands, used to pass information from the
201### configuration-run into config.status
202
203ALTERNATE_SYMS=""
204AWK="mawk"
205CXX_NAME="ncurses++"
206DFT_ARG_SUFFIX="w"
207DFT_LWR_MODEL="normal"
208ECHO_LD=""
209EXTRA_SUFFIX=""
210FORM_NAME="form"
211LDCONFIG="/usr/sbin/ldconfig"
212LIBTOOL_VERSION="-version-number"
213LIB_NAME="ncurses"
214LIB_PREFIX="lib"
215LIB_SUBSETS="ticlib+termlib+ext_tinfo+base+widechar+ext_funcs"
216LIB_SUFFIX="w"
217LIB_TRACING="DEBUG"
218LN_S="ln -s -f"
219MAKE_TERMINFO=""
220MANPAGE_RENAMES="/home/micky387/Omni/external/libncurses/man/man_db.renames"
221MENU_NAME="menu"
222NCURSES_MAJOR="6"
223NCURSES_MINOR="5"
224NCURSES_OSPEED="short"
225NCURSES_PATCH="20240427"
226PANEL_NAME="panel"
227SRC_SUBDIRS=" man include ncurses progs panel menu form test misc c++"
228TERMINFO="/system_ext/etc/terminfo"
229TICS_ARG_SUFFIX=""
230TICS_LIB_SUFFIX=""
231TICS_NAME="tic"
232TICS_SUFFIX="w.a"
233TIC_PATH=""
234TINFO_ARG_SUFFIX="ncursesw"
235TINFO_LIB_SUFFIX=""
236TINFO_NAME="ncurses"
237TINFO_SUFFIX="w.a"
238UNALTERED_SYMS=""
239USE_ARG_SUFFIX="w"
240USE_CFG_SUFFIX="w6"
241USE_LIB_SUFFIX="w"
242USE_OLD_MAKERULES=""
243WILDCARD_SYMS=""
244WITH_CURSES_H="yes"
245WITH_ECHO="yes"
246WITH_OVERWRITE="yes"
247cf_LIST_MODELS=" normal debug"
248cf_cv_VERSION_GNATMAKE=no
249cf_cv_VERSION_GPRBUILD=no
250cf_cv_abi_default="6"
251cf_cv_abi_version="6"
252cf_cv_do_relink=""
253cf_cv_do_reranlib="no"
254cf_cv_do_symlinks="yes"
255cf_cv_enable_lp64="1"
256cf_cv_enable_opaque="NCURSES_OPAQUE"
257cf_cv_make_PHONY="yes"
258cf_cv_prog_CC_c_o=yes
259cf_cv_prog_CXX_c_o=yes
260cf_cv_prog_gnat_correct=no
261cf_cv_rel_version="6.5"
262cf_cv_rm_so_locs="no"
263cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
264cf_cv_shlib_version="rel"
265cf_cv_shlib_version_infix="no"
266cf_cv_system_name="linux-gnu"
267cf_cv_term_driver="no"
268cf_with_ada="yes"
269cf_with_cxx_binding="yes"
270cf_with_db_install="yes"
271cf_with_manpages="yes"
272cf_with_tests="yes"
273host="x86_64-pc-linux-gnu"
274target="x86_64-pc-linux-gnu"
275verbose=""
276with_shared_cxx=""
277
278for ac_config_target in $ac_config_targets
279do
280 case "$ac_config_target" in
281 # Handling of arguments.
282 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
283 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
284 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
285 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
286 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
287 "man/man_db.renames" ) CONFIG_FILES="$CONFIG_FILES man/man_db.renames" ;;
288 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
289 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
290 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
291 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
292 *) { { echo "$as_me:29912: error: invalid argument: $ac_config_target" >&5
293echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
294 { (exit 1); exit 1; }; };;
295 esac
296done
297
298# If the user did not use the arguments to specify the items to instantiate,
299# then the envvar interface is used. Set only those that are not.
300# We use the long form for the default assignment because of an extremely
301# bizarre bug on SunOS 4.1.3.
302if "$ac_need_defaults"; then
303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
306fi
307
308# Create a temporary directory, and hook for its removal unless debugging.
309$debug ||
310{
311 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
312 trap '{ (exit 1); exit 1; }' 1 2 13 15
313}
314
315# Create a (secure) tmp directory for tmp files.
316: "${TMPDIR=/tmp}"
317{
318 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
319 test -n "$tmp" && test -d "$tmp"
320} ||
321{
322 tmp=$TMPDIR/cs$$-$RANDOM
323 (umask 077 && mkdir "$tmp")
324} ||
325{
326 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
327 { (exit 1); exit 1; }
328}
329
330
331#
332# CONFIG_FILES section.
333#
334
335# No need to generate the scripts if there are no CONFIG_FILES.
336# This happens for instance when ./config.status config.h
337if test -n "$CONFIG_FILES"; then
338 # Protect against being on the right side of a sed subst in config.status.
339 sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g;
340 s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >"$tmp"/subs.sed <<\CEOF
341s,@SHELL@,/bin/sh,;t t
342s,@exec_prefix@,${prefix},;t t
343s,@prefix@,/usr,;t t
344s,@program_transform_name@,s,x,x,,;t t
345s,@bindir@,${exec_prefix}/bin,;t t
346s,@sbindir@,${exec_prefix}/sbin,;t t
347s,@libexecdir@,${exec_prefix}/libexec,;t t
348s,@datarootdir@,${prefix}/share,;t t
349s,@datadir@,${datarootdir},;t t
350s,@sysconfdir@,${prefix}/etc,;t t
351s,@sharedstatedir@,${prefix}/com,;t t
352s,@localstatedir@,${prefix}/var,;t t
353s,@runstatedir@,${localstatedir}/run,;t t
354s,@libdir@,${exec_prefix}/lib,;t t
355s,@includedir@,${prefix}/include,;t t
356s,@oldincludedir@,/usr/include,;t t
357s,@infodir@,${datarootdir}/info,;t t
358s,@mandir@,${datarootdir}/man,;t t
359s,@PACKAGE_NAME@,,;t t
360s,@PACKAGE_TARNAME@,,;t t
361s,@PACKAGE_VERSION@,,;t t
362s,@PACKAGE_STRING@,,;t t
363s,@PACKAGE_BUGREPORT@,,;t t
364s,@build_alias@,,;t t
365s,@host_alias@,,;t t
366s,@target_alias@,,;t t
367s,@ECHO_C@,\c,;t t
368s,@ECHO_N@,,;t t
369s,@ECHO_T@,,;t t
370s,@PATH_SEPARATOR@,:,;t t
371s,@DEFS@,-DHAVE_CONFIG_H,;t t
372s,@LIBS@,,;t t
373s,@top_builddir@,/home/micky387/Omni/external/libncurses,;t t
374s,@GREP@,grep,;t t
375s,@EGREP@,grep -E,;t t
376s,@NCURSES_MAJOR@,6,;t t
377s,@NCURSES_MINOR@,5,;t t
378s,@NCURSES_PATCH@,20240427,;t t
379s,@cf_cv_rel_version@,6.5,;t t
380s,@cf_cv_abi_version@,6,;t t
381s,@cf_cv_abi_default@,6,;t t
382s,@cf_cv_builtin_bool@,1,;t t
383s,@cf_cv_header_stdbool_h@,1,;t t
384s,@cf_cv_type_of_bool@,unsigned char,;t t
385s,@VERSION@,5:0:10,;t t
386s,@VERSION_MAJOR@,6,;t t
387s,@VERSION_MINOR@,5,;t t
388s,@VERSION_PATCH@,20240427,;t t
389s,@PACKAGE@,ncursesw,;t t
390s,@build@,x86_64-pc-linux-gnu,;t t
391s,@build_cpu@,x86_64,;t t
392s,@build_vendor@,pc,;t t
393s,@build_os@,linux-gnu,;t t
394s,@host@,x86_64-pc-linux-gnu,;t t
395s,@host_cpu@,x86_64,;t t
396s,@host_vendor@,pc,;t t
397s,@host_os@,linux-gnu,;t t
398s,@target@,x86_64-pc-linux-gnu,;t t
399s,@target_cpu@,x86_64,;t t
400s,@target_vendor@,pc,;t t
401s,@target_os@,linux-gnu,;t t
402s,@FGREP@,grep -F,;t t
403s,@CC@,gcc,;t t
404s,@CFLAGS@,-O2 --param max-inline-insns-single=1200,;t t
405s,@LDFLAGS@,,;t t
406s,@CPPFLAGS@,-I. -I../include -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DNDEBUG,;t t
407s,@ac_ct_CC@,gcc,;t t
408s,@EXEEXT@,,;t t
409s,@OBJEXT@,o,;t t
410s,@EXTRA_CPPFLAGS@,,;t t
411s,@CPP@,gcc -E,;t t
412s,@LDCONFIG@,/usr/sbin/ldconfig,;t t
413s,@CXX@,/usr/bin/g++,;t t
414s,@CXXFLAGS@,-O2,;t t
415s,@ac_ct_CXX@,g++,;t t
416s,@AWK@,mawk,;t t
417s,@INSTALL_PROGRAM@,${INSTALL},;t t
418s,@INSTALL_SCRIPT@,${INSTALL},;t t
419s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
420s,@LINT@,,;t t
421s,@LINT_OPTS@,,;t t
422s,@LINT_LIBS@,,;t t
423s,@LN_S@,ln -s -f,;t t
424s,@cf_config_suffix@,,;t t
425s,@PKG_CONFIG@,/usr/bin/pkg-config,;t t
426s,@ac_pt_PKG_CONFIG@,/usr/bin/pkg-config,;t t
427s,@PKG_CONFIG_LIBDIR@,/usr/local/lib/pkgconfig,;t t
428s,@MAKE_PC_FILES@,#,;t t
429s,@PC_MODULE_SUFFIX@,,;t t
430s,@SET_MAKE@,,;t t
431s,@MAKE_NO_PHONY@,#,;t t
432s,@MAKE_PHONY@,,;t t
433s,@CTAGS@,ctags,;t t
434s,@ETAGS@,etags,;t t
435s,@MAKE_LOWER_TAGS@,,;t t
436s,@MAKE_UPPER_TAGS@,,;t t
437s,@cf_cv_makeflags@,,;t t
438s,@RANLIB@,ranlib,;t t
439s,@ac_ct_RANLIB@,ranlib,;t t
440s,@LD@,ld,;t t
441s,@ac_ct_LD@,ld,;t t
442s,@AR@,ar,;t t
443s,@ac_ct_AR@,ar,;t t
444s,@NM@,nm,;t t
445s,@ac_ct_NM@,nm,;t t
446s,@ARFLAGS@,-curvU,;t t
447s,@DESTDIR@,,;t t
448s,@BUILD_CC@,${CC},;t t
449s,@BUILD_CPP@,${CPP},;t t
450s,@BUILD_CFLAGS@,${CFLAGS},;t t
451s,@BUILD_CPPFLAGS@,${CPPFLAGS},;t t
452s,@BUILD_LDFLAGS@,${LDFLAGS},;t t
453s,@BUILD_LIBS@,${LIBS},;t t
454s,@BUILD_EXEEXT@,$x,;t t
455s,@BUILD_OBJEXT@,o,;t t
456s,@cf_list_models@, normal debug,;t t
457s,@ABI_VERSION@,,;t t
458s,@LIBTOOL_VERSION@,-version-number,;t t
459s,@LIBTOOL@,,;t t
460s,@ac_ct_LIBTOOL@,,;t t
461s,@LT_UNDEF@,,;t t
462s,@LIBTOOL_CXX@,,;t t
463s,@LIBTOOL_OPTS@,,;t t
464s,@LIB_CREATE@,${AR} -cr,;t t
465s,@LIB_OBJECT@,${OBJECTS},;t t
466s,@LIB_SUFFIX@,w,;t t
467s,@LIB_PREP@,ranlib,;t t
468s,@LIB_CLEAN@,,;t t
469s,@LIB_COMPILE@,,;t t
470s,@LIB_LINK@,${CC},;t t
471s,@LIB_INSTALL@,,;t t
472s,@LIB_UNINSTALL@,,;t t
473s,@DFT_LWR_MODEL@,normal,;t t
474s,@DFT_UPR_MODEL@,NORMAL,;t t
475s,@TICS_NAME@,tic,;t t
476s,@TINFO_NAME@,ncurses,;t t
477s,@LIB_NAME@,ncurses,;t t
478s,@LIB_PREFIX@,lib,;t t
479s,@CC_G_OPT@,-g,;t t
480s,@CXX_G_OPT@,-g,;t t
481s,@LD_MODEL@,,;t t
482s,@shlibdir@,${exec_prefix}/lib,;t t
483s,@MAKE_DLLS@,#,;t t
484s,@CC_SHARED_OPTS@,-fPIC,;t t
485s,@LD_RPATH_OPT@,-Wl,-rpath,,;t t
486s,@LD_SHARED_OPTS@,,;t t
487s,@MK_SHARED_LIB@,${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@ .${REL_VERSION}`.${ABI_VERSION},-stats,-lc -o $@,;t t
488s,@RM_SHARED_OPTS@,,;t t
489s,@LINK_PROGS@,,;t t
490s,@LINK_TESTS@,,;t t
491s,@EXTRA_LDFLAGS@,,;t t
492s,@LOCAL_LDFLAGS@,,;t t
493s,@LOCAL_LDFLAGS2@,,;t t
494s,@INSTALL_LIB@,-m 644 -p,;t t
495s,@RPATH_LIST@,${libdir},;t t
496s,@EXPORT_SYMS@,,;t t
497s,@RESULTING_SYMS@,,;t t
498s,@VERSIONED_SYMS@,,;t t
499s,@WILDCARD_SYMS@,,;t t
500s,@cf_ldd_prog@,,;t t
501s,@EXTRA_PKG_LDFLAGS@, ,;t t
502s,@EXTRA_SUFFIX@,,;t t
503s,@TERMINFO_SRC@,${top_srcdir}/misc/terminfo.src,;t t
504s,@NCURSES_USE_DATABASE@,1,;t t
505s,@TIC@,tic,;t t
506s,@ac_ct_TIC@,tic,;t t
507s,@INFOCMP@,infocmp,;t t
508s,@ac_ct_INFOCMP@,infocmp,;t t
509s,@FALLBACK_LIST@,,;t t
510s,@USE_FALLBACKS@,#,;t t
511s,@WHICH_XTERM@,xterm-new,;t t
512s,@XTERM_KBS@,DEL,;t t
513s,@TERMINFO_DIRS@,/system_ext/etc/terminfo,;t t
514s,@TERMINFO@,/system_ext/etc/terminfo,;t t
515s,@MAKE_TERMINFO@,,;t t
516s,@USE_BIG_STRINGS@,1,;t t
517s,@TERMPATH@,,;t t
518s,@NCURSES_USE_TERMCAP@,0,;t t
519s,@BROKEN_LINKER@,0,;t t
520s,@NCURSES_WCWIDTH_GRAPHICS@,1,;t t
521s,@NCURSES_CH_T@,cchar_t,;t t
522s,@NCURSES_LIBUTF8@,0,;t t
523s,@NEED_WCHAR_H@,1,;t t
524s,@NCURSES_MBSTATE_T@,0,;t t
525s,@NCURSES_WCHAR_T@,0,;t t
526s,@NCURSES_WINT_T@,0,;t t
527s,@NCURSES_OK_WCHAR_T@,1,;t t
528s,@NCURSES_OK_WINT_T@,1,;t t
529s,@cf_cv_enable_lp64@,1,;t t
530s,@NCURSES_TPARM_VARARGS@,1,;t t
531s,@NCURSES_WATTR_MACROS@,0,;t t
532s,@RGB_PATH@,/usr/share/X11/rgb.txt,;t t
533s,@no_x11_rgb@,,;t t
534s,@NCURSES_BOOL@,auto,;t t
535s,@TERMINFO_CAPS@,Caps,;t t
536s,@NCURSES_CHTYPE@,uint32_t,;t t
537s,@NCURSES_OSPEED@,short,;t t
538s,@NCURSES_MMASK_T@,uint32_t,;t t
539s,@NCURSES_CCHARW_MAX@,5,;t t
540s,@NCURSES_SBOOL@,char,;t t
541s,@NCURSES_TPARM_ARG@,intptr_t,;t t
542s,@cf_manpage_format@,no,;t t
543s,@cf_manpage_inboth@,no,;t t
544s,@cf_manpage_so_strip@,gz,;t t
545s,@cf_manpage_compress@,gzip,;t t
546s,@cf_manpage_coptions@,-n,;t t
547s,@MANPAGE_RENAMES@,/home/micky387/Omni/external/libncurses/man/man_db.renames,;t t
548s,@NCURSES_EXT_FUNCS@,1,;t t
549s,@GENERATED_EXT_FUNCS@,generated,;t t
550s,@NCURSES_SP_FUNCS@,1,;t t
551s,@GENERATED_SP_FUNCS@,generated,;t t
552s,@NCURSES_CONST@,const,;t t
553s,@NCURSES_EXT_COLORS@,1,;t t
554s,@NCURSES_MOUSE_VERSION@,2,;t t
555s,@cf_cv_enable_sigwinch@,1,;t t
556s,@NCURSES_XNAMES@,1,;t t
557s,@PTHREAD@,,;t t
558s,@cf_cv_enable_reentrant@,0,;t t
559s,@cf_cv_enable_opaque@,NCURSES_OPAQUE,;t t
560s,@NCURSES_SIZE_T@,short,;t t
561s,@NCURSES_OPAQUE@,1,;t t
562s,@NCURSES_OPAQUE_FORM@,1,;t t
563s,@NCURSES_OPAQUE_MENU@,1,;t t
564s,@NCURSES_OPAQUE_PANEL@,1,;t t
565s,@NCURSES_WRAP_PREFIX@,_nc_,;t t
566s,@NCURSES_IMPEXP@,,;t t
567s,@NCURSES_CXX_IMPEXP@,,;t t
568s,@NCURSES_INTEROP_FUNCS@,1,;t t
569s,@NCURSES_WGETCH_EVENTS@,0,;t t
570s,@EXP_WIN32_DRIVER@,0,;t t
571s,@INTERNALS_HDR@,,;t t
572s,@ECHO_LT@,,;t t
573s,@ECHO_LD@,,;t t
574s,@RULE_CC@,,;t t
575s,@SHOW_CC@,,;t t
576s,@ECHO_CC@,,;t t
577s,@ECHO_LINK@,@ echo linking $@ ... ;,;t t
578s,@INSTALL_OPT_S@,-s,;t t
579s,@INSTALL_OPT_O@,,;t t
580s,@INSTALL_OPT_P@,-p,;t t
581s,@EXTRA_CFLAGS@,,;t t
582s,@HAVE_STDNORETURN_H@,0,;t t
583s,@STDC_NORETURN@,,;t t
584s,@ADAFLAGS@,,;t t
585s,@EXTRA_CXXFLAGS@,,;t t
586s,@ADA_TRACE@,FALSE,;t t
587s,@MATH_LIB@,-lm,;t t
588s,@NCURSES_INLINE@,inline,;t t
589s,@cf_cv_typeof_chtype@,uint32_t,;t t
590s,@cf_cv_1UL@,1U,;t t
591s,@cf_cv_typeof_mmask_t@,uint32_t,;t t
592s,@HAVE_VSSCANF@,1,;t t
593s,@TEST_LIBS@,-lutil ,;t t
594s,@TEST_LIBS2@,,;t t
595s,@CXXCPP@,/usr/bin/g++ -E,;t t
596s,@CXXLDFLAGS@,,;t t
597s,@CXX_AR@,$(AR),;t t
598s,@CXX_ARFLAGS@,$(ARFLAGS),;t t
599s,@CXXLIBS@,,;t t
600s,@USE_CXX_BOOL@,defined(__cplusplus),;t t
601s,@cf_TEMP_gnat@,,;t t
602s,@M4_exists@,,;t t
603s,@cf_ada_make@,,;t t
604s,@cf_ada_config@,,;t t
605s,@cf_ada_config_Ada@,,;t t
606s,@cf_ada_config_C@,,;t t
607s,@GNATPREP_OPTS@,,;t t
608s,@cf_compile_generics@,,;t t
609s,@cf_generic_objects@,,;t t
610s,@USE_GNAT_SIGINT@,,;t t
611s,@USE_OLD_MAKERULES@,,;t t
612s,@USE_GNAT_PROJECTS@,,;t t
613s,@USE_GNAT_LIBRARIES@,,;t t
614s,@USE_GNAT_MAKE_GPR@,,;t t
615s,@USE_GNAT_GPRBUILD@,,;t t
616s,@cf_ada_compiler@,,;t t
617s,@cf_ada_package@,,;t t
618s,@ADA_INCLUDE@,,;t t
619s,@ADA_OBJECTS@,,;t t
620s,@ADA_SHAREDLIB@,,;t t
621s,@MAKE_ADA_SHAREDLIB@,,;t t
622s,@ADA_LIBNAME@,,;t t
623s,@ACPPFLAGS@,-I. -I../include -I../../include ,;t t
624s,@DFT_ARG_SUFFIX@,w,;t t
625s,@DFT_DEP_SUFFIX@,w.a,;t t
626s,@DFT_OBJ_SUBDIR@,objects,;t t
627s,@CXX_LIB_SUFFIX@,w.a,;t t
628s,@USE_ARG_SUFFIX@,w,;t t
629s,@USE_CFG_SUFFIX@,w6,;t t
630s,@USE_LIB_SUFFIX@,w,;t t
631s,@TICS_ARG_SUFFIX@,,;t t
632s,@TICS_DEP_SUFFIX@,,;t t
633s,@TICS_LIB_SUFFIX@,,;t t
634s,@TICS_LDFLAGS@,-L../lib,;t t
635s,@TICS_LIBS@,-lncursesw,;t t
636s,@TINFO_ARG_SUFFIX@,ncursesw,;t t
637s,@TINFO_DEP_SUFFIX@,,;t t
638s,@TINFO_LIB_SUFFIX@,,;t t
639s,@TINFO_LDFLAGS@,-L../lib,;t t
640s,@TINFO_LIBS@,-lncursesw,;t t
641s,@TINFO_LDFLAGS2@,-L../../lib,;t t
642s,@LDFLAGS_STATIC@,,;t t
643s,@LDFLAGS_SHARED@,,;t t
644s,@includesubdir@,,;t t
645s,@WITH_OVERWRITE@,yes,;t t
646s,@TICS_LIST@,,;t t
647s,@TINFO_LIST@,,;t t
648s,@SHLIB_LIST@,,;t t
649s,@FORM_NAME@,form,;t t
650s,@MENU_NAME@,menu,;t t
651s,@PANEL_NAME@,panel,;t t
652s,@CXX_NAME@,ncurses++,;t t
653s,@TEST_ARGS@,-L../lib -lformw -lmenuw -lpanelw -lncursesw ,;t t
654s,@TEST_DEPS@,../lib/libformw.a ../lib/libmenuw.a ../lib/libpanelw.a ../lib/libncursesw.a ,;t t
655s,@TEST_ARG2@,-L../../lib -lformw -lmenuw -lpanelw -lncursesw ,;t t
656s,@TEST_DEP2@,../../lib/libformw.a ../../lib/libmenuw.a ../../lib/libpanelw.a ../../lib/libncursesw.a ,;t t
657s,@PC_MODULES_TO_MAKE@,ncursesw panelw menuw formw ncurses++w,;t t
658s,@ADA_SUBDIRS@,,;t t
659s,@DIRS_TO_MAKE@,lib objects obj_g,;t t
660s,@NCURSES_SHLIB2@,/bin/sh $(top_srcdir)/misc/shlib,;t t
661s,@HAVE_TCGETATTR@,1,;t t
662s,@HAVE_STDINT_H@,1,;t t
663s,@HAVE_TERMIO_H@,1,;t t
664s,@HAVE_TERMIOS_H@,1,;t t
665s,@cross_compiling@,no,;t t
666s,@MAKE_TESTS@,,;t t
667s,@ADAHTML_DIR@,../../doc/html/ada,;t t
668s,@LIBTOOL_OPTS_CXX@,,;t t
669s,@PKG_CFLAGS@, -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600,;t t
670s,@MISC_INSTALL_DATA@,install.data,;t t
671s,@MISC_UNINSTALL_DATA@,uninstall.data,;t t
672s,@MAKE_DATABASE@,,;t t
673s,@UNALTERED_SYMS@,,;t t
674s,@ADAGEN_LDFLAGS@,$(NATIVE_LDFLAGS),;t t
675s,@CHECK_BUILD@,,;t t
676s,@PRIVATE_LIBS@,,;t t
677s,@LD_SEARCHPATH@,/lib/x86_64-linux-gnu|/usr/lib/x86_64-linux-gnu|/lib64|/usr/lib64|/usr/local/lib|/lib|/usr/lib,;t t
678CEOF
679
680 # Split the substitutions into bite-sized pieces for seds with
681 # small command number limits, like on Digital OSF/1 and HP-UX.
682 ac_max_sed_lines=48
683 ac_sed_frag=1 # Number of current file.
684 ac_beg=1 # First line for current file.
685 ac_end=$ac_max_sed_lines # Line after last line for current file.
686 ac_more_lines=:
687 ac_sed_cmds=
688 while "$ac_more_lines"; do
689 if test "$ac_beg" -gt 1; then
690 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
691 else
692 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
693 fi
694 if test ! -s "$tmp"/subs.frag; then
695 ac_more_lines=false
696 else
697 # The purpose of the label and of the branching condition is to
698 # speed up the sed processing (if there are no `@' at all, there
699 # is no need to browse any of the substitutions).
700 # These are the two extra sed commands mentioned above.
701 (echo ':t
702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
703 # It is possible to make a multiline substitution using escaped newlines.
704 # Ensure that we do not split the substitution between script fragments.
705 ac_BEG=$ac_end
706 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
707 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
708 if test -s "$tmp"/subs.next; then
709 grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit
710 if test ! -s "$tmp"/subs.edit; then
711 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
712 if test ! -s "$tmp"/subs.edit; then
713 if test "$ac_beg" -gt 1; then
714 ac_end=`expr "$ac_end" - 1`
715 continue
716 fi
717 fi
718 fi
719 fi
720
721 if test -z "$ac_sed_cmds"; then
722 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
723 else
724 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
725 fi
726 ac_sed_frag=`expr "$ac_sed_frag" + 1`
727 ac_beg=$ac_end
728 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
729 fi
730 done
731 if test -z "$ac_sed_cmds"; then
732 ac_sed_cmds="cat"
733 fi
734fi # test -n "$CONFIG_FILES"
735
736for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
738 case "$ac_file" in
739 - | *:- | *:-:* ) # input from stdin
740 cat >"$tmp"/stdin
741 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
742 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
743 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
745 * ) ac_file_in=$ac_file.in ;;
746 esac
747
748 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
749 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
750 X"$ac_file" : 'X\(//\)[^/]' \| \
751 X"$ac_file" : 'X\(//\)$' \| \
752 X"$ac_file" : 'X\(/\)' \| \
753 . : '\(.\)' 2>/dev/null ||
754echo X"$ac_file" |
755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
757 /^X\(\/\/\)$/{ s//\1/; q; }
758 /^X\(\/\).*/{ s//\1/; q; }
759 s/.*/./; q'`
760 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
761 { case "$ac_dir" in
762 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
763 *) as_incr_dir=.;;
764esac
765as_dummy="$ac_dir"
766for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
767 case $as_mkdir_dir in
768 # Skip DOS drivespec
769 ?:) as_incr_dir=$as_mkdir_dir ;;
770 *)
771 as_incr_dir=$as_incr_dir/$as_mkdir_dir
772 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
773 ;;
774 esac
775done; }
776
777 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
778 # A "../" for each directory in $ac_dir_suffix.
779 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
780 else
781 ac_dir_suffix= ac_dots=
782 fi
783
784 case "$srcdir" in
785 .) ac_srcdir=.
786 if test -z "$ac_dots"; then
787 ac_top_srcdir=.
788 else
789 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
790 fi ;;
791 [\\/]* | ?:[\\/]* )
792 ac_srcdir="$srcdir$ac_dir_suffix";
793 ac_top_srcdir="$srcdir" ;;
794 *) # Relative path.
795 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
796 ac_top_srcdir="$ac_dots$srcdir" ;;
797 esac
798
799 case $INSTALL in
800 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
801 *) ac_INSTALL=$ac_dots$INSTALL ;;
802 esac
803
804 if test x"$ac_file" != x-; then
805 { echo "$as_me:30433: creating $ac_file" >&5
806echo "$as_me: creating $ac_file" >&6;}
807 rm -f "$ac_file"
808 fi
809 # Let's still pretend it is `configure' which instantiates (i.e., don't
810 # use $as_me), people would be surprised to read:
811 # /* config.h. Generated automatically by config.status. */
812 configure_input="Generated automatically from `echo $ac_file_in |
813 sed 's,.*/,,'` by configure."
814
815 # First look for the input files in the build tree, otherwise in the
816 # src tree.
817 ac_file_inputs=`IFS=:
818 for f in $ac_file_in; do
819 case $f in
820 -) echo "$tmp"/stdin ;;
821 [\\/$]*)
822 # Absolute (can't be DOS-style, as IFS=:)
823 test -f "$f" || { { echo "$as_me:30451: error: cannot find input file: $f" >&5
824echo "$as_me: error: cannot find input file: $f" >&2;}
825 { (exit 1); exit 1; }; }
826 echo "$f";;
827 *) # Relative
828 if test -f "$f"; then
829 # Build tree
830 echo "$f"
831 elif test -f "$srcdir/$f"; then
832 # Source tree
833 echo "$srcdir/$f"
834 else
835 # /dev/null tree
836 { { echo "$as_me:30464: error: cannot find input file: $f" >&5
837echo "$as_me: error: cannot find input file: $f" >&2;}
838 { (exit 1); exit 1; }; }
839 fi;;
840 esac
841 done` || { (exit 1); exit 1; }
842 ac_warn_datarootdir=no
843 if test x"$ac_file" != x-; then
844 for ac_item in $ac_file_inputs
845 do
846 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
847 if test -n "$ac_seen"; then
848 ac_used=`grep '@datarootdir@' "$ac_item"`
849 if test -z "$ac_used"; then
850 { echo "$as_me:30480: WARNING: datarootdir was used implicitly but not set:
851$ac_seen" >&5
852echo "$as_me: WARNING: datarootdir was used implicitly but not set:
853$ac_seen" >&2;}
854 ac_warn_datarootdir=yes
855 fi
856 fi
857 ac_seen=`grep '${datarootdir}' "$ac_item"`
858 if test -n "$ac_seen"; then
859 { echo "$as_me:30489: WARNING: datarootdir was used explicitly but not set:
860$ac_seen" >&5
861echo "$as_me: WARNING: datarootdir was used explicitly but not set:
862$ac_seen" >&2;}
863 ac_warn_datarootdir=yes
864 fi
865 done
866 fi
867
868if test "x$ac_warn_datarootdir" = xyes; then
869 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
870fi
871
872 sed "/^[ ]*VPATH[ ]*=/{
873s/:*\$(srcdir):*/:/;
874s/:*\${srcdir}:*/:/;
875s/:*@srcdir@:*/:/;
876s/^\([^=]*=[ ]*\):*/\1/;
877s/:*$//;
878s/^[^=]*=[ ]*$//;
879}
880
881:t
882/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
883s,@configure_input@,$configure_input,;t t
884s,@srcdir@,$ac_srcdir,;t t
885s,@top_srcdir@,$ac_top_srcdir,;t t
886s,@INSTALL@,$ac_INSTALL,;t t
887" $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
888 rm -f "$tmp"/stdin
889 test -n "${FGREP}" || FGREP="grep -F"
890 test -n "${EGREP}" || EGREP="grep -E"
891 if test x"$ac_file" != x-; then
892 cp "$tmp/out" "$ac_file"
893
894 for ac_name in prefix exec_prefix datarootdir
895 do
896 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
897 if test -n "$ac_seen"; then
898 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
899 if test -z "$ac_init"; then
900 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
901 { echo "$as_me:30534: WARNING: Variable $ac_name is used but was not set:
902$ac_seen" >&5
903echo "$as_me: WARNING: Variable $ac_name is used but was not set:
904$ac_seen" >&2;}
905 fi
906 fi
907 done
908 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
909 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
910 if test -s "$tmp"/out; then
911 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
912 { echo "$as_me:30545: WARNING: Some variables may not be substituted:
913$ac_seen" >&5
914echo "$as_me: WARNING: Some variables may not be substituted:
915$ac_seen" >&2;}
916 fi
917 else
918 cat "$tmp"/out
919 fi
920 rm -f "$tmp"/out
921
922done
923
924#
925# CONFIG_HEADER section.
926#
927
928# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
929# NAME is the cpp macro being defined and VALUE is the value it is being given.
930#
931# ac_d sets the value in "#define NAME VALUE" lines.
932ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
933ac_dB='[ ].*$,\1#\2'
934ac_dC=' '
935ac_dD=',;t'
936# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
937ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
938ac_iB='\([ ]\),\1#\2define\3'
939ac_iC=' '
940ac_iD='\4,;t'
941# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
942ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
943ac_uB='$,\1#\2define\3'
944ac_uC=' '
945ac_uD=',;t'
946
947for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
949 case "$ac_file" in
950 - | *:- | *:-:* ) # input from stdin
951 cat >"$tmp"/stdin
952 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
953 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
954 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
956 * ) ac_file_in=$ac_file.in ;;
957 esac
958
959 test x"$ac_file" != x- && { echo "$as_me:30594: creating $ac_file" >&5
960echo "$as_me: creating $ac_file" >&6;}
961
962 # First look for the input files in the build tree, otherwise in the
963 # src tree.
964 ac_file_inputs=`IFS=:
965 for f in $ac_file_in; do
966 case $f in
967 -) echo "$tmp"/stdin ;;
968 [\\/$]*)
969 # Absolute (can't be DOS-style, as IFS=:)
970 test -f "$f" || { { echo "$as_me:30605: error: cannot find input file: $f" >&5
971echo "$as_me: error: cannot find input file: $f" >&2;}
972 { (exit 1); exit 1; }; }
973 echo $f;;
974 *) # Relative
975 if test -f "$f"; then
976 # Build tree
977 echo $f
978 elif test -f "$srcdir/$f"; then
979 # Source tree
980 echo "$srcdir/$f"
981 else
982 # /dev/null tree
983 { { echo "$as_me:30618: error: cannot find input file: $f" >&5
984echo "$as_me: error: cannot find input file: $f" >&2;}
985 { (exit 1); exit 1; }; }
986 fi;;
987 esac
988 done` || { (exit 1); exit 1; }
989 # Remove the trailing spaces.
990 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in
991
992 rm -f conftest.frag
993 cat >> conftest.frag <<CEOF
994
995#define PACKAGE "ncurses"
996#define NCURSES_VERSION "6.5"
997#define NCURSES_PATCHDATE 20240427
998#define SYSTEM_NAME "linux-gnu"
999#if 0
1000#include <stdlib.h>
1001#endif
1002#define HAVE_LONG_FILE_NAMES 1
1003#define MIXEDCASE_FILENAMES 1
1004#define STDC_HEADERS 1
1005#define HAVE_SYS_TYPES_H 1
1006#define HAVE_SYS_STAT_H 1
1007#define HAVE_STDLIB_H 1
1008#define HAVE_STRING_H 1
1009#define HAVE_MEMORY_H 1
1010#define HAVE_STRINGS_H 1
1011#define HAVE_INTTYPES_H 1
1012#define HAVE_STDINT_H 1
1013#define HAVE_UNISTD_H 1
1014#define HAVE_DIRENT_H 1
1015#define TERMINFO_DIRS "/system_ext/etc/terminfo"
1016#define TERMINFO "/system_ext/etc/terminfo"
1017#define HAVE_BIG_CORE 1
1018#define PURE_TERMINFO 1
1019#define USE_HOME_TERMINFO 1
1020#define USE_ROOT_ENVIRON 1
1021#define USE_ROOT_ACCESS 1
1022#define USE_SETUID_ENVIRON 1
1023#define HAVE_UNISTD_H 1
1024#define HAVE_REMOVE 1
1025#define HAVE_UNLINK 1
1026#define HAVE_LINK 1
1027#define HAVE_SYMLINK 1
1028#define USE_LINKS 1
1029#define HAVE_LANGINFO_CODESET 1
1030#define USE_WIDEC_SUPPORT 1
1031#define NCURSES_WIDECHAR 1
1032CEOF
1033 cat >> conftest.frag <<CEOF
1034#define HAVE_WCHAR_H 1
1035#define HAVE_WCTYPE_H 1
1036#define HAVE_PUTWC 1
1037#define HAVE_BTOWC 1
1038#define HAVE_WCTOB 1
1039#define HAVE_WMEMCHR 1
1040#define HAVE_MBTOWC 1
1041#define HAVE_WCTOMB 1
1042#define HAVE_MBLEN 1
1043#define HAVE_MBRLEN 1
1044#define HAVE_MBRTOWC 1
1045#define HAVE_WCSRTOMBS 1
1046#define HAVE_MBSRTOWCS 1
1047#define HAVE_WCSTOMBS 1
1048#define HAVE_MBSTOWCS 1
1049#define NEED_WCHAR_H 1
1050#define HAVE_FSEEKO 1
1051#define RGB_PATH "/usr/share/X11/rgb.txt"
1052#define SIZEOF_SIGNED_CHAR 1
1053#define NCURSES_EXT_FUNCS 1
1054#define HAVE_ASSUME_DEFAULT_COLORS 1
1055#define HAVE_CURSES_VERSION 1
1056#define HAVE_HAS_KEY 1
1057#define HAVE_RESIZETERM 1
1058#define HAVE_RESIZE_TERM 1
1059#define HAVE_TERM_ENTRY_H 1
1060#define HAVE_USE_DEFAULT_COLORS 1
1061#define HAVE_USE_SCREEN 1
1062#define HAVE_USE_WINDOW 1
1063#define HAVE_WRESIZE 1
1064#define NCURSES_SP_FUNCS 1
1065#define HAVE_TPUTS_SP 1
1066#define NCURSES_EXT_COLORS 1
1067#define HAVE_ALLOC_PAIR 1
1068#define HAVE_INIT_EXTENDED_COLOR 1
1069#define HAVE_RESET_COLOR_PAIRS 1
1070#define NCURSES_EXT_PUTWIN 1
1071#define NCURSES_NO_PADDING 1
1072CEOF
1073 cat >> conftest.frag <<CEOF
1074#define USE_SIGWINCH 1
1075#define NCURSES_XNAMES 1
1076#define NCURSES_WRAP_PREFIX "_nc_"
1077#define USE_ASSUMED_COLOR 1
1078#define USE_HASHMAP 1
1079#define GCC_SCANF 1
1080#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
1081#define GCC_PRINTF 1
1082#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
1083#define GCC_UNUSED __attribute__((unused))
1084#define GCC_NORETURN __attribute__((noreturn))
1085#define HAVE_NC_ALLOC_H 1
1086#define HAVE_MATH_FUNCS 1
1087#define TIME_WITH_SYS_TIME 1
1088#define HAVE_REGEX_H_FUNCS 1
1089#define HAVE_FCNTL_H 1
1090#define HAVE_GETOPT_H 1
1091#define HAVE_LIMITS_H 1
1092#define HAVE_LOCALE_H 1
1093#define HAVE_MATH_H 1
1094#define HAVE_POLL_H 1
1095#define HAVE_SYS_AUXV_H 1
1096#define HAVE_SYS_IOCTL_H 1
1097#define HAVE_SYS_PARAM_H 1
1098#define HAVE_SYS_POLL_H 1
1099#define HAVE_SYS_SELECT_H 1
1100#define HAVE_SYS_TIME_H 1
1101#define HAVE_SYS_TIMES_H 1
1102#define HAVE_UNISTD_H 1
1103#define HAVE_WCTYPE_H 1
1104#define HAVE_UNISTD_H 1
1105#define HAVE_GETOPT_H 1
1106#define HAVE_GETOPT_HEADER 1
1107#define DECL_ENVIRON 1
1108#define HAVE_ENVIRON 1
1109#define HAVE_PUTENV 1
1110#define HAVE_SETENV 1
1111#define HAVE_STRDUP 1
1112CEOF
1113 cat >> conftest.frag <<CEOF
1114#define HAVE_SYS_TIME_SELECT 1
1115#define SIG_ATOMIC_T volatile sig_atomic_t
1116#define HAVE_CLOCK_GETTIME 1
1117#define HAVE_FPATHCONF 1
1118#define HAVE_GETCWD 1
1119#define HAVE_GETAUXVAL 1
1120#define HAVE_GETEGID 1
1121#define HAVE_GETEUID 1
1122#define HAVE_GETOPT 1
1123#define HAVE_GETUID 1
1124#define HAVE_LOCALECONV 1
1125#define HAVE_POLL 1
1126#define HAVE_REMOVE 1
1127#define HAVE_SELECT 1
1128#define HAVE_SETBUF 1
1129#define HAVE_SETBUFFER 1
1130#define HAVE_SETFSUID 1
1131#define HAVE_SETVBUF 1
1132#define HAVE_SIGACTION 1
1133#define HAVE_SNPRINTF 1
1134#define HAVE_STRDUP 1
1135#define HAVE_STRSTR 1
1136#define HAVE_SYSCONF 1
1137#define HAVE_TCGETPGRP 1
1138#define HAVE_TIMES 1
1139#define HAVE_TSEARCH 1
1140#define HAVE_VSNPRINTF 1
1141#define HAVE_ISASCII 1
1142#define HAVE_NANOSLEEP 1
1143#define HAVE_TERMIO_H 1
1144#define HAVE_TERMIOS_H 1
1145#define HAVE_UNISTD_H 1
1146#define HAVE_SYS_IOCTL_H 1
1147#define HAVE_TCGETATTR 1
1148#define HAVE_VSSCANF 1
1149#define HAVE_UNISTD_H 1
1150#define HAVE_MKSTEMP 1
1151#define HAVE_SIZECHANGE 1
1152CEOF
1153 cat >> conftest.frag <<CEOF
1154#define HAVE_WORKING_POLL 1
1155#define HAVE_CONSISTENT_MB_LEN_MAX 1
1156#define HAVE_VA_COPY 1
1157#define HAVE_UNISTD_H 1
1158#define HAVE_FORK 1
1159#define HAVE_VFORK 1
1160#define HAVE_WORKING_VFORK 1
1161#define HAVE_WORKING_FORK 1
1162#define USE_FOPEN_BIN_R 1
1163#define USE_OPENPTY_HEADER <pty.h>
1164#define USE_XTERM_PTY 1
1165#define HAVE_TYPEINFO 1
1166#define HAVE_IOSTREAM 1
1167#define IOSTREAM_NAMESPACE 1
1168#define SIZEOF_BOOL 1
1169#define CPP_HAS_OVERRIDE 1
1170#define CPP_HAS_STATIC_CAST 1
1171#define SIZEOF_WCHAR_T 4
1172#define HAVE_SLK_COLOR 1
1173#define HAVE_PANEL_H 1
1174#define HAVE_LIBPANEL 1
1175#define HAVE_MENU_H 1
1176#define HAVE_LIBMENU 1
1177#define HAVE_FORM_H 1
1178#define HAVE_LIBFORM 1
1179#define NCURSES_PATHSEP ':'
1180#define NCURSES_VERSION_STRING "6.5.20240427"
1181#define NCURSES_OSPEED_COMPAT 1
1182CEOF
1183 cat >> conftest.edit <<CEOF
1184/@DEFS@/r conftest.frag
1185/@DEFS@/d
1186CEOF
1187sed -f conftest.edit "$tmp"/in > "$tmp"/out
1188rm -f "$tmp"/in
1189mv "$tmp"/out "$tmp"/in
1190rm -f conftest.edit conftest.frag
1191
1192 # Let's still pretend it is `configure' which instantiates (i.e., don't
1193 # use $as_me), people would be surprised to read:
1194 # /* config.h. Generated automatically by config.status. */
1195 if test x"$ac_file" = x-; then
1196 echo "/* Generated automatically by configure. */" >"$tmp"/config.h
1197 else
1198 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h
1199 fi
1200 cat "$tmp"/in >>"$tmp"/config.h
1201 rm -f "$tmp"/in
1202 if test x"$ac_file" != x-; then
1203 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
1204 { echo "$as_me:30676: $ac_file is unchanged" >&5
1205echo "$as_me: $ac_file is unchanged" >&6;}
1206 else
1207 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208 X"$ac_file" : 'X\(//\)[^/]' \| \
1209 X"$ac_file" : 'X\(//\)$' \| \
1210 X"$ac_file" : 'X\(/\)' \| \
1211 . : '\(.\)' 2>/dev/null ||
1212echo X"$ac_file" |
1213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1215 /^X\(\/\/\)$/{ s//\1/; q; }
1216 /^X\(\/\).*/{ s//\1/; q; }
1217 s/.*/./; q'`
1218 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1219 { case "$ac_dir" in
1220 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
1221 *) as_incr_dir=.;;
1222esac
1223as_dummy="$ac_dir"
1224for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
1225 case $as_mkdir_dir in
1226 # Skip DOS drivespec
1227 ?:) as_incr_dir=$as_mkdir_dir ;;
1228 *)
1229 as_incr_dir=$as_incr_dir/$as_mkdir_dir
1230 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
1231 ;;
1232 esac
1233done; }
1234
1235 fi
1236 rm -f "$ac_file"
1237 mv "$tmp/config.h" "$ac_file"
1238 fi
1239 else
1240 cat "$tmp"/config.h
1241 rm -f "$tmp"/config.h
1242 fi
1243done
1244#
1245# CONFIG_COMMANDS section.
1246#
1247for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
1248 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
1249 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1250
1251 case "$ac_dest" in
1252 default )
1253if test "x$cf_with_tests" != xno ; then
1254
1255for cf_dir in test
1256do
1257 if test ! -d "$srcdir/$cf_dir" ; then
1258 continue
1259 elif test -f "$srcdir/$cf_dir/programs" ; then
1260 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
1261 fi
1262done
1263
1264fi
1265
1266cf_prefix=$LIB_PREFIX
1267
1268case "$cf_cv_shlib_version" in
1269(cygdll|msysdll|mingw|msvcdll)
1270 TINFO_NAME=$TINFO_ARG_SUFFIX
1271 TINFO_SUFFIX=.dll
1272 ;;
1273esac
1274
1275if test -n "$TINFO_SUFFIX" ; then
1276 case "$TINFO_SUFFIX" in
1277 (tw*)
1278 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
1279 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
1280 ;;
1281 (t*)
1282 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
1283 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
1284 ;;
1285 (w*)
1286 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
1287 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
1288 ;;
1289 esac
1290fi
1291
1292for cf_dir in $SRC_SUBDIRS
1293do
1294 if test ! -d "$srcdir/$cf_dir" ; then
1295 continue
1296 elif test -f "$srcdir/$cf_dir/modules" ; then
1297
1298 SHARED_LIB=
1299 Libs_To_Make=
1300 cf_awk_program=
1301 if test -n "${cf_cv_abi_default}" && test "x${cf_cv_abi_default}" != "x5"
1302 then
1303 cf_awk_program="$cf_awk_program\
1304/deprecated in ABI${cf_cv_abi_default}/ { next; }\
1305{ sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_default}\"); }\
1306"
1307 fi
1308
1309 if test "x$WILDCARD_SYMS" = xno
1310 then
1311 cf_awk_program="$cf_awk_program\
1312/[ ]_\\*;/ { skip=1; next; }\
1313"
1314 fi
1315
1316 if test "x$cf_awk_program" != "x"
1317 then
1318 cat >>$cf_dir/Makefile <<CF_EOF
1319
1320# Generated by CF_LIB_RULES
1321resulting.map: $UNALTERED_SYMS
1322 $AWK 'BEGIN { skip = 1; last=""; } \
1323$cf_awk_program \
1324{ if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
1325 skip = 0; last = \$\$0; } \
1326END { print last; }' < "$UNALTERED_SYMS" >\$@
1327
1328distclean::
1329 rm -f resulting.map
1330CF_EOF
1331 fi
1332
1333 for cf_item in $cf_LIST_MODELS
1334 do
1335
1336 case X$cf_item in
1337 (Xlibtool)
1338 cf_suffix='.la'
1339 cf_depsuf=$cf_suffix
1340 ;;
1341 (Xdebug)
1342 case "$cf_cv_system_name" in
1343 (*-msvc*)
1344 cf_suffix='_g.lib'
1345 ;;
1346 (*)
1347 cf_suffix='_g.a'
1348 ;;
1349 esac
1350 cf_depsuf=$cf_suffix
1351 ;;
1352 (Xprofile)
1353 case "$cf_cv_system_name" in
1354 (*-msvc*)
1355 cf_suffix='_p.lib'
1356 ;;
1357 (*)
1358 cf_suffix='_p.a'
1359 ;;
1360 esac
1361 cf_depsuf=$cf_suffix
1362 ;;
1363 (Xshared)
1364 case "$cf_cv_system_name" in
1365 (aix[5-7]*)
1366 cf_suffix='.so'
1367 cf_depsuf=$cf_suffix
1368 ;;
1369 (*-msvc*)
1370 cf_suffix='.dll'
1371 cf_depsuf='.dll.lib'
1372 ;;
1373 (cygwin*|msys*|mingw*)
1374 cf_suffix='.dll'
1375 cf_depsuf='.dll.a'
1376 ;;
1377 (darwin*)
1378 cf_suffix='.dylib'
1379 cf_depsuf=$cf_suffix
1380 ;;
1381 (hpux*)
1382 case "$target" in
1383 (ia64*)
1384 cf_suffix='.so'
1385 cf_depsuf=$cf_suffix
1386 ;;
1387 (*)
1388 cf_suffix='.sl'
1389 cf_depsuf=$cf_suffix
1390 ;;
1391 esac
1392 ;;
1393 (*)
1394 cf_suffix='.so'
1395 cf_depsuf=$cf_suffix
1396 ;;
1397 esac
1398 ;;
1399 (*)
1400 case "$target" in
1401 (*-msvc*)
1402 cf_suffix='.lib'
1403 ;;
1404 (*)
1405 cf_suffix='.a'
1406 ;;
1407 esac
1408 cf_depsuf=$cf_suffix
1409 ;;
1410 esac
1411 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
1412 then
1413 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
1414 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
1415 fi
1416
1417 if test "$cf_dir" = "c++"
1418 then
1419
1420cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1421
1422eval cf_libname="\$${cf_map_lib_basename}_NAME"
1423
1424 else
1425
1426cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1427
1428eval cf_libname="\$${cf_map_lib_basename}_NAME"
1429
1430 fi
1431 test -z "$cf_libname" && cf_libname="$cf_dir"
1432 if test "$cf_item" = shared ; then
1433 if test -n "${LIB_SUFFIX}"
1434 then
1435 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
1436 else
1437 cf_shared_suffix="$cf_suffix"
1438 fi
1439 if test "$cf_cv_do_symlinks" = yes ; then
1440 cf_version_name=
1441
1442 case "$cf_cv_shlib_version" in
1443 (rel)
1444 cf_version_name=REL_VERSION
1445 ;;
1446 (abi)
1447 cf_version_name=ABI_VERSION
1448 ;;
1449 esac
1450
1451 if test -n "$cf_version_name"
1452 then
1453 case "$cf_cv_system_name" in
1454 (darwin*)
1455 # "w", etc?
1456 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
1457 ;;
1458 (*)
1459 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
1460 ;;
1461 esac
1462 fi
1463 if test -n "${USE_LIB_SUFFIX}"
1464 then
1465 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
1466 else
1467 cf_shared_suffix="$cf_suffix"
1468 fi
1469 fi
1470 # cygwin needs import library, and has unique naming convention
1471 # use autodetected ${cf_prefix} for import lib and static lib, but
1472 # use 'cyg' prefix for shared lib.
1473 case "$cf_cv_shlib_version" in
1474 (cygdll)
1475 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
1476 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
1477 ;;
1478 (msysdll)
1479 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
1480 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
1481 ;;
1482 (mingw)
1483 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
1484 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
1485 ;;
1486 (msvcdll)
1487 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
1488 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
1489 ;;
1490 (*)
1491 cf_add_lib=
1492 ;;
1493 esac
1494 if test -n "$cf_add_lib"
1495 then
1496 Libs_To_Make="$Libs_To_Make $cf_add_lib"
1497 continue
1498 fi
1499 fi
1500 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
1501 Libs_To_Make="$Libs_To_Make $cf_add_lib"
1502 done
1503
1504 if test "$cf_dir" = ncurses ; then
1505 cf_subsets="$LIB_SUBSETS"
1506 cf_r_parts="$cf_subsets"
1507 cf_liblist="$Libs_To_Make"
1508
1509 while test -n "$cf_r_parts"
1510 do
1511 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
1512 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
1513 if test "$cf_l_parts" != "$cf_r_parts" ; then
1514 cf_add_lib=
1515 case "$cf_l_parts" in
1516 (*termlib*)
1517 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
1518 ;;
1519 (*ticlib*)
1520 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
1521 ;;
1522 (*)
1523 break
1524 ;;
1525 esac
1526 if test -n "$cf_add_lib"; then
1527 Libs_To_Make="$cf_add_lib $Libs_To_Make"
1528 fi
1529 else
1530 break
1531 fi
1532 done
1533 else
1534 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
1535 fi
1536
1537 if test "$cf_dir" = c++; then
1538 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
1539 cf_list=
1540 for cf_item in $Libs_To_Make
1541 do
1542 case "$cf_item" in
1543 (*.a)
1544 ;;
1545 (*)
1546 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
1547 ;;
1548 esac
1549 for cf_test in $cf_list
1550 do
1551 if test "$cf_test" = "$cf_item"
1552 then
1553 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
1554 cf_item=
1555 break
1556 fi
1557 done
1558 test -n "$cf_item" && cf_list="$cf_list $cf_item"
1559 done
1560 Libs_To_Make="$cf_list"
1561 fi
1562 fi
1563
1564 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
1565 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
1566 "$cf_dir/Makefile" >$cf_dir/Makefile.out
1567 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
1568
1569 $AWK -f "$srcdir/mk-0th.awk" \
1570 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
1571 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
1572
1573 for cf_subset in $cf_subsets
1574 do
1575 cf_subdirs=
1576 for cf_item in $cf_LIST_MODELS
1577 do
1578
1579 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
1580
1581cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1582
1583 CXX_MODEL=$cf_ITEM
1584 if test "$CXX_MODEL" = SHARED; then
1585 case "$cf_cv_shlib_version" in
1586 (cygdll|msysdll|mingw|msvcdll)
1587 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
1588
1589echo "${as_me:-configure}:31063: testing overriding CXX_MODEL to SHARED ..." 1>&5
1590
1591 with_shared_cxx=yes
1592 ;;
1593 (*)
1594 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
1595 ;;
1596 esac
1597 fi
1598
1599 case X$cf_item in
1600 (Xlibtool)
1601 cf_suffix='.la'
1602 cf_depsuf=$cf_suffix
1603 ;;
1604 (Xdebug)
1605 case "$cf_cv_system_name" in
1606 (*-msvc*)
1607 cf_suffix='_g.lib'
1608 ;;
1609 (*)
1610 cf_suffix='_g.a'
1611 ;;
1612 esac
1613 cf_depsuf=$cf_suffix
1614 ;;
1615 (Xprofile)
1616 case "$cf_cv_system_name" in
1617 (*-msvc*)
1618 cf_suffix='_p.lib'
1619 ;;
1620 (*)
1621 cf_suffix='_p.a'
1622 ;;
1623 esac
1624 cf_depsuf=$cf_suffix
1625 ;;
1626 (Xshared)
1627 case "$cf_cv_system_name" in
1628 (aix[5-7]*)
1629 cf_suffix='.so'
1630 cf_depsuf=$cf_suffix
1631 ;;
1632 (*-msvc*)
1633 cf_suffix='.dll'
1634 cf_depsuf='.dll.lib'
1635 ;;
1636 (cygwin*|msys*|mingw*)
1637 cf_suffix='.dll'
1638 cf_depsuf='.dll.a'
1639 ;;
1640 (darwin*)
1641 cf_suffix='.dylib'
1642 cf_depsuf=$cf_suffix
1643 ;;
1644 (hpux*)
1645 case "$target" in
1646 (ia64*)
1647 cf_suffix='.so'
1648 cf_depsuf=$cf_suffix
1649 ;;
1650 (*)
1651 cf_suffix='.sl'
1652 cf_depsuf=$cf_suffix
1653 ;;
1654 esac
1655 ;;
1656 (*)
1657 cf_suffix='.so'
1658 cf_depsuf=$cf_suffix
1659 ;;
1660 esac
1661 ;;
1662 (*)
1663 case "$target" in
1664 (*-msvc*)
1665 cf_suffix='.lib'
1666 ;;
1667 (*)
1668 cf_suffix='.a'
1669 ;;
1670 esac
1671 cf_depsuf=$cf_suffix
1672 ;;
1673 esac
1674 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
1675 then
1676 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
1677 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
1678 fi
1679
1680 case $cf_item in
1681 (libtool) cf_subdir='obj_lo' ;;
1682 (normal) cf_subdir='objects' ;;
1683 (debug) cf_subdir='obj_g' ;;
1684 (profile) cf_subdir='obj_p' ;;
1685 (shared)
1686 case "$cf_cv_system_name" in
1687 (cygwin|msys)
1688 cf_subdir='objects' ;;
1689 (*)
1690 cf_subdir='obj_s' ;;
1691 esac
1692 esac
1693
1694 # Test for case where we build libtinfo with a different name.
1695 cf_libname=$cf_dir
1696 if test "$cf_dir" = ncurses ; then
1697 case "$cf_subset" in
1698 (*base*)
1699 cf_libname=${cf_libname}$USE_LIB_SUFFIX
1700 ;;
1701 (*termlib*)
1702 cf_libname=$TINFO_LIB_SUFFIX
1703 ;;
1704 (ticlib*)
1705 cf_libname=$TICS_LIB_SUFFIX
1706 ;;
1707 esac
1708 elif test "$cf_dir" = c++ ; then
1709
1710cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1711
1712eval cf_libname="\$${cf_map_lib_basename}_NAME"
1713
1714 cf_libname=${cf_libname}$USE_LIB_SUFFIX
1715 else
1716
1717cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1718
1719eval cf_libname="\$${cf_map_lib_basename}_NAME"
1720
1721 cf_libname=${cf_libname}$USE_LIB_SUFFIX
1722 fi
1723 if test -n "${USE_ARG_SUFFIX}" ; then
1724 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
1725 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
1726 fi
1727
1728 # These dependencies really are for development, not
1729 # builds, but they are useful in porting, too.
1730 cf_depend="../include/ncurses_cfg.h"
1731 if test "$srcdir" = "."; then
1732 cf_reldir="."
1733 else
1734 cf_reldir="\${srcdir}"
1735 fi
1736
1737 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
1738 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
1739 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
1740 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
1741 fi
1742
1743 cf_dir_suffix=
1744 old_cf_suffix="$cf_suffix"
1745 if test "$cf_cv_shlib_version_infix" = yes ; then
1746 if test -n "$USE_LIB_SUFFIX" ; then
1747 case "$USE_LIB_SUFFIX" in
1748 (tw*)
1749 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
1750 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
1751 cf_dir_suffix=tw$EXTRA_SUFFIX
1752 ;;
1753 (t*)
1754 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
1755 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
1756 cf_dir_suffix=t$EXTRA_SUFFIX
1757 ;;
1758 (w*)
1759 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
1760 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
1761 cf_dir_suffix=w$EXTRA_SUFFIX
1762 ;;
1763 (*)
1764 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
1765 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
1766 cf_dir_suffix=$EXTRA_SUFFIX
1767 ;;
1768 esac
1769 fi
1770 fi
1771
1772 $AWK -f "$srcdir/mk-1st.awk" \
1773 name=${cf_libname}${cf_dir_suffix} \
1774 traces=$LIB_TRACING \
1775 MODEL=$cf_ITEM \
1776 CXX_MODEL=$CXX_MODEL \
1777 LIB_SUFFIX=$LIB_SUFFIX \
1778 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
1779 make_phony="${cf_cv_make_PHONY:-no}" \
1780 model=$cf_subdir \
1781 prefix=$cf_prefix \
1782 suffix=$cf_suffix \
1783 subset=$cf_subset \
1784 driver=$cf_cv_term_driver \
1785 SymLink="$LN_S" \
1786 TermlibRoot=$TINFO_NAME \
1787 TermlibSuffix=$TINFO_SUFFIX \
1788 ShlibVer=$cf_cv_shlib_version \
1789 ShlibVerInfix=$cf_cv_shlib_version_infix \
1790 ReLink=${cf_cv_do_relink:-no} \
1791 ReRanlib=${cf_cv_do_reranlib:-yes} \
1792 DoLinks=$cf_cv_do_symlinks \
1793 rmSoLocs=$cf_cv_rm_so_locs \
1794 ldconfig="$LDCONFIG" \
1795 overwrite=$WITH_OVERWRITE \
1796 depend="$cf_depend" \
1797 host="$host" \
1798 libtool_version="$LIBTOOL_VERSION" \
1799 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
1800
1801 cf_suffix="$old_cf_suffix"
1802
1803 for cf_subdir2 in $cf_subdirs lib
1804 do
1805 test "$cf_subdir" = "$cf_subdir2" && break
1806 done
1807 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
1808 $AWK -f "$srcdir/mk-2nd.awk" \
1809 name=$cf_dir \
1810 traces=$LIB_TRACING \
1811 MODEL=$cf_ITEM \
1812 model=$cf_subdir \
1813 subset=$cf_subset \
1814 srcdir=$srcdir \
1815 echo=$WITH_ECHO \
1816 crenames=$cf_cv_prog_CC_c_o \
1817 cxxrenames=$cf_cv_prog_CXX_c_o \
1818 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
1819 cf_subdirs="$cf_subdirs $cf_subdir"
1820 done
1821 done
1822 fi
1823
1824 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
1825done
1826
1827echo >> Makefile
1828echo '# generated by CF_LIB_RULES' >> Makefile
1829
1830if test "x$cf_cv_make_PHONY" = xyes ; then
1831 cat >> Makefile <<-CF_EOF
1832
1833 .PHONY : libs
1834 .PHONY : lintlib
1835 .PHONY : install.includes
1836 .PHONY : uninstall.includes
1837 .PHONY : install.libs
1838 .PHONY : uninstall.libs
1839CF_EOF
1840fi
1841
1842for cf_dir in $SRC_SUBDIRS
1843do
1844 if test ! -d "$srcdir/$cf_dir" ; then
1845 continue
1846 fi
1847
1848 if test -f "$cf_dir/Makefile" ; then
1849 case "$cf_dir" in
1850 (Ada95)
1851 echo 'libs \' >> Makefile
1852 echo 'install.libs \' >> Makefile
1853 echo 'uninstall.libs ::' >> Makefile
1854 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
1855 ;;
1856 esac
1857 fi
1858
1859 if test -f "$srcdir/$cf_dir/modules" ; then
1860
1861 if test "x$cf_cv_make_PHONY" = xyes ; then
1862 cat >> Makefile <<-CF_EOF
1863
1864 .PHONY : install.$cf_dir
1865 .PHONY : uninstall.$cf_dir
1866CF_EOF
1867 fi
1868
1869 echo >> Makefile
1870 if test -f "$srcdir/$cf_dir/headers" ; then
1871cat >> Makefile <<CF_EOF
1872install.includes \\
1873uninstall.includes \\
1874CF_EOF
1875 fi
1876
1877cat >> Makefile <<CF_EOF
1878lint \\
1879libs \\
1880lintlib \\
1881install.libs \\
1882uninstall.libs \\
1883install.$cf_dir \\
1884uninstall.$cf_dir ::
1885 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
1886CF_EOF
1887 elif test -f "$srcdir/$cf_dir/headers" ; then
1888cat >> Makefile <<CF_EOF
1889
1890libs \\
1891install.libs \\
1892uninstall.libs \\
1893install.includes \\
1894uninstall.includes ::
1895 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
1896CF_EOF
1897fi
1898done
1899
1900if test "x$cf_cv_make_PHONY" = xyes ; then
1901 cat >> Makefile <<-CF_EOF
1902
1903 .PHONY : install.data
1904 .PHONY : uninstall.data
1905CF_EOF
1906fi
1907
1908if test "x$cf_with_db_install" = xyes; then
1909cat >> Makefile <<CF_EOF
1910
1911install.libs uninstall.libs \\
1912install.data uninstall.data ::
1913$MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
1914CF_EOF
1915else
1916cat >> Makefile <<CF_EOF
1917
1918install.libs uninstall.libs ::
1919 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
1920CF_EOF
1921fi
1922
1923if test "x$cf_with_manpages" = xyes; then
1924
1925if test "x$cf_cv_make_PHONY" = xyes ; then
1926 cat >> Makefile <<-CF_EOF
1927
1928 .PHONY : install.man
1929 .PHONY : uninstall.man
1930CF_EOF
1931fi
1932
1933cat >> Makefile <<CF_EOF
1934
1935install.man \\
1936uninstall.man ::
1937 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
1938CF_EOF
1939fi
1940
1941cat >> Makefile <<CF_EOF
1942
1943distclean ::
1944 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
1945 rm -f headers.sh headers.sed mk_shared_lib.sh
1946 rm -f edit_man.* man_alias.* *.tmp
1947 rm -rf \${DIRS_TO_MAKE}
1948CF_EOF
1949
1950rm -f headers.sed headers.sh
1951
1952echo creating headers.sh
1953cat >headers.sh <<CF_EOF
1954#! $SHELL
1955# This shell script is generated by the 'configure' script. It is invoked in a
1956# subdirectory of the build tree. It generates a sed-script in the parent
1957# directory that is used to adjust includes for header files that reside in a
1958# subdirectory of /usr/include, etc.
1959PRG=""
1960while test \$# != 3
1961do
1962PRG="\$PRG \$1"; shift
1963done
1964DST=\$1
1965REF=\$2
1966SRC=\$3
1967TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
1968TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
1969echo installing \$SRC in \$DST
1970CF_EOF
1971
1972if test "$WITH_CURSES_H" = yes; then
1973 cat >>headers.sh <<CF_EOF
1974case \$DST in
1975(/*/include/*)
1976 END=\`basename \$DST\`
1977 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
1978 do
1979 NAME=\`basename \$i\`
1980 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
1981 done
1982 ;;
1983(*)
1984 echo "" >> \$TMPSED
1985 ;;
1986esac
1987CF_EOF
1988
1989else
1990 cat >>headers.sh <<CF_EOF
1991case \$DST in
1992(/*/include/*)
1993 END=\`basename \$DST\`
1994 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
1995 do
1996 NAME=\`basename \$i\`
1997 if test "\$NAME" = "curses.h"
1998 then
1999 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
2000 NAME=ncurses.h
2001 fi
2002 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
2003 done
2004 ;;
2005(*)
2006 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
2007 ;;
2008esac
2009CF_EOF
2010fi
2011cat >>headers.sh <<CF_EOF
2012rm -f \$TMPSRC
2013sed -f \$TMPSED \$SRC > \$TMPSRC
2014NAME=\`basename \$SRC\`
2015CF_EOF
2016if test "$WITH_CURSES_H" != yes; then
2017 cat >>headers.sh <<CF_EOF
2018test "\$NAME" = "curses.h" && NAME=ncurses.h
2019CF_EOF
2020fi
2021cat >>headers.sh <<CF_EOF
2022# Just in case someone gzip'd manpages, remove the conflicting copy.
2023test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
2024
2025eval \$PRG \$TMPSRC \$DST/\$NAME
2026rm -f \$TMPSRC \$TMPSED
2027CF_EOF
2028
2029chmod 0755 headers.sh
2030
2031for cf_dir in $SRC_SUBDIRS
2032do
2033 if test ! -d "$srcdir/$cf_dir" ; then
2034 continue
2035 fi
2036
2037 if test -f "$srcdir/$cf_dir/headers" ; then
2038 $AWK -f "$srcdir/mk-hdr.awk" \
2039 subset="$LIB_SUBSETS" \
2040 compat="$WITH_CURSES_H" \
2041 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
2042 fi
2043
2044 if test -f "$srcdir/$cf_dir/modules" ; then
2045 if test "$cf_dir" != "c++" ; then
2046 if test "x$cf_cv_make_PHONY" = xyes ; then
2047 cat >> $cf_dir/Makefile <<-CF_EOF
2048
2049 .PHONY : depend
2050CF_EOF
2051 fi
2052
2053 cat >>$cf_dir/Makefile <<"CF_EOF"
2054depend : ${AUTO_SRC}
2055 makedepend -- ${CPPFLAGS} -- ${C_SRC}
2056
2057# DO NOT DELETE THIS LINE -- make depend depends on it.
2058CF_EOF
2059 fi
2060 fi
2061done
2062
2063if test "$MANPAGE_RENAMES" != no ; then
2064 # Construct a sed-script to perform renaming within man-pages
2065 test -n "$verbose" && echo "creating edit_man.sed"
2066 test ! -d man && mkdir man
2067 FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
2068fi
2069
2070if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
2071if test -z "$USE_OLD_MAKERULES" ; then
2072 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
2073fi
2074fi
2075 ;;
2076 esac
2077done
2078
2079{ (exit 0); exit 0; }