aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorSpacedio <spacedio@thernusen.net>2026-02-26 19:20:14 -0500
committerSpacedio <spacedio@thernusen.net>2026-02-26 19:20:14 -0500
commitdb657412e6ae93341ed42d59df6aef564a739a1f (patch)
tree6f67f55f6dc61fb0afa8829a950f0dbf1a0aeadf /configure.ac
downloadlightdm-mini-greeter-db657412e6ae93341ed42d59df6aef564a739a1f.tar.gz
Initial commit after cloneHEADmaster
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..a71ba3a
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,31 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
+AC_INIT([lightdm-mini-greeter], [0.6.0], [http://github.com/prikhi])
+AC_CONFIG_SRCDIR([src/main.c])
+AC_CONFIG_HEADERS([defines.h])
+
+# Checks for programs.
+AC_PROG_CC
+AM_INIT_AUTOMAKE([subdir-objects])
+
+# Checks for libraries.
+PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.14)
+PKG_CHECK_MODULES(LIGHTDM, liblightdm-gobject-1 >= 1.12)
+
+# Checks for header files.
+AC_CHECK_HEADERS([stdlib.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+
+# Checks for library functions.
+
+# Check if liblightdm is v1.19.1 or below for debian builds
+LDM_CHECK=$(pkg-config --max-version=1.19.1 liblightdm-gobject-1)
+AS_IF([test $? = 0],
+ [AC_DEFINE([LIGHTDM_1_19_1_LOWER], [], [Defined if liblightdm is version 1.19.1 or lower])]
+ )
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT