Skip to content

Commit

Permalink
Do not use nested functions in AC_TRY_LINK (#3621)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Jan 4, 2016
1 parent 69ff31b commit 71c2207
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions configure.ac
Expand Up @@ -382,13 +382,12 @@ AC_TRY_LINK([
#endif
#include <omp.h>
#include <stdio.h>
], [int main() {
], [
int i;
#pragma omp parallel for private(i) schedule(dynamic)
for (i=0; i<16; i++)
printf("Thread %d\n", i);
return 0;
}
], [OMPCC="$CC$CFLAGS"; AC_MSG_RESULT([$OMPCC]); CONFIG_WITH_OPENMP=1],
[
if test -z "$OMPCC"; then
Expand Down

0 comments on commit 71c2207

Please sign in to comment.