Changeset 78

Show
Ignore:
Timestamp:
04/24/07 12:47:20 (1 year ago)
Author:
pmac
Message:

Fixed some autoconf problems for OS X. Will try to track down the remaining problems later.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/aclocal.m4

    r74 r78  
    1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*- 
     1# generated automatically by aclocal 1.10 -*- Autoconf -*- 
    22 
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 
    4 # 2005  Free Software Foundation, Inc. 
     4# 2005, 2006  Free Software Foundation, Inc. 
    55# This file is free software; the Free Software Foundation 
    66# gives unlimited permission to copy and/or distribute it, 
     
    1515m4_include([m4/pkg.m4]) 
    1616m4_include([m4/sdl.m4]) 
     17m4_include([m4/stdint_h.m4]) 
  • trunk/configure.ac

    r77 r78  
    102102                                AC_DEFINE(USE_CURSES, 1, [Define to 1 if Curses or PDCurses is found, but NCurses is not.]) 
    103103                                AC_DEFINE(USE_GCU, 1, [Define to 1 if using the Curses frontend.]) 
    104                                 CFFLAGS+=" -I/usr/include/curses" 
    105                                 LDFLAGS+=" -lcurses" 
     104                                LDFLAGS="${LDFLAGS} -lcurses" 
    106105                                with_curses=yes 
    107106                        fi 
     
    110109                        AC_DEFINE(USE_CURSES, 1, [Define to 1 if Curses or PDCurses is found, but NCurses is not.]) 
    111110                        AC_DEFINE(USE_GCU, 1, [Define to 1 if using the Curses frontend.]) 
    112                         LDFLAGS+=" -lpdcurses" 
     111                        LDFLAGS="${LDFLAGS} -lpdcurses" 
    113112                        with_curses=yes 
    114113                fi 
     
    117116                AC_DEFINE(USE_NCURSES, 1, [Define to 1 if NCurses is found.]) 
    118117                AC_DEFINE(USE_GCU, 1, [Define to 1 if using the Curses frontend.]) 
    119                 LDFLAGS+=" -lncurses" 
     118                LDFLAGS="${LDFLAGS} -lncurses" 
    120119                with_curses=yes 
    121120        fi 
     
    144143        else 
    145144                AC_DEFINE(USE_SDL, 1, [Define to 1 if using the SDL interface and SDL & SDL_ttf are found.]) 
    146                 CFLAGS+=" $SDL_CFLAGS" 
    147                 LDFLAGS+=" $SDL_LIBS" 
     145                CFLAGS="${CFLAGS} $SDL_CFLAGS" 
     146                LDFLAGS="${LDFLAGS} $SDL_LIBS" 
    148147                with_sdl=yes 
    149148        fi 
     
    162161        if test "$with_gtk" = "yes"; then 
    163162                AC_DEFINE(USE_GTK, 1, [Define to 1 if using the GTK+ 2.x interface and GTK+ 2.x is found.]) 
    164                 CFLAGS+=" $GTK_CFLAGS" 
    165                 LDFLAGS+=" $GTK_LIBS" 
     163                CFLAGS="${CFLAGS} $GTK_CFLAGS" 
     164                LDFLAGS="${LDFLAGS} $GTK_LIBS" 
    166165        else 
    167166                AC_DEFINE(USE_GTK, 0, [Define to 1 if using the GTK+ 2.x interface and GTK+ 2.x is found.]) 
     
    191190dnl XXX: Work around some autoconf bugs. 
    192191if test "$prefix" = "NONE"; then 
    193         prefix="${ac_default_prefix}" 
     192       prefix="${ac_default_prefix}" 
    194193fi 
    195194if test -z "$datadir"; then