You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.5 KiB
45 lines
1.5 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../kbd/configure-trust_gcc.patch.cross |
|
# Copyright (C) 2008 The OpenSDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This patch file is dual-licensed. It is available under the license the |
|
# patched project is licensed under, as long as it is an OpenSource license |
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|
# of the GNU General Public License as published by the Free Software |
|
# Foundation; either version 2 of the License, or (at your option) any later |
|
# version. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
--- ./configure.orig 2004-01-03 14:53:39.000000000 +0000 |
|
+++ ./configure 2008-03-15 20:30:20.000000000 +0000 |
|
@@ -140,7 +140,7 @@ |
|
main(){ exit(0); } |
|
" > conftest.c |
|
eval $compile |
|
-if test -s conftest && ./conftest 2>/dev/null; then |
|
+if test $? -eq 0; then |
|
echo "#define HAVE_locale_h" >> defines.h |
|
echo "You have <locale.h>" |
|
else |
|
@@ -151,6 +151,7 @@ |
|
# |
|
# 2. For lib/nls.h: do we have <libintl.h> and gettext() ? |
|
# |
|
+if [ $nls = 1 ]; then |
|
echo ' |
|
#include <libintl.h> |
|
main(int a, char **v){ |
|
@@ -160,8 +161,7 @@ |
|
} |
|
' > conftest.c |
|
eval $compile |
|
-if [ $nls = 1 ]; then |
|
- if test -s conftest && ./conftest 2>/dev/null; then |
|
+ if test $? -eq 0; then |
|
echo '#define HAVE_libintl_h' >> defines.h |
|
echo "You have <libintl.h> and gettext()" |
|
echo '#define ENABLE_NLS' >> defines.h
|
|
|