2006-07-25 19:59:37 +01:00
|
|
|
if [ $# -ne 1 ]
|
2006-07-25 19:00:04 +01:00
|
|
|
then
|
2006-07-25 19:59:37 +01:00
|
|
|
print_failure "Wrong number of arguments after module; need HEADER_NAME."
|
2006-07-25 19:00:04 +01:00
|
|
|
echo "HEADER_NAME is the name of the header file."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
HEADER_NAME=$1
|
|
|
|
shift
|
|
|
|
|
|
|
|
if [ "$(echo ${NAME} | cut -b1-3)" != "lib" ]
|
|
|
|
then
|
|
|
|
echo "Warning: your module name does not begin with 'lib'. You will"
|
2006-12-08 15:08:09 +00:00
|
|
|
echo "have to fix up your -config script manually, etc."
|
2006-07-25 19:00:04 +01:00
|
|
|
NAMEMINUSL="@TODO@"
|
|
|
|
else
|
2006-12-08 15:08:09 +00:00
|
|
|
NAMEMINUSL="$(echo ${NAME} | sed -e 's,^lib,,')"
|
2006-07-25 19:00:04 +01:00
|
|
|
fi
|
|
|
|
|
2006-07-25 19:49:22 +01:00
|
|
|
do_parameter_subst NAMEMINUSL HEADER_NAME
|
2006-12-08 15:51:18 +00:00
|
|
|
add_config_option "CC" "${COPT_CC_DEFAULT}"
|
|
|
|
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
|
|
|
|
add_config_option "BINDIR" "${COPT_BINDIR_DEFAULT}"
|
|
|
|
add_config_option "LIBDIR" "${COPT_LIBDIR_DEFAULT}"
|
|
|
|
add_config_option "INCLUDEDIR" "${COPT_INCLUDEDIR_DEFAULT}"
|
|
|
|
add_config_option "FINALLIBDIR" "${COPT_FINALLIBDIR_DEFAULT}"
|
|
|
|
add_config_option "FINALINCLUDEDIR" "${COPT_FINALINCLUDEDIR_DEFAULT}"
|
2006-07-25 19:49:22 +01:00
|
|
|
true
|
2006-07-25 19:00:04 +01:00
|
|
|
|
|
|
|
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
|
|
|
|
# vim: expandtab:ts=4:sw=4
|