[libgit2-glib] Check for availability of termios.h for clone example
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Check for availability of termios.h for clone example
- Date: Fri, 12 Sep 2014 07:05:08 +0000 (UTC)
commit a76152e2e1992a013a53105a95d16f4617ac0c28
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Fri Sep 12 09:04:57 2014 +0200
Check for availability of termios.h for clone example
configure.ac | 6 ++++++
examples/Makefile.am | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 63bee7c..7134abd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -150,6 +150,12 @@ AM_CONDITIONAL(ENABLE_PYTHON, test x"$enable_python" = "xyes")
# Vala
VAPIGEN_CHECK
+AC_CHECK_HEADER([termios.h],
+ [has_termios=yes],
+ [has_termios=no])
+
+AM_CONDITIONAL(HAS_TERMIOS, test x"$has_termios" = "xyes")
+
GNOME_COMPILE_WARNINGS([maximum])
AC_OUTPUT([
diff --git a/examples/Makefile.am b/examples/Makefile.am
index d21f1ea..a3267b3 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -11,8 +11,10 @@ EXAMPLE_PROGS += walk
walk_SOURCES = walk.c
walk_LDADD = $(progs_ldadd)
+if HAS_TERMIOS
EXAMPLE_PROGS += clone
clone_SOURCES = clone.c
clone_LDADD = $(progs_ldadd)
+endif
# ex:set ts=8 noet:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]