Changeset feb3c9 in git for configure.ac


Ignore:
Timestamp:
Apr 23, 2014, 7:52:23 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
Children:
ca16501ab0af5c1d5e6b1103b65c74de187ec9ef
Parents:
ceb2ce7bee50c8aa45703b3f11ba1760318d349d
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-04-23 19:52:23+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-04-28 18:11:01+02:00
Message:
Complete build options for Pthread API: use AX_PTHREAD instead of AC_CHECK_LIB(pthread,pthread_create)

NOTE: this is due to https://github.com/Singular/Sources/issues/571
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rceb2ce rfeb3c9  
    5757
    5858# Checks for libraries.
    59 AC_CHECK_LIB(pthread,pthread_create)
     59#AC_CHECK_LIB(pthread,pthread_create)
     60AX_PTHREAD([], [
     61  AC_MSG_ERROR([Pthread library not found. Please set PTHREAD_CFLAGS and PTHREAD_LIBS correctly for your setup])
     62])
     63
     64AC_MSG_CHECKING([Found Pthread, PTHREAD_CC:])
     65AC_MSG_RESULT(${PTHREAD_CC:-unset})
     66AC_MSG_CHECKING([               PTHREAD_CFLAGS:])
     67AC_MSG_RESULT(${PTHREAD_CFLAGS:-unset})
     68AC_MSG_CHECKING([               PTHREAD_LIBS:])
     69AC_MSG_RESULT(${PTHREAD_LIBS:-unset})
     70
     71# Set the correct PTHREAD flags and, if needed, change the compiler to one that is pthread-enabled.
     72CC="$PTHREAD_CC"
     73PTHREAD_LDFLAGS="$PTHREAD_CFLAGS"
     74
     75AC_SUBST(PTHREAD_CFLAGS)
     76AC_SUBST(PTHREAD_LDFLAGS)
     77AC_SUBST(PTHREAD_LIBS)
     78AC_SUBST(CC)
     79
     80
    6081AC_CHECK_LIB(rt,clock_gettime)
    6182
Note: See TracChangeset for help on using the changeset viewer.