Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -94,20 +94,20 @@ AX_CHECK_COMPILE_FLAG([-fno-strict-overflow], [CFLAGS="$CFLAGS -fno-strict-overflow"]) AC_DEFINE([_FORTIFY_SOURCE], [2], [Enable fortification]) dnl Enable OpenMP, if available tcl_nano_openmp='' -AX_CHECK_COMPILE_FLAG([-fopenmp], [ +AX_CHECK_LINK_FLAG([-fopenmp], [ tcl_nano_openmp='-fopenmp' ], [ - AX_CHECK_COMPILE_FLAG([-xopenmp], [ + AX_CHECK_LINK_FLAG([-xopenmp], [ tcl_nano_openmp='-xopenmp' ], [ - AX_CHECK_COMPILE_FLAG([-openmp], [ + AX_CHECK_LINK_FLAG([-openmp], [ tcl_nano_openmp='-openmp' ], [ - AX_CHECK_COMPILE_FLAG([/openmp], [ + AX_CHECK_LINK_FLAG([/openmp], [ tcl_nano_openmp='/openmp' ]) ]) ]) ])