Show
Ignore:
Timestamp:
03/21/07 09:51:40 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/configure.in

    r4180 r4196  
    44dnl in the directory containing this script. 
    55dnl 
    6 dnl  Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 
     6dnl  Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 
    77dnl  Free Software Foundation, Inc. 
    88dnl 
     
    2424dnl  Boston, MA 02110-1301, USA. 
    2525 
    26 AC_PREREQ(2.54)dnl 
     26AC_PREREQ(2.61)dnl 
    2727AC_INIT(src/lisp.h) 
    2828AC_CONFIG_HEADER(src/config.h:src/config.in) 
     
    5555AC_ARG_WITH(kerberos, 
    5656[  --with-kerberos         support Kerberos-authenticated POP], 
    57 [AC_DEFINE(KERBEROS)]) 
     57[if test "$withval" = yes; then 
     58   AC_DEFINE(KERBEROS) 
     59fi]) 
    5860AH_TEMPLATE(KERBEROS, 
    5961            [Define to support Kerberos-authenticated POP mail retrieval.])dnl 
     
    6567    AC_DEFINE(KERBEROS) 
    6668  fi 
    67 fi 
    68 AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.])]) 
     69  AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.]) 
     70fi]) 
    6971AC_ARG_WITH(hesiod, 
    7072[  --with-hesiod           support Hesiod to get the POP server host], 
    71 [AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.])]) 
     73[if test "$withval" = yes; then 
     74  AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) 
     75fi]) 
    7276 
    7377AC_ARG_WITH(sound, 
     
    261265                        # This is somewhat bogus. 
    262266                        machine=hp9000s300 ;; 
    263       powerpc-apple-netbsd*) machine=macppc ;; 
    264267      mips-*-netbsd*)   machine=pmax ;; 
    265268      mipsel-*-netbsd*) machine=pmax ;; 
     
    270273      vax-*-netbsd*)    machine=vax ;; 
    271274      arm-*-netbsd*)    machine=arm ;; 
     275      x86_64-*-netbsd*) machine=amdx86-64 ;; 
     276      hppa-*-netbsd*)   machine=hp800 ;; 
     277      shle-*-netbsd*)   machine=sh3el ;; 
    272278    esac 
    273279  ;; 
     
    278284    case "${canonical}" in 
    279285      alpha*-*-openbsd*)        machine=alpha ;; 
    280       i386-*-openbsd*)  machine=intel386 ;; 
    281       x86_64-*-openbsd*)    machine=amdx86-64 ;; 
    282       m68k-*-openbsd*)  machine=hp9000s300 ;; 
    283       mipsel-*-openbsd*) machine=pmax ;; 
    284       ns32k-*-openbsd*) machine=ns32000 ;; 
    285       sparc-*-openbsd*) machine=sparc ;; 
    286       vax-*-openbsd*)   machine=vax ;; 
     286      arm-*-openbsd*)          machine=arm ;; 
     287      hppa-*-openbsd*)         machine=hp9000s300 ;; 
     288      i386-*-openbsd*)         machine=intel386 ;; 
     289      m68k-*-openbsd*)         machine=hp9000s300 ;; 
     290      m88k-*-openbsd*)         machine=aviion ;; 
     291      mips64-*-openbsd*)       machine=mips64 ;; 
     292      powerpc-*-openbsd*)      machine=macppc ;; 
     293      sh-*-openbsd*)           machine=sh3el ;; 
     294      sparc*-*-openbsd*)       machine=sparc ;; 
     295      vax-*-openbsd*)          machine=vax ;; 
     296      x86_64-*-openbsd*)       machine=amdx86-64 ;; 
    287297    esac 
    288298  ;; 
     
    377387  ;; 
    378388 
     389  ## Apple Darwin / Mac OS X 
     390  *-apple-darwin* ) 
     391    case "${canonical}" in 
     392      i[3456]86-* )  machine=intel386 ;; 
     393      powerpc-* )    machine=powermac ;; 
     394      * )            unported=yes ;; 
     395    esac 
     396    opsys=darwin 
     397    # Define CPP as follows to make autoconf work correctly. 
     398    CPP="${CC-cc} -E -no-cpp-precomp" 
     399    # Use fink packages if available. 
     400    if test -d /sw/include && test -d /sw/lib; then 
     401      GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" 
     402      CPP="${CPP} ${GCC_TEST_OPTIONS}" 
     403      NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} 
     404    fi 
     405  ;; 
     406 
    379407  ## AT&T 3b2, 3b5, 3b15, 3b20 
    380408  we32k-att-sysv* ) 
     
    566594    NON_GNU_CPP="cc -Xo -E -P" 
    567595  ;; 
    568   ## SR2001/SR2201 running HI-UX/MPP 
    569   hppa1.1-hitachi-hiuxmpp* ) 
    570     machine=sr2k opsys=hiuxmpp 
    571   ;; 
    572   hppa1.1-hitachi-hiuxwe2* ) 
    573     machine=sr2k opsys=hiuxwe2 
    574   ;; 
    575596  ## Honeywell XPS100 
    576597  xps*-honeywell-sysv* ) 
     
    595616  ;; 
    596617 
    597   ## HP 9000 series 700 and 800, running HP/UX 
    598   hppa*-hp-hpux7* ) 
    599     machine=hp800 opsys=hpux 
    600   ;; 
    601   hppa*-hp-hpux8* ) 
    602     machine=hp800 opsys=hpux8 
    603   ;; 
    604   hppa*-hp-hpux9shr* ) 
    605     machine=hp800 opsys=hpux9shr 
    606   ;; 
    607   hppa*-hp-hpux9* ) 
    608     machine=hp800 opsys=hpux9 
    609   ;; 
    610   hppa*-hp-hpux10.2* ) 
    611     machine=hp800 opsys=hpux10-20 
    612   ;; 
    613   hppa*-hp-hpux10* ) 
    614     machine=hp800 opsys=hpux10 
    615   ;; 
    616   hppa*-hp-hpux1[1-9]* ) 
    617     machine=hp800 opsys=hpux11 
    618     CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" 
    619   ;; 
    620  
    621618  hppa*-*-linux-gnu* ) 
    622619    machine=hp800 opsys=gnu-linux 
    623620  ;; 
    624621 
    625   ## HP 9000 series 700 and 800, running HP/UX 
    626   hppa*-hp-hpux* ) 
    627     ## Cross-compilation?  Nah! 
    628     case "`uname -r`" in 
    629       ## Someone's system reports A.B8.05 for this. 
    630       ## I wonder what other possibilities there are. 
    631       *.B8.* ) machine=hp800 opsys=hpux8 ;; 
    632       *.08.* ) machine=hp800 opsys=hpux8 ;; 
    633       *.09.* ) machine=hp800 opsys=hpux9 ;; 
    634       *) machine=hp800 opsys=hpux10 ;; 
    635     esac 
    636   ;; 
    637622  hppa*-*-nextstep* ) 
    638623    machine=hp800 opsys=nextstep 
     
    952937      i[3456]86-sun-sunos[34]* )        machine=sun386 ;; 
    953938      i[3456]86-*-* )     machine=intel386 ;; 
     939      amd64-*-*|x86_64-*-*)     machine=amdx86-64 ;; 
    954940      powerpcle* )      machine=powerpcle ;; 
    955941      powerpc* | rs6000* )  machine=ibmrs6000 ;; 
     
    11521138  ;; 
    11531139 
    1154   ## Darwin / Mac OS X 
    1155   powerpc-apple-darwin* ) 
    1156     machine=powermac opsys=darwin 
    1157     # Define CPP as follows to make autoconf work correctly. 
    1158     CPP="${CC-cc} -E -no-cpp-precomp" 
    1159     # Use fink packages if available. 
    1160     if test -d /sw/include && test -d /sw/lib; then 
    1161         GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" 
    1162         CPP="${CPP} ${GCC_TEST_OPTIONS}" 
    1163         NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} 
    1164     fi 
    1165   ;; 
    1166  
    11671140  ## AMD x86-64 Linux-based GNU system 
    11681141  x86_64-*-linux-gnu* ) 
    11691142    machine=amdx86-64 opsys=gnu-linux 
    11701143  ;; 
     1144 
     1145  ## Tensilica Xtensa Linux-based GNU system     
     1146  xtensa-*-linux-gnu* ) 
     1147    machine=xtensa opsys=gnu-linux 
     1148    ;; 
    11711149 
    11721150  * ) 
     
    14861464 
    14871465 
     1466### The standard library on x86-64 GNU/Linux distributions can  
     1467### be located in either /usr/lib64 or /usr/lib. 
     1468case "${canonical}" in 
     1469  x86_64-*-linux-gnu* ) 
     1470    if test -d /usr/lib64; then 
     1471      AC_DEFINE(HAVE_X86_64_LIB64_DIR, 1, 
     1472        [Define to 1 if the file /usr/lib64 exists.]) 
     1473fi 
     1474esac 
     1475 
    14881476dnl This function defintion taken from Gnome 2.0 
    14891477dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) 
     
    15101498 
    15111499            AC_MSG_CHECKING($1_CFLAGS) 
    1512             $1_CFLAGS=`$PKG_CONFIG --cflags "$2"
     1500            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"|sed -e 's,///*,/,g'
    15131501            AC_MSG_RESULT($$1_CFLAGS) 
    15141502 
    15151503            AC_MSG_CHECKING($1_LIBS) 
    1516             $1_LIBS=`$PKG_CONFIG --libs "$2"
     1504            $1_LIBS=`$PKG_CONFIG --libs "$2"|sed -e 's,///*,/,g'
    15171505            AC_MSG_RESULT($$1_LIBS) 
    15181506        else 
     
    15571545  PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no) 
    15581546  if test $HAVE_ALSA = yes; then 
     1547    SAVE_CFLAGS="$CFLAGS" 
     1548    SAVE_LDFLAGS="$LDFLAGS" 
     1549    CFLAGS="$ALSA_CFLAGS $CFLAGS" 
     1550    LDFLAGS="$ALSA_LIBS $LDFLAGS" 
     1551    AC_TRY_COMPILE([#include <asoundlib.h>], [snd_lib_error_set_handler (0);], 
     1552                    emacs_alsa_normal=yes, 
     1553                    emacs_alsa_normal=no) 
     1554    if test "$emacs_alsa_normal" != yes; then 
     1555      AC_TRY_COMPILE([#include <alsa/asoundlib.h>], 
     1556                     [snd_lib_error_set_handler (0);], 
     1557                     emacs_alsa_subdir=yes, 
     1558                     emacs_alsa_subdir=no) 
     1559      if test "$emacs_alsa_subdir" != yes; then 
     1560        AC_MSG_ERROR([pkg-config found alsa, but it does not compile.  See config.log for error messages.]) 
     1561      fi 
     1562      ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 
     1563    fi 
     1564 
     1565    CFLAGS="$SAVE_CFLAGS" 
     1566    LDFLAGS="$SAVE_LDFLAGS" 
    15591567    LIBSOUND="$LIBSOUND $ALSA_LIBS" 
    15601568    CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 
    15611569    AC_DEFINE(HAVE_ALSA, 1, [Define to 1 if ALSA is available.]) 
     1570    AC_SUBST() 
    15621571  fi 
    15631572  AC_SUBST(CFLAGS_SOUND) 
     
    20332042 
    20342043HAVE_GTK=no 
     2044if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then 
     2045  USE_X_TOOLKIT=none 
     2046fi 
    20352047if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then 
    20362048  if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then 
     
    20522064  CFLAGS="$CFLAGS $GTK_CFLAGS" 
    20532065  LIBS="$GTK_LIBS $LIBS" 
     2066  dnl Try to compile a simple GTK program. 
     2067  GTK_COMPILES=no 
     2068  AC_CHECK_FUNCS(gtk_main, GTK_COMPILES=yes) 
     2069  if test "${GTK_COMPILES}" != "yes"; then 
     2070    AC_MSG_ERROR([Gtk+ wanted, but it does not compile, see config.log.  Maybe some x11-devel files missing?]); 
     2071  fi 
     2072   
    20542073  HAVE_GTK=yes 
    20552074  AC_DEFINE(HAVE_GTK, 1, [Define to 1 if using GTK.]) 
     
    20982117      AC_DEFINE(HAVE_GTK_AND_PTHREAD, 1, 
    20992118               [Define to 1 if you have GTK and pthread (-lpthread).]) 
     2119    fi 
     2120  fi 
     2121fi 
     2122 
     2123### Link with -lXft if available to work around a bug. 
     2124HAVE_XFT=maybe 
     2125if test "${HAVE_GTK}" = "yes"; then 
     2126  dnl Check if --with-pkg-config-prog has been given. 
     2127  if test "X${with_pkg_config_prog}" != X; then 
     2128    PKG_CONFIG="${with_pkg_config_prog}" 
     2129  fi 
     2130 
     2131  PKG_CHECK_MODULES(XFT, xft >= 0.13.0, , HAVE_XFT=no) 
     2132  if test "$HAVE_XFT" != no; then 
     2133    OLD_CFLAGS="$CPPFLAGS" 
     2134    OLD_CPPFLAGS="$CFLAGS" 
     2135    OLD_LIBS="$LIBS" 
     2136    CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" 
     2137    CFLAGS="$CFLAGS $XFT_CFLAGS" 
     2138    LIBS="$XFT_LIBS $LIBS" 
     2139    AC_CHECK_HEADER(X11/Xft/Xft.h, 
     2140      AC_CHECK_LIB(Xft, XftFontOpen, HAVE_XFT=yes, , $XFT_LIBS)) 
     2141 
     2142    if test "${HAVE_XFT}" = "yes"; then 
     2143      AC_DEFINE(HAVE_XFT, 1, [Define to 1 if you have the Xft library.]) 
     2144      AC_SUBST(XFT_LIBS) 
     2145      C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 
     2146    else 
     2147      CFLAGS="$OLD_CPPFLAGS" 
     2148      CFLAGS="$OLD_CFLAGS" 
     2149      LIBS="$OLD_LIBS" 
    21002150    fi 
    21012151  fi 
     
    24802530__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 
    24812531sendto recvfrom getsockopt setsockopt getsockname getpeername \ 
    2482 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ 
     2532gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 
    24832533memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign) 
    24842534 
     
    26412691fi 
    26422692 
    2643 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. 
    2644 AC_STRUCT_TIMEZONE 
    2645  
    2646 dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect. 
    2647 if test "$ac_cv_func_gettimeofday" = yes; then 
    2648   AC_CACHE_CHECK([for struct timezone], emacs_cv_struct_timezone, 
    2649     [AC_TRY_COMPILE([#include <sys/time.h>], 
    2650     [struct timezone tz;], 
    2651     dnl It may be that we can't call gettimeofday with a non-null pointer, 
    2652     dnl even though we have struct timezone (e.g. HPUX).  In that case 
    2653     dnl we'll lie about struct timezone. 
    2654     [AC_TRY_RUN([ 
    2655 #ifdef TIME_WITH_SYS_TIME 
    2656 #include <sys/time.h> 
    2657 #include <time.h> 
    2658 #else 
    2659 #ifdef HAVE_SYS_TIME_H 
    2660 #include <sys/time.h> 
    2661 #else 
    2662 #include <time.h> 
    2663 #endif 
    2664 #endif 
    2665 main () { 
    2666   struct timeval time; 
    2667   struct timezone dummy; 
    2668   exit (gettimeofday (&time, &dummy)); 
    2669 }], 
    2670       emacs_cv_struct_timezone=yes, 
    2671       emacs_cv_struct_timezone=no, emacs_cv_struct_timezone=yes)], 
    2672     emacs_cv_struct_timezone=no)]) 
    2673 fi 
    2674  
    26752693ok_so_far=yes 
    26762694AC_CHECK_FUNC(socket, , ok_so_far=no) 
     
    28652883 
    28662884AH_TOP([/* GNU Emacs site configuration template file. 
    2867    Copyright (C) 1988, 1993, 1994, 1999, 2000, 2002, 2004, 2005, 2006 
     2885   Copyright (C) 1988, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007 
    28682886             Free Software Foundation, Inc. 
    28692887 
     
    32003218   CPPFLAGS="$CPPFLAGS -DXASSERTS=1" 
    32013219   echo 
     3220fi 
     3221 
     3222if test "$USE_X_TOOLKIT" = GTK; then 
     3223  case "$canonical" in 
     3224  *cygwin*) 
     3225    echo "There are known problems with Emacs and Gtk+ on cygwin, so you 
     3226  will probably get a crash on startup.  If this happens, please use another 
     3227  toolkit for Emacs.  See etc/PROBLEMS for more information." 
     3228  ;; 
     3229  esac 
    32023230fi 
    32033231