1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

build: check if a simple C program runs

This will be helpful for working out why AIX is failing
This commit is contained in:
Andrew Tridgell 2010-03-22 13:01:58 +11:00
parent 8bc9560822
commit 2239a52fec
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,8 @@
/* simple program to make sure the compiler is OK */
#include <stdio.h>
int main(void)
{
printf("Hello world\n");
return 0;
}

View File

@ -73,6 +73,15 @@ def configure(conf):
conf.env.DISABLE_SHARED = Options.options.disable_shared
# see if we can compile and run a simple C program
conf.CHECK_CODE('#include "test/simple.c"',
addmain=False,
define='HAVE_SIMPLE_C_PROG',
mandatory=True,
execute=True,
msg='Checking simple C program')
# check for rpath
if not conf.env.DISABLE_SHARED and conf.CHECK_RPATH_SUPPORT():
conf.env.RPATH_ON_BUILD = not Options.options.disable_rpath_build