blob: 648ec2615dd335450c8d2450e818eef53319173c [file] [log] [blame]
# Copyright (C) Dmitry Volyntsev
# Copyright (C) NGINX, Inc.
# Initialize variables with null values if they are not defined.
CFLAGS=${CFLAGS=}
NJS_TEST_CFLAGS=${NJS_TEST_CFLAGS=}
NJS_TEST_LIBS=${NJS_TEST_LIBS=}
# Initialize variables with default if they are not defined.
CC=${CC:-cc}
AR=${AR:-ar}
NJS_CFLAGS=${NJS_CFLAGS=}
NJS_BUILD_DIR=${NJS_BUILD_DIR:-build}
NJS_AUTOTEST=$NJS_BUILD_DIR/autotest
NJS_AUTOCONF_ERR=$NJS_BUILD_DIR/autoconf.err
NJS_AUTO_CONFIG_H=$NJS_BUILD_DIR/njs_auto_config.h
NJS_MAKEFILE=$NJS_BUILD_DIR/Makefile
test -d $NJS_BUILD_DIR || mkdir $NJS_BUILD_DIR
> $NJS_AUTOCONF_ERR
cat << END > $NJS_AUTO_CONFIG_H
/* This file is auto-generated by configure */
END
NJS_LIBRT=
njs_regex_cont=' \\\
'