[geany/geany-plugins] 3adef4: scope: added waf check for openpty in pty.h or util.h, required

Dimitar Zhekov git-noreply at xxxxx
Tue Mar 3 15:43:39 UTC 2015


Branch:      refs/heads/master
Author:      Dimitar Zhekov <dimitar.zhekov at gmail.com>
Committer:   Dimitar Zhekov <dimitar.zhekov at gmail.com>
Date:        Tue, 03 Mar 2015 15:43:39 UTC
Commit:      3adef41d6ced6ce60a621a0cda94d3d79d7f8d3d
             https://github.com/geany/geany-plugins/commit/3adef41d6ced6ce60a621a0cda94d3d79d7f8d3d

Log Message:
-----------
scope: added waf check for openpty in pty.h or util.h, required
for -lutil. Should be used debugger too, since it checks only for
openpty in pty.h, even though util.h is supported in the source.


Modified Paths:
--------------
    scope/wscript_configure

Modified: scope/wscript_configure
10 lines changed, 10 insertions(+), 0 deletions(-)
===================================================================
@@ -27,3 +27,13 @@ if not target_is_win32(bld) :
 			     package='vte',
 			     uselib_store='VTE',
 			     args='--cflags --libs')
+	try :
+		conf.check_cc(function_name='openpty',
+			      header_name='pty.h',
+			      lib='util',
+			      uselib_store='UTIL')
+	except :
+		conf.check_cc(function_name='openpty',
+			      header_name='util.h',
+			      lib='util',
+			      uselib_store='UTIL')



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list