Hi,
I am trying to add a new build environment variable named
WITH_SCSOLVER. To add such variable, I edited 'configure',
'configure.in' and 'set_soenv.in', and subsequently run ./configure,
but then the config.status always aborts.
OTOH, when I have autoconf autogenerate the 'configure' from the
'configure.in' template, it runs fine. But of course that would
drastically alter the content of 'configure' from that in the
repository, which is of course not good for version control purposes.
Could anyone give me advise on this? I've attached the changes I made
to each of the three files (*.diff), and the captured output
(output.log). I'm not an autoconf expert, so I'm a little lost...
Thanks,
Kohei
Index: configure
===================================================================
RCS file: /cvs/tools/config_office/configure,v
retrieving revision 1.156
diff -u -r1.156 configure
--- configure 19 Jul 2006 09:40:09 -0000 1.156
+++ configure 5 Oct 2006 04:44:11 -0000
@@ -665,6 +665,7 @@
ENABLE_SYMBOLS
ENABLE_CUPS
ENABLE_FONTCONFIG
+WITH_SCSOLVER
WITH_BINFILTER
ENABLE_DIRECTX
NETTOOLKIT
@@ -1573,6 +1574,8 @@
--enable-kde Determines whether to use Qt/KDE vclplug on platforms
where Qt and KDE are available.
+ --enable-scsolver Enable the optimization solver component for Calc
+
--disable-kdeab Disable the KDE address book support
--disable-binfilter: Disable legacy binary file formats filters
@@ -2607,6 +2610,13 @@
if test "$enable_kde" = "yes"; then enable_kdeab=yes; fi
fi
+# Check whether --enable-scsolver was given.
+if test "${enable_scsolver+set}" = set; then
+ enableval=$enable_scsolver;
+else
+ if ! test -d ../scsolver; then enable_scsolver=no; fi
+fi
+
# Check whether --enable-binfilter was given.
if test "${enable_binfilter+set}" = set; then
enableval=$enable_binfilter;
@@ -3739,6 +3749,20 @@
fi
+{ echo "$as_me:$LINENO: checking whether to enable the optimization solver package for Calc" >&5
+echo $ECHO_N "checking whether to enable the optimization solver package for Calc... $ECHO_C" >&6; }
+if test "$enable_scsolver" = "no"; then
+ WITH_SCSOLVER="NO"
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+else
+ WITH_SCSOLVER="YES"
+ BUILD_TYPE="$BUILD_TYPE SCSOLVER"
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+fi
+
+
{ echo "$as_me:$LINENO: checking whether to enable filters for legacy binary file formats (StarOffice 5.2)" >&5
echo $ECHO_N "checking whether to enable filters for legacy binary file formats (StarOffice 5.2)... $ECHO_C" >&6; }
if test "$enable_binfilter" = "no"; then
@@ -24515,6 +24539,7 @@
ENABLE_SYMBOLS!$ENABLE_SYMBOLS$ac_delim
ENABLE_CUPS!$ENABLE_CUPS$ac_delim
ENABLE_FONTCONFIG!$ENABLE_FONTCONFIG$ac_delim
+WITH_SCSOLVER!$WITH_SCSOLVER$ac_delim
WITH_BINFILTER!$WITH_BINFILTER$ac_delim
ENABLE_DIRECTX!$ENABLE_DIRECTX$ac_delim
NETTOOLKIT!$NETTOOLKIT$ac_delim
Index: configure.in
===================================================================
RCS file: /cvs/tools/config_office/configure.in,v
retrieving revision 1.171
retrieving revision 1.171.12.1
diff -u -r1.171 -r1.171.12.1
--- configure.in 19 Jul 2006 09:52:02 -0000 1.171
+++ configure.in 5 Oct 2006 00:41:38 -0000 1.171.12.1
@@ -198,6 +198,9 @@
AC_ARG_ENABLE(kdeab,
[ --disable-kdeab Disable the KDE address book support
],,if test "$enable_kde" = "yes"; then enable_kdeab=yes; fi)
+AC_ARG_ENABLE(scsolver,
+[ --enable-scsolver: Enable the optimization solver component for Calc
+],,if ! test -d ../scsolver; then enable_scsolver=no; fi)
AC_ARG_ENABLE(binfilter,
[ --disable-binfilter: Disable legacy binary file formats filters
],,if ! test -d ../binfilter; then enable_binfilter=no; fi)
@@ -936,6 +939,20 @@
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_FONTCONFIG)
+
+dnl ===================================================================
+dnl Enable the optimization solver for Calc
+dnl ===================================================================
+AC_MSG_CHECKING([whether to enable the optimization solver package for Calc])
+if test "$enable_scsolver" = "no"; then
+ WITH_SCSOLVER="NO"
+ AC_MSG_RESULT([no])
+else
+ WITH_SCSOLVER="YES"
+ BUILD_TYPE="$BUILD_TYPE SCSOLVER"
+ AC_MSG_RESULT([yes])
+fi
+AC_SUBST(WITH_SCSOLVER)
dnl ===================================================================
dnl Disable legacy binary file formats filters
Index: set_soenv.in
===================================================================
RCS file: /cvs/tools/config_office/set_soenv.in,v
retrieving revision 1.110
retrieving revision 1.110.6.1
diff -u -r1.110 -r1.110.6.1
--- set_soenv.in 19 Jul 2006 09:52:27 -0000 1.110
+++ set_soenv.in 5 Oct 2006 00:44:34 -0000 1.110.6.1
@@ -1732,6 +1732,7 @@
ToFile( "WITH_FONTS", "@WITH_FONTS@", "e" );
ToFile( "WITHOUT_AFMS", "@WITHOUT_AFMS@", "e" );
ToFile( "WITHOUT_PPDS", "@WITHOUT_PPDS@", "e" );
+ToFile( "WITH_SCSOLVER", "@WITH_SCSOLVER@", "e" );
ToFile( "WITH_BINFILTER", "@WITH_BINFILTER@", "e" );
ToFile( "BUILD_TYPE", "@BUILD_TYPE@", "e" );
ToFile( "WITH_FONTOOO", "@WITH_FONTOOO@", "e" );
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
[big snip]
checking which languages to be built... en-US
checking which dictionaries to include... ALL
checking whether to statically link to Gtk... no
********************************************************************
* *
* Setting up the build environment variables. *
* *
********************************************************************
checking solver path... default
configure: creating ./config.status
configure: error: could not make ./config.status
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]