~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2006-07-30 19:15:59 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060730191559-g31ymd2mk102kzff
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
# progtest.m4 serial 2 (gettext-0.10.40)
 
15
dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
 
16
dnl This file is free software, distributed under the terms of the GNU
 
17
dnl General Public License.  As a special exception to the GNU General
 
18
dnl Public License, this file may be distributed as part of a program
 
19
dnl that contains a configuration script generated by Autoconf, under
 
20
dnl the same distribution terms as the rest of that program.
 
21
dnl
 
22
dnl This file can can be used in projects which are not available under
 
23
dnl the GNU General Public License or the GNU Library General Public
 
24
dnl License but which still want to provide support for the GNU gettext
 
25
dnl functionality.
 
26
dnl Please note that the actual code of the GNU gettext library is covered
 
27
dnl by the GNU Library General Public License, and the rest of the GNU
 
28
dnl gettext package package is covered by the GNU General Public License.
 
29
dnl They are *not* in the public domain.
 
30
 
 
31
dnl Authors:
 
32
dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
 
33
 
 
34
# Search path for a program which passes the given test.
 
35
 
 
36
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
37
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
38
AC_DEFUN([AM_PATH_PROG_WITH_TEST],
 
39
[# Extract the first word of "$2", so it can be a program name with args.
 
40
set dummy $2; ac_word=[$]2
 
41
AC_MSG_CHECKING([for $ac_word])
 
42
AC_CACHE_VAL(ac_cv_path_$1,
 
43
[case "[$]$1" in
 
44
  /*)
 
45
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
46
  ;;
 
47
  *)
 
48
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
49
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
50
    test -z "$ac_dir" && ac_dir=.
 
51
    if test -f $ac_dir/$ac_word; then
 
52
      if [$3]; then
 
53
        ac_cv_path_$1="$ac_dir/$ac_word"
 
54
        break
 
55
      fi
 
56
    fi
 
57
  done
 
58
  IFS="$ac_save_ifs"
 
59
dnl If no 4th arg is given, leave the cache variable unset,
 
60
dnl so AC_PATH_PROGS will keep looking.
 
61
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
62
])dnl
 
63
  ;;
 
64
esac])dnl
 
65
$1="$ac_cv_path_$1"
 
66
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
67
  AC_MSG_RESULT([$]$1)
 
68
else
 
69
  AC_MSG_RESULT(no)
 
70
fi
 
71
AC_SUBST($1)dnl
 
72
])
 
73
 
14
74
# Do all the work for Automake.                            -*- Autoconf -*-
15
75
 
16
76
# This macro actually does too much some checks are only needed if
842
902
  LEX=${am_missing_run}flex
843
903
fi])
844
904
 
845
 
# progtest.m4 serial 2 (gettext-0.10.40)
846
 
dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
847
 
dnl This file is free software, distributed under the terms of the GNU
848
 
dnl General Public License.  As a special exception to the GNU General
849
 
dnl Public License, this file may be distributed as part of a program
850
 
dnl that contains a configuration script generated by Autoconf, under
851
 
dnl the same distribution terms as the rest of that program.
852
 
dnl
853
 
dnl This file can can be used in projects which are not available under
854
 
dnl the GNU General Public License or the GNU Library General Public
855
 
dnl License but which still want to provide support for the GNU gettext
856
 
dnl functionality.
857
 
dnl Please note that the actual code of the GNU gettext library is covered
858
 
dnl by the GNU Library General Public License, and the rest of the GNU
859
 
dnl gettext package package is covered by the GNU General Public License.
860
 
dnl They are *not* in the public domain.
861
 
 
862
 
dnl Authors:
863
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
864
 
 
865
 
# Search path for a program which passes the given test.
866
 
 
867
 
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
868
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
869
 
AC_DEFUN([AM_PATH_PROG_WITH_TEST],
870
 
[# Extract the first word of "$2", so it can be a program name with args.
871
 
set dummy $2; ac_word=[$]2
872
 
AC_MSG_CHECKING([for $ac_word])
873
 
AC_CACHE_VAL(ac_cv_path_$1,
874
 
[case "[$]$1" in
875
 
  /*)
876
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
877
 
  ;;
878
 
  *)
879
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
880
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
881
 
    test -z "$ac_dir" && ac_dir=.
882
 
    if test -f $ac_dir/$ac_word; then
883
 
      if [$3]; then
884
 
        ac_cv_path_$1="$ac_dir/$ac_word"
885
 
        break
886
 
      fi
887
 
    fi
888
 
  done
889
 
  IFS="$ac_save_ifs"
890
 
dnl If no 4th arg is given, leave the cache variable unset,
891
 
dnl so AC_PATH_PROGS will keep looking.
892
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
893
 
])dnl
894
 
  ;;
895
 
esac])dnl
896
 
$1="$ac_cv_path_$1"
897
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
898
 
  AC_MSG_RESULT([$]$1)
899
 
else
900
 
  AC_MSG_RESULT(no)
901
 
fi
902
 
AC_SUBST($1)dnl
903
 
])
904