]> git.datanom.net - lensdb.git/commitdiff
start scanner
authorMichael Rasmussen <mir@datanom.net>
Wed, 23 Oct 2024 16:41:13 +0000 (18:41 +0200)
committerMichael Rasmussen <mir@datanom.net>
Wed, 23 Oct 2024 16:41:13 +0000 (18:41 +0200)
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Makefile.am
configure.ac
lib/Makefile.am [new file with mode: 0644]
lib/main.cpp [new file with mode: 0644]

index 325a4a99fa890f5bc95c9d1f5007be6cf86c4fb0..420aa244d03c5fa945f3370264d2083111ead7b2 100644 (file)
@@ -3,7 +3,8 @@ AUTOMAKE_OPTIONS = gnu
 ACLOCAL_AMFLAGS = -I m4
 
 SUBDIRS = \
-         src
+         src \
+         lib
 
 EXTRA_DIST = \
             AUTHORS \
index 25112f759b3ec48624e787964ec95a0131f613b7..42454960412b5530b5d74c2a1389ad05bc2a7248 100644 (file)
@@ -10,7 +10,6 @@ AC_CANONICAL_TARGET
 
 AC_CONFIG_SRCDIR([src/main.c])
 AM_INIT_AUTOMAKE([gnu no-dist-gzip dist-bzip2 1.10])
-AC_CONFIG_HEADERS([config.h])
 AM_MAINTAINER_MODE
 
 CFLAGS="-Wall"
@@ -32,14 +31,41 @@ AC_SUBST(GOBJECT_REQUIRED)
 AC_SUBST(GTK_REQUIRED)
 AC_SUBST(SQLITE3_REQUIRED)
 
+AC_CONFIG_HEADERS(config.h)
+
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+AC_PROG_CPP
 LT_INIT
 if test -n "$lt_prog_compiler_pic"; then
     CFLAGS="$CFLAGS $lt_prog_compiler_pic"
 fi
 
+AC_PROG_CXX
+AC_PATH_PROG(REAL_CXX, $CXX)
+HAVE_CXX=no
+if test -n "$REAL_CXX"; then
+       HAVE_CXX=yes
+fi
+
+AC_SYS_LARGEFILE
+
+enable_exif_scanner=yes
+AC_MSG_CHECKING([whether to build EXIF scanner])
+if test x"$HAVE_CXX" = xno; then
+       AC_MSG_RESULT(no)
+       AC_MSG_ERROR("Auto read EXIF cannot be built; missing $dependencies_missing")
+       enable_exif_scanner=no
+else
+       AC_MSG_RESULT(yes)
+fi
+
+AM_CONDITIONAL(BUILD_EXIF_SCANNER, test x"$enable_exif_scanner" != xno)
+
 PKG_PROG_PKG_CONFIG
 AC_LIB_PREFIX
 
@@ -69,11 +95,14 @@ AC_CHECK_HEADER([assert.h],
 # Checks for library functions.
 
 AC_CONFIG_FILES([
-                 Makefile
-                 src/Makefile
+               Makefile
+               src/Makefile
+               lib/Makefile
 ])
 
 AC_OUTPUT
+echo ""
+echo "$PACKAGE $VERSION"
 echo "
 Configuration:
 
@@ -81,3 +110,8 @@ Configuration:
         Compiler:               ${CC} $($CC -dumpversion)
         CFLAGS:                 ${CFLAGS}
 "
+echo ""
+echo "The binary will be installed in $prefix/bin"
+echo ""
+echo "Configure finished, type 'make' to build."
+
diff --git a/lib/Makefile.am b/lib/Makefile.am
new file mode 100644 (file)
index 0000000..bb28425
--- /dev/null
@@ -0,0 +1,17 @@
+AUTOMAKE_OPTIONS = gnu
+
+IFLAGS = \
+        -I${top_srcdir} \
+        -I${top_builddir}
+
+if BUILD_EXIF_SCANNER
+noinst_LIBRARIES = libscanner.a 
+
+libscanner_a_SOURCES = \
+                      main.cpp
+
+libscanner_a_LIBADD = \
+                     $(LIBOBJS) \
+                     $(ALLOCA)
+
+endif
diff --git a/lib/main.cpp b/lib/main.cpp
new file mode 100644 (file)
index 0000000..ad1d704
--- /dev/null
@@ -0,0 +1,3 @@
+ int main(int argc, char** argv) {
+        return 0;
+ }
This page took 0.52904 seconds and 5 git commands to generate.