Mercurial > dropbear
comparison configure.ac @ 829:4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 15 Oct 2013 22:55:44 +0800 |
parents | 1d1f80fcbcb3 |
children | 4095b6d7c9fc |
comparison
equal
deleted
inserted
replaced
828:93e04b9ff676 | 829:4cf61252dfc3 |
---|---|
362 AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline ) | 362 AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline ) |
363 AC_CHECK_FUNCS(setutxent utmpxname) | 363 AC_CHECK_FUNCS(setutxent utmpxname) |
364 AC_CHECK_FUNCS(logout updwtmp logwtmp) | 364 AC_CHECK_FUNCS(logout updwtmp logwtmp) |
365 | 365 |
366 AC_ARG_ENABLE(bundled-libtom, | 366 AC_ARG_ENABLE(bundled-libtom, |
367 [ --enable-bundled-libtom Use bundled libtomcrypt/libtommath even if a system version exists], | 367 [ --enable-bundled-libtom Force using bundled libtomcrypt/libtommath even if a system version exists. |
368 [ | 368 --disable-bundled-libtom Force using system libtomcrypt/libtommath, fail if it does not exist. |
369 BUNDLED_LIBTOM=1 | 369 Default is to use system if available, otherwise bundled.], |
370 AC_MSG_NOTICE(Forcing bundled libtom*) | 370 [ |
371 if test "x$enableval" = "xyes"; then | |
372 BUNDLED_LIBTOM=1 | |
373 AC_MSG_NOTICE(Forcing bundled libtom*) | |
374 else | |
375 BUNDLED_LIBTOM=0 | |
376 AC_CHECK_LIB(tomcrypt, register_cipher, , | |
377 [AC_MSG_ERROR([Missing system libtomcrypt and --disable-bundled-libtom was specified])] ) | |
378 AC_CHECK_LIB(tommath, mp_exptmod, , | |
379 [AC_MSG_ERROR([Missing system libtomcrypt and --disable-bundled-libtom was specified])] ) | |
380 fi | |
371 ], | 381 ], |
372 [ | 382 [ |
373 BUNDLED_LIBTOM=0 | 383 BUNDLED_LIBTOM=0 |
374 AC_CHECK_LIB(tomcrypt, register_cipher, , BUNDLED_LIBTOM=1) | 384 AC_CHECK_LIB(tomcrypt, register_cipher, , BUNDLED_LIBTOM=1) |
375 AC_CHECK_LIB(tommath, mp_exptmod, , BUNDLED_LIBTOM=1) | 385 AC_CHECK_LIB(tommath, mp_exptmod, , BUNDLED_LIBTOM=1) |