configure

changeset 4
d8e8f34e65ee
parent 0
804d8803eade
--- a/configure	Fri Dec 11 11:46:19 2020 +0100
+++ b/configure	Fri Dec 11 18:32:54 2020 +0100
@@ -352,6 +352,28 @@
 	echo no
 	return 1
 }
+dependency_sqlite()
+{
+    printf "checking for sqlite... "
+    # dependency sqlite 
+    while true
+    do
+        if [ -z "$PKG_CONFIG" ]; then
+        	break
+        fi
+		$PKG_CONFIG sqlite3
+        if [ $? -ne 0 ] ; then
+            break
+        fi
+        CFLAGS="$CFLAGS `$PKG_CONFIG --cflags sqlite3`"
+        LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs sqlite3`"
+		echo yes
+        return 0
+    done
+	
+	echo no
+	return 1
+}
 dependency_gtk3()
 {
     printf "checking for gtk3... "
@@ -721,6 +743,31 @@
     echo "TK_LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk
 fi
 
+# Target: note
+CFLAGS=
+LDFLAGS=
+CXXFLAGS=
+
+dependency_sqlite
+if [ $? -ne 0 ]; then
+	DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED sqlite "
+	ERROR=1
+fi
+
+# Features
+
+
+echo >> $TEMP_DIR/config.mk
+if [ ! -z "${CFLAGS}" ]; then
+    echo "NOTE_CFLAGS  += $CFLAGS" >> $TEMP_DIR/config.mk
+fi
+if [ ! -z "${CXXFLAGS}" ]; then
+    echo "NOTE_CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk
+fi
+if [ ! -z "${LDFLAGS}" ]; then
+    echo "NOTE_LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk
+fi
+
 if [ $ERROR -ne 0 ]; then
 	echo
 	echo "Error: Unresolved dependencies"

mercurial