Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ntp/sntp/m4/ntp_libevent.m4
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | then | ||||
# HMS: I hope the following is accurate. | # HMS: I hope the following is accurate. | ||||
# We don't need -levent, we only need -levent_core. | # We don't need -levent, we only need -levent_core. | ||||
# While we could grab only the -L stuff, there *might* be | # While we could grab only the -L stuff, there *might* be | ||||
# other flags there we want. Originally we just removed -levent | # other flags there we want. Originally we just removed -levent | ||||
# but then somebody decided to install -levent-2.0 | # but then somebody decided to install -levent-2.0 | ||||
# LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` | # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` | ||||
# So now we dance... | # So now we dance... | ||||
LDADD_LIBEVENT= | LDADD_LIBEVENT= | ||||
for i in `$PKG_CONFIG --libs libevent` | for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads` | ||||
do | do | ||||
case "$i" in | case "$i" in | ||||
-D*) ;; | |||||
-levent*) ;; | -levent*) ;; | ||||
*) case "$LDADD_LIBEVENT" in | *) case "$LDADD_LIBEVENT" in | ||||
'') LDADD_LIBEVENT="$i" ;; | '') LDADD_LIBEVENT="$i" ;; | ||||
*) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;; | *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;; | ||||
esac | esac | ||||
;; | ;; | ||||
esac | esac | ||||
done | done | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |