AutoConfig avec motif

This commit is contained in:
Olivier Sirol 1999-08-27 15:17:02 +00:00
parent 396cca2bb9
commit aa729508a3
6 changed files with 400 additions and 278 deletions

View File

@ -6,7 +6,7 @@
# Alliance CAD system environnement # Alliance CAD system environnement
# Usage (in C-shell) : > source alc_env.csh # Usage (in C-shell) : > source alc_env.csh
# (C) 1997 Czo -- <Olivier.Sirol@lip6.fr> # (C) 1997 Czo -- <Olivier.Sirol@lip6.fr>
# $Id: alc_env.csh.in,v 1.2 1999/08/26 18:47:42 czo Exp $ # $Id: alc_env.csh.in,v 1.3 1999/08/27 15:17:01 czo Exp $
# Generated from alc_env.csh.in on @DATE@ # Generated from alc_env.csh.in on @DATE@
# $MACHINE and $TOP are the only variables you will # $MACHINE and $TOP are the only variables you will
@ -14,16 +14,23 @@
# Which platform for Alliance CAD # Which platform for Alliance CAD
# WARNING : if changing this remember to do it on the 3 config files :
# configure.in alc_env.sh.in and alc_env.csh.in
switch (`uname`) switch (`uname`)
case Linux: case Linux*:
if ( `uname -r` =~ 1.* ) then if ( `uname -r` =~ 1.* ) then
setenv MACHINE Linux_aout setenv MACHINE Linux_aout
else else
if ( `uname -r` =~ 2.0* ) then
setenv MACHINE Linux_elf setenv MACHINE Linux_elf
else
setenv MACHINE Linux
endif
endif endif
breaksw breaksw
case SunOS: case SunOS*:
if ( `uname -r` =~ 5* ) then if ( `uname -r` =~ 5* ) then
setenv MACHINE Solaris setenv MACHINE Solaris
else else
@ -31,12 +38,33 @@ switch (`uname`)
endif endif
breaksw breaksw
default: case FreeBSD*:
setenv MACHINE FreeBSD
breaksw
case NetBSD*:
setenv MACHINE NetBSD
breaksw
case HP-UX*:
setenv MACHINE HPUX
breaksw
case OSF1*:
setenv MACHINE OSF
breaksw
case CYGWIN*:
setenv MACHINE CYGWIN
breaksw
default:
setenv MACHINE Unknown setenv MACHINE Unknown
breaksw breaksw
endsw endsw
setenv ALLIANCE_OS $MACHINE setenv ALLIANCE_OS $MACHINE
#echo $MACHINE
# Where the Alliance CAD is installed # Where the Alliance CAD is installed

View File

@ -6,7 +6,7 @@
# Alliance CAD system environnement # Alliance CAD system environnement
# Usage (in Bourne-shell) : > . alc_env.sh # Usage (in Bourne-shell) : > . alc_env.sh
# (C) 1997 Czo -- <Olivier.Sirol@lip6.fr> # (C) 1997 Czo -- <Olivier.Sirol@lip6.fr>
# $Id: alc_env.sh.in,v 1.2 1999/08/26 18:47:42 czo Exp $ # $Id: alc_env.sh.in,v 1.3 1999/08/27 15:17:01 czo Exp $
# Generated from alc_env.sh.in on @DATE@ # Generated from alc_env.sh.in on @DATE@
# $MACHINE and $TOP are the only variables you will # $MACHINE and $TOP are the only variables you will
@ -34,14 +34,20 @@ case `uname` in
FreeBSD*) MACHINE=FreeBSD ;; FreeBSD*) MACHINE=FreeBSD ;;
NetBSD*) MACHINE=NetBSD ;;
HP-UX*) MACHINE=HPUX ;; HP-UX*) MACHINE=HPUX ;;
OSF1*) MACHINE=OSF ;; OSF1*) MACHINE=OSF ;;
CYGWIN*) MACHINE=CYGWIN ;;
*) MACHINE=Unknown ;; *) MACHINE=Unknown ;;
esac esac
export MACHINE export MACHINE
#echo $MACHINE
# Where the Alliance CAD is installed # Where the Alliance CAD is installed

View File

@ -16,7 +16,6 @@ GNU_INCLUDE = @GNU_INC_LOC@
X11_LIB = . @X_LIBS@ @X_EXTRA_LIBS@ @X_PRE_LIBS@ X11_LIB = . @X_LIBS@ @X_EXTRA_LIBS@ @X_PRE_LIBS@
X11_INCLUDE = . @X_CFLAGS@ X11_INCLUDE = . @X_CFLAGS@
#You may need -lXintl
MOTIF_LIB = @GUI_LIB_LOC@ MOTIF_LIB = @GUI_LIB_LOC@
MOTIF_INCLUDE = @GUI_INC_LOC@ MOTIF_INCLUDE = @GUI_INC_LOC@

File diff suppressed because it is too large Load Diff

View File

@ -4,10 +4,10 @@
# #
# Alliance CAD system configure.in # Alliance CAD system configure.in
# (C) 1997 Czo -- <Olivier.Sirol@lip6.fr> # (C) 1997 Czo -- <Olivier.Sirol@lip6.fr>
# $Id: configure.in,v 1.2 1999/08/26 18:47:42 czo Exp $ # $Id: configure.in,v 1.3 1999/08/27 15:17:02 czo Exp $
# #
AC_REVISION($Revision: 1.2 $)dnl AC_REVISION($Revision: 1.3 $)dnl
AC_INIT(configure.in) AC_INIT(configure.in)
@ -24,9 +24,10 @@ AC_MSG_CHECKING(for platform)
# WARNING : if changing this remember to do it on the 3 config files : # WARNING : if changing this remember to do it on the 3 config files :
# configure.in alc_env.sh.in and alc_env.csh.in # configure.in alc_env.sh.in and alc_env.csh.in
MACHINE=Unknown MACHINE=Unknown
case `uname` in case `uname` in
Linux*) case `uname -r` in Linux*) case `uname -r` in
1.*) MACHINE=Linux_aout ;; 1.*) MACHINE=Linux_aout ;;
@ -41,14 +42,20 @@ MACHINE=Unknown
FreeBSD*) MACHINE=FreeBSD ;; FreeBSD*) MACHINE=FreeBSD ;;
NetBSD*) MACHINE=NetBSD ;;
HP-UX*) MACHINE=HPUX ;; HP-UX*) MACHINE=HPUX ;;
OSF1*) MACHINE=OSF ;; OSF1*) MACHINE=OSF ;;
CYGWIN*) MACHINE=CYGWIN ;;
*) MACHINE=Unknown ;; *) MACHINE=Unknown ;;
esac esac
export MACHINE
export MACHINE
# echo $MACHINE
AC_MSG_RESULT(Configuring Alliance VLSI CAD System on platform : $MACHINE) AC_MSG_RESULT(Configuring Alliance VLSI CAD System on platform : $MACHINE)
AC_SUBST(MACHINE) AC_SUBST(MACHINE)
@ -263,7 +270,33 @@ fi
AC_SUBST(GUI_INC_LOC) AC_SUBST(GUI_INC_LOC)
AC_SUBST(GUI_LIB_LOC) AC_SUBST(GUI_LIB_LOC)
# Check if the motif lib needs libXintl to link ok
OLD_LIBS=$LIBS
OLD_CFLAGS=$CFLAGS
LIBS="$LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXt -lX11"
CFLAGS="$CFLAGS $X_CFLAGS -I$GUI_INC_LOC"
AC_MSG_CHECKING(if motif requires lXintl)
AC_TRY_LINK([# include <Xm/Xm.h>
# include <Xm/FileSB.h>
# include <Xm/MessageB.h>
# include <Xm/SelectioB.h>
# include <Xm/SeparatoG.h>],
[ XtAppContext app;
Widget toplevel;
XmString xm_string;
Arg args[1];
toplevel = XtVaAppInitialize(&app, "Demos", NULL, 0, NULL, NULL, NULL, NULL);
xm_string = XmStringCreateSimple("Vive Alliance");
XtSetArg(args[0], XmNmessageString, xm_string);
XmStringFree(xm_string);
XtAppMainLoop( app );],
AC_MSG_RESULT(no OK),
AC_MSG_RESULT(yes Xintl needed); X_PRE_LIBS="$X_PRE_LIBS -lXintl")
LIBS=$OLD_LIBS
CFLAGS=$OLD_CFLAGS
# Check where usefull GNU libs are installed (readline) # Check where usefull GNU libs are installed (readline)
#AC_CHECK_LIB(readline, main, $TRUE, #AC_CHECK_LIB(readline, main, $TRUE,
@ -331,7 +364,6 @@ AC_STDC_HEADERS
AC_MSG_CHECKING(where the Alliance package was installed) AC_MSG_CHECKING(where the Alliance package was installed)
TOP=`pwd | sed 's,share/etc$,archi,'` TOP=`pwd | sed 's,share/etc$,archi,'`
export TOP export TOP
AC_MSG_RESULT(Alliance TOP is "$TOP"/"$MACHINE")
AC_SUBST(TOP) AC_SUBST(TOP)
DATE=`date` DATE=`date`
@ -351,7 +383,12 @@ rm -f config.cache
#cat config.status | grep '^s%' | sed -e 's/^s%@//' -e 's/@%/ /' -e 's/%g$//' | sort | gawk '{printf("%-30s",$1) ; for (i=2 ; i<=NF ; i++) printf("%s ", $i); printf ("\n");}' #cat config.status | grep '^s%' | sed -e 's/^s%@//' -e 's/@%/ /' -e 's/%g$//' | sort | gawk '{printf("%-30s",$1) ; for (i=2 ; i<=NF ; i++) printf("%s ", $i); printf ("\n");}'
echo Done... cat << EOF
Done...
# EOF Alliance is installed on $TOP/$MACHINE
OS definitions are in $MACHINE.mk
You'll need to 'source alc_env.csh'
or '. alc_env.sh' whether you use csh or sh"
EOF
# end of configure

View File

@ -8,7 +8,7 @@
# The variables $TOP and $MACHINE are set by # The variables $TOP and $MACHINE are set by
# alc_env.[c]sh script # alc_env.[c]sh script
ALLIANCE_VERSION = '"3.5.003"' ALLIANCE_VERSION = '"3.5.7"'
ALLIANCE_BIN = $(TOP)/bin ALLIANCE_BIN = $(TOP)/bin
ALLIANCE_LIB = $(TOP)/lib ALLIANCE_LIB = $(TOP)/lib
ALLIANCE_INCLUDE = $(TOP)/include ALLIANCE_INCLUDE = $(TOP)/include