Qtopia/X11: Install the right Qtopia XSession start script as well
[vuplus_openembedded] / packages / nano / nano-1.2.1 / configure.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- nano-1.2.1/configure.ac~configure
7 +++ nano-1.2.1/configure.ac
8 @@ -19,12 +19,12 @@
9  #
10  # $Id: configure.ac,v 1.44 2003/03/11 03:50:39 astyanax Exp $
11  
12 -AC_INIT([GNU Nano], [1.2.1], [nano-devel@gnu.org], [nano])
13 +AC_INIT([GNU Nano],[1.2.1],[nano-devel@gnu.org],[nano])
14  AC_CONFIG_SRCDIR([nano.c])
15  AM_INIT_AUTOMAKE
16  AM_CONFIG_HEADER([config.h:config.h.in])
17  
18 -AC_PREREQ(2.52)
19 +AC_PREREQ(2.57)
20  
21  dnl Checks for programs.
22  AC_PROG_CC
23 @@ -38,14 +38,15 @@
24  dnl Checks for header files.
25  AC_HEADER_STDC
26  AC_CHECK_HEADERS(fcntl.h getopt.h libintl.h limits.h regex.h termio.h termios.h unistd.h)
27 +
28  AC_CHECK_HEADER(regex.h,
29 -    AC_MSG_CHECKING([for broken regexec])
30 -    AC_TRY_RUN([
31 +    AC_CACHE_CHECK([for broken regexec],
32 +            ac_cv_regexec_segfault_emptystr,
33 +            AC_RUN_IFELSE([AC_LANG_SOURCE([[
34  #include <sys/types.h>
35  #include <regex.h>
36 -int main() { regex_t reg; size_t n; regmatch_t r; regcomp(&reg, ".", 0); regexec(&reg, "", n, &r, 0); return 0; }],
37 -       AC_MSG_RESULT(no),
38 -       AC_MSG_RESULT(yes); AC_DEFINE(BROKEN_REGEXEC, 1, [Define this if your regexec() function segfaults when passed an empty string.])
39 +int main() { regex_t reg; size_t n; regmatch_t r; regcomp(&reg, ".", 0); regexec(&reg, "", n, &r, 0); return 0; }]])],[AC_MSG_RESULT(no)],[AC_MSG_RESULT(yes); AC_DEFINE(BROKEN_REGEXEC, 1, Define this if your regexec() function segfaults when passed an empty string.)
40 +            ],[])
41      )
42  )
43  
44 @@ -198,11 +199,10 @@
45             AC_MSG_CHECKING([for SLtt_initialize in -lslang])
46             _libs=$LIBS
47             LIBS="$LIBS -lslang"
48 -           AC_TRY_RUN([
49 +           AC_RUN_IFELSE([AC_LANG_SOURCE([[
50  #include <stdio.h>
51  #include <slcurses.h>
52 -int main () { SLtt_initialize (NULL); return 0; }],
53 -               [AC_MSG_RESULT(yes)
54 +int main () { SLtt_initialize (NULL); return 0; }]])],[AC_MSG_RESULT(yes)
55                 AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.])
56                 slang_support=yes
57                 if test "$with_slang" != "yes"; then
58 @@ -210,7 +210,7 @@
59                 else
60                     CURSES_LIB="-lslang"
61                 fi
62 -               CURSES_LIB_NAME=slang], [
63 +               CURSES_LIB_NAME=slang],[
64                 AC_MSG_RESULT(no)
65                 # We might need the term library
66                 for termlib in ncurses curses termcap terminfo termlib; do
67 @@ -220,7 +220,7 @@
68  
69                 AC_MSG_CHECKING([for SLtt_initialize in -lslang $tcap])
70                 LIBS="$LIBS $tcap"
71 -               AC_TRY_RUN([
72 +AC_TRY_RUN([
73  #include <stdio.h>
74  #include <slcurses.h>
75  int main () { SLtt_initialize (NULL); return 0; }],
76 @@ -237,7 +237,7 @@
77                     # We might need the math library
78                     AC_MSG_CHECKING([for SLtt_initialize in -lslang $tcap -lm])
79                     LIBS="$LIBS -lm"
80 -                   AC_TRY_RUN([
81 +AC_TRY_RUN([
82  #include <stdio.h>
83  #include <slcurses.h>
84  int main () { SLtt_initialize (NULL); return 0; }],
85 @@ -252,8 +252,7 @@
86                         CURSES_LIB_NAME=slang],
87                         [AC_MSG_RESULT(no)],
88  AC_MSG_WARN([*** Can not use slang when cross-compiling]))],
89 -AC_MSG_WARN([*** Can not use slang when cross-compiling]))], 
90 -AC_MSG_WARN([*** Can not use slang when cross-compiling])),
91 +AC_MSG_WARN([*** Can not use slang when cross-compiling]))],[AC_MSG_WARN(*** Can not use slang when cross-compiling)]),
92             AC_MSG_ERROR([
93  *** The header file slcurses.h was not found. If you wish to use
94  *** slang support this header file is required. Please either
95 @@ -334,12 +333,11 @@
96      # Taken from aumix (can't tell from the variable name?)
97      AC_CACHE_CHECK([for private member _use_keypad in WINDOW],
98      aumix_cv_struct_window_usekeypad,
99 -    [AC_TRY_COMPILE([#ifdef HAVE_NCURSES_H
100 +    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_NCURSES_H
101  #include <ncurses.h>
102  #else
103  #include <curses.h>
104 -#endif], [WINDOW w; w._use_keypad;],
105 -    aumix_cv_struct_window_usekeypad=yes, aumix_cv_struct_window_usekeypad=no)])
106 +#endif]], [[WINDOW w; w._use_keypad;]])],[aumix_cv_struct_window_usekeypad=yes],[aumix_cv_struct_window_usekeypad=no])])
107      
108      if test $aumix_cv_struct_window_usekeypad = yes; then
109         AC_DEFINE(HAVE_USEKEYPAD, 1, [Define this if your curses lib has the _use_keypad flag.])
110 --- nano-1.2.1/configure~configure
111 +++ nano-1.2.1/configure
112 @@ -310,7 +310,7 @@
113  # include <unistd.h>
114  #endif"
115  
116 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os USE_NLS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CPP EGREP GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS CURSES_LIB LIBOBJS LTLIBOBJS'
117 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os USE_NLS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CPP EGREP GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS CURSES_LIB LIBOBJS LTLIBOBJS'
118  ac_subst_files=''
119  
120  # Initialize some variables set by options.
121 @@ -1314,7 +1314,7 @@
122  
123  
124  
125 -am__api_version="1.6"
126 +am__api_version="1.7"
127  ac_aux_dir=
128  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
129    if test -f $ac_dir/install-sh; then
130 @@ -1558,6 +1558,15 @@
131    SET_MAKE="MAKE=${MAKE-make}"
132  fi
133  
134 +rm -rf .tst 2>/dev/null
135 +mkdir .tst 2>/dev/null
136 +if test -d .tst; then
137 +  am__leading_dot=.
138 +else
139 +  am__leading_dot=_
140 +fi
141 +rmdir .tst 2>/dev/null
142 +
143   # test to see if srcdir already configured
144  if test "`cd $srcdir && pwd`" != "`pwd`" &&
145     test -f $srcdir/config.status; then
146 @@ -1566,9 +1575,19 @@
147     { (exit 1); exit 1; }; }
148  fi
149  
150 +# test whether we have cygpath
151 +if test -z "$CYGPATH_W"; then
152 +  if (cygpath --version) >/dev/null 2>/dev/null; then
153 +    CYGPATH_W='cygpath -w'
154 +  else
155 +    CYGPATH_W=echo
156 +  fi
157 +fi
158 +
159 +
160  # Define the identity of the package.
161 - PACKAGE=nano
162 - VERSION=1.2.1
163 + PACKAGE='nano'
164 + VERSION='1.2.1'
165  
166  
167  cat >>confdefs.h <<_ACEOF
168 @@ -1694,15 +1713,11 @@
169  
170  
171  
172 -# Add the stamp file to the list of files AC keeps track of,
173 -# along with our hook.
174            ac_config_headers="$ac_config_headers config.h:config.h.in"
175  
176  
177  
178  
179 -
180 -
181  ac_ext=c
182  ac_cpp='$CPP $CPPFLAGS'
183  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
184 @@ -2570,24 +2585,16 @@
185  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
186  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
187  ac_compiler_gnu=$ac_cv_c_compiler_gnu
188 -rm -f .deps 2>/dev/null
189 -mkdir .deps 2>/dev/null
190 -if test -d .deps; then
191 -  DEPDIR=.deps
192 -else
193 -  # MS-DOS does not allow filenames that begin with a dot.
194 -  DEPDIR=_deps
195 -fi
196 -rmdir .deps 2>/dev/null
197 -
198 +DEPDIR="${am__leading_dot}deps"
199  
200            ac_config_commands="$ac_config_commands depfiles"
201  
202  
203  am_make=${MAKE-make}
204  cat > confinc << 'END'
205 -doit:
206 +am__doit:
207         @echo done
208 +.PHONY: am__doit
209  END
210  # If we don't find an include directive, just comment out the code.
211  echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
212 @@ -2602,7 +2609,7 @@
213  # In particular we don't look at `^make:' because GNU make might
214  # be invoked under some other name (usually "gmake"), in which
215  # case it prints its new name instead of `make'.
216 -if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
217 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
218     am__include=include
219     am__quote=
220     _am_result=GNU
221 @@ -2662,18 +2669,32 @@
222    # using a relative directory.
223    cp "$am_depcomp" conftest.dir
224    cd conftest.dir
225 +  # We will build objects and dependencies in a subdirectory because
226 +  # it helps to detect inapplicable dependency modes.  For instance
227 +  # both Tru64's cc and ICC support -MD to output dependencies as a
228 +  # side effect of compilation, but ICC will put the dependencies in
229 +  # the current directory while Tru64 will put them in the object
230 +  # directory.
231 +  mkdir sub
232  
233    am_cv_CC_dependencies_compiler_type=none
234    if test "$am_compiler_list" = ""; then
235       am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
236    fi
237    for depmode in $am_compiler_list; do
238 +    # Setup a source with many dependencies, because some compilers
239 +    # like to wrap large dependency lists on column 80 (with \), and
240 +    # we should not choose a depcomp mode which is confused by this.
241 +    #
242      # We need to recreate these files for each test, as the compiler may
243      # overwrite some of them when testing with obscure command lines.
244      # This happens at least with the AIX C compiler.
245 -    echo '#include "conftest.h"' > conftest.c
246 -    echo 'int i;' > conftest.h
247 -    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
248 +    : > sub/conftest.c
249 +    for i in 1 2 3 4 5 6; do
250 +      echo '#include "conftst'$i'.h"' >> sub/conftest.c
251 +      : > sub/conftst$i.h
252 +    done
253 +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
254  
255      case $depmode in
256      nosideeffect)
257 @@ -2691,13 +2712,20 @@
258      # mode.  It turns out that the SunPro C++ compiler does not properly
259      # handle `-M -o', and we need to detect this.
260      if depmode=$depmode \
261 -       source=conftest.c object=conftest.o \
262 -       depfile=conftest.Po tmpdepfile=conftest.TPo \
263 -       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
264 -       grep conftest.h conftest.Po > /dev/null 2>&1 &&
265 +       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
266 +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
267 +       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
268 +         >/dev/null 2>conftest.err &&
269 +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
270 +       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
271         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
272 -      am_cv_CC_dependencies_compiler_type=$depmode
273 -      break
274 +      # icc doesn't choke on unknown options, it will just issue warnings
275 +      # (even with -Werror).  So we grep stderr for any message
276 +      # that says an option was ignored.
277 +      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
278 +        am_cv_CC_dependencies_compiler_type=$depmode
279 +        break
280 +      fi
281      fi
282    done
283  
284 @@ -2714,6 +2742,18 @@
285  
286  
287  
288 +if
289 +  test "x$enable_dependency_tracking" != xno \
290 +  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
291 +  am__fastdepCC_TRUE=
292 +  am__fastdepCC_FALSE='#'
293 +else
294 +  am__fastdepCC_TRUE='#'
295 +  am__fastdepCC_FALSE=
296 +fi
297 +
298 +
299 +
300  
301          echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
302  echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
303 @@ -5290,6 +5330,7 @@
304  
305  done
306  
307 +
308  if test "${ac_cv_header_regex_h+set}" = set; then
309    echo "$as_me:$LINENO: checking for regex.h" >&5
310  echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
311 @@ -5422,7 +5463,10 @@
312  if test $ac_cv_header_regex_h = yes; then
313    echo "$as_me:$LINENO: checking for broken regexec" >&5
314  echo $ECHO_N "checking for broken regexec... $ECHO_C" >&6
315 -    if test "$cross_compiling" = yes; then
316 +if test "${ac_cv_regexec_segfault_emptystr+set}" = set; then
317 +  echo $ECHO_N "(cached) $ECHO_C" >&6
318 +else
319 +  if test "$cross_compiling" = yes; then
320    { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
321  See \`config.log' for more details." >&5
322  echo "$as_me: error: cannot run test program while cross compiling
323 @@ -5472,6 +5516,10 @@
324  fi
325  
326  fi
327 +echo "$as_me:$LINENO: result: $ac_cv_regexec_segfault_emptystr" >&5
328 +echo "${ECHO_T}$ac_cv_regexec_segfault_emptystr" >&6
329 +
330 +fi
331  
332  
333  
334 @@ -6037,7 +6085,7 @@
335                 echo "$as_me:$LINENO: checking for SLtt_initialize in -lslang $tcap" >&5
336  echo $ECHO_N "checking for SLtt_initialize in -lslang $tcap... $ECHO_C" >&6
337                 LIBS="$LIBS $tcap"
338 -               if test "$cross_compiling" = yes; then
339 +if test "$cross_compiling" = yes; then
340    { echo "$as_me:$LINENO: WARNING: *** Can not use slang when cross-compiling" >&5
341  echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;}
342  else
343 @@ -6091,7 +6139,7 @@
344                     echo "$as_me:$LINENO: checking for SLtt_initialize in -lslang $tcap -lm" >&5
345  echo $ECHO_N "checking for SLtt_initialize in -lslang $tcap -lm... $ECHO_C" >&6
346                     LIBS="$LIBS -lm"
347 -                   if test "$cross_compiling" = yes; then
348 +if test "$cross_compiling" = yes; then
349    { echo "$as_me:$LINENO: WARNING: *** Can not use slang when cross-compiling" >&5
350  echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;}
351  else
352 @@ -7671,6 +7719,13 @@
353  Usually this means the macro was only invoked conditionally." >&2;}
354     { (exit 1); exit 1; }; }
355  fi
356 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
357 +  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
358 +Usually this means the macro was only invoked conditionally." >&5
359 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
360 +Usually this means the macro was only invoked conditionally." >&2;}
361 +   { (exit 1); exit 1; }; }
362 +fi
363  
364  : ${CONFIG_STATUS=./config.status}
365  ac_clean_files_save=$ac_clean_files
366 @@ -8104,7 +8159,7 @@
367  #
368  
369  AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
370 -# Capture the value of obsolete ALL_LINGUAS because we need it to compute
371 +# Capture the value of obsolete $ALL_LINGUAS because we need it to compute
372      # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
373      # from automake.
374      eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
375 @@ -8216,6 +8271,7 @@
376  s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
377  s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
378  s,@INSTALL_DATA@,$INSTALL_DATA,;t t
379 +s,@CYGPATH_W@,$CYGPATH_W,;t t
380  s,@PACKAGE@,$PACKAGE,;t t
381  s,@VERSION@,$VERSION,;t t
382  s,@ACLOCAL@,$ACLOCAL,;t t
383 @@ -8230,6 +8286,7 @@
384  s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
385  s,@AWK@,$AWK,;t t
386  s,@SET_MAKE@,$SET_MAKE,;t t
387 +s,@am__leading_dot@,$am__leading_dot,;t t
388  s,@CC@,$CC,;t t
389  s,@CFLAGS@,$CFLAGS,;t t
390  s,@LDFLAGS@,$LDFLAGS,;t t
391 @@ -8244,6 +8301,8 @@
392  s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
393  s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
394  s,@CCDEPMODE@,$CCDEPMODE,;t t
395 +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
396 +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
397  s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
398  s,@MSGFMT@,$MSGFMT,;t t
399  s,@GMSGFMT@,$GMSGFMT,;t t
400 @@ -8697,13 +8756,29 @@
401      cat $tmp/config.h
402      rm -f $tmp/config.h
403    fi
404 -  # Run the commands associated with the file.
405 -  case $ac_file in
406 -    config.h ) # update the timestamp
407 -echo 'timestamp for config.h:config.h.in' >"./stamp-h1"
408 - ;;
409 +# Compute $ac_file's index in $config_headers.
410 +_am_stamp_count=1
411 +for _am_header in $config_headers :; do
412 +  case $_am_header in
413 +    $ac_file | $ac_file:* )
414 +      break ;;
415 +    * )
416 +      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
417    esac
418  done
419 +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
420 +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
421 +         X$ac_file : 'X\(//\)[^/]' \| \
422 +         X$ac_file : 'X\(//\)$' \| \
423 +         X$ac_file : 'X\(/\)' \| \
424 +         .     : '\(.\)' 2>/dev/null ||
425 +echo X$ac_file |
426 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
427 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
428 +         /^X\(\/\/\)$/{ s//\1/; q; }
429 +         /^X\(\/\).*/{ s//\1/; q; }
430 +         s/.*/./; q'`/stamp-h$_am_stamp_count
431 +done
432  _ACEOF
433  cat >>$CONFIG_STATUS <<\_ACEOF
434  
435 --- nano-1.2.1/Makefile.am~configure
436 +++ nano-1.2.1/Makefile.am
437 @@ -31,6 +31,6 @@
438  SUBDIRS = po m4
439  
440  localedir = $(datadir)/locale
441 -INCLUDES = -Iintl -DLOCALEDIR=\"$(localedir)\" -I@includedir@
442 +INCLUDES = -Iintl -DLOCALEDIR=\"$(localedir)\"
443  
444  ACLOCAL_AMFLAGS = -I m4
445 --- nano-1.2.1/Makefile.in~configure
446 +++ nano-1.2.1/Makefile.in
447 @@ -1,7 +1,7 @@
448 -# Makefile.in generated by automake 1.6.3 from Makefile.am.
449 +# Makefile.in generated by automake 1.7.7 from Makefile.am.
450  # @configure_input@
451  
452 -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
453 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
454  # Free Software Foundation, Inc.
455  # This Makefile.in is free software; the Free Software Foundation
456  # gives unlimited permission to copy and/or distribute it,
457 @@ -13,100 +13,124 @@
458  # PARTICULAR PURPOSE.
459  
460  @SET_MAKE@
461 -SHELL = @SHELL@
462  
463  srcdir = @srcdir@
464  top_srcdir = @top_srcdir@
465  VPATH = @srcdir@
466 -prefix = @prefix@
467 -exec_prefix = @exec_prefix@
468 -
469 -bindir = @bindir@
470 -sbindir = @sbindir@
471 -libexecdir = @libexecdir@
472 -datadir = @datadir@
473 -sysconfdir = @sysconfdir@
474 -sharedstatedir = @sharedstatedir@
475 -localstatedir = @localstatedir@
476 -libdir = @libdir@
477 -infodir = @infodir@
478 -mandir = @mandir@
479 -includedir = @includedir@
480 -oldincludedir = /usr/include
481  pkgdatadir = $(datadir)/@PACKAGE@
482  pkglibdir = $(libdir)/@PACKAGE@
483  pkgincludedir = $(includedir)/@PACKAGE@
484  top_builddir = .
485  
486 -ACLOCAL = @ACLOCAL@
487 -AUTOCONF = @AUTOCONF@
488 -AUTOMAKE = @AUTOMAKE@
489 -AUTOHEADER = @AUTOHEADER@
490 -
491  am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
492  INSTALL = @INSTALL@
493 -INSTALL_PROGRAM = @INSTALL_PROGRAM@
494 -INSTALL_DATA = @INSTALL_DATA@
495  install_sh_DATA = $(install_sh) -c -m 644
496  install_sh_PROGRAM = $(install_sh) -c
497  install_sh_SCRIPT = $(install_sh) -c
498 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
499  INSTALL_HEADER = $(INSTALL_DATA)
500 -transform = @program_transform_name@
501 +transform = $(program_transform_name)
502  NORMAL_INSTALL = :
503  PRE_INSTALL = :
504  POST_INSTALL = :
505  NORMAL_UNINSTALL = :
506  PRE_UNINSTALL = :
507  POST_UNINSTALL = :
508 -host_alias = @host_alias@
509  host_triplet = @host@
510 -
511 -EXEEXT = @EXEEXT@
512 -OBJEXT = @OBJEXT@
513 -PATH_SEPARATOR = @PATH_SEPARATOR@
514 +ACLOCAL = @ACLOCAL@
515 +AMDEP_FALSE = @AMDEP_FALSE@
516 +AMDEP_TRUE = @AMDEP_TRUE@
517  AMTAR = @AMTAR@
518 +AUTOCONF = @AUTOCONF@
519 +AUTOHEADER = @AUTOHEADER@
520 +AUTOMAKE = @AUTOMAKE@
521  AWK = @AWK@
522 -BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
523 -CATOBJEXT = @CATOBJEXT@
524  CC = @CC@
525 +CCDEPMODE = @CCDEPMODE@
526 +CFLAGS = @CFLAGS@
527 +CPP = @CPP@
528 +CPPFLAGS = @CPPFLAGS@
529  CURSES_LIB = @CURSES_LIB@
530 -DATADIRNAME = @DATADIRNAME@
531 +CYGPATH_W = @CYGPATH_W@
532 +
533 +DEFS = -DSYSCONFDIR=\"$(sysconfdir)\"
534  DEPDIR = @DEPDIR@
535 -GENCAT = @GENCAT@
536 -GLIBC21 = @GLIBC21@
537 +ECHO_C = @ECHO_C@
538 +ECHO_N = @ECHO_N@
539 +ECHO_T = @ECHO_T@
540 +EGREP = @EGREP@
541 +EXEEXT = @EXEEXT@
542  GLIB_CFLAGS = @GLIB_CFLAGS@
543  GLIB_CONFIG = @GLIB_CONFIG@
544  GLIB_LIBS = @GLIB_LIBS@
545  GMSGFMT = @GMSGFMT@
546 -HAVE_LIB = @HAVE_LIB@
547 +INSTALL_DATA = @INSTALL_DATA@
548 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
549 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
550  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
551 -INSTOBJEXT = @INSTOBJEXT@
552 -INTLBISON = @INTLBISON@
553  INTLLIBS = @INTLLIBS@
554 -INTLOBJS = @INTLOBJS@
555 -INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
556 -LIB = @LIB@
557 +LDFLAGS = @LDFLAGS@
558  LIBICONV = @LIBICONV@
559  LIBINTL = @LIBINTL@
560 -LTLIB = @LTLIB@
561 +LIBOBJS = @LIBOBJS@
562 +LIBS = @LIBS@
563  LTLIBICONV = @LTLIBICONV@
564  LTLIBINTL = @LTLIBINTL@
565 +LTLIBOBJS = @LTLIBOBJS@
566 +MAKEINFO = makeinfo --no-split
567  MKINSTALLDIRS = @MKINSTALLDIRS@
568 +MSGFMT = @MSGFMT@
569 +MSGMERGE = @MSGMERGE@
570 +OBJEXT = @OBJEXT@
571  PACKAGE = @PACKAGE@
572 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
573 +PACKAGE_NAME = @PACKAGE_NAME@
574 +PACKAGE_STRING = @PACKAGE_STRING@
575 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
576 +PACKAGE_VERSION = @PACKAGE_VERSION@
577 +PATH_SEPARATOR = @PATH_SEPARATOR@
578  POSUB = @POSUB@
579 -RANLIB = @RANLIB@
580 +SET_MAKE = @SET_MAKE@
581 +SHELL = @SHELL@
582  STRIP = @STRIP@
583 -USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
584  USE_NLS = @USE_NLS@
585  VERSION = @VERSION@
586 +XGETTEXT = @XGETTEXT@
587 +ac_ct_CC = @ac_ct_CC@
588 +ac_ct_STRIP = @ac_ct_STRIP@
589 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
590 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
591  am__include = @am__include@
592 +am__leading_dot = @am__leading_dot@
593  am__quote = @am__quote@
594 +bindir = @bindir@
595 +build = @build@
596 +build_alias = @build_alias@
597 +build_cpu = @build_cpu@
598 +build_os = @build_os@
599 +build_vendor = @build_vendor@
600 +datadir = @datadir@
601 +exec_prefix = @exec_prefix@
602 +host = @host@
603 +host_alias = @host_alias@
604 +host_cpu = @host_cpu@
605 +host_os = @host_os@
606 +host_vendor = @host_vendor@
607 +includedir = @includedir@
608 +infodir = @infodir@
609  install_sh = @install_sh@
610 +libdir = @libdir@
611 +libexecdir = @libexecdir@
612 +localstatedir = @localstatedir@
613 +mandir = @mandir@
614 +oldincludedir = @oldincludedir@
615 +prefix = @prefix@
616 +program_transform_name = @program_transform_name@
617 +sbindir = @sbindir@
618 +sharedstatedir = @sharedstatedir@
619 +sysconfdir = @sysconfdir@
620 +target_alias = @target_alias@
621  AUTOMAKE_OPTIONS = gnu no-dependencies
622  
623 -DEFS = -DSYSCONFDIR=\"$(sysconfdir)\"
624 -
625  bin_PROGRAMS = nano
626  nano_SOURCES = color.c \
627                 cut.c \
628 @@ -126,7 +150,6 @@
629  nano_LDADD = @GLIB_LIBS@ @LIBINTL@
630  
631  info_TEXINFOS = nano.texi
632 -MAKEINFO = makeinfo --no-split
633  
634  EXTRA_DIST = ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS \
635                 README THANKS TODO UPGRADE config.rpath install-sh missing \
636 @@ -137,7 +160,7 @@
637  SUBDIRS = po m4
638  
639  localedir = $(datadir)/locale
640 -INCLUDES = -Iintl -DLOCALEDIR=\"$(localedir)\" -I@includedir@
641 +INCLUDES = -Iintl -DLOCALEDIR=\"$(localedir)\"
642  
643  ACLOCAL_AMFLAGS = -I m4
644  subdir = .
645 @@ -154,34 +177,35 @@
646  nano_OBJECTS = $(am_nano_OBJECTS)
647  nano_DEPENDENCIES =
648  nano_LDFLAGS =
649 +
650  DEFAULT_INCLUDES =  -I. -I$(srcdir) -I.
651 -CPPFLAGS = @CPPFLAGS@
652 -LDFLAGS = @LDFLAGS@
653 -LIBS = @LIBS@
654  depcomp =
655  am__depfiles_maybe =
656  COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
657         $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
658  CCLD = $(CC)
659  LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
660 -CFLAGS = @CFLAGS@
661  DIST_SOURCES = $(nano_SOURCES)
662 +am__TEXINFO_TEX_DIR = $(srcdir)
663  INFO_DEPS = nano.info
664  DVIS = nano.dvi
665 +PDFS = nano.pdf
666 +PSS = nano.ps
667  TEXINFOS = nano.texi
668  
669  NROFF = nroff
670  MANS = $(man_MANS)
671  
672 -RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
673 -       uninstall-info-recursive all-recursive install-data-recursive \
674 -       install-exec-recursive installdirs-recursive install-recursive \
675 -       uninstall-recursive check-recursive installcheck-recursive
676 -DIST_COMMON = README ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL \
677 -       Makefile.am Makefile.in NEWS THANKS TODO aclocal.m4 \
678 -       config.guess config.h.in config.rpath config.sub configure \
679 -       configure.ac install-sh missing mkinstalldirs nano.spec.in \
680 -       texinfo.tex
681 +RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
682 +       ps-recursive install-info-recursive uninstall-info-recursive \
683 +       all-recursive install-data-recursive install-exec-recursive \
684 +       installdirs-recursive install-recursive uninstall-recursive \
685 +       check-recursive installcheck-recursive
686 +DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure \
687 +       ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL Makefile.am NEWS \
688 +       THANKS TODO aclocal.m4 config.guess config.h.in config.rpath \
689 +       config.sub configure configure.ac install-sh missing \
690 +       mkinstalldirs nano.spec.in texinfo.tex
691  DIST_SUBDIRS = $(SUBDIRS)
692  SOURCES = $(nano_SOURCES)
693  
694 @@ -189,7 +213,7 @@
695         $(MAKE) $(AM_MAKEFLAGS) all-recursive
696  
697  .SUFFIXES:
698 -.SUFFIXES: .c .dvi .info .o .obj .ps .texi
699 +.SUFFIXES: .c .dvi .info .o .obj .pdf .ps .texi
700  
701  am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
702   configure.lineno
703 @@ -235,7 +259,7 @@
704           ; then \
705             f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
706            echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
707 -          $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f; \
708 +          $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
709           else :; fi; \
710         done
711  
712 @@ -263,55 +287,58 @@
713         $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
714  
715  .c.obj:
716 -       $(COMPILE) -c `cygpath -w $<`
717 -
718 -nano.info: nano.texi
719 -nano.dvi: nano.texi
720 +       $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
721  
722  .texi.info:
723 -       @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
724 -       cd $(srcdir) \
725 -         && $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \
726 -              `echo $< | sed 's,.*/,,'`
727 +       @rm -f $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]
728 +       $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
729 +        -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
730  
731  .texi.dvi:
732 -       TEXINPUTS="$(srcdir)$(PATH_SEPARATOR)$$TEXINPUTS" \
733 +       TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
734         MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
735 -       $(TEXI2DVI) $<
736 +       $(TEXI2DVI) `test -f '$<' || echo '$(srcdir)/'`$<
737  
738 -.texi:
739 -       @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
740 -       cd $(srcdir) \
741 -         && $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \
742 -              `echo $< | sed 's,.*/,,'`
743 +.texi.pdf:
744 +       TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
745 +       MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
746 +       $(TEXI2PDF) `test -f '$<' || echo '$(srcdir)/'`$<
747 +nano.info: nano.texi 
748 +nano.dvi: nano.texi 
749 +nano.pdf: nano.texi 
750  TEXI2DVI = texi2dvi
751 +
752 +TEXI2PDF = $(TEXI2DVI) --pdf --batch
753  DVIPS = dvips
754  .dvi.ps:
755 -       $(DVIPS) $< -o $@
756 +       $(DVIPS) -o $@ $<
757  
758  uninstall-info-am:
759         $(PRE_UNINSTALL)
760         @if (install-info --version && \
761 -            install-info --version | fgrep -i -v debian) >/dev/null 2>&1; then \
762 +            install-info --version | grep -i -v debian) >/dev/null 2>&1; then \
763           list='$(INFO_DEPS)'; \
764           for file in $$list; do \
765 -           echo " install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file"; \
766 -           install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file; \
767 +           relfile=`echo "$$file" | sed 's|^.*/||'`; \
768 +           echo " install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$relfile"; \
769 +           install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$relfile; \
770           done; \
771         else :; fi
772         @$(NORMAL_UNINSTALL)
773         @list='$(INFO_DEPS)'; \
774         for file in $$list; do \
775 +         relfile=`echo "$$file" | sed 's|^.*/||'`; \
776 +         relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \
777           (if cd $(DESTDIR)$(infodir); then \
778 -            echo " rm -f $$file $$file-[0-9] $$file-[0-9][0-9])"; \
779 -            rm -f $$file $$file-[0-9] $$file-[0-9][0-9]; \
780 +            echo " rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9])"; \
781 +            rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \
782            else :; fi); \
783         done
784  
785  dist-info: $(INFO_DEPS)
786         list='$(INFO_DEPS)'; \
787         for base in $$list; do \
788 -         d=$(srcdir); \
789 +         if test -f $$base; then d=.; else d=$(srcdir); fi; \
790           for file in $$d/$$base*; do \
791             relfile=`expr "$$file" : "$$d/\(.*\)"`; \
792             test -f $(distdir)/$$relfile || \
793 @@ -320,16 +347,15 @@
794         done
795  
796  mostlyclean-aminfo:
797 -       -rm -f nano.aux nano.cp nano.dvi nano.fn nano.ky nano.log nano.pg nano.ps \
798 -         nano.tmp nano.toc nano.tp nano.vr
799 +       -rm -f nano.aux nano.cp nano.cps nano.fn nano.fns nano.ky nano.kys nano.log \
800 +         nano.pg nano.pgs nano.tmp nano.toc nano.tp nano.tps nano.vr \
801 +         nano.vrs nano.dvi nano.pdf nano.ps
802  
803  maintainer-clean-aminfo:
804 -       cd $(srcdir) && \
805 -       list='$(INFO_DEPS)'; for i in $$list; do \
806 -         rm -f $$i; \
807 -         if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
808 -           rm -f $$i-[0-9]*; \
809 -         fi; \
810 +       @list='$(INFO_DEPS)'; for i in $$list; do \
811 +         i_i=`echo "$$i" | sed 's|\.info$$||;s|$$|.i|'`; \
812 +         echo " rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]"; \
813 +         rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \
814         done
815  
816  man1dir = $(mandir)/man1
817 @@ -368,6 +394,10 @@
818         done; \
819         for i in $$list; do \
820           ext=`echo $$i | sed -e 's/^.*\\.//'`; \
821 +         case "$$ext" in \
822 +           1*) ;; \
823 +           *) ext='1' ;; \
824 +         esac; \
825           inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
826           inst=`echo $$inst | sed -e 's/^.*\///'`; \
827           inst=`echo $$inst | sed '$(transform)'`.$$ext; \
828 @@ -411,6 +441,10 @@
829         done; \
830         for i in $$list; do \
831           ext=`echo $$i | sed -e 's/^.*\\.//'`; \
832 +         case "$$ext" in \
833 +           5*) ;; \
834 +           *) ext='5' ;; \
835 +         esac; \
836           inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
837           inst=`echo $$inst | sed -e 's/^.*\///'`; \
838           inst=`echo $$inst | sed '$(transform)'`.$$ext; \
839 @@ -472,10 +506,17 @@
840         list='$(SUBDIRS)'; for subdir in $$list; do \
841           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
842         done
843 +ctags-recursive:
844 +       list='$(SUBDIRS)'; for subdir in $$list; do \
845 +         test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
846 +       done
847  
848  ETAGS = etags
849  ETAGSFLAGS =
850  
851 +CTAGS = ctags
852 +CTAGSFLAGS =
853 +
854  tags: TAGS
855  
856  ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
857 @@ -491,9 +532,15 @@
858                 $(TAGS_FILES) $(LISP)
859         tags=; \
860         here=`pwd`; \
861 +       if (etags --etags-include --version) >/dev/null 2>&1; then \
862 +         include_option=--etags-include; \
863 +       else \
864 +         include_option=--include; \
865 +       fi; \
866         list='$(SUBDIRS)'; for subdir in $$list; do \
867           if test "$$subdir" = .; then :; else \
868 -           test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
869 +           test -f $$subdir/TAGS && \
870 +             tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
871           fi; \
872         done; \
873         list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
874 @@ -506,13 +553,28 @@
875           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
876              $$tags $$unique
877  
878 +ctags: CTAGS
879 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
880 +               $(TAGS_FILES) $(LISP)
881 +       tags=; \
882 +       here=`pwd`; \
883 +       list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
884 +       unique=`for i in $$list; do \
885 +           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
886 +         done | \
887 +         $(AWK) '    { files[$$0] = 1; } \
888 +              END { for (i in files) print i; }'`; \
889 +       test -z "$(CTAGS_ARGS)$$tags$$unique" \
890 +         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
891 +            $$tags $$unique
892 +
893  GTAGS:
894         here=`$(am__cd) $(top_builddir) && pwd` \
895           && cd $(top_srcdir) \
896           && gtags -i $(GTAGS_ARGS) $$here
897  
898  distclean-tags:
899 -       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
900 +       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
901  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
902  
903  top_distdir = .
904 @@ -524,13 +586,20 @@
905           && rm -fr $(distdir); }; }
906  
907  GZIP_ENV = --best
908 +distuninstallcheck_listfiles = find . -type f -print
909  distcleancheck_listfiles = find . -type f -print
910  
911  distdir: $(DISTFILES)
912         $(am__remove_distdir)
913         mkdir $(distdir)
914         $(mkinstalldirs) $(distdir)/. $(distdir)/po
915 -       @list='$(DISTFILES)'; for file in $$list; do \
916 +       @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
917 +       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
918 +       list='$(DISTFILES)'; for file in $$list; do \
919 +         case $$file in \
920 +           $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
921 +           $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
922 +         esac; \
923           if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
924           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
925           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
926 @@ -564,7 +633,7 @@
927           fi; \
928         done
929         $(MAKE) $(AM_MAKEFLAGS) \
930 -         top_distdir="${top_distdir}" distdir="$(distdir)" \
931 +         top_distdir="$(top_distdir)" distdir="$(distdir)" \
932           dist-info
933         -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
934           ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
935 @@ -586,13 +655,13 @@
936         $(am__remove_distdir)
937         GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
938         chmod -R a-w $(distdir); chmod a+w $(distdir)
939 -       mkdir $(distdir)/=build
940 -       mkdir $(distdir)/=inst
941 +       mkdir $(distdir)/_build
942 +       mkdir $(distdir)/_inst
943         chmod a-w $(distdir)
944 -       dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \
945 -         && cd $(distdir)/=build \
946 -         && ../configure --srcdir=.. --prefix=$$dc_install_base \
947 -           --with-included-gettext \
948 +       dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
949 +         && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
950 +         && cd $(distdir)/_build \
951 +         && ../configure --srcdir=.. --prefix="$$dc_install_base" \
952             $(DISTCHECK_CONFIGURE_FLAGS) \
953           && $(MAKE) $(AM_MAKEFLAGS) \
954           && $(MAKE) $(AM_MAKEFLAGS) dvi \
955 @@ -600,23 +669,39 @@
956           && $(MAKE) $(AM_MAKEFLAGS) install \
957           && $(MAKE) $(AM_MAKEFLAGS) installcheck \
958           && $(MAKE) $(AM_MAKEFLAGS) uninstall \
959 -         && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \
960 -             || { echo "ERROR: files left after uninstall:" ; \
961 -                  find $$dc_install_base -type f -print ; \
962 -                  exit 1; } >&2 ) \
963 +         && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
964 +               distuninstallcheck \
965 +         && chmod -R a-w "$$dc_install_base" \
966 +         && ({ \
967 +              (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \
968 +              && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
969 +              && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
970 +              && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
971 +                   distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
972 +             } || { rm -rf "$$dc_destdir"; exit 1; }) \
973 +         && rm -rf "$$dc_destdir" \
974           && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
975           && rm -f $(distdir).tar.gz \
976           && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
977         $(am__remove_distdir)
978         @echo "$(distdir).tar.gz is ready for distribution" | \
979           sed 'h;s/./=/g;p;x;p;x'
980 +distuninstallcheck:
981 +       @cd $(distuninstallcheck_dir) \
982 +       && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
983 +          || { echo "ERROR: files left after uninstall:" ; \
984 +               if test -n "$(DESTDIR)"; then \
985 +                 echo "  (check DESTDIR support)"; \
986 +               fi ; \
987 +               $(distuninstallcheck_listfiles) ; \
988 +               exit 1; } >&2
989  distcleancheck: distclean
990 -       if test '$(srcdir)' = . ; then \
991 +       @if test '$(srcdir)' = . ; then \
992           echo "ERROR: distcleancheck can only run from a VPATH build" ; \
993           exit 1 ; \
994         fi
995 -       test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
996 -         || { echo "ERROR: files left after distclean:" ; \
997 +       @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
998 +         || { echo "ERROR: files left in build directory after distclean:" ; \
999                $(distcleancheck_listfiles) ; \
1000                exit 1; } >&2
1001  check-am: all-am
1002 @@ -645,7 +730,7 @@
1003  clean-generic:
1004  
1005  distclean-generic:
1006 -       -rm -f Makefile $(CONFIG_CLEAN_FILES)
1007 +       -rm -f $(CONFIG_CLEAN_FILES)
1008  
1009  maintainer-clean-generic:
1010         @echo "This command is intended for maintainers to use"
1011 @@ -656,6 +741,8 @@
1012  
1013  distclean: distclean-recursive
1014         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1015 +
1016 +       -rm -f Makefile
1017  distclean-am: clean-am distclean-compile distclean-generic distclean-hdr \
1018         distclean-tags
1019  
1020 @@ -678,10 +765,12 @@
1021         $(mkinstalldirs) $(DESTDIR)$(infodir)
1022         @list='$(INFO_DEPS)'; \
1023         for file in $$list; do \
1024 -         d=$(srcdir); \
1025 -         for ifile in echo $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9]; do \
1026 +         if test -f $$file; then d=.; else d=$(srcdir); fi; \
1027 +         file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \
1028 +         for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \
1029 +                       $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
1030             if test -f $$ifile; then \
1031 -             relfile=`expr "$$ifile" : "$$d/\(.*\)"`; \
1032 +             relfile=`echo "$$ifile" | sed 's|^.*/||'`; \
1033               echo " $(INSTALL_DATA) $$ifile $(DESTDIR)$(infodir)/$$relfile"; \
1034               $(INSTALL_DATA) $$ifile $(DESTDIR)$(infodir)/$$relfile; \
1035             else : ; fi; \
1036 @@ -689,11 +778,12 @@
1037         done
1038         @$(POST_INSTALL)
1039         @if (install-info --version && \
1040 -            install-info --version | fgrep -i -v debian) >/dev/null 2>&1; then \
1041 +            install-info --version | grep -i -v debian) >/dev/null 2>&1; then \
1042           list='$(INFO_DEPS)'; \
1043           for file in $$list; do \
1044 -           echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
1045 -           install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
1046 +           relfile=`echo "$$file" | sed 's|^.*/||'`; \
1047 +           echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$relfile";\
1048 +           install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$relfile || :;\
1049           done; \
1050         else : ; fi
1051  install-man: install-man1 install-man5
1052 @@ -702,7 +792,9 @@
1053  
1054  maintainer-clean: maintainer-clean-recursive
1055         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1056 -       -rm -rf autom4te.cache
1057 +       -rm -rf $(top_srcdir)/autom4te.cache
1058 +
1059 +       -rm -f Makefile
1060  maintainer-clean-am: distclean-am maintainer-clean-aminfo \
1061         maintainer-clean-generic
1062  
1063 @@ -711,29 +803,38 @@
1064  mostlyclean-am: mostlyclean-aminfo mostlyclean-compile \
1065         mostlyclean-generic
1066  
1067 +pdf: pdf-recursive
1068 +
1069 +pdf-am: $(PDFS)
1070 +
1071 +ps: ps-recursive
1072 +
1073 +ps-am: $(PSS)
1074 +
1075  uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-man
1076  
1077  uninstall-info: uninstall-info-recursive
1078  
1079  uninstall-man: uninstall-man1 uninstall-man5
1080  
1081 -.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
1082 -       clean-binPROGRAMS clean-generic clean-recursive dist dist-all \
1083 -       dist-gzip dist-info distcheck distclean distclean-compile \
1084 -       distclean-generic distclean-hdr distclean-recursive \
1085 -       distclean-tags distcleancheck distdir dvi dvi-am dvi-recursive \
1086 -       info info-am info-recursive install install-am \
1087 -       install-binPROGRAMS install-data install-data-am \
1088 -       install-data-recursive install-exec install-exec-am \
1089 -       install-exec-recursive install-info install-info-am \
1090 -       install-info-recursive install-man install-man1 install-man5 \
1091 -       install-recursive install-strip installcheck installcheck-am \
1092 -       installdirs installdirs-am installdirs-recursive \
1093 -       maintainer-clean maintainer-clean-aminfo \
1094 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
1095 +       clean-binPROGRAMS clean-generic clean-recursive ctags \
1096 +       ctags-recursive dist dist-all dist-gzip dist-info distcheck \
1097 +       distclean distclean-compile distclean-generic distclean-hdr \
1098 +       distclean-recursive distclean-tags distcleancheck distdir \
1099 +       distuninstallcheck dvi dvi-am dvi-recursive info info-am \
1100 +       info-recursive install install-am install-binPROGRAMS \
1101 +       install-data install-data-am install-data-recursive \
1102 +       install-exec install-exec-am install-exec-recursive \
1103 +       install-info install-info-am install-info-recursive install-man \
1104 +       install-man1 install-man5 install-recursive install-strip \
1105 +       installcheck installcheck-am installdirs installdirs-am \
1106 +       installdirs-recursive maintainer-clean maintainer-clean-aminfo \
1107         maintainer-clean-generic maintainer-clean-recursive mostlyclean \
1108         mostlyclean-aminfo mostlyclean-compile mostlyclean-generic \
1109 -       mostlyclean-recursive tags tags-recursive uninstall \
1110 -       uninstall-am uninstall-binPROGRAMS uninstall-info-am \
1111 +       mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \
1112 +       ps-recursive tags tags-recursive uninstall uninstall-am \
1113 +       uninstall-binPROGRAMS uninstall-info-am \
1114         uninstall-info-recursive uninstall-man uninstall-man1 \
1115         uninstall-man5 uninstall-recursive
1116