FLTK logo

[master] b275ff0 - Fix for fltk when make install used

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] b275ff0 - Fix for fltk when make install used "Greg Ercolano" Jan 23, 2022  
 
commit b275ff07158e80d1744ddb2f6c51094a87cf079a
Author:     Greg Ercolano <erco@seriss.com>
AuthorDate: Sun Jan 23 03:10:13 2022 -0800
Commit:     Greg Ercolano <erco@seriss.com>
CommitDate: Sun Jan 23 03:10:13 2022 -0800

    Fix for fltk when make install used

 fltk-config.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git fltk-config.in fltk-config.in
index dd549dd..bd3eace 100644
--- fltk-config.in
+++ fltk-config.in
@@ -50,7 +50,11 @@ OPTIM="@OPTIM@"
 CAIROFLAGS="@CAIROFLAGS@"
 
 # Config
-if grep -q '^#define FLTK_HAVE_CAIRO 1' $selfdir/FL/fl_config.h; then
+if ( ( test -f "$includedir/FL/fl_config.h" && \
+       grep -q '^#define FLTK_HAVE_CAIRO 1' "$includedir/FL/fl_config.h" ) \
+     || \
+     ( test -f "$selfdir/FL/fl_config.h" && \
+       grep -q '^#define FLTK_HAVE_CAIRO 1' "$selfdir/FL/fl_config.h" ) ) ; then
     FLTK_HAVE_CAIRO=1
 else
     FLTK_HAVE_CAIRO=0
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.