checking for compiler type... gcc
checking for function implementation strlcat... yes
checking for function implementation strlcpy... yes
checking for func strlcat... no
checking for func strlcpy... no
checking for program awk... /usr/bin/awk
checking for program cc... /usr/bin/cc
runawk.c:105:22: error: 'PATH_MAX' undeclared here (not in a function)
static char temp_fn [PATH_MAX] = "/tmp/runawk.XXXXXX";
I suggest to check for PATH_MAX define, if it's not defined, check what getconf says, and if that fails, define some sane default value.
I suggest to check for
PATH_MAX
define, if it's not defined, check whatgetconf
says, and if that fails, define some sane default value.