Commit 0f7a5ebc authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Add a test for mkfifo


2004-10-04  Jody Goldberg <jody@gnome.org>

	* configure.in : Add a test for mkfifo

2004-09-16  Stepan Kasal  <kasal@ucw.cz>

	* Makefile.am (excel_la_LIBADD): New variable, set to $(Z_LIBS).
	(INCLUDES): add $(Z_CPPFLAGS)

2004-09-13  Stepan Kasal  <kasal@ucw.cz>

	* configure.in: Cleanup the mono detection code.  This way it
	  won't get to the ``configure --help'' which is good for the
	  upcoming stable release.
parent 5e4508fd
2004-10-04 Jody Goldberg <jody@gnome.org>
* configure.in : Add a test for mkfifo
2004-09-13 Stepan Kasal <kasal@ucw.cz>
* configure.in: Cleanup the mono detection code. This way it
won't get to the ``configure --help'' which is good for the
upcoming stable release.
2004-10-01 Jody Goldberg <jody@gnome.org>
* src/colrow.c (colrow_set_sizes) : no need to calculate the size if
......
......@@ -107,6 +107,7 @@ Jon K
Kasal:
* Some typos in various docs
* Cleanup configure.in
Morten:
* Make new windows inherit toolbar visibility from parent.
......
2004-10-04 Jody Goldberg <jody@gnome.org>
* configure.in : Add a test for mkfifo
2004-09-13 Stepan Kasal <kasal@ucw.cz>
* configure.in: Cleanup the mono detection code. This way it
won't get to the ``configure --help'' which is good for the
upcoming stable release.
2004-10-01 Jody Goldberg <jody@gnome.org>
* src/colrow.c (colrow_set_sizes) : no need to calculate the size if
......
......@@ -54,6 +54,46 @@ Please use another compiler, for example a gcc 2.95 series compiler.])
fi
fi
dnl *****************************
# Check for zlib.
_cppflags="${CPPFLAGS}"
_ldflags="${LDFLAGS}"
AC_ARG_WITH(zlib,
[[ --with-zlib=DIR use libz in DIR]],
[case x"$withval" in
xyes|xno) ;;
*) Z_DIR=$withval
CPPFLAGS="${CPPFLAGS} -I$withval/include"
LDFLAGS="${LDFLAGS} -L$withval/lib"
;;
esac])
if test "x$with_zlib" != xno; then
with_zlib=no
AC_CHECK_HEADER(zlib.h, [AC_CHECK_LIB(z, gzread, [with_zlib=yes])])
fi
if test "$with_zlib" = no; then
AC_MSG_ERROR([*** zlib is required])
fi
if test "x${Z_DIR}" != "x"; then
Z_CPPFLAGS="-I${Z_DIR}/include"
case ${host} in
*-*-solaris*) Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz" ;;
*) Z_LIBS="-L${Z_DIR}/lib -lz" ;;
esac
else
Z_LIBS="-lz"
fi
AC_DEFINE([HAVE_LIBZ], [], [Have compression library])
AC_SUBST(Z_CPPFLAGS)
AC_SUBST(Z_LIBS)
CPPFLAGS=${_cppflags}
LDFLAGS=${_ldflags}
dnl *****************************
gnumeric_reqs="
glib-2.0 >= 2.4.0
......@@ -494,7 +534,7 @@ fi
dnl We do not want to force libgnomeprint 2.8 just yet.
SAVE_LIBS="$LIBS"
LIBS="$LIBS $GNUMERIC_LIBS"
AC_CHECK_FUNCS(gnome_print_pango_create_layout)
AC_CHECK_FUNCS(gnome_print_pango_create_layout mkfifo)
LIBS="$SAVE_LIBS"
unset SAVE_LIBS
......@@ -699,26 +739,24 @@ AM_CONDITIONAL(WITH_PERL, false)
dnl **************************************************
dnl * Check for mono
dnl **************************************************
try_mono=false
with_mono=false
with_mono=no
mono_msg="disabled, still experimental"
AC_ARG_WITH(mono,
[--{with,without}-mono Compile the mono scripting engine],
if test "x$withval" = xno; then
mono_msg="Disabled by request"
try_mono=false
else
try_mono=true
fi
)
if $try_mono; then
PKG_CHECK_MODULES(MONO, mono, [with_mono=yes ; mono_msg="yes"], [with_mono=no])
fi
if test "x$with_mono" = "xyes" ; then
AC_DEFINE(WITH_MONO, 1,
[Define if mono .NET engine is available])
fi
dnl A tricky way to comment out in m4:
ifelse([
AC_ARG_WITH(mono, [--{with,without}-mono Compile the mono scripting engine])
case x$with_mono in
xno) mono_msg="Disabled by request";;
*)
PKG_CHECK_MODULES(MONO, mono,
[with_mono=yes
AC_DEFINE(WITH_MONO, 1, [Define if mono .NET engine is available])],
[with_mono=no])
mono_msg=$with_mono
;;
esac
])
AM_CONDITIONAL(WITH_MONO, test "x$with_mono" = "xyes")
AC_SUBST(MONO_CFLAGS)
AC_SUBST(MONO_LIBS)
......
......@@ -6,7 +6,9 @@
# Requires that the calling makefile define 'lang'
docname = gnumeric
omffile = gnumeric-$(lang).omf
if WITH_GNOME
omffile = gnumeric-$(lang).omf
endif
gnumeric_docdir = $(top_srcdir)/doc
entities += functions.xml
......
......@@ -7,7 +7,8 @@ appicon_DATA = gnome-gnumeric.png \
gnome-application-x-xls.png \
gnome-application-x-applix-spreadsheet.png \
gnome-application-vnd.lotus-1-2-3.png \
gnome-application-x-generic-spreadsheet.png
gnome-application-x-generic-spreadsheet.png \
win32-gnumeric.ico
icons_DATA = \
$(appicon_DATA) \
......
2004-10-04 Jody Goldberg <jody@gnome.org>
http://bugzilla.gnome.org/show_bug.cgi?id=154450
* options.c (opt_euro_exchange) : Some doc cleanup.
2004-09-08 Jody Goldberg <jody@gnome.org>
* Release 1.3.90
......
......@@ -533,7 +533,7 @@ static char const *help_opt_bs_rho = {
"OPT_BS_RHO uses the Black-Scholes model to calculate the "
"\"rho\" of a European option with call_put_flag, @call_put_flag "
"struck at @strike on an asset with spot price @spot.\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put.\n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"\n"
"(The rho of an option is the rate of change of its price with "
"respect to the risk free interest rate.)\n"
......@@ -597,7 +597,7 @@ static char const *help_opt_bs_carrycost = {
"OPT_BS_CARRYCOST uses the Black-Scholes model to calculate the "
"\"elasticity\" of a European option struck at @strike on an asset "
"with spot price @spot.\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"\n"
"(The elasticity of an option is the rate of change of its price "
......@@ -666,7 +666,7 @@ static char const *help_opt_garman_kohlhagen = {
"@DESCRIPTION="
"OPT_GARMAN_KOHLHAGEN values the theoretical price of a European "
"currency option struck at @strike on an asset with spot price @spot.\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@volatility is the annualized volatility, in percent, of the "
"asset for the period through to the exercise date. \n"
"@time the number of days to exercise \n"
......@@ -798,7 +798,7 @@ static char const *help_opt_jump_diff = {
"OPT_JUMP_DIFF models the theoretical price of an option according "
"to the Jump Diffusion process (Merton)."
"\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset\n"
"@strike is the strike price of the option\n"
......@@ -893,7 +893,7 @@ static char const *help_opt_miltersen_schwartz = {
"commodities futures "
"according to Miltersen & Schwartz. \n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@p_t is a zero coupon bond with expiry at option maturity \n"
"@f_t is is the futures price \n"
"@x is is the strike price \n"
......@@ -1001,7 +1001,7 @@ static char const *help_opt_rgw = {
"@DESCRIPTION="
"OPT_RGW models the theoretical price of an american option according to "
"the Roll-Geske-Whaley approximation where: \n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset\n"
"@strike is the strike price at which the option is struck\n"
......@@ -1055,7 +1055,7 @@ static char const *help_opt_baw_amer = {
"@DESCRIPTION="
"OPT_BAW_AMER models the theoretical price of an option according "
"to the Barone Adesie & Whaley approximation. \n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset\n"
"@strike is the strike price at which the option is struck\n"
......@@ -1238,7 +1238,7 @@ static char const *help_opt_bjer_stens = {
"@DESCRIPTION="
"OPT_BJERSTENS models the theoretical price of american options "
"according to the Bjerksund & Stensland approximation technique.\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset\n"
"@strike is the strike price at which the option is struck\n"
"@time is the number of days to maturity of the option\n"
......@@ -1321,7 +1321,7 @@ static char const *help_opt_exec = {
"cost_of_carry,lambda)\n"
"@DESCRIPTION="
"OPT_EXEC models the theoretical price of executive stock options "
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"One would expect this to always be a call option \n"
"@spot is the spot price of the underlying asset \n"
"@strike is the strike price at which the option is struck \n"
......@@ -1370,7 +1370,7 @@ static char const *help_opt_forward_start = {
"@DESCRIPTION="
"OPT_FORWARD_START models the theoretical price of forward start options\n "
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset \n"
"@alpha is a fraction that set the strike price the future date @time1\n"
"@time1 is the number of days until the option starts \n"
......@@ -1435,7 +1435,7 @@ static char const *help_opt_time_switch = {
"options. (Pechtl 1995)\n"
"The holder receives @a * @dt for each period dt that the asset price was "
"greater than the strike price (for a call) or below it (for a put) \n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset \n"
"@strike is the strike price at which the option is struck \n"
"@a is the amount received for each time period as discussed above\n"
......@@ -1490,7 +1490,7 @@ static char const *help_opt_simple_chooser = {
"@DESCRIPTION="
"OPT_SIMPLE_CHOOSER models the theoretical price of simple chooser "
"options.\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset \n"
"@strike is the strike price at which the option is struck \n"
"@time1 is the time in years until the holder chooses a put or a call option\n"
......@@ -1551,7 +1551,7 @@ static char const *help_opt_complex_chooser = {
"@DESCRIPTION="
"OPT_COMPLEX_CHOOSER models the theoretical price of complex "
"chooser options.\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset \n"
"@strike_call is the strike price at which the option is struck \n"
"@strike_put is the strike price at which the option is struck \n"
......@@ -1753,7 +1753,7 @@ static char const *help_opt_extendible_writer = {
"writer options. These are options that can be exercised at an initial "
"period, @time1, or their maturity extended to @time2 if the option is "
"out of the money at @time1 \n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset.\n"
"@strike1 is the strike price at which the option is struck.\n"
"@strike2 is the strike price at which the option is re-struck if out of the money at @time1.\n"
......@@ -1816,7 +1816,7 @@ static char const *help_opt_2_asset_correlation = {
"on 2 assets with correlation @rho.\nThe payoff for a call is "
"max(@spot2 - @strike2,0) if @spot1 > @strike1 or 0 otherwise.\n"
"The payoff for a put is max (@strike2 - @spot2, 0) if @spot1 < @strike1 or 0 otherwise.\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot1 & @spot2 are the spot prices of the underlying assets.\n"
"@strike1 & @strike2 are the strike prices at which the option"
" is struck.\n"
......@@ -1867,7 +1867,7 @@ static char const *help_opt_euro_exchange = {
"OPT_EURO_EXCHANGE models the theoretical price of a European "
"option to exchange one asset with quantity @qty2 and spot "
"price @spot2 for another, with quantity @qty1 and spot price "
"@spot1 \n"
"@spot1.\n"
"@time is the initial maturity of the option in years.\n"
"@rate is the risk annualised free rate of interest.\n"
"@cost_of_carry1 & @cost_of_carry2 are the leakage in value of the underlying assets, "
......@@ -1877,7 +1877,7 @@ static char const *help_opt_euro_exchange = {
"\n"
"@EXAMPLES=\n"
"\n"
"@SEEALSO=OPT_BS, OPT_BS_DELTA, OPT_BS_RHO, OPT_BS_THETA, OPT_BS_GAMMA")
"@SEEALSO=OPT_AMER_EXCHANGE, OPT_BS, OPT_BS_DELTA, OPT_BS_RHO, OPT_BS_THETA, OPT_BS_GAMMA")
};
......@@ -1949,7 +1949,8 @@ static char const *help_opt_spread_approx = {
N_("@FUNCTION=OPT_SPREAD_APPROX\n"
"@SYNTAX=OPT_SPREAD_APPROX(call_put_flag,fut_price1,fut_price2,strike,time, rate,volatility1,volatility2,rho)\n"
"@DESCRIPTION="
"OPT_SPREAD_APPROX models the theoretical price of theoretical price of a European option on the spread between two futures contracts.\n"
"OPT_SPREAD_APPROX models the theoretical price of a European option on the spread between two futures contracts.\n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@fut_price1 & @fut_price2 are the prices of the two futures contracts.\n"
"@strike is the strike price at which the option is struck \n"
"@time is the initial maturity of the option in years.\n"
......@@ -2001,8 +2002,8 @@ static char const *help_opt_float_strk_lkbk = {
N_("@FUNCTION=OPT_FLOAT_STRK_LKBK\n"
"@SYNTAX=OPT_FLOAT_STRK_LKBK(call_put_flag,spot,spot_min,spot_max,time,rate,cost_of_carry,volatility)\n"
"@DESCRIPTION="
"OPT_FLOAT_STRK_LKBK models the theoretical price of an option where the holder of the option may exercise on expiry at the most favourable price observed during the options life of the underlying asset\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"OPT_FLOAT_STRK_LKBK models the theoretical price of an option where the holder of the option may exercise on expiry at the most favourable price observed during the options life of the underlying asset.\n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset.\n"
"@spot_min is the minimum spot price of the underlying asset so far observed.\n"
"@spot_max is the maximum spot price of the underlying asset so far observed.\n"
......@@ -2067,7 +2068,7 @@ static char const *help_opt_fixed_strk_lkbk = {
"@SYNTAX=OPT_FIXED_STRK_LKBK(call_put_flag,spot,spot_max,spot_min,strike,time,rate,cost_of_carry,volatility)\n"
"@DESCRIPTION="
"OPT_FIXED_STRK_LKBK models the theoretical price of where the holder of the option may exercise on expiry at the most favourable price observed during the options life of the underlying asset\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@spot is the spot price of the underlying asset.\n"
"@spot_min is the minimum spot price of the underlying asset so far observed.\n"
"@spot_max is the maximum spot price of the underlying asset so far observed.\n"
......@@ -2148,7 +2149,7 @@ static char const *help_opt_binomial = {
"@DESCRIPTION="
"OPT_ models the theoretical price of either an American or European style option using a binomial tree \n"
"@amer_euro_flag is either \"a\" or \"e\" to indicate weather the option being valued is an American or European style option respectively\n"
"@call_put_flag is c or p to indicate whether the option is a call or a put \n"
"@call_put_flag is 'c' or 'p' to indicate whether the option is a call or a put.\n"
"@num_time_steps is the number of time steps used in the valuation, a greater number of time steps yeilds greater accuracy however is slower to calculate\n"
"@spot is the spot price of the underlying asset.\n"
"@strike is the strike price at which the option is struck \n"
......
2004-09-16 Stepan Kasal <kasal@ucw.cz>
* Makefile.am (excel_la_LIBADD): New variable, set to $(Z_LIBS).
(INCLUDES): add $(Z_CPPFLAGS)
2004-09-24 Jody Goldberg <jody@gnome.org>
* ms-obj.c (ms_obj_attr_new_flag) : add some safety checking
......
INCLUDES = \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/src -I$(top_builddir)/src \
$(GNUMERIC_CFLAGS)
$(GNUMERIC_CFLAGS) $(Z_CPPFLAGS)
gnumeric_plugin_exceldir = $(gnumeric_plugindir)/excel
xmldir = $(gnumeric_plugin_exceldir)
gnumeric_plugin_excel_LTLIBRARIES = excel.la
excel_la_LDFLAGS = -module $(GNUMERIC_PLUGIN_LDFLAGS)
excel_la_LIBADD = $(Z_LIBS)
excel_la_SOURCES = \
boot.c \
boot.h \
......@@ -40,8 +41,8 @@ excel_la_SOURCES = \
ms-chart.c \
rc4.c \
rc4.h \
crypt-md4.c \
crypt-md4.h \
crypt-md4.c \
crypt-md4.h \
md5.c \
md5.h
......
......@@ -147,10 +147,12 @@ plugin_init (void)
filename = g_strdup_printf ("%s/%s", g_get_home_dir (), "atl");
/* NOTE : better to use popen here, but this is fine for testing */
#ifdef HAVE_MKFIFO
if (mkfifo (filename, S_IRUSR | S_IWUSR) == 0) {
atl_filename = filename;
atl_fd = open (atl_filename, O_RDWR|O_NONBLOCK);
} else
#endif /* HAVE_MKFIFO */
g_free (filename);
if (atl_fd >= 0) {
......
......@@ -10,7 +10,7 @@ xmldir = $(goffice_graph_barcoldir)
gladedir = $(goffice_graph_barcoldir)
goffice_graph_barcol_LTLIBRARIES = barcol.la
barcol_la_LDFLAGS = -module -avoid-version
barcol_la_LDFLAGS = -module $(GNUMERIC_PLUGIN_LDFLAGS)
barcol_la_SOURCES = gog-1.5d.c \
gog-1.5d.h \
gog-line.c \
......
......@@ -5,7 +5,7 @@
<_description>Line, Area, Bar and Column plots</_description>
</information>
<loader type="Gnumeric_Builtin:module">
<attribute name="module_file" value="barcol.la"/>
<attribute name="module_file" value="barcol"/>
</loader>
<services>
<service type="plot_engine" id="GogLinePlot">
......
......@@ -10,7 +10,7 @@ xmldir = $(goffice_graph_piedir)
gladedir = $(goffice_graph_piedir)
goffice_graph_pie_LTLIBRARIES = pie.la
pie_la_LDFLAGS = -module -avoid-version
pie_la_LDFLAGS = -module $(GNUMERIC_PLUGIN_LDFLAGS)
pie_la_SOURCES = \
gog-pie.c \
gog-pie.h \
......
......@@ -5,7 +5,7 @@
<_description>Pie and Ring plots</_description>
</information>
<loader type="Gnumeric_Builtin:module">
<attribute name="module_file" value="pie.la"/>
<attribute name="module_file" value="pie"/>
</loader>
<services>
<service type="plot_engine" id="GogRingPlot">
......
......@@ -10,7 +10,7 @@ xmldir = $(goffice_graph_radardir)
gladedir = $(goffice_graph_radardir)
goffice_graph_radar_LTLIBRARIES = radar.la
radar_la_LDFLAGS = -module -avoid-version
radar_la_LDFLAGS = -module $(GNUMERIC_PLUGIN_LDFLAGS)
radar_la_SOURCES = \
gog-radar.c \
gog-radar.h
......
......@@ -5,7 +5,7 @@
<_description>Radial/Radar plots</_description>
</information>
<loader type="Gnumeric_Builtin:module">
<attribute name="module_file" value="radar.la"/>
<attribute name="module_file" value="radar"/>
</loader>
<services>
<service type="plot_engine" id="GogRadarPlot">
......
......@@ -10,7 +10,7 @@ xmldir = $(goffice_graph_xydir)
gladedir = $(goffice_graph_xydir)
goffice_graph_xy_LTLIBRARIES = xy.la
xy_la_LDFLAGS = -module -avoid-version
xy_la_LDFLAGS = -module $(GNUMERIC_PLUGIN_LDFLAGS)
xy_la_SOURCES = \
gog-xy.c \
gog-xy.h \
......
......@@ -4,7 +4,7 @@
<_description>2D plots</_description>
</information>
<loader type="Gnumeric_Builtin:module">
<attribute name="module_file" value="xy.la"/>
<attribute name="module_file" value="xy"/>
</loader>
<services>
<service type="plot_engine" id="GogXYPlot">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment