comparison configure.in @ 708:512e4a478e9d

[xemacs-hg @ 2001-12-20 06:08:09 by andyp] sync with 21-4-6-windows
author andyp
date Thu, 20 Dec 2001 06:10:13 +0000
parents 91da4ecd9da0
children 128e95ac472f
comparison
equal deleted inserted replaced
707:a307f9a2021d 708:512e4a478e9d
54 AC_PREREQ(2.13)dnl 54 AC_PREREQ(2.13)dnl
55 dnl Redefine some standard autoconf macros 55 dnl Redefine some standard autoconf macros
56 dnl here is how XEmacs is different: 56 dnl here is how XEmacs is different:
57 dnl - no cache file 57 dnl - no cache file
58 dnl - non-standard options 58 dnl - non-standard options
59 dnl - suport for extra-verbosity 59 dnl - support for extra-verbosity
60 dnl - ordinary libs are handled separately from X libs (might be a mistake) 60 dnl - ordinary libs are handled separately from X libs (might be a mistake)
61 dnl - various random kludges (e.g. -with-dnet=no) 61 dnl - various random kludges (e.g. -with-dnet=no)
62 62
63 dnl PRINT_VAR(var var ...) prints values of shell variables 63 dnl PRINT_VAR(var var ...) prints values of shell variables
64 define([PRINT_VAR],[for var in patsubst([$1],[[ 64 define([PRINT_VAR],[for var in patsubst([$1],[[
123 } 123 }
124 ])dnl AC_DEFINE_UNQUOTED 124 ])dnl AC_DEFINE_UNQUOTED
125 125
126 dnl redefine AC_CHECK_LIB in accordance with our own value of ac_link 126 dnl redefine AC_CHECK_LIB in accordance with our own value of ac_link
127 dnl Add in extra kludgy check to support with_dnet=no 127 dnl Add in extra kludgy check to support with_dnet=no
128 dnl Add in extra LDFLAGS arg, which PRECEDE libs 128 dnl Add in extra LDFLAGS arg, which PRECEDES libs
129 dnl Support --with-dnet=no 129 dnl Support --with-dnet=no
130 130
131 dnl AC_CHECK_LIB(LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND 131 dnl AC_CHECK_LIB(LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND
132 dnl [, OTHER-LIBRARIES] [, LDFLAGS]]]]) 132 dnl [, OTHER-LIBRARIES] [, LDFLAGS]]]])
133 define([AC_CHECK_LIB], 133 define([AC_CHECK_LIB],
372 use_union_type="no" 372 use_union_type="no"
373 with_dnet="" 373 with_dnet=""
374 pdump="no" 374 pdump="no"
375 dnl dragndrop is still experimental. When it is stable, comment out the following line: 375 dnl dragndrop is still experimental. When it is stable, comment out the following line:
376 with_dragndrop="no" 376 with_dragndrop="no"
377 dnl Too annoying, even if mandated by IPv6 (and I'm not even sure of that)
378 with_ipv6_cname="no"
377 379
378 dnl ------------------ 380 dnl ------------------
379 dnl Options Processing 381 dnl Options Processing
380 dnl ------------------ 382 dnl ------------------
381 383
2161 2163
2162 dnl #### Unfortunately, there are horrible libc4 and libc5 libraries 2164 dnl #### Unfortunately, there are horrible libc4 and libc5 libraries
2163 dnl listed in /etc/ld.so.conf on some systems, and including them on 2165 dnl listed in /etc/ld.so.conf on some systems, and including them on
2164 dnl the link path leads to linking in utterly broken libc's. 2166 dnl the link path leads to linking in utterly broken libc's.
2165 dnl There are many clever ways of approaching this problem, 2167 dnl There are many clever ways of approaching this problem,
2166 dnl but finding out that actually works... 2168 dnl but finding one that actually works...
2167 2169
2168 dnl if test -z "$LD_RUN_PATH" -a -r "/etc/ld.so.conf"; then 2170 dnl if test -z "$LD_RUN_PATH" -a -r "/etc/ld.so.conf"; then
2169 dnl for dir in `cat /etc/ld.so.conf`; do 2171 dnl for dir in `cat /etc/ld.so.conf`; do
2170 dnl test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system) 2172 dnl test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system)
2171 dnl done 2173 dnl done
2502 AC_CHECK_LIB(pthreads, cma_open) 2504 AC_CHECK_LIB(pthreads, cma_open)
2503 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 2505 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
2504 c_switch_site="$c_switch_site -threads" ;; 2506 c_switch_site="$c_switch_site -threads" ;;
2505 esac 2507 esac
2506 2508
2509 dnl ----------------------------------------------------------------
2510 dnl Miscellaneous flags
2511 dnl ----------------------------------------------------------------
2512
2507 AC_MSG_CHECKING(whether the -xildoff compiler flag is required) 2513 AC_MSG_CHECKING(whether the -xildoff compiler flag is required)
2508 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 2514 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
2509 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 2515 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
2510 then AC_MSG_RESULT(no); 2516 then AC_MSG_RESULT(no);
2511 else AC_MSG_RESULT(yes); XE_APPEND(-xildoff, ld_switch_site) 2517 else AC_MSG_RESULT(yes); XE_APPEND(-xildoff, ld_switch_site)
2521 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) 2527 *-z\ ignore\|record* ) AC_MSG_RESULT(yes)
2522 XE_PREPEND(-z ignore, ld_switch_site) ;; 2528 XE_PREPEND(-z ignore, ld_switch_site) ;;
2523 *) AC_MSG_RESULT(no) ;; 2529 *) AC_MSG_RESULT(no) ;;
2524 esac 2530 esac
2525 fi 2531 fi
2532 fi
2533
2534 dnl GNU ld now defaults to combreloc, which screws up unexec, but not pdump.
2535 dnl Note that it's OK if the GNU style long option causes non-GNU ld to barf
2536 dnl a usage message, that's often good enough. Please report it, though.
2537 dnl #### Should make this Solaris-friendly.
2538 dnl Link with -z nocombreloc for now.
2539 if test "$pdump" != "yes"; then
2540 AC_MSG_CHECKING(for \"-z nocombreloc\" linker flag)
2541 case "`ld --help 2>&1`" in
2542 *-z\ nocombreloc* ) AC_MSG_RESULT(yes)
2543 XE_PREPEND(-z nocombreloc, ld_switch_site) ;;
2544 *) AC_MSG_RESULT(no) ;;
2545 esac
2526 fi 2546 fi
2527 2547
2528 dnl ---------------------- 2548 dnl ----------------------
2529 dnl Choose a window system 2549 dnl Choose a window system
2530 dnl ---------------------- 2550 dnl ----------------------
4841 fi 4861 fi
4842 4862
4843 echo " Compiler: $CC $CFLAGS" 4863 echo " Compiler: $CC $CFLAGS"
4844 echo " Relocating allocator for buffers: $rel_alloc" 4864 echo " Relocating allocator for buffers: $rel_alloc"
4845 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}" 4865 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
4866 case "$ld_switch_site" in
4867 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
4868 - Consider configuring with --pdump." ;;
4869 esac
4846 4870
4847 echo " 4871 echo "
4848 Window System:" 4872 Window System:"
4849 if test "$with_msw" = "yes"; then 4873 if test "$with_msw" = "yes"; then
4850 echo " Compiling in support for the Microsoft window system." 4874 echo " Compiling in support for the Microsoft window system."
4986 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access." 5010 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
4987 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method." 5011 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
4988 5012
4989 echo " 5013 echo "
4990 Other Features:" 5014 Other Features:"
5015 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
4991 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." 5016 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
4992 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." 5017 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
4993 test "$with_socks" = yes && echo " Compiling in support for SOCKS." 5018 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
4994 test "$with_dnet" = yes && echo " Compiling in support for DNET." 5019 test "$with_dnet" = yes && echo " Compiling in support for DNET."
4995 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." 5020 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."