--- nono/configure 2026/04/29 17:04:28 1.1.1.1 +++ nono/configure 2026/04/29 17:04:30 1.1.1.2 @@ -624,6 +624,7 @@ LIBOBJS WXWIDGETS_LIBS WXWIDGETS_CPPFLAGS LIBKQUEUE_LIBS +LIBEDIT_LIBS LIBBSD_LIBS NETDRIVER KEVENT_UDATA_T @@ -3845,6 +3846,18 @@ fi done +for ac_header in histedit.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "histedit.h" "ac_cv_header_histedit_h" "$ac_includes_default" +if test "x$ac_cv_header_histedit_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_HISTEDIT_H 1 +_ACEOF + +fi + +done + for ac_header in kqueue/sys/event.h do : ac_fn_cxx_check_header_mongrel "$LINENO" "kqueue/sys/event.h" "ac_cv_header_kqueue_sys_event_h" "$ac_includes_default" @@ -4189,6 +4202,32 @@ $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5 +$as_echo_n "checking for __builtin_bswap64... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_bswap64(0); + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + $as_echo "#define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 $as_echo_n "checking for __builtin_expect... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -4539,6 +4578,12 @@ if test "x$ac_cv_lib_bsd_getprogname" = fi +# libedit (editline) +if test x"$ac_cv_header_histedit_h" = xyes; then + LIBEDIT_LIBS="-ledit -ltermcap" + +fi + # libkqueue on Linux { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue in -lkqueue" >&5 $as_echo_n "checking for kqueue in -lkqueue... " >&6; } @@ -4627,7 +4672,7 @@ fi ac_config_files="$ac_config_files Makefile.cfg host/Makefile lib/Makefile wx/Makefile util/mkcgrom/Makefile util/viewcgrom/Makefile" -ac_config_headers="$ac_config_headers config.h" +ac_config_headers="$ac_config_headers config-nono.h" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -5325,7 +5370,7 @@ do "wx/Makefile") CONFIG_FILES="$CONFIG_FILES wx/Makefile" ;; "util/mkcgrom/Makefile") CONFIG_FILES="$CONFIG_FILES util/mkcgrom/Makefile" ;; "util/viewcgrom/Makefile") CONFIG_FILES="$CONFIG_FILES util/viewcgrom/Makefile" ;; - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "config-nono.h") CONFIG_HEADERS="$CONFIG_HEADERS config-nono.h" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac