Changeset 9804
- Timestamp:
- Oct 30, 2006, 6:45:14 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/configure.ac (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.ac
r9803 r9804 98 98 test "$prefix" = NONE && prefix=/usr/local 99 99 100 dnl ----------------- pthread support -------------------- 101 100 102 dnl Check for how to link against pthreads 101 103 dnl RHEL 4.0 was upset about the first arg to ACX_PTHREAD being NULL ([]) so 102 104 dnl we've added in a worthless message to keep it happy 103 ACX_PTHREAD(104 [AC_MSG_RESULT([pthread support is available])],105 [AC_MSG_ERROR([pthread support is required to build psLib])]106 )107 108 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${PTHREAD_CFLAGS}"109 105 dnl PTHREAD_CFLAGS /must/ also be used in the linking of an exe. Without 110 106 dnl adding PTHREAD_CFLAGS into PSLIB_LIBS we can't link exes on Linux. 111 107 dnl Basically this means the entire method of only linking psLib's deps in the 112 108 dnl final exe or library is flawed. 113 PSLIB_LIBS="${PSLIB_LIBS=} ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}" 109 110 ACX_PTHREAD( 111 [PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${PTHREAD_CFLAGS}" 112 PSLIB_LIBS="${PSLIB_LIBS=} ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}"], 113 [AC_MSG_ERROR([pthread support is required to build psLib])] 114 ) 114 115 115 116 dnl ----------------- MYSQL options -------------------- 116 117 117 AX_LIB_MYSQL([4.1.2], [ 118 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${MYSQL_CFLAGS}" 119 PSLIB_LIBS="${PSLIB_LIBS=} ${MYSQL_LIBS}" 120 ], [ 121 PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DOMIT_PSDB" 122 ] 118 AX_LIB_MYSQL([4.1.2], 119 [PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${MYSQL_CFLAGS}" 120 PSLIB_LIBS="${PSLIB_LIBS=} ${MYSQL_LIBS}"], 121 [PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DOMIT_PSDB"] 123 122 ) 124 123
Note:
See TracChangeset
for help on using the changeset viewer.
