diff options
author | Jay Freeman <saurik@saurik.com> | 2008-06-14 06:42:59 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-06-14 06:42:59 +0000 |
commit | 5fb13e1c8dba959173fcbae8f7a09e1cb4083cef (patch) | |
tree | 16afa6a7fff2a819def671a054cab53905f3c06f /data/rlwrap/cross.diff | |
parent | c5b46c3d49905f20ce8d3fb05ee0deb2b7b238c6 (diff) |
Added rlwrap as saurik can't live without it.
git-svn-id: http://svn.telesphoreo.org/trunk@304 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/rlwrap/cross.diff')
-rw-r--r-- | data/rlwrap/cross.diff | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/data/rlwrap/cross.diff b/data/rlwrap/cross.diff new file mode 100644 index 000000000..6bf51b3aa --- /dev/null +++ b/data/rlwrap/cross.diff @@ -0,0 +1,41 @@ +diff -ru rlwrap-0.29/configure.ac rlwrap-0.29+iPhone/configure.ac +--- rlwrap-0.29/configure.ac 2007-11-11 11:01:45.000000000 +0000 ++++ rlwrap-0.29+iPhone/configure.ac 2007-12-28 14:10:56.000000000 +0000 +@@ -98,23 +98,9 @@ + AC_MSG_RESULT($ac_term_h_compiles) + + +-AC_MSG_CHECKING([whether your getopt() correctly understands double colons in option string]) +-AC_RUN_IFELSE( +- [AC_LANG_PROGRAM( [[ const char optstring[] = "+:a::b"; +- char * myargv [] = {"progname", "-a", "-b"}; +- int myargc = 3; +- extern char *optarg; +- ]] , [[ +- 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); ]] )], +- [AC_DEFINE(GETOPT_GROKS_OPTIONAL_ARGS, 1, Define if your getopt() correctly understands double colons in the option string) ++ AC_DEFINE(GETOPT_GROKS_OPTIONAL_ARGS, 1, Define if your getopt() correctly understands double colons in the option string) + AC_SUBST(HAVE_OPTIONAL_ARGS,yes) +- ac_double_colons="yes"], +- [AC_SUBST(HAVE_OPTIONAL_ARGS,no) +- ac_double_colons="no"]) ++ ac_double_colons="yes" + AC_MSG_RESULT($ac_double_colons) + + # Checks for typedefs, structures, and compiler characteristics. +@@ -280,10 +266,7 @@ + + # check for existence of myself under /proc/$$/cwd + echo "Will rlwrap find command's working directory under /proc/<commands pid>/cwd? let's see..." +-AC_CHECK_FILES(/proc/$$/cwd/configure.ac,[ +- AC_DEFINE(HAVE_PROC_PID_CWD,1 ,[Define to 1 if /proc/<pid>/cwd is a link to working directory of process <pid>]) +- AC_SUBST(HAVE_PROC_PID_CWD,[yes]) +- ],[AC_SUBST(HAVE_PROC_PID_CWD,[no])]) ++ AC_SUBST(HAVE_PROC_PID_CWD,[no]) + + + echo |