Home
last modified time | relevance | path

Searched refs:checkLink (Results 1 – 18 of 18) sorted by relevance

/petsc/config/BuildSystem/config/
H A Dfunctions.py77 found = self.checkLink(includes, body, examineOutput=examineOutput)
108 …if self.checkLink('#include <stdio.h>\n#include <stdarg.h>\n', 'va_list Argp = { 0 };char str[6];\…
115 …if not self.checkLink('#include <signal.h>\nstatic void myhandler(int sig) { (void)sig; }\n', 'sig…
124 if self.checkLink('#include <stdlib.h>\n', 'int ierr; void *p; ierr = free(p); return ierr'):
130 if self.checkLink('#include <stdarg.h>\n', ' va_list l1, l2;\n va_copy(l1, l2)'):
132 elif self.checkLink('#include <stdarg.h>\n', ' va_list l1, l2;\n __va_copy(l1, l2)'):
138 …if self.checkLink('#include <time.h>','struct timespec tp;\n tp.tv_sec = 0;\n tp.tv_nsec = (long)(…
144 …if self.checkLink('#include <string.h>',' char c1[1], c2[1] = "c";\n size_t n=1;\n memmove(c1,c2,n…
150 …if self.checkLink('#include <sys/mman.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include …
156 …if self.checkLink('#define _XOPEN_SOURCE 600\n#include <stdlib.h>\n#include <string.h>', 'char fil…
[all …]
H A Dlibraries.py285 if found and self.checkLink(includes, body, linkLanguage=linklang, examineOutput=examineOutput):
411 …def checkShared(self, includes, initFunction, checkFunction, finiFunction = None, checkLink = None… argument
418 if checkLink is None:
419 checkLink = self.checkLink
422 if hasattr(checkLink, '__self__'):
423 configObj = checkLink.__self__
451 …if not checkLink(includes, body, cleanup = 0, codeBegin = codeBegin, codeEnd = codeEnd, shared = 1…
475 …if not checkLink(includes, body, cleanup = 0, codeBegin = codeBegin, codeEnd = codeEnd, shared = 1…
555 …def checkExportedSymbols(self, flags, checkLink = None, libraries = [], defaultArg = '', executor … argument
H A DcompilersFortran.py113 if self.checkLink(body=' call '+baseName+'(6)'):
136 if self.checkLink(body = '''
180 …if self.checkLink(body = ' INTEGER, PARAMETER :: int = SELECTED_INT_KIND(8); …
191 if self.checkLink(body = '''
208 …if self.checkLink(body = ' INTEGER, PARAMETER :: int = SELECTED_INT_KIND(8); …
221 if self.fortranIsF90 and self.checkLink(codeBegin = '''
395 if not self.checkLink(None, fcode):
H A Dpython.py40 if self.checkLink(includes, body, cleanup, codeBegin, codeEnd, shared):
86 …lude <Python.h>\n', 'Py_Initialize', 'Py_IsInitialized', 'Py_Finalize', checkLink = self.checkPyth…
H A Dtypes.py80 if self.checkLink(includes, body):
93 if self.checkLink(includes, body):
H A Dcompilers.py162 found = self.checkLink("", func2,codeBegin = " ", codeEnd = " ")
384 …if self.checkLink('#include <dlfcn.h>\nchar *libname;\n', 'dlopen(libname, RTLD_LAZY);dlopen(libna…
390 if self.checkLink('#include <dlfcn.h>\nchar *libname;\n', 'dlopen(libname, RTLD_LAZY)'):
392 if self.checkLink('#include <dlfcn.h>\nchar *libname;\n', 'dlopen(libname, RTLD_NOW)'):
394 if self.checkLink('#include <dlfcn.h>\nchar *libname;\n', 'dlopen(libname, RTLD_LOCAL)'):
396 if self.checkLink('#include <dlfcn.h>\nchar *libname;\n', 'dlopen(libname, RTLD_GLOBAL)'):
398 if self.checkLink('#include <dlfcn.h>\nchar *libname;\n', 'dlopen(libname, RTLD_NOLOAD)'):
775 found = self.checkLink(None, ffunc)
860 if self.checkLink(body=' use mpi\n call MPI_Allreduce()\n'):
862 elif self.checkLink(includes='#include <mpif.h>',body=' call MPI_Allreduce()\n'):
H A DsetCompilers.py1223 if not self.checkLink(linkLanguage=linkLanguage,includes=includes,body=body):
1231 if self.checkLink(linkLanguage=linkLanguage):
2063 …acceptedPIC = self.checkLink(includes = includeLine, body = None, codeBegin = '', codeEnd = '', cl…
2224 success = self.checkLink('extern int foo(int);', ' int b = foo(1); (void)b')
2228 success = self.checkLink('extern int foo(int);', ' int b = foo(1); (void)b')
2365 …if self.checkLink(includes = _picTestIncludes(dllexport), codeBegin = '', codeEnd = '', cleanup = …
2369 …accepted = self.checkLink(includes = dllimport+'int foo(void);', body = 'int ret = foo();\nif (ret…
2507 if self.checkLink(includes = code, codeBegin = '', codeEnd = '', shared = 1):
2513 if self.checkLink(includes = code, codeBegin = '', codeEnd = '', shared = 1):
2565 …if self.checkLink(includes = '#include <stdio.h>\nint '+testMethod+'(void) {printf("test");return …
[all …]
H A Dbase.py627 …def checkLink(self, includes = '', body = '', cleanup = 1, codeBegin = None, codeEnd = None, share… member in Configure
647 if not self.checkLink(includes, body, cleanup = 0, linkLanguage=linkLanguage): return ('', 1)
H A Dframework.py1184 …if not self.checkLink('\n'.join(self.batchIncludes)+'\n', '\n'.join(body), cleanup = 0, codeBegin …
H A Dpackage.py985 result = self.checkLink(includes, body, cleanup, codeBegin, codeEnd, shared)
/petsc/config/PETSc/options/
H A DscalarTypes.py59 …if self.checkLink('#include <math.h>\n#include <complex>\n','double b = 2.0;int a = isnormal(b);(v…
61 …if self.checkLink('#include <math.h>\n#include <complex>\n','double b = 2.0;int a = isnan(b);(void…
63 …elif self.checkLink('#include <float.h>\n#include <complex>\n','double b = 2.0;int a = _isnan(b);(…
65 …if self.checkLink('#include <math.h>\n#include <complex>\n','double b = 2.0;int a = isinf(b);(void…
67 …elif self.checkLink('#include <float.h>\n#include <complex>\n','double b = 2.0;int a = _finite(b);…
70 if self.checkLink('#include <math.h>\n','double b = 2.0; int a = isnormal(b);(void)a'):
72 if self.checkLink('#include <math.h>\n','double b = 2.0; int a = isnan(b);(void)a'):
74 elif self.checkLink('#include <float.h>\n','double b = 2.0;int a = _isnan(b);(void)a'):
76 if self.checkLink('#include <math.h>\n','double b = 2.0; int a = isinf(b);(void)a'):
78 elif self.checkLink('#include <float.h>\n','double b = 2.0;int a = _finite(b);(void)a'):
/petsc/config/BuildSystem/config/utilities/
H A Dmissing.py72 if self.checkLink('#include <Winsock2.h>','closesocket(0)'):
74 if self.checkLink('#include <Winsock2.h>','WSAGetLastError()'):
76 …if not self.checkLink('#include <stdio.h>\nchar *lineptr;\nsize_t n;\nFILE *stream;\n', 'getline(&…
109 if not (self.checkLink(head,code('size_t')) or self.checkLink(head,code('int'))):
131 if not self.checkLink(head,code):
/petsc/config/BuildSystem/config/packages/
H A DMPI.py182 …Shared('#include <mpi.h>\n','MPI_Init','MPI_Initialized','MPI_Finalize',checkLink = self.checkPack…
403 if not self.checkLink('#include <mpi.h>\n',
416 …if not self.checkLink('#include <mpi.h>\n', 'int count=2; int blocklens[2]={0,1}; MPI_Aint indices…
419 …if not self.checkLink('#include <mpi.h>\n', 'MPI_Comm_errhandler_fn * p_err_fun = 0; MPI_Errhandle…
421 …if not self.checkLink('#include <mpi.h>\n', 'if (MPI_Comm_set_errhandler(MPI_COMM_WORLD,MPI_ERRORS…
423 …if self.checkLink('#include <mpi.h>\n', 'if (MPI_Reduce_local(0, 0, 0, MPI_INT, MPI_SUM)) { }\n'):…
426 …if self.checkLink('#include <mpi.h>\n', 'char version[MPI_MAX_LIBRARY_VERSION_STRING];int verlen;i…
429 …if self.checkLink('#include <mpi.h>\n', 'int base[100]; MPI_Win win = 0; if (MPI_Win_create(base,1…
431 …if not self.checkLink('#include <mpi.h>\n', 'int ptr[1] = {0}; MPI_Win win = 0; if (MPI_Accumulate…
437 …if self.checkLink('#include <mpi.h>\n', 'int provided; if (MPI_Init_thread(0,0,MPI_THREAD_FUNNELED…
[all …]
H A Dconcurrencykit.py39 if not self.checkLink(include, body):
H A DTetGen.py112 if not self.checkLink(include,body):
/petsc/config/PETSc/
H A DConfigure.py591 …if self.checkLink('#include <xmmintrin.h>', 'void *v = 0;_mm_prefetch((const char*)v,_MM_HINT_NTA)…
608 elif self.checkLink('#include <xmmintrin.h>', 'void *v = 0;_mm_prefetch(v,_MM_HINT_NTA);\n'):
615 elif self.checkLink('', 'void *v = 0;__builtin_prefetch(v,0,0);\n'):
650 …if self.checkLink('#define _POSIX_C_SOURCE 200112L\n#include <stdlib.h>','long v = atoll("25");\n(…
655 …if self.checkLink('#if defined(__has_feature)\n#if !__has_feature(address_sanitizer)\nGarbage\n#en…
657 elif self.checkLink('#if !defined(__SANITIZE_ADDRESS__)\nGarbage\n#endif\n'):
666 …if self.checkLink('__attribute((unused)) static int myfunc(__attribute((unused)) void *name){ retu…
748 if self.checkLink('', 'if (__builtin_expect(0,1)) return 1;'):
759 if self.checkCompile('',code) and self.checkLink('',code):
864 if self.checkLink('#include <windows.h>','LoadLibrary(0)'):
[all …]
H A Dpetsc.py268 if self.checkLink(includes, body, cleanup, codeBegin, codeEnd, shared):
311 …petscsys.h>\n', 'PetscInitialize', 'PetscInitialized', 'PetscFinalize', checkLink = self.checkPETS…
/petsc/doc/developers/
H A Dbuildsystem.md347 outputLink(), checkLink()