~ubuntu-branches/debian/sid/apt-dater/sid

« back to all changes in this revision

Viewing changes to m4/progtest.m4

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2015-01-19 19:14:15 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20150119191415-o5emoeio9lknv8h8
Tags: 1.0.1+git20150119-1
* New upstream git snapshot.
  - Fixes FTBFS with ld -b.
    Closes: #767594

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# progtest.m4 serial 4 (gettext-0.14.2)
2
 
dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
 
1
# progtest.m4 serial 7 (gettext-0.18.2)
 
2
dnl Copyright (C) 1996-2003, 2005, 2008-2014 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
16
16
dnl Authors:
17
17
dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
18
18
 
19
 
AC_PREREQ(2.50)
 
19
AC_PREREQ([2.50])
20
20
 
21
21
# Search path for a program which passes the given test.
22
22
 
27
27
# Prepare PATH_SEPARATOR.
28
28
# The user is always right.
29
29
if test "${PATH_SEPARATOR+set}" != set; then
30
 
  echo "#! /bin/sh" >conf$$.sh
31
 
  echo  "exit 0"   >>conf$$.sh
32
 
  chmod +x conf$$.sh
33
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34
 
    PATH_SEPARATOR=';'
35
 
  else
36
 
    PATH_SEPARATOR=:
37
 
  fi
38
 
  rm -f conf$$.sh
 
30
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 
31
  # contains only /bin. Note that ksh looks also at the FPATH variable,
 
32
  # so we have to set that as well for the test.
 
33
  PATH_SEPARATOR=:
 
34
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
35
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
36
           || PATH_SEPARATOR=';'
 
37
       }
39
38
fi
40
39
 
41
40
# Find out how to test for executable files. Don't use a zero-byte file,
55
54
# Extract the first word of "$2", so it can be a program name with args.
56
55
set dummy $2; ac_word=[$]2
57
56
AC_MSG_CHECKING([for $ac_word])
58
 
AC_CACHE_VAL(ac_cv_path_$1,
 
57
AC_CACHE_VAL([ac_cv_path_$1],
59
58
[case "[$]$1" in
60
59
  [[\\/]]* | ?:[[\\/]]*)
61
60
    ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
84
83
esac])dnl
85
84
$1="$ac_cv_path_$1"
86
85
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
87
 
  AC_MSG_RESULT([$]$1)
 
86
  AC_MSG_RESULT([$][$1])
88
87
else
89
 
  AC_MSG_RESULT(no)
 
88
  AC_MSG_RESULT([no])
90
89
fi
91
 
AC_SUBST($1)dnl
 
90
AC_SUBST([$1])dnl
92
91
])