comparison configure.in @ 259:11cf20601dec r20-5b28

Import from CVS: tag r20-5b28
author cvs
date Mon, 13 Aug 2007 10:23:02 +0200
parents 65c19d2020f7
children 405dd6d1825b
comparison
equal deleted inserted replaced
258:58424f6abf56 259:11cf20601dec
342 archlibdir='${libdir}/xemacs-${version}/${configuration}' 342 archlibdir='${libdir}/xemacs-${version}/${configuration}'
343 archlibdir_user_defined='no' 343 archlibdir_user_defined='no'
344 with_menubars='' 344 with_menubars=''
345 with_scrollbars='' 345 with_scrollbars=''
346 with_dialogs='' 346 with_dialogs=''
347 with_mule_coding='' 347 with_file_coding=''
348 const_is_losing='yes' 348 const_is_losing='yes'
349 puresize='' 349 puresize=''
350 cflags='UNSPECIFIED' 350 cflags='UNSPECIFIED'
351 dynamic='' 351 dynamic=''
352 with_x11='' 352 with_x11=''
470 with_toolbars | \ 470 with_toolbars | \
471 with_tty | \ 471 with_tty | \
472 with_xfs | \ 472 with_xfs | \
473 with_i18n3 | \ 473 with_i18n3 | \
474 with_mule | \ 474 with_mule | \
475 with_mule_coding | \ 475 with_file_coding | \
476 with_canna | \ 476 with_canna | \
477 with_wnn | \ 477 with_wnn | \
478 with_wnn6 | \ 478 with_wnn6 | \
479 with_workshop | \ 479 with_workshop | \
480 with_sparcworks | \ 480 with_sparcworks | \
481 with_tooltalk | \ 481 with_tooltalk | \
482 with_ldap | \
482 with_pop | \ 483 with_pop | \
483 with_kerberos | \ 484 with_kerberos | \
484 with_hesiod | \ 485 with_hesiod | \
485 with_dnet | \ 486 with_dnet | \
486 external_widget | \ 487 external_widget | \
1920 1921
1921 dnl Do the opsystem or machine files prohibit the use of the GNU malloc? 1922 dnl Do the opsystem or machine files prohibit the use of the GNU malloc?
1922 dnl Assume not, until told otherwise. 1923 dnl Assume not, until told otherwise.
1923 GNU_MALLOC=yes 1924 GNU_MALLOC=yes
1924 doug_lea_malloc=yes 1925 doug_lea_malloc=yes
1926 after_morecore_hook_exists=yes
1925 AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) 1927 AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no)
1926 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) 1928 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no)
1927 AC_MSG_CHECKING(whether __after_morecore_hook exists) 1929 AC_MSG_CHECKING(whether __after_morecore_hook exists)
1928 AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0], 1930 AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0],
1929 [AC_MSG_RESULT(yes)], 1931 [AC_MSG_RESULT(yes)],
1930 [AC_MSG_RESULT(no) 1932 [AC_MSG_RESULT(no)
1931 doug_lea_malloc=no]) 1933 after_morecore_hook_exists=no])
1932 if test "$system_malloc" = "yes" ; then 1934 if test "$system_malloc" = "yes" ; then
1933 GNU_MALLOC=no 1935 GNU_MALLOC=no
1934 GNU_MALLOC_reason=" 1936 GNU_MALLOC_reason="
1935 (The GNU allocators don't work with this system configuration)." 1937 (The GNU allocators don't work with this system configuration)."
1936 elif test "$with_system_malloc" = "yes" ; then 1938 elif test "$with_system_malloc" = "yes" ; then
1944 fi 1946 fi
1945 1947
1946 if test "$doug_lea_malloc" = "yes" ; then 1948 if test "$doug_lea_malloc" = "yes" ; then
1947 if test "$GNU_MALLOC" = yes ; then 1949 if test "$GNU_MALLOC" = yes ; then
1948 GNU_MALLOC_reason=" 1950 GNU_MALLOC_reason="
1949 (Using Doug Lea's new malloc from the GNU C Library.)" 1951 (Using Doug Lea's new malloc from the GNU C Library.)"
1950 fi 1952 fi
1951 AC_DEFINE(DOUG_LEA_MALLOC) 1953 AC_DEFINE(DOUG_LEA_MALLOC)
1952 AC_DEFINE(USE_MINIMAL_TAGBITS) 1954 AC_DEFINE(USE_MINIMAL_TAGBITS)
1955 if test "$after_morecore_hook_exists" = "no" ; then
1956 GNU_MALLOC_reason="
1957 (Using Doug Lea's new malloc from the Linux C Library.)"
1958 AC_DEFINE(_NO_MALLOC_WARNING_)
1959 fi
1953 with_minimal_tagbits=yes 1960 with_minimal_tagbits=yes
1954 fi 1961 fi
1955 1962
1956 dnl Some other nice autoconf tests. If you add a test here which 1963 dnl Some other nice autoconf tests. If you add a test here which
1957 dnl should make an entry in src/config.h, do not forget to add an 1964 dnl should make an entry in src/config.h, do not forget to add an
2150 test "$with_menubars" != "no" && with_menubars=msw && XE_ADD_OBJS(menubar-msw.o) 2157 test "$with_menubars" != "no" && with_menubars=msw && XE_ADD_OBJS(menubar-msw.o)
2151 with_dialogs=msw 2158 with_dialogs=msw
2152 with_toolbars=no 2159 with_toolbars=no
2153 with_tty=no 2160 with_tty=no
2154 const_is_losing=no 2161 const_is_losing=no
2155 #with_mule_coding=yes 2162 with_file_coding=yes
2156 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o gif_err.o gifalloc.o dgif_lib.o) 2163 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o gif_err.o gifalloc.o dgif_lib.o)
2157 fi 2164 fi
2158 fi 2165 fi
2159 2166
2160 if test "$with_x11" = "yes"; then 2167 if test "$with_x11" = "yes"; then
2392 if test "$with_cde" = "yes" ; then 2399 if test "$with_cde" = "yes" ; then
2393 AC_DEFINE(HAVE_CDE) 2400 AC_DEFINE(HAVE_CDE)
2394 XE_PREPEND(-lDtSvc, libs_x) 2401 XE_PREPEND(-lDtSvc, libs_x)
2395 with_tooltalk=yes # CDE requires Tooltalk 2402 with_tooltalk=yes # CDE requires Tooltalk
2396 need_motif=yes # CDE requires Motif 2403 need_motif=yes # CDE requires Motif
2404 fi
2405
2406 dnl Autodetect LDAP
2407 AC_CHECKING(for LDAP)
2408 test -z "$with_ldap" && { AC_CHECK_HEADER(ldap.h, ,with_ldap=no) }
2409 test -z "$with_ldap" && { AC_CHECK_HEADER(lber.h, ,with_ldap=no) }
2410 test -z "$with_ldap" -o "$with_ldap" = "yes" && { AC_CHECK_LIB(ldap, ldap_open, with_umich_ldap=yes, with_umich_ldap=no, -llber) }
2411 test \( -z "$with_ldap" -o "$with_ldap" = "yes" \) -a "$with_umich_ldap" = "no" && { AC_CHECK_LIB(ldap10, ldap_set_option, with_ns_ldap=yes, with_ns_ldap=no) }
2412 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
2413 if test "$with_ldap" = "yes" -a "$with_umich_ldap" = "yes" ; then
2414 AC_DEFINE(HAVE_LDAP)
2415 AC_DEFINE(HAVE_UMICH_LDAP)
2416 XE_PREPEND(-llber, LIBS)
2417 XE_PREPEND(-lldap, LIBS)
2418 XE_ADD_OBJS(eldap.o)
2419 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
2420 AC_DEFINE(HAVE_LDAP)
2421 AC_DEFINE(HAVE_NS_LDAP)
2422 XE_PREPEND(-lldap10, LIBS)
2423 XE_ADD_OBJS(eldap.o)
2424 dnl else
2425 dnl AC_DEFINE(HAVE_LDAP)
2426 dnl XE_PREPEND(-lldap, LIBS)
2427 dnl XE_ADD_OBJS(eldap.o)
2397 fi 2428 fi
2398 2429
2399 dnl ---------------------- 2430 dnl ----------------------
2400 dnl X11 Graphics libraries 2431 dnl X11 Graphics libraries
2401 dnl ---------------------- 2432 dnl ----------------------
2590 dnl ---------------------- 2621 dnl ----------------------
2591 dnl Mule-dependent options 2622 dnl Mule-dependent options
2592 dnl ---------------------- 2623 dnl ----------------------
2593 2624
2594 test -z "$with_mule" && with_mule=no 2625 test -z "$with_mule" && with_mule=no
2595 test -z "$with_mule_coding" && with_mule_coding=no 2626 test -z "$with_file_coding" && with_file_coding=no
2596 2627
2597 dnl if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then 2628 dnl if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then
2598 dnl echo "Attempt to Build with Mule without Mule/Lisp" 2629 dnl echo "Attempt to Build with Mule without Mule/Lisp"
2599 dnl echo "Please install the XEmacs/Mule tarball or" 2630 dnl echo "Please install the XEmacs/Mule tarball or"
2600 dnl echo "rerun configure with --with-mule=no" 2631 dnl echo "rerun configure with --with-mule=no"
2601 dnl exit 1 2632 dnl exit 1
2602 dnl fi 2633 dnl fi
2603 2634
2604 if test "$with_mule_coding" = "yes" && test "$with_mule" = "no"; then 2635 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
2605 AC_DEFINE(MULE_CODING) 2636 AC_DEFINE(FILE_CODING)
2606 XE_ADD_OBJS(mule-coding.o) 2637 XE_ADD_OBJS(file-coding.o)
2607 fi 2638 fi
2608 2639
2609 if test "$with_mule" = "yes" ; then 2640 if test "$with_mule" = "yes" ; then
2610 AC_CHECKING(for Mule-related features) 2641 AC_CHECKING(for Mule-related features)
2611 AC_DEFINE(MULE) 2642 AC_DEFINE(MULE)
2612 AC_DEFINE(MULE_CODING) 2643 AC_DEFINE(FILE_CODING)
2613 XE_ADD_OBJS(mule.o mule-ccl.o mule-charset.o mule-coding.o) 2644 XE_ADD_OBJS(mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o)
2614 2645
2615 dnl Use -lintl to get internationalized strerror for Mule 2646 dnl Use -lintl to get internationalized strerror for Mule
2616 AC_CHECK_HEADERS(libintl.h) 2647 AC_CHECK_HEADERS(libintl.h)
2617 AC_CHECK_LIB(intl, strerror) 2648 AC_CHECK_LIB(intl, strerror)
2618 2649
2896 #include <sys/socket.h> 2927 #include <sys/socket.h>
2897 #include <sys/un.h> 2928 #include <sys/un.h>
2898 ], 2929 ],
2899 [static struct sockaddr_un x; x.sun_len = 1;], 2930 [static struct sockaddr_un x; x.sun_len = 1;],
2900 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)], 2931 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)],
2932 [AC_MSG_RESULT(no)])
2933 AC_MSG_CHECKING("for ip_mreq struct in netinet/in.h")
2934 AC_TRY_LINK([
2935 #include <netinet/in.h>
2936 ],
2937 [static struct ip_mreq x;],
2938 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MULTICAST)],
2901 [AC_MSG_RESULT(no)])])])]) 2939 [AC_MSG_RESULT(no)])])])])
2902 2940
2903 dnl Check for SYS V IPC. (Inferior to sockets.) 2941 dnl Check for SYS V IPC. (Inferior to sockets.)
2904 AC_CHECK_FUNC(msgget, 2942 AC_CHECK_FUNC(msgget,
2905 [AC_CHECK_HEADER(sys/ipc.h, 2943 [AC_CHECK_HEADER(sys/ipc.h,
3436 esac 3474 esac
3437 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously" 3475 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously"
3438 3476
3439 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." 3477 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
3440 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." 3478 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
3441 test "$with_database_gnudbm" = yes && echo " Compiling in support for DBM." 3479 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
3480
3481 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)."
3482 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
3483 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
3442 3484
3443 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." 3485 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
3444 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." 3486 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
3445 3487
3446 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." 3488 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
3447 test "$with_mule_coding" = yes && echo " Compiling in Mule coding support." 3489 test "$with_file_coding" = yes && echo " Compiling in File coding support."
3448 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." 3490 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
3449 test "$with_xim" = motif && echo " Using Motif to provide XIM support." 3491 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
3450 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." 3492 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
3451 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar." 3493 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
3452 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." 3494 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
3458 3500
3459 test "$with_cde" = yes && echo " Compiling in support for CDE." 3501 test "$with_cde" = yes && echo " Compiling in support for CDE."
3460 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." 3502 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
3461 test "$with_offix" = yes && echo " Compiling in support for OffiX." 3503 test "$with_offix" = yes && echo " Compiling in support for OffiX."
3462 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." 3504 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
3463 test "$with_session" = yes && echo " Compiling in support for proper session-management." 3505 test "$with_session" != no && echo " Compiling in support for proper session-management."
3464 case "$with_menubars" in 3506 case "$with_menubars" in
3465 lucid ) echo " Using Lucid menubars." ;; 3507 lucid ) echo " Using Lucid menubars." ;;
3466 motif ) echo " Using Motif menubars." 3508 motif ) echo " Using Motif menubars."
3467 echo " *WARNING* The Motif menubar implementation is currently buggy." 3509 echo " *WARNING* The Motif menubar implementation is currently buggy."
3468 echo " We recommend using the Lucid menubar instead." 3510 echo " We recommend using the Lucid menubar instead."