Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8001930

build-infra: Use AC_CHECK_LIB properly

XMLWordPrintable

      In libraries.m4, we check several libraries using AC_CHECK_LIB. However, we misuse the function so it does not do what we think it does.

      Inproper use:
      AC_CHECK_LIB(jpeg, main, ...)

      Proper use:
      AC_CHECK_LIB(z, compress, ...)

      This is proper since compress is a function in the libz library, but "main" is a function not in libjpeg, but in the autoconf testing program.

      In other words, we need to supply a function present in the library we test, or the test will be meaningless.

      We currently have improper uses of AC_CHECK_LIB at libjpeg and libgif.

            Unassigned Unassigned
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: