~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/stpncpy.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# stpncpy.m4 serial 15
2
 
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2011 Free Software Foundation,
 
1
# stpncpy.m4 serial 16
 
2
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2012 Free Software Foundation,
3
3
dnl Inc.
4
4
dnl This file is free software; the Free Software Foundation
5
5
dnl gives unlimited permission to copy and/or distribute it,
74
74
#ifdef __GNU_LIBRARY__
75
75
  Thanks for using GNU
76
76
#endif
77
 
], [gl_cv_func_stpncpy=yes], [gl_cv_func_stpncpy=no])
 
77
], [gl_cv_func_stpncpy="guessing yes"], [gl_cv_func_stpncpy="guessing no"])
78
78
        ])
79
79
    ])
80
 
    if test $gl_cv_func_stpncpy = yes; then
81
 
      AC_DEFINE([HAVE_STPNCPY], [1],
82
 
        [Define if you have the stpncpy() function and it works.])
83
 
    else
84
 
      REPLACE_STPNCPY=1
85
 
    fi
 
80
    case "$gl_cv_func_stpncpy" in
 
81
      *yes)
 
82
        AC_DEFINE([HAVE_STPNCPY], [1],
 
83
          [Define if you have the stpncpy() function and it works.])
 
84
        ;;
 
85
      *)
 
86
        REPLACE_STPNCPY=1
 
87
        ;;
 
88
    esac
86
89
  else
87
90
    HAVE_STPNCPY=0
88
91
  fi