Changeset 2c270e6 for configure.ac


Ignore:
Timestamp:
Jun 28, 2009, 6:34:25 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0982901
Parents:
94af438
git-author:
Nelson Elhage <nelhage@mit.edu> (06/28/09 13:46:57)
git-committer:
Nelson Elhage <nelhage@mit.edu> (06/28/09 18:34:25)
Message:
configure: Support an explicit --with{out,}-zephyr option.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rc50f589 r2c270e6  
    6464AC_CHECK_LIB(des425, des_cbc_encrypt,,AC_CHECK_LIB(crypto,DES_cbc_encrypt))
    6565AC_CHECK_LIB(resolv, res_search)
    66 dnl AC_CHECK_LIB(zephyr, ZGetSender,, AC_MSG_ERROR(No zephyr library found.))
    67 AC_CHECK_LIB(zephyr, ZGetSender)
    68 AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [], [Have ZInitLocationInfo]),)
     66
     67AC_ARG_WITH([zephyr],
     68  [AS_HELP_STRING([--with-libzephyr],
     69    [Disable Zephyr support])],
     70  [],
     71  [with_zephyr=check])
     72
     73AS_IF([test "x$with_zephyr" != xno],
     74  [AC_CHECK_LIB([zephyr], [ZGetSender],
     75   [AC_DEFINE([HAVE_LIBZEPHYR], [1],
     76                [Define if you have libzephyr])
     77    AC_CHECK_LIB([zephyr], [ZInitLocationInfo],
     78      AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [1],
     79                [Have ZInitLocationInfo]),)
     80   ],
     81   [if test "x$with_zephyr" != xcheck; then
     82      AC_MSG_FAILURE(
     83        [--with-libzephyr was given, but libzephyr does not seem to be available.])
     84    fi
     85   ])])
    6986
    7087AC_ARG_ENABLE([athstatic], AS_HELP_STRING([--enable-athstatic],
Note: See TracChangeset for help on using the changeset viewer.