~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to Source/DOH/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Landschoff
  • Date: 2002-03-29 01:56:07 UTC
  • Revision ID: james.westby@ubuntu.com-20020329015607-c0wt03xu8oy9ioj7
Tags: upstream-1.3.11
ImportĀ upstreamĀ versionĀ 1.3.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
AC_INIT(Include/doh.h)
 
3
AC_PREREQ(2.0)
 
4
 
 
5
# Set name for machine-dependent library files
 
6
AC_SUBST(MACHDEP)
 
7
AC_MSG_CHECKING(MACHDEP)
 
8
if test -z "$MACHDEP"
 
9
then
 
10
        if test -f /usr/lib/NextStep/software_version; then
 
11
                set X `hostinfo | grep 'NeXT Mach.*:' | \
 
12
                        sed -e 's/://' -e 's/\./_/'` && \
 
13
                ac_sys_system=next && ac_sys_release=$4
 
14
                MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu"
 
15
        else
 
16
                ac_sys_system=`uname -s`
 
17
                if test "$ac_sys_system" = "AIX" ; then
 
18
                        ac_sys_release=`uname -v`
 
19
                else
 
20
                        ac_sys_release=`uname -r`
 
21
                fi
 
22
                ac_md_system=`echo $ac_sys_system |
 
23
                                   tr -d '[/ ]' | tr '[[A-Z]]' '[[a-z]]'`
 
24
                ac_md_release=`echo $ac_sys_release |
 
25
                                   tr -d '[/ ]' | sed 's/\..*//'`
 
26
                MACHDEP="$ac_md_system$ac_md_release"
 
27
        fi
 
28
        case MACHDEP in
 
29
        '')     MACHDEP=unknown;;
 
30
        esac
 
31
fi
 
32
AC_MSG_RESULT($MACHDEP)
 
33
 
 
34
AC_PROG_CC
 
35
AC_PROG_RANLIB
 
36
 
 
37
AC_SUBST(AR)
 
38
AC_CHECK_PROGS(AR, ar aal, ar)
 
39
 
 
40
dnl Checks for header files.
 
41
AC_HEADER_STDC
 
42
dnl Checks for library functions.
 
43
 
 
44
AC_OUTPUT(Makefile Doh/Makefile)