Skip to content

Commit

Permalink
Fixes #353, support for overriding Cg libdir
Browse files Browse the repository at this point in the history
to handle systems where it isn't lib, but lib64, as needed

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Aug 2, 2019
1 parent b6c006a commit 63924fd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion OpenEXR_Viewers/m4/path.cb.m4
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ dnl
AC_ARG_WITH(cg-prefix,[ --with-cg-prefix=PFX Prefix where Cg is installed (optional)],
cg_prefix="$withval", cg_prefix="")
AC_ARG_WITH(cg-libdir,[ --with-cg-libdir=PATH Full directory to location for Cg libraries (not includes)],
cg_libdir="$withval", cg_libdir="")
if test x$cg_prefix != x ; then
CG_CXXFLAGS="-I$cg_prefix/include"
CG_LDFLAGS="-L$cg_prefix/lib -lGL -lCg -lCgGL -lGLU -lpthread -lglut"
if test x$cg_libdir != x; then
CG_LDFLAGS="-L$cg_libdir"
else
CG_LDFLAGS="-L$cg_prefix/lib"
fi
CG_LDFLAGS="$CG_LDFLAGS -lGL -lCg -lCgGL -lGLU -lpthread -lglut"
else
case $host_os in
darwin*)
Expand Down

0 comments on commit 63924fd

Please sign in to comment.