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//cwd? let's see..." -AC_CHECK_FILES(/proc/$$/cwd/configure.ac,[ - AC_DEFINE(HAVE_PROC_PID_CWD,1 ,[Define to 1 if /proc//cwd is a link to working directory of process ]) - AC_SUBST(HAVE_PROC_PID_CWD,[yes]) - ],[AC_SUBST(HAVE_PROC_PID_CWD,[no])]) + AC_SUBST(HAVE_PROC_PID_CWD,[no]) echo