Changeset 5e43b8b for configure.in


Ignore:
Timestamp:
03/25/15 17:02:33 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
16cb2a2
Parents:
f01c479
Message:

Add check for existance of pthread_setname_np()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r6c09048 r5e43b8b  
    398398AC_CHECK_LIB(pthread, pthread_create, have_pthread=1, have_pthread=0)
    399399
     400AC_CHECK_LIB(pthread, pthread_setname_np, have_pthread_setname_np=1, have_pthread_setname_np=0)
     401
    400402# Check for ncurses
    401403
     
    438440        LIBWANDIO_LIBS="$LIBWANDIO_LIBS -lpthread"
    439441        AC_DEFINE(HAVE_LIBPTHREAD, 1, [Set to 1 if pthreads are supported])
     442fi
     443
     444if test "$have_pthread_setname_np" = 1; then
     445        AC_DEFINE(HAVE_PTHREAD_SETNAME_NP, 1, [Set to 1 if pthread_setname_np is found])
    440446fi
    441447
Note: See TracChangeset for help on using the changeset viewer.