-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure: Don't do AC_CHECK_FILE when cross compiling #2606
Conversation
AC_CHECK_FILE() is not available when cross compiling. This removes `AC_SUBST(X11_PREFIX)` as it is currently unused. BUG=ibus#2606
AC_CHECK_FILE() is not available when cross compiling. This removes AC_SUBST(X11_PREFIX) as it is currently unused. BUG=ibus#2606
I'm thinking adding the patch one by one for the cross compiling is not good and your patch is a workaround and it's good to fix autoconf/automake to work AC_* macros with the cross compiling. I'd ask you to report your issue to autoconf/automake upstream at first. I think the following change would be good at the moment.
You can run |
https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Files.html
I'll test that when I am available. |
I think there are several ideas to resolve your issue. E.g. Adding another argument of AC_CHECK_FILE and make the exception for cross-compiling likes my suggestion. |
AC_CHECK_FILE() is not available when cross compiling.
This removes
AC_SUBST(X11_PREFIX)
as it is currently unused, if you want me to add it back, I can, as that does work correctly when cross compiling.This also does not handle the situation where both the build machine and target machine have
X11/locale
in different directories.If you don't want this to be an option, replacing
AC_CHECK_FILE()
withtest -f
also works for checking for theX11/locale
directory in the host environment.There is also the issue that this doesn't handle environments where the build machine and the target machine have
X11/locale
in different directories. This isn't an issue in my case, and is something that can be worked around in the build environment, but let me know if that is an issue.