Browse Source

rlwrap: Hacked to support cross-compilation, and marked to build on stage 1 when cross-compiling

early
Alejandro Mery 17 years ago
parent
commit
033d2b5573
  1. 107
      textproc/rlwrap/configure.patch.cross
  2. 2
      textproc/rlwrap/rlwrap.desc

107
textproc/rlwrap/configure.patch.cross

@ -0,0 +1,107 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../rlwrap/configure.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 2008-07-04 11:25:24.000000000 +0000
+++ ./configure 2008-07-04 11:56:27.000000000 +0000
@@ -4706,57 +4706,6 @@
{ echo "$as_me:$LINENO: checking whether your getopt() correctly understands double colons in option string" >&5
echo $ECHO_N "checking whether your getopt() correctly understands double colons in option string... $ECHO_C" >&6; }
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
- const char optstring[] = "+:a::b";
- char * myargv [] = {"progname", "-a", "-b"};
- int myargc = 3;
- extern char *optarg;
-
-int
-main ()
-{
-
- int opt = getopt(myargc, myargv, optstring);
- if (opt != 'a' || optarg) /* optarg != NULL means that -b is seen as argument of -a */
- exit (-1);
- else
- exit(0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
cat >>confdefs.h <<\_ACEOF
#define GETOPT_GROKS_OPTIONAL_ARGS 1
@@ -4765,19 +4714,7 @@
HAVE_OPTIONAL_ARGS=yes
ac_double_colons="yes"
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-HAVE_OPTIONAL_ARGS=no
-
- ac_double_colons="no"
-fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
{ echo "$as_me:$LINENO: result: $ac_double_colons" >&5
echo "${ECHO_T}$ac_double_colons" >&6; }
@@ -6296,10 +6233,6 @@
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- test "$cross_compiling" = yes &&
- { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
- { (exit 1); exit 1; }; }
if test -r "/proc/$$/cwd/configure.ac"; then
eval "$as_ac_File=yes"
else

2
textproc/rlwrap/rlwrap.desc

@ -29,6 +29,6 @@
[L] GPL
[S] Beta
[V] 0.30
[P] X -----5---9 800.000
[P] X -?---5---9 800.000
[D] 262523195 rlwrap-0.30.tar.gz http://utopia.knoware.nl/~hlub/uck/rlwrap/

Loading…
Cancel
Save