426,439c426,441 < # This should work on any unixy platform ;-) < # If the user has bothered specifying additional -I and -L flags < # in OPT and LDFLAGS we might as well use them here. < # NOTE: using shlex.split would technically be more correct, but < # also gives a bootstrap problem. Let's hope nobody uses directories < # with whitespace in the name to store libraries. < cflags, ldflags = sysconfig.get_config_vars('CFLAGS', 'LDFLAGS') < for item in cflags.split(): < if item.startswith('-I'): < inc_dirs.append(item[2:]) < < for item in ldflags.split(): < if item.startswith('-L'): < lib_dirs.append(item[2:]) --- > if platform == 'darwin': > # This should work on any unixy platform ;-) > # If the user has bothered specifying additional -I and -L flags > # in OPT and LDFLAGS we might as well use them here. > # NOTE: using shlex.split would technically be more correct, but > # also gives a bootstrap problem. Let's hope nobody uses directories > # with whitespace in the name to store libraries. > cflags, ldflags = sysconfig.get_config_vars( > 'CFLAGS', 'LDFLAGS') > for item in cflags.split(): > if item.startswith('-I'): > inc_dirs.append(item[2:]) > > for item in ldflags.split(): > if item.startswith('-L'): > lib_dirs.append(item[2:]) 1255c1257 < zlib_inc = find_file('zlib.h', [''], inc_dirs) --- > zlib_inc = find_file('zlib.h', [], inc_dirs)