Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
89f824c0
Commit
89f824c0
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
test jpeg only for GUI version
parent
bd462ae5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+41
-40
41 additions, 40 deletions
configure
configure.in
+7
-6
7 additions, 6 deletions
configure.in
with
48 additions
and
46 deletions
configure
+
41
−
40
View file @
89f824c0
...
@@ -2673,6 +2673,7 @@ if test "x$enable_gui" != "xno"; then
...
@@ -2673,6 +2673,7 @@ if test "x$enable_gui" != "xno"; then
GMSH_DIRS
=
"
${
GMSH_DIRS
}
Graphics Fltk"
GMSH_DIRS
=
"
${
GMSH_DIRS
}
Graphics Fltk"
GMSH_LIBS
=
"-Llib -lGmshFltk -lGmshParser -lGmshGraphics -lGmshMesh -lGmshGeo -lGmshNumeric -lGmshCommon -lGmshDataStr -lGmshPlugin -lGmshParallel"
GMSH_LIBS
=
"-Llib -lGmshFltk -lGmshParser -lGmshGraphics -lGmshMesh -lGmshGeo -lGmshNumeric -lGmshCommon -lGmshDataStr -lGmshPlugin -lGmshParallel"
VERSION_FLAGS
=
"-D_FLTK"
VERSION_FLAGS
=
"-D_FLTK"
if
test
"x
${
FLTK_PREFIX
}
"
!=
"x"
;
then
if
test
"x
${
FLTK_PREFIX
}
"
!=
"x"
;
then
# Extract the first word of "fltk-config", so it can be a program name with args.
# Extract the first word of "fltk-config", so it can be a program name with args.
set
dummy fltk-config
;
ac_word
=
$2
set
dummy fltk-config
;
ac_word
=
$2
...
@@ -2763,46 +2764,7 @@ echo "$as_me: error: Could not find fltk-config. Try --with-fltk-prefix?" >&2;}
...
@@ -2763,46 +2764,7 @@ echo "$as_me: error: Could not find fltk-config. Try --with-fltk-prefix?" >&2;}
GUI_LIBS
=
"
`
$FLTKCONFIG
--use-gl
--use-images
--ldstaticflags
`
"
GUI_LIBS
=
"
`
$FLTKCONFIG
--use-gl
--use-images
--ldstaticflags
`
"
GUI_INCLUDE
=
"
`
$FLTKCONFIG
--use-gl
--use-images
--cxxflags
`
"
GUI_INCLUDE
=
"
`
$FLTKCONFIG
--use-gl
--use-images
--cxxflags
`
"
else
ac_ext
=
cc
GMSH_DIRS
=
"
${
GMSH_DIRS
}
Box"
GMSH_LIBS
=
"-Llib -lGmshBox -lGmshParser -lGmshMesh -lGmshGeo -lGmshNumeric -lGmshPlugin -lGmshCommon -lGmshDataStr -lGmshParallel"
VERSION_FLAGS
=
"-D_BLACKBOX"
GUI_LIBS
=
""
GUI_INCLUDE
=
""
fi
echo
"
$as_me
:
$LINENO
: checking for ./Triangle/triangle.c"
>
&5
echo
$ECHO_N
"checking for ./Triangle/triangle.c...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_file___Triangle_triangle_c
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
test
"
$cross_compiling
"
=
yes
&&
{
{
echo
"
$as_me
:
$LINENO
: error: cannot check for file existence when cross compiling"
>
&5
echo
"
$as_me
: error: cannot check for file existence when cross compiling"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
if
test
-r
"./Triangle/triangle.c"
;
then
ac_cv_file___Triangle_triangle_c
=
yes
else
ac_cv_file___Triangle_triangle_c
=
no
fi
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_file___Triangle_triangle_c
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_file___Triangle_triangle_c
"
>
&6
if
test
$ac_cv_file___Triangle_triangle_c
=
yes
;
then
HAVE_TRIANGLE
=
"yes"
else
HAVE_TRIANGLE
=
"no"
fi
if
test
"x
${
HAVE_TRIANGLE
}
"
=
"xyes"
-a
"x
$enable_triangle
"
!=
"xno"
;
then
GMSH_DIRS
=
"
${
GMSH_DIRS
}
Triangle"
GMSH_LIBS
=
"
${
GMSH_LIBS
}
-lGmshTriangle"
VERSION_FLAGS
=
"
${
VERSION_FLAGS
}
-DHAVE_TRIANGLE"
fi
ac_ext
=
cc
ac_cpp
=
'$CXXCPP $CPPFLAGS'
ac_cpp
=
'$CXXCPP $CPPFLAGS'
ac_compile
=
'$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_compile
=
'$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link
=
'$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_link
=
'$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
...
@@ -3362,6 +3324,45 @@ fi
...
@@ -3362,6 +3324,45 @@ fi
else
GMSH_DIRS
=
"
${
GMSH_DIRS
}
Box"
GMSH_LIBS
=
"-Llib -lGmshBox -lGmshParser -lGmshMesh -lGmshGeo -lGmshNumeric -lGmshPlugin -lGmshCommon -lGmshDataStr -lGmshParallel"
VERSION_FLAGS
=
"-D_BLACKBOX"
GUI_LIBS
=
""
GUI_INCLUDE
=
""
fi
echo
"
$as_me
:
$LINENO
: checking for ./Triangle/triangle.c"
>
&5
echo
$ECHO_N
"checking for ./Triangle/triangle.c...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_file___Triangle_triangle_c
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
test
"
$cross_compiling
"
=
yes
&&
{
{
echo
"
$as_me
:
$LINENO
: error: cannot check for file existence when cross compiling"
>
&5
echo
"
$as_me
: error: cannot check for file existence when cross compiling"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
if
test
-r
"./Triangle/triangle.c"
;
then
ac_cv_file___Triangle_triangle_c
=
yes
else
ac_cv_file___Triangle_triangle_c
=
no
fi
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_file___Triangle_triangle_c
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_file___Triangle_triangle_c
"
>
&6
if
test
$ac_cv_file___Triangle_triangle_c
=
yes
;
then
HAVE_TRIANGLE
=
"yes"
else
HAVE_TRIANGLE
=
"no"
fi
if
test
"x
${
HAVE_TRIANGLE
}
"
=
"xyes"
-a
"x
$enable_triangle
"
!=
"xno"
;
then
GMSH_DIRS
=
"
${
GMSH_DIRS
}
Triangle"
GMSH_LIBS
=
"
${
GMSH_LIBS
}
-lGmshTriangle"
VERSION_FLAGS
=
"
${
VERSION_FLAGS
}
-DHAVE_TRIANGLE"
fi
if
test
"x
$enable_parallel
"
=
"xyes"
;
then
if
test
"x
$enable_parallel
"
=
"xyes"
;
then
VERSION_FLAGS
=
"
${
VERSION_FLAGS
}
-DPARALLEL"
VERSION_FLAGS
=
"
${
VERSION_FLAGS
}
-DPARALLEL"
fi
fi
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
7
−
6
View file @
89f824c0
dnl "$Id: configure.in,v 1.
9
2003-02-12 16:2
0:31
geuzaine Exp $"
dnl "$Id: configure.in,v 1.
10
2003-02-12 16:2
3:12
geuzaine Exp $"
dnl
dnl
dnl Machine independent configuration script for Gmsh.
dnl Machine independent configuration script for Gmsh.
dnl
dnl
...
@@ -87,6 +87,7 @@ if test "x$enable_gui" != "xno"; then
...
@@ -87,6 +87,7 @@ if test "x$enable_gui" != "xno"; then
GMSH_DIRS="${GMSH_DIRS} Graphics Fltk"
GMSH_DIRS="${GMSH_DIRS} Graphics Fltk"
GMSH_LIBS="-Llib -lGmshFltk -lGmshParser -lGmshGraphics -lGmshMesh -lGmshGeo -lGmshNumeric -lGmshCommon -lGmshDataStr -lGmshPlugin -lGmshParallel"
GMSH_LIBS="-Llib -lGmshFltk -lGmshParser -lGmshGraphics -lGmshMesh -lGmshGeo -lGmshNumeric -lGmshCommon -lGmshDataStr -lGmshPlugin -lGmshParallel"
VERSION_FLAGS="-D_FLTK"
VERSION_FLAGS="-D_FLTK"
if test "x${FLTK_PREFIX}" != "x" ; then
if test "x${FLTK_PREFIX}" != "x" ; then
AC_PATH_PROG(FLTKCONFIG,fltk-config,"",${FLTK_PREFIX})
AC_PATH_PROG(FLTKCONFIG,fltk-config,"",${FLTK_PREFIX})
else
else
...
@@ -98,6 +99,11 @@ if test "x$enable_gui" != "xno"; then
...
@@ -98,6 +99,11 @@ if test "x$enable_gui" != "xno"; then
GUI_LIBS="`$FLTKCONFIG --use-gl --use-images --ldstaticflags`"
GUI_LIBS="`$FLTKCONFIG --use-gl --use-images --ldstaticflags`"
GUI_INCLUDE="`$FLTKCONFIG --use-gl --use-images --cxxflags`"
GUI_INCLUDE="`$FLTKCONFIG --use-gl --use-images --cxxflags`"
dnl Check if libjpeg is available (in case fltk didn't find it) to enable/disable gl2jpg
AC_CHECK_HEADER(jpeglib.h,
AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
VERSION_FLAGS="${VERSION_FLAGS} -DHAVE_LIBJPEG" GUI_LIBS="${GUI_LIBS} -ljpeg"))
else
else
GMSH_DIRS="${GMSH_DIRS} Box"
GMSH_DIRS="${GMSH_DIRS} Box"
...
@@ -116,11 +122,6 @@ if test "x${HAVE_TRIANGLE}" = "xyes" -a "x$enable_triangle" != "xno"; then
...
@@ -116,11 +122,6 @@ if test "x${HAVE_TRIANGLE}" = "xyes" -a "x$enable_triangle" != "xno"; then
VERSION_FLAGS="${VERSION_FLAGS} -DHAVE_TRIANGLE"
VERSION_FLAGS="${VERSION_FLAGS} -DHAVE_TRIANGLE"
fi
fi
dnl Check if libjpeg is available (in case fltk didn't find it) to enable/disable gl2jpg
AC_CHECK_HEADER(jpeglib.h,
AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
VERSION_FLAGS="${VERSION_FLAGS} -DHAVE_LIBJPEG" GUI_LIBS="${GUI_LIBS} -ljpeg"))
dnl Check if if should build the parallel version
dnl Check if if should build the parallel version
if test "x$enable_parallel" = "xyes"; then
if test "x$enable_parallel" = "xyes"; then
VERSION_FLAGS="${VERSION_FLAGS} -DPARALLEL"
VERSION_FLAGS="${VERSION_FLAGS} -DPARALLEL"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment