[gvfs] build: Simplify openpty check



commit d47e70ec0e80296a20aa42fc9fbade37235c1c75
Author: Ondrej Holy <oholy redhat com>
Date:   Thu Apr 12 08:21:44 2018 +0200

    build: Simplify openpty check
    
    This prevents two messages for openpty in meson output and should
    be equal.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=794365

 meson.build |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index a1df542..dd1ddfc 100644
--- a/meson.build
+++ b/meson.build
@@ -72,10 +72,7 @@ config_h.set('HAVE_SOCKETPAIR', have_socketpair,
 util_dep = cc.find_library('util', required: false)
 config_h.set('HAVE_UTIL_H', cc.has_header('util.h', dependencies: util_dep))
 
-have_openpty = cc.has_function('openpty')
-if not have_openpty
-  have_openpty = util_dep.found() and cc.has_function('openpty', dependencies: util_dep)
-endif
+have_openpty = cc.has_function('openpty', dependencies: util_dep)
 
 config_h.set('HAVE_OPENPTY', have_openpty,
              description: 'Define if you have the openpty function.')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]