File: acinclude.m4

package info (click to toggle)
psp 0.5.5-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 4,820 kB
  • ctags: 2,333
  • sloc: perl: 21,074; ansic: 4,553; sh: 2,407; makefile: 461; php: 11; pascal: 6
file content (122 lines) | stat: -rw-r--r-- 3,483 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
dnl Macros that test for specific features.
dnl This file is part of the Autoconf packaging for PSP.
dnl Copyright (C) 2000,  FundsXpress Financial Network, inc.
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl License as published by the Free Software Foundation; either
dnl version 2 of the License, or (at your option) any later version.
dnl
dnl BECAUSE THIS LIBRARY IS LICENSED FREE OF CHARGE, THIS LIBRARY IS
dnl BEING PROVIDED "AS IS WITH ALL FAULTS," WITHOUT ANY WARRANTIES
dnl OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT
dnl LIMITATION, ANY IMPLIED WARRANTIES OF TITLE, NONINFRINGEMENT,
dnl MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, AND THE
dnl ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY,
dnl AND EFFORT IS WITH THE YOU.  See the GNU Lesser General Public
dnl License for more details. 
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl

AC_DEFUN(AC_PSP_SHADOWDIR,
[
  shadow_dir="$1"

  test -d $shadow_dir || echo creating $shadow_dir && mkdir -p $shadow_dir
  echo mirroring $shadow_dir
  # create if needed
  test -d $shadow_dir || mkdir $shadow_dir
  # remove existing links
  find $shadow_dir -type l -exec rm {} \;
  find $shadow_dir/* -type d -depth -exec rmdir {} \; 2>/dev/null
  # find proper depth for links
  case $srcdir in
    /*)
       ln_srcdir=$srcdir
       ;;
    *)
       ln_srcdir=`echo "$shadow_dir" | sed 's/[[^\/]][[^\/]]*/../g'`/$srcdir
       ;;
  esac
  # link it!
  echo $ln_srcdir/$shadow_dir:
  $srcdir/mk/lndir-sh $ln_srcdir/$shadow_dir $shadow_dir
])

AC_DEFUN(AC_PSP_ENABLE_CPAN_STYLE,
[
  dnl cpan-style check
  AC_ARG_ENABLE(cpan-style,
	[  --enable-cpan-style     build cpan-style. [default=no]],,
	enable_cpan_style=no)

  AC_MSG_CHECKING(whether to build lib CPAN-style)
  if test "x$enable_cpan_style" = "xno" ; then
	AC_MSG_RESULT(no)
	CPAN_STYLE=
  else
	AC_MSG_RESULT(yes)
	CPAN_STYLE=yes
	AC_PSP_SHADOWDIR(lib)
  fi
  AC_SUBST(CPAN_STYLE) dnl
])

AC_DEFUN(AC_PSP_ENABLE_BUILD_CPAN,
[
  dnl required packages check
  AC_ARG_ENABLE(build-cpan,
	[  --enable-build-cpan     build required CPAN modules. [default=no]],,
	enable_build_cpan=no)

  AC_MSG_CHECKING(whether to build required CPAN modules)
  if test "x$enable_build_cpan" = "xno" ; then
	AC_MSG_RESULT(no)
	BUILD_CPAN=
  else
	AC_MSG_RESULT(yes)
	BUILD_CPAN=yes
	AC_PSP_SHADOWDIR(cpan)
  fi
  AC_SUBST(BUILD_CPAN) dnl
])

AC_DEFUN(AC_PSP_ENABLE_BUILD_SAMPLES,
[
  dnl required packages check
  AC_ARG_ENABLE(build-samples,
	[  --enable-build-samples  build sample piles. [default=yes]],,
	enable_build_samples=yes)

  AC_MSG_CHECKING(whether to build samples)
  if test "x$enable_build_samples" = "xno" ; then
	AC_MSG_RESULT(no)
	BUILD_SAMPLES=
  else
	AC_MSG_RESULT(yes)
	BUILD_SAMPLES=yes
	AC_PSP_SHADOWDIR(samples)
  fi
  AC_SUBST(BUILD_SAMPLES) dnl
])

AC_DEFUN(AC_PSP_ENABLE_SITELIB,
[
  dnl required packages check
  AC_ARG_ENABLE(sitelib,
	[  --enable-sitelib        install modules in site-lib. [default=no]],,
	enable_sitelib=no)

  AC_MSG_CHECKING(whether to perl modules in site-lib)
  if test "x$enable_sitelib" = "xno" ; then
	AC_MSG_RESULT(no)
	SITELIB_INSTALL=
  else
	AC_MSG_RESULT(yes)
	SITELIB_INSTALL=yes
  fi
  AC_SUBST(SITELIB_INSTALL) dnl
])