summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b6b4e9)
raw | patch | inline | side by side (parent: 9b6b4e9)
author | Rekhesh Mohan <reks@iiap.res.in> | |
Mon, 2 Jul 2012 17:25:20 +0000 (22:55 +0530) | ||
committer | Rekhesh Mohan <reks@iiap.res.in> | |
Mon, 2 Jul 2012 17:25:20 +0000 (22:55 +0530) |
Makefile.am | patch | blob | history | |
configure.ac | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am
+++ b/Makefile.am
AUTOMAKE_OPTIONS = foreign 1.4
SUBDIRS = src
-dist_doc_DATA = README.txt AUTHORS.txt COPYING.txt ChangeLog.txt INSTALL.txt
+
+cadsdocdir = $(datadir)/cads/@PACKAGE@
+dist_cadsdoc_DATA = README.txt AUTHORS.txt COPYING.txt ChangeLog.txt INSTALL.txt
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
-AC_PREREQ([2.68])
AC_INIT([CADS_fits2jpeg], [1.0], [cads@iiap.res.in])
+AC_LANG_C
+AM_INIT_AUTOMAKE([-Wall -Werror])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
-AM_INIT_AUTOMAKE(CADS_fits2jpeg, 1.0)
# Checks for programs.
-AC_PROG_CXX
AC_PROG_CC
-AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
-AC_PROG_RANLIB
# Checks for libraries.
# Checks for header files.
-AC_CHECK_HEADERS([stdlib.h string.h])
+AC_CHECK_HEADERS([stdio.h stdlib.h string.h math.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_FUNC_MALLOC
-LIBS="$LIBS -lm -Wall -pedantic"
-
LIBS="$LIBS -L/usr/lib64 -L/usr/lib -lm -ljpeg -lcfitsio"
CFLAGS="-ansi $CFLAGS -I/usr/include -I/usr/include/cfitsio"
#---------------------------------------------------------------------#
diff --git a/src/Makefile.am b/src/Makefile.am
--- a/src/Makefile.am
+++ b/src/Makefile.am
bin_PROGRAMS = fits2jpeg
fits2jpeg_SOURCES = fits2jpeg.c getopt.c signal_handler.c
-# set the include path found by configure
-INCLUDES= $(all_includes)
-
-# the library search path.
-fits2jpeg_LDFLAGS = $(all_libraries)