<commit_before>diff -urN openssh-5.5p1-orig/configure.ac openssh-5.5p1-haiku/configure.ac
--- openssh-5.5p1-orig/configure.ac	2010-04-10 12:58:01.014942208 +0000
+++ openssh-5.5p1-haiku/configure.ac	2010-04-30 05:09:08.936378368 +0000
@@ -1277,7 +1277,7 @@
 			LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
 			CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
 		else
-			LIBEDIT="-ledit -lcurses"
+			AC_CHECK_LIB(curses, tgetent, [LIBEDIT="-ledit -lcurses"], AC_CHECK_LIB(ncurses, tgetent, [LIBEDIT="-ledit -lncurses"]))
 		fi
 		OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
 		AC_CHECK_LIB(edit, el_init,
diff -urN openssh-5.5p1-orig/pathnames.h openssh-5.5p1-haiku/pathnames.h
--- openssh-5.5p1-orig/pathnames.h	2010-02-24 06:17:58.023592960 +0000
+++ openssh-5.5p1-haiku/pathnames.h	2010-04-30 04:53:52.000000000 +0000
@@ -12,7 +12,15 @@
  * called by a name other than "ssh" or "Secure Shell".
  */
 
-#define ETCDIR				"/etc"
+#define HAIKU_USER_SETTINGS_DIRECTORY	"~/config/settings"
+#define HAIKU_COMMON_SETTINGS_DIRECTORY		"/boot/common/settings"
+#define HAIKU_COMMON_BIN_DIRECTORY		"/boot/common/bin"
+#define HAIKU_COMMON_VAR_DIRECTORY		"/boot/common/var"
+#define HAIKU_COMMON_SERVERS_DIRECTORY	"/boot/common/servers"
+#define HAIKU_SYSTEM_BIN_DIRECTORY		"/boot/system/bin"
+
+
+#define ETCDIR				HAIKU_COMMON_SETTINGS_DIRECTORY
 <commit_msg>ok, second try, this time the patch actually applies cleanly.<commit_after>diff -urN openssh-5.5p1/configure.ac openssh-5.5p1-haiku/configure.ac
--- openssh-5.5p1/configure.ac	2010-04-10 12:58:01.014942208 +0000
+++ openssh-5.5p1-haiku/configure.ac	2010-04-30 05:09:08.936378368 +0000
@@ -1277,7 +1277,7 @@
 			LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
 			CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
 		else
-			LIBEDIT="-ledit -lcurses"
+			AC_CHECK_LIB(curses, tgetent, [LIBEDIT="-ledit -lcurses"], AC_CHECK_LIB(ncurses, tgetent, [LIBEDIT="-ledit -lncurses"]))
 		fi
 		OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
 		AC_CHECK_LIB(edit, el_init,
diff -urN openssh-5.5p1/pathnames.h openssh-5.5p1-haiku/pathnames.h
--- openssh-5.5p1/pathnames.h	2010-02-24 06:17:58.023592960 +0000
+++ openssh-5.5p1-haiku/pathnames.h	2010-04-30 04:53:52.000000000 +0000
@@ -12,7 +12,15 @@
  * called by a name other than "ssh" or "Secure Shell".
  */
 
-#define ETCDIR				"/etc"
+#define HAIKU_USER_SETTINGS_DIRECTORY	"~/config/settings"
+#define HAIKU_COMMON_SETTINGS_DIRECTORY		"/boot/common/settings"
+#define HAIKU_COMMON_BIN_DIRECTORY		"/boot/common/bin"
+#define HAIKU_COMMON_VAR_DIRECTORY		"/boot/common/var"
+#define HAIKU_COMMON_SERVERS_DIRECTORY	"/boot/common/servers"
+#define HAIKU_SYSTEM_BIN_DIRECTORY		"/boot/system/bin"
+
+
+#define ETCDIR				HAIKU_COMMON_SETTINGS_DIRECTORY
 
{'fraction_non_alphanumeric': 0.15802919708029198, 'fraction_numerical': 0.10875912408759124, 'mean_word_length': 4.559837728194726, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1238', 'n_tokens_mistral': 1422, 'n_tokens_neox': 1200, 'n_words': 183}