IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9804


Ignore:
Timestamp:
Oct 30, 2006, 6:45:14 PM (20 years ago)
Author:
jhoblitt
Message:

code tidying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r9803 r9804  
    9898test "$prefix" = NONE && prefix=/usr/local
    9999
     100dnl ----------------- pthread support --------------------
     101
    100102dnl Check for how to link against pthreads
    101103dnl RHEL 4.0 was upset about the first arg to ACX_PTHREAD being NULL ([]) so
    102104dnl 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}"
    109105dnl PTHREAD_CFLAGS /must/ also be used in the linking of an exe.  Without
    110106dnl adding PTHREAD_CFLAGS into PSLIB_LIBS we can't link exes on Linux.
    111107dnl Basically this means the entire method of only linking psLib's deps in the
    112108dnl final exe or library is flawed.
    113 PSLIB_LIBS="${PSLIB_LIBS=} ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}"
     109
     110ACX_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)
    114115
    115116dnl ----------------- MYSQL options --------------------
    116117
    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   ]
     118AX_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"]
    123122)
    124123
Note: See TracChangeset for help on using the changeset viewer.