Mercurial > hg > xemacs-beta
comparison configure.in @ 333:4f79e16b1112 r21-0-64
Import from CVS: tag r21-0-64
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:49:50 +0200 |
parents | 03446687b7cc |
children | 54f7aa390f4f |
comparison
equal
deleted
inserted
replaced
332:bb75ebac9531 | 333:4f79e16b1112 |
---|---|
619 \`motif', \`xlib', \`yes', or \`no'."]) ;; | 619 \`motif', \`xlib', \`yes', or \`no'."]) ;; |
620 esac | 620 esac |
621 eval "$opt=\"$val\"" | 621 eval "$opt=\"$val\"" |
622 ;; | 622 ;; |
623 | 623 |
624 dnl XFontSet support? | |
625 "with_xfs" ) | |
626 case "$val" in | |
627 y | ye | yes ) val=yes ;; | |
628 n | no | non | none ) val=no ;; | |
629 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: | |
630 \`yes', or \`no'."]) ;; | |
631 esac | |
632 eval "$opt=\"$val\"" | |
633 ;; | |
634 | |
635 dnl Mail locking specification | 624 dnl Mail locking specification |
636 "mail_locking" ) | 625 "mail_locking" ) |
637 case "$val" in | 626 case "$val" in |
638 lockf ) val=lockf ;; | 627 lockf ) val=lockf ;; |
639 flock ) val=flock ;; | 628 flock ) val=flock ;; |
700 dnl installed in odd places. | 689 dnl installed in odd places. |
701 | 690 |
702 dnl Has the user specified one of the path options? | 691 dnl Has the user specified one of the path options? |
703 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ | 692 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ |
704 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \ | 693 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \ |
705 archlibdir | docdir | package_path ) | 694 archlibdir | docdir | package_path ) |
706 dnl If the value was omitted, get it from the next argument. | 695 dnl If the value was omitted, get it from the next argument. |
707 if test "$valomitted" = "yes"; then | 696 if test "$valomitted" = "yes"; then |
708 if test "$#" = 0; then | 697 if test "$#" = 0; then |
709 USAGE_ERROR("The \`--$optname' option requires a value."); | 698 USAGE_ERROR("The \`--$optname' option requires a value."); |
710 fi | 699 fi |
883 echo Making symbolic link to "$srcdir/$dir" | 872 echo Making symbolic link to "$srcdir/$dir" |
884 ${LN_S} "$srcdir/$dir" "$dir" | 873 ${LN_S} "$srcdir/$dir" "$dir" |
885 fi | 874 fi |
886 done | 875 done |
887 | 876 |
877 dnl Do our best to deal with automounter brokenness | |
878 dnl CANONICALIZE_PATH(varname) | |
879 define([CANONICALIZE_PATH], | |
880 [if test -d "/net"; then | |
881 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi | |
882 $1=`echo "[$]$1" | \ | |
883 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"` | |
884 fi])dnl | |
885 | |
888 dnl Calculate canonical name for blddir (i.e. current directory). | 886 dnl Calculate canonical name for blddir (i.e. current directory). |
889 dnl PWD may already be the preferable absolute name for ".", | 887 dnl PWD may already be the preferable absolute name for ".", |
890 dnl but we can't trust it - it is sometimes inaccurate. | 888 dnl but we can't trust it - it is sometimes inaccurate. |
891 absolute_pwd="`pwd`"; | 889 absolute_pwd="`pwd`"; |
892 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd" | 890 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd" |
893 then blddir="$PWD" | 891 then blddir="$PWD" |
894 else blddir="$absolute_pwd" | 892 else blddir="$absolute_pwd"; CANONICALIZE_PATH(blddir) |
895 fi | 893 fi |
896 AC_SUBST(blddir) | 894 AC_SUBST(blddir) |
897 | 895 |
898 dnl Make srcdir absolute, if not already. It is important to | 896 dnl Make srcdir absolute, if not already. It is important to |
899 dnl avoid running the path through pwd unnecessary, since pwd can | 897 dnl avoid running the path through pwd unnecessary, since pwd can |
900 dnl give you automounter prefixes, which can go away. | 898 dnl give you automounter prefixes, which can go away. |
901 case "$srcdir" in | 899 case "$srcdir" in |
902 /* ) ;; | 900 /* ) ;; |
903 . ) srcdir="$blddir" ;; | 901 . ) srcdir="$blddir" ;; |
904 * ) srcdir="`cd $srcdir && pwd`" ;; | 902 * ) srcdir="`cd $srcdir && pwd`"; CANONICALIZE_PATH(srcdir) ;; |
905 esac | 903 esac |
906 | 904 |
907 dnl Check if the source directory already has a configured system in it. | 905 dnl Check if the source directory already has a configured system in it. |
908 if test `pwd` != `sh -c cd $srcdir && pwd` \ | 906 if test `pwd` != `sh -c cd $srcdir && pwd` \ |
909 && test -f "$srcdir/src/config.h"; then | 907 && test -f "$srcdir/src/config.h"; then |
1464 *-esix* ) opsys=esix ;; | 1462 *-esix* ) opsys=esix ;; |
1465 *-mach* ) opsys=mach-bsd4-3 ;; | 1463 *-mach* ) opsys=mach-bsd4-3 ;; |
1466 *-xenix* ) opsys=xenix ;; | 1464 *-xenix* ) opsys=xenix ;; |
1467 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;; | 1465 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;; |
1468 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;; | 1466 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;; |
1467 *-bsdi4* ) opsys=bsdos4 ;; | |
1469 *-bsdi3* ) opsys=bsdos3 ;; | 1468 *-bsdi3* ) opsys=bsdos3 ;; |
1470 *-bsdi2.1* ) opsys=bsdos2-1 ;; | 1469 *-bsdi2.1* ) opsys=bsdos2-1 ;; |
1471 *-bsdi2* ) opsys=bsdos2 ;; | 1470 *-bsdi2* ) opsys=bsdos2 ;; |
1472 *-sco3.2v5* ) opsys=sco5 ; | 1471 *-sco3.2v5* ) opsys=sco5 ; |
1473 dnl This is a pain. Like the current USL cc, SCO cc -E | 1472 dnl This is a pain. Like the current USL cc, SCO cc -E |
1929 dnl Try to autodetect runtime library flag (usually -R), | 1928 dnl Try to autodetect runtime library flag (usually -R), |
1930 dnl and whether it works (or at least does no harm) | 1929 dnl and whether it works (or at least does no harm) |
1931 AC_MSG_CHECKING("for runtime libraries flag") | 1930 AC_MSG_CHECKING("for runtime libraries flag") |
1932 case "$opsys" in | 1931 case "$opsys" in |
1933 sol2 ) dash_r="-R" ;; | 1932 sol2 ) dash_r="-R" ;; |
1934 decosf* | linux* ) dash_r="-rpath " ;; | 1933 decosf* | linux* | irix*) dash_r="-rpath " ;; |
1935 *) | 1934 *) |
1936 dash_r="" | 1935 dash_r="" |
1937 for try_dash_r in "-R" "-R " "-rpath "; do | 1936 for try_dash_r in "-R" "-R " "-rpath "; do |
1938 xe_check_libs="${try_dash_r}/no/such/file-or-directory" | 1937 xe_check_libs="${try_dash_r}/no/such/file-or-directory" |
1939 XE_PROTECT_LINKER_FLAGS(xe_check_libs) | 1938 XE_PROTECT_LINKER_FLAGS(xe_check_libs) |
1962 | 1961 |
1963 dnl XE_ADD_RUNPATH_DIR(directory) | 1962 dnl XE_ADD_RUNPATH_DIR(directory) |
1964 define([XE_ADD_RUNPATH_DIR],[{ | 1963 define([XE_ADD_RUNPATH_DIR],[{ |
1965 xe_runpath_dir=$1 | 1964 xe_runpath_dir=$1 |
1966 dnl PRINT_VAR(ld_switch_site ld_switch_x_site runpath xe_runpath_dir LD_RUN_PATH xe_ldflags) | 1965 dnl PRINT_VAR(ld_switch_site ld_switch_x_site runpath xe_runpath_dir LD_RUN_PATH xe_ldflags) |
1966 dnl Many systems have *.so, HP-UX has *.sl, Freebsd 2.2.5 only has *.so.nn | |
1967 test "$xe_runpath_dir" != "/lib" -a \ | 1967 test "$xe_runpath_dir" != "/lib" -a \ |
1968 "$xe_runpath_dir" != "/usr/lib" -a \ | 1968 "$xe_runpath_dir" != "/usr/lib" -a \ |
1969 -n "`ls ${xe_runpath_dir}/*.s[[ol]] 2>/dev/null`" && \ | 1969 -n "`ls ${xe_runpath_dir}/*.s[[ol]] ${xe_runpath_dir}/*.so.* 2>/dev/null`" && \ |
1970 eval "$xe_add_unique_runpath_dir" | 1970 eval "$xe_add_unique_runpath_dir" |
1971 }])dnl | 1971 }])dnl |
1972 | 1972 |
1973 dnl XE_COMPUTE_RUNPATH() | 1973 dnl XE_COMPUTE_RUNPATH() |
1974 define([XE_COMPUTE_RUNPATH],[ | 1974 define([XE_COMPUTE_RUNPATH],[ |
2470 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-msw.o) | 2470 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-msw.o) |
2471 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-msw.o) | 2471 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-msw.o) |
2472 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-msw.o) | 2472 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-msw.o) |
2473 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-msw.o) | 2473 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-msw.o) |
2474 fi | 2474 fi |
2475 dnl check for our special version of select | 2475 dnl check for our special version of select |
2476 AC_TRY_RUN([#include <fcntl.h> | 2476 AC_TRY_RUN([#include <fcntl.h> |
2477 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], | 2477 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], |
2478 [AC_DEFINE(HAVE_MSG_SELECT)]) | 2478 [AC_DEFINE(HAVE_MSG_SELECT)]) |
2479 const_is_losing=no | 2479 const_is_losing=no |
2480 with_file_coding=yes | 2480 with_file_coding=yes |
2972 dnl Do we have the XmIm* routines? And if so, do we want to use them? | 2972 dnl Do we have the XmIm* routines? And if so, do we want to use them? |
2973 dnl XIM seems to be flaky except on Solaris... | 2973 dnl XIM seems to be flaky except on Solaris... |
2974 dnl test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no | 2974 dnl test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no |
2975 case "$with_xim" in "" | "yes" ) | 2975 case "$with_xim" in "" | "yes" ) |
2976 AC_CHECKING(for XIM) | 2976 AC_CHECKING(for XIM) |
2977 AC_CHECK_LIB(X11, XOpenIM, with_xim=xlib, with_xim=no) | |
2977 dnl XIM + Lesstif is not (yet?) usable | 2978 dnl XIM + Lesstif is not (yet?) usable |
2978 if test "$have_lesstif" = "yes"; then with_xim=xlib | 2979 if test "$have_motif $have_lesstif" = "yes no"; then |
2979 else AC_CHECK_LIB(Xm, XmImMbLookupString, with_xim=motif, with_xim=xlib) | 2980 AC_CHECK_LIB(Xm, XmImMbLookupString, with_xim=motif) |
2980 fi | 2981 fi ;; |
2981 esac | 2982 esac |
2982 if test "$with_xim" != "no"; then | 2983 if test "$with_xim" != "no"; then |
2983 AC_DEFINE(HAVE_XIM) | 2984 AC_DEFINE(HAVE_XIM) |
2984 if test "$with_xim" = "xlib"; then | 2985 if test "$with_xim" = "xlib"; then |
2985 AC_DEFINE(XIM_XLIB) | 2986 AC_DEFINE(XIM_XLIB) |
2993 if test "$with_xim" = "motif"; then | 2994 if test "$with_xim" = "motif"; then |
2994 with_xfs=no | 2995 with_xfs=no |
2995 fi | 2996 fi |
2996 fi | 2997 fi |
2997 | 2998 |
2998 dnl "with_xim" = "yes" | 2999 dnl "with_xfs" = "yes" |
2999 if test "$with_xfs" = "yes" ; then | 3000 if test "$with_xfs" = "yes" ; then |
3000 AC_CHECKING(for XFontSet) | 3001 AC_CHECKING(for XFontSet) |
3001 AC_CHECK_LIB(X11, XmbDrawString, [:], with_xfs=no) | 3002 AC_CHECK_LIB(X11, XmbDrawString, [:], with_xfs=no) |
3002 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then | 3003 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then |
3003 AC_DEFINE(USE_XFONTSET) | 3004 AC_DEFINE(USE_XFONTSET) |
3004 if test "$with_xim" = "no" ; then | 3005 if test "$with_xim" = "no" ; then |
3005 XE_ADD_OBJS(input-method-xfs.o) | 3006 XE_ADD_OBJS(input-method-xfs.o) |
3006 fi | 3007 fi |
3007 fi | 3008 fi |
3008 fi dnl with_xim | 3009 fi dnl with_xfs |
3009 | 3010 |
3010 dnl Autodetect WNN | 3011 dnl Autodetect WNN |
3011 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support | 3012 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support |
3012 test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/jllib.h, ,with_wnn=no) } | 3013 test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/jllib.h, ,with_wnn=no) } |
3013 dnl Detour to find crypt | 3014 dnl Detour to find crypt |
4052 motif ) echo " Using Motif scrollbars." ;; | 4053 motif ) echo " Using Motif scrollbars." ;; |
4053 athena ) echo " Using Athena scrollbars." ;; | 4054 athena ) echo " Using Athena scrollbars." ;; |
4054 athena3d ) echo " Using Athena-3d scrollbars." ;; | 4055 athena3d ) echo " Using Athena-3d scrollbars." ;; |
4055 esac | 4056 esac |
4056 case "$with_dialogs" in | 4057 case "$with_dialogs" in |
4057 motif ) echo " Using Motif dialog boxes." ;; | 4058 motif ) |
4059 echo " Using Motif dialog boxes." | |
4060 if test "$unexec" = "unexaix.o" -a `uname -v` = 4 -a `uname -r` -ge 3; then | |
4061 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." | |
4062 echo " We recommend using the Athena dialog boxes instead." | |
4063 echo " Install libXaw and re-run configure with --with-dialogs='athena'." | |
4064 echo " Read the PROBLEMS file for more information." | |
4065 fi | |
4066 ;; | |
4058 athena ) echo " Using Athena dialog boxes." ;; | 4067 athena ) echo " Using Athena dialog boxes." ;; |
4059 athena3d ) echo " Using Athena-3d dialog boxes." ;; | 4068 athena3d ) echo " Using Athena-3d dialog boxes." ;; |
4060 esac | 4069 esac |
4061 test "$with_shlib" = "yes" && echo " Compiling in DLL support." | 4070 test "$with_shlib" = "yes" && echo " Compiling in DLL support." |
4062 test "$with_clash_detection" = yes && \ | 4071 test "$with_clash_detection" = yes && \ |