Changes in configure [36cf9fd:6a72a57]
Legend:
- Unmodified
- Added
- Removed
-
configure
r36cf9fd r6a72a57 267 267 detect_ldap() 268 268 { 269 TMPFILE= $(mktemp)269 TMPFILE=`mktemp` 270 270 if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then 271 271 cat<<EOF>>Makefile.settings … … 280 280 ret=0 281 281 fi 282 }283 284 RESOLV_TESTCODE='285 #include <arpa/nameser.h>286 #include <resolv.h>287 288 int main()289 {290 ns_initparse( NULL, 0, NULL );291 ns_parserr( NULL, ns_s_an, 0, NULL );292 }293 '294 295 detect_resolv_dynamic()296 {297 echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null298 if [ "$?" = "0" ]; then299 echo 'EFLAGS+=-lresolv' >> Makefile.settings300 return 0301 fi302 303 return 1304 }305 306 detect_resolv_static()307 {308 for i in $systemlibdirs; do309 if [ -f $i/libresolv.a ]; then310 echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null311 if [ "$?" = "0" ]; then312 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings313 return 0314 fi315 fi316 done317 318 return 1319 282 } 320 283 … … 386 349 echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings 387 350 388 if detect_resolv_dynamic || detect_resolv_static; then 389 echo '#define HAVE_RESOLV_A' >> config.h 390 fi 351 for i in $systemlibdirs; do 352 if [ -f $i/libresolv.a ]; then 353 echo '#define HAVE_RESOLV_A' >> config.h 354 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings 355 break 356 fi 357 done 391 358 392 359 STORAGES="text xml"
Note: See TracChangeset
for help on using the changeset viewer.