<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - configure in poppler 0.22.0 fails to find jpeglib.h"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59186">59186</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>configure in poppler 0.22.0 fails to find jpeglib.h
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Peter_Dyballa@Freenet.DE
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Configuration was:


env LANG=C
PATH=${HOME}/Softwaren64/bin:/usr/bin:/opt/local/x86_64-apple-darwin10.8.0/bin:/opt/local/bin:$PATH
./configure --prefix="${HOME}/Softwaren64" --with-pic --enable-static
--enable-cms=none --enable-introspection=no --disable-utils
--disable-poppler-qt4 --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib
CPPFLAGS="-H -I${HOME}/Softwaren64/include" CFLAGS="-pipe -fPIC -fno-common -Os
-march=core2 -mtune=core2 -m64 -fomit-frame-pointer -msse4.2" LDFLAGS="-m64
-Wl,-t -Wl,-dead_strip_dylibs -L${HOME}/Softwaren64/lib"
PKG_CONFIG_PATH=${HOME}/Softwaren64/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/share/pkgconfig:/usr/X11/lib/pkgconfig

In ${HOME}/Softwaren64 I am preparing shared and static libraries etc. to build
FontForge. There is also jpeg8d installed. No particle of libjpeg6b can be
found.

The configure goes:

    checking for libjpeg6b... no
    checking for libjpeg... -ljpeg
    checking jpeglib.h usability... no
    checking jpeglib.h presence... no
    checking for jpeglib.h... no
    configure: WARNING:
    There is an installation error in jpeg support. You seem to have only one
    of either the headers _or_ the libraries installed. You may need to either
    provide correct --with-extra-... options, or the development package of
    libjpeg6b. You can get a source package of libjpeg from <a href="http://www.ijg.org/">http://www.ijg.org/</a>
    Disabling JPEG support.

    checking libjpeg.h works correctly... ok
    checking for LIBPNG... yes
    checking for FREETYPE... yes


config.log shows that the script initially works OK:

    configure:20271: checking for libjpeg
    configure:20300: gcc -std=gnu99 -o conftest -pipe -fPIC -fno-common -Os
-march=core2 -mtune=core2 -m64 -fomit-frame-pointer -msse4.2    -H
-I/Users/pete/Softwaren64/include -m64 -Wl,-t -Wl,-dead_strip_dylibs
-L/Users/pete/Softwaren64/lib conftest.c    -ljpeg -lm >&5
    /usr/lib/crt1.10.6.o
    /var/folders/PR/PR9ZvjydEAmPxO7U5PFnBk+++TI/-Tmp-//cc7EIUOt.o
    /Users/pete/Softwaren64/lib/libjpeg.dylib
    /usr/lib/libm.dylib
    /usr/lib/libSystem.dylib
    /usr/lib/system/libmathCommon.A.dylib
    configure:20300: $? = 0
    configure:20316: result: -ljpeg

Therefore it finds the library. But for the C header file it forgets the
"-I/Users/pete/Softwaren64/include" (complete CPPFLAGS) so it can't it:

    configure:20335: checking jpeglib.h usability
    configure:20335: gcc -std=gnu99 -c -pipe -fPIC -fno-common -Os -march=core2
-mtune=core2 -m64 -fomit-frame-pointer -msse4.2    -pipe -fPIC -fno-common -Os
-march=core2 -mtune=core2 -m64 -fomit-frame-pointer -msse4.2    conftest.c >&5
    conftest.c:77:21: error: jpeglib.h: No such file or directory
    configure:20335: $? = 1


Mac OS X 10.5.8, Snow Leopard</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>