VirtualBox

Changeset 3147 in kBuild for trunk/src/kmk/configure.ac


Ignore:
Timestamp:
Mar 15, 2018 5:29:12 PM (7 years ago)
Author:
bird
Message:

kmk: Always use our glob and fnmatch implementation to avoid trouble (debian builds ran into something, if I understood it correctly).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/configure.ac

    r3143 r3147  
    394394rm -f s.conftest conftoast
    395395
     396## bird: always use our glob impl. Avoids trouble with newish glibc.
    396397# Check the system to see if it provides GNU glob.  If not, use our
    397398# local version.
    398 AC_CACHE_CHECK([if system libc has GNU glob], [make_cv_sys_gnu_glob],
    399 [ AC_EGREP_CPP([gnu glob],[
    400 #include <features.h>
    401 #include <glob.h>
    402 #include <fnmatch.h>
    403 
    404 #define GLOB_INTERFACE_VERSION 1
    405 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
    406 # include <gnu-versions.h>
    407 # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
    408    gnu glob
    409 # endif
    410 #endif],
    411         [make_cv_sys_gnu_glob=yes],
    412         [make_cv_sys_gnu_glob=no])])
    413 AS_IF([test "$make_cv_sys_gnu_glob" = no],
     399#x# AC_CACHE_CHECK([if system libc has GNU glob], [make_cv_sys_gnu_glob],
     400#x# [ AC_EGREP_CPP([gnu glob],[
     401#x# #include <features.h>
     402#x# #include <glob.h>
     403#x# #include <fnmatch.h>
     404#x#
     405#x# #define GLOB_INTERFACE_VERSION 1
     406#x# #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
     407#x# # include <gnu-versions.h>
     408#x# # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
     409#x#    gnu glob
     410#x# # endif
     411#x# #endif],
     412#x#         [make_cv_sys_gnu_glob=yes],
     413#x#         [make_cv_sys_gnu_glob=no])])
     414#x# AS_IF([test "$make_cv_sys_gnu_glob" = no],
     415AS_IF([test yes = yes],
    414416[ GLOBINC='-I$(srcdir)/glob'
    415417  GLOBLIB=glob/libglob.a
     418  make_cv_sys_gnu_glob=no
    416419])
    417420AC_SUBST([GLOBINC])
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette