comparison configure.in @ 559:5101772788b2

[xemacs-hg @ 2001-05-23 10:02:02 by ben] cvs utilitzes a 'best-effort' protocol when checking in'
author ben
date Wed, 23 May 2001 10:02:19 +0000
parents f486da5f1a3b
children 1dac8639fe3f
comparison
equal deleted inserted replaced
558:ed498ef2108b 559:5101772788b2
347 with_site_modules='yes' 347 with_site_modules='yes'
348 with_menubars='' 348 with_menubars=''
349 with_scrollbars='' 349 with_scrollbars=''
350 with_widgets='' 350 with_widgets=''
351 with_dialogs='' 351 with_dialogs=''
352 with_file_coding='' 352 dnl The following will be overridden if we are under Cygwin and compile
353 dnl with MS Windows support. Set this to yes as soon as we've fixed
354 dnl the coding-system defaults to be binary in all cases under Unix.
355 with_file_coding='no'
353 cpp='' cppflags='' libs='' ldflags='' 356 cpp='' cppflags='' libs='' ldflags=''
354 extra_includes='' 357 extra_includes=''
355 dynamic='' 358 dynamic=''
356 with_x11='' 359 with_x11=''
357 with_msw='' 360 with_msw=''
1943 *-O2*|*-O3*) 1946 *-O2*|*-O3*)
1944 case "$CFLAGS" in 1947 case "$CFLAGS" in
1945 *-fno-schedule-insns*) ;; 1948 *-fno-schedule-insns*) ;;
1946 *) 1949 *)
1947 AC_MSG_RESULT(yes) 1950 AC_MSG_RESULT(yes)
1948 AC_MSG_WARN(Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures) 1951 AC_MSG_WARN([Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures])
1949 AC_MSG_WARN(without also using -fno-schedule-insns.) 1952 AC_MSG_WARN([without also using -fno-schedule-insns.])
1950 AC_MSG_ERROR(Aborting due to known problem) 1953 AC_MSG_ERROR([Aborting due to known problem])
1951 ;; 1954 ;;
1952 esac 1955 esac
1953 ;; 1956 ;;
1954 esac 1957 esac
1955 ;; 1958 ;;
1956 dnl egcs-2.91.57 (egcs-1.1 release) 1959 dnl egcs-2.91.57 (egcs-1.1 release)
1957 dnl egcs-2.91.66 (egcs-1.1.2 release) 1960 dnl egcs-2.91.66 (egcs-1.1.2 release)
1958 Linux:alpha:egcs-2.91.*) 1961 Linux:alpha:egcs-2.91.*)
1959 AC_MSG_RESULT(yes) 1962 AC_MSG_RESULT(yes)
1960 AC_MSG_WARN(There have been reports of egcs-1.1 not compiling XEmacs correctly on) 1963 AC_MSG_WARN([There have been reports of egcs-1.1 not compiling XEmacs correctly on])
1961 AC_MSG_WARN(Alpha Linux. There have also been reports that egcs-1.0.3a is O.K.) 1964 AC_MSG_WARN([Alpha Linux. There have also been reports that egcs-1.0.3a is O.K.])
1962 AC_MSG_ERROR(Aborting due to known problem) 1965 AC_MSG_ERROR([Aborting due to known problem])
1963 ;; 1966 ;;
1964 *:i*86*:2.7.2*) 1967 *:i*86*:2.7.2*)
1965 case "$CFLAGS" in 1968 case "$CFLAGS" in
1966 *-O2*|*-O3*) 1969 *-O2*|*-O3*)
1967 case "$GCC_VERSION" in 1970 case "$GCC_VERSION" in
1968 2.7.2) 1971 2.7.2)
1969 case "$CFLAGS" in 1972 case "$CFLAGS" in
1970 *-fno-strength-reduce*) ;; 1973 *-fno-strength-reduce*) ;;
1971 *) 1974 *)
1972 AC_MSG_RESULT(yes) 1975 AC_MSG_RESULT(yes)
1973 AC_MSG_WARN(Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using) 1976 AC_MSG_WARN([Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using])
1974 AC_MSG_WARN(-fno-strength-reduce.) 1977 AC_MSG_WARN([-fno-strength-reduce.])
1975 AC_MSG_ERROR(Aborting due to known problem) 1978 AC_MSG_ERROR([Aborting due to known problem])
1976 ;; 1979 ;;
1977 esac 1980 esac
1978 ;; 1981 ;;
1979 esac 1982 esac
1980 case "$CFLAGS" in 1983 case "$CFLAGS" in
1981 *-fno-caller-saves*) ;; 1984 *-fno-caller-saves*) ;;
1982 *) 1985 *)
1983 AC_MSG_RESULT(yes) 1986 AC_MSG_RESULT(yes)
1984 AC_MSG_WARN(Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using) 1987 AC_MSG_WARN([Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using])
1985 AC_MSG_WARN(-fno-caller-saves.) 1988 AC_MSG_WARN([-fno-caller-saves.])
1986 AC_MSG_ERROR(Aborting due to known problem) 1989 AC_MSG_ERROR([Aborting due to known problem])
1987 ;; 1990 ;;
1988 esac 1991 esac
1989 ;; 1992 ;;
1990 esac 1993 esac
1991 ;; 1994 ;;
2789 done 2792 done
2790 fi 2793 fi
2791 2794
2792 dnl make sure we can find Intrinsic.h 2795 dnl make sure we can find Intrinsic.h
2793 AC_CHECK_HEADER(X11/Intrinsic.h, , 2796 AC_CHECK_HEADER(X11/Intrinsic.h, ,
2794 [AC_MSG_ERROR("Unable to find X11 header files.")]) 2797 [AC_MSG_ERROR([Unable to find X11 header files.])])
2795 2798
2796 dnl -lXt and -lX11 are required 2799 dnl -lXt and -lX11 are required
2797 dnl Some broken systems require the magic "-b i486-linuxaout" flag 2800 dnl Some broken systems require the magic "-b i486-linuxaout" flag
2798 AC_CHECK_LIB(X11, XOpenDisplay, have_lib_x11=yes) 2801 AC_CHECK_LIB(X11, XOpenDisplay, have_lib_x11=yes)
2799 if test "$have_lib_x11" != "yes"; then 2802 if test "$have_lib_x11" != "yes"; then
2800 AC_CHECK_LIB(X11, XGetFontProperty, 2803 AC_CHECK_LIB(X11, XGetFontProperty,
2801 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site", 2804 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site",
2802 [AC_MSG_ERROR("Unable to find X11 libraries.")], 2805 [AC_MSG_ERROR([Unable to find X11 libraries.])],
2803 -b i486-linuxaout) 2806 -b i486-linuxaout)
2804 fi 2807 fi
2805 libs_x="-lX11" 2808 libs_x="-lX11"
2806 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 2809 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
2807 2810
2808 dnl Autodetect -lXext 2811 dnl Autodetect -lXext
2809 AC_CHECK_LIB(Xext, XShapeSelectInput, XE_PREPEND(-lXext, libs_x)) 2812 AC_CHECK_LIB(Xext, XShapeSelectInput, XE_PREPEND(-lXext, libs_x))
2810 2813
2811 dnl Require -lXt 2814 dnl Require -lXt
2812 AC_CHECK_LIB(Xt, XtOpenDisplay, XE_PREPEND(-lXt, libs_x), 2815 AC_CHECK_LIB(Xt, XtOpenDisplay, XE_PREPEND(-lXt, libs_x),
2813 AC_MSG_ERROR("Unable to find X11 libraries.")) 2816 AC_MSG_ERROR([Unable to find X11 libraries.]))
2814 2817
2815 AC_MSG_CHECKING(the version of X11 being used) 2818 AC_MSG_CHECKING(the version of X11 being used)
2816 AC_TRY_RUN([#include <X11/Intrinsic.h> 2819 AC_TRY_RUN([#include <X11/Intrinsic.h>
2817 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }], 2820 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }],
2818 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4]) 2821 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4])
3350 if test "$athena_3d" = "no"; then 3353 if test "$athena_3d" = "no"; then
3351 AC_CHECK_LIB($athena_variant, XawScrollbarSetThumb, 3354 AC_CHECK_LIB($athena_variant, XawScrollbarSetThumb,
3352 [ 3355 [
3353 dnl Must not be a 3d library... 3356 dnl Must not be a 3d library...
3354 AC_CHECK_LIB($athena_variant, threeDClassRec, 3357 AC_CHECK_LIB($athena_variant, threeDClassRec,
3355 AC_MSG_WARN("Could not find a non-3d Athena widget library."), 3358 AC_MSG_WARN([Could not find a non-3d Athena widget library.]),
3356 athena_lib=$athena_variant) 3359 athena_lib=$athena_variant)
3357 ], 3360 ],
3358 AC_MSG_WARN("Could not find an Athena widget library.")) 3361 AC_MSG_WARN([Could not find an Athena widget library.]))
3359 else 3362 else
3360 dnl The real configuration, need 3d library 3363 dnl The real configuration, need 3d library
3361 AC_CHECK_LIB($athena_variant, threeDClassRec, athena_lib=$athena_variant, 3364 AC_CHECK_LIB($athena_variant, threeDClassRec, athena_lib=$athena_variant,
3362 dnl OK, couldn't find it with a proper name, try the standard Athena lib 3365 dnl OK, couldn't find it with a proper name, try the standard Athena lib
3363 dnl If that is 3d, presume the user asked for what they have installed. 3366 dnl If that is 3d, presume the user asked for what they have installed.
3364 AC_CHECK_LIB(Xaw, threeDClassRec, 3367 AC_CHECK_LIB(Xaw, threeDClassRec,
3365 [ 3368 [
3366 athena_lib=Xaw; 3369 athena_lib=Xaw;
3367 AC_MSG_WARN("Assuming that libXaw is actually $athena_variant."); 3370 AC_MSG_WARN([Assuming that libXaw is actually $athena_variant.]);
3368 ], 3371 ],
3369 AC_MSG_WARN("Could not find a 3d Athena widget library that looked like $athena_variant."))) 3372 AC_MSG_WARN([Could not find a 3d Athena widget library that looked like $athena_variant.])))
3370 fi 3373 fi
3371 3374
3372 dnl Now we locate the Athena headers that we need. 3375 dnl Now we locate the Athena headers that we need.
3373 if test "$athena_3d" = "no"; then 3376 if test "$athena_3d" = "no"; then
3374 AC_CHECK_HEADER(X11/Xaw/ThreeD.h, 3377 AC_CHECK_HEADER(X11/Xaw/ThreeD.h,
3375 AC_MSG_WARN("Could not find a non-3d Athena header set."), 3378 AC_MSG_WARN([Could not find a non-3d Athena header set.]),
3376 AC_CHECK_HEADER(X11/Xaw/XawInit.h, 3379 AC_CHECK_HEADER(X11/Xaw/XawInit.h,
3377 athena_h_path=X11/Xaw, 3380 athena_h_path=X11/Xaw,
3378 AC_MSG_WARN("Could not find a non-3d Athena header set."))) 3381 AC_MSG_WARN([Could not find a non-3d Athena header set.])))
3379 else 3382 else
3380 dnl The three-d Athena headers are so much more slippery. 3383 dnl The three-d Athena headers are so much more slippery.
3381 dnl Curse this `Lets replace standard libraries' thing that they did. :/ 3384 dnl Curse this `Lets replace standard libraries' thing that they did. :/
3382 AC_CHECK_HEADER(X11/$athena_variant/XawInit.h, 3385 AC_CHECK_HEADER(X11/$athena_variant/XawInit.h,
3383 AC_CHECK_HEADER(X11/$athena_variant/ThreeD.h, 3386 AC_CHECK_HEADER(X11/$athena_variant/ThreeD.h,
3393 dnl If we couldn't find the specific variant, try the generic Athena 3d headers 3396 dnl If we couldn't find the specific variant, try the generic Athena 3d headers
3394 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 3397 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
3395 AC_CHECK_HEADER(X11/Xaw3d/XawInit.h, 3398 AC_CHECK_HEADER(X11/Xaw3d/XawInit.h,
3396 AC_CHECK_HEADER(X11/Xaw3d/ThreeD.h, 3399 AC_CHECK_HEADER(X11/Xaw3d/ThreeD.h,
3397 [ 3400 [
3398 AC_MSG_WARN("Assuming that X11/Xaw3d headers are suitable for $athena_variant.") 3401 AC_MSG_WARN([Assuming that X11/Xaw3d headers are suitable for $athena_variant.])
3399 athena_h_path=X11/Xaw3d 3402 athena_h_path=X11/Xaw3d
3400 ],)) 3403 ],))
3401 fi 3404 fi
3402 3405
3403 dnl Also generic 3d headers directly under include dir 3406 dnl Also generic 3d headers directly under include dir
3404 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 3407 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
3405 AC_CHECK_HEADER(Xaw3d/XawInit.h, 3408 AC_CHECK_HEADER(Xaw3d/XawInit.h,
3406 AC_CHECK_HEADER(Xaw3d/ThreeD.h, 3409 AC_CHECK_HEADER(Xaw3d/ThreeD.h,
3407 [ 3410 [
3408 AC_MSG_WARN("Assuming that Xaw3d headers are suitable for $athena_variant.") 3411 AC_MSG_WARN([Assuming that Xaw3d headers are suitable for $athena_variant.])
3409 athena_h_path=Xaw3d 3412 athena_h_path=Xaw3d
3410 ],)) 3413 ],))
3411 fi 3414 fi
3412 3415
3413 dnl If nothing yet found, see if Xaw is a 3d header set... 3416 dnl If nothing yet found, see if Xaw is a 3d header set...
3414 dnl We AC_MSG_WARN if we fail because I am all out of ideas... 3417 dnl We AC_MSG_WARN if we fail because I am all out of ideas...
3415 if test -z "$athena_h_path"; then 3418 if test -z "$athena_h_path"; then
3416 AC_CHECK_HEADER(X11/Xaw/ThreeD.h, 3419 AC_CHECK_HEADER(X11/Xaw/ThreeD.h,
3417 [ 3420 [
3418 AC_MSG_WARN("Assuming that X11/Xaw headers are suitable for $athena_variant.") 3421 AC_MSG_WARN([Assuming that X11/Xaw headers are suitable for $athena_variant.])
3419 athena_h_path=X11/Xaw 3422 athena_h_path=X11/Xaw
3420 ], 3423 ],
3421 AC_MSG_WARN("Could not find a suitable 3d Athena header set.")) 3424 AC_MSG_WARN([Could not find a suitable 3d Athena header set.]))
3422 fi 3425 fi
3423 fi 3426 fi
3424 3427
3425 dnl Do we actually have a usable Athena widget set? Please? 3428 dnl Do we actually have a usable Athena widget set? Please?
3426 if test -n "$athena_lib" -a -n "$athena_h_path"; then 3429 if test -n "$athena_lib" -a -n "$athena_h_path"; then
3582 dnl ---------------------- 3585 dnl ----------------------
3583 dnl Mule-dependent options 3586 dnl Mule-dependent options
3584 dnl ---------------------- 3587 dnl ----------------------
3585 3588
3586 test -z "$with_mule" && with_mule=no 3589 test -z "$with_mule" && with_mule=no
3587 test -z "$with_file_coding" && with_file_coding=no
3588 3590
3589 dnl if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then 3591 dnl if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then
3590 dnl echo "Attempt to Build with Mule without Mule/Lisp" 3592 dnl echo "Attempt to Build with Mule without Mule/Lisp"
3591 dnl echo "Please install the XEmacs/Mule tarball or" 3593 dnl echo "Please install the XEmacs/Mule tarball or"
3592 dnl echo "rerun configure with --with-mule=no" 3594 dnl echo "rerun configure with --with-mule=no"
3593 dnl exit 1 3595 dnl exit 1
3594 dnl fi 3596 dnl fi
3597
3598 if test "$with_file_coding" = "no" && test "$with_mule" = "yes"; then
3599 AC_MSG_WARN([--with-file-coding forced to \`yes': Required for Mule support])
3600 with_file_coding=yes
3601 fi
3595 3602
3596 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then 3603 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
3597 AC_DEFINE(FILE_CODING) 3604 AC_DEFINE(FILE_CODING)
3598 XE_ADD_OBJS(file-coding.o) 3605 XE_ADD_OBJS(file-coding.o)
3599 fi 3606 fi
3703 fi 3710 fi
3704 3711
3705 else dnl "$with_mule" = "no" 3712 else dnl "$with_mule" = "no"
3706 for feature in xim canna wnn; do 3713 for feature in xim canna wnn; do
3707 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 3714 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
3708 AC_MSG_WARN("--with-${feature} ignored: Not valid without Mule support") 3715 AC_MSG_WARN([--with-${feature} ignored: Not valid without Mule support])
3709 fi 3716 fi
3710 eval "with_${feature}=no" 3717 eval "with_${feature}=no"
3711 done 3718 done
3712 fi dnl with_mule 3719 fi dnl with_mule
3713 3720
4164 dnl <ncurses/unctrl.h>) 4171 dnl <ncurses/unctrl.h>)
4165 save_c_switch_site="$c_switch_site" 4172 save_c_switch_site="$c_switch_site"
4166 c_switch_site="$c_switch_site -I/usr/include/ncurses" 4173 c_switch_site="$c_switch_site -I/usr/include/ncurses"
4167 AC_CHECK_HEADER(ncurses/curses.h, curses_h_file=ncurses/curses.h) 4174 AC_CHECK_HEADER(ncurses/curses.h, curses_h_file=ncurses/curses.h)
4168 if test "$ac_cv_header_ncurses_curses_h" = "yes" 4175 if test "$ac_cv_header_ncurses_curses_h" = "yes"
4169 then AC_MSG_WARN("Your system has the bogus ncurses include bug.") 4176 then AC_MSG_WARN([Your system has the bogus ncurses include bug.])
4170 else c_switch_site="$save_c_switch_site" 4177 else c_switch_site="$save_c_switch_site"
4171 fi 4178 fi
4172 fi 4179 fi
4173 else dnl "$with_ncurses" = "no" 4180 else dnl "$with_ncurses" = "no"
4174 dnl Autodetect terminfo/-lcurses/-ltermlib/-ltermcap 4181 dnl Autodetect terminfo/-lcurses/-ltermlib/-ltermcap
4209 fi 4216 fi
4210 4217
4211 else dnl "$with_tty" = "no" 4218 else dnl "$with_tty" = "no"
4212 for feature in ncurses gpm; do 4219 for feature in ncurses gpm; do
4213 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 4220 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
4214 AC_MSG_WARN("--with-${feature} ignored: Not valid without TTY support") 4221 AC_MSG_WARN([--with-${feature} ignored: Not valid without TTY support])
4215 fi 4222 fi
4216 eval "with_${feature}=no" 4223 eval "with_${feature}=no"
4217 done 4224 done
4218 fi dnl with_tty 4225 fi dnl with_tty
4219 4226
4379 with_modules=yes 4386 with_modules=yes
4380 else 4387 else
4381 if test "$with_modules" = "yes"; then 4388 if test "$with_modules" = "yes"; then
4382 XE_DIE("Required module support cannot be provided.") 4389 XE_DIE("Required module support cannot be provided.")
4383 else 4390 else
4384 AC_MSG_WARN("Module support cannot be provided.") 4391 AC_MSG_WARN([Module support cannot be provided.])
4385 fi 4392 fi
4386 with_modules=no 4393 with_modules=no
4387 fi 4394 fi
4388 fi 4395 fi
4389 4396