Commit 30649822 authored by David Llewellyn-Jones's avatar David Llewellyn-Jones

Added configure build files.

parent 83cc49e5
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
*/
#undef HAVE_DIRENT_H
/* Define to 1 if you have the `floor' function. */
#undef HAVE_FLOOR
/* Define to 1 if you have the `ftime' function. */
#undef HAVE_FTIME
/* Define to 1 if you have the <GLee.h> header file. */
#undef HAVE_GLEE_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `glut' library (-lglut). */
#undef HAVE_LIBGLUT
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
#undef HAVE_NDIR_H
/* Define to 1 if you have the <openvdb/openvdb.h> header file. */
#undef HAVE_OPENVDB_OPENVDB_H
/* Define to 1 if you have the `pow' function. */
#undef HAVE_POW
/* Define to 1 if you have the `sqrt' function. */
#undef HAVE_SQRT
/* Define to 1 if stdbool.h conforms to C99. */
#undef HAVE_STDBOOL_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
*/
#undef HAVE_SYS_DIR_H
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
*/
#undef HAVE_SYS_NDIR_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/timeb.h> header file. */
#undef HAVE_SYS_TIMEB_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if the system has the type `_Bool'. */
#undef HAVE__BOOL
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
#endif
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
#undef inline
#endif
......@@ -632,6 +632,8 @@ GREP
CXXCPP
OpenEXR_LIBS
OpenEXR_CFLAGS
SYMBOLIC_LIBS
SYMBOLIC_CFLAGS
FUNCTY_LIBS
FUNCTY_CFLAGS
PKG_CONFIG_LIBDIR
......@@ -747,6 +749,8 @@ PKG_CONFIG_PATH
PKG_CONFIG_LIBDIR
FUNCTY_CFLAGS
FUNCTY_LIBS
SYMBOLIC_CFLAGS
SYMBOLIC_LIBS
OpenEXR_CFLAGS
OpenEXR_LIBS
CXXCPP'
......@@ -1389,6 +1393,10 @@ Some influential environment variables:
FUNCTY_CFLAGS
C compiler flags for FUNCTY, overriding pkg-config
FUNCTY_LIBS linker flags for FUNCTY, overriding pkg-config
SYMBOLIC_CFLAGS
C compiler flags for SYMBOLIC, overriding pkg-config
SYMBOLIC_LIBS
linker flags for SYMBOLIC, overriding pkg-config
OpenEXR_CFLAGS
C compiler flags for OpenEXR, overriding pkg-config
OpenEXR_LIBS
......@@ -4568,6 +4576,97 @@ $as_echo "yes" >&6; }
fi
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYMBOLIC" >&5
$as_echo_n "checking for SYMBOLIC... " >&6; }
if test -n "$SYMBOLIC_CFLAGS"; then
pkg_cv_SYMBOLIC_CFLAGS="$SYMBOLIC_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsymbolic-1\""; } >&5
($PKG_CONFIG --exists --print-errors "libsymbolic-1") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_SYMBOLIC_CFLAGS=`$PKG_CONFIG --cflags "libsymbolic-1" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test -n "$SYMBOLIC_LIBS"; then
pkg_cv_SYMBOLIC_LIBS="$SYMBOLIC_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsymbolic-1\""; } >&5
($PKG_CONFIG --exists --print-errors "libsymbolic-1") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_SYMBOLIC_LIBS=`$PKG_CONFIG --libs "libsymbolic-1" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
SYMBOLIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsymbolic-1" 2>&1`
else
SYMBOLIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsymbolic-1" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$SYMBOLIC_PKG_ERRORS" >&5
as_fn_error $? "Package requirements (libsymbolic-1) were not met:
$SYMBOLIC_PKG_ERRORS
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables SYMBOLIC_CFLAGS
and SYMBOLIC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." "$LINENO" 5
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables SYMBOLIC_CFLAGS
and SYMBOLIC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details" "$LINENO" 5; }
else
SYMBOLIC_CFLAGS=$pkg_cv_SYMBOLIC_CFLAGS
SYMBOLIC_LIBS=$pkg_cv_SYMBOLIC_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenEXR" >&5
$as_echo_n "checking for OpenEXR... " >&6; }
......@@ -4706,53 +4805,7 @@ else
as_fn_error $? "The glut library is missing." "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateInteger in -lsymbolic" >&5
$as_echo_n "checking for CreateInteger in -lsymbolic... " >&6; }
if ${ac_cv_lib_symbolic_CreateInteger+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lsymbolic $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char CreateInteger ();
int
main ()
{
return CreateInteger ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_symbolic_CreateInteger=yes
else
ac_cv_lib_symbolic_CreateInteger=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_symbolic_CreateInteger" >&5
$as_echo "$ac_cv_lib_symbolic_CreateInteger" >&6; }
if test "x$ac_cv_lib_symbolic_CreateInteger" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSYMBOLIC 1
_ACEOF
LIBS="-lsymbolic $LIBS"
else
as_fn_error $? "The symbolic library is missing." "$LINENO" 5
fi
#AC_CHECK_LIB([symbolic], [CreateInteger], [], [AC_MSG_ERROR([The symbolic library is missing.])])
# See http://nerdland.net/2009/07/detecting-c-libraries-with-autotools/
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenVDB" >&5
......
......@@ -15,9 +15,10 @@ AM_PROG_CC_C_O
# Checks for libraries.
PKG_CHECK_MODULES([FUNCTY], [gtk+-2.0 gdk-2.0 gtkglext-1.0 glee libzip, libpng])
PKG_CHECK_MODULES([SYMBOLIC], [libsymbolic-1])
PKG_CHECK_MODULES([OpenEXR], [OpenEXR, tbb])
AC_CHECK_LIB([glut], [glutInit], [], [AC_MSG_ERROR([The glut library is missing.])])
AC_CHECK_LIB([symbolic], [CreateInteger], [], [AC_MSG_ERROR([The symbolic library is missing.])])
#AC_CHECK_LIB([symbolic], [CreateInteger], [], [AC_MSG_ERROR([The symbolic library is missing.])])
# See http://nerdland.net/2009/07/detecting-c-libraries-with-autotools/
AC_MSG_CHECKING([for OpenVDB])
......
......@@ -2,7 +2,7 @@ Source: functy
Section: math
Priority: extra
Maintainer: David Llewellyn-Jones <david@flypig.co.uk>
Build-Depends: debhelper (>= 7), autotools-dev, libgtkglext1-dev, freeglut3-dev, libgtk2.0-dev, libpango1.0-dev, libglib2.0-dev, libcairo2-dev, zlib1g-dev, libzip-dev, libpng12-dev, libtbb-dev, glee-dev, libopenvdb-dev, libopenexr-dev
Build-Depends: debhelper (>= 7), autotools-dev, libgtkglext1-dev, freeglut3-dev, libgtk2.0-dev, libpango1.0-dev, libglib2.0-dev, libcairo2-dev, zlib1g-dev, libzip-dev, libpng12-dev, libtbb-dev, glee-dev, libopenvdb-dev, libopenexr-dev, libsymbolic-dev
Standards-Version: 3.8.0
Package: functy
......
<?xml version='1.0' encoding='UTF-8' ?>
<functy>
<settings>
<show-axes bool="0"/>
<invert bool="0"/>
<wireframe bool="0"/>
</settings>
<range>
<min>
<coord x="-12.500000" y="-12.500000" z="-12.500000"/>
</min>
<width>
<coord x="25.000000" y="25.000000" z="25.000000"/>
</width>
</range>
<controlvar>
<varname>a</varname>
<varvalue>0.000</varvalue>
</controlvar>
<function type="cartesian">
<name>Lower plane</name>
<equation>-7+8*a</equation>
<red>1.000</red>
<green>0.550</green>
<blue>0.550</blue>
<alpha>1</alpha>
<accuracy double="0.020000"/>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
<function type="cartesian">
<name>Purple sea</name>
<equation>sin(x)*cos(y)</equation>
<red>1.000</red>
<green>0.550</green>
<blue>1</blue>
<alpha>1</alpha>
<accuracy double="0.020000"/>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
<function type="spherical">
<name>Green sphere</name>
<equation>2</equation>
<red>0.000</red>
<green>1.000</green>
<blue>0.348</blue>
<alpha>1.000</alpha>
<accuracy double="0.020000"/>
<centre-x>0.000</centre-x>
<centre-y>0</centre-y>
<centre-z>3</centre-z>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
<function type="spherical">
<name>Yellow sphere</name>
<equation>100</equation>
<red>0.977</red>
<green>1.000</green>
<blue>0.777</blue>
<alpha>1.000</alpha>
<accuracy double="0.020000"/>
<centre-x>0.000</centre-x>
<centre-y>0.000</centre-y>
<centre-z>-102.5</centre-z>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
<function type="spherical">
<name>Red sphere</name>
<equation>1</equation>
<red>1.000</red>
<green>0.550</green>
<blue>0.550</blue>
<alpha>1</alpha>
<accuracy double="0.020000"/>
<centre-x>-5</centre-x>
<centre-y>2</centre-y>
<centre-z>5</centre-z>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
<function type="spherical">
<name>Blue sphere</name>
<equation>3</equation>
<red>0.500</red>
<green>0.606</green>
<blue>0.994</blue>
<alpha>1</alpha>
<accuracy double="0.020000"/>
<centre-x>4</centre-x>
<centre-y>3</centre-y>
<centre-z>6</centre-z>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
<function type="curve">
<name>Curve below</name>
<equation>0.3</equation>
<red>1.000</red>
<green>0.974</green>
<blue>0.550</blue>
<alpha>1.000</alpha>
<accuracy double="0.002500"/>
<accuracy-radius double="0.020000"/>
<equation-x>8*sin(a*12)</equation-x>
<equation-y>8*cos(a*7)+cos(a)</equation-y>
<equation-z>0.1+3*sin(a*3.2)+cos(a)</equation-z>
<centre-x>-3</centre-x>
<centre-y>0.000</centre-y>
<centre-z>0.000</centre-z>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
<function type="curve">
<name>Curve above</name>
<equation>0.4</equation>
<red>1.000</red>
<green>0.550</green>
<blue>0.550</blue>
<alpha>1</alpha>
<accuracy double="0.005000"/>
<accuracy-radius double="0.020000"/>
<equation-x>7*cos(a*2)</equation-x>
<equation-y>1+9*sin(a*7)</equation-y>
<equation-z>7+2*sin(a*2)*cos(a*5)</equation-z>
<centre-x>-2</centre-x>
<centre-y>0.000</centre-y>
<centre-z>3</centre-z>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
</functy>
<?xml version='1.0' encoding='UTF-8' ?>
<functy>
<settings>
<show-axes bool="0"/>
<invert bool="0"/>
<wireframe bool="0"/>
</settings>
<range>
<min>
<coord x="-5.000000" y="-5.000000" z="-5.000000"/>
</min>
<width>
<coord x="10.000000" y="10.000000" z="10.000000"/>
</width>
</range>
<controlvar>
<varname>pi</varname>
<varvalue>3.14159265</varvalue>
</controlvar>
<controlvar>
<varname>f</varname>
<varvalue>0.370</varvalue>
</controlvar>
<controlvar>
<varname>g</varname>
<varvalue>0.337</varvalue>
</controlvar>
<function type="cartesian">
<name>Cartesian 2</name>
<equation>0.5-(0.5*(y+4.5))</equation>
<red>1.000</red>
<green>1.000</green>
<blue>1.000</blue>
<alpha>1.000</alpha>
<accuracy double="0.020000"/>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
<function type="spherical">
<name>Spherical 3</name>
<equation>2.5</equation>
<red>0.500</red>
<green>0.606</green>
<blue>1</blue>
<alpha>1</alpha>
<accuracy double="0.020000"/>
<centre-x>0.000</centre-x>
<centre-y>0</centre-y>
<centre-z>0.000</centre-z>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
<function type="cartesian">
<name>Cartesian 3</name>
<equation>(sin(x+y) / 4)-1000+1000*(x&lt;3)*(x&gt;(0-3))*(y&lt;3)*(y&gt;(0-3))</equation>
<red>1</red>
<green>0.5</green>
<blue>0.5</blue>
<alpha>(x&lt;3)*(x&gt;(0-3))*(y&lt;3)*(y&gt;(0-3))</alpha>
<accuracy double="0.020000"/>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
<function type="curve">
<name>Curve 3</name>
<equation>0.2</equation>
<red>0.000</red>
<green>1.000</green>
<blue>0.065</blue>
<alpha>1.000</alpha>
<accuracy double="0.002000"/>
<accuracy-radius double="0.020000"/>
<equation-x>2*sin(5*a*f*pi)</equation-x>
<equation-y>0-2*cos(5*a*g*pi)</equation-y>
<equation-z>1.5*cos(5*a*g*pi)</equation-z>
<centre-x>0.000</centre-x>
<centre-y>0</centre-y>
<centre-z>0.000</centre-z>
<texture-file></texture-file>
<texture-x-scale>1.0</texture-x-scale>
<texture-y-scale>1.0</texture-y-scale>
<texture-x-offset>0.0</texture-x-offset>
<texture-y-offset>0.0</texture-y-offset>
</function>
</functy>
bin_PROGRAMS = ../functy
___functy_SOURCES = function.c function.h function_private.h functy.c functy.h textures.c textures.h utils.c utils.h vis.c vis.h filesave.c filesave.h cartesian.c cartesian.h spherical.c spherical.h shader.c shader.h curve.c curve.h vecsym.c vecsym.h exportply.c exportply.h exportstl.c exportstl.h exportbitmap.c exportbitmap.h exportsvx.c exportsvx.h recall.c recall.h controlvar.c controlvar.h shadow.c shadow.h longpoll.c longpoll.h exportvdb.c exportvdb.h ovdbc.cpp ovdbc.h
___functy_LDADD = -lm @FUNCTY_LIBS@ @OpenEXR_LIBS@
___functy_LDADD = -lm @FUNCTY_LIBS@ @SYMBOLIC_LIBS@ @OpenEXR_LIBS@
___functy_CPPFLAGS = -DFUNCTYDIR=\"$(datadir)/@PACKAGE@\" -Wall @FUNCTY_CFLAGS@ @OpenEXR_CFLAGS@
___functy_CPPFLAGS = -DFUNCTYDIR=\"$(datadir)/@PACKAGE@\" -Wall @FUNCTY_CFLAGS@ @SYMBOLIC_CFLAGS@ @OpenEXR_CFLAGS@
#dist_pkgdata_DATA = ../ui/functy.ui
This diff is collapsed.
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