On Monday 24 April 2006 19:16, Dan McMahill wrote:
> > We just built the latest snapshot of PCB and it is broken with our
> > configure options.  Patches coming tomorrow.
>
> I'll be waiting.

When I ran configure with --disable-gif --disable-jpeg --disable-png, make 
failed because LIBS still contains -ljpeg -lpng -lz.  What I did is use sed 
to remove these libraries from LIBS and GD_LIBS if the disable for a library 
is given as a command line argument to configure.

Regards,
Daniel


*** configure.orig      2006-04-25 12:47:40.000000000 -0700
--- configure   2006-04-25 13:19:27.000000000 -0700
***************
*** 8723,8728 ****
--- 8723,8730 ----
                        echo "$as_me:$LINENO: result: no" >&5
  echo "${ECHO_T}no" >&6
                        with_gif=no
+                       GD_LIBS=`echo $GD_LIBS | sed 's/-lz //'`
+                       LIBS=`echo $LIBS | sed 's/-lz //'`
                fi

  else
***************
*** 8860,8865 ****
--- 8862,8869 ----
                        echo "$as_me:$LINENO: result: no" >&5
  echo "${ECHO_T}no" >&6
                        with_jpeg=no
+                       GD_LIBS=`echo $GD_LIBS | sed 's/-ljpeg //'`
+                       LIBS=`echo $LIBS | sed 's/-ljpeg //'`
                fi

  else
***************
*** 8998,9003 ****
--- 9002,9009 ----
                        echo "$as_me:$LINENO: result: no" >&5
  echo "${ECHO_T}no" >&6
                        with_png=no
+                       GD_LIBS=`echo $GD_LIBS | sed 's/-lpng.. //'`
+                       LIBS=`echo $LIBS | sed 's/-lpng.. //'`
                fi

  else

Reply via email to