Changeset 112 for ttyvaders


Ignore:
Timestamp:
Nov 10, 2003, 1:15:02 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • Removed CPPFLAGS_slang and CPPFLAGS_ncurses, we now have config.h.
Location:
ttyvaders/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/configure.ac

    r78 r112  
    2222USE_SLANG=false
    2323USE_NCURSES=false
    24 if test "${enable_ncurses}" = "yes"
    25 then
     24if test "${enable_ncurses}" = "yes"; then
    2625  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
    2726  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
     27  AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses)
    2828  USE_NCURSES=:
    29 else
    30   if test "${enable_slang}" != "no"
    31   then
    32     AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
    33     AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
    34     USE_SLANG=:
    35   else
    36     :
    37   fi
     29elif test "${enable_slang}" != "no"; then
     30  AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
     31  AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
     32  AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
     33  USE_SLANG=:
    3834fi
    3935
  • ttyvaders/trunk/libee/Makefile.am

    r106 r112  
    77# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
    88AM_CFLAGS += -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs
    9 
    10 if USE_SLANG
    11 CPPFLAGS_slang = -DUSE_SLANG
    12 endif
    13 if USE_NCURSES
    14 CPPFLAGS_ncurses = -DUSE_NCURSES
    15 endif
    169
    1710lib_LIBRARIES = libee.a
     
    2518        triangle.c \
    2619        $(NULL)
    27 libee_a_CPPFLAGS = $(CPPFLAGS_slang) $(CPPFLAGS_ncurses)
    2820
  • ttyvaders/trunk/src/Makefile.am

    r90 r112  
    99
    1010if USE_SLANG
    11 CPPFLAGS_slang = -DUSE_SLANG
    1211LDFLAGS_slang = -lslang
    1312endif
    1413if USE_NCURSES
    15 CPPFLAGS_ncurses = -DUSE_NCURSES
    1614LDFLAGS_ncurses = -lncurses
    1715endif
     
    3533        $(NULL)
    3634
    37 ttyvaders_CPPFLAGS = -I../libee $(CPPFLAGS_slang) $(CPPFLAGS_ncurses)
     35ttyvaders_CPPFLAGS = -I../libee
    3836ttyvaders_LDADD = ../libee/libee.a $(LDFLAGS_slang) $(LDFLAGS_ncurses)
    3937
  • ttyvaders/trunk/test/Makefile.am

    r106 r112  
    99
    1010if USE_SLANG
    11 CPPFLAGS_slang = -DUSE_SLANG
    1211LDFLAGS_slang = -lslang
    1312endif
    1413if USE_NCURSES
    15 CPPFLAGS_ncurses = -DUSE_NCURSES
    1614LDFLAGS_ncurses = -lncurses
    1715endif
     
    2018demo_SOURCES = demo.c
    2119
    22 demo_CPPFLAGS = -I../libee $(CPPFLAGS_slang) $(CPPFLAGS_ncurses)
     20demo_CPPFLAGS = -I../libee
    2321demo_LDADD = ../libee/libee.a $(LDFLAGS_slang) $(LDFLAGS_ncurses) -lm
    2422
Note: See TracChangeset for help on using the changeset viewer.