{"action":"created","comment":{"url":"https://api.github.com/repos/mesonbuild/libxml2/pulls/comments/31565170","id":31565170,"diff_hunk":"@@ -0,0 +1,144 @@\n+project('libxml2', 'c')\n+\n+cdata = configuration_data()\n+\n+cc = meson.get_compiler('c')\n+\n+checked_headers = [\n+  ['ansidecl.h', 'HAVE_ANSIDECL_H'],\n+  ['ctype.h', 'HAVE_CTYPE_H'],\n+  ['dirent.h', 'HAVE_DIRENT_H'],\n+  ['dlfcn.h', 'HAVE_DLFCN_H'],\n+  ['dl.h', 'HAVE_DL_H'],\n+  ['errno.h', 'HAVE_ERRNO_H'],\n+  ['fcntl.h', 'HAVE_FCNTL_H'],\n+  ['float.h', 'HAVE_FLOAT_H'],\n+  ['ieeefp.h', 'HAVE_IEEEFP_H'],\n+  ['malloc.h', 'HAVE_MALLOC_H'],\n+  ['math.h', 'HAVE_MATH_H'],\n+  ['memory.h', 'HAVE_MEMORY_H'],\n+  ['nan.h', 'HAVE_NAN_H'],\n+  ['netdb.h', 'HAVE_NETDB_H'],\n+  ['netinet/in.h', 'HAVE_NETINET_IN_H'],\n+  ['poll.h', 'HAVE_POLL_H'],\n+  ['pthread.h', 'HAVE_PTHREAD_H'],\n+  ['resolv.h', 'HAVE_RESOLV_H'],\n+  ['signal.h', 'HAVE_SIGNAL_H'],\n+  ['stdarg.h', 'HAVE_STDARG_H'],\n+  ['stdint.h', 'HAVE_STDINT_H'],\n+  ['stdlib.h', 'HAVE_STDLIB_H'],\n+  ['strings.h', 'HAVE_STRINGS_H'],\n+  ['sys/dir.h', 'HAVE_SYS_DIR_H'],\n+  ['sys/mman.h', 'HAVE_SYS_MMAN_H'],\n+  ['sys/ndir.h', 'HAVE_SYS_NDIR_H'],\n+  ['sys/select.h', 'HAVE_SYS_SELECT_H'],\n+  ['sys/socket.h', 'HAVE_SYS_SOCKET_H'],\n+  ['sys/stat.h', 'HAVE_SYS_STAT_H'],\n+  ['sys/timeb.h', 'HAVE_SYS_TIMEB_H'],\n+  ['sys/time.h', 'HAVE_SYS_TIME_H'],\n+  ['sys/types.h', 'HAVE_SYS_TYPES_H'],\n+  ['time.h', 'HAVE_TIME_H'],\n+  ['unistd.h', 'HAVE_UNISTD_H'],\n+]\n+\n+foreach h : checked_headers\n+  if cc.has_header(h.get(0))\n+    cdata.set(h.get(1), 1)\n+  endif\n+endforeach\n+\n+cdata.set('ICONV_CONST', '')\n+cdata.set('SEND_ARG2_CAST', '')\n+cdata.set('GETHOSTBYNAME_ARG_CAST', '')\n+\n+exe_ldflags = []\n+\n+iconv_lib = find_library('iconv', required : false)\n+\n+if cc.compiles('''#include<stdarg.h>\n+va_list ap1, ap2;\n+void func() {\n+  va_copy(ap1, ap2);\n+}\n+''')\n+  cdata.set('HAVE_VA_COPY', 1)\n+elif cc.compiles('''#include<stdarg.h>\n+va_list ap1, ap2;\n+void func() {\n+  __va_copy(ap1, ap2);\n+}\n+''')\n+  cdata.set('HAVE___VA_COPY', 1)\n+endif\n+\n+configure_file(input : 'config.h.meson',\n+output : 'config.h',","path":"meson.build","position":75,"original_position":75,"commit_id":"11d2921f81f0cb5c02c6f88cb51bf5d4a3cc83d5","original_commit_id":"11d2921f81f0cb5c02c6f88cb51bf5d4a3cc83d5","user":{"login":"ignatenkobrain","id":2866862,"avatar_url":"https://avatars.githubusercontent.com/u/2866862?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatenkobrain","html_url":"https://github.com/ignatenkobrain","followers_url":"https://api.github.com/users/ignatenkobrain/followers","following_url":"https://api.github.com/users/ignatenkobrain/following{/other_user}","gists_url":"https://api.github.com/users/ignatenkobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatenkobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatenkobrain/subscriptions","organizations_url":"https://api.github.com/users/ignatenkobrain/orgs","repos_url":"https://api.github.com/users/ignatenkobrain/repos","events_url":"https://api.github.com/users/ignatenkobrain/events{/privacy}","received_events_url":"https://api.github.com/users/ignatenkobrain/received_events","type":"User","site_admin":false},"body":"indent","created_at":"2015-06-02T20:09:28Z","updated_at":"2015-06-02T20:09:28Z","html_url":"https://github.com/mesonbuild/libxml2/pull/1#discussion_r31565170","pull_request_url":"https://api.github.com/repos/mesonbuild/libxml2/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/mesonbuild/libxml2/pulls/comments/31565170"},"html":{"href":"https://github.com/mesonbuild/libxml2/pull/1#discussion_r31565170"},"pull_request":{"href":"https://api.github.com/repos/mesonbuild/libxml2/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/mesonbuild/libxml2/pulls/1","id":36764579,"html_url":"https://github.com/mesonbuild/libxml2/pull/1","diff_url":"https://github.com/mesonbuild/libxml2/pull/1.diff","patch_url":"https://github.com/mesonbuild/libxml2/pull/1.patch","issue_url":"https://api.github.com/repos/mesonbuild/libxml2/issues/1","number":1,"state":"open","locked":false,"title":"Created build definitions for libxml2.","user":{"login":"jpakkane","id":4079821,"avatar_url":"https://avatars.githubusercontent.com/u/4079821?v=3","gravatar_id":"","url":"https://api.github.com/users/jpakkane","html_url":"https://github.com/jpakkane","followers_url":"https://api.github.com/users/jpakkane/followers","following_url":"https://api.github.com/users/jpakkane/following{/other_user}","gists_url":"https://api.github.com/users/jpakkane/gists{/gist_id}","starred_url":"https://api.github.com/users/jpakkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpakkane/subscriptions","organizations_url":"https://api.github.com/users/jpakkane/orgs","repos_url":"https://api.github.com/users/jpakkane/repos","events_url":"https://api.github.com/users/jpakkane/events{/privacy}","received_events_url":"https://api.github.com/users/jpakkane/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-02T19:24:22Z","updated_at":"2015-06-02T20:09:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4f380d9eb864fe9b250cd8138d24cd42978fd9c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mesonbuild/libxml2/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mesonbuild/libxml2/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mesonbuild/libxml2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mesonbuild/libxml2/issues/1/comments","statuses_url":"https://api.github.com/repos/mesonbuild/libxml2/statuses/11d2921f81f0cb5c02c6f88cb51bf5d4a3cc83d5","head":{"label":"jpakkane:2.9.2","ref":"2.9.2","sha":"11d2921f81f0cb5c02c6f88cb51bf5d4a3cc83d5","user":{"login":"jpakkane","id":4079821,"avatar_url":"https://avatars.githubusercontent.com/u/4079821?v=3","gravatar_id":"","url":"https://api.github.com/users/jpakkane","html_url":"https://github.com/jpakkane","followers_url":"https://api.github.com/users/jpakkane/followers","following_url":"https://api.github.com/users/jpakkane/following{/other_user}","gists_url":"https://api.github.com/users/jpakkane/gists{/gist_id}","starred_url":"https://api.github.com/users/jpakkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpakkane/subscriptions","organizations_url":"https://api.github.com/users/jpakkane/orgs","repos_url":"https://api.github.com/users/jpakkane/repos","events_url":"https://api.github.com/users/jpakkane/events{/privacy}","received_events_url":"https://api.github.com/users/jpakkane/received_events","type":"User","site_admin":false},"repo":{"id":36756101,"name":"libxml2","full_name":"jpakkane/libxml2","owner":{"login":"jpakkane","id":4079821,"avatar_url":"https://avatars.githubusercontent.com/u/4079821?v=3","gravatar_id":"","url":"https://api.github.com/users/jpakkane","html_url":"https://github.com/jpakkane","followers_url":"https://api.github.com/users/jpakkane/followers","following_url":"https://api.github.com/users/jpakkane/following{/other_user}","gists_url":"https://api.github.com/users/jpakkane/gists{/gist_id}","starred_url":"https://api.github.com/users/jpakkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpakkane/subscriptions","organizations_url":"https://api.github.com/users/jpakkane/orgs","repos_url":"https://api.github.com/users/jpakkane/repos","events_url":"https://api.github.com/users/jpakkane/events{/privacy}","received_events_url":"https://api.github.com/users/jpakkane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jpakkane/libxml2","description":"Meson build files for libxml2","fork":true,"url":"https://api.github.com/repos/jpakkane/libxml2","forks_url":"https://api.github.com/repos/jpakkane/libxml2/forks","keys_url":"https://api.github.com/repos/jpakkane/libxml2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpakkane/libxml2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpakkane/libxml2/teams","hooks_url":"https://api.github.com/repos/jpakkane/libxml2/hooks","issue_events_url":"https://api.github.com/repos/jpakkane/libxml2/issues/events{/number}","events_url":"https://api.github.com/repos/jpakkane/libxml2/events","assignees_url":"https://api.github.com/repos/jpakkane/libxml2/assignees{/user}","branches_url":"https://api.github.com/repos/jpakkane/libxml2/branches{/branch}","tags_url":"https://api.github.com/repos/jpakkane/libxml2/tags","blobs_url":"https://api.github.com/repos/jpakkane/libxml2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpakkane/libxml2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpakkane/libxml2/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpakkane/libxml2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpakkane/libxml2/statuses/{sha}","languages_url":"https://api.github.com/repos/jpakkane/libxml2/languages","stargazers_url":"https://api.github.com/repos/jpakkane/libxml2/stargazers","contributors_url":"https://api.github.com/repos/jpakkane/libxml2/contributors","subscribers_url":"https://api.github.com/repos/jpakkane/libxml2/subscribers","subscription_url":"https://api.github.com/repos/jpakkane/libxml2/subscription","commits_url":"https://api.github.com/repos/jpakkane/libxml2/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpakkane/libxml2/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpakkane/libxml2/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpakkane/libxml2/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpakkane/libxml2/contents/{+path}","compare_url":"https://api.github.com/repos/jpakkane/libxml2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpakkane/libxml2/merges","archive_url":"https://api.github.com/repos/jpakkane/libxml2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpakkane/libxml2/downloads","issues_url":"https://api.github.com/repos/jpakkane/libxml2/issues{/number}","pulls_url":"https://api.github.com/repos/jpakkane/libxml2/pulls{/number}","milestones_url":"https://api.github.com/repos/jpakkane/libxml2/milestones{/number}","notifications_url":"https://api.github.com/repos/jpakkane/libxml2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpakkane/libxml2/labels{/name}","releases_url":"https://api.github.com/repos/jpakkane/libxml2/releases{/id}","created_at":"2015-06-02T19:19:39Z","updated_at":"2015-06-02T18:05:37Z","pushed_at":"2015-06-02T20:06:54Z","git_url":"git://github.com/jpakkane/libxml2.git","ssh_url":"git@github.com:jpakkane/libxml2.git","clone_url":"https://github.com/jpakkane/libxml2.git","svn_url":"https://github.com/jpakkane/libxml2","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mesonbuild:2.9.2","ref":"2.9.2","sha":"981f53f2ebb27173b880e24bf45defe7f91c2e85","user":{"login":"mesonbuild","id":12551236,"avatar_url":"https://avatars.githubusercontent.com/u/12551236?v=3","gravatar_id":"","url":"https://api.github.com/users/mesonbuild","html_url":"https://github.com/mesonbuild","followers_url":"https://api.github.com/users/mesonbuild/followers","following_url":"https://api.github.com/users/mesonbuild/following{/other_user}","gists_url":"https://api.github.com/users/mesonbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/mesonbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesonbuild/subscriptions","organizations_url":"https://api.github.com/users/mesonbuild/orgs","repos_url":"https://api.github.com/users/mesonbuild/repos","events_url":"https://api.github.com/users/mesonbuild/events{/privacy}","received_events_url":"https://api.github.com/users/mesonbuild/received_events","type":"Organization","site_admin":false},"repo":{"id":36751927,"name":"libxml2","full_name":"mesonbuild/libxml2","owner":{"login":"mesonbuild","id":12551236,"avatar_url":"https://avatars.githubusercontent.com/u/12551236?v=3","gravatar_id":"","url":"https://api.github.com/users/mesonbuild","html_url":"https://github.com/mesonbuild","followers_url":"https://api.github.com/users/mesonbuild/followers","following_url":"https://api.github.com/users/mesonbuild/following{/other_user}","gists_url":"https://api.github.com/users/mesonbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/mesonbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesonbuild/subscriptions","organizations_url":"https://api.github.com/users/mesonbuild/orgs","repos_url":"https://api.github.com/users/mesonbuild/repos","events_url":"https://api.github.com/users/mesonbuild/events{/privacy}","received_events_url":"https://api.github.com/users/mesonbuild/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesonbuild/libxml2","description":"Meson build files for libxml2","fork":false,"url":"https://api.github.com/repos/mesonbuild/libxml2","forks_url":"https://api.github.com/repos/mesonbuild/libxml2/forks","keys_url":"https://api.github.com/repos/mesonbuild/libxml2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesonbuild/libxml2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesonbuild/libxml2/teams","hooks_url":"https://api.github.com/repos/mesonbuild/libxml2/hooks","issue_events_url":"https://api.github.com/repos/mesonbuild/libxml2/issues/events{/number}","events_url":"https://api.github.com/repos/mesonbuild/libxml2/events","assignees_url":"https://api.github.com/repos/mesonbuild/libxml2/assignees{/user}","branches_url":"https://api.github.com/repos/mesonbuild/libxml2/branches{/branch}","tags_url":"https://api.github.com/repos/mesonbuild/libxml2/tags","blobs_url":"https://api.github.com/repos/mesonbuild/libxml2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesonbuild/libxml2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesonbuild/libxml2/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesonbuild/libxml2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesonbuild/libxml2/statuses/{sha}","languages_url":"https://api.github.com/repos/mesonbuild/libxml2/languages","stargazers_url":"https://api.github.com/repos/mesonbuild/libxml2/stargazers","contributors_url":"https://api.github.com/repos/mesonbuild/libxml2/contributors","subscribers_url":"https://api.github.com/repos/mesonbuild/libxml2/subscribers","subscription_url":"https://api.github.com/repos/mesonbuild/libxml2/subscription","commits_url":"https://api.github.com/repos/mesonbuild/libxml2/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesonbuild/libxml2/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesonbuild/libxml2/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesonbuild/libxml2/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesonbuild/libxml2/contents/{+path}","compare_url":"https://api.github.com/repos/mesonbuild/libxml2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesonbuild/libxml2/merges","archive_url":"https://api.github.com/repos/mesonbuild/libxml2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesonbuild/libxml2/downloads","issues_url":"https://api.github.com/repos/mesonbuild/libxml2/issues{/number}","pulls_url":"https://api.github.com/repos/mesonbuild/libxml2/pulls{/number}","milestones_url":"https://api.github.com/repos/mesonbuild/libxml2/milestones{/number}","notifications_url":"https://api.github.com/repos/mesonbuild/libxml2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesonbuild/libxml2/labels{/name}","releases_url":"https://api.github.com/repos/mesonbuild/libxml2/releases{/id}","created_at":"2015-06-02T18:05:37Z","updated_at":"2015-06-02T18:05:37Z","pushed_at":"2015-06-02T20:06:54Z","git_url":"git://github.com/mesonbuild/libxml2.git","ssh_url":"git@github.com:mesonbuild/libxml2.git","clone_url":"https://github.com/mesonbuild/libxml2.git","svn_url":"https://github.com/mesonbuild/libxml2","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mesonbuild/libxml2/pulls/1"},"html":{"href":"https://github.com/mesonbuild/libxml2/pull/1"},"issue":{"href":"https://api.github.com/repos/mesonbuild/libxml2/issues/1"},"comments":{"href":"https://api.github.com/repos/mesonbuild/libxml2/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mesonbuild/libxml2/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mesonbuild/libxml2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mesonbuild/libxml2/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mesonbuild/libxml2/statuses/11d2921f81f0cb5c02c6f88cb51bf5d4a3cc83d5"}}}}