--- libelwix/configure 2023/03/14 22:37:40 1.64.2.1 +++ libelwix/configure 2024/01/22 15:20:19 1.64.2.5 @@ -718,6 +718,8 @@ ac_user_opts=' enable_option_checking enable_debug with_memmgr +enable_patricia +enable_pelco ' ac_precious_vars='build_alias host_alias @@ -1351,6 +1353,8 @@ Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-debug Build library with debug information and additional messages + --enable-patricia Patricia support for ELWIX + --enable-pelco Pelco support for ELWIX Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -3922,50 +3926,7 @@ then : fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strlcpy in -lbsd" >&5 -printf %s "checking for strlcpy in -lbsd... " >&6; } -if test ${ac_cv_lib_bsd_strlcpy+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS -LIBS="-lbsd $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char strlcpy (); -int -main (void) -{ -return strlcpy (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_bsd_strlcpy=yes -else $as_nop - ac_cv_lib_bsd_strlcpy=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_strlcpy" >&5 -printf "%s\n" "$ac_cv_lib_bsd_strlcpy" >&6; } -if test "x$ac_cv_lib_bsd_strlcpy" = xyes -then : - printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h - - LIBS="-lbsd $LIBS" - -fi - - # Checks for header files. ac_header= ac_cache= for ac_item in $ac_header_c_list @@ -4027,14 +3988,7 @@ then : fi -ac_fn_c_check_header_compile "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default" -if test "x$ac_cv_header_bsd_string_h" = xyes -then : - printf "%s\n" "#define HAVE_BSD_STRING_H 1" >>confdefs.h -fi - - # Checks for typedefs, structures, and compiler characteristics. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 printf %s "checking for inline... " >&6; } @@ -4248,8 +4202,14 @@ then : printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h fi +ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" +if test "x$ac_cv_func_strlcat" = xyes +then : + printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h +fi + DEBUG=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5 printf %s "checking Debug Build... " >&6; } @@ -4263,7 +4223,7 @@ then : ;; *) -printf "%s\n" "#define NDEBUG /**/" >>confdefs.h +printf "%s\n" "#define NDEBUG 1" >>confdefs.h ;; esac @@ -4301,6 +4261,48 @@ fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MEMMGR" >&5 printf "%s\n" "$MEMMGR" >&6; } + +PATRICIA=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Patricia support" >&5 +printf %s "checking Patricia support... " >&6; } +# Check whether --enable-patricia was given. +if test ${enable_patricia+y} +then : + enableval=$enable_patricia; case "$enableval" in + yes) + +printf "%s\n" "#define PATRICIA_SUPPORT /**/" >>confdefs.h + + PATRICIA=yes + ;; + *) + ;; + esac +fi + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATRICIA" >&5 +printf "%s\n" "$PATRICIA" >&6; } + +PELCO=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Pelco support" >&5 +printf %s "checking Pelco support... " >&6; } +# Check whether --enable-pelco was given. +if test ${enable_pelco+y} +then : + enableval=$enable_pelco; case "$enableval" in + yes) + +printf "%s\n" "#define PELCO_SUPPORT /**/" >>confdefs.h + + PELCO=yes + ;; + *) + ;; + esac +fi + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PELCO" >&5 +printf "%s\n" "$PELCO" >&6; } ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile src/Makefile"