@@ -727,6 +727,7 @@ PANDOC_ENGINE
727727PANDOC
728728ASCIIDOCTOR
729729GIT
730+ RADIUSD_DOC_VERSION
730731RADIUSD_VERSION_INCRM
731732RADIUSD_VERSION_MINOR
732733RADIUSD_VERSION_MAJOR
@@ -2849,6 +2850,7 @@ ac_config_headers="$ac_config_headers src/include/autoconf.h"
28492850RADIUSD_VERSION_MAJOR=` ./version.sh major`
28502851RADIUSD_VERSION_MINOR=` ./version.sh minor`
28512852RADIUSD_VERSION_INCRM=` ./version.sh commit_depth`
2853+ RADIUSD_DOC_VERSION=` grep version doc/antora/antora.yml | sed " s/version: '//;s/'//" `
28522854
28532855if test " x$RADIUSD_VERSION_INCRM " = " x" ; then
28542856 RADIUSD_VERSION_INCRM=` ./version.sh incrm`
@@ -2876,6 +2878,11 @@ printf "%s\n" "#define RADIUSD_VERSION_MINOR ${RADIUSD_VERSION_MINOR}" >>confdef
28762878printf " %s\n" " #define RADIUSD_VERSION_INCRM ${RADIUSD_VERSION_INCRM} " >> confdefs.h
28772879
28782880
2881+ printf " %s\n" " #define RADIUSD_DOC_VERSION ${RADIUSD_DOC_VERSION} " >> confdefs.h
2882+
2883+
2884+
2885+
28792886
28802887
28812888
@@ -5884,6 +5891,7 @@ then :
58845891 ;;
58855892 * )
58865893 fuzzer=yes
5894+ CFLAGS=" $CFLAGS -g3"
58875895 esac
58885896
58895897fi
@@ -7117,115 +7125,6 @@ fi
71177125
71187126done
71197127
7120- if test " x$HAVE_THREADS " ! = " xno" ; then
7121- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for pthread_create in -lc" >&5
7122- printf %s " checking for pthread_create in -lc... " >&6 ; }
7123- if test ${ac_cv_lib_c_pthread_create+y}
7124- then :
7125- printf %s " (cached) " >&6
7126- else case e in # (
7127- e) ac_check_lib_save_LIBS=$LIBS
7128- LIBS=" -lc $LIBS "
7129- cat confdefs.h - << _ACEOF >conftest.$ac_ext
7130- /* end confdefs.h. */
7131-
7132- /* Override any GCC internal prototype to avoid an error.
7133- Use char because int might match the return type of a GCC
7134- builtin and then its argument prototype would still apply.
7135- The 'extern "C"' is for builds by C++ compilers;
7136- although this is not generally supported in C code supporting it here
7137- has little cost and some practical benefit (sr 110532). */
7138- #ifdef __cplusplus
7139- extern "C"
7140- #endif
7141- char pthread_create (void);
7142- int
7143- main (void)
7144- {
7145- return pthread_create ();
7146- ;
7147- return 0;
7148- }
7149- _ACEOF
7150- if ac_fn_c_try_link " $LINENO "
7151- then :
7152- ac_cv_lib_c_pthread_create=yes
7153- else case e in # (
7154- e) ac_cv_lib_c_pthread_create=no ;;
7155- esac
7156- fi
7157- rm -f core conftest.err conftest.$ac_objext conftest.beam \
7158- conftest$ac_exeext conftest.$ac_ext
7159- LIBS=$ac_check_lib_save_LIBS ;;
7160- esac
7161- fi
7162- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $ac_cv_lib_c_pthread_create " >&5
7163- printf " %s\n" " $ac_cv_lib_c_pthread_create " >&6 ; }
7164- if test " x$ac_cv_lib_c_pthread_create " = xyes
7165- then :
7166-
7167- HAVE_THREADS=" yes"
7168- CFLAGS=" $CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
7169-
7170-
7171- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for the compiler flag \" -pthread\" " >&5
7172- printf %s " checking for the compiler flag \" -pthread\" ... " >&6 ; }
7173- if test ${ax_cv_cc_pthread_flag+y}
7174- then :
7175- printf %s " (cached) " >&6
7176- else case e in # (
7177- e)
7178-
7179- CFLAGS_SAVED=$CFLAGS
7180- CFLAGS=" $CFLAGS -Werror -pthread"
7181-
7182- ac_ext=c
7183- ac_cpp=' $CPP $CPPFLAGS'
7184- ac_compile=' $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7185- ac_link=' $CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7186- ac_compiler_gnu=$ac_cv_c_compiler_gnu
7187-
7188- cat confdefs.h - << _ACEOF >conftest.$ac_ext
7189- /* end confdefs.h. */
7190-
7191- int
7192- main (void)
7193- {
7194- return 0;
7195- ;
7196- return 0;
7197- }
7198- _ACEOF
7199- if ac_fn_c_try_compile " $LINENO "
7200- then :
7201- ax_cv_cc_pthread_flag=" yes"
7202- else case e in # (
7203- e) ax_cv_cc_pthread_flag=" no" ;;
7204- esac
7205- fi
7206- rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7207- ac_ext=c
7208- ac_cpp=' $CPP $CPPFLAGS'
7209- ac_compile=' $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210- ac_link=' $CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211- ac_compiler_gnu=$ac_cv_c_compiler_gnu
7212-
7213-
7214- CFLAGS=" $CFLAGS_SAVED "
7215- ;;
7216- esac
7217- fi
7218- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $ax_cv_cc_pthread_flag " >&5
7219- printf " %s\n" " $ax_cv_cc_pthread_flag " >&6 ; }
7220-
7221- if test " x$ax_cv_cc_pthread_flag " = ' xyes' ; then
7222- CFLAGS=" $CFLAGS -pthread"
7223- fi
7224-
7225-
7226- fi
7227-
7228- fi
72297128if test " x$HAVE_THREADS " ! = " xno" ; then
72307129 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for pthread_create in -lpthread" >&5
72317130printf %s " checking for pthread_create in -lpthread... " >&6 ; }
@@ -7522,7 +7421,7 @@ then :
75227421 test " $ac_res " = " none required" || LIBS=" $ac_res $LIBS "
75237422
75247423else case e in # (
7525- e) as_fn_error $? " -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp ://ftp .freeradius.org/pub/radius/contrib/libsem.tar.gz" " $LINENO " 5
7424+ e) as_fn_error $? " -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or https ://www .freeradius.org/ftp /pub/radius/contrib/libsem.tar.gz" " $LINENO " 5
75267425 ;;
75277426esac
75287427fi
0 commit comments