| @@ -1,16 +1,17 @@ | | | @@ -1,16 +1,17 @@ |
1 | $NetBSD: patch-aa,v 1.7 2013/03/22 18:05:10 marino Exp $ | | 1 | $NetBSD: patch-aa,v 1.8 2013/07/05 13:33:40 ryoon Exp $ |
2 | | | 2 | |
3 | Add DragonFly | | 3 | * Add DragonFly |
| | | 4 | * Fix giflib 5.0 build. |
4 | | | 5 | |
5 | --- configure.ac.orig 2013-03-05 08:24:59.000000000 +0000 | | 6 | --- configure.ac.orig 2013-03-05 08:24:59.000000000 +0000 |
6 | +++ configure.ac | | 7 | +++ configure.ac |
7 | @@ -476,6 +476,14 @@ case "${canonical}" in | | 8 | @@ -476,6 +476,14 @@ case "${canonical}" in |
8 | powerpc-ibm-aix[56]* ) | | 9 | powerpc-ibm-aix[56]* ) |
9 | opsys=aix4-2 | | 10 | opsys=aix4-2 |
10 | ;; | | 11 | ;; |
11 | + ## DragonFly ports | | 12 | + ## DragonFly ports |
12 | + *-*-dragonfly*) | | 13 | + *-*-dragonfly*) |
13 | + opsys=dragonfly | | 14 | + opsys=dragonfly |
14 | + case "${canonical}" in | | 15 | + case "${canonical}" in |
15 | + i[3456]86-*-dragonfly*) machine=intel386 ;; | | 16 | + i[3456]86-*-dragonfly*) machine=intel386 ;; |
16 | + amd64-*-dragonfly*|x86_64-*-dragonfly*) machine=amdx86-64 ;; | | 17 | + amd64-*-dragonfly*|x86_64-*-dragonfly*) machine=amdx86-64 ;; |
| @@ -68,108 +69,118 @@ Add DragonFly | | | @@ -68,108 +69,118 @@ Add DragonFly |
68 | + if test ! -f $crt_gcc_subdir/$f; then | | 69 | + if test ! -f $crt_gcc_subdir/$f; then |
69 | + AC_MSG_ERROR([Required file not found: $f]) | | 70 | + AC_MSG_ERROR([Required file not found: $f]) |
70 | + fi | | 71 | + fi |
71 | + done | | 72 | + done |
72 | + LIB_STANDARD="$crt_gcc_subdir/crtend.o $LIB_STANDARD" | | 73 | + LIB_STANDARD="$crt_gcc_subdir/crtend.o $LIB_STANDARD" |
73 | + START_FILES="$START_FILES $crt_gcc_subdir/crtbegin.o" | | 74 | + START_FILES="$START_FILES $crt_gcc_subdir/crtbegin.o" |
74 | + else | | 75 | + else |
75 | + AC_MSG_WARN([Correct CRT file list unknown for ${CC}.]) | | 76 | + AC_MSG_WARN([Correct CRT file list unknown for ${CC}.]) |
76 | + fi | | 77 | + fi |
77 | + ;; | | 78 | + ;; |
78 | netbsd | openbsd ) | | 79 | netbsd | openbsd ) |
79 | if test -f $CRT_DIR/crti.o; then | | 80 | if test -f $CRT_DIR/crti.o; then |
80 | | | 81 | |
81 | @@ -2834,7 +2869,7 @@ mail_lock=no | | 82 | @@ -2661,7 +2696,8 @@ if test "${HAVE_X11}" = "yes" && test "$ |
| | | 83 | AC_CHECK_HEADER(gif_lib.h, |
| | | 84 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
| | | 85 | # Earlier versions can crash Emacs. |
| | | 86 | - [AC_CHECK_LIB(gif, EGifPutExtensionLast, HAVE_GIF=yes, HAVE_GIF=maybe)]) |
| | | 87 | +# EGifPutExtensionLast) has been deprecated in giflib 5.0.0 or later. |
| | | 88 | + [AC_CHECK_LIB(gif, EGifPutExtensionTrailer, HAVE_GIF=yes, HAVE_GIF=maybe)]) |
| | | 89 | |
| | | 90 | if test "$HAVE_GIF" = yes; then |
| | | 91 | LIBGIF=-lgif |
| | | 92 | @@ -2834,7 +2870,7 @@ mail_lock=no |
82 | case "$opsys" in | | 93 | case "$opsys" in |
83 | aix4-2) mail_lock="lockf" ;; | | 94 | aix4-2) mail_lock="lockf" ;; |
84 | | | 95 | |
85 | - gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;; | | 96 | - gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;; |
86 | + gnu|dragonfly|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;; | | 97 | + gnu|dragonfly|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;; |
87 | | | 98 | |
88 | ## On GNU/Linux systems, both methods are used by various mail programs. | | 99 | ## On GNU/Linux systems, both methods are used by various mail programs. |
89 | ## I assume most people are using newer mailers that have heard of flock. | | 100 | ## I assume most people are using newer mailers that have heard of flock. |
90 | @@ -2988,6 +3023,11 @@ case "$opsys" in | | 101 | @@ -2988,6 +3024,11 @@ case "$opsys" in |
91 | ## option to use it. | | 102 | ## option to use it. |
92 | darwin) LIBS_TERMCAP="-lncurses" ;; | | 103 | darwin) LIBS_TERMCAP="-lncurses" ;; |
93 | | | 104 | |
94 | + dragonfly) | | 105 | + dragonfly) |
95 | + TERMINFO=yes | | 106 | + TERMINFO=yes |
96 | + LIBS_TERMCAP="-lncurses" | | 107 | + LIBS_TERMCAP="-lncurses" |
97 | + ;; | | 108 | + ;; |
98 | + | | 109 | + |
99 | gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;; | | 110 | gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;; |
100 | | | 111 | |
101 | freebsd) | | 112 | freebsd) |
102 | @@ -3439,7 +3479,7 @@ case $opsys in | | 113 | @@ -3439,7 +3480,7 @@ case $opsys in |
103 | esac | | 114 | esac |
104 | | | 115 | |
105 | case $opsys in | | 116 | case $opsys in |
106 | - darwin | freebsd | netbsd | openbsd ) | | 117 | - darwin | freebsd | netbsd | openbsd ) |
107 | + darwin | dragonfly | freebsd | netbsd | openbsd ) | | 118 | + darwin | dragonfly | freebsd | netbsd | openbsd ) |
108 | AC_DEFINE(DONT_REOPEN_PTY, 1, [Define if process.c does not need to | | 119 | AC_DEFINE(DONT_REOPEN_PTY, 1, [Define if process.c does not need to |
109 | close a pty to make it a controlling terminal (it is already a | | 120 | close a pty to make it a controlling terminal (it is already a |
110 | controlling terminal of the subprocess, because we did ioctl TIOCSCTTY).]) | | 121 | controlling terminal of the subprocess, because we did ioctl TIOCSCTTY).]) |
111 | @@ -3545,7 +3585,7 @@ case $opsys in | | 122 | @@ -3545,7 +3586,7 @@ case $opsys in |
112 | AC_DEFINE(FIRST_PTY_LETTER, ['p']) | | 123 | AC_DEFINE(FIRST_PTY_LETTER, ['p']) |
113 | ;; | | 124 | ;; |
114 | | | 125 | |
115 | - gnu-linux | gnu-kfreebsd | freebsd | netbsd ) | | 126 | - gnu-linux | gnu-kfreebsd | freebsd | netbsd ) |
116 | + gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd ) | | 127 | + gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd ) |
117 | dnl if HAVE_GRANTPT | | 128 | dnl if HAVE_GRANTPT |
118 | if test "x$ac_cv_func_grantpt" = xyes; then | | 129 | if test "x$ac_cv_func_grantpt" = xyes; then |
119 | AC_DEFINE(UNIX98_PTYS, 1, [Define if the system has Unix98 PTYs.]) | | 130 | AC_DEFINE(UNIX98_PTYS, 1, [Define if the system has Unix98 PTYs.]) |
120 | @@ -3628,7 +3668,7 @@ AH_TEMPLATE(SIGNALS_VIA_CHARACTERS, [Mak | | 131 | @@ -3628,7 +3669,7 @@ AH_TEMPLATE(SIGNALS_VIA_CHARACTERS, [Mak |
121 | case $opsys in | | 132 | case $opsys in |
122 | dnl Perry Smith <pedz@ddivt1.austin.ibm.com> says this is correct for AIX. | | 133 | dnl Perry Smith <pedz@ddivt1.austin.ibm.com> says this is correct for AIX. |
123 | dnl thomas@mathematik.uni-bremen.de says this is needed for IRIX. | | 134 | dnl thomas@mathematik.uni-bremen.de says this is needed for IRIX. |
124 | - aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin ) | | 135 | - aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin ) |
125 | + aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin ) | | 136 | + aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin ) |
126 | AC_DEFINE(SIGNALS_VIA_CHARACTERS, 1) | | 137 | AC_DEFINE(SIGNALS_VIA_CHARACTERS, 1) |
127 | ;; | | 138 | ;; |
128 | | | 139 | |
129 | @@ -3725,6 +3765,10 @@ else dnl !ema | | 140 | @@ -3725,6 +3766,10 @@ else dnl !ema |
130 | AC_DEFINE(PENDING_OUTPUT_COUNT(FILE), [((FILE)->_p - (FILE)->_bf._base)]) | | 141 | AC_DEFINE(PENDING_OUTPUT_COUNT(FILE), [((FILE)->_p - (FILE)->_bf._base)]) |
131 | ;; | | 142 | ;; |
132 | | | 143 | |
133 | + dragonfly) | | 144 | + dragonfly) |
134 | + AC_DEFINE(PENDING_OUTPUT_COUNT(FILE), [__fpending (FILE)]) | | 145 | + AC_DEFINE(PENDING_OUTPUT_COUNT(FILE), [__fpending (FILE)]) |
135 | + ;; | | 146 | + ;; |
136 | + | | 147 | + |
137 | unixware) | | 148 | unixware) |
138 | AC_DEFINE(PENDING_OUTPUT_COUNT(FILE), [((FILE)->__ptr - (FILE)->__base)]) | | 149 | AC_DEFINE(PENDING_OUTPUT_COUNT(FILE), [((FILE)->__ptr - (FILE)->__base)]) |
139 | ;; | | 150 | ;; |
140 | @@ -3782,7 +3826,7 @@ AH_TEMPLATE(TAB3, [Undocumented.]) | | 151 | @@ -3782,7 +3827,7 @@ AH_TEMPLATE(TAB3, [Undocumented.]) |
141 | case $opsys in | | 152 | case $opsys in |
142 | darwin) AC_DEFINE(TAB3, OXTABS) ;; | | 153 | darwin) AC_DEFINE(TAB3, OXTABS) ;; |
143 | | | 154 | |
144 | - gnu | freebsd | netbsd | openbsd ) | | 155 | - gnu | freebsd | netbsd | openbsd ) |
145 | + gnu | dragonfly | freebsd | netbsd | openbsd ) | | 156 | + gnu | dragonfly | freebsd | netbsd | openbsd ) |
146 | AC_DEFINE(TABDLY, OXTABS, [Undocumented.]) | | 157 | AC_DEFINE(TABDLY, OXTABS, [Undocumented.]) |
147 | AC_DEFINE(TAB3, OXTABS) | | 158 | AC_DEFINE(TAB3, OXTABS) |
148 | ;; | | 159 | ;; |
149 | @@ -3859,7 +3903,7 @@ if test x$GCC = xyes; then | | 160 | @@ -3859,7 +3904,7 @@ if test x$GCC = xyes; then |
150 | else | | 161 | else |
151 | case $opsys in | | 162 | case $opsys in |
152 | dnl irix: Tested on Irix 6.5. SCM worked on earlier versions. | | 163 | dnl irix: Tested on Irix 6.5. SCM worked on earlier versions. |
153 | - freebsd | netbsd | openbsd | irix6-5 | sol2* ) | | 164 | - freebsd | netbsd | openbsd | irix6-5 | sol2* ) |
154 | + dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* ) | | 165 | + dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* ) |
155 | AC_DEFINE(GC_SETJMP_WORKS, 1) | | 166 | AC_DEFINE(GC_SETJMP_WORKS, 1) |
156 | ;; | | 167 | ;; |
157 | esac | | 168 | esac |
158 | @@ -3959,7 +4003,7 @@ case $opsys in | | 169 | @@ -3959,7 +4004,7 @@ case $opsys in |
159 | AC_DEFINE(BSD_SYSTEM_AHB, 1, [Define if AH_BOTTOM should change BSD_SYSTEM.]) | | 170 | AC_DEFINE(BSD_SYSTEM_AHB, 1, [Define if AH_BOTTOM should change BSD_SYSTEM.]) |
160 | ;; | | 171 | ;; |
161 | | | 172 | |
162 | - gnu | netbsd | openbsd ) | | 173 | - gnu | netbsd | openbsd ) |
163 | + gnu | dragonfly | netbsd | openbsd ) | | 174 | + gnu | dragonfly | netbsd | openbsd ) |
164 | AC_DEFINE(BSD4_2, []) | | 175 | AC_DEFINE(BSD4_2, []) |
165 | AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[ | | 176 | AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[ |
166 | #ifndef BSD_SYSTEM | | 177 | #ifndef BSD_SYSTEM |
167 | @@ -4415,7 +4459,7 @@ LIB_GCC= | | 178 | @@ -4415,7 +4460,7 @@ LIB_GCC= |
168 | if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then | | 179 | if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then |
169 | | | 180 | |
170 | case "$opsys" in | | 181 | case "$opsys" in |
171 | - freebsd|netbsd|openbsd) LIB_GCC= ;; | | 182 | - freebsd|netbsd|openbsd) LIB_GCC= ;; |
172 | + dragonfly|freebsd|netbsd|openbsd) LIB_GCC= ;; | | 183 | + dragonfly|freebsd|netbsd|openbsd) LIB_GCC= ;; |
173 | | | 184 | |
174 | gnu-*) | | 185 | gnu-*) |
175 | ## armin76@gentoo.org reported that the lgcc_s flag is necessary to | | 186 | ## armin76@gentoo.org reported that the lgcc_s flag is necessary to |