File: aclocal_config.m4

package info (click to toggle)
mpich2 1.2.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 73,904 kB
  • ctags: 65,947
  • sloc: ansic: 343,583; makefile: 55,174; java: 34,959; sh: 27,558; perl: 17,355; cpp: 10,472; python: 9,649; f90: 5,753; fortran: 5,128; cs: 4,019; csh: 152; xml: 91; php: 8
file content (40 lines) | stat: -rw-r--r-- 1,083 bytes parent folder | download | duplicates (4)
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
dnl Sandbox configure
dnl Usage: PAC_CONFIG_SUBDIR(subdir,abs_srcdir,config_args,action-if-success,action-if-failure)
AC_DEFUN([PAC_CONFIG_SUBDIR],[
        AC_MSG_NOTICE([===== configuring $1 =====])

	PAC_MKDIRS($1)
	pac_subconfig_args=""
	# Strip off the args we need to update
	for ac_arg in $3 ; do
	    # Remove any quotes around the args (added by configure)
	    ac_narg=`expr x$ac_arg : 'x'"'"'\(.*\)'"'"`
	    if test -n "$ac_narg" ; then ac_arg=$ac_narg ; fi

	    case $ac_arg in
	    	 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
		 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
		 | --c=*)
			;;
		--config-cache | -C)
			;;
		-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
			;;
		-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
			;;
		*)
			pac_subconfig_args="$pac_subconfig_args $ac_arg"
			;;
	    esac
	done

	if (cd $1 && eval $2/$1/configure $pac_subconfig_args) ; then
	   $4
	   :
	else
	   $5
	   :
	fi

        AC_MSG_NOTICE([===== done with $1 configure =====])
])