OpenMotif
This commit is contained in:
parent
8828888540
commit
9c5ccc9d3e
|
@ -1,15 +1,19 @@
|
||||||
# ,,,
|
# ,,,
|
||||||
# (o o)
|
# (o o)
|
||||||
####=====oOO--(_)--OOO=========================================####
|
####=====oOO--(_)--OOO=========================================####
|
||||||
|
#
|
||||||
|
# Filename: configure.in
|
||||||
|
# Copyright (C) 1997, 2000 Czo <Olivier.Sirol@lip6.fr>
|
||||||
|
# License: GPL (http://www.gnu.org/copyleft/gpl.html)
|
||||||
|
# Started: Feb 1997
|
||||||
|
# Last Change: Friday 22 September 2000, 12:11
|
||||||
|
# Edit Time: 0:21:57
|
||||||
|
# Description: Alliance CAD system configure.in
|
||||||
#
|
#
|
||||||
# Alliance CAD system configure.in
|
# $Id: configure.in,v 1.17 2000/09/22 10:19:17 czo Exp $
|
||||||
# (C) 1997 Czo -- <Olivier.Sirol@lip6.fr>
|
|
||||||
# $Id: configure.in,v 1.16 2000/09/13 15:07:05 czo Exp $
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
AC_REVISION($Revision: 1.17 $)dnl
|
||||||
|
|
||||||
AC_REVISION($Revision: 1.16 $)dnl
|
|
||||||
|
|
||||||
AC_INIT(configure.in)
|
AC_INIT(configure.in)
|
||||||
|
|
||||||
|
@ -323,14 +327,14 @@ AC_MSG_RESULT(ERROR: BAD X11 environment)
|
||||||
LIBS=$OLD_LIBS
|
LIBS=$OLD_LIBS
|
||||||
CFLAGS=$OLD_CFLAGS
|
CFLAGS=$OLD_CFLAGS
|
||||||
|
|
||||||
# Check if the motif lib needs libXintl to link ok
|
# Check if the motif lib needs other libs to link ok
|
||||||
|
|
||||||
OLD_LIBS=$LIBS
|
OLD_LIBS=$LIBS
|
||||||
OLD_CFLAGS=$CFLAGS
|
OLD_CFLAGS=$CFLAGS
|
||||||
LIBS="$OLD_LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXt -lX11"
|
LIBS="$OLD_LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXt -lX11"
|
||||||
CFLAGS="$OLD_CFLAGS $X_CFLAGS -I$GUI_INC_LOC"
|
CFLAGS="$OLD_CFLAGS $X_CFLAGS -I$GUI_INC_LOC"
|
||||||
|
|
||||||
AC_MSG_CHECKING(if you can link Motif/LessTif app)
|
AC_MSG_CHECKING([if you can link Motif/LessTif app])
|
||||||
AC_TRY_LINK([# include <Xm/Xm.h>
|
AC_TRY_LINK([# include <Xm/Xm.h>
|
||||||
# include <Xm/FileSB.h>
|
# include <Xm/FileSB.h>
|
||||||
# include <Xm/MessageB.h>
|
# include <Xm/MessageB.h>
|
||||||
|
@ -346,8 +350,12 @@ AC_TRY_LINK([# include <Xm/Xm.h>
|
||||||
XmStringFree(xm_string);
|
XmStringFree(xm_string);
|
||||||
XtAppMainLoop( app );],
|
XtAppMainLoop( app );],
|
||||||
AC_MSG_RESULT(yes),
|
AC_MSG_RESULT(yes),
|
||||||
|
AC_MSG_RESULT([no: try with Xintl])
|
||||||
|
)
|
||||||
|
|
||||||
LIBS="$OLD_LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXt -lX11"
|
# try with Xintl
|
||||||
|
AC_MSG_CHECKING([if you can link Motif/LessTif app with Xintl])
|
||||||
|
LIBS="$OLD_LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXintl -lXt -lX11"
|
||||||
CFLAGS="$OLD_CFLAGS $X_CFLAGS -I$GUI_INC_LOC"
|
CFLAGS="$OLD_CFLAGS $X_CFLAGS -I$GUI_INC_LOC"
|
||||||
|
|
||||||
AC_TRY_LINK([# include <Xm/Xm.h>
|
AC_TRY_LINK([# include <Xm/Xm.h>
|
||||||
|
@ -364,9 +372,31 @@ AC_TRY_LINK([# include <Xm/Xm.h>
|
||||||
XtSetArg(args[0], XmNmessageString, xm_string);
|
XtSetArg(args[0], XmNmessageString, xm_string);
|
||||||
XmStringFree(xm_string);
|
XmStringFree(xm_string);
|
||||||
XtAppMainLoop( app );],
|
XtAppMainLoop( app );],
|
||||||
AC_MSG_RESULT(yes, Xintl needed); X_PRE_LIBS="$X_PRE_LIBS -lXintl",
|
AC_MSG_RESULT([yes: Xintl needed]); X_PRE_LIBS="$X_PRE_LIBS -lXintl",
|
||||||
AC_MSG_RESULT(ERROR: BAD Motif/LessTif environment)
|
AC_MSG_RESULT([no: try with Xext and Xp])
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# try with Xp
|
||||||
|
AC_MSG_CHECKING([if you can link Motif/LessTif app with Xext and Xp])
|
||||||
|
LIBS="$OLD_LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXext -lXp -lXt -lX11"
|
||||||
|
CFLAGS="$OLD_CFLAGS $X_CFLAGS -I$GUI_INC_LOC"
|
||||||
|
|
||||||
|
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", 0, 0, 0, 0, 0, 0);
|
||||||
|
xm_string = XmStringCreateSimple("Vive Alliance");
|
||||||
|
XtSetArg(args[0], XmNmessageString, xm_string);
|
||||||
|
XmStringFree(xm_string);
|
||||||
|
XtAppMainLoop( app );],
|
||||||
|
AC_MSG_RESULT([yes: Xext and Xp needed]); X_PRE_LIBS="$X_PRE_LIBS -lXext -lXp",
|
||||||
|
AC_MSG_RESULT([ERROR: BAD Motif/LessTif environment])
|
||||||
)
|
)
|
||||||
|
|
||||||
LIBS=$OLD_LIBS
|
LIBS=$OLD_LIBS
|
||||||
|
|
Loading…
Reference in New Issue