Skip to content

Commit

Permalink
Autoconfiscating dit!
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Jan 3, 2007
1 parent e607d62 commit b694790
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

bin_PROGRAMS = dit

my_dit_C_sources = dit.c Buffer.c CRT.c Clipboard.c DebugMemory.c Field.c \
FileReader.c FunctionBar.c Hashtable.c Highlight.c Line.c List.c Object.c \
Panel.c PatternMatcher.c Pool.c RichString.c ScreenManager.c Script.c \
Stack.c String.c StringBuffer.c TabManager.c Undo.c Vector.c Files.c

dit_SOURCES = $(my_dit_C_sources) config.h debug.h \
md5.c md5.h Prototypes.h Structures.h

Prototypes.h Structures.h: $(my_dit_C_sources)
scripts/GenHeaders

AM_CFLAGS = -std=c99
AM_CPPFLAGS = -DDATADIR=\"$(datadir)\"

40 changes: 40 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(dit, 0.1, loderunner@users.sf.net)
AC_CONFIG_SRCDIR([dit.c])
AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB([m], [pow])
AC_CHECK_LIB([ncurses], [use_default_colors])

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS([limits.h stdint.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME

# Checks for library functions.
AC_FUNC_CLOSEDIR_VOID
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_REALLOC
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_CHECK_FUNCS([gettimeofday memchr memmove memset mkdir putenv realpath regcomp strchr strdup strncasecmp strrchr strstr])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT

0 comments on commit b694790

Please sign in to comment.