X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/7ba459d508d5e3c08580e8ec6c3dbc7c1fedd289..ca6309941ad6c33be6f70b0d27db1e8d8de4c922:/configure.ac diff --git a/configure.ac b/configure.ac index 6150d4c..47abd44 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -dnl Copyright © 2015, 2019-2021 Nick Bowler +dnl Copyright © 2015, 2019-2022 Nick Bowler dnl dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2. dnl This is free software: you are free to do what the fuck you want to. @@ -24,5 +24,16 @@ AC_CONFIG_TESTDIR([.]) DX_PROG_AUTOTEST AM_CONDITIONAL([HAVE_AUTOTEST], [test x"$dx_cv_autotest_works" = x"yes"]) +AC_CACHE_CHECK([for struct option in ], [dx_cv_have_struct_option], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], +[[struct option opt = { "aaaa", 2, (void *)0, 'a' }; +return opt.name[opt.flag ? opt.val : opt.has_arg];]])], + [dx_cv_have_struct_option=yes], [dx_cv_have_struct_option=no])]) +AM_CONDITIONAL([HAVE_STRUCT_OPTION], + [test x"$dx_cv_have_struct_option" = x"yes"]) + +AC_ARG_VAR([PERL], [command to execute perl programs]) +AC_CHECK_PROGS([PERL], [perl], [false]) + AC_CONFIG_FILES([Makefile atlocal]) AC_OUTPUT