summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaromil <jaromil@383723c8-4afa-0310-b8a8-b1afb83214fc>2001-07-16 18:35:27 (GMT)
committer jaromil <jaromil@383723c8-4afa-0310-b8a8-b1afb83214fc>2001-07-16 18:35:27 (GMT)
commit27eb464dca4899db0aebc28dcce24983b03524fc (patch)
treeec822cbc37684afd45455fbc67e8d30b437a4800
parent13e1a64f04b4797356f7b835088b8656c514e1dc (diff)
Initial revision
git-svn-id: svn://dyne.org/rastasoft/hasciicam@496 383723c8-4afa-0310-b8a8-b1afb83214fc
-rw-r--r--Hasciicam 0.9/config.h.in21
-rw-r--r--Hasciicam 0.9/configure.in64
2 files changed, 85 insertions, 0 deletions
diff --git a/Hasciicam 0.9/config.h.in b/Hasciicam 0.9/config.h.in
new file mode 100644
index 0000000..347fcc4
--- /dev/null
+++ b/Hasciicam 0.9/config.h.in
@@ -0,0 +1,21 @@
+/* config.h.in. Generated automatically from configure.in by autoheader. */
+#undef HAVE_LINUX
+#undef HAVE_SGI
+
+/* Define if you have the <jpeglib.h> header file. */
+#undef HAVE_JPEGLIB_H
+
+/* Define if you have the <linux/videodev.h> header file. */
+#undef HAVE_LINUX_VIDEODEV_H
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Version number of package */
+#undef VERSION
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
diff --git a/Hasciicam 0.9/configure.in b/Hasciicam 0.9/configure.in
new file mode 100644
index 0000000..709ddc2
--- /dev/null
+++ b/Hasciicam 0.9/configure.in
@@ -0,0 +1,64 @@
+dnl Process this file with autoconf to produce a configure script.
+
+AC_INIT
+AC_CONFIG_SRCDIR([hasciicam.c])
+
+AC_CANONICAL_HOST
+AC_PROG_MAKE_SET
+AC_PROG_INSTALL
+
+dnl Setup for automake
+AM_SANITY_CHECK
+AM_INIT_AUTOMAKE(HasciiCam, 0.9)
+AM_CONFIG_HEADER(config.h)
+
+dnl Get the operating system and version number...
+uname=`uname`
+uversion=`uname -r | sed -e 's/-.*$//g;s/[\.]//g'`
+
+dnl Check for tools
+AC_PROG_CC
+AC_PROG_RANLIB
+
+dnl Add the local include path and some flags
+CFLAGS="$CFLAGS -O3 -I/usr/local/include -ffast-math"
+
+dnl Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS(linux/videodev.h jpeglib.h)
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+
+dnl Checks for library functions
+dnl AC_FUNC_MMAP
+
+AC_CHECK_LIB(aa,aa_init, have_aa=yes, [
+ echo
+ echo "!!!!!!! AALIB IS NOT FOUND ON THIS SYSTEM !!!!!!!"
+ echo "AALib is needed in order to compile hasciicam"
+ echo "no panic, that's a easy task. Just download the"
+ echo "libsfrom http://ascii.dyne.org and install them."
+ echo "If you did so and still get this error message,"
+ echo "make sure thatlibaa.so is present in your library"
+ echo "path - /etc/ld.so.conf - and that you succesfully"
+ echo "runned ldconfig after installation."
+ echo
+ exit 0;
+])
+
+if test "$uname" = "IRIX"; then
+ AC_DEFINE(HAVE_SGI)
+ SGI_SOURCES="resample.c"
+else
+ AC_DEFINE(HAVE_LINUX)
+ SGI_SOURCES=""
+fi
+
+AC_SUBST(SGI_SOURCES)
+
+CFLAGS="$CFLAGS"
+LIBS="$LIBS -laa -ljpeg"
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT