#!/bin/bash # # Checks if -fPIC is supported, and if so turns it on. # # Sets: # HAVE_PIC # CPPFLAGS # function checks { if mkl_compile_check PIC HAVE_PIC disable CC "-fPIC" "" ; then mkl_mkvar_append CPPFLAGS CPPFLAGS "-fPIC" fi }