configure.in revision 894e0ac8
1dnl $XTermId: configure.in,v 1.326 2014/05/08 20:47:36 tom Exp $ 2dnl 3dnl ----------------------------------------------------------------------------- 4dnl this file is part of xterm 5dnl 6dnl Copyright 1997-2013,2014 by Thomas E. Dickey 7dnl 8dnl All Rights Reserved 9dnl 10dnl Permission is hereby granted, free of charge, to any person obtaining a 11dnl copy of this software and associated documentation files (the 12dnl "Software"), to deal in the Software without restriction, including 13dnl without limitation the rights to use, copy, modify, merge, publish, 14dnl distribute, sublicense, and/or sell copies of the Software, and to 15dnl permit persons to whom the Software is furnished to do so, subject to 16dnl the following conditions: 17dnl 18dnl The above copyright notice and this permission notice shall be included 19dnl in all copies or substantial portions of the Software. 20dnl 21dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 22dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 23dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 24dnl IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY 25dnl CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 26dnl TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 27dnl SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 28dnl 29dnl Except as contained in this notice, the name(s) of the above copyright 30dnl holders shall not be used in advertising or otherwise to promote the 31dnl sale, use or other dealings in this Software without prior written 32dnl authorization. 33dnl --------------------------------------------------------------------------- 34dnl Process this file with autoconf to produce a configure script. 35dnl 36AC_PREREQ(2.52.20121002) 37AC_INIT 38AC_CONFIG_SRCDIR([charproc.c]) 39AC_CONFIG_HEADER(xtermcfg.h:xtermcfg.hin) 40CF_CHECK_CACHE 41 42### checks for alternative programs 43 44dnl Only add to this case statement when a system has a compiler that is not 45dnl detected by AC_PROG_CC. 46case "$host_os" in 47openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"} 48 : ${CPPFLAGS="-D_ALL_SOURCE"} 49 : ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"} 50 : ${CC=c89};; 51darwin*) 52 : ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";; 53esac 54 55CF_PROG_CC 56AC_PROG_CPP 57AC_PROG_AWK 58CF_PROG_GROFF 59AC_PROG_INSTALL 60AC_PROG_LN_S 61AC_ARG_PROGRAM 62AC_CHECK_PROGS(LINT, tdlint lint alint) 63 64### checks for compiler characteristics 65CF_XOPEN_SOURCE 66CF_SIGWINCH 67 68### checks for header files 69AC_CHECK_HEADERS( \ 70ncurses/curses.h \ 71ncurses/term.h \ 72stdlib.h \ 73sys/ptem.h sys/ttydefaults.h \ 74term.h \ 75termios.h \ 76unistd.h \ 77wchar.h \ 78) 79AC_HEADER_TIME 80AM_LANGINFO_CODESET 81 82### checks for typedefs 83CF_SIG_ATOMIC_T 84AC_CHECK_TYPE(time_t, long) 85CF_TYPE_CC_T 86AC_TYPE_MODE_T 87AC_TYPE_PID_T 88AC_TYPE_UID_T 89AC_TYPE_OFF_T 90 91### checks for library functions 92AC_CHECK_FUNCS( \ 93 gethostname \ 94 getlogin \ 95 initgroups \ 96 mkdtemp \ 97 putenv \ 98 unsetenv \ 99 sched_yield \ 100 setpgid \ 101 strftime \ 102 tcgetattr \ 103 waitpid \ 104 wcswidth \ 105 wcwidth ) 106CF_UTMP 107CF_STRUCT_LASTLOG 108CF_POSIX_SAVED_IDS 109 110CF_HELP_MESSAGE(Compile/Install Options:) 111CF_FUNC_TGETENT 112 113CF_WITH_APP_CLASS(XTerm) 114CF_WITH_APP_DEFAULTS 115CF_WITH_ICON_NAME(xterm-color) 116CF_WITH_ICON_SYMLINK(xterm) 117CF_WITH_ICON_THEME([icons/$ICON_NAME icons/${ICON_NAME}_48x48],,,icons/${ICON_NAME}_48x48) 118CF_DISABLE_DESKTOP(xterm) 119CF_WITH_DESKTOP_CATEGORY(xterm, 120 [*rxvt*|konsole|*-terminal], 121 [System|TerminalEmulator|Utility|*]) 122 123AC_MSG_CHECKING(for install-permissions reference) 124AC_ARG_WITH(reference, 125 [ --with-reference=XXX program to use as permissions-reference], 126 [with_reference=$withval], 127 [with_reference=xterm]) 128AC_MSG_RESULT($with_reference) 129 130with_full_paths=yes 131CF_PATH_PROG(XTERM_PATH,$with_reference) 132 133# If any of --program-prefix, --program-suffix or --program-transform-name is 134# given, accept an option tell the makefile to create a symbolic link, e.g., 135# to "xterm" on install. 136XTERM_SYMLINK=NONE 137AC_SUBST(XTERM_SYMLINK) 138if test "$program_transform_name" != "'s,,,'" ; then 139cf_name=`echo "$program_transform_name" | sed -e '[s,\\$\\$,$,g]'` 140cf_name=`echo xterm |sed -e "$cf_name"` 141AC_MSG_CHECKING(for symbolic link to create to $cf_name) 142AC_ARG_WITH(xterm-symlink, 143 [ --with-xterm-symlink=XXX make symbolic link to installed xterm], 144 [with_symlink=$withval], 145 [with_symlink=xterm]) 146AC_MSG_RESULT($with_symlink) 147test "$with_symlink" = yes && with_symlink=xterm 148test -n "$with_symlink" && \ 149 test "$with_symlink" != no && \ 150 test "$with_symlink" != $cf_name && \ 151 XTERM_SYMLINK="$with_symlink" 152fi 153 154AC_MSG_CHECKING(if you want to disable openpty) 155CF_ARG_DISABLE(openpty, 156 [ --disable-openpty disable openpty, prefer other interfaces], 157 [disable_openpty=yes], 158 [disable_openpty=no], 159 no) 160AC_MSG_RESULT($disable_openpty) 161 162AC_MSG_CHECKING(if you want to disable setuid) 163CF_ARG_DISABLE(setuid, 164 [ --disable-setuid disable setuid in xterm, do not install setuid/setgid], 165 [disable_setuid=yes], 166 [disable_setuid=no], 167 no) 168AC_MSG_RESULT($disable_setuid) 169 170AC_MSG_CHECKING(if you want to disable setgid) 171CF_ARG_DISABLE(setgid, 172 [ --disable-setgid disable setgid in xterm, do not install setuid/setgid], 173 [disable_setgid=yes], 174 [disable_setgid=no], 175 no) 176AC_MSG_RESULT($disable_setgid) 177 178AC_MSG_CHECKING(if you want to run xterm setuid to a given user) 179AC_ARG_WITH(setuid, 180 [ --with-setuid=XXX use the given setuid user], 181 [use_given_setuid=$withval], 182 [use_given_setuid=no]) 183AC_MSG_RESULT($use_given_setuid) 184 185if test "$use_given_setuid" != no ; then 186 if test "$use_given_setuid" = yes ; then 187 cf_cv_given_setuid=root 188 else 189 cf_cv_given_setuid=$use_given_setuid 190 fi 191 # inherit SINSTALL_OPTS from environment to allow packager to customize it. 192 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 193fi 194 195AC_MSG_CHECKING(if you want to run xterm setgid to match utmp/utmpx file) 196AC_ARG_WITH(utmp-setgid, 197 [ --with-utmp-setgid=XXX use setgid to match utmp/utmpx file], 198 [use_utmp_setgid=$withval], 199 [use_utmp_setgid=no]) 200AC_MSG_RESULT($use_utmp_setgid) 201 202if test "$use_utmp_setgid" != no ; then 203 if test "$use_utmp_setgid" = yes ; then 204 CF_UTMP_GROUP 205 else 206 cf_cv_utmp_group=$use_utmp_setgid 207 fi 208 if test "$cf_cv_posix_saved_ids" != yes ; then 209 AC_MSG_ERROR(Your system does not support POSIX saved-ids) 210 fi 211 AC_DEFINE(USE_UTMP_SETGID,1,[Define to 1 if we should use setgid to access utmp/utmpx]) 212 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 213fi 214 215AC_SUBST(SINSTALL_OPTS) 216 217AC_MSG_CHECKING(if you want to link with utempter) 218AC_ARG_WITH(utempter, 219 [ --with-utempter use utempter library for access to utmp], 220 [use_utempter=$withval], 221 [use_utempter=no]) 222AC_MSG_RESULT($use_utempter) 223 224if test "$use_utempter" = yes ; then 225 CF_UTEMPTER 226 test "$cf_cv_have_utempter" != yes && use_utempter=no 227else 228 use_utempter=no 229fi 230 231# Some configurations permit (or require) either setuid or setgid mode. 232# Let the user decide. 233if test "$use_utempter" = yes ; then 234 if test "${enable_setuid+set}" != set ; then 235 disable_setuid=yes 236 CF_VERBOSE([No --disable-setuid option given, force to yes]) 237 fi 238fi 239 240### checks for external data 241CF_ERRNO 242CF_TTY_GROUP 243 244### checks for system services and user specified options 245 246CF_POSIX_WAIT 247CF_SYSV 248CF_SVR4 249CF_X_TOOLKIT 250 251AC_CHECK_HEADERS( \ 252 X11/DECkeysym.h \ 253 X11/Sunkeysym.h \ 254 X11/XF86keysym.h \ 255 X11/XKBlib.h \ 256 X11/Xpoll.h \ 257 X11/extensions/XKB.h \ 258 ) 259 260CF_WITH_XPM 261CF_X_ATHENA 262CF_TYPE_FD_MASK 263CF_TERMIO_C_ISPEED 264 265# If we notice Xcursor, there is a workaround needed. 266AC_CHECK_LIB(Xcursor, XcursorGetTheme,[AC_DEFINE(HAVE_LIB_XCURSOR)]) 267 268LIBS="$LIBS $X_EXTRA_LIBS" 269 270CF_FUNC_GRANTPT 271CF_XKB_QUERY_EXTENSION 272CF_XKB_KEYCODE_TO_KEYSYM 273CF_XKB_BELL_EXT 274 275AC_CHECK_FUNCS(Xutf8LookupString, [],[ 276 EXTRAHDRS="$EXTRAHDRS xutf8.h" 277 EXTRASRCS="$EXTRASRCS xutf8.c" 278 EXTRAOBJS="$EXTRAOBJS xutf8.o" 279]) 280 281CF_WITH_IMAKE_CFLAGS($(MAIN_DEFINES) $(VENDORMANDEFS)) 282 283# If we have already established that there is a full termcap implementation, 284# suppress the definitions for terminfo that we make have imported from the 285# imake-file. 286if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then 287 case "$IMAKE_CFLAGS" in 288 *-DUSE_TERMINFO\ -DHAVE_TIGETSTR*) 289 CF_UNDO_CFLAGS(IMAKE_CFLAGS,terminfo,[-DUSE_TERMINFO[[ ]]*-DHAVE_TIGETSTR[[ ]]*]) 290 CF_UNDO_CFLAGS(CPPFLAGS,terminfo,[-DUSE_TERMINFO[[ ]]*-DHAVE_TIGETSTR[[ ]]*]) 291 ;; 292 esac 293fi 294 295CF_HELP_MESSAGE(Terminal Configuration:) 296 297AC_MSG_CHECKING(for default terminal-id) 298AC_ARG_WITH(terminal-id, 299 [ --with-terminal-id=V set default decTerminalID (default: vt420)], 300 [default_termid=$withval], 301 [default_termid=vt420]) 302AC_MSG_RESULT($default_termid) 303case $default_termid in 304vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 305 ;; 306esac 307AC_DEFINE_UNQUOTED(DFT_DECID,"$default_termid",[default terminal-id]) 308AC_SUBST(default_termid) 309 310AC_MSG_CHECKING(for default terminal-type) 311AC_ARG_WITH(terminal-type, 312 [ --with-terminal-type=T set default $TERM (default: xterm)], 313 [default_TERM=$withval], 314 [default_TERM=xterm]) 315AC_MSG_RESULT($default_TERM) 316AC_DEFINE_UNQUOTED(DFT_TERMTYPE,"$default_TERM",[default terminal-type]) 317AC_SUBST(default_TERM) 318 319############################################################################### 320AC_MSG_CHECKING(if backarrow-key should be BS) 321CF_ARG_DISABLE(backarrow-key, 322 [ --enable-backarrow-key set default backarrowKey resource (default: true)], 323 [backarrow_is_bs=$enableval], 324 [backarrow_is_bs=yes]) 325CF_XBOOL_RESULT(DEF_BACKARO_BS,backarrow_is_bs,[Define to 1 if backarrow-key should be BS]) 326 327AC_MSG_CHECKING(if backarrow-key should be treated as erase) 328CF_ARG_ENABLE(backarrow-is-erase, 329 [ --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)], 330 [backarrow_is_erase=$enableval], 331 [backarrow_is_erase=no]) 332CF_XBOOL_RESULT(DEF_BACKARO_ERASE,backarrow_is_erase,[Define to 1 if backarrow-key should be treated as erase]) 333 334AC_MSG_CHECKING(for default backspace/DEL setting) 335AC_ARG_ENABLE(delete-is-del, 336 [ --enable-delete-is-del set default deleteIsDEL resource (default: maybe)], 337 [delete_is_del=$enableval], 338 [delete_is_del=maybe]) 339CF_XBOOL_RESULT(DEFDELETE_DEL,delete_is_del,[Define to 1 if default backspace/DEL setting is DEL]) 340 341AC_MSG_CHECKING(if alt should send ESC) 342CF_ARG_ENABLE(alt-sends-esc, 343 [ --enable-alt-sends-esc set default altSendsEscape resource (default: no)], 344 [alt_sends_esc=$enableval], 345 [alt_sends_esc=no]) 346CF_XBOOL_RESULT(DEF_ALT_SENDS_ESC,alt_sends_esc,[Define to 1 if alt should send ESC]) 347 348AC_MSG_CHECKING(if meta should send ESC) 349CF_ARG_ENABLE(meta-sends-esc, 350 [ --enable-meta-sends-esc set default metaSendsEscape resource (default: no)], 351 [meta_sends_esc=$enableval], 352 [meta_sends_esc=no]) 353CF_XBOOL_RESULT(DEF_META_SENDS_ESC,meta_sends_esc,[Define to 1 if meta should send ESC]) 354 355############################################################################### 356AC_CHECK_PROG(cf_tic_prog,tic,yes,no) 357if test "$cf_tic_prog" = yes ; then 358 AC_MSG_CHECKING(for private terminfo-directory) 359 AC_ARG_WITH(own-terminfo, 360 [ --with-own-terminfo=P set default $TERMINFO (default: from environment)], 361 [TERMINFO_DIR=$withval], 362 [TERMINFO_DIR=${TERMINFO-none}]) 363 AC_MSG_RESULT($TERMINFO_DIR) 364 if test "$TERMINFO_DIR" = yes ; then 365 AC_MSG_WARN(no value given) 366 elif test "$TERMINFO_DIR" != none ; then 367 if test -d $TERMINFO_DIR ; then 368 AC_DEFINE_UNQUOTED(OWN_TERMINFO_DIR,"$TERMINFO_DIR",[Define to override default TERMINFO value]) 369 else 370 AC_MSG_WARN(not a directory) 371 fi 372 elif test "$prefix" != NONE ; then 373 TERMINFO_DIR='${prefix}/lib/terminfo' 374 elif test -d /usr/lib/terminfo ; then 375 TERMINFO_DIR=/usr/lib/terminfo 376 else 377 TERMINFO_DIR= 378 fi 379 SET_TERMINFO= 380 if test -n "$TERMINFO_DIR" ; then 381 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR 382 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)' 383 fi 384 no_ticprog= 385else 386 no_ticprog="#" 387 TERMINFO_DIR= 388 SET_TERMINFO= 389fi 390AC_SUBST(no_ticprog) 391AC_SUBST(TERMINFO_DIR) 392AC_SUBST(SET_TERMINFO) 393 394############################################################################### 395CF_HELP_MESSAGE(Optional Features:) 396 397AC_MSG_CHECKING(if you want active-icons) 398CF_ARG_DISABLE(active-icon, 399 [ --disable-active-icon disable X11R6.3 active-icon feature], 400 [enable_active_icon=no], 401 [enable_active_icon=yes]) 402AC_MSG_RESULT($enable_active_icon) 403if test "$enable_active_icon" = no ; then 404 AC_DEFINE(NO_ACTIVE_ICON,1,[Define to 1 to disable X11R6.3 active-icon feature]) 405fi 406 407AC_MSG_CHECKING(if you want ANSI color) 408CF_ARG_DISABLE(ansi-color, 409 [ --disable-ansi-color disable ANSI color], 410 [enable_ansi_color=no], 411 [enable_ansi_color=yes]) 412AC_MSG_RESULT($enable_ansi_color) 413test "$enable_ansi_color" = no && AC_DEFINE(OPT_ISO_COLORS,0,[Define to 0 to disable ANSI color]) 414 415if test "$enable_ansi_color" = yes ; then 416 417 AC_MSG_CHECKING(if you want 16 colors like aixterm) 418 CF_ARG_DISABLE(16-color, 419 [ --disable-16-color disable 16-color support], 420 [enable_16_color=no], 421 [enable_16_color=yes]) 422 AC_MSG_RESULT($enable_16_color) 423 test "$enable_16_color" = no && AC_DEFINE(OPT_AIX_COLORS,0,[Define to 0 to disable 16-color support]) 424 425 AC_MSG_CHECKING(if you want 256 colors) 426 CF_ARG_ENABLE(256-color, 427 [ --enable-256-color enable 256-color support], 428 [enable_256_color=yes], 429 [enable_256_color=no]) 430 AC_MSG_RESULT($enable_256_color) 431 if test "$enable_256_color" = yes ; then 432 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 433 EXTRAHDRS="$EXTRAHDRS 256colres.h" 434 AC_DEFINE(OPT_256_COLORS,1,[Define to 1 to enable 256-color support]) 435 else 436 AC_MSG_CHECKING(if you want 88 colors) 437 CF_ARG_ENABLE(88-color, 438 [ --enable-88-color enable 88-color support], 439 [enable_88_color=yes], 440 [enable_88_color=no]) 441 AC_MSG_RESULT($enable_88_color) 442 if test "$enable_88_color" = yes ; then 443 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 444 EXTRAHDRS="$EXTRAHDRS 88colres.h" 445 AC_DEFINE(OPT_88_COLORS,1,[Define to 1 to enable 88-color support]) 446 fi 447 fi 448 449fi 450 451AC_MSG_CHECKING(if you want blinking cursor) 452CF_ARG_DISABLE(blink-cursor, 453 [ --disable-blink-cursor disable support for blinking cursor], 454 [enable_blink_curs=no], 455 [enable_blink_curs=yes]) 456AC_MSG_RESULT($enable_blink_curs) 457test "$enable_blink_curs" = no && AC_DEFINE(OPT_BLINK_CURS,0,[Define to 0 to disable support for blinking cursor]) 458 459AC_MSG_CHECKING(if you want to ignore Linux's broken palette-strings) 460 461case $host_os in #(vi 462linux*) 463 assume_broken_osc=yes ;; #(vi 464*) 465 assume_broken_osc=no ;; 466esac 467 468CF_ARG_OPTION(broken-osc, 469 [ --enable-broken-osc allow broken Linux OSC-strings], 470 [enable_broken_osc=$enableval], 471 [enable_broken_osc=$enableval], 472 [$assume_broken_osc]) 473AC_MSG_RESULT($enable_broken_osc) 474if test "$enable_broken_osc" = yes ; then 475 AC_DEFINE(OPT_BROKEN_OSC,1,[Define to 1 to allow broken Linux OSC-strings]) 476else 477 AC_DEFINE(OPT_BROKEN_OSC,0,[Define to 0 to allow broken Linux OSC-strings]) 478fi 479 480AC_MSG_CHECKING(if you want to allow broken string-terminators) 481CF_ARG_ENABLE(broken-st, 482 [ --disable-broken-st disallow broken string-terminators], 483 [enable_broken_st=no], 484 [enable_broken_st=yes]) 485AC_MSG_RESULT($enable_broken_st) 486test "$enable_broken_st" = no && AC_DEFINE(OPT_BROKEN_ST,0,[Define to 0 to disallow broken string-terminators]) 487 488AC_MSG_CHECKING(if you want printable 128-159) 489CF_ARG_DISABLE(c1-print, 490 [ --disable-c1-print disallow -k8 option for printable 128-159], 491 [enable_c1_print=no], 492 [enable_c1_print=yes]) 493AC_MSG_RESULT($enable_c1_print) 494test "$enable_c1_print" = no && AC_DEFINE(OPT_C1_PRINT,0,[Define to 0 to disallow -k8 option for printable 128-159]) 495 496if test "$enable_ansi_color" = yes ; then 497 498 AC_MSG_CHECKING(if you want bold colors mapped like IBM PC) 499 CF_ARG_DISABLE(bold-color, 500 [ --disable-bold-color disable PC-style mapping of bold colors], 501 [enable_pc_color=no], 502 [enable_pc_color=yes]) 503 AC_MSG_RESULT($enable_pc_color) 504 test "$enable_pc_color" = no && AC_DEFINE(OPT_PC_COLORS,0,[Define to 0 to disable PC-style mapping of bold colors]) 505 506 AC_MSG_CHECKING(if you want separate color-classes) 507 CF_ARG_DISABLE(color-class, 508 [ --disable-color-class disable separate color class resources], 509 [enable_color_class=no], 510 [enable_color_class=yes]) 511 AC_MSG_RESULT($enable_color_class) 512 test "$enable_color_class" = no && AC_DEFINE(OPT_COLOR_CLASS,0,[Define to 0 to disable separate color class resources]) 513 514 AC_MSG_CHECKING(if you want color-mode enabled by default) 515 CF_ARG_DISABLE(color-mode, 516 [ --disable-color-mode disable default colorMode resource], 517 [default_colormode=no], 518 [default_colormode=yes]) 519 AC_MSG_RESULT($default_colormode) 520 test "$default_colormode" = no && AC_DEFINE(DFT_COLORMODE,0,[Define to 0 if you want color-mode enabled by default]) 521 522fi 523 524AC_MSG_CHECKING(if you want support for color highlighting) 525CF_ARG_DISABLE(highlighting, 526 [ --disable-highlighting disable support for color highlighting], 527 [default_highlight=no], 528 [default_highlight=yes]) 529AC_MSG_RESULT($default_highlight) 530test "$default_highlight" = no && AC_DEFINE(OPT_HIGHLIGHT_COLOR,0,[Define to 1 if you want support for color highlighting]) 531 532AC_MSG_CHECKING(if you want support for doublesize characters) 533CF_ARG_DISABLE(doublechars, 534 [ --disable-doublechars disable support for double-size chars], 535 [enable_doublechars=no], 536 [enable_doublechars=yes]) 537AC_MSG_RESULT($enable_doublechars) 538test "$enable_doublechars" = no && AC_DEFINE(OPT_DEC_CHRSET,0,[Define to 0 to disable support for double-size chars]) 539 540AC_MSG_CHECKING(if you want fallback-support for box characters) 541CF_ARG_DISABLE(boxchars, 542 [ --disable-boxchars disable fallback-support for box chars], 543 [enable_boxchars=no], 544 [enable_boxchars=yes]) 545AC_MSG_RESULT($enable_boxchars) 546test "$enable_boxchars" = no && AC_DEFINE(OPT_BOX_CHARS,0,[Define to 0 to disable fallback-support for box chars]) 547 548AC_MSG_CHECKING(if you want to allow spawning new xterms) 549CF_ARG_ENABLE(exec-xterm, 550 [ --enable-exec-xterm enable "spawn-new-terminal" action], 551 [enable_exec_xterm=yes], 552 [enable_exec_xterm=no]) 553AC_MSG_RESULT($enable_exec_xterm) 554if test "$enable_exec_xterm" = yes ; then 555 CF_PROCFS_CWD 556 if test "$cf_cv_procfs_cwd" = no ; then 557 AC_MSG_WARN(no suitable proc filesystem found) 558 else 559 AC_DEFINE_UNQUOTED(PROCFS_ROOT,"$cf_cv_procfs_cwd",[This is defined via the --enable-exec-xterm option]) 560 AC_DEFINE(OPT_EXEC_XTERM,1,[Define to 1 to enable "spawn-new-terminal" action]) 561 fi 562fi 563 564AC_MSG_CHECKING(if you want to use double-buffering) 565CF_ARG_ENABLE(double-buffer, 566 [ --enable-double-buffer enable double-buffering], 567 [enable_double_bfr=yes], 568 [enable_double_bfr=no]) 569AC_MSG_RESULT($enable_double_bfr) 570if test "$enable_double_bfr" = yes ; then 571 case "x$LIBS" in 572 *Xext*) 573 ;; 574 *) 575 CF_X_EXT 576 ;; 577 esac 578 AC_DEFINE(OPT_DOUBLE_BUFFER,1,[Define to 1 to enable double-buffering]) 579fi 580 581AC_MSG_CHECKING(if you want to use FreeType library) 582CF_ARG_DISABLE(freetype, 583 [ --disable-freetype disable freetype library-support], 584 [enable_freetype=no], 585 [enable_freetype=yes]) 586AC_MSG_RESULT($enable_freetype) 587if test "$enable_freetype" = yes ; then 588 CF_X_FONTCONFIG 589else 590 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 591fi 592 593AC_MSG_CHECKING(if you want support for HP-style function keys) 594CF_ARG_ENABLE(hp-fkeys, 595 [ --enable-hp-fkeys enable support for HP-style function keys], 596 [enable_hp_fkeys=yes], 597 [enable_hp_fkeys=no]) 598AC_MSG_RESULT($enable_hp_fkeys) 599if test "$enable_hp_fkeys" = yes ; then 600 AC_DEFINE(OPT_HP_FUNC_KEYS,1,[Define to 1 to enable support for HP-style function keys]) 601fi 602 603AC_MSG_CHECKING(if you want support for SCO-style function keys) 604CF_ARG_ENABLE(sco-fkeys, 605 [ --enable-sco-fkeys enable support for SCO-style function keys], 606 [enable_sco_fkeys=yes], 607 [enable_sco_fkeys=no]) 608AC_MSG_RESULT($enable_sco_fkeys) 609if test "$enable_sco_fkeys" = yes ; then 610 AC_DEFINE(OPT_SCO_FUNC_KEYS,1,[Define to 1 to enable support for SCO-style function keys]) 611fi 612 613AC_MSG_CHECKING(if you want support for Sun-style function keys) 614CF_ARG_DISABLE(sun-fkeys, 615 [ --disable-sun-fkeys disable support for Sun-style function keys], 616 [enable_sun_fkeys=no], 617 [enable_sun_fkeys=yes]) 618AC_MSG_RESULT($enable_sun_fkeys) 619if test "$enable_sun_fkeys" = no ; then 620 AC_DEFINE(OPT_SUN_FUNC_KEYS,0,[Define to 0 to disable support for Sun-style function keys]) 621fi 622 623AC_MSG_CHECKING(if you want saved-lines stored as a FIFO) 624CF_ARG_DISABLE(fifo-lines, 625 [ --disable-fifo-lines disable FIFO-storage for saved-lines], 626 [enable_fifo_lines=no], 627 [enable_fifo_lines=yes]) 628AC_MSG_RESULT($enable_fifo_lines) 629if test "$enable_fifo_lines" = yes ; then 630 AC_DEFINE(OPT_FIFO_LINES,1,[Define to 1 to disable FIFO-storage for saved-lines]) 631fi 632 633AC_MSG_CHECKING(if you want support for internationalization) 634CF_ARG_DISABLE(i18n, 635 [ --disable-i18n disable internationalization], 636 [enable_i18n=no], 637 [enable_i18n=yes]) 638AC_MSG_RESULT($enable_i18n) 639if test "$enable_i18n" = no ; then 640 AC_DEFINE(OPT_I18N_SUPPORT,0,[Define to 0 to disable internationalization]) 641fi 642 643AC_MSG_CHECKING(if you want support for initial-erase setup) 644CF_ARG_DISABLE(initial-erase, 645 [ --disable-initial-erase disable setup for stty erase], 646 [enable_ie=no], 647 [enable_ie=yes]) 648AC_MSG_RESULT($enable_ie) 649if test "$enable_ie" = no ; then 650 AC_DEFINE(OPT_INITIAL_ERASE,0,[Define to 0 to disable setup for stty erase]) 651fi 652 653AC_MSG_CHECKING(if you want support for input-method) 654CF_ARG_DISABLE(input-method, 655 [ --disable-input-method disable input-method], 656 [enable_ximp=no], 657 [enable_ximp=yes]) 658AC_MSG_RESULT($enable_ximp) 659CF_INPUT_METHOD 660test "$cf_cv_input_method" = no && enable_ximp=no 661if test "$enable_ximp" = no ; then 662 AC_DEFINE(OPT_INPUT_METHOD,0,[Define to 0 to disable input-method]) 663fi 664 665AC_MSG_CHECKING(if you want support for load-vt-fonts) 666CF_ARG_ENABLE(load-vt-fonts, 667 [ --enable-load-vt-fonts enable load-vt-fonts() action], 668 [enable_load_vt_fonts=yes], 669 [enable_load_vt_fonts=no]) 670AC_MSG_RESULT($enable_load_vt_fonts) 671if test "$enable_load_vt_fonts" = yes ; then 672 AC_DEFINE(OPT_LOAD_VTFONTS,1,[Define to 1 to enable load-vt-fonts() action]) 673fi 674 675AC_MSG_CHECKING(if you want support for logging) 676CF_ARG_ENABLE(logging, 677 [ --enable-logging enable logging], 678 [enable_logging=yes], 679 [enable_logging=no]) 680AC_MSG_RESULT($enable_logging) 681if test "$enable_logging" = yes ; then 682 AC_DEFINE(ALLOWLOGGING,1,[if you want support for logging]) 683 AC_MSG_CHECKING(if you want to allow logging via a pipe) 684 CF_ARG_ENABLE(logfile-exec, 685 [ --enable-logfile-exec enable exec'd logfile filter], 686 [enable_log_exec=yes], 687 [enable_log_exec=no]) 688 AC_MSG_RESULT($enable_log_exec) 689 if test "$enable_log_exec" = yes ; then 690 AC_DEFINE(ALLOWLOGFILEEXEC,1,[if you want to allow logging via a pipe]) 691 fi 692fi 693 694AC_MSG_CHECKING(if you want support for iconify/maximize translations) 695CF_ARG_DISABLE(maximize, 696 [ --disable-maximize disable actions for iconify/deiconify/maximize/restore], 697 [enable_maximize=no], 698 [enable_maximize=yes]) 699AC_MSG_RESULT($enable_maximize) 700test "$enable_maximize" = no && AC_DEFINE(OPT_MAXIMIZE,0,[Define to 0 to disable actions for iconify/deiconify/maximize/restore]) 701 702AC_MSG_CHECKING(if you want NumLock to override keyboard tables) 703CF_ARG_DISABLE(num-lock, 704 [ --disable-num-lock disable NumLock keypad support], 705 [enable_numlock=no], 706 [enable_numlock=yes]) 707AC_MSG_RESULT($enable_numlock) 708test "$enable_numlock" = no && AC_DEFINE(OPT_NUM_LOCK,0,[Define to 0 to disable NumLock keypad support]) 709 710AC_MSG_CHECKING(if you want support for get/set of base64 selection data) 711 712CF_ARG_DISABLE(paste64, 713 [ --disable-paste64 disable get/set base64 selection data], 714 [enable_paste64=no], 715 [enable_paste64=yes]) 716AC_MSG_RESULT($enable_paste64) 717if test "$enable_paste64" = yes ; then 718 AC_DEFINE(OPT_PASTE64,1,[Define to 1 to disable get/set base64 selection data]) 719else 720 AC_DEFINE(OPT_PASTE64,0,[Define to 0 to disable get/set base64 selection data]) 721fi 722 723AC_MSG_CHECKING(if you want support for pty-handshaking) 724 725CF_ARG_DISABLE(pty-handshake, 726 [ --disable-pty-handshake disable pty-handshake support], 727 [enable_pty_handshake=no], 728 [enable_pty_handshake=yes]) 729AC_MSG_RESULT($enable_pty_handshake) 730if test "$enable_pty_handshake" = yes ; then 731 AC_DEFINE(OPT_PTY_HANDSHAKE,1,[Define to 1 to disable pty-handshake support]) 732else 733 AC_DEFINE(OPT_PTY_HANDSHAKE,0,[Define to 0 to disable pty-handshake support]) 734fi 735 736AC_MSG_CHECKING(if you want support for mouse in readline applications) 737CF_ARG_ENABLE(readline-mouse, 738 [ --enable-readline-mouse enable support for mouse in readline applications], 739 [enable_readline_mouse=yes], 740 [enable_readline_mouse=no]) 741AC_MSG_RESULT($enable_readline_mouse) 742if test "$enable_readline_mouse" = yes ; then 743 AC_DEFINE(OPT_READLINE,1,[Define to 1 to enable support for mouse in readline applications]) 744fi 745 746AC_MSG_CHECKING(if you want support for regular-expression selections) 747CF_ARG_DISABLE(regex, 748 [ --disable-regex disable regular-expression selections], 749 [enable_regex=no], 750 [enable_regex=yes]) 751AC_MSG_RESULT($enable_regex) 752if test "$enable_regex" = yes ; then 753 CF_WITH_PCRE 754 if test "$with_pcre" = no ; then 755 CF_REGEX 756 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then 757 AC_MSG_ERROR(Only POSIX or PCRE regular expressions are supported) 758 fi 759 fi 760 AC_DEFINE(OPT_SELECT_REGEX,1,[Define to 1 to enable regular-expression selections]) 761fi 762 763AC_MSG_CHECKING(if you want support for right-scrollbar) 764CF_ARG_DISABLE(rightbar, 765 [ --disable-rightbar disable right-scrollbar support], 766 [enable_rightbar=no], 767 [enable_rightbar=yes]) 768AC_MSG_RESULT($enable_rightbar) 769if test "$enable_rightbar" = yes ; then 770 AC_DEFINE(SCROLLBAR_RIGHT,1,[Define to 1 to enable right-scrollbar support]) 771fi 772 773AC_MSG_CHECKING(if you want check for redundant name-change) 774CF_ARG_DISABLE(samename, 775 [ --disable-samename disable check for redundant name-change], 776 [enable_samename=no], 777 [enable_samename=yes]) 778AC_MSG_RESULT($enable_samename) 779test "$enable_samename" = no && AC_DEFINE(OPT_SAME_NAME,0,[Define to 0 to disable check for redundant name-change]) 780 781AC_MSG_CHECKING(if you want support for selection-actions) 782CF_ARG_DISABLE(selection-ops, 783 [ --disable-selection-ops disable selection-action operations], 784 [enable_selection_ops=no], 785 [enable_selection_ops=yes]) 786AC_MSG_RESULT($enable_selection_ops) 787test "$enable_selection_ops" = no && AC_DEFINE(OPT_SELECTION_OPS,0,[Define to 0 disable selection-action operations]) 788 789AC_MSG_CHECKING(if you want support for session management) 790CF_ARG_DISABLE(session-mgt, 791 [ --disable-session-mgt disable support for session management], 792 [enable_session_mgt=no], 793 [enable_session_mgt=yes]) 794AC_MSG_RESULT($enable_session_mgt) 795test "$enable_session_mgt" = no && AC_DEFINE(OPT_SESSION_MGT,0,[Define to 0 to disable support for session management]) 796 797AC_MSG_CHECKING(if you want to use termcap function-keys) 798CF_ARG_DISABLE(tcap-fkeys, 799 [ --disable-tcap-fkeys disable termcap function-keys support], 800 [enable_tcap_fkeys=no], 801 [enable_tcap_fkeys=yes]) 802AC_MSG_RESULT($enable_tcap_fkeys) 803test "$enable_tcap_fkeys" = yes && AC_DEFINE(OPT_TCAP_FKEYS,1,[Define to 1 to disable termcap function-keys support]) 804 805AC_MSG_CHECKING(if you want to use termcap-query/report) 806CF_ARG_DISABLE(tcap-query, 807 [ --disable-tcap-query disable compiled-in termcap-query support], 808 [enable_tcap_query=no], 809 [enable_tcap_query=yes]) 810AC_MSG_RESULT($enable_tcap_query) 811test "$enable_tcap_query" = yes && AC_DEFINE(OPT_TCAP_QUERY,1,[Define to 1 to disable compiled-in termcap-query support]) 812 813AC_MSG_CHECKING(if you want support for tek4014) 814CF_ARG_DISABLE(tek4014, 815 [ --disable-tek4014 disable tek4014 emulation], 816 [enable_tek4014=no], 817 [enable_tek4014=yes]) 818AC_MSG_RESULT($enable_tek4014) 819if test "$enable_tek4014" = no ; then 820 AC_DEFINE(OPT_TEK4014,0,[Define to 0 to disable tek4014 emulation]) 821else 822 EXTRAHDRS="$EXTRAHDRS Tekparse.h" 823 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 824 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 825fi 826 827AC_MSG_CHECKING(if you want pulldown menus with a toolbar) 828CF_ARG_ENABLE(toolbar, 829 [ --enable-toolbar compile-in toolbar for pulldown menus], 830 [enable_toolbar=yes], 831 [enable_toolbar=no]) 832AC_MSG_RESULT($enable_toolbar) 833if test "$enable_toolbar" = yes ; then 834 AC_DEFINE(OPT_TOOLBAR,1,[Define to 1 to compile-in toolbar for pulldown menus]) 835fi 836 837AC_MSG_CHECKING(if you want VT52 emulation) 838CF_ARG_DISABLE(vt52, 839 [ --disable-vt52 disable VT52 emulation], 840 [enable_vt52=no], 841 [enable_vt52=yes]) 842AC_MSG_RESULT($enable_vt52) 843test "$enable_vt52" = no && AC_DEFINE(OPT_VT52_MODE,0,[Define to 0 to disable VT52 emulation]) 844 845AC_MSG_CHECKING(if you want wide-attribute support) 846CF_ARG_DISABLE(wide-attrs, 847 [ --disable-wide-attrs disable wide-attribute support], 848 [enable_wattr=no], 849 [enable_wattr=yes]) 850AC_MSG_RESULT($enable_wattr) 851 852AC_MSG_CHECKING(if you want wide-character support) 853CF_ARG_DISABLE(wide-chars, 854 [ --disable-wide-chars disable wide-character support], 855 [enable_wchar=no], 856 [enable_wchar=yes]) 857AC_MSG_RESULT($enable_wchar) 858test "$enable_wattr" = no && AC_DEFINE(OPT_WIDE_ATTRS,0,[Define to 0 to disable rarely-used SGR features]) 859 860AC_MSG_CHECKING(if you want only 16-bit character support) 861CF_ARG_ENABLE(16bit-chars, 862 [ --enable-16bit-chars enable 16-bit character support], 863 [enable_16bit_chars=yes], 864 [enable_16bit_chars=no]) 865AC_MSG_RESULT($enable_16bit_chars) 866 867if test "$enable_16bit_chars" = yes ; then 868 AC_DEFINE(OPT_WIDER_ICHAR,0,[Define to 0 to enable 16-bit character support]) 869 enable_wchar=yes 870fi 871 872if test "$enable_wchar" = yes ; then 873 874AC_MSG_CHECKING(if you want to use mini-luit/Latin9 built-in support) 875CF_ARG_ENABLE(mini-luit, 876 [ --enable-mini-luit enable mini-luit (built-in Latin9 support)], 877 [enable_mini_luit=yes], 878 [enable_mini_luit=no]) 879AC_MSG_RESULT($enable_mini_luit) 880if test "$enable_mini_luit" = yes ; then 881 AC_DEFINE(OPT_MINI_LUIT,1,[Define to 1 to enable mini-luit (built-in Latin9 support)]) 882fi 883 884AC_MSG_CHECKING(if you want to use luit) 885CF_ARG_DISABLE(luit, 886 [ --disable-luit enable luit filter (Unicode translation)], 887 [enable_luit=no], 888 [enable_luit=yes]) 889AC_MSG_RESULT($enable_luit) 890if test "$enable_luit" = yes ; then 891 AC_DEFINE(OPT_LUIT_PROG,1,[Define to 1 to enable luit filter (Unicode translation)]) 892 CF_PATH_PROG(LUIT,xterm-filter,bluit luit) 893fi 894 895 AC_DEFINE(OPT_WIDE_CHARS,1,[Define to 1 to enable wide-character support]) 896 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 897 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 898 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 899fi 900 901AC_MSG_CHECKING(if you want dynamic-abbreviation support) 902CF_ARG_ENABLE(dabbrev, 903 [ --enable-dabbrev enable dynamic-abbreviation support], 904 [enable_dabbrev=yes], 905 [enable_dabbrev=no]) 906AC_MSG_RESULT($enable_dabbrev) 907if test "$enable_dabbrev" = yes ; then 908 AC_DEFINE(OPT_DABBREV,1,[Define to 1 to enable dynamic-abbreviation support]) 909fi 910 911AC_MSG_CHECKING(if you want DECterm Locator support) 912CF_ARG_ENABLE(dec-locator, 913 [ --enable-dec-locator enable DECterm Locator support], 914 [enable_dec_locator=yes], 915 [enable_dec_locator=no]) 916AC_MSG_RESULT($enable_dec_locator) 917if test "$enable_dec_locator" = yes ; then 918 AC_DEFINE(OPT_DEC_LOCATOR,1,[Define to 1 to enable DECterm Locator support]) 919fi 920 921AC_MSG_CHECKING(if you want ReGIS graphics support) 922CF_ARG_ENABLE(regis-graphics, 923 [ --enable-regis-graphics enable ReGIS graphics support], 924 [enable_regis_graphics=yes], 925 [enable_regis_graphics=no]) 926AC_MSG_RESULT($enable_regis_graphics) 927if test "$enable_regis_graphics" = yes ; then 928 AC_DEFINE(OPT_REGIS_GRAPHICS,1,[Define to 1 to enable ReGIS graphics support]) 929 EXTRAHDRS="$EXTRAHDRS graphics_regis.h" 930 EXTRASRCS="$EXTRASRCS graphics_regis.c" 931 EXTRAOBJS="$EXTRAOBJS graphics_regis.o" 932 CF_MATH_LIB 933fi 934 935AC_MSG_CHECKING(if you want sixel graphics support) 936CF_ARG_ENABLE(sixel-graphics, 937 [ --enable-sixel-graphics enable sixel graphics support], 938 [enable_sixel_graphics=yes], 939 [enable_sixel_graphics=no]) 940AC_MSG_RESULT($enable_sixel_graphics) 941if test "$enable_sixel_graphics" = yes ; then 942 AC_DEFINE(OPT_SIXEL_GRAPHICS,1,[Define to 1 to enable sixel graphics support]) 943 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h" 944 EXTRASRCS="$EXTRASRCS graphics_sixel.c" 945 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o" 946fi 947 948if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then 949 AC_DEFINE(OPT_GRAPHICS,1,[Defined to 1 to if any graphics mode is enabled]) 950 EXTRAHDRS="$EXTRAHDRS graphics.h" 951 EXTRASRCS="$EXTRASRCS graphics.c" 952 EXTRAOBJS="$EXTRAOBJS graphics.o" 953fi 954 955AC_MSG_CHECKING(if you want VT420 rectangle support) 956CF_ARG_DISABLE(rectangles, 957 [ --disable-rectangles disable VT420 rectangle support], 958 [enable_rectangles=no], 959 [enable_rectangles=yes]) 960AC_MSG_RESULT($enable_rectangles) 961if test "$enable_rectangles" = yes ; then 962 AC_DEFINE(OPT_DEC_RECTOPS,1,[Define to 1 to disable VT420 rectangle support]) 963fi 964 965AC_MSG_CHECKING(if you want -ziconbeep option) 966CF_ARG_DISABLE(ziconbeep, 967 [ --disable-ziconbeep disable -ziconbeep option], 968 [enable_ziconbeep=no], 969 [enable_ziconbeep=yes]) 970AC_MSG_RESULT($enable_ziconbeep) 971test "$enable_ziconbeep" = no && AC_DEFINE(OPT_ZICONBEEP,0,[Define to 0 to disable -ziconbeep option]) 972 973############################################################################### 974CF_HELP_MESSAGE(Testing/development Options:) 975 976AC_MSG_CHECKING(if you want debugging traces) 977CF_ARG_ENABLE(trace, 978 [ --enable-trace test: set to enable debugging traces], 979 [enable_trace=yes], 980 [enable_trace=no]) 981AC_MSG_RESULT($enable_trace) 982if test "$enable_trace" = yes ; then 983 AC_DEFINE(OPT_TRACE,1,[Define to 1 to enable debugging traces]) 984 EXTRASRCS="$EXTRASRCS trace.c" 985 EXTRAOBJS="$EXTRAOBJS trace.o" 986fi 987 988CF_DISABLE_LEAKS 989CF_DISABLE_ECHO 990 991AC_MSG_CHECKING(if you want magic cookie emulation) 992CF_ARG_ENABLE(xmc-glitch, 993 [ --enable-xmc-glitch test: enable xmc magic-cookie emulation], 994 [enable_xmc=yes], 995 [enable_xmc=no]) 996AC_MSG_RESULT($enable_xmc) 997if test "$enable_xmc" = yes ; then 998 AC_DEFINE(OPT_XMC_GLITCH,1,[Define to 1 to enable xmc magic-cookie emulation]) 999 EXTRASRCS="$EXTRASRCS testxmc.c" 1000 EXTRAOBJS="$EXTRAOBJS testxmc.o" 1001fi 1002 1003dnl FIXME - extra test needed to make tcap-fkeys work on HPUX 1004AC_CHECK_FUNCS(tigetstr) 1005 1006dnl only check for ncurses' use_extended_names if really not using termcap 1007if test -n "$cf_cv_lib_part_tgetent"; then 1008 AC_CHECK_FUNCS(use_extended_names) 1009fi 1010 1011if test -n "$GCC" ; then 1012AC_MSG_CHECKING(if you want to turn on gcc warnings) 1013CF_ARG_ENABLE(warnings, 1014 [ --enable-warnings test: turn on GCC compiler warnings], 1015 [with_warnings=yes], 1016 [with_warnings=no]) 1017AC_MSG_RESULT($with_warnings) 1018if test "$with_warnings" = yes 1019then 1020 CF_GCC_ATTRIBUTES 1021 CF_GCC_WARNINGS(Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum) 1022fi 1023fi 1024 1025AC_SUBST(EXTRA_CFLAGS) 1026AC_SUBST(CHARPROC_DEPS) 1027AC_SUBST(EXTRAHDRS) 1028AC_SUBST(EXTRASRCS) 1029AC_SUBST(EXTRAOBJS) 1030 1031test "$disable_setuid" = yes && AC_DEFINE(DISABLE_SETUID,1,[Define to 1 if you want to disable setuid]) 1032test "$disable_setgid" = yes && AC_DEFINE(DISABLE_SETGID,1,[Define to 1 if you want to disable setgid]) 1033 1034if test $disable_setuid = yes ; then 1035 MAY_SETUID="#" 1036 NOT_SETUID= 1037elif test $disable_setgid = yes ; then 1038 MAY_SETUID="#" 1039 NOT_SETUID= 1040else 1041 MAY_SETUID= 1042 NOT_SETUID="#" 1043fi 1044 1045AC_SUBST(MAY_SETUID) 1046AC_SUBST(NOT_SETUID) 1047 1048### remove from CPPFLAGS the optional features we define in xtermcfg.h 1049### or other conflicting symbols that may be defined via imake: 1050for cf_def in \ 1051 __STDC__ \ 1052 ALLOWLOGGING \ 1053 ALLOWLOGFILEEXEC \ 1054 OPT_LUIT_PROG \ 1055 OPT_WIDE_CHARS \ 1056 SCROLLBAR_RIGHT \ 1057 USE_TTY_GROUP \ 1058 USE_UTEMPTER \ 1059 XRENDERFONT 1060do 1061 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 1062done 1063 1064CF_MAKE_TAGS 1065CF_DISABLE_RPATH_HACK 1066 1067# Force plink.sh to not trim pcre's libraries, which have the same symbol 1068# names as the system regexp. 1069if test "$with_pcre" != no 1070then 1071 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'` 1072fi 1073 1074### output xtermcfg.h, etc 1075AC_CONFIG_FILES([Makefile df-install minstall:minstall.in]) 1076AC_OUTPUT 1077