LuK1337 | 52a81d5 | 2025-07-08 18:07:20 -0400 | [diff] [blame] | 1 | #! /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 | |
| 7 | me=`echo "$0" | sed -e 's,.*\/,,'` |
| 8 | |
| 9 | debug=false |
| 10 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 11 | ac_cs_invocation="$0 $@" |
| 12 | |
| 13 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 14 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | |
| 23 | # Name of the executable. |
| 24 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
| 25 | |
| 26 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 27 | as_expr="expr" |
| 28 | else |
| 29 | as_expr="false" |
| 30 | fi |
| 31 | |
| 32 | rm -f conf$$ conf$$.exe conf$$.file |
| 33 | echo >conf$$.file |
| 34 | if 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 |
| 43 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 44 | as_ln_s='ln' |
| 45 | else |
| 46 | as_ln_s='cp -p' |
| 47 | fi |
| 48 | rm -f conf$$ conf$$.exe conf$$.file |
| 49 | |
| 50 | as_executable_p="test -f" |
| 51 | |
| 52 | # Support unset when possible. |
| 53 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 54 | as_unset="unset" |
| 55 | else |
| 56 | as_unset="false" |
| 57 | fi |
| 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. |
| 71 | as_nl=' |
| 72 | ' |
| 73 | IFS=" $as_nl" |
| 74 | |
| 75 | # CDPATH. |
| 76 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| 77 | |
| 78 | exec 6>&1 |
| 79 | |
| 80 | config_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" |
| 81 | config_headers=" include/ncurses_cfg.h:include/ncurses_cfg.hin" |
| 82 | config_commands=" default" |
| 83 | |
| 84 | ac_cs_usage="\ |
| 85 | \`$as_me' instantiates files from templates according to the |
| 86 | current configuration. |
| 87 | |
| 88 | Usage: $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 | |
| 99 | Configuration files: |
| 100 | $config_files |
| 101 | |
| 102 | Configuration headers: |
| 103 | $config_headers |
| 104 | |
| 105 | Configuration commands: |
| 106 | $config_commands |
| 107 | |
| 108 | Report bugs to <dickey@invisible-island.net>." |
| 109 | ac_cs_version="\ |
| 110 | config.status |
| 111 | configured 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 | |
| 114 | Copyright 2003-2022,2023 Thomas E. Dickey |
| 115 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 116 | Free Software Foundation, Inc. |
| 117 | This config.status script is free software; the Free Software Foundation |
| 118 | gives unlimited permission to copy, distribute and modify it." |
| 119 | srcdir="." |
| 120 | INSTALL="/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. |
| 123 | ac_need_defaults=: |
| 124 | while test $# != 0 |
| 125 | do |
| 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 |
| 150 | Try \`$0 --help' for more information." >&5 |
| 151 | echo "$as_me: error: ambiguous option: $1 |
| 152 | Try \`$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 |
| 169 | Try \`$0 --help' for more information." >&5 |
| 170 | echo "$as_me: error: unrecognized option: $1 |
| 171 | Try \`$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 |
| 178 | done |
| 179 | |
| 180 | exec 5>>config.log |
| 181 | cat >&5 << _ACEOF |
| 182 | |
| 183 | ## ----------------------- ## |
| 184 | ## Running config.status. ## |
| 185 | ## ----------------------- ## |
| 186 | |
| 187 | This 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" |
| 193 | on `(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 | |
| 203 | ALTERNATE_SYMS="" |
| 204 | AWK="mawk" |
| 205 | CXX_NAME="ncurses++" |
| 206 | DFT_ARG_SUFFIX="w" |
| 207 | DFT_LWR_MODEL="normal" |
| 208 | ECHO_LD="" |
| 209 | EXTRA_SUFFIX="" |
| 210 | FORM_NAME="form" |
| 211 | LDCONFIG="/usr/sbin/ldconfig" |
| 212 | LIBTOOL_VERSION="-version-number" |
| 213 | LIB_NAME="ncurses" |
| 214 | LIB_PREFIX="lib" |
| 215 | LIB_SUBSETS="ticlib+termlib+ext_tinfo+base+widechar+ext_funcs" |
| 216 | LIB_SUFFIX="w" |
| 217 | LIB_TRACING="DEBUG" |
| 218 | LN_S="ln -s -f" |
| 219 | MAKE_TERMINFO="" |
| 220 | MANPAGE_RENAMES="/home/micky387/Omni/external/libncurses/man/man_db.renames" |
| 221 | MENU_NAME="menu" |
| 222 | NCURSES_MAJOR="6" |
| 223 | NCURSES_MINOR="5" |
| 224 | NCURSES_OSPEED="short" |
| 225 | NCURSES_PATCH="20240427" |
| 226 | PANEL_NAME="panel" |
| 227 | SRC_SUBDIRS=" man include ncurses progs panel menu form test misc c++" |
| 228 | TERMINFO="/system_ext/etc/terminfo" |
| 229 | TICS_ARG_SUFFIX="" |
| 230 | TICS_LIB_SUFFIX="" |
| 231 | TICS_NAME="tic" |
| 232 | TICS_SUFFIX="w.a" |
| 233 | TIC_PATH="" |
| 234 | TINFO_ARG_SUFFIX="ncursesw" |
| 235 | TINFO_LIB_SUFFIX="" |
| 236 | TINFO_NAME="ncurses" |
| 237 | TINFO_SUFFIX="w.a" |
| 238 | UNALTERED_SYMS="" |
| 239 | USE_ARG_SUFFIX="w" |
| 240 | USE_CFG_SUFFIX="w6" |
| 241 | USE_LIB_SUFFIX="w" |
| 242 | USE_OLD_MAKERULES="" |
| 243 | WILDCARD_SYMS="" |
| 244 | WITH_CURSES_H="yes" |
| 245 | WITH_ECHO="yes" |
| 246 | WITH_OVERWRITE="yes" |
| 247 | cf_LIST_MODELS=" normal debug" |
| 248 | cf_cv_VERSION_GNATMAKE=no |
| 249 | cf_cv_VERSION_GPRBUILD=no |
| 250 | cf_cv_abi_default="6" |
| 251 | cf_cv_abi_version="6" |
| 252 | cf_cv_do_relink="" |
| 253 | cf_cv_do_reranlib="no" |
| 254 | cf_cv_do_symlinks="yes" |
| 255 | cf_cv_enable_lp64="1" |
| 256 | cf_cv_enable_opaque="NCURSES_OPAQUE" |
| 257 | cf_cv_make_PHONY="yes" |
| 258 | cf_cv_prog_CC_c_o=yes |
| 259 | cf_cv_prog_CXX_c_o=yes |
| 260 | cf_cv_prog_gnat_correct=no |
| 261 | cf_cv_rel_version="6.5" |
| 262 | cf_cv_rm_so_locs="no" |
| 263 | cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' |
| 264 | cf_cv_shlib_version="rel" |
| 265 | cf_cv_shlib_version_infix="no" |
| 266 | cf_cv_system_name="linux-gnu" |
| 267 | cf_cv_term_driver="no" |
| 268 | cf_with_ada="yes" |
| 269 | cf_with_cxx_binding="yes" |
| 270 | cf_with_db_install="yes" |
| 271 | cf_with_manpages="yes" |
| 272 | cf_with_tests="yes" |
| 273 | host="x86_64-pc-linux-gnu" |
| 274 | target="x86_64-pc-linux-gnu" |
| 275 | verbose="" |
| 276 | with_shared_cxx="" |
| 277 | |
| 278 | for ac_config_target in $ac_config_targets |
| 279 | do |
| 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 |
| 293 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 294 | { (exit 1); exit 1; }; };; |
| 295 | esac |
| 296 | done |
| 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. |
| 302 | if "$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 |
| 306 | fi |
| 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 |
| 337 | if 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 |
| 341 | s,@SHELL@,/bin/sh,;t t |
| 342 | s,@exec_prefix@,${prefix},;t t |
| 343 | s,@prefix@,/usr,;t t |
| 344 | s,@program_transform_name@,s,x,x,,;t t |
| 345 | s,@bindir@,${exec_prefix}/bin,;t t |
| 346 | s,@sbindir@,${exec_prefix}/sbin,;t t |
| 347 | s,@libexecdir@,${exec_prefix}/libexec,;t t |
| 348 | s,@datarootdir@,${prefix}/share,;t t |
| 349 | s,@datadir@,${datarootdir},;t t |
| 350 | s,@sysconfdir@,${prefix}/etc,;t t |
| 351 | s,@sharedstatedir@,${prefix}/com,;t t |
| 352 | s,@localstatedir@,${prefix}/var,;t t |
| 353 | s,@runstatedir@,${localstatedir}/run,;t t |
| 354 | s,@libdir@,${exec_prefix}/lib,;t t |
| 355 | s,@includedir@,${prefix}/include,;t t |
| 356 | s,@oldincludedir@,/usr/include,;t t |
| 357 | s,@infodir@,${datarootdir}/info,;t t |
| 358 | s,@mandir@,${datarootdir}/man,;t t |
| 359 | s,@PACKAGE_NAME@,,;t t |
| 360 | s,@PACKAGE_TARNAME@,,;t t |
| 361 | s,@PACKAGE_VERSION@,,;t t |
| 362 | s,@PACKAGE_STRING@,,;t t |
| 363 | s,@PACKAGE_BUGREPORT@,,;t t |
| 364 | s,@build_alias@,,;t t |
| 365 | s,@host_alias@,,;t t |
| 366 | s,@target_alias@,,;t t |
| 367 | s,@ECHO_C@,\c,;t t |
| 368 | s,@ECHO_N@,,;t t |
| 369 | s,@ECHO_T@,,;t t |
| 370 | s,@PATH_SEPARATOR@,:,;t t |
| 371 | s,@DEFS@,-DHAVE_CONFIG_H,;t t |
| 372 | s,@LIBS@,,;t t |
| 373 | s,@top_builddir@,/home/micky387/Omni/external/libncurses,;t t |
| 374 | s,@GREP@,grep,;t t |
| 375 | s,@EGREP@,grep -E,;t t |
| 376 | s,@NCURSES_MAJOR@,6,;t t |
| 377 | s,@NCURSES_MINOR@,5,;t t |
| 378 | s,@NCURSES_PATCH@,20240427,;t t |
| 379 | s,@cf_cv_rel_version@,6.5,;t t |
| 380 | s,@cf_cv_abi_version@,6,;t t |
| 381 | s,@cf_cv_abi_default@,6,;t t |
| 382 | s,@cf_cv_builtin_bool@,1,;t t |
| 383 | s,@cf_cv_header_stdbool_h@,1,;t t |
| 384 | s,@cf_cv_type_of_bool@,unsigned char,;t t |
| 385 | s,@VERSION@,5:0:10,;t t |
| 386 | s,@VERSION_MAJOR@,6,;t t |
| 387 | s,@VERSION_MINOR@,5,;t t |
| 388 | s,@VERSION_PATCH@,20240427,;t t |
| 389 | s,@PACKAGE@,ncursesw,;t t |
| 390 | s,@build@,x86_64-pc-linux-gnu,;t t |
| 391 | s,@build_cpu@,x86_64,;t t |
| 392 | s,@build_vendor@,pc,;t t |
| 393 | s,@build_os@,linux-gnu,;t t |
| 394 | s,@host@,x86_64-pc-linux-gnu,;t t |
| 395 | s,@host_cpu@,x86_64,;t t |
| 396 | s,@host_vendor@,pc,;t t |
| 397 | s,@host_os@,linux-gnu,;t t |
| 398 | s,@target@,x86_64-pc-linux-gnu,;t t |
| 399 | s,@target_cpu@,x86_64,;t t |
| 400 | s,@target_vendor@,pc,;t t |
| 401 | s,@target_os@,linux-gnu,;t t |
| 402 | s,@FGREP@,grep -F,;t t |
| 403 | s,@CC@,gcc,;t t |
| 404 | s,@CFLAGS@,-O2 --param max-inline-insns-single=1200,;t t |
| 405 | s,@LDFLAGS@,,;t t |
| 406 | s,@CPPFLAGS@,-I. -I../include -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DNDEBUG,;t t |
| 407 | s,@ac_ct_CC@,gcc,;t t |
| 408 | s,@EXEEXT@,,;t t |
| 409 | s,@OBJEXT@,o,;t t |
| 410 | s,@EXTRA_CPPFLAGS@,,;t t |
| 411 | s,@CPP@,gcc -E,;t t |
| 412 | s,@LDCONFIG@,/usr/sbin/ldconfig,;t t |
| 413 | s,@CXX@,/usr/bin/g++,;t t |
| 414 | s,@CXXFLAGS@,-O2,;t t |
| 415 | s,@ac_ct_CXX@,g++,;t t |
| 416 | s,@AWK@,mawk,;t t |
| 417 | s,@INSTALL_PROGRAM@,${INSTALL},;t t |
| 418 | s,@INSTALL_SCRIPT@,${INSTALL},;t t |
| 419 | s,@INSTALL_DATA@,${INSTALL} -m 644,;t t |
| 420 | s,@LINT@,,;t t |
| 421 | s,@LINT_OPTS@,,;t t |
| 422 | s,@LINT_LIBS@,,;t t |
| 423 | s,@LN_S@,ln -s -f,;t t |
| 424 | s,@cf_config_suffix@,,;t t |
| 425 | s,@PKG_CONFIG@,/usr/bin/pkg-config,;t t |
| 426 | s,@ac_pt_PKG_CONFIG@,/usr/bin/pkg-config,;t t |
| 427 | s,@PKG_CONFIG_LIBDIR@,/usr/local/lib/pkgconfig,;t t |
| 428 | s,@MAKE_PC_FILES@,#,;t t |
| 429 | s,@PC_MODULE_SUFFIX@,,;t t |
| 430 | s,@SET_MAKE@,,;t t |
| 431 | s,@MAKE_NO_PHONY@,#,;t t |
| 432 | s,@MAKE_PHONY@,,;t t |
| 433 | s,@CTAGS@,ctags,;t t |
| 434 | s,@ETAGS@,etags,;t t |
| 435 | s,@MAKE_LOWER_TAGS@,,;t t |
| 436 | s,@MAKE_UPPER_TAGS@,,;t t |
| 437 | s,@cf_cv_makeflags@,,;t t |
| 438 | s,@RANLIB@,ranlib,;t t |
| 439 | s,@ac_ct_RANLIB@,ranlib,;t t |
| 440 | s,@LD@,ld,;t t |
| 441 | s,@ac_ct_LD@,ld,;t t |
| 442 | s,@AR@,ar,;t t |
| 443 | s,@ac_ct_AR@,ar,;t t |
| 444 | s,@NM@,nm,;t t |
| 445 | s,@ac_ct_NM@,nm,;t t |
| 446 | s,@ARFLAGS@,-curvU,;t t |
| 447 | s,@DESTDIR@,,;t t |
| 448 | s,@BUILD_CC@,${CC},;t t |
| 449 | s,@BUILD_CPP@,${CPP},;t t |
| 450 | s,@BUILD_CFLAGS@,${CFLAGS},;t t |
| 451 | s,@BUILD_CPPFLAGS@,${CPPFLAGS},;t t |
| 452 | s,@BUILD_LDFLAGS@,${LDFLAGS},;t t |
| 453 | s,@BUILD_LIBS@,${LIBS},;t t |
| 454 | s,@BUILD_EXEEXT@,$x,;t t |
| 455 | s,@BUILD_OBJEXT@,o,;t t |
| 456 | s,@cf_list_models@, normal debug,;t t |
| 457 | s,@ABI_VERSION@,,;t t |
| 458 | s,@LIBTOOL_VERSION@,-version-number,;t t |
| 459 | s,@LIBTOOL@,,;t t |
| 460 | s,@ac_ct_LIBTOOL@,,;t t |
| 461 | s,@LT_UNDEF@,,;t t |
| 462 | s,@LIBTOOL_CXX@,,;t t |
| 463 | s,@LIBTOOL_OPTS@,,;t t |
| 464 | s,@LIB_CREATE@,${AR} -cr,;t t |
| 465 | s,@LIB_OBJECT@,${OBJECTS},;t t |
| 466 | s,@LIB_SUFFIX@,w,;t t |
| 467 | s,@LIB_PREP@,ranlib,;t t |
| 468 | s,@LIB_CLEAN@,,;t t |
| 469 | s,@LIB_COMPILE@,,;t t |
| 470 | s,@LIB_LINK@,${CC},;t t |
| 471 | s,@LIB_INSTALL@,,;t t |
| 472 | s,@LIB_UNINSTALL@,,;t t |
| 473 | s,@DFT_LWR_MODEL@,normal,;t t |
| 474 | s,@DFT_UPR_MODEL@,NORMAL,;t t |
| 475 | s,@TICS_NAME@,tic,;t t |
| 476 | s,@TINFO_NAME@,ncurses,;t t |
| 477 | s,@LIB_NAME@,ncurses,;t t |
| 478 | s,@LIB_PREFIX@,lib,;t t |
| 479 | s,@CC_G_OPT@,-g,;t t |
| 480 | s,@CXX_G_OPT@,-g,;t t |
| 481 | s,@LD_MODEL@,,;t t |
| 482 | s,@shlibdir@,${exec_prefix}/lib,;t t |
| 483 | s,@MAKE_DLLS@,#,;t t |
| 484 | s,@CC_SHARED_OPTS@,-fPIC,;t t |
| 485 | s,@LD_RPATH_OPT@,-Wl,-rpath,,;t t |
| 486 | s,@LD_SHARED_OPTS@,,;t t |
| 487 | s,@MK_SHARED_LIB@,${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@ .${REL_VERSION}`.${ABI_VERSION},-stats,-lc -o $@,;t t |
| 488 | s,@RM_SHARED_OPTS@,,;t t |
| 489 | s,@LINK_PROGS@,,;t t |
| 490 | s,@LINK_TESTS@,,;t t |
| 491 | s,@EXTRA_LDFLAGS@,,;t t |
| 492 | s,@LOCAL_LDFLAGS@,,;t t |
| 493 | s,@LOCAL_LDFLAGS2@,,;t t |
| 494 | s,@INSTALL_LIB@,-m 644 -p,;t t |
| 495 | s,@RPATH_LIST@,${libdir},;t t |
| 496 | s,@EXPORT_SYMS@,,;t t |
| 497 | s,@RESULTING_SYMS@,,;t t |
| 498 | s,@VERSIONED_SYMS@,,;t t |
| 499 | s,@WILDCARD_SYMS@,,;t t |
| 500 | s,@cf_ldd_prog@,,;t t |
| 501 | s,@EXTRA_PKG_LDFLAGS@, ,;t t |
| 502 | s,@EXTRA_SUFFIX@,,;t t |
| 503 | s,@TERMINFO_SRC@,${top_srcdir}/misc/terminfo.src,;t t |
| 504 | s,@NCURSES_USE_DATABASE@,1,;t t |
| 505 | s,@TIC@,tic,;t t |
| 506 | s,@ac_ct_TIC@,tic,;t t |
| 507 | s,@INFOCMP@,infocmp,;t t |
| 508 | s,@ac_ct_INFOCMP@,infocmp,;t t |
| 509 | s,@FALLBACK_LIST@,,;t t |
| 510 | s,@USE_FALLBACKS@,#,;t t |
| 511 | s,@WHICH_XTERM@,xterm-new,;t t |
| 512 | s,@XTERM_KBS@,DEL,;t t |
| 513 | s,@TERMINFO_DIRS@,/system_ext/etc/terminfo,;t t |
| 514 | s,@TERMINFO@,/system_ext/etc/terminfo,;t t |
| 515 | s,@MAKE_TERMINFO@,,;t t |
| 516 | s,@USE_BIG_STRINGS@,1,;t t |
| 517 | s,@TERMPATH@,,;t t |
| 518 | s,@NCURSES_USE_TERMCAP@,0,;t t |
| 519 | s,@BROKEN_LINKER@,0,;t t |
| 520 | s,@NCURSES_WCWIDTH_GRAPHICS@,1,;t t |
| 521 | s,@NCURSES_CH_T@,cchar_t,;t t |
| 522 | s,@NCURSES_LIBUTF8@,0,;t t |
| 523 | s,@NEED_WCHAR_H@,1,;t t |
| 524 | s,@NCURSES_MBSTATE_T@,0,;t t |
| 525 | s,@NCURSES_WCHAR_T@,0,;t t |
| 526 | s,@NCURSES_WINT_T@,0,;t t |
| 527 | s,@NCURSES_OK_WCHAR_T@,1,;t t |
| 528 | s,@NCURSES_OK_WINT_T@,1,;t t |
| 529 | s,@cf_cv_enable_lp64@,1,;t t |
| 530 | s,@NCURSES_TPARM_VARARGS@,1,;t t |
| 531 | s,@NCURSES_WATTR_MACROS@,0,;t t |
| 532 | s,@RGB_PATH@,/usr/share/X11/rgb.txt,;t t |
| 533 | s,@no_x11_rgb@,,;t t |
| 534 | s,@NCURSES_BOOL@,auto,;t t |
| 535 | s,@TERMINFO_CAPS@,Caps,;t t |
| 536 | s,@NCURSES_CHTYPE@,uint32_t,;t t |
| 537 | s,@NCURSES_OSPEED@,short,;t t |
| 538 | s,@NCURSES_MMASK_T@,uint32_t,;t t |
| 539 | s,@NCURSES_CCHARW_MAX@,5,;t t |
| 540 | s,@NCURSES_SBOOL@,char,;t t |
| 541 | s,@NCURSES_TPARM_ARG@,intptr_t,;t t |
| 542 | s,@cf_manpage_format@,no,;t t |
| 543 | s,@cf_manpage_inboth@,no,;t t |
| 544 | s,@cf_manpage_so_strip@,gz,;t t |
| 545 | s,@cf_manpage_compress@,gzip,;t t |
| 546 | s,@cf_manpage_coptions@,-n,;t t |
| 547 | s,@MANPAGE_RENAMES@,/home/micky387/Omni/external/libncurses/man/man_db.renames,;t t |
| 548 | s,@NCURSES_EXT_FUNCS@,1,;t t |
| 549 | s,@GENERATED_EXT_FUNCS@,generated,;t t |
| 550 | s,@NCURSES_SP_FUNCS@,1,;t t |
| 551 | s,@GENERATED_SP_FUNCS@,generated,;t t |
| 552 | s,@NCURSES_CONST@,const,;t t |
| 553 | s,@NCURSES_EXT_COLORS@,1,;t t |
| 554 | s,@NCURSES_MOUSE_VERSION@,2,;t t |
| 555 | s,@cf_cv_enable_sigwinch@,1,;t t |
| 556 | s,@NCURSES_XNAMES@,1,;t t |
| 557 | s,@PTHREAD@,,;t t |
| 558 | s,@cf_cv_enable_reentrant@,0,;t t |
| 559 | s,@cf_cv_enable_opaque@,NCURSES_OPAQUE,;t t |
| 560 | s,@NCURSES_SIZE_T@,short,;t t |
| 561 | s,@NCURSES_OPAQUE@,1,;t t |
| 562 | s,@NCURSES_OPAQUE_FORM@,1,;t t |
| 563 | s,@NCURSES_OPAQUE_MENU@,1,;t t |
| 564 | s,@NCURSES_OPAQUE_PANEL@,1,;t t |
| 565 | s,@NCURSES_WRAP_PREFIX@,_nc_,;t t |
| 566 | s,@NCURSES_IMPEXP@,,;t t |
| 567 | s,@NCURSES_CXX_IMPEXP@,,;t t |
| 568 | s,@NCURSES_INTEROP_FUNCS@,1,;t t |
| 569 | s,@NCURSES_WGETCH_EVENTS@,0,;t t |
| 570 | s,@EXP_WIN32_DRIVER@,0,;t t |
| 571 | s,@INTERNALS_HDR@,,;t t |
| 572 | s,@ECHO_LT@,,;t t |
| 573 | s,@ECHO_LD@,,;t t |
| 574 | s,@RULE_CC@,,;t t |
| 575 | s,@SHOW_CC@,,;t t |
| 576 | s,@ECHO_CC@,,;t t |
| 577 | s,@ECHO_LINK@,@ echo linking $@ ... ;,;t t |
| 578 | s,@INSTALL_OPT_S@,-s,;t t |
| 579 | s,@INSTALL_OPT_O@,,;t t |
| 580 | s,@INSTALL_OPT_P@,-p,;t t |
| 581 | s,@EXTRA_CFLAGS@,,;t t |
| 582 | s,@HAVE_STDNORETURN_H@,0,;t t |
| 583 | s,@STDC_NORETURN@,,;t t |
| 584 | s,@ADAFLAGS@,,;t t |
| 585 | s,@EXTRA_CXXFLAGS@,,;t t |
| 586 | s,@ADA_TRACE@,FALSE,;t t |
| 587 | s,@MATH_LIB@,-lm,;t t |
| 588 | s,@NCURSES_INLINE@,inline,;t t |
| 589 | s,@cf_cv_typeof_chtype@,uint32_t,;t t |
| 590 | s,@cf_cv_1UL@,1U,;t t |
| 591 | s,@cf_cv_typeof_mmask_t@,uint32_t,;t t |
| 592 | s,@HAVE_VSSCANF@,1,;t t |
| 593 | s,@TEST_LIBS@,-lutil ,;t t |
| 594 | s,@TEST_LIBS2@,,;t t |
| 595 | s,@CXXCPP@,/usr/bin/g++ -E,;t t |
| 596 | s,@CXXLDFLAGS@,,;t t |
| 597 | s,@CXX_AR@,$(AR),;t t |
| 598 | s,@CXX_ARFLAGS@,$(ARFLAGS),;t t |
| 599 | s,@CXXLIBS@,,;t t |
| 600 | s,@USE_CXX_BOOL@,defined(__cplusplus),;t t |
| 601 | s,@cf_TEMP_gnat@,,;t t |
| 602 | s,@M4_exists@,,;t t |
| 603 | s,@cf_ada_make@,,;t t |
| 604 | s,@cf_ada_config@,,;t t |
| 605 | s,@cf_ada_config_Ada@,,;t t |
| 606 | s,@cf_ada_config_C@,,;t t |
| 607 | s,@GNATPREP_OPTS@,,;t t |
| 608 | s,@cf_compile_generics@,,;t t |
| 609 | s,@cf_generic_objects@,,;t t |
| 610 | s,@USE_GNAT_SIGINT@,,;t t |
| 611 | s,@USE_OLD_MAKERULES@,,;t t |
| 612 | s,@USE_GNAT_PROJECTS@,,;t t |
| 613 | s,@USE_GNAT_LIBRARIES@,,;t t |
| 614 | s,@USE_GNAT_MAKE_GPR@,,;t t |
| 615 | s,@USE_GNAT_GPRBUILD@,,;t t |
| 616 | s,@cf_ada_compiler@,,;t t |
| 617 | s,@cf_ada_package@,,;t t |
| 618 | s,@ADA_INCLUDE@,,;t t |
| 619 | s,@ADA_OBJECTS@,,;t t |
| 620 | s,@ADA_SHAREDLIB@,,;t t |
| 621 | s,@MAKE_ADA_SHAREDLIB@,,;t t |
| 622 | s,@ADA_LIBNAME@,,;t t |
| 623 | s,@ACPPFLAGS@,-I. -I../include -I../../include ,;t t |
| 624 | s,@DFT_ARG_SUFFIX@,w,;t t |
| 625 | s,@DFT_DEP_SUFFIX@,w.a,;t t |
| 626 | s,@DFT_OBJ_SUBDIR@,objects,;t t |
| 627 | s,@CXX_LIB_SUFFIX@,w.a,;t t |
| 628 | s,@USE_ARG_SUFFIX@,w,;t t |
| 629 | s,@USE_CFG_SUFFIX@,w6,;t t |
| 630 | s,@USE_LIB_SUFFIX@,w,;t t |
| 631 | s,@TICS_ARG_SUFFIX@,,;t t |
| 632 | s,@TICS_DEP_SUFFIX@,,;t t |
| 633 | s,@TICS_LIB_SUFFIX@,,;t t |
| 634 | s,@TICS_LDFLAGS@,-L../lib,;t t |
| 635 | s,@TICS_LIBS@,-lncursesw,;t t |
| 636 | s,@TINFO_ARG_SUFFIX@,ncursesw,;t t |
| 637 | s,@TINFO_DEP_SUFFIX@,,;t t |
| 638 | s,@TINFO_LIB_SUFFIX@,,;t t |
| 639 | s,@TINFO_LDFLAGS@,-L../lib,;t t |
| 640 | s,@TINFO_LIBS@,-lncursesw,;t t |
| 641 | s,@TINFO_LDFLAGS2@,-L../../lib,;t t |
| 642 | s,@LDFLAGS_STATIC@,,;t t |
| 643 | s,@LDFLAGS_SHARED@,,;t t |
| 644 | s,@includesubdir@,,;t t |
| 645 | s,@WITH_OVERWRITE@,yes,;t t |
| 646 | s,@TICS_LIST@,,;t t |
| 647 | s,@TINFO_LIST@,,;t t |
| 648 | s,@SHLIB_LIST@,,;t t |
| 649 | s,@FORM_NAME@,form,;t t |
| 650 | s,@MENU_NAME@,menu,;t t |
| 651 | s,@PANEL_NAME@,panel,;t t |
| 652 | s,@CXX_NAME@,ncurses++,;t t |
| 653 | s,@TEST_ARGS@,-L../lib -lformw -lmenuw -lpanelw -lncursesw ,;t t |
| 654 | s,@TEST_DEPS@,../lib/libformw.a ../lib/libmenuw.a ../lib/libpanelw.a ../lib/libncursesw.a ,;t t |
| 655 | s,@TEST_ARG2@,-L../../lib -lformw -lmenuw -lpanelw -lncursesw ,;t t |
| 656 | s,@TEST_DEP2@,../../lib/libformw.a ../../lib/libmenuw.a ../../lib/libpanelw.a ../../lib/libncursesw.a ,;t t |
| 657 | s,@PC_MODULES_TO_MAKE@,ncursesw panelw menuw formw ncurses++w,;t t |
| 658 | s,@ADA_SUBDIRS@,,;t t |
| 659 | s,@DIRS_TO_MAKE@,lib objects obj_g,;t t |
| 660 | s,@NCURSES_SHLIB2@,/bin/sh $(top_srcdir)/misc/shlib,;t t |
| 661 | s,@HAVE_TCGETATTR@,1,;t t |
| 662 | s,@HAVE_STDINT_H@,1,;t t |
| 663 | s,@HAVE_TERMIO_H@,1,;t t |
| 664 | s,@HAVE_TERMIOS_H@,1,;t t |
| 665 | s,@cross_compiling@,no,;t t |
| 666 | s,@MAKE_TESTS@,,;t t |
| 667 | s,@ADAHTML_DIR@,../../doc/html/ada,;t t |
| 668 | s,@LIBTOOL_OPTS_CXX@,,;t t |
| 669 | s,@PKG_CFLAGS@, -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600,;t t |
| 670 | s,@MISC_INSTALL_DATA@,install.data,;t t |
| 671 | s,@MISC_UNINSTALL_DATA@,uninstall.data,;t t |
| 672 | s,@MAKE_DATABASE@,,;t t |
| 673 | s,@UNALTERED_SYMS@,,;t t |
| 674 | s,@ADAGEN_LDFLAGS@,$(NATIVE_LDFLAGS),;t t |
| 675 | s,@CHECK_BUILD@,,;t t |
| 676 | s,@PRIVATE_LIBS@,,;t t |
| 677 | s,@LD_SEARCHPATH@,/lib/x86_64-linux-gnu|/usr/lib/x86_64-linux-gnu|/lib64|/usr/lib64|/usr/local/lib|/lib|/usr/lib,;t t |
| 678 | CEOF |
| 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 |
| 734 | fi # test -n "$CONFIG_FILES" |
| 735 | |
| 736 | for 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 || |
| 754 | echo 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=.;; |
| 764 | esac |
| 765 | as_dummy="$ac_dir" |
| 766 | for 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 |
| 775 | done; } |
| 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 |
| 806 | echo "$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 |
| 824 | echo "$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 |
| 837 | echo "$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 |
| 852 | echo "$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 |
| 861 | echo "$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 | |
| 868 | if 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'" |
| 870 | fi |
| 871 | |
| 872 | sed "/^[ ]*VPATH[ ]*=/{ |
| 873 | s/:*\$(srcdir):*/:/; |
| 874 | s/:*\${srcdir}:*/:/; |
| 875 | s/:*@srcdir@:*/:/; |
| 876 | s/^\([^=]*=[ ]*\):*/\1/; |
| 877 | s/:*$//; |
| 878 | s/^[^=]*=[ ]*$//; |
| 879 | } |
| 880 | |
| 881 | :t |
| 882 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 883 | s,@configure_input@,$configure_input,;t t |
| 884 | s,@srcdir@,$ac_srcdir,;t t |
| 885 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 886 | s,@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 |
| 903 | echo "$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 |
| 914 | echo "$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 | |
| 922 | done |
| 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. |
| 932 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 933 | ac_dB='[ ].*$,\1#\2' |
| 934 | ac_dC=' ' |
| 935 | ac_dD=',;t' |
| 936 | # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 937 | ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 938 | ac_iB='\([ ]\),\1#\2define\3' |
| 939 | ac_iC=' ' |
| 940 | ac_iD='\4,;t' |
| 941 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 942 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 943 | ac_uB='$,\1#\2define\3' |
| 944 | ac_uC=' ' |
| 945 | ac_uD=',;t' |
| 946 | |
| 947 | for 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 |
| 960 | echo "$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 |
| 971 | echo "$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 |
| 984 | echo "$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 |
| 1032 | CEOF |
| 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 |
| 1072 | CEOF |
| 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 |
| 1112 | CEOF |
| 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 |
| 1152 | CEOF |
| 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 |
| 1182 | CEOF |
| 1183 | cat >> conftest.edit <<CEOF |
| 1184 | /@DEFS@/r conftest.frag |
| 1185 | /@DEFS@/d |
| 1186 | CEOF |
| 1187 | sed -f conftest.edit "$tmp"/in > "$tmp"/out |
| 1188 | rm -f "$tmp"/in |
| 1189 | mv "$tmp"/out "$tmp"/in |
| 1190 | rm -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 |
| 1205 | echo "$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 || |
| 1212 | echo 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=.;; |
| 1222 | esac |
| 1223 | as_dummy="$ac_dir" |
| 1224 | for 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 |
| 1233 | done; } |
| 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 |
| 1243 | done |
| 1244 | # |
| 1245 | # CONFIG_COMMANDS section. |
| 1246 | # |
| 1247 | for 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 ) |
| 1253 | if test "x$cf_with_tests" != xno ; then |
| 1254 | |
| 1255 | for cf_dir in test |
| 1256 | do |
| 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 |
| 1262 | done |
| 1263 | |
| 1264 | fi |
| 1265 | |
| 1266 | cf_prefix=$LIB_PREFIX |
| 1267 | |
| 1268 | case "$cf_cv_shlib_version" in |
| 1269 | (cygdll|msysdll|mingw|msvcdll) |
| 1270 | TINFO_NAME=$TINFO_ARG_SUFFIX |
| 1271 | TINFO_SUFFIX=.dll |
| 1272 | ;; |
| 1273 | esac |
| 1274 | |
| 1275 | if 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 |
| 1290 | fi |
| 1291 | |
| 1292 | for cf_dir in $SRC_SUBDIRS |
| 1293 | do |
| 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 |
| 1321 | resulting.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; } \ |
| 1326 | END { print last; }' < "$UNALTERED_SYMS" >\$@ |
| 1327 | |
| 1328 | distclean:: |
| 1329 | rm -f resulting.map |
| 1330 | CF_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 | |
| 1420 | cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` |
| 1421 | |
| 1422 | eval cf_libname="\$${cf_map_lib_basename}_NAME" |
| 1423 | |
| 1424 | else |
| 1425 | |
| 1426 | cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` |
| 1427 | |
| 1428 | eval 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 | |
| 1581 | cf_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 | |
| 1589 | echo "${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 | |
| 1710 | cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` |
| 1711 | |
| 1712 | eval cf_libname="\$${cf_map_lib_basename}_NAME" |
| 1713 | |
| 1714 | cf_libname=${cf_libname}$USE_LIB_SUFFIX |
| 1715 | else |
| 1716 | |
| 1717 | cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` |
| 1718 | |
| 1719 | eval 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 |
| 1825 | done |
| 1826 | |
| 1827 | echo >> Makefile |
| 1828 | echo '# generated by CF_LIB_RULES' >> Makefile |
| 1829 | |
| 1830 | if 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 |
| 1839 | CF_EOF |
| 1840 | fi |
| 1841 | |
| 1842 | for cf_dir in $SRC_SUBDIRS |
| 1843 | do |
| 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 |
| 1866 | CF_EOF |
| 1867 | fi |
| 1868 | |
| 1869 | echo >> Makefile |
| 1870 | if test -f "$srcdir/$cf_dir/headers" ; then |
| 1871 | cat >> Makefile <<CF_EOF |
| 1872 | install.includes \\ |
| 1873 | uninstall.includes \\ |
| 1874 | CF_EOF |
| 1875 | fi |
| 1876 | |
| 1877 | cat >> Makefile <<CF_EOF |
| 1878 | lint \\ |
| 1879 | libs \\ |
| 1880 | lintlib \\ |
| 1881 | install.libs \\ |
| 1882 | uninstall.libs \\ |
| 1883 | install.$cf_dir \\ |
| 1884 | uninstall.$cf_dir :: |
| 1885 | ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ ) |
| 1886 | CF_EOF |
| 1887 | elif test -f "$srcdir/$cf_dir/headers" ; then |
| 1888 | cat >> Makefile <<CF_EOF |
| 1889 | |
| 1890 | libs \\ |
| 1891 | install.libs \\ |
| 1892 | uninstall.libs \\ |
| 1893 | install.includes \\ |
| 1894 | uninstall.includes :: |
| 1895 | ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ ) |
| 1896 | CF_EOF |
| 1897 | fi |
| 1898 | done |
| 1899 | |
| 1900 | if test "x$cf_cv_make_PHONY" = xyes ; then |
| 1901 | cat >> Makefile <<-CF_EOF |
| 1902 | |
| 1903 | .PHONY : install.data |
| 1904 | .PHONY : uninstall.data |
| 1905 | CF_EOF |
| 1906 | fi |
| 1907 | |
| 1908 | if test "x$cf_with_db_install" = xyes; then |
| 1909 | cat >> Makefile <<CF_EOF |
| 1910 | |
| 1911 | install.libs uninstall.libs \\ |
| 1912 | install.data uninstall.data :: |
| 1913 | $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ ) |
| 1914 | CF_EOF |
| 1915 | else |
| 1916 | cat >> Makefile <<CF_EOF |
| 1917 | |
| 1918 | install.libs uninstall.libs :: |
| 1919 | ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ ) |
| 1920 | CF_EOF |
| 1921 | fi |
| 1922 | |
| 1923 | if test "x$cf_with_manpages" = xyes; then |
| 1924 | |
| 1925 | if test "x$cf_cv_make_PHONY" = xyes ; then |
| 1926 | cat >> Makefile <<-CF_EOF |
| 1927 | |
| 1928 | .PHONY : install.man |
| 1929 | .PHONY : uninstall.man |
| 1930 | CF_EOF |
| 1931 | fi |
| 1932 | |
| 1933 | cat >> Makefile <<CF_EOF |
| 1934 | |
| 1935 | install.man \\ |
| 1936 | uninstall.man :: |
| 1937 | ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ ) |
| 1938 | CF_EOF |
| 1939 | fi |
| 1940 | |
| 1941 | cat >> Makefile <<CF_EOF |
| 1942 | |
| 1943 | distclean :: |
| 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} |
| 1948 | CF_EOF |
| 1949 | |
| 1950 | rm -f headers.sed headers.sh |
| 1951 | |
| 1952 | echo creating headers.sh |
| 1953 | cat >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. |
| 1959 | PRG="" |
| 1960 | while test \$# != 3 |
| 1961 | do |
| 1962 | PRG="\$PRG \$1"; shift |
| 1963 | done |
| 1964 | DST=\$1 |
| 1965 | REF=\$2 |
| 1966 | SRC=\$3 |
| 1967 | TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$ |
| 1968 | TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$ |
| 1969 | echo installing \$SRC in \$DST |
| 1970 | CF_EOF |
| 1971 | |
| 1972 | if test "$WITH_CURSES_H" = yes; then |
| 1973 | cat >>headers.sh <<CF_EOF |
| 1974 | case \$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 | ;; |
| 1986 | esac |
| 1987 | CF_EOF |
| 1988 | |
| 1989 | else |
| 1990 | cat >>headers.sh <<CF_EOF |
| 1991 | case \$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 | ;; |
| 2008 | esac |
| 2009 | CF_EOF |
| 2010 | fi |
| 2011 | cat >>headers.sh <<CF_EOF |
| 2012 | rm -f \$TMPSRC |
| 2013 | sed -f \$TMPSED \$SRC > \$TMPSRC |
| 2014 | NAME=\`basename \$SRC\` |
| 2015 | CF_EOF |
| 2016 | if test "$WITH_CURSES_H" != yes; then |
| 2017 | cat >>headers.sh <<CF_EOF |
| 2018 | test "\$NAME" = "curses.h" && NAME=ncurses.h |
| 2019 | CF_EOF |
| 2020 | fi |
| 2021 | cat >>headers.sh <<CF_EOF |
| 2022 | # Just in case someone gzip'd manpages, remove the conflicting copy. |
| 2023 | test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz |
| 2024 | |
| 2025 | eval \$PRG \$TMPSRC \$DST/\$NAME |
| 2026 | rm -f \$TMPSRC \$TMPSED |
| 2027 | CF_EOF |
| 2028 | |
| 2029 | chmod 0755 headers.sh |
| 2030 | |
| 2031 | for cf_dir in $SRC_SUBDIRS |
| 2032 | do |
| 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 |
| 2050 | CF_EOF |
| 2051 | fi |
| 2052 | |
| 2053 | cat >>$cf_dir/Makefile <<"CF_EOF" |
| 2054 | depend : ${AUTO_SRC} |
| 2055 | makedepend -- ${CPPFLAGS} -- ${C_SRC} |
| 2056 | |
| 2057 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 2058 | CF_EOF |
| 2059 | fi |
| 2060 | fi |
| 2061 | done |
| 2062 | |
| 2063 | if 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 |
| 2068 | fi |
| 2069 | |
| 2070 | if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then |
| 2071 | if test -z "$USE_OLD_MAKERULES" ; then |
| 2072 | $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile |
| 2073 | fi |
| 2074 | fi |
| 2075 | ;; |
| 2076 | esac |
| 2077 | done |
| 2078 | |
| 2079 | { (exit 0); exit 0; } |